96 lines
4.3 KiB
JavaScript
96 lines
4.3 KiB
JavaScript
/* Metro module 7486; source: unknown; dependencies: [] */
|
|
function _fun60374(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7664:6, offset: 0x017021f7, size: 52 bytes, params: 8, frame: 15
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.makeFifoCache = function(a0) {
|
|
var env0_0 = a0;
|
|
var env0_1 = [];
|
|
var env0_2 = {};
|
|
return {add: _fun60376, clear: _fun60377, get: _fun60378, size: _fun60379, delete: _fun60380};
|
|
};
|
|
function makeFifoCache_60375(a0) { // fn#60375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7664:96, offset: 0x0170222b, size: 73 bytes, params: 2, frame: 3
|
|
const env0_0 = a0;
|
|
let env0_1 = [];
|
|
let env0_2 = {};
|
|
return {add: add_60376, clear: function() {
|
|
env0_2 = {};
|
|
env0_1 = [];
|
|
}, get: get_60378, size: size_60379, delete: makeFifoCache_60375_delete};
|
|
function makeFifoCache_60375Add(a0, a1) { // fn#60376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7664:147, owner: makeFifoCache_60375.add, offset: 0x01702274, size: 118 bytes, params: 3, frame: 14
|
|
var binding;
|
|
var value2;
|
|
let length = env0_1.length;
|
|
if (length >= env0_0) {
|
|
while (true) {
|
|
binding = env0_1;
|
|
value2 = binding.shift();
|
|
if (value2 !== undefined) {
|
|
delete env0_2[value2];
|
|
}
|
|
length = env0_1.length;
|
|
if (length >= env0_0) {
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
if (env0_2[a0]) {
|
|
this.delete(a0);
|
|
}
|
|
env0_1.push(a0);
|
|
env0_2[a0] = a1;
|
|
}
|
|
|
|
function makeFifoCache_60375Clear() { // fn#60377, owner: makeFifoCache_60375.clear, offset: 0x00dcf422, size: 21 bytes, params: 1, frame: 2
|
|
env0_2 = {};
|
|
env0_1 = [];
|
|
}
|
|
|
|
function makeFifoCache_60375Get(a0) { // fn#60378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7664:301, owner: makeFifoCache_60375.get, offset: 0x00dcf437, size: 16 bytes, params: 2, frame: 2
|
|
return env0_2[a0];
|
|
}
|
|
|
|
function makeFifoCache_60375Size() { // fn#60379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7664:335, owner: makeFifoCache_60375.size, offset: 0x00dcf447, size: 14 bytes, params: 1, frame: 1
|
|
return env0_1.length;
|
|
}
|
|
|
|
function makeFifoCache_60375_delete(a0) { // fn#60380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7664:375, owner: makeFifoCache_60375._delete, offset: 0x00dcf455, size: 103 bytes, params: 2, frame: 14
|
|
var r2;
|
|
var length;
|
|
var value2;
|
|
var value3;
|
|
var binding;
|
|
var splice;
|
|
if (env0_2[a0]) {
|
|
delete env0_2[a0];
|
|
length = env0_1.length;
|
|
value2 = 0;
|
|
if (value2 < length) {
|
|
r2 = value2;
|
|
loopExit3: while (true) {
|
|
if (env0_1[r2] === a0) {
|
|
binding = env0_1;
|
|
splice = binding.splice;
|
|
Reflect.apply(splice, binding, [r2, 1]);
|
|
break loopExit3;
|
|
}
|
|
value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = env0_1.length;
|
|
if (value3 < length) {
|
|
r2 = value3;
|
|
continue;
|
|
}
|
|
break loopExit3;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun60374, 7486, []) /* metro module 7486 */;
|