99 lines
3.3 KiB
React
99 lines
3.3 KiB
React
/* Metro module 7415; source: unknown; dependencies: [] */
|
|
function _fun59765(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59765, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7593:6, offset: 0x016f23c5, size: 52 bytes, params: 8, frame: 15
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.memoBuilder = function() {
|
|
var value = typeof global.WeakSet === 'function';
|
|
var env0_0 = value;
|
|
var env0_1 = value ? new global.WeakSet() : [];
|
|
return [_fun59767, _fun59768];
|
|
};
|
|
}
|
|
|
|
function memoBuilder() { // fn#59766, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7593:94, offset: 0x016f23f9, size: 88 bytes, params: 1, frame: 11
|
|
var items;
|
|
var weakSet;
|
|
const WeakSet = global.WeakSet;
|
|
if (typeof WeakSet === 'function') {
|
|
weakSet = new global.WeakSet();
|
|
} else {
|
|
items = [];
|
|
}
|
|
return [memoBuilderMemoize, unmemoize];
|
|
}
|
|
|
|
function memoBuilderMemoize(a0) { // fn#59767, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7593:176, owner: memoBuilder.memoize, offset: 0x016f2451, size: 118 bytes, params: 2, frame: 13
|
|
var r4;
|
|
var r0;
|
|
var value3;
|
|
var value4;
|
|
const resultBinding = result;
|
|
const binding = env0_1;
|
|
if (resultBinding) {
|
|
value4 = binding.has(a0);
|
|
if (value4) {
|
|
r0 = !!value4;
|
|
} else {
|
|
env0_1.add(a0);
|
|
r0 = false;
|
|
}
|
|
return r0;
|
|
}
|
|
let length = binding.length;
|
|
const value2 = 0;
|
|
if (value2 < length) {
|
|
r4 = value2;
|
|
loopExit2: while (true) {
|
|
if (env0_1[r4] === a0) {
|
|
return true;
|
|
}
|
|
value3 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = env0_1.length;
|
|
if (value3 < length) {
|
|
r4 = value3;
|
|
continue;
|
|
}
|
|
break loopExit2;
|
|
}
|
|
env0_1.push(a0);
|
|
} else {
|
|
env0_1.push(a0);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function unmemoize(a0) { // fn#59768, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7593:303, owner: memoBuilder.unmemoize, offset: 0x016f24c7, size: 99 bytes, params: 2, frame: 15
|
|
var r4;
|
|
var length;
|
|
var value2;
|
|
var value3;
|
|
var splice;
|
|
const resultBinding = result;
|
|
let binding = env0_1;
|
|
if (resultBinding) {
|
|
binding.delete(a0);
|
|
} else {
|
|
length = binding.length;
|
|
value2 = 0;
|
|
if (value2 < length) {
|
|
r4 = value2;
|
|
loopExit2: while (true) {
|
|
if (env0_1[r4] === a0) {
|
|
binding = env0_1;
|
|
splice = binding.splice;
|
|
Reflect.apply(splice, binding, [r4, 1]);
|
|
break loopExit2;
|
|
}
|
|
value3 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = env0_1.length;
|
|
if (value3 < length) {
|
|
r4 = value3;
|
|
continue;
|
|
}
|
|
break loopExit2;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|