/* Metro module 4656; source: unknown; dependencies: [] */
function _fun40193(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40193, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:6, offset: 0x010f8ffd, size: 37 bytes, params: 8, frame: 11
_fun40194.call(this);
function _fun40194() { // fn#40194, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:37, offset: 0x010f9022, size: 344 bytes, params: 1, frame: 17
const env0_0 = this;
let env0_1 = this.humanize;
const object = {};
if (env0_1 !== undefined) {
if (env0_0 !== undefined && env0_0.exports) {
env0_0.exports = object;
env0_1 = object;
}
env0_1.humanize = object;
} else {
if (typeof global.define === 'function' && global.define.amd) {
global.define('humanize', _fun40195);
}
this.humanize = object;
}
object.noConflict = noConflict_40196;
object.pad = pad_40197;
object.time = function() {
var Date = global.Date;
var value2 = new Date();
value2 = value2.getTime();
return value2 / 1000;
};
const env0_3 = [0, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
const env0_4 = [0, 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
object.date = date;
object.numberFormat = numberFormat;
object.naturalDay = naturalDay;
object.relativeTime = relativeTime_40237;
object.ordinal = ordinal_40238;
object.filesize = filesize;
object.intword = intword;
object.linebreaks = linebreaks;
object.nl2br = function(a0) {
return a0.replace(RegExp('(\\r\\n|\\n|\\r)', 'g'), '
');
};
object.truncatechars = function(a0, a1) {
var r0;
var value = a0;
if (value.length <= a1) {
r0 = value;
} else {
value = value.substr(0, a1);
value += '…';
r0 = value;
}
return r0;
};
object.truncatewords = function(a0, a1) {
var r0;
var value = a0;
var value2 = value.split(' ');
if (value2.length < a1) {
r0 = value;
} else {
value = value2.slice(0, a1);
value = value.join(' ');
value += '…';
r0 = value;
}
return r0;
};
function _fun40195() { // fn#40195, offset: 0x00c36b39, size: 9 bytes, params: 1, frame: 1
return env0_2;
}
function noConflict_40196() { // fn#40196, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:254, offset: 0x010f917a, size: 21 bytes, params: 1, frame: 2
env0_0.humanize = humanize;
return this;
}
function date(a0, a1) { // fn#40199, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:619, offset: 0x010f9252, size: 525 bytes, params: 3, frame: 15
var Date;
var value;
var date;
if (a1 === undefined) {
date = new global.Date();
} else {
Date = global.Date;
value = a1 instanceof Date;
Date = global.Date;
if (value) {
date = new Date(a1);
} else {
value = 1000 * a1;
date = new Date();
}
}
const regexp = RegExp('\\\\?([a-z])', 'gi');
const formatChrCb2 = formatChrCb;
const env0_3 = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
const env0_4 = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October',
'November', 'December'];
const env0_5 = {d: d_40201, D: D_40202, j: j_40203, l: l_40204, N: N_40205, S: S_40206, w: w_40207, z: z_40208,
W: W_40209, F: F_40210, m: m_40211, M: M_40212, n: n_40213, t: t_40214, L: L_40215, o: o_40216, Y: Y_40217,
y: y_40218, a: a_40219, A: A_40220, B: B_40221, g: g_40222, G: G_40223, h: h_40224, H: H_40225, i: i_40226,
s: s_40227, u: u_40228, O: O_40229, P: P_40230, Z: Z, c: c_40232, r: r_40233, U: U_40234};
return a0.replace(regexp, formatChrCb2);
function formatChrCb(a0, a1) { // fn#40200, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:724, owner: date.formatChrCb, offset: 0x010f945f, size: 34 bytes, params: 3, frame: 11
return env0_5[a0] ? env0_5[a0]() : a1;
}
function dateD() { // fn#40201, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:966, owner: date.d, offset: 0x010f9481, size: 48 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
return binding.pad(env0_5.j(), 2, '0');
}
function dateD_40202() { // fn#40202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1008, owner: date.D, offset: 0x010f94b1, size: 34 bytes, params: 1, frame: 13
return env0_5.l().slice(0, 3);
}
function dateJ() { // fn#40203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1048, owner: date.j, offset: 0x010f94d3, size: 19 bytes, params: 1, frame: 9
return env0_0.getDate();
}
function dateL() { // fn#40204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1083, owner: date.l, offset: 0x010f94e6, size: 26 bytes, params: 1, frame: 10
const binding = env0_3;
const binding2 = env0_5;
return binding[binding2.w()];
}
function dateN() { // fn#40205, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1115, owner: date.N, offset: 0x010f9500, size: 24 bytes, params: 1, frame: 9
return env0_5.w() || 7;
}
function dateS() { // fn#40206, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1147, owner: date.S, offset: 0x010f9518, size: 75 bytes, params: 1, frame: 10
var r0;
let value = env0_5.j();
if (value > 4) {
if (value < 21) {
r0 = 'th';
} else {
value %= 10;
r0 = ({1: 'st', 2: 'nd', 3: 'rd'})[value] || 'th';
}
} else {
value %= 10;
r0 = ({1: 'st', 2: 'nd', 3: 'rd'})[value] || 'th';
}
return r0;
}
function dateW() { // fn#40207, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1232, owner: date.w, offset: 0x010f9563, size: 19 bytes, params: 1, frame: 9
return env0_0.getDay();
}
function dateZ() { // fn#40208, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1266, owner: date.z, offset: 0x010f9576, size: 96 bytes, params: 1, frame: 12
let binding = env0_5;
const r1 = binding.L() ? env1_4[env0_5.n()] : env1_3[env0_5.n()];
binding = env0_5;
return r1 + binding.j() - 1;
}
function dateW_40209() { // fn#40209, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1322, owner: date.W, offset: 0x010f95d6, size: 157 bytes, params: 1, frame: 17
let binding = env0_5;
const value2 = binding.z();
binding = env0_5;
const N = binding.N;
let value = value2 - Reflect.apply(N, binding, []);
value += 1.5;
binding = env1_2;
const pad = binding.pad;
const Math = global.Math;
const floor = Math.floor;
const Math2 = global.Math;
const value5 = Reflect.apply(floor, Math, [Math2.abs(value) / 7]);
const value6 = 1;
const value7 = value6 + value5;
value = 0;
return Reflect.apply(pad, binding, [value7 + (value % 7 > 3.5 ? value6 : value), 2, '0']);
}
function dateF() { // fn#40210, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1422, owner: date.F, offset: 0x010f9673, size: 27 bytes, params: 1, frame: 10
const binding = env0_4;
const binding2 = env0_0;
const getMonth = binding2.getMonth;
return binding[Reflect.apply(getMonth, binding2, [])];
}
function dateM() { // fn#40211, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1461, owner: date.m, offset: 0x010f968e, size: 48 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
return binding.pad(env0_5.n(), 2, '0');
}
function dateM_40212() { // fn#40212, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1503, owner: date.M, offset: 0x010f96be, size: 35 bytes, params: 1, frame: 13
return env0_5.F().slice(0, 3);
}
function dateN_40213() { // fn#40213, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1543, owner: date.n, offset: 0x010f96e1, size: 26 bytes, params: 1, frame: 9
return env0_0.getMonth() + 1;
}
function dateT() { // fn#40214, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1581, owner: date.t, offset: 0x010f96fb, size: 73 bytes, params: 1, frame: 15
const Date = global.Date;
const value2 = env0_5.Y();
const value = env0_5.n();
const value3 = Object.create(Date.prototype, {constructor: {value: Date}});
const date = new Date(value2, value, 0);
return (date instanceof Object ? date : value3).getDate();
}
function dateL_40215() { // fn#40215, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1638, owner: date.L, offset: 0x010f9744, size: 75 bytes, params: 1, frame: 15
const Date = global.Date;
let value = env0_5.Y();
const value2 = Object.create(Date.prototype, {constructor: {value: Date}});
const value3 = 1;
const date = new Date(value, value3, 29);
value = date instanceof Object ? date : value2;
value = value.getMonth();
return value3 !== value ? 0 : value3;
}
function dateO() { // fn#40216, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1701, owner: date.o, offset: 0x010f978f, size: 94 bytes, params: 1, frame: 12
const value2 = env0_5.n();
const value3 = env0_5.W();
return env0_5.Y() + (value2 !== 12 ? value2 === 1 && value3 > 9 : value3 < 9 ? -1 : value2 === 1 && value3 > 9);
}
function dateY() { // fn#40217, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1778, owner: date.Y, offset: 0x010f97ed, size: 19 bytes, params: 1, frame: 9
return env0_0.getFullYear();
}
function dateY_40218() { // fn#40218, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1817, owner: date.y, offset: 0x010f9800, size: 50 bytes, params: 1, frame: 11
const String = global.String;
let value = env0_5.Y();
value = String(value);
return value.slice(-2);
}
function dateA() { // fn#40219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1864, owner: date.a, offset: 0x010f9832, size: 37 bytes, params: 1, frame: 9
let value = env0_0.getHours();
value = 'am';
return value > 11 ? 'pm' : value;
}
function dateA_40220() { // fn#40220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1913, owner: date.A, offset: 0x010f9857, size: 28 bytes, params: 1, frame: 9
return env0_5.a().toUpperCase();
}
function dateB() { // fn#40221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:1956, owner: date.B, offset: 0x010f9873, size: 124 bytes, params: 1, frame: 15
let value = env0_0.getTime();
value /= 1000;
const value2 = value % 86400 + 3600;
const value4 = (value2 < 0 ? value2 + 86400 : value2) / 86.4 % 1000;
return value < 0 ? global.Math.ceil(value4) : global.Math.floor(value4);
}
function dateG() { // fn#40222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2080, owner: date.g, offset: 0x010f98ef, size: 32 bytes, params: 1, frame: 10
let value = env0_5.G();
const value2 = 12;
value %= value2;
return value || value2;
}
function dateG_40223() { // fn#40223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2116, owner: date.G, offset: 0x010f990f, size: 19 bytes, params: 1, frame: 9
return env0_0.getHours();
}
function dateH() { // fn#40224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2152, owner: date.h, offset: 0x010f9922, size: 47 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
return binding.pad(env0_5.g(), 2, '0');
}
function dateH_40225() { // fn#40225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2194, owner: date.H, offset: 0x010f9951, size: 48 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
return binding.pad(env0_5.G(), 2, '0');
}
function dateI() { // fn#40226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2236, owner: date.i, offset: 0x010f9981, size: 48 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
return binding.pad(env0_0.getMinutes(), 2, '0');
}
function dateS_40227() { // fn#40227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2287, owner: date.s, offset: 0x010f99b1, size: 48 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
return binding.pad(env0_0.getSeconds(), 2, '0');
}
function dateU() { // fn#40228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2338, owner: date.u, offset: 0x010f99e1, size: 58 bytes, params: 1, frame: 15
const value = environment.__proto__;
const binding = env1_2;
return binding.pad(1000 * env0_0.getMilliseconds(), 6, '0');
}
function dateO_40229() { // fn#40229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2398, owner: date.O, offset: 0x010f9a1b, size: 129 bytes, params: 1, frame: 18
let binding = env0_0;
let value = binding.getTimezoneOffset();
let Math = global.Math;
const value2 = Math.abs(value);
value = '+';
const r1 = value > 0 ? '-' : value;
value = environment.__proto__;
binding = env1_2;
const pad = binding.pad;
Math = global.Math;
value = Math.floor(value2 / 60);
value = 100 * value;
return r1 + Reflect.apply(pad, binding, [value + value2 % 60, 4, '0']);
}
function dateP() { // fn#40230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2515, owner: date.P, offset: 0x010f9a9c, size: 63 bytes, params: 1, frame: 14
const value = env0_5.O();
return value.substr(0, 3) + ':' + value.substr(3, 2);
}
function Z() { // fn#40231, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2582, owner: date.Z, offset: 0x010f9adb, size: 29 bytes, params: 1, frame: 9
const binding = env0_0;
const getTimezoneOffset = binding.getTimezoneOffset;
return 60 * -Reflect.apply(getTimezoneOffset, binding, []);
}
function dateC() { // fn#40232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2631, owner: date.c, offset: 0x010f9af8, size: 30 bytes, params: 1, frame: 13
return 'Y-m-d\\TH:i:sP'.replace(env0_1, formatChrCb);
}
function dateR() { // fn#40233, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2683, owner: date.r, offset: 0x010f9b16, size: 30 bytes, params: 1, frame: 13
return 'D, d M Y H:i:s O'.replace(env0_1, formatChrCb);
}
function dateU_40234() { // fn#40234, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2737, owner: date.U, offset: 0x010f9b34, size: 34 bytes, params: 1, frame: 9
let value = env0_0.getTime();
value /= 1000;
return value || 0;
}
}
function naturalDay(a0, a1) { // fn#40236, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:3127, offset: 0x010f9c88, size: 258 bytes, params: 3, frame: 17
const value = a0;
const value2 = a1;
const r6 = value !== undefined ? value : env0_2.time();
const r5 = value2 === undefined ? 'Y-m-d' : value2;
let Date = global.Date;
let date = new Date();
Date = global.Date;
const fullYear = date.getFullYear();
const month = date.getMonth();
date = date.getDate();
date = new Date(fullYear, month, date);
date = date.getTime();
date /= 1000;
return r6 < date && r6 >= date - 86400 ? 'yesterday' : r6 >= date && r6 < date + 86400 ? 'today' : r6 >= date + 86400 && r6 < 'tomorrow' + 172800 ? 'tomorrow' : env0_2.date(r5,
r6);
}
function relativeTime_40237(a0) { // fn#40237, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:3387, offset: 0x010f9d8a, size: 976 bytes, params: 2, frame: 27
var r16;
var r0;
var r5;
var r1;
var binding;
var time;
var value8;
var Math;
let value = a0;
reducibleJoin2: while (true) {
if (value !== undefined) {
r16 = value;
break reducibleJoin2;
}
value = environment;
binding = env0_2;
time = binding.time;
value = Reflect.apply(time, binding, []);
r16 = value;
break reducibleJoin2;
}
value = environment;
const value2 = env0_2.time();
const value3 = value2 - r16;
if (value3 < 2) {
reducibleJoin4: while (true) {
if (value3 > -2) {
value = '';
reducibleJoin66: while (true) {
if (value3 >= 0) {
value = 'just ';
r1 = value;
break reducibleJoin66;
}
r1 = value;
break reducibleJoin66;
}
return r1 + 'now';
}
break reducibleJoin4;
}
}
if (value3 < 60) {
reducibleJoin6: while (true) {
if (value3 > -60) {
if (value3 >= 0) {
Math = global.Math;
value = Math.floor(value3);
value += ' seconds ago';
r0 = value;
} else {
Math = global.Math;
value = Math.floor(-value3);
value = 'in ' + value + ' seconds';
r0 = value;
}
return r0;
}
break reducibleJoin6;
}
}
if (value3 < 120) {
reducibleJoin8: while (true) {
if (value3 > -120) {
value = 'in about a minute';
reducibleJoin59: while (true) {
if (value3 >= 0) {
value = 'about a minute ago';
r0 = value;
break reducibleJoin59;
}
r0 = value;
break reducibleJoin59;
}
return r0;
}
break reducibleJoin8;
}
}
if (value3 < 3600) {
reducibleJoin10: while (true) {
if (value3 > -3600) {
if (value3 >= 0) {
Math = global.Math;
value = Math.floor(value3 / 60);
value += ' minutes ago';
r0 = value;
} else {
Math = global.Math;
value = Math.floor(-value3 / 60);
value = 'in ' + value + ' minutes';
r0 = value;
}
return r0;
}
break reducibleJoin10;
}
}
if (value3 < 7200) {
reducibleJoin12: while (true) {
if (value3 > -7200) {
value = 'in about an hour';
reducibleJoin52: while (true) {
if (value3 >= 0) {
value = 'about an hour ago';
r0 = value;
break reducibleJoin52;
}
r0 = value;
break reducibleJoin52;
}
return r0;
}
break reducibleJoin12;
}
}
if (value3 < 86400) {
reducibleJoin14: while (true) {
if (value3 > -86400) {
if (value3 >= 0) {
Math = global.Math;
value = Math.floor(value3 / 3600);
value += ' hours ago';
r0 = value;
} else {
Math = global.Math;
value = Math.floor(-value3 / 3600);
value = 'in ' + value + ' hours';
r0 = value;
}
return r0;
}
break reducibleJoin14;
}
}
if (value3 < 172800) {
reducibleJoin16: while (true) {
if (value3 > -172800) {
value = 'in 1 day';
reducibleJoin45: while (true) {
if (value3 >= 0) {
value = '1 day ago';
r0 = value;
break reducibleJoin45;
}
r0 = value;
break reducibleJoin45;
}
return r0;
}
break reducibleJoin16;
}
}
if (value3 < 2505600) {
reducibleJoin18: while (true) {
if (value3 > -2505600) {
if (value3 >= 0) {
Math = global.Math;
value = Math.floor(value3 / 86400);
value += ' days ago';
r0 = value;
} else {
Math = global.Math;
value = Math.floor(-value3 / 86400);
value = 'in ' + value + ' days';
r0 = value;
}
return r0;
}
break reducibleJoin18;
}
}
if (value3 < 5184000) {
reducibleJoin20: while (true) {
if (value3 > -5184000) {
value = 'in about a month';
reducibleJoin38: while (true) {
if (value3 >= 0) {
value = 'about a month ago';
r0 = value;
break reducibleJoin38;
}
r0 = value;
break reducibleJoin38;
}
return r0;
}
break reducibleJoin20;
}
}
const parseInt = global.parseInt;
binding = env0_2;
value = binding.date('Y', value2);
value = parseInt(value, 10);
const int = global.parseInt(binding.date('Y', r16), 10);
const value7 = 12 * value + global.parseInt(binding.date('n', value2),
10) - (12 * int + global.parseInt(binding.date('n', r16), 10));
if (value7 < 12) {
reducibleJoin22: while (true) {
if (value7 > -12) {
if (value7 >= 0) {
r0 = value7 + ' months ago';
} else {
r0 = 'in ' + -value7 + ' months';
}
return r0;
}
break reducibleJoin22;
}
}
value -= int;
reducibleJoin31: while (true) {
reducibleJoin24: while (true) {
if (value < 2) {
if (value > -2) {
value8 = 'in a year';
reducibleJoin30: while (true) {
if (value >= 0) {
value = 'a year ago';
r5 = value;
break reducibleJoin30;
}
r5 = value8;
break reducibleJoin30;
}
r0 = r5;
break reducibleJoin31;
}
break reducibleJoin24;
}
break reducibleJoin24;
}
if (value >= 0) {
value += ' years ago';
r0 = value;
} else {
value = 'in ' + -value + ' years';
r0 = value;
}
break reducibleJoin31;
}
return r0;
}
function filesize(a0, a1, a2, a3, a4, a5) { // fn#40239, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:4605, offset: 0x010fa1e8, size: 118 bytes, params: 7, frame: 24
var r6;
var r0;
let value = a1;
const value2 = a2;
const value3 = a5;
const value4 = 0;
if (a0 <= value4) {
r0 = '0 bytes';
} else {
r6 = value === undefined ? 1024 : value;
value = a0 < r6;
value = env0_2.intword(a0, ['bytes', 'KB', 'MB', 'GB', 'TB', 'PB'], r6,
value && value2 === undefined ? value4 : value2, a3, a4, value3 !== undefined ? value3 : ' ');
r0 = value;
}
return r0;
}
function intword(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40240, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:4783, offset: 0x010fa25e, size: 254 bytes, params: 8, frame: 26
var r4;
var r10;
var r0;
var Math;
var pow;
var value13;
let value = require;
const value2 = importDefault;
const value3 = module;
const value4 = exports;
const value5 = dependencyMap;
const r7 = value || ['', 'K', 'M', 'B', 'T'];
let length = r7.length;
value = length - 1;
const r9 = value2 || 1000;
if (global.isNaN(importAll)) {
r4 = 2;
} else {
Math = global.Math;
r4 = Math.abs(importAll);
}
const r6 = value3 || '.';
const r5 = value4 || ',';
const r2 = value5 || '';
length = r7.length;
const value12 = 0;
if (value12 < length) {
r10 = value12;
while (true) {
Math = global.Math;
pow = Math.pow;
if (global < Reflect.apply(pow, Math, [r9, r10 + 1])) {
r0 = r10;
break;
}
value13 = typeof r10 === 'bigint' ? r10 + 1n : +r10 + 1;
length = r7.length;
if (value13 < length) {
r10 = value13;
continue;
}
r0 = value;
break;
}
} else {
r0 = value;
}
Math = global.Math;
value = global / Math.pow(r9, r0);
const r1 = r7[r0] ? r2 + r7[r0] : '';
const binding = env0_2;
return binding.numberFormat(value, r4, r6, r5) + r1;
}
}
}
function pad_40197(a0, a1, a2, a3) { // fn#40197, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:297, offset: 0x010f918f, size: 145 bytes, params: 5, frame: 15
var r3;
var r0;
var r2;
var length;
var charAt;
var value4;
let value = a2;
const value2 = String(a0);
reducibleJoin3: while (true) {
if (value) {
length = value.length;
if (length > 1) {
charAt = value.charAt;
value = Reflect.apply(charAt, value, [0]);
r3 = value;
break reducibleJoin3;
}
r3 = value;
break reducibleJoin3;
}
r3 = ' ';
break reducibleJoin3;
}
reducibleJoin5: while (true) {
if (a3 !== undefined) {
r0 = 'right';
break reducibleJoin5;
}
value4 = 'left';
r0 = value4;
break reducibleJoin5;
}
if (value === r0) {
length = value2.length;
if (length < a1) {
r2 = value2;
reducibleLoop9: while (true) {
value = r2 + r3;
length = value.length;
if (length < a1) {
r2 = value;
continue reducibleLoop9;
}
r0 = value;
break reducibleLoop9;
}
} else {
r0 = value2;
}
} else {
length = value2.length;
if (length < a1) {
r2 = value2;
reducibleLoop7: while (true) {
value = r3 + r2;
length = value.length;
if (length < a1) {
r2 = value;
continue reducibleLoop7;
}
r0 = value;
break reducibleLoop7;
}
} else {
r0 = value2;
}
}
return r0;
}
function numberFormat(a0, a1, a2, a3) { // fn#40235, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:2816, offset: 0x010f9b56, size: 306 bytes, params: 5, frame: 22
var r1;
var value15;
let value = a2;
const value2 = a3;
const isNaN2 = global.isNaN(a1);
const value3 = 2;
const r6 = isNaN2 ? value3 : global.Math.abs(a1);
const r3 = value === undefined ? '.' : value;
const r10 = value2 === undefined ? ',' : value2;
value = 0;
const value6 = '';
const r9 = a0 < value ? '-' : value6;
const Math = global.Math;
const abs = Math.abs;
let r0 = Number(a0) || value;
const value9 = Reflect.apply(abs, Math, [r0]);
const value11 = String(global.parseInt(value9.toFixed(r6), 10));
const r11 = value11.length > 3 ? value11.length % 3 : value;
r0 = r11 ? value11.substr(value, r11) + r10 : value6;
value = Reflect.apply(value11.substr(r11).replace, value, [RegExp('(\\d{3})(?=\\d)', 'g'), '$1' + r10]);
value = r9 + r0 + value;
if (r6) {
value15 = global.Math.abs(value9 - value11).toFixed(r6);
r1 = r3 + value15.slice(value3);
} else {
r1 = value6;
}
return value + r1;
}
function ordinal_40238(a0) { // fn#40238, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:4447, offset: 0x010fa15a, size: 142 bytes, params: 2, frame: 15
let value = global.parseInt(a0, 10);
const isNaN2 = global.isNaN(value);
const value2 = 0;
const r4 = isNaN2 ? value2 : value;
let r0 = r4 < value2 ? '-' : '';
const Math = global.Math;
value = Math.abs(r4);
const value3 = value % 100;
const value4 = r0 + value;
if (value3 > 4) {
if (value3 < 21) {
r0 = 'th';
} else {
value %= 10;
r0 = ({1: 'st', 2: 'nd', 3: 'rd'})[value] || 'th';
}
} else {
value %= 10;
r0 = ({1: 'st', 2: 'nd', 3: 'rd'})[value] || 'th';
}
return value4 + r0;
}
function linebreaks(a0) { // fn#40241, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4834:5059, offset: 0x010fa35c, size: 170 bytes, params: 2, frame: 13
let value = a0.replace(RegExp('^([\\n|\\r]*)', ''), '');
value = value.replace(RegExp('([\\n|\\r]*)$', ''), '');
value = value.replace(RegExp('(\\r\\n|\\n|\\r)', 'g'), '\n');
value = value.replace(RegExp('(\\n{2,})', 'g'), '
');
value = value.replace(RegExp('\\n', 'g'), '
');
return '
' + value + '
'; } global.__d(_fun40193, 4656, []) /* metro module 4656 */;