424 lines
14 KiB
JavaScript
424 lines
14 KiB
JavaScript
/* Metro module 13; source: unknown; dependencies: [] */
|
|
function _fun164(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#164, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:18:6, offset: 0x00c3a07c, size: 499 bytes, params: 8, frame: 18
|
|
const exports_1652 = exports_165;
|
|
const arrayCopy = function(a0, a1, a2, a3, a4) {
|
|
var r0;
|
|
var value = 0;
|
|
if (value < a4) {
|
|
for (r0 = value; true; r0 = value) {
|
|
value = r0 + a3;
|
|
a2[value] = a0[r0 + a1];
|
|
value = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
|
|
if (!(value < a4)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
let prototype = exports_1652.prototype;
|
|
prototype.toArray = function() {
|
|
var r2;
|
|
var value4;
|
|
var value5;
|
|
var _length = this._length;
|
|
var Array = global.Array;
|
|
var value2 = new Array(_length);
|
|
var _front = this._front;
|
|
var _capacity = this._capacity;
|
|
var value3 = 0;
|
|
if (value3 < _length) {
|
|
for (r2 = value3; true; r2 = value5) {
|
|
value4 = _front + r2;
|
|
value2[r2] = this[value4 & _capacity - 1];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (!(value5 < _length)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return value2;
|
|
};
|
|
exports_1652.prototype.push = push;
|
|
exports_1652.prototype.pop = function() {
|
|
var value;
|
|
var property;
|
|
var _length = this._length;
|
|
if (_length !== 0) {
|
|
value = this._front + _length - 1;
|
|
value &= this._capacity - 1;
|
|
property = this[value];
|
|
this[value] = undefined;
|
|
this._length = _length - 1;
|
|
return property;
|
|
}
|
|
};
|
|
exports_1652.prototype.shift = function() {
|
|
var _front;
|
|
var property;
|
|
var _length = this._length;
|
|
if (_length !== 0) {
|
|
_front = this._front;
|
|
property = this[_front];
|
|
this[_front] = undefined;
|
|
this._front = _front + 1 & this._capacity - 1;
|
|
this._length = _length - 1;
|
|
return property;
|
|
}
|
|
};
|
|
exports_1652.prototype.unshift = unshift;
|
|
exports_1652.prototype.peekBack = function() {
|
|
var _length = this._length;
|
|
if (_length !== 0) {
|
|
return this[this._front + _length - 1 & this._capacity - 1];
|
|
}
|
|
};
|
|
exports_1652.prototype.peekFront = function() {
|
|
if (this._length !== 0) {
|
|
return this[this._front];
|
|
}
|
|
};
|
|
exports_1652.prototype.get = function(a0) {
|
|
var r2;
|
|
var value = a0;
|
|
if (value !== (value | 0)) {
|
|
return undefined;
|
|
}
|
|
var _length = this._length;
|
|
if (value < 0) {
|
|
value += _length;
|
|
r2 = value;
|
|
} else {
|
|
r2 = value;
|
|
}
|
|
if (r2 < 0) {
|
|
return undefined;
|
|
}
|
|
if (r2 >= _length) {
|
|
return undefined;
|
|
}
|
|
return this[this._front + r2 & this._capacity - 1];
|
|
};
|
|
exports_1652.prototype.isEmpty = function() {
|
|
return this._length === 0;
|
|
};
|
|
exports_1652.prototype.clear = function() {
|
|
this._length = 0;
|
|
this._front = 0;
|
|
this._makeCapacity();
|
|
};
|
|
exports_1652.prototype.toString = function() {
|
|
return this.toArray().toString();
|
|
};
|
|
exports_1652.prototype.valueOf = exports_1652.prototype.toString;
|
|
exports_1652.prototype.removeFront = exports_1652.prototype.shift;
|
|
exports_1652.prototype.removeBack = exports_1652.prototype.pop;
|
|
prototype = exports_1652.prototype;
|
|
var unshift = exports_1652.prototype.unshift;
|
|
prototype.insertFront = unshift;
|
|
prototype = exports_1652.prototype;
|
|
var push = exports_1652.prototype.push;
|
|
prototype.insertBack = push;
|
|
exports_1652.prototype.enqueue = exports_1652.prototype.push;
|
|
exports_1652.prototype.dequeue = exports_1652.prototype.shift;
|
|
exports_1652.prototype.toJSON = exports_1652.prototype.toArray;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports_1652.prototype, 'length', {get: function() {
|
|
return this._length;
|
|
}, set: function() {
|
|
var RangeError = global.RangeError;
|
|
throw new RangeError('');
|
|
}});
|
|
exports_1652.prototype._makeCapacity = function() {
|
|
var r1;
|
|
var _capacity = this._capacity;
|
|
var value = 0;
|
|
if (value < _capacity) {
|
|
for (r1 = value; true; r1 = value) {
|
|
this[r1] = undefined;
|
|
value = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (!(value < _capacity)) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
};
|
|
exports_1652.prototype._checkCapacity = _checkCapacity;
|
|
exports_1652.prototype._resizeTo = _resizeTo;
|
|
let Array = global.Array;
|
|
const env0_0 = Array.isArray;
|
|
module.exports = exports_1652;
|
|
function exports_165(a0) { // fn#165, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:18:44, offset: 0x00c3a26f, size: 99 bytes, params: 2, frame: 14
|
|
var r3;
|
|
var length;
|
|
let value = environment;
|
|
this._capacity = getCapacity(a0);
|
|
const value2 = 0;
|
|
this._length = value2;
|
|
this._front = value2;
|
|
this._makeCapacity();
|
|
reducibleJoin4: while (true) {
|
|
if (isArray(a0)) {
|
|
length = a0.length;
|
|
if (value2 < length) {
|
|
r3 = value2;
|
|
reducibleLoop2: while (true) {
|
|
this[r3] = a0[r3];
|
|
value = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
|
|
if (value < length) {
|
|
r3 = value;
|
|
continue reducibleLoop2;
|
|
}
|
|
break reducibleLoop2;
|
|
}
|
|
}
|
|
this._length = length;
|
|
break reducibleJoin4;
|
|
}
|
|
break reducibleJoin4;
|
|
}
|
|
}
|
|
|
|
function getCapacity(a0) { // fn#167, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:18:3489, offset: 0x00c3a305, size: 157 bytes, params: 2, frame: 15
|
|
var r5;
|
|
var Math;
|
|
var min;
|
|
let value = a0;
|
|
if (typeof value === 'number') {
|
|
r5 = value;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
value = global.Math.max(16, r5);
|
|
value = Reflect.apply(min, Math, [value, 1073741824]);
|
|
value = (value >>> 0) - 1;
|
|
value |= value >> 1;
|
|
value |= value >> 2;
|
|
value |= value >> 4;
|
|
value |= value >> 8;
|
|
return 1 + (value | value >> 16);
|
|
}
|
|
if (isArray(value)) {
|
|
r5 = value.length;
|
|
Math = global.Math;
|
|
min = Math.min;
|
|
value = global.Math.max(16, r5);
|
|
value = Reflect.apply(min, Math, [value, 1073741824]);
|
|
value = (value >>> 0) - 1;
|
|
value |= value >> 1;
|
|
value |= value >> 2;
|
|
value |= value >> 4;
|
|
value |= value >> 8;
|
|
return 1 + (value | value >> 16);
|
|
}
|
|
return 16;
|
|
}
|
|
|
|
function _checkCapacity(a0) { // fn#182, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:18:2998, offset: 0x00c3a7f6, size: 72 bytes, params: 2, frame: 14
|
|
if (this._capacity < a0) {
|
|
this._resizeTo(getCapacity(1.5 * this._capacity + 16));
|
|
}
|
|
}
|
|
|
|
function _resizeTo(a0) { // fn#183, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:18:3127, offset: 0x00c3a83e, size: 205 bytes, params: 2, frame: 22
|
|
var value4;
|
|
const _front = this._front;
|
|
const _capacity = this._capacity;
|
|
const Array = global.Array;
|
|
const array = new Array(_capacity);
|
|
const _length = this._length;
|
|
arrayCopy(this, 0, array, 0, _capacity);
|
|
this._capacity = a0;
|
|
this._makeCapacity();
|
|
this._front = 0;
|
|
if (_front + _length <= _capacity) {
|
|
arrayCopy(array, _front, this, 0, _length);
|
|
} else {
|
|
value4 = _length - (_front + _length & _capacity - 1);
|
|
arrayCopyBinding = arrayCopy;
|
|
arrayCopyBinding(array, _front, this, 0, value4);
|
|
arrayCopyBinding(array, 0, this, value4, _length - value4);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function push(a0) { // fn#169, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:18:391, offset: 0x00c3a3ff, size: 253 bytes, params: 2, frame: 18
|
|
var r1;
|
|
var r2;
|
|
var r0;
|
|
var _checkCapacity;
|
|
var _front;
|
|
var _capacity;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var value8;
|
|
var value9;
|
|
var value10;
|
|
var value11;
|
|
let value = arguments.length;
|
|
const _length = this._length;
|
|
if (value > 1) {
|
|
_capacity = this._capacity;
|
|
if (_length + value > _capacity) {
|
|
value7 = 0;
|
|
if (value7 < value) {
|
|
r1 = _length;
|
|
r2 = value7;
|
|
reducibleLoop9: while (true) {
|
|
_checkCapacity = this._checkCapacity;
|
|
Reflect.apply(_checkCapacity, this, [r1 + 1]);
|
|
_front = this._front;
|
|
value8 = _front + r1;
|
|
_capacity = this._capacity;
|
|
value9 = value8 & _capacity - 1;
|
|
this[value9] = arguments[r2];
|
|
value10 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
this._length = value10;
|
|
value11 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
if (value11 < value) {
|
|
r1 = value10;
|
|
r2 = value11;
|
|
continue reducibleLoop9;
|
|
}
|
|
r0 = value10;
|
|
break reducibleLoop9;
|
|
}
|
|
} else {
|
|
r0 = _length;
|
|
}
|
|
return r0;
|
|
}
|
|
_front = this._front;
|
|
value2 = 0;
|
|
if (value2 < value) {
|
|
r1 = value2;
|
|
r2 = _front;
|
|
reducibleLoop6: while (true) {
|
|
value3 = r2 + _length;
|
|
value4 = value3 & _capacity - 1;
|
|
this[value4] = arguments[r1];
|
|
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
value6 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
if (value6 < value) {
|
|
r1 = value6;
|
|
r2 = value5;
|
|
continue reducibleLoop6;
|
|
}
|
|
break reducibleLoop6;
|
|
}
|
|
}
|
|
this._length = _length + value;
|
|
return _length + value;
|
|
}
|
|
reducibleJoin3: while (true) {
|
|
if (value === 0) {
|
|
r1 = _length;
|
|
break reducibleJoin3;
|
|
}
|
|
_checkCapacity = this._checkCapacity;
|
|
Reflect.apply(_checkCapacity, this, [_length + 1]);
|
|
_front = this._front;
|
|
value = _front + _length;
|
|
_capacity = this._capacity;
|
|
this[value & _capacity - 1] = a0;
|
|
this._length = _length + 1;
|
|
value = _length + 1;
|
|
r1 = value;
|
|
break reducibleJoin3;
|
|
}
|
|
return r1;
|
|
}
|
|
|
|
function unshift(a0) { // fn#172, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:18:1179, offset: 0x00c3a58e, size: 302 bytes, params: 2, frame: 20
|
|
var r3;
|
|
var r8;
|
|
var r2;
|
|
var r1;
|
|
var r0;
|
|
var _checkCapacity;
|
|
var _capacity;
|
|
var _front;
|
|
var value2;
|
|
var value3;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
const _length = this._length;
|
|
let value = arguments.length;
|
|
if (value > 1) {
|
|
value2 = _length + value;
|
|
_capacity = this._capacity;
|
|
if (value2 > _capacity) {
|
|
value -= 1;
|
|
if (value >= 0) {
|
|
r1 = _length;
|
|
r3 = value;
|
|
reducibleLoop9: while (true) {
|
|
_checkCapacity = this._checkCapacity;
|
|
Reflect.apply(_checkCapacity, this, [r1 + 1]);
|
|
_capacity = this._capacity;
|
|
_front = this._front;
|
|
value = _front - 1;
|
|
value = (value & _capacity - 1 ^ _capacity) - _capacity;
|
|
this[value] = arguments[r3];
|
|
value7 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
|
this._length = value7;
|
|
this._front = value;
|
|
value = typeof r3 === 'bigint' ? r3 - 1n : +r3 - 1;
|
|
if (value >= 0) {
|
|
r1 = value7;
|
|
r3 = value;
|
|
continue reducibleLoop9;
|
|
}
|
|
r0 = value7;
|
|
break reducibleLoop9;
|
|
}
|
|
} else {
|
|
r0 = _length;
|
|
}
|
|
return r0;
|
|
}
|
|
_front = this._front;
|
|
value3 = value - 1;
|
|
if (value3 >= 0) {
|
|
r3 = _front;
|
|
r8 = value3;
|
|
reducibleLoop6: while (true) {
|
|
value4 = r3 - 1;
|
|
value5 = (value4 & _capacity - 1 ^ _capacity) - _capacity;
|
|
this[value5] = arguments[r8];
|
|
value6 = typeof r8 === 'bigint' ? r8 - 1n : +r8 - 1;
|
|
if (value6 >= 0) {
|
|
r3 = value5;
|
|
r8 = value6;
|
|
continue reducibleLoop6;
|
|
}
|
|
r2 = value5;
|
|
break reducibleLoop6;
|
|
}
|
|
} else {
|
|
r2 = _front;
|
|
}
|
|
this._front = r2;
|
|
this._length = _length + value;
|
|
return _length + value;
|
|
}
|
|
if (value === 0) {
|
|
return _length;
|
|
}
|
|
this._checkCapacity(_length + 1);
|
|
_capacity = this._capacity;
|
|
value = this._front - 1;
|
|
value = (value & _capacity - 1 ^ _capacity) - _capacity;
|
|
this[value] = a0;
|
|
this._length = _length + 1;
|
|
this._front = value;
|
|
return _length + 1;
|
|
}
|
|
|
|
global.__d(_fun164, 13, []) /* metro module 13 */;
|