808 lines
30 KiB
React
808 lines
30 KiB
React
/* Metro module 639; source: unknown; dependencies: [] */
|
|
function _fun7267(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#7267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:6, offset: 0x00d131e6, size: 630 bytes, params: 8, frame: 18
|
|
const closure = function() {
|
|
exports_7268.init.call(this);
|
|
};
|
|
const checkListener = function(a0) {
|
|
var TypeError;
|
|
var value2;
|
|
var value = typeof a0;
|
|
if (value !== 'function') {
|
|
TypeError = global.TypeError;
|
|
value2 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
|
|
value = 'The "listener" argument must be of type Function. Received type ' + value;
|
|
value = new TypeError(value);
|
|
value = value instanceof Object ? value : value2;
|
|
throw value;
|
|
}
|
|
};
|
|
const _getMaxListeners = function(a0) {
|
|
return a0._maxListeners === undefined ? exports_7268.defaultMaxListeners : a0._maxListeners;
|
|
};
|
|
const onceWrapper = function() {
|
|
if (this.fired) {
|
|
return undefined;
|
|
}
|
|
this.target.removeListener(this.type, this.wrapFn);
|
|
this.fired = true;
|
|
return arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
|
};
|
|
const closure2 = function(a0) {
|
|
var property = this._events;
|
|
if (property !== undefined) {
|
|
property = property[a0];
|
|
if (typeof property === 'function') {
|
|
return 1;
|
|
}
|
|
if (property !== undefined) {
|
|
return property.length;
|
|
}
|
|
}
|
|
return 0;
|
|
};
|
|
const arrayClone = function(a0, a1) {
|
|
var r1;
|
|
var value4;
|
|
var Array = global.Array;
|
|
var value2 = new Array(a1);
|
|
var value3 = 0;
|
|
if (value3 < a1) {
|
|
for (r1 = value3; true; r1 = value4) {
|
|
value2[r1] = a0[r1];
|
|
value4 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value4 < a1)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value2;
|
|
};
|
|
let Reflect = global.Reflect;
|
|
Reflect = typeof Reflect !== 'object' ? null : global.Reflect;
|
|
let r5 = Reflect ? typeof Reflect.apply === 'function' ? Reflect.apply : function(a0, a1, a2) {
|
|
return global.Function.prototype.apply.call(a0, a1, a2);
|
|
} : ReflectApply;
|
|
r5 = Reflect ? typeof Reflect.ownKeys === 'function' ? Reflect.ownKeys : global.Object.getOwnPropertySymbols ? function(a0) {
|
|
var Object = global.Object;
|
|
var value = Object.getOwnPropertyNames(a0);
|
|
Object = global.Object;
|
|
return value.concat(Object.getOwnPropertySymbols(a0));
|
|
} : ReflectOwnKeys_7281 : global.Object.getOwnPropertySymbols ? ReflectOwnKeys : ReflectOwnKeys_7281;
|
|
const Number = global.Number;
|
|
r5 = Number.isNaN || (function(a0) {
|
|
return a0 != a0;
|
|
});
|
|
module.exports = closure;
|
|
module.exports.once = function(a0, a1) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var Promise = global.Promise;
|
|
var value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
var value2 = new Promise(_fun7284);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
closure.EventEmitter = closure;
|
|
let prototype = closure.prototype;
|
|
prototype._events = undefined;
|
|
closure.prototype._eventsCount = 0;
|
|
closure.prototype._maxListeners = undefined;
|
|
let Object = global.Object;
|
|
Object.defineProperty(closure, 'defaultMaxListeners', {enumerable: true, get: get_7287, set: set_7288});
|
|
closure.init = function() {
|
|
var value = undefined;
|
|
if (!(value !== this._events && this._events !== global.Object.getPrototypeOf(this)._events)) {
|
|
this._events = global.Object.create(null);
|
|
this._eventsCount = 0;
|
|
}
|
|
this._maxListeners = this._maxListeners || value;
|
|
return value;
|
|
};
|
|
closure.prototype.setMaxListeners = setMaxListeners;
|
|
closure.prototype.getMaxListeners = function() {
|
|
return _getMaxListeners(this);
|
|
};
|
|
closure.prototype.emit = emit_7292;
|
|
closure.prototype.addListener = function(a0, a1) {
|
|
_addListener(this, a0, a1, false);
|
|
return this;
|
|
};
|
|
closure.prototype.on = closure.prototype.addListener;
|
|
closure.prototype.prependListener = function(a0, a1) {
|
|
_addListener(this, a0, a1, true);
|
|
return this;
|
|
};
|
|
closure.prototype.once = function(a0, a1) {
|
|
checkListener(a1);
|
|
this.on(a0, _onceWrap(this, a0, a1));
|
|
return this;
|
|
};
|
|
closure.prototype.prependOnceListener = function(a0, a1) {
|
|
checkListener(a1);
|
|
this.prependListener(a0, _onceWrap(this, a0, a1));
|
|
return this;
|
|
};
|
|
closure.prototype.removeListener = removeListener;
|
|
prototype = closure.prototype;
|
|
var removeListener = closure.prototype.removeListener;
|
|
prototype.off = removeListener;
|
|
closure.prototype.removeAllListeners = removeAllListeners;
|
|
closure.prototype.listeners = function(a0) {
|
|
return _listeners(this, a0, true);
|
|
};
|
|
closure.prototype.rawListeners = function(a0) {
|
|
return _listeners(this, a0, false);
|
|
};
|
|
closure.listenerCount = listenerCount_7301;
|
|
closure.prototype.listenerCount = closure2;
|
|
closure.prototype.eventNames = eventNames;
|
|
}
|
|
|
|
function _addListener(a0, a1, a2, a3) { // fn#7271, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:1478, offset: 0x00d134da, size: 447 bytes, params: 5, frame: 21
|
|
var r1;
|
|
var r9;
|
|
var r5;
|
|
var property;
|
|
var value4;
|
|
var items2;
|
|
var length;
|
|
var Error;
|
|
var value6;
|
|
var error;
|
|
var _eventsCount;
|
|
let value = a2;
|
|
const checkListenerBinding = checkListener;
|
|
const value3 = undefined;
|
|
checkListenerBinding(value);
|
|
let _events = a0._events;
|
|
if (value3 === _events) {
|
|
value4 = global.Object.create(null);
|
|
a0._events = value4;
|
|
a0._eventsCount = 0;
|
|
r1 = value4;
|
|
r9 = value3;
|
|
} else {
|
|
if (value3 !== _events.newListener) {
|
|
a0.emit('newListener', a1, value.listener || value);
|
|
_events = a0._events;
|
|
}
|
|
property = _events[a1];
|
|
r1 = _events;
|
|
r9 = property;
|
|
}
|
|
if (value3 === r9) {
|
|
r1[a1] = value;
|
|
_eventsCount = a0._eventsCount;
|
|
a0._eventsCount = typeof _eventsCount === 'bigint' ? _eventsCount + 1n : +_eventsCount + 1;
|
|
} else {
|
|
if (typeof r9 === 'function') {
|
|
items2 = [];
|
|
if (a3) {
|
|
items2[0] = value;
|
|
items2[1] = r9;
|
|
} else {
|
|
items2[0] = r9;
|
|
items2[1] = value;
|
|
}
|
|
r1[a1] = items2;
|
|
r5 = items2;
|
|
} else if (a3) {
|
|
r9.unshift(value);
|
|
r5 = r9;
|
|
} else {
|
|
r9.push(value);
|
|
r5 = r9;
|
|
}
|
|
value = _getMaxListeners(a0);
|
|
if (value > 0) {
|
|
length = r5.length;
|
|
if (length > value) {
|
|
if (!r5.warned) {
|
|
r5.warned = true;
|
|
Error = global.Error;
|
|
length = r5.length;
|
|
value = 'Possible EventEmitter memory leak detected. ' + length;
|
|
value = value + ' ' + global.String(a1);
|
|
value6 = Object.create(Error.prototype, {constructor: {value: Error}});
|
|
value += ' listeners added. Use emitter.setMaxListeners() to increase limit';
|
|
error = new Error(value);
|
|
value = error instanceof Object ? error : value6;
|
|
value.name = 'MaxListenersExceededWarning';
|
|
value.emitter = a0;
|
|
value.type = a1;
|
|
length = r5.length;
|
|
value.count = length;
|
|
r5 = global.console && global.console.warn;
|
|
if (r5) {
|
|
global.console.warn(value);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _onceWrap(a0, a1, a2) { // fn#7273, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:2400, offset: 0x00d1370c, size: 70 bytes, params: 4, frame: 12
|
|
const object2 = {fired: false, wrapFn: undefined, target: a0, type: a1, listener: a2};
|
|
const value = onceWrapper.bind(object2);
|
|
value.listener = a2;
|
|
object2.wrapFn = value;
|
|
return value;
|
|
}
|
|
|
|
function _listeners({_events}, a1, a2) { // fn#7274, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:2539, offset: 0x00d13752, size: 210 bytes, params: 4, frame: 16
|
|
var r4;
|
|
var r3;
|
|
var r0;
|
|
var length;
|
|
var Array;
|
|
var array;
|
|
var value2;
|
|
var listener;
|
|
var property2;
|
|
var value3;
|
|
if (_events === undefined) {
|
|
return [];
|
|
}
|
|
const property = _events[a1];
|
|
if (property === undefined) {
|
|
r0 = [];
|
|
} else if (typeof property === 'function') {
|
|
r0 = a2 ? [property.listener || property] : [property];
|
|
} else if (a2) {
|
|
Array = global.Array;
|
|
length = property.length;
|
|
array = new Array();
|
|
length = array.length;
|
|
value2 = 0;
|
|
if (value2 < length) {
|
|
r4 = value2;
|
|
while (true) {
|
|
listener = property[r4].listener;
|
|
if (listener) {
|
|
r3 = listener;
|
|
} else {
|
|
property2 = property[r4];
|
|
r3 = property2;
|
|
}
|
|
array[r4] = r3;
|
|
value3 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
|
|
length = array.length;
|
|
if (value3 < length) {
|
|
r4 = value3;
|
|
continue;
|
|
}
|
|
r0 = array;
|
|
break;
|
|
}
|
|
} else {
|
|
r0 = array;
|
|
}
|
|
} else {
|
|
r0 = arrayClone(property, property.length);
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function eventTargetAgnosticAddListener(a0, a1, a2, a3) { // fn#7277, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:3042, offset: 0x00d13898, size: 165 bytes, params: 5, frame: 17
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
const env0_3 = a3;
|
|
if (typeof a0.on === 'function') {
|
|
if (a3.once) {
|
|
a0.once(a1, a2);
|
|
} else {
|
|
a0.on(a1, a2);
|
|
}
|
|
} else {
|
|
if (typeof a0.addEventListener !== 'function') {
|
|
throw new global.TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof a0);
|
|
}
|
|
a0.addEventListener(a1, wrapListener);
|
|
}
|
|
}
|
|
|
|
function ReflectApply(a0, a1, a2) { // fn#7279, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:131, offset: 0x00d13975, size: 41 bytes, params: 4, frame: 15
|
|
const Function = global.Function;
|
|
return Function.prototype.apply.call(a0, a1, a2);
|
|
}
|
|
|
|
function ReflectOwnKeys(a0) { // fn#7280, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:278, offset: 0x00d1399e, size: 51 bytes, params: 2, frame: 13
|
|
let Object = global.Object;
|
|
const ownPropertyNames = Object.getOwnPropertyNames(a0);
|
|
const concat = ownPropertyNames.concat;
|
|
Object = global.Object;
|
|
const getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
return Reflect.apply(concat, ownPropertyNames, [Reflect.apply(getOwnPropertySymbols, Object, [a0])]);
|
|
}
|
|
|
|
function ReflectOwnKeys_7281(a0) { // fn#7281, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:383, offset: 0x00d139d1, size: 24 bytes, params: 2, frame: 11
|
|
const Object = global.Object;
|
|
return Object.getOwnPropertyNames(a0);
|
|
}
|
|
|
|
function once_7283(a0, a1) { // fn#7283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:598, offset: 0x00d139e9, size: 51 bytes, params: 3, frame: 11
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const Promise = global.Promise;
|
|
const value = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
|
const promise = new Promise(_fun7284);
|
|
return promise instanceof Object ? promise : value;
|
|
}
|
|
|
|
function set_7288(a0) { // fn#7288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:3500, offset: 0x00d13b2e, size: 91 bytes, params: 2, frame: 12
|
|
var value;
|
|
var RangeError;
|
|
var value2;
|
|
var rangeError;
|
|
if (typeof a0 !== 'number') {
|
|
RangeError = global.RangeError;
|
|
value = 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a0;
|
|
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
|
|
value += '.';
|
|
rangeError = new RangeError();
|
|
value = rangeError instanceof Object ? rangeError : value2;
|
|
throw value;
|
|
}
|
|
if (a0 < 0) {
|
|
RangeError = global.RangeError;
|
|
value = 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a0;
|
|
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
|
|
value += '.';
|
|
rangeError = new RangeError();
|
|
value = rangeError instanceof Object ? rangeError : value2;
|
|
throw value;
|
|
}
|
|
if (env0_2(a0)) {
|
|
RangeError = global.RangeError;
|
|
value = 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + a0;
|
|
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
|
|
value += '.';
|
|
rangeError = new RangeError();
|
|
value = rangeError instanceof Object ? rangeError : value2;
|
|
throw value;
|
|
}
|
|
env0_3 = a0;
|
|
}
|
|
|
|
function setMaxListeners(a0) { // fn#7290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:3927, offset: 0x00d13bf6, size: 96 bytes, params: 2, frame: 12
|
|
var value;
|
|
var RangeError;
|
|
var value2;
|
|
var rangeError;
|
|
if (typeof a0 !== 'number') {
|
|
RangeError = global.RangeError;
|
|
value = 'The value of "n" is out of range. It must be a non-negative number. Received ' + a0;
|
|
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
|
|
value += '.';
|
|
rangeError = new RangeError();
|
|
value = rangeError instanceof Object ? rangeError : value2;
|
|
throw value;
|
|
}
|
|
if (a0 < 0) {
|
|
RangeError = global.RangeError;
|
|
value = 'The value of "n" is out of range. It must be a non-negative number. Received ' + a0;
|
|
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
|
|
value += '.';
|
|
rangeError = new RangeError();
|
|
value = rangeError instanceof Object ? rangeError : value2;
|
|
throw value;
|
|
}
|
|
if (env0_2(a0)) {
|
|
RangeError = global.RangeError;
|
|
value = 'The value of "n" is out of range. It must be a non-negative number. Received ' + a0;
|
|
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
|
|
value += '.';
|
|
rangeError = new RangeError();
|
|
value = rangeError instanceof Object ? rangeError : value2;
|
|
throw value;
|
|
}
|
|
this._maxListeners = a0;
|
|
return this;
|
|
}
|
|
|
|
function emit_7292(a0) { // fn#7292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:4255, offset: 0x00d13c69, size: 305 bytes, params: 2, frame: 20
|
|
var r5;
|
|
var r6;
|
|
var r1;
|
|
var r0;
|
|
var r4;
|
|
var push;
|
|
var value3;
|
|
var error;
|
|
var value5;
|
|
var property;
|
|
var length;
|
|
var value7;
|
|
var value8;
|
|
var binding;
|
|
var value9;
|
|
var Error;
|
|
var message;
|
|
let value = undefined;
|
|
const items2 = [];
|
|
const value2 = 1;
|
|
if (value2 < arguments.length) {
|
|
r5 = value2;
|
|
reducibleLoop1: while (true) {
|
|
push = items2.push;
|
|
Reflect.apply(push, items2, [arguments[r5]]);
|
|
value3 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
|
|
if (value3 < arguments.length) {
|
|
r5 = value3;
|
|
continue reducibleLoop1;
|
|
}
|
|
break reducibleLoop1;
|
|
}
|
|
}
|
|
const value4 = a0 === 'error';
|
|
const _events = this._events;
|
|
if (value !== _events) {
|
|
reducibleJoin7: while (true) {
|
|
if (value4) {
|
|
error = _events.error;
|
|
value5 = value === error;
|
|
r6 = value5;
|
|
break reducibleJoin7;
|
|
}
|
|
r6 = value4;
|
|
break reducibleJoin7;
|
|
}
|
|
r5 = r6;
|
|
} else {
|
|
reducibleJoin8: while (true) {
|
|
if (!value4) {
|
|
return false;
|
|
}
|
|
r5 = value4;
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
if (r5) {
|
|
reducibleJoin18: while (true) {
|
|
if (items2.length > 0) {
|
|
property = items2[0];
|
|
r0 = property;
|
|
break reducibleJoin18;
|
|
}
|
|
r0 = value;
|
|
break reducibleJoin18;
|
|
}
|
|
Error = global.Error;
|
|
if (r0 instanceof Error) {
|
|
throw r0;
|
|
}
|
|
Error = global.Error;
|
|
value = '';
|
|
reducibleJoin21: while (true) {
|
|
if (r0) {
|
|
message = r0.message;
|
|
value = ' (' + message + ')';
|
|
r4 = value;
|
|
break reducibleJoin21;
|
|
}
|
|
r4 = value;
|
|
break reducibleJoin21;
|
|
}
|
|
error = new Error('Unhandled error.' + r4);
|
|
error.context = r0;
|
|
throw error;
|
|
}
|
|
property = _events[a0];
|
|
if (value === property) {
|
|
return false;
|
|
}
|
|
if (typeof property === 'function') {
|
|
env0_1(property, this, items2);
|
|
} else {
|
|
length = property.length;
|
|
value7 = arrayClone(property, length);
|
|
value8 = 0;
|
|
if (value8 < length) {
|
|
r1 = value8;
|
|
reducibleLoop12: while (true) {
|
|
binding = env0_1;
|
|
binding(value7[r1], this, items2);
|
|
value9 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value9 < length) {
|
|
r1 = value9;
|
|
continue reducibleLoop12;
|
|
}
|
|
break reducibleLoop12;
|
|
}
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
function removeListener(a0, a1) { // fn#7297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:5272, offset: 0x00d13e34, size: 384 bytes, params: 3, frame: 24
|
|
var r12;
|
|
var listener;
|
|
var r11;
|
|
var r7;
|
|
var r2;
|
|
var length;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var pop;
|
|
var shift;
|
|
var removeListener;
|
|
var emit;
|
|
var Object;
|
|
const value = a1;
|
|
const checkListenerBinding = checkListener;
|
|
const value3 = undefined;
|
|
checkListenerBinding(value);
|
|
const _events = this._events;
|
|
if (value3 !== _events) {
|
|
var property = _events[a0];
|
|
if (value3 === property) {
|
|
return this;
|
|
}
|
|
if (property !== value) {
|
|
listener = property.listener;
|
|
reducibleJoin22: while (true) {
|
|
if (listener !== value) {
|
|
if (typeof property !== 'function') {
|
|
length = property.length;
|
|
value4 = length - 1;
|
|
value5 = -1;
|
|
if (value4 >= 0) {
|
|
r12 = value4;
|
|
reducibleLoop6: while (true) {
|
|
if (property[r12] === value) {
|
|
listener = property[r12].listener;
|
|
r11 = r12;
|
|
break reducibleLoop6;
|
|
}
|
|
listener = property[r12].listener;
|
|
if (listener === value) {
|
|
listener = property[r12].listener;
|
|
r11 = r12;
|
|
break reducibleLoop6;
|
|
}
|
|
value6 = typeof r12 === 'bigint' ? r12 - 1n : +r12 - 1;
|
|
if (value6 >= 0) {
|
|
r12 = value6;
|
|
continue reducibleLoop6;
|
|
}
|
|
listener = value3;
|
|
r11 = value5;
|
|
break reducibleLoop6;
|
|
}
|
|
} else {
|
|
listener = value3;
|
|
r11 = value5;
|
|
}
|
|
if (r11 < 0) {
|
|
return this;
|
|
}
|
|
if (r11 === 0) {
|
|
shift = property.shift;
|
|
Reflect.apply(shift, property, []);
|
|
} else {
|
|
value7 = r11 + 1;
|
|
length = property.length;
|
|
if (value7 < length) {
|
|
reducibleLoop13: while (true) {
|
|
property[r11] = property[r11 + 1];
|
|
value8 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
|
|
value9 = value8 + 1;
|
|
length = property.length;
|
|
if (value9 < length) {
|
|
r11 = value8;
|
|
continue reducibleLoop13;
|
|
}
|
|
break reducibleLoop13;
|
|
}
|
|
}
|
|
pop = property.pop;
|
|
Reflect.apply(pop, property, []);
|
|
}
|
|
length = property.length;
|
|
reducibleJoin18: while (true) {
|
|
if (length !== 1) {
|
|
break reducibleJoin18;
|
|
}
|
|
_events[a0] = property[0];
|
|
break reducibleJoin18;
|
|
}
|
|
removeListener = _events.removeListener;
|
|
reducibleJoin27: while (true) {
|
|
if (value3 === removeListener) {
|
|
break reducibleJoin27;
|
|
}
|
|
emit = this.emit;
|
|
r7 = listener || value;
|
|
Reflect.apply(emit, this, ['removeListener', a0, r7]);
|
|
break reducibleJoin27;
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
break reducibleJoin22;
|
|
}
|
|
}
|
|
var _eventsCount = this._eventsCount;
|
|
var value10 = typeof _eventsCount === 'bigint' ? _eventsCount - 1n : +_eventsCount - 1;
|
|
this._eventsCount = value10;
|
|
if (value10 == 0) {
|
|
Object = global.Object;
|
|
this._events = Object.create(null);
|
|
} else {
|
|
delete _events[a0];
|
|
reducibleJoin27: while (true) {
|
|
if (_events.removeListener) {
|
|
emit = this.emit;
|
|
listener = property.listener;
|
|
r2 = listener || value;
|
|
Reflect.apply(emit, this, ['removeListener', a0, r2]);
|
|
break reducibleJoin27;
|
|
}
|
|
break reducibleJoin27;
|
|
}
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function removeAllListeners(a0) { // fn#7298, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:5997, offset: 0x00d13fb4, size: 335 bytes, params: 2, frame: 21
|
|
var r6;
|
|
var r9;
|
|
var value;
|
|
var property;
|
|
var length;
|
|
var value2;
|
|
var value3;
|
|
var Object;
|
|
var value4;
|
|
var removeAllListeners;
|
|
var value5;
|
|
var create;
|
|
var _eventsCount;
|
|
const _events = this._events;
|
|
if (_events !== undefined) {
|
|
var removeListener = _events.removeListener;
|
|
if (removeListener === undefined) {
|
|
if (arguments.length === 0) {
|
|
Object = global.Object;
|
|
this._events = Object.create(null);
|
|
this._eventsCount = 0;
|
|
} else {
|
|
reducibleJoin20: while (true) {
|
|
if (_events[a0] === undefined) {
|
|
break reducibleJoin20;
|
|
}
|
|
_eventsCount = this._eventsCount;
|
|
value = typeof _eventsCount === 'bigint' ? _eventsCount - 1n : +_eventsCount - 1;
|
|
this._eventsCount = value;
|
|
if (value == 0) {
|
|
Object = global.Object;
|
|
create = Object.create;
|
|
this._events = Reflect.apply(create, Object, [null]);
|
|
break reducibleJoin20;
|
|
}
|
|
delete _events[a0];
|
|
break reducibleJoin20;
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
value = 0;
|
|
if (value === arguments.length) {
|
|
Object = global.Object;
|
|
value4 = Object.keys(_events);
|
|
length = value4.length;
|
|
if (value < length) {
|
|
r9 = value;
|
|
reducibleLoop10: while (true) {
|
|
property = value4[r9];
|
|
reducibleJoin12: while (true) {
|
|
if (property === 'removeListener') {
|
|
break reducibleJoin12;
|
|
}
|
|
removeAllListeners = this.removeAllListeners;
|
|
Reflect.apply(removeAllListeners, this, [property]);
|
|
break reducibleJoin12;
|
|
}
|
|
value5 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
length = value4.length;
|
|
if (value5 < length) {
|
|
r9 = value5;
|
|
continue reducibleLoop10;
|
|
}
|
|
break reducibleLoop10;
|
|
}
|
|
}
|
|
this.removeAllListeners('removeListener');
|
|
Object = global.Object;
|
|
this._events = Object.create(null);
|
|
this._eventsCount = value;
|
|
return this;
|
|
}
|
|
property = _events[a0];
|
|
if (typeof property === 'function') {
|
|
this.removeListener(a0, property);
|
|
} else {
|
|
reducibleJoin8: while (true) {
|
|
if (property === undefined) {
|
|
break reducibleJoin8;
|
|
}
|
|
length = property.length;
|
|
value2 = length - 1;
|
|
if (!(value2 >= value)) {
|
|
break reducibleJoin8;
|
|
}
|
|
r6 = value2;
|
|
reducibleLoop6: while (true) {
|
|
removeListener = this.removeListener;
|
|
Reflect.apply(removeListener, this, [a0, property[r6]]);
|
|
value3 = typeof r6 === 'bigint' ? r6 - 1n : +r6 - 1;
|
|
if (value3 >= value) {
|
|
r6 = value3;
|
|
continue reducibleLoop6;
|
|
}
|
|
break reducibleJoin8;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
function listenerCount_7301(a0, a1) { // fn#7301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:6859, offset: 0x00d14137, size: 56 bytes, params: 3, frame: 13
|
|
return typeof a0.listenerCount === 'function' ? a0.listenerCount(a1) : listenerCount.call(a0, a1);
|
|
}
|
|
|
|
function eventNames() { // fn#7302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:7043, offset: 0x00d1416f, size: 43 bytes, params: 1, frame: 12
|
|
return this._eventsCount > 0 ? env0_0(this._events) : [];
|
|
}
|
|
|
|
function wrapListener(a0) { // fn#7278, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:3315, owner: eventTargetAgnosticAddListener.wrapListener, offset: 0x00d1393d, size: 56 bytes, params: 2, frame: 14
|
|
var binding;
|
|
if (importAll.once) {
|
|
binding = env0_0;
|
|
binding.removeEventListener(require, wrapListener);
|
|
}
|
|
importDefault(a0);
|
|
}
|
|
|
|
function _fun7284(a0, a1) { // fn#7284, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:637, offset: 0x00d13a1c, size: 138 bytes, params: 3, frame: 21
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const closure = errorListener;
|
|
const closure2 = resolver;
|
|
const eventTargetAgnosticAddListenerBinding = eventTargetAgnosticAddListener;
|
|
let binding = env0_0;
|
|
eventTargetAgnosticAddListenerBinding(binding, require, closure2, {once: true});
|
|
if (require !== 'error') {
|
|
binding = env0_0;
|
|
if (typeof binding.on === 'function') {
|
|
eventTargetAgnosticAddListener(binding, 'error', closure, {once: true});
|
|
}
|
|
}
|
|
}
|
|
|
|
function errorListener(a0) { // fn#7285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:651, offset: 0x00d13aa6, size: 46 bytes, params: 2, frame: 14
|
|
const binding = env1_0;
|
|
binding.removeListener(require, resolver);
|
|
require(a0);
|
|
}
|
|
|
|
function resolver() { // fn#7286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:689:711, offset: 0x00d13ad4, size: 90 bytes, params: 1, frame: 15
|
|
var binding;
|
|
if (typeof env1_0.removeListener === 'function') {
|
|
binding = env1_0;
|
|
binding.removeListener('error', errorListener);
|
|
}
|
|
binding = env0_0;
|
|
const slice = [].slice;
|
|
binding(slice.call(arguments));
|
|
}
|
|
|