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

209 lines
6.8 KiB
React

/* Metro module 560; source: unknown; dependencies: [65] */
function _fun6764(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6764, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:610:6, offset: 0x00d082d9, size: 134 bytes, params: 8, frame: 15
var r6;
const _arrayLikeToArray_6773 = function(a0, a1) {
var r0;
var r1;
var r2;
var value3;
var property;
var value6;
var value = undefined;
var value2 = value == null;
reducibleJoin2: while (true) {
if (value2) {
r0 = value2;
break reducibleJoin2;
}
value3 = value > a0.length;
r0 = value3;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r0) {
property = a0.length;
r1 = property;
break reducibleJoin4;
}
r1 = value;
break reducibleJoin4;
}
var value4 = new global.Array();
var value5 = 0;
if (value5 < r1) {
r2 = value5;
reducibleLoop5: while (true) {
value4[r2] = a0[r2];
value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value6 < r1) {
r2 = value6;
continue reducibleLoop5;
}
break reducibleLoop5;
}
}
return value4;
};
const closure = function() {
this._defaults = [];
};
let value = 0;
const env0_0 = require(dependencyMap[value]);
const closure2 = _loop_6775;
var env0_1;
const items2 = ['use', 'on', 'once', 'set', 'query', 'type', 'accept', 'auth', 'withCredentials', 'sortQuery',
'retry', 'ok', 'redirects', 'timeout', 'buffer', 'serialize', 'parse', 'ca', 'key', 'pfx', 'cert',
'disableTLSCerts'];
let length = items2.length;
if (value < length) {
for (r6 = value; true; r6 = value) {
closure2();
value = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
env0_1 = value;
length = items2.length;
if (!(value < length)) {
break;
}
}
}
closure.prototype._setDefaults = _setDefaults;
module.exports = closure;
}
function _createForOfIteratorHelper_6765(a0, a1) { // fn#6765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:610:61, offset: 0x00d0835f, size: 443 bytes, params: 3, frame: 18
var r7;
var value3;
var regexp;
var closure;
const env0_0 = a0;
const Symbol = global.Symbol;
let r2 = typeof Symbol !== 'undefined' && a0[global.Symbol.iterator];
r2 = !r2 ? a0['@@iterator'] : r2;
const env0_1 = r2;
if (r2) {
return {s: s_6769, n: n_6770, e: function(a0) {
env0_5 = true;
env0_3 = a0;
}, f: f_6772};
}
const Array = global.Array;
if (Array.isArray(a0)) {
if (env0_1) {
}
closure = function() {
};
return {s: closure, n: n_6767, e: e_6768, f: closure};
}
value = undefined;
if (a0) {
if (typeof a0 === 'string') {
value = _arrayLikeToArray_6773(a0, value);
r2 = value;
} else {
value3 = global.Object.prototype.toString.call(a0).slice(8, -1);
r7 = value3 === 'Object' && a0.constructor ? a0.constructor.name : value3;
if (r7 === 'Map') {
r2 = global.Array.from(a0);
} else if (r7 === 'Set') {
r2 = global.Array.from(a0);
} else if (r7 === 'Arguments') {
value = _arrayLikeToArray_6773(a0, value);
r2 = value;
} else {
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
if (regexp.test(r7)) {
value = _arrayLikeToArray_6773(a0, value);
r2 = value;
} else {
r2 = value;
}
}
}
} else {
r2 = value;
}
if (r2) {
if (r2) {
}
closure = function() {
};
return {s: closure, n: n_6767, e: e_6768, f: closure};
}
const TypeError = global.TypeError;
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
}
function _loop_6775() { // fn#6775, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:610:1265, offset: 0x00d0852b, size: 43 bytes, params: 1, frame: 4
exports_6774.prototype[env0_2[env0_1]] = _fun6776;
}
function _setDefaults(a0) { // fn#6777, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:610:1691, offset: 0x00d085ba, size: 183 bytes, params: 2, frame: 19
var r5;
var value3;
var done;
var value4;
var fn;
var property;
var apply;
var binding;
var args;
var value5;
var value6;
var error;
const value2 = _createForOfIteratorHelper_6765(this._defaults);
try {
try {
value2.s();
value3 = value2.n();
done = value3.done;
if (!done) {
r5 = value3;
while (true) {
value4 = r5.value;
fn = value4.fn;
property = a0[fn];
apply = property.apply;
binding = env0_0;
args = value4.args;
value5 = binding(args);
Reflect.apply(apply, property, [a0, value5]);
value6 = value2.n();
done = value6.done;
if (done) {
break;
}
r5 = value6;
continue;
}
}
} catch (error) {
value2.e(error);
}
} catch (error) {
value2.f();
throw error;
}
value2.f();
}
function _fun6776() { // fn#6776, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:610:1312, offset: 0x00d08556, size: 100 bytes, params: 1, frame: 14
var r1;
var value5;
const length = arguments.length;
const Array = global.Array;
const array = new Array(length);
const value4 = 0;
if (value4 < length) {
for (r1 = value4; true; r1 = value5) {
array[r1] = arguments[r1];
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value5 < length)) {
break;
}
}
}
this._defaults.push({fn: env0_0, args: array});
return this;
}