Files
discord-decomp/sources/by-id/module-01397.jsx
T
2026-07-27 16:20:00 +03:00

1067 lines
37 KiB
React

/* Metro module 1397; source: unknown; dependencies: [1398, 1415, 1416] */
function _fun16398(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#16398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:6, offset: 0x00e4eb45, size: 1030 bytes, params: 8, frame: 30
var value;
var RegExp;
var value2;
var regExp;
const closure = inspect_16399;
const stylizeWithColor = function(a0, a1) {
var r0;
var value = a0;
var property = inspect_16399.styles[a1];
if (property) {
inspect_16399Binding = inspect_16399;
value = '\x1b[' + inspect_16399Binding.colors[property][0] + 'm' + value;
property = inspect_16399Binding.colors[property][1];
value = value + '\x1b[' + property + 'm';
r0 = value;
} else {
r0 = value;
}
return r0;
};
const stylizeNoColor = function(a0, a1) {
return a0;
};
const formatError = function(a0) {
return '[' + global.Error.prototype.toString.call(a0) + ']';
};
const closure2 = function(a0) {
var Array = global.Array;
return Array.isArray(a0);
};
const closure3 = function(a0) {
return typeof a0 === 'boolean';
};
const closure4 = function(a0) {
return a0 === null;
};
const closure5 = function(a0) {
return typeof a0 === 'number';
};
const closure6 = function(a0) {
return typeof a0 === 'string';
};
const closure7 = function(a0) {
return a0 === undefined;
};
const closure8 = isRegExp_16420;
const closure9 = function(a0) {
return typeof a0 === 'object' && a0 !== null;
};
const closure10 = isDate;
const closure11 = isError_16423;
const closure12 = function(a0) {
return typeof a0 === 'function';
};
const objectToString = function(a0) {
return global.Object.prototype.toString.call(a0);
};
const pad = function(a0) {
var r0;
var value;
if (a0 < 10) {
value = a0.toString(10);
value = '0' + value;
r0 = value;
} else {
r0 = a0.toString(10);
}
return r0;
};
const hasOwnProperty_16427 = function(a0, a1) {
return global.Object.prototype.hasOwnProperty.call(a0, a1);
};
const callbackifyOnRejected = function(a0, a1) {
var r2;
var value3;
var value = a0;
if (value) {
r2 = value;
} else {
value3 = new global.Error('Promise was rejected with a falsy value');
value3.reason = value;
r2 = value3;
}
return a1(r2);
};
let Object = global.Object;
const getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors;
let env0_1 = getOwnPropertyDescriptors || (function(a0) {
var r2;
var Object;
var value3;
var property = global.Object;
var value = property.keys(a0);
var object = {};
var value2 = 0;
if (value2 < value.length) {
for (r2 = value2; true; r2 = value3) {
property = value[r2];
Object = global.Object;
object[property] = Object.getOwnPropertyDescriptor(a0, value[r2]);
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value3 < value.length)) {
break;
}
}
}
return object;
});
let env0_2 = RegExp('%[sdj%]', 'g');
exports.format = format_16430;
exports.deprecate = function(a0, a1) {
var env0_0 = a0;
var env0_1 = a1;
if (typeof global.process !== 'undefined') {
if (global.process.noDeprecation === true) {
return a0;
}
}
if (typeof global.process === 'undefined') {
return _fun16433;
}
var env0_2 = false;
return _fun16434;
};
const env0_3 = {};
const env0_4 = RegExp('^$', '');
const NODE_DEBUG = global.process.env.NODE_DEBUG;
if (NODE_DEBUG) {
value = global.process.env.NODE_DEBUG.replace(RegExp('[|\\\\{}()[\\]^$+?.]', 'g'), '\\$&');
value = value.replace(RegExp('\\*', 'g'), '.*');
value = value.replace(RegExp(',', 'g'), '$|^');
value = value.toUpperCase();
RegExp = global.RegExp;
value = '^' + value;
value2 = Object.create(RegExp.prototype, {constructor: {value: RegExp}});
value += '$';
regExp = new RegExp(value, 'i');
value = regExp instanceof Object ? regExp : value2;
}
exports.debuglog = debuglog;
exports.inspect = closure;
closure.colors = {bold: [1, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], white: [37, 39], grey: [90,
39], black: [30, 39], blue: [34, 39], cyan: [36, 39], green: [32, 39], magenta: [35, 39], red: [31, 39],
yellow: [33, 39]};
closure.styles = {'special': 'cyan', 'number': 'yellow', 'boolean': 'yellow', 'undefined': 'grey', 'null': 'bold',
'string': 'green', 'date': 'magenta', 'regexp': 'red'};
value = undefined;
exports.types = require(1398) /* metro dependency 1398 */;
exports.isArray = closure2;
exports.isBoolean = closure3;
exports.isNull = closure4;
exports.isNullOrUndefined = function(a0) {
return a0 == null;
};
exports.isNumber = closure5;
exports.isString = closure6;
exports.isSymbol = function(a0) {
return typeof a0 === 'symbol';
};
exports.isUndefined = closure7;
exports.isRegExp = closure8;
exports.types.isRegExp = closure8;
exports.isObject = closure9;
exports.isDate = closure10;
exports.types.isDate = closure10;
exports.isError = closure11;
exports.types.isNativeError = closure11;
exports.isFunction = closure12;
exports.isPrimitive = function(a0) {
var r0;
r0 = a0 === null || typeof a0 === 'boolean';
r0 = !r0 ? typeof a0 === 'number' : r0;
r0 = !r0 ? typeof a0 === 'string' : r0;
r0 = !r0 ? typeof a0 === 'symbol' : r0;
r0 = !r0 ? a0 === undefined : r0;
return r0;
};
exports.isBuffer = require(1415) /* metro dependency 1415 */;
const env0_5 = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
exports.log = log_16441;
exports.inherits = require(1416) /* metro dependency 1416 */;
exports._extend = _extend;
const Symbol = global.Symbol;
const r4 = typeof Symbol === 'undefined' ? value : global.Symbol('util.promisify.custom');
exports.promisify = promisify;
var promisify = exports.promisify;
promisify.custom = r4;
exports.callbackify = callbackify;
return value;
}
function inspect_16399(a0, a1) { // fn#16399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:1289, offset: 0x00e4ef4b, size: 256 bytes, params: 3, frame: 18
const object2 = {seen: []};
object2.stylize = stylizeNoColor;
if (arguments.length >= 3) {
object2.depth = arguments[2];
}
if (arguments.length >= 4) {
object2.colors = arguments[3];
}
if (isBoolean(a1)) {
object2.showHidden = a1;
} else if (a1) {
env0_0._extend(object2, a1);
}
if (isUndefined(object2.showHidden)) {
object2.showHidden = false;
}
if (isUndefined(object2.depth)) {
object2.depth = 2;
}
if (isUndefined(object2.colors)) {
object2.colors = false;
}
if (isUndefined(object2.customInspect)) {
object2.customInspect = true;
}
if (object2.colors) {
object2.stylize = stylizeWithColor;
}
return formatValue(object2, a0, object2.depth);
}
function formatValue(a0, a1, a2) { // fn#16402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:1890, offset: 0x00e4f0af, size: 1268 bytes, params: 4, frame: 31
var environment;
var r0;
var r15;
var r11;
var items;
var r17;
var r12;
var r10;
var r9;
var value;
var isFunctionBinding;
var inspect;
var inspect2;
var constructor;
var prototype;
var stylize;
var value3;
var getOwnPropertyNames;
var value15;
var indexOf;
var value18;
var name;
var value20;
var value21;
var RegExp;
var toString;
var call;
var value22;
var value23;
var Date;
var toUTCString;
var value24;
var value25;
var value26;
var value27;
var seen;
var push;
var map;
var pop;
var value28;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
if (a0.customInspect) {
reducibleJoin6: while (true) {
if (a1) {
value = environment;
isFunctionBinding = isFunction;
inspect = a1.inspect;
if (isFunctionBinding(inspect)) {
inspect = a1.inspect;
inspect2 = env0_0.inspect;
if (inspect !== inspect2) {
constructor = a1.constructor;
if (constructor) {
constructor = a1.constructor;
prototype = constructor.prototype;
reducibleJoin62: while (true) {
if (prototype !== a1) {
break reducibleJoin62;
}
break reducibleJoin6;
}
}
inspect = a1.inspect;
value28 = Reflect.apply(inspect, a1, [a2, a0]);
reducibleJoin64: while (true) {
if (isString_16418(value28)) {
r0 = value28;
break reducibleJoin64;
}
value = formatValue(a0, value28, a2);
r0 = value;
break reducibleJoin64;
}
return r0;
}
break reducibleJoin6;
}
break reducibleJoin6;
}
break reducibleJoin6;
}
}
value = environment;
if (isUndefined(a1)) {
r0 = a0.stylize('undefined', 'undefined');
} else if (isString_16418(a1)) {
r0 = a0.stylize("'" + global.JSON.stringify(a1).replace(RegExp('^"|"$', 'g'), '').replace(RegExp("'", 'g'),
"\\'").replace(RegExp('\\\\"', 'g'), '"') + "'", 'string');
} else if (isNumber(a1)) {
r0 = a0.stylize(String(a1), 'number');
} else if (isBoolean(a1)) {
r0 = a0.stylize(String(a1), 'boolean');
} else {
reducibleJoin16: while (true) {
if (isNull(a1)) {
stylize = a0.stylize;
value3 = Reflect.apply(stylize, a0, ['null', 'null']);
r0 = value3;
break reducibleJoin16;
}
r0 = undefined;
break reducibleJoin16;
}
}
if (r0) {
return r0;
}
let Object = global.Object;
const value13 = Object.keys(a1);
const value14 = ((a0) => {
a0.forEach(_fun16404);
return {};
})(value13);
reducibleJoin19: while (true) {
if (a0.showHidden) {
Object = global.Object;
getOwnPropertyNames = Object.getOwnPropertyNames;
value15 = Reflect.apply(getOwnPropertyNames, Object, [a1]);
r15 = value15;
break reducibleJoin19;
}
r15 = value13;
break reducibleJoin19;
}
if (isError_16423(a1)) {
reducibleJoin22: while (true) {
reducibleJoin60: while (true) {
if (r15.indexOf('message') >= 0) {
break reducibleJoin60;
}
indexOf = r15.indexOf;
if (Reflect.apply(indexOf, r15, ['description']) >= 0) {
break reducibleJoin60;
}
break reducibleJoin22;
}
return formatError(a1);
}
}
let length = r15.length;
if (length === 0) {
if (isFunction(a1)) {
name = a1.name;
value = '';
reducibleJoin59: while (true) {
if (name) {
name = a1.name;
value = ': ' + name;
r9 = value;
break reducibleJoin59;
}
r9 = value;
break reducibleJoin59;
}
return a0.stylize('[Function' + r9 + ']', 'special');
}
if (isRegExp_16420(a1)) {
return a0.stylize(global.RegExp.prototype.toString.call(a1), 'regexp');
}
if (isDate(a1)) {
return a0.stylize(global.Date.prototype.toString.call(a1), 'date');
}
reducibleJoin27: while (true) {
if (isError_16423(a1)) {
return formatError(a1);
}
break reducibleJoin27;
}
}
const value17 = false;
var env0_4;
reducibleJoin29: while (true) {
if (isArray_16414(a1)) {
value18 = true;
env0_4 = value18;
r11 = value18;
items = ['[', ']'];
break reducibleJoin29;
}
r11 = value17;
items = ['{', '}'];
break reducibleJoin29;
}
const isFunction2 = isFunction(a1);
const value19 = '';
reducibleJoin33: while (true) {
if (isFunction2) {
name = a1.name;
reducibleJoin32: while (true) {
if (name) {
name = a1.name;
value20 = ': ' + name;
r17 = value20;
break reducibleJoin32;
}
r17 = value19;
break reducibleJoin32;
}
value21 = ' [Function' + r17 + ']';
r12 = value21;
break reducibleJoin33;
}
r12 = value19;
break reducibleJoin33;
}
reducibleJoin35: while (true) {
if (isRegExp_16420(a1)) {
RegExp = global.RegExp;
prototype = RegExp.prototype;
toString = prototype.toString;
call = toString.call;
value22 = Reflect.apply(call, toString, [a1]);
value23 = ' ' + value22;
r12 = value23;
break reducibleJoin35;
}
break reducibleJoin35;
}
reducibleJoin37: while (true) {
if (isDate(a1)) {
Date = global.Date;
prototype = Date.prototype;
toUTCString = prototype.toUTCString;
call = toUTCString.call;
value24 = Reflect.apply(call, toUTCString, [a1]);
value25 = ' ' + value24;
r12 = value25;
break reducibleJoin37;
}
break reducibleJoin37;
}
reducibleJoin39: while (true) {
if (isError_16423(a1)) {
value26 = formatError(a1);
value27 = ' ' + value26;
r12 = value27;
break reducibleJoin39;
}
break reducibleJoin39;
}
length = r15.length;
reducibleJoin53: while (true) {
reducibleJoin43: while (true) {
if (length !== 0) {
break reducibleJoin43;
}
if (r11) {
length = a1.length;
if (length != 0) {
break reducibleJoin43;
}
}
value = items[0] + r12;
value += items[1];
r9 = value;
break reducibleJoin53;
}
if (a2 < 0) {
value = isRegExp_16420(a1);
stylize = a0.stylize;
if (value) {
RegExp = global.RegExp;
prototype = RegExp.prototype;
toString = prototype.toString;
call = toString.call;
value = Reflect.apply(call, toString, [a1]);
value = Reflect.apply(stylize, a0, [value, 'regexp']);
r11 = value;
} else {
value = Reflect.apply(stylize, a0, ['[Object]', 'special']);
r11 = value;
}
r10 = r11;
} else {
seen = a0.seen;
push = seen.push;
Reflect.apply(push, seen, [a1]);
if (r11) {
r11 = formatArray(a0, a1, a2, value14, r15);
} else {
map = r15.map;
r11 = Reflect.apply(map, r15, [_fun16407]);
}
seen = a0.seen;
pop = seen.pop;
Reflect.apply(pop, seen, []);
value = reduceToSingleString(r11, r12, items);
r10 = value;
}
r9 = r10;
break reducibleJoin53;
}
return r9;
}
function formatProperty(a0, a1, a2, a3, a4, a5) { // fn#16411, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:4124, offset: 0x00e4f78c, size: 662 bytes, params: 7, frame: 26
var r9;
var r8;
var seen;
var isNull2;
var formatValueBinding;
var value7;
var value11;
var map;
var match;
const Object = global.Object;
let value = Object.getOwnPropertyDescriptor(a1, a4);
const r12 = value || ({value: a1[a4]});
const get = r12.get;
const set = r12.set;
let r0 = get ? set ? a0.stylize('[Getter/Setter]', 'special') : a0.stylize('[Getter]',
'special') : set ? a0.stylize('[Setter]', 'special') : undefined;
let r2 = hasOwnProperty_16427(a3, a4) ? undefined : '[' + a4 + ']';
if (!r0) {
seen = a0.seen;
if (seen.indexOf(r12.value) < 0) {
isNull2 = isNull(a2);
formatValueBinding = formatValue;
value7 = r12.value;
r9 = isNull2 ? formatValueBinding(a0, value7, null) : formatValueBinding(a0, value7, a2 - 1);
if (r9.indexOf('\n') > -1) {
value11 = r9.split('\n');
map = value11.map;
r9 = a5 ? Reflect.apply(map, value11, [function(a0) {
return ' ' + a0;
}]).join('\n').slice(2) : '\n' + Reflect.apply(map, value11, [_fun16413]).join('\n');
}
r8 = r9;
} else {
r8 = a0.stylize('[Circular]', 'special');
}
r0 = r8;
}
if (isUndefined(r2)) {
if (a5) {
match = a4.match;
if (Reflect.apply(match, a4, [RegExp('^\\d+$', '')])) {
return r0;
}
value = global.JSON.stringify(String(a4));
match = value.match;
if (Reflect.apply(match, value, [RegExp('^"([a-zA-Z_][a-zA-Z_0-9]*)"$', '')])) {
value = value.slice(1, -1);
value = a0.stylize(value, 'name');
r2 = value;
} else {
value = value.replace(RegExp("'", 'g'), "\\'");
value = value.replace(RegExp('\\\\"', 'g'), '"');
value = value.replace(RegExp('(^"|"$)', 'g'), "'");
value = a0.stylize(value, 'string');
r2 = value;
}
return r2 + ': ' + r0;
}
value = global.JSON.stringify(String(a4));
match = value.match;
if (Reflect.apply(match, value, [RegExp('^"([a-zA-Z_][a-zA-Z_0-9]*)"$', '')])) {
value = value.slice(1, -1);
value = a0.stylize(value, 'name');
r2 = value;
} else {
value = value.replace(RegExp("'", 'g'), "\\'");
value = value.replace(RegExp('\\\\"', 'g'), '"');
value = value.replace(RegExp('(^"|"$)', 'g'), "'");
value = a0.stylize(value, 'string');
r2 = value;
}
}
return r2 + ': ' + r0;
}
function isRegExp_16420(a0) { // fn#16420, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:5203, offset: 0x00e4fa49, size: 39 bytes, params: 2, frame: 13
var r0;
var value;
const isObject_164212 = isObject_16421(a0);
if (isObject_164212) {
value = objectToString(a0);
value = value === '[object RegExp]';
r0 = value;
} else {
r0 = isObject_164212;
}
return r0;
}
function isDate(a0) { // fn#16422, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:5338, offset: 0x00e4fa70, size: 39 bytes, params: 2, frame: 13
var r0;
var value;
const isObject_164212 = isObject_16421(a0);
if (isObject_164212) {
value = objectToString(a0);
value = value === '[object Date]';
r0 = value;
} else {
r0 = isObject_164212;
}
return r0;
}
function isError_16423(a0) { // fn#16423, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:5413, offset: 0x00e4fa97, size: 57 bytes, params: 2, frame: 13
var r0;
var value;
const isObject_164212 = isObject_16421(a0);
if (isObject_164212) {
value = objectToString(a0);
value = value === '[object Error]';
r0 = value || a0 instanceof global.Error;
} else {
r0 = isObject_164212;
}
return r0;
}
function format_16430(a0) { // fn#16430, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:241, offset: 0x00e4fb8d, size: 270 bytes, params: 2, frame: 21
var r2;
var r4;
var r10;
var r0;
var push;
var binding;
var value2;
var length;
var value4;
var replace;
var value5;
var value7;
var value8;
var value9;
var value10;
if (isString_16418(a0)) {
var env0_0 = 1;
var env0_1 = arguments;
length = arguments.length;
var env0_2 = length;
value4 = global.String(a0);
replace = value4.replace;
binding = env0_2;
value5 = Reflect.apply(replace, value4, [binding, _fun16431]);
if (env0_0 < length) {
r2 = value5;
r4 = arguments[env0_0];
reducibleLoop5: while (true) {
reducibleJoin9: while (true) {
reducibleJoin8: while (true) {
if (isNull(r4)) {
break reducibleJoin8;
}
if (isObject_16421(r4)) {
value7 = r2 + (' ' + inspect_16399(r4));
r10 = value7;
break reducibleJoin9;
}
break reducibleJoin8;
}
value8 = r2 + (' ' + r4);
r10 = value8;
break reducibleJoin9;
}
binding = env0_0;
value9 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
env0_0 = value9;
value10 = arguments[value9];
if (value9 < length) {
r2 = r10;
r4 = value10;
continue reducibleLoop5;
}
r0 = r10;
break reducibleLoop5;
}
} else {
r0 = value5;
}
return r0;
}
const items2 = [];
env0_0 = 0;
if (0 < arguments.length) {
reducibleLoop2: while (true) {
push = items2.push;
Reflect.apply(push, items2, [inspect_16399(arguments[env0_0])]);
binding = env0_0;
value2 = typeof binding === 'bigint' ? binding + 1n : +binding + 1;
env0_0 = value2;
if (value2 < arguments.length) {
continue reducibleLoop2;
}
break reducibleLoop2;
}
}
return items2.join(' ');
}
function deprecate(a0, a1) { // fn#16432, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:726, offset: 0x00e4fd68, size: 88 bytes, params: 3, frame: 6
const env0_0 = a0;
const env0_1 = a1;
let process = global.process;
if (typeof process === 'undefined') {
if (typeof global.process === 'undefined') {
return _fun16433;
}
} else {
process = global.process;
if (process.noDeprecation === true) {
return a0;
}
process = global.process;
if (typeof process === 'undefined') {
return _fun16433;
}
}
return deprecated;
}
function debuglog(a0) { // fn#16435, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:5704, offset: 0x00e4fe85, size: 106 bytes, params: 2, frame: 13
var binding;
var pid;
const value = a0.toUpperCase();
if (!env0_3[value]) {
binding = env0_4;
if (binding.test(value)) {
pid = global.process.pid;
env0_3[value] = _fun16436;
} else {
env0_3[value] = function() {
};
}
}
return env0_3[value];
}
function log_16441() { // fn#16441, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:7043, offset: 0x00e4ff8f, size: 223 bytes, params: 1, frame: 20
const console = global.console;
const log = console.log;
const Date = global.Date;
let date = new Date();
const padBinding = pad;
const getHours = date.getHours;
let items2 = [padBinding(Reflect.apply(getHours, date, []))];
const getMinutes = date.getMinutes;
items2[1] = padBinding(Reflect.apply(getMinutes, date, []));
const getSeconds = date.getSeconds;
items2[2] = padBinding(Reflect.apply(getSeconds, date, []));
const value4 = items2.join(':');
items2 = [date.getDate()];
let binding = env0_5;
const getMonth = date.getMonth;
items2[1] = binding[Reflect.apply(getMonth, date, [])];
items2[2] = value4;
date = items2.join(' ');
binding = env0_0;
Reflect.apply(log, console, ['%s - %s', date, binding.format.apply(binding, arguments)]);
}
function _extend(a0, a1) { // fn#16442, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:7299, offset: 0x00e5006e, size: 87 bytes, params: 3, frame: 14
var r2;
var value;
var Object;
var keys;
var length;
var value2;
var value3;
var property;
var value4;
var value5;
if (a1) {
value = environment;
reducibleJoin2: while (true) {
if (isObject_16421(a1)) {
Object = global.Object;
keys = Object.keys;
value = Reflect.apply(keys, Object, [a1]);
length = value.length;
value2 = typeof length === 'bigint' ? length : +length;
value3 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
if (value2) {
r2 = value3;
reducibleLoop4: while (true) {
property = value[r2];
a0[property] = a1[value[r2]];
value4 = typeof r2 === 'bigint' ? r2 : +r2;
value5 = typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1;
if (value4) {
r2 = value5;
continue reducibleLoop4;
}
break reducibleLoop4;
}
}
return a0;
}
break reducibleJoin2;
}
}
return a0;
}
function promisify(a0) { // fn#16443, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:7623, offset: 0x00e500c5, size: 291 bytes, params: 2, frame: 20
var Object;
var setPrototypeOf;
var Object2;
var property;
const env0_0 = a0;
const closure = value_16444;
if (typeof a0 !== 'function') {
throw new global.TypeError('The "original" argument must be of type Function');
}
if (env0_6) {
if (a0[env0_6]) {
property = a0[env0_6];
if (typeof property !== 'function') {
throw new global.TypeError('The "util.promisify.custom" argument must be of type Function');
}
Object = global.Object;
Object.defineProperty(property, env0_6, {'value': null, 'enumerable': false, 'writable': false,
'configurable': true, value: property});
return property;
}
Object = global.Object;
setPrototypeOf = Object.setPrototypeOf;
Object2 = global.Object;
Reflect.apply(setPrototypeOf, Object, [closure, Object2.getPrototypeOf(a0)]);
} else {
Object = global.Object;
setPrototypeOf = Object.setPrototypeOf;
Object2 = global.Object;
Reflect.apply(setPrototypeOf, Object, [closure, Object2.getPrototypeOf(a0)]);
}
if (env0_6) {
Object = global.Object;
Object.defineProperty(closure, env0_6, {'value': null, 'enumerable': false, 'writable': false,
'configurable': true,
value: closure});
}
Object = global.Object;
return Object.defineProperties(closure, env0_1(a0));
}
function callbackify(a0) { // fn#16447, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:8369, offset: 0x00e5028b, size: 132 bytes, params: 2, frame: 16
const env0_0 = a0;
const closure = callbackified;
if (typeof a0 !== 'function') {
throw new global.TypeError('The "original" argument must be of type Function');
}
let Object = global.Object;
const setPrototypeOf = Object.setPrototypeOf;
const Object2 = global.Object;
const getPrototypeOf = Object2.getPrototypeOf;
Reflect.apply(setPrototypeOf, Object, [closure, Reflect.apply(getPrototypeOf, Object2, [a0])]);
Object = global.Object;
Object.defineProperties(closure, env0_1(a0));
return closure;
}
function arrayToHash(a0) { // fn#16403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:2519, owner: formatValue.arrayToHash, offset: 0x00e4f5a3, size: 28 bytes, params: 2, frame: 12
a0.forEach(_fun16404);
return {};
}
function formatArray(a0, a1, a2, a3, a4) { // fn#16405, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:3455, owner: formatValue.formatArray, offset: 0x00e4f5bf, size: 169 bytes, params: 6, frame: 31
var r8;
var hasOwnProperty_16427Binding;
var String;
var push;
var formatPropertyBinding;
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const env0_3 = a3;
const items2 = [];
const length = a1.length;
let value = 0;
if (value < length) {
r8 = value;
while (true) {
hasOwnProperty_16427Binding = hasOwnProperty_16427;
String = global.String;
value = hasOwnProperty_16427Binding(a1, String(r8));
push = items2.push;
if (value) {
formatPropertyBinding = formatProperty;
String = global.String;
Reflect.apply(push, items2, [formatPropertyBinding(a0, a1, a2, a3, String(r8), true)]);
} else {
Reflect.apply(push, items2, ['']);
}
value = typeof r8 === 'bigint' ? r8 + 1n : +r8 + 1;
if (value < length) {
r8 = value;
continue;
}
break;
}
}
a4.forEach(_fun16406);
return items2;
}
function _fun16407(a0) { // fn#16407, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:3716, offset: 0x00e4f6be, size: 41 bytes, params: 2, frame: 21
return formatProperty(env0_0, require, importDefault, env0_3, a0, env0_4);
}
function reduceToSingleString(a0, a1, a2) { // fn#16408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:3779, owner: formatValue.reduceToSingleString, offset: 0x00e4f6e7, size: 165 bytes, params: 4, frame: 16
var property;
let value = a0.reduce(function(a0, a1) {
a1.indexOf('\n') >= 0;
return a0 + a1.replace(RegExp('\\u001b\\[\\d\\d?m', 'g'), '').length + 1;
}, 0);
if (value > 60) {
property = a2[0];
value = '';
value = property + (value === a1 ? value : a1 + '\n ');
value = value + ' ' + a0.join(',\n ');
property = a2[1];
return value + ' ' + property;
}
value = a2[0] + a1;
value = value + ' ' + a0.join(', ');
return value + ' ' + a2[1];
}
function _fun16433() { // fn#16433, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:846, offset: 0x00e4fdc0, size: 52 bytes, params: 1, frame: 14
const value = environment.__proto__;
const binding = env1_0;
return binding.deprecate(env0_0, require).apply(this, arguments);
}
function deprecated() { // fn#16434, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:921, owner: deprecate.deprecated, offset: 0x00e4fdf4, size: 145 bytes, params: 1, frame: 15
if (!env0_2) {
if (global.process.throwDeprecation) {
throw new global.Error(require);
}
var traceDeprecation = global.process.traceDeprecation;
var console = global.console;
if (traceDeprecation) {
console.trace(require);
} else {
console.error(require);
}
}
return env0_0.apply(this, arguments);
}
function _fun16436() { // fn#16436, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:5780, offset: 0x00e4feef, size: 68 bytes, params: 1, frame: 18
let value = environment.__proto__;
const binding = env1_0;
value = binding.format.apply(binding, arguments);
const console = global.console;
console.error('%s %d: %s', env0_0, pid, value);
}
function promisifyValue() { // fn#16444, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:7962, owner: promisify.value, offset: 0x00e501e8, size: 142 bytes, params: 1, frame: 18
var environment;
var r5;
var value3;
var value4;
var binding;
var error;
const Promise = global.Promise;
const promise = new Promise(function(a0, a1) {
env0_0 = a0;
env0_1 = a1;
});
const items2 = [];
const value2 = 0;
if (value2 < arguments.length) {
for (r5 = value2; true; r5 = value3) {
items2.push(arguments[r5]);
value3 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
if (!(value3 < arguments.length)) {
break;
}
}
}
items2.push(_fun16446);
try {
value4 = environment;
binding = env0_0;
binding.apply(this, items2);
} catch (error) {
env0_1(error);
}
return promise;
}
function callbackified() { // fn#16448, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:8489, owner: callbackify.callbackified, offset: 0x00e5030f, size: 163 bytes, params: 1, frame: 17
var r3;
var push;
const items2 = [];
let value = 0;
if (value < arguments.length) {
r3 = value;
reducibleLoop1: while (true) {
push = items2.push;
Reflect.apply(push, items2, [arguments[r3]]);
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (value < arguments.length) {
r3 = value;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
const env0_0 = items2.pop();
if (typeof value !== 'function') {
throw new global.TypeError('The last argument must be of type Function');
}
env0_0.apply(this, items2).then(function(a0) {
global.process.nextTick(cb.bind(null, null, a0));
}, function(a0) {
global.process.nextTick(callbackifyOnRejected.bind(null, a0, cb));
});
}
function _fun16406(a0) { // fn#16406, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:3625, offset: 0x00e4f668, size: 86 bytes, params: 2, frame: 23
var binding;
var push;
var value2;
if (!a0.match(RegExp('^\\d+$', ''))) {
binding = env0_4;
push = binding.push;
value2 = environment.__proto__.__proto__;
Reflect.apply(push, binding, [formatProperty(env0_0, require, importDefault, importAll, a0, true)]);
}
}
function _fun16446(a0, a1) { // fn#16446, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:8088, offset: 0x00d0781b, size: 40 bytes, params: 3, frame: 13
if (a0) {
env0_1(a0);
} else {
env0_0(a1);
}
}
function cb() { // fn#16449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1524:8692, owner: callbackify.callbackified.cb, offset: 0x00e503b2, size: 28 bytes, params: 1, frame: 14
return env0_0.apply(env0_1, arguments);
}