198 lines
7.6 KiB
React
198 lines
7.6 KiB
React
/* Metro module 98; source: unknown; dependencies: [6, 7, 99, 100] */
|
|
function _fun1562(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#1562, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:6, offset: 0x00c61c79, size: 134 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
|
const env0_2 = importDefault(99) /* metro dependency 99 */;
|
|
const env0_3 = (importDefault(100) /* metro dependency 100 */)('registry');
|
|
exports.default = _fun1563();
|
|
}
|
|
|
|
function _fun1563() { // fn#1563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:150, offset: 0x00c61cff, size: 124 bytes, params: 1, frame: 15
|
|
return env0_1(EventEmitter_1564, [{key: 'addListener', value: value_1565}, {key: 'emit', value: value_1567},
|
|
{key: 'removeAllListeners', value: value_1568}, {key: 'listenerCount', value: value_1569}]);
|
|
}
|
|
|
|
function EventEmitter_1564() { // fn#1564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:171, offset: 0x00c61d7b, size: 80 bytes, params: 1, frame: 18
|
|
const value = environment.__proto__;
|
|
let binding = env1_0;
|
|
binding(this, EventEmitter_1564);
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
binding = env1_3;
|
|
Reflect.apply(defineProperty, Object, [this, binding, {writable: true, value: undefined}]);
|
|
env1_2(this, binding)[binding] = {};
|
|
}
|
|
|
|
function value_1565(a0, a1, a2) { // fn#1565, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:317, offset: 0x00c61dcb, size: 170 bytes, params: 4, frame: 16
|
|
var environment;
|
|
var r2;
|
|
var set;
|
|
if (typeof a1 !== 'function') {
|
|
throw new global.TypeError('EventEmitter.addListener(...): 2nd argument must be a function.');
|
|
}
|
|
const value = environment.__proto__;
|
|
const binding = env1_2;
|
|
const binding2 = env1_3;
|
|
const property = binding(this, binding2)[binding2];
|
|
const property2 = property[a0];
|
|
if (property2 != null) {
|
|
r2 = property2;
|
|
} else {
|
|
set = new global.Set();
|
|
property[a0] = set;
|
|
r2 = set;
|
|
}
|
|
const object2 = {context: a2, listener: a1, remove: remove_1566};
|
|
r2.add(object2);
|
|
return object2;
|
|
}
|
|
|
|
function value_1567(a0) { // fn#1567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:651, offset: 0x00c61e8e, size: 197 bytes, params: 2, frame: 20
|
|
var r2;
|
|
var value;
|
|
var binding;
|
|
var binding2;
|
|
var property;
|
|
var Array;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var prototype;
|
|
var value5;
|
|
var array;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var from;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var listener;
|
|
var apply;
|
|
var context;
|
|
var error;
|
|
exceptionSkip12: while (true) {
|
|
exceptionLanding12: while (true) {
|
|
value = environment.__proto__;
|
|
binding = env1_2;
|
|
binding2 = env1_3;
|
|
property = binding(this, binding2)[binding2];
|
|
property = property[a0];
|
|
reducibleJoin13: while (true) {
|
|
if (property == null) {
|
|
break reducibleJoin13;
|
|
}
|
|
value = arguments.length;
|
|
Array = global.Array;
|
|
value2 = 1;
|
|
value3 = 0;
|
|
reducibleJoin3: while (true) {
|
|
if (value > value2) {
|
|
value4 = value - value2;
|
|
r2 = value4;
|
|
break reducibleJoin3;
|
|
}
|
|
r2 = value3;
|
|
break reducibleJoin3;
|
|
}
|
|
prototype = Array.prototype;
|
|
value5 = Object.create(prototype, {constructor: {value: Array}});
|
|
array = new Array();
|
|
value6 = array instanceof Object ? array : value5;
|
|
if (value2 < value) {
|
|
r2 = value2;
|
|
reducibleLoop4: while (true) {
|
|
value7 = r2 - value2;
|
|
value6[value7] = arguments[r2];
|
|
value8 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value8 < value) {
|
|
r2 = value8;
|
|
continue reducibleLoop4;
|
|
}
|
|
break reducibleLoop4;
|
|
}
|
|
}
|
|
Array = global.Array;
|
|
from = Array.from;
|
|
iterator = Reflect.apply(from, Array, [property])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r2 = iterator;
|
|
reducibleLoop6: while (true) {
|
|
item2 = Reflect.apply(iterator2, r2, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r2;
|
|
if (item2 === undefined) {
|
|
break reducibleJoin13;
|
|
}
|
|
try {
|
|
listener = item.listener;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
apply = listener.apply;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
context = item.context;
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
try {
|
|
Reflect.apply(apply, listener, [context, value6]);
|
|
} catch (error) {
|
|
break exceptionLanding12;
|
|
}
|
|
r2 = item2;
|
|
continue reducibleLoop6;
|
|
}
|
|
}
|
|
return undefined;
|
|
break exceptionSkip12;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip12;
|
|
}
|
|
}
|
|
|
|
function value_1568(a0) { // fn#1568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:876, offset: 0x00c61f53, size: 70 bytes, params: 2, frame: 14
|
|
var value;
|
|
var binding;
|
|
var binding2;
|
|
var binding3;
|
|
if (a0 == null) {
|
|
value = environment.__proto__;
|
|
binding = env1_2;
|
|
binding3 = env1_3;
|
|
value = binding(this, binding3);
|
|
value[binding3] = {};
|
|
} else {
|
|
value = environment.__proto__;
|
|
binding = env1_2;
|
|
binding2 = env1_3;
|
|
delete binding(this, binding2)[binding2][a0];
|
|
}
|
|
}
|
|
|
|
function value_1569(a0) { // fn#1569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:983, offset: 0x00c61f99, size: 51 bytes, params: 2, frame: 13
|
|
const value = environment.__proto__;
|
|
const binding = env1_2;
|
|
const binding2 = env1_3;
|
|
let property = binding(this, binding2)[binding2];
|
|
property = property[a0];
|
|
return property == null ? 0 : property.size;
|
|
}
|
|
|
|
function value_1565Remove() { // fn#1566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:123:581, owner: value_1565.remove, offset: 0x00c61e75, size: 25 bytes, params: 1, frame: 11
|
|
env0_0.delete(env0_1);
|
|
}
|
|
|