Files
discord-decomp/sources/by-id/module-00488.js
T
2026-07-28 01:06:53 +03:00

4372 lines
171 KiB
JavaScript

/* Metro module 488; source: unknown; dependencies: [206, 489] */
import * as Module00206Module from './module-00206.js'; /* Metro dependency 206 */
import * as Module00489Module from './module-00489.js'; /* Metro dependency 489 */
function _fun6309(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#6309, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:529:6, offset: 0x00cf5427, size: 1771 bytes, params: 8, frame: 22
var r6;
var r5;
var r7;
var console;
var error;
var prototype4;
var inspect;
var value3;
var value4;
var property;
var value5;
var value6;
const env0_0 = require;
const Buffer2 = Buffer;
const assertSize = function(a0) {
var property;
var value;
var value2;
if (typeof a0 !== 'number') {
throw new global.TypeError('"size" argument must be of type number');
}
if (a0 < 0) {
property = global.RangeError;
value = 'The value "' + a0;
value2 = Object.create(property.prototype, {constructor: {value: property}});
value += '" is invalid for option "size"';
value = new property();
value = value instanceof Object ? value : value2;
throw value;
}
};
const byteLength_63182 = byteLength_6318;
const swap = function(a0, a1, a2) {
var property = a0[a1];
a0[a1] = a0[a2];
a0[a2] = property;
};
const latin1Write = function(a0, a1, a2, a3) {
return asciiWrite(a0, a1, a2, a3);
};
const asciiSlice = function(a0, a1, a2) {
var r1;
var r5;
var r0;
var value4;
var value = a1;
var property = global.Math;
var value2 = property.min(a0.length, a2);
var value3 = '';
if (value < value2) {
r1 = value3;
for (r5 = value; true; r5 = value4) {
property = global.String;
value = r1 + property.fromCharCode(127 & a0[r5]);
value4 = typeof r5 === 'bigint' ? r5 + 1n : +r5 + 1;
if (!(value4 < value2)) {
r0 = value;
break;
}
r1 = value;
}
} else {
r0 = value3;
}
return r0;
};
const latin1Slice = function(a0, a1, a2) {
var r1;
var r4;
var r0;
var value4;
var value = a1;
var property = global.Math;
var value2 = property.min(a0.length, a2);
var value3 = '';
if (value < value2) {
r1 = value3;
for (r4 = value; true; r4 = value4) {
property = global.String;
value = r1 + property.fromCharCode(a0[r4]);
value4 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
if (!(value4 < value2)) {
r0 = value;
break;
}
r1 = value;
}
} else {
r0 = value3;
}
return r0;
};
const utf16leSlice = function(a0, a1, a2) {
var r2;
var r7;
var r0;
var String;
var property;
var value4;
var value5;
var value = a0.slice(a1, a2);
var value2 = 0;
var value3 = '';
if (value2 < value.length) {
r2 = value3;
for (r7 = value2; true; r7 = value5) {
String = global.String;
property = value[r7];
value4 = r2 + String.fromCharCode(property + 256 * value[r7 + 1]);
value5 = r7 + 2;
if (!(value5 < value.length)) {
r0 = value4;
break;
}
r2 = value4;
}
} else {
r0 = value3;
}
return r0;
};
const checkOffset = function(a0, a1, a2) {
if (a0 % 1 !== 0) {
throw new global.RangeError('offset is not uint');
}
if (a0 < 0) {
throw new global.RangeError('offset is not uint');
}
if (a0 + a1 > a2) {
throw new global.RangeError('Trying to access beyond buffer length');
}
};
const checkIEEE754 = function(a0, a1, a2, a3, a4, a5) {
if (a2 + a3 > a0.length) {
throw new global.RangeError('Index out of range');
}
if (a2 < 0) {
throw new global.RangeError('Index out of range');
}
};
const blitBuffer = function(a0, a1, a2, a3) {
var r2;
var r0;
var value3;
var value = 0;
if (value < a3) {
if (value + a2 >= a1.length) {
r0 = value;
} else if (value >= a0.length) {
r0 = value;
} else {
r2 = value;
while (true) {
value = r2 + a2;
a1[value] = a0[r2];
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (!(value < a3)) {
r0 = value;
break;
}
value3 = value + a2;
if (value3 >= a1.length) {
r0 = value;
break;
}
if (value >= a0.length) {
r0 = value;
break;
}
r2 = value;
continue;
}
}
} else {
r0 = value;
}
return r0;
};
const isInstance_6344 = function(a0, a1) {
var r1;
var r0;
var value = a0 instanceof a1;
if (value) {
r0 = value;
} else {
r1 = a0 != null && a0.constructor != null;
r1 = r1 && a0.constructor.name != null;
r1 = r1 && a0.constructor.name === a1.name;
r0 = r1;
}
return r0;
};
const numberIsNaN = function(a0) {
return a0 != a0;
};
let Symbol = global.Symbol;
let value = null;
reducibleJoin3: while (true) {
if (typeof Symbol !== 'function') {
r6 = value;
break reducibleJoin3;
}
Symbol = global.Symbol;
if (typeof Symbol.for !== 'function') {
r6 = value;
break reducibleJoin3;
}
Symbol = global.Symbol;
value = Symbol.for('nodejs.util.inspect.custom');
r6 = value;
break reducibleJoin3;
}
exports.Buffer = Buffer2;
exports.SlowBuffer = SlowBuffer;
exports.INSPECT_MAX_BYTES = 50;
exports.kMaxLength = 2147483647;
Buffer2.TYPED_ARRAY_SUPPORT = (() => {
var property;
var prototype;
var value;
var value2;
var object;
var closure;
var setPrototypeOf;
var Uint8Array;
var prototype2;
var error;
try {
property = global.Uint8Array;
prototype = property.prototype;
value = Object.create(prototype, {constructor: {value: property}});
value2 = new property(1);
value = value2 instanceof Object ? value2 : value;
object = {};
closure = _fun6348;
object.foo = closure;
property = global.Object;
setPrototypeOf = property.setPrototypeOf;
Uint8Array = global.Uint8Array;
prototype2 = Uint8Array.prototype;
Reflect.apply(setPrototypeOf, property, [object, prototype2]);
property = global.Object;
property.setPrototypeOf(value, object);
value = value.foo();
} catch (error) {
return false;
}
return value === 42;
})();
const TYPED_ARRAY_SUPPORT = Buffer2.TYPED_ARRAY_SUPPORT;
reducibleJoin5: while (true) {
if (TYPED_ARRAY_SUPPORT) {
r5 = TYPED_ARRAY_SUPPORT;
break reducibleJoin5;
}
console = global.console;
value = typeof console === 'undefined';
r5 = value;
break reducibleJoin5;
}
reducibleJoin7: while (true) {
if (r5) {
break reducibleJoin7;
}
console = global.console;
error = console.error;
value = typeof error !== 'function';
r5 = value;
break reducibleJoin7;
}
reducibleJoin9: while (true) {
if (r5) {
break reducibleJoin9;
}
console = global.console;
error = console.error;
Reflect.apply(error, console,
['This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.']);
break reducibleJoin9;
}
let Object = global.Object;
const defineProperty = Object.defineProperty;
let prototype = Buffer2.prototype;
Reflect.apply(defineProperty, Object, [prototype, 'parent', {enumerable: true, get: function() {
if (Buffer.isBuffer(this)) {
return this.buffer;
}
}}]);
Object = global.Object;
Object.defineProperty(Buffer2.prototype, 'offset', {enumerable: true, get: function() {
if (Buffer.isBuffer(this)) {
return this.byteOffset;
}
}});
Buffer2.poolSize = 8192;
Buffer2.from = function(a0, a1, a2) {
return from(a0, a1, a2);
};
Object = global.Object;
let setPrototypeOf = Object.setPrototypeOf;
prototype = Buffer2.prototype;
let Uint8Array = global.Uint8Array;
Reflect.apply(setPrototypeOf, Object, [prototype, Uint8Array.prototype]);
Object = global.Object;
setPrototypeOf = Object.setPrototypeOf;
Uint8Array = global.Uint8Array;
Reflect.apply(setPrototypeOf, Object, [Buffer2, Uint8Array]);
Buffer2.alloc = alloc;
Buffer2.allocUnsafe = function(a0) {
return allocUnsafe(a0);
};
Buffer2.allocUnsafeSlow = function(a0) {
return allocUnsafe(a0);
};
Buffer2.isBuffer = isBuffer;
Buffer2.compare = compare_6356;
Buffer2.isEncoding = isEncoding;
Buffer2.concat = concat_6358;
Buffer2.byteLength = byteLength_63182;
Buffer2.prototype._isBuffer = true;
Buffer2.prototype.swap16 = function() {
var r4;
var property = this.length;
var value = 0;
if (property % 2 !== value) {
throw new global.RangeError('Buffer size must be a multiple of 16-bits');
}
if (value < property) {
r4 = value;
reducibleLoop2: while (true) {
swap(this, r4, r4 + 1);
value = r4 + 2;
if (value < property) {
r4 = value;
continue reducibleLoop2;
}
break reducibleLoop2;
}
}
return this;
};
Buffer2.prototype.swap32 = function() {
var r6;
var swapBinding;
var property = this.length;
var value = 0;
if (property % 4 !== value) {
throw new global.RangeError('Buffer size must be a multiple of 32-bits');
}
if (value < property) {
r6 = value;
reducibleLoop2: while (true) {
swapBinding = swap;
swapBinding(this, r6, r6 + 3);
value = r6 + 1;
swapBinding(this, value, r6 + 2);
value = r6 + 4;
if (value < property) {
r6 = value;
continue reducibleLoop2;
}
break reducibleLoop2;
}
}
return this;
};
Buffer2.prototype.swap64 = swap64;
Buffer2.prototype.toString = toString_6362;
Buffer2.prototype.toLocaleString = Buffer2.prototype.toString;
Buffer2.prototype.equals = equals_6363;
Buffer2.prototype.inspect = inspect_6364;
reducibleJoin11: while (true) {
if (r6) {
prototype = Buffer2.prototype;
prototype4 = Buffer2.prototype;
inspect = prototype4.inspect;
prototype[r6] = inspect;
break reducibleJoin11;
}
break reducibleJoin11;
}
Buffer2.prototype.compare = compare_6365;
Buffer2.prototype.includes = function(a0, a1, a2) {
return this.indexOf(a0, a1, a2) !== -1;
};
Buffer2.prototype.indexOf = function(a0, a1, a2) {
return bidirectionalIndexOf(this, a0, a1, a2, true);
};
Buffer2.prototype.lastIndexOf = function(a0, a1, a2) {
return bidirectionalIndexOf(this, a0, a1, a2, false);
};
Buffer2.prototype.write = write;
Buffer2.prototype.toJSON = function() {
var value = this;
var slice = global.Array.prototype.slice;
return {type: 'Buffer', data: slice.call(value._arr || value, 0)};
};
Buffer2.prototype.slice = slice;
Buffer2.prototype.readUIntLE = readUIntLE;
Buffer2.prototype.readUIntBE = readUIntBE;
Buffer2.prototype.readUInt8 = readUInt8;
Buffer2.prototype.readUInt16LE = readUInt16LE;
Buffer2.prototype.readUInt16BE = readUInt16BE;
Buffer2.prototype.readUInt32LE = readUInt32LE;
Buffer2.prototype.readUInt32BE = readUInt32BE;
Buffer2.prototype.readIntLE = readIntLE;
Buffer2.prototype.readIntBE = readIntBE;
Buffer2.prototype.readInt8 = readInt8;
Buffer2.prototype.readInt16LE = readInt16LE;
Buffer2.prototype.readInt16BE = readInt16BE;
Buffer2.prototype.readInt32LE = readInt32LE;
Buffer2.prototype.readInt32BE = readInt32BE;
Buffer2.prototype.readFloatLE = readFloatLE;
Buffer2.prototype.readFloatBE = readFloatBE;
Buffer2.prototype.readDoubleLE = readDoubleLE;
Buffer2.prototype.readDoubleBE = readDoubleBE;
Buffer2.prototype.writeUIntLE = writeUIntLE;
Buffer2.prototype.writeUIntBE = writeUIntBE;
Buffer2.prototype.writeUInt8 = writeUInt8;
Buffer2.prototype.writeUInt16LE = writeUInt16LE;
Buffer2.prototype.writeUInt16BE = writeUInt16BE;
Buffer2.prototype.writeUInt32LE = writeUInt32LE;
Buffer2.prototype.writeUInt32BE = writeUInt32BE;
Buffer2.prototype.writeIntLE = writeIntLE;
Buffer2.prototype.writeIntBE = writeIntBE;
Buffer2.prototype.writeInt8 = writeInt8;
Buffer2.prototype.writeInt16LE = writeInt16LE;
Buffer2.prototype.writeInt16BE = writeInt16BE;
Buffer2.prototype.writeInt32LE = writeInt32LE;
Buffer2.prototype.writeInt32BE = writeInt32BE;
Buffer2.prototype.writeFloatLE = function(a0, a1, a2) {
return writeFloat(this, a0, a1, true, a2);
};
Buffer2.prototype.writeFloatBE = function(a0, a1, a2) {
return writeFloat(this, a0, a1, false, a2);
};
Buffer2.prototype.writeDoubleLE = function(a0, a1, a2) {
return writeDouble(this, a0, a1, true, a2);
};
Buffer2.prototype.writeDoubleBE = function(a0, a1, a2) {
return writeDouble(this, a0, a1, false, a2);
};
Buffer2.prototype.copy = copy;
Buffer2.prototype.fill = fill_6409;
const env0_5 = RegExp('[^+/0-9A-Za-z-_]', 'g');
const Array = global.Array;
const array = new Array(256);
let value2 = 0;
let r3 = value2;
reducibleLoop12: while (true) {
value3 = 16 * r3;
r7 = value2;
reducibleLoop13: while (true) {
value4 = value3 + r7;
property = '0123456789abcdef'[r3];
array[value4] = property + '0123456789abcdef'[r7];
value5 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
if (value5 < 16) {
r7 = value5;
continue reducibleLoop13;
}
break reducibleLoop13;
}
value6 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (value6 < 16) {
r3 = value6;
continue reducibleLoop12;
}
break reducibleLoop12;
}
function createBuffer(a0) { // fn#6310, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:256, offset: 0x00cf5b12, size: 124 bytes, params: 2, frame: 14
var RangeError;
var value4;
var rangeError;
var value;
if (a0 > env0_3) {
RangeError = global.RangeError;
value = 'The value "' + a0;
value4 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
value += '" is invalid for option "size"';
rangeError = new RangeError();
value = rangeError instanceof Object ? rangeError : value4;
throw value;
}
const Uint8Array = global.Uint8Array;
const uint8Array = new Uint8Array(a0);
const Object = global.Object;
Object.setPrototypeOf(uint8Array, Buffer.prototype);
return uint8Array;
}
function Buffer(a0, a1, a2) { // fn#6311, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:434, offset: 0x00cf5b8e, size: 101 bytes, params: 4, frame: 15
if (typeof a0 === 'number') {
if (typeof a1 === 'string') {
throw new global.TypeError('The "string" argument must be of type string. Received type number');
}
return allocUnsafe(a0);
}
return from(a0, a1, a2);
}
function from(a0, a1, a2) { // fn#6312, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:633, offset: 0x00cf5bf3, size: 860 bytes, params: 4, frame: 27
var r10;
var r8;
var r0;
var r2;
var SharedArrayBuffer;
var length;
var checkedBinding;
var value8;
var buffer3;
var Symbol;
var toPrimitive;
var TypeError;
var value14;
var value15;
let value = a1;
const value2 = typeof a0;
if (value2 === 'string') {
r0 = typeof value === 'string' && value !== '';
r2 = r0 ? value : 'utf8';
if (Buffer.isEncoding(r2)) {
value14 = byteLength_6318(a0, r2) | 0;
value = createBuffer(value14);
value15 = value.write(a0, r2);
if (value15 === value14) {
r0 = value;
} else {
value = value.slice(0, value15);
r0 = value;
}
return r0;
}
TypeError = global.TypeError;
value = 'Unknown encoding: ' + r2;
throw new TypeError(value);
}
let ArrayBuffer = global.ArrayBuffer;
if (ArrayBuffer.isView(a0)) {
value = environment;
return fromArrayLike(a0);
}
if (a0 == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
let isInstance_6344Binding = isInstance_6344;
ArrayBuffer = global.ArrayBuffer;
const value4 = undefined;
if (isInstance_6344Binding(a0, ArrayBuffer)) {
return fromArrayBuffer(a0, value, a2);
}
if (a0) {
if (isInstance_6344(a0.buffer, global.ArrayBuffer)) {
return fromArrayBuffer(a0, value, a2);
}
SharedArrayBuffer = global.SharedArrayBuffer;
if (typeof SharedArrayBuffer === 'undefined') {
if (value2 === 'number') {
throw new global.TypeError('The "value" argument must not be of type number. Received type number');
}
r10 = a0.valueOf && a0.valueOf();
if (r10 == null) {
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (r10 !== a0) {
return Buffer.from(r10, value, a2);
}
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
isInstance_6344Binding = isInstance_6344;
SharedArrayBuffer = global.SharedArrayBuffer;
if (isInstance_6344Binding(a0, SharedArrayBuffer)) {
return fromArrayBuffer(a0, value, a2);
}
if (a0) {
if (isInstance_6344(a0.buffer, global.SharedArrayBuffer)) {
return fromArrayBuffer(a0, value, a2);
}
if (value2 === 'number') {
throw new global.TypeError('The "value" argument must not be of type number. Received type number');
}
r10 = a0.valueOf && a0.valueOf();
if (r10 == null) {
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (r10 !== a0) {
return Buffer.from(r10, value, a2);
}
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (value2 === 'number') {
throw new global.TypeError('The "value" argument must not be of type number. Received type number');
}
r10 = a0.valueOf && a0.valueOf();
if (r10 == null) {
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (r10 !== a0) {
return Buffer.from(r10, value, a2);
}
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
SharedArrayBuffer = global.SharedArrayBuffer;
if (typeof SharedArrayBuffer === 'undefined') {
if (value2 === 'number') {
throw new global.TypeError('The "value" argument must not be of type number. Received type number');
}
r10 = a0.valueOf && a0.valueOf();
if (r10 == null) {
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (r10 !== a0) {
return Buffer.from(r10, value, a2);
}
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
isInstance_6344Binding = isInstance_6344;
SharedArrayBuffer = global.SharedArrayBuffer;
if (isInstance_6344Binding(a0, SharedArrayBuffer)) {
return fromArrayBuffer(a0, value, a2);
}
if (a0) {
if (isInstance_6344(a0.buffer, global.SharedArrayBuffer)) {
return fromArrayBuffer(a0, value, a2);
}
if (value2 === 'number') {
throw new global.TypeError('The "value" argument must not be of type number. Received type number');
}
r10 = a0.valueOf && a0.valueOf();
if (r10 == null) {
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (r10 !== a0) {
return Buffer.from(r10, value, a2);
}
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (value2 === 'number') {
throw new global.TypeError('The "value" argument must not be of type number. Received type number');
}
r10 = a0.valueOf && a0.valueOf();
if (r10 == null) {
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
toPrimitive = Symbol.toPrimitive;
if (typeof a0[toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
if (r10 !== a0) {
return Buffer.from(r10, value, a2);
}
if (Buffer.isBuffer(a0)) {
checkedBinding = checked;
length = a0.length;
value8 = checkedBinding(length) | 0;
buffer3 = createBuffer(value8);
length = buffer3.length;
if (length === 0) {
r8 = buffer3;
} else {
a0.copy(buffer3, 0, 0, value8);
r8 = buffer3;
}
} else {
r8 = value4 !== a0.length ? typeof a0.length !== 'number' || numberIsNaN(a0.length) ? createBuffer(0) : fromArrayLike(a0) : a0.type !== 'Buffer' ? value4 : global.Array.isArray(a0.data) ? fromArrayLike(a0.data) : value4;
}
if (r8) {
return r8;
}
Symbol = global.Symbol;
if (typeof Symbol === 'undefined') {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
if (Symbol.toPrimitive == null) {
throw new global.TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
Symbol = global.Symbol;
if (typeof a0[Symbol.toPrimitive] === 'function') {
return Buffer.from(a0[global.Symbol.toPrimitive]('string'), value, a2);
}
TypeError = global.TypeError;
throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type ' + value2);
}
function allocUnsafe(a0) { // fn#6314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:2367, offset: 0x00cf5fbd, size: 49 bytes, params: 2, frame: 14
assertSize(a0);
const createBufferBinding = createBuffer;
const value2 = 0;
return createBufferBinding(a0 < value2 ? value2 : checked(a0) | 0);
}
function fromArrayLike(a0) { // fn#6315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:2445, offset: 0x00cf5fee, size: 89 bytes, params: 2, frame: 15
var r1;
var r4;
var value2;
var checkedBinding;
var value3;
let length = a0.length;
let value = 0;
reducibleJoin2: while (true) {
if (length < value) {
r1 = value;
break reducibleJoin2;
}
value2 = environment;
checkedBinding = checked;
length = a0.length;
value3 = checkedBinding(length) | 0;
r1 = value3;
break reducibleJoin2;
}
const buffer = createBuffer(r1);
if (value < r1) {
r4 = value;
reducibleLoop3: while (true) {
buffer[r4] = 255 & a0[r4];
value = r4 + 1;
if (value < r1) {
r4 = value;
continue reducibleLoop3;
}
break reducibleLoop3;
}
}
return buffer;
}
function fromArrayBuffer(a0, a1, a2) { // fn#6316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:2568, offset: 0x00cf6047, size: 282 bytes, params: 4, frame: 17
const value = a2;
const value2 = 0;
if (a1 < value2) {
throw new global.RangeError('"offset" is outside of buffer bounds');
}
let byteLength = a0.byteLength;
if (byteLength < a1) {
throw new global.RangeError('"offset" is outside of buffer bounds');
}
byteLength = a0.byteLength;
let r0 = value || value2;
if (byteLength < a1 + r0) {
throw new global.RangeError('"length" is outside of buffer bounds');
}
r0 = a1 !== undefined ? value === undefined ? new global.Uint8Array(a0, a1) : new global.Uint8Array(a0, a1,
value) : value === undefined ? new global.Uint8Array(a0) : value === undefined ? new global.Uint8Array(a0,
a1) : new global.Uint8Array(a0, a1, value);
const Object = global.Object;
Object.setPrototypeOf(r0, Buffer.prototype);
return r0;
}
function checked(a0) { // fn#6317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:2923, offset: 0x00cf6161, size: 86 bytes, params: 2, frame: 12
var RangeError;
var value2;
var rangeError;
var value;
if (a0 >= env0_3) {
RangeError = global.RangeError;
value = env0_3.toString(16);
value = 'Attempt to allocate Buffer larger than maximum size: 0x' + value;
value2 = Object.create(RangeError.prototype, {constructor: {value: RangeError}});
value += ' bytes';
rangeError = new RangeError();
value = rangeError instanceof Object ? rangeError : value2;
throw value;
}
return a0 | 0;
}
function byteLength_6318(a0, a1) { // fn#6318, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:3066, offset: 0x00cf61b7, size: 411 bytes, params: 3, frame: 22
var r8;
var r7;
var r9;
var length;
var value3;
var value4;
var value5;
var value6;
var toLowerCase;
var value7;
let value = a1;
if (Buffer.isBuffer(a0)) {
return a0.length;
}
const ArrayBuffer = global.ArrayBuffer;
if (!ArrayBuffer.isView(a0)) {
reducibleJoin31: while (true) {
if (!isInstance_6344(a0, global.ArrayBuffer)) {
value3 = typeof a0;
if (value3 !== 'string') {
throw new global.TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + value3);
}
length = a0.length;
value4 = arguments.length > 2;
reducibleJoin6: while (true) {
if (value4) {
value5 = arguments[2] === true;
r8 = value5;
break reducibleJoin6;
}
r8 = value4;
break reducibleJoin6;
}
value6 = false;
if (r8) {
r7 = value6;
r9 = value;
} else {
reducibleJoin9: while (true) {
if (length === 0) {
return 0;
}
r7 = value6;
r9 = value;
break reducibleJoin9;
}
}
reducibleLoop9: while (true) {
if (r9 === 'ascii') {
return length;
}
if (r9 === 'latin1') {
return length;
}
if (r9 === 'binary') {
return length;
}
if (r9 === 'utf8') {
return utf8ToBytes(a0).length;
}
if (r9 === 'utf-8') {
return utf8ToBytes(a0).length;
}
if (r9 === 'ucs2') {
return 2 * length;
}
if (r9 === 'ucs-2') {
return 2 * length;
}
if (r9 === 'utf16le') {
return 2 * length;
}
if (r9 === 'utf-16le') {
return 2 * length;
}
if (r9 === 'hex') {
return length >>> 1;
}
if (r9 === 'base64') {
return base64ToBytes(a0).length;
}
if (r7) {
break reducibleLoop9;
}
value = String(r9);
toLowerCase = value.toLowerCase;
value = Reflect.apply(toLowerCase, value, []);
value7 = true;
r7 = value7;
r9 = value;
continue reducibleLoop9;
}
value = -1;
reducibleJoin24: while (true) {
if (r8) {
length = value;
break reducibleJoin24;
}
length = utf8ToBytes(a0).length;
break reducibleJoin24;
}
return length;
}
break reducibleJoin31;
}
}
return a0.byteLength;
}
function slowToString(a0, a1, a2) { // fn#6319, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:3751, offset: 0x00cf6352, size: 405 bytes, params: 4, frame: 19
var r6;
var toLowerCase;
var value12;
let value = a0;
const value2 = a1;
const value3 = a2;
let r0 = value2 === undefined || value2 < 0;
const r1 = r0 ? 0 : value2;
if (r1 > this.length) {
return '';
}
const r2 = value3 === undefined || value3 > this.length ? this.length : value3;
if (r2 <= 0) {
return '';
}
const value9 = r2 >>> 0;
const value10 = r1 >>> 0;
if (value9 <= value10) {
return '';
}
const value11 = false;
if (value) {
r0 = value11;
r6 = value;
} else {
value = 'utf8';
r0 = value11;
r6 = value;
}
loopExit13: while (true) {
if (r6 === 'hex') {
value = environment;
return hexSlice(this, value10, value9);
}
if (r6 === 'utf8') {
value = environment;
return utf8Slice(this, value10, value9);
}
if (r6 === 'utf-8') {
value = environment;
return utf8Slice(this, value10, value9);
}
if (r6 === 'ascii') {
value = environment;
return asciiSlice(this, value10, value9);
}
if (r6 === 'latin1') {
value = environment;
return latin1Slice(this, value10, value9);
}
if (r6 === 'binary') {
value = environment;
return latin1Slice(this, value10, value9);
}
if (r6 === 'base64') {
value = environment;
return base64Slice(this, value10, value9);
}
if (r6 === 'ucs2') {
value = environment;
return utf16leSlice(this, value10, value9);
}
if (r6 === 'ucs-2') {
value = environment;
return utf16leSlice(this, value10, value9);
}
if (r6 === 'utf16le') {
value = environment;
return utf16leSlice(this, value10, value9);
}
if (r6 === 'utf-16le') {
value = environment;
return utf16leSlice(this, value10, value9);
}
if (r0) {
break loopExit13;
}
value = String(r6);
toLowerCase = value.toLowerCase;
value = Reflect.apply(toLowerCase, value, []);
value12 = true;
r0 = value12;
r6 = value;
}
const TypeError = global.TypeError;
value = 'Unknown encoding: ' + r6;
const value13 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
const typeError = new TypeError(value);
throw typeError instanceof Object ? typeError : value13;
}
function bidirectionalIndexOf(a0, a1, a2, a3, a4) { // fn#6321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:4403, offset: 0x00cf6504, size: 466 bytes, params: 6, frame: 25
var r2;
var r5;
var r0;
var r8;
var value5;
var value6;
var TypeError;
var prototype;
var typeError;
let value = a1;
const value2 = a2;
const value3 = a3;
const length = a0.length;
const value4 = 0;
if (value4 === length) {
return -1;
}
if (typeof value2 === 'string') {
r2 = value4;
r5 = value2;
} else {
value5 = 2147483647;
if (value2 > value5) {
r2 = value5;
r5 = value3;
} else {
value6 = -2147483648;
if (value2 < value6) {
r2 = value6;
r5 = value3;
} else {
r2 = value2;
r5 = value3;
}
}
}
const numberIsNaNBinding = numberIsNaN;
const value8 = Number(r2);
r2 = numberIsNaNBinding(value8) ? a4 ? value4 : a0.length - 1 : value8;
let r3 = r2 < value4 ? a0.length + r2 : r2;
if (r3 >= a0.length) {
if (a4) {
return -1;
}
r3 = a0.length - 1;
if (typeof value !== 'string') {
r2 = value;
} else {
value = Buffer.from(value, r5);
r2 = value;
}
if (Buffer.isBuffer(r2)) {
return value4 === r2.length ? -1 : arrayIndexOf(a0, r2, r3, r5, a4);
}
if (typeof r2 === 'number') {
value = r2 & 255;
prototype = global.Uint8Array.prototype;
if (typeof prototype.indexOf === 'function') {
prototype = global.Uint8Array.prototype;
if (a4) {
value = prototype.indexOf.call(a0, value, r3);
r8 = value;
} else {
value = prototype.lastIndexOf.call(a0, value, r3);
r8 = value;
}
r0 = r8;
} else {
value = arrayIndexOf(a0, [value], r3, r5, a4);
r0 = value;
}
return r0;
}
TypeError = global.TypeError;
prototype = TypeError.prototype;
value = Object.create(prototype, {constructor: {value: TypeError}});
typeError = new TypeError('val must be string, number or Buffer');
value = typeError instanceof Object ? typeError : value;
throw value;
}
if (r3 < value4) {
if (a4) {
r3 = value4;
if (typeof value !== 'string') {
r2 = value;
} else {
value = Buffer.from(value, r5);
r2 = value;
}
if (Buffer.isBuffer(r2)) {
return value4 === r2.length ? -1 : arrayIndexOf(a0, r2, r3, r5, a4);
}
if (typeof r2 === 'number') {
value = r2 & 255;
prototype = global.Uint8Array.prototype;
if (typeof prototype.indexOf === 'function') {
prototype = global.Uint8Array.prototype;
if (a4) {
value = prototype.indexOf.call(a0, value, r3);
r8 = value;
} else {
value = prototype.lastIndexOf.call(a0, value, r3);
r8 = value;
}
r0 = r8;
} else {
value = arrayIndexOf(a0, [value], r3, r5, a4);
r0 = value;
}
return r0;
}
TypeError = global.TypeError;
prototype = TypeError.prototype;
value = Object.create(prototype, {constructor: {value: TypeError}});
typeError = new TypeError('val must be string, number or Buffer');
value = typeError instanceof Object ? typeError : value;
throw value;
}
return -1;
}
if (typeof value !== 'string') {
r2 = value;
} else {
value = Buffer.from(value, r5);
r2 = value;
}
if (Buffer.isBuffer(r2)) {
return value4 === r2.length ? -1 : arrayIndexOf(a0, r2, r3, r5, a4);
}
if (typeof r2 === 'number') {
value = r2 & 255;
prototype = global.Uint8Array.prototype;
if (typeof prototype.indexOf === 'function') {
prototype = global.Uint8Array.prototype;
if (a4) {
value = prototype.indexOf.call(a0, value, r3);
r8 = value;
} else {
value = prototype.lastIndexOf.call(a0, value, r3);
r8 = value;
}
r0 = r8;
} else {
value = arrayIndexOf(a0, [value], r3, r5, a4);
r0 = value;
}
return r0;
}
TypeError = global.TypeError;
throw new TypeError('val must be string, number or Buffer');
}
function arrayIndexOf(a0, a1, a2, a3, a4) { // fn#6322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:5056, offset: 0x00cf66d6, size: 395 bytes, params: 6, frame: 28
var r1;
var r5;
var r6;
var r7;
var r13;
var r16;
var r14;
var r2;
var value4;
var length3;
var value5;
var length4;
var value6;
var value7;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var value14;
var value15;
var value16;
var value17;
var value18;
var value19;
let value = a2;
const arrayIndexOfRead2 = arrayIndexOfRead;
const value2 = 1;
var env0_0;
const length = a0.length;
const length2 = a1.length;
if (a3 === undefined) {
r1 = value2;
r5 = length2;
r6 = length;
r7 = value;
} else {
value4 = global.String(a3).toLowerCase();
reducibleJoin8: while (true) {
reducibleJoin30: while (true) {
if (value4 === 'ucs2') {
length3 = a0.length;
value5 = 2;
if (length3 < value5) {
break reducibleJoin30;
}
if (a1.length < value5) {
break reducibleJoin30;
}
env0_0 = value5;
value6 = length / value5;
value7 = length2 / value5;
value /= value5;
r1 = value5;
r5 = value7;
r6 = value6;
r7 = value;
break reducibleJoin8;
}
if (value4 !== 'ucs-2') {
reducibleJoin5: while (true) {
if (value4 === 'utf16le') {
break reducibleJoin5;
}
if (value4 !== 'utf-16le') {
r1 = value2;
r5 = length2;
r6 = length;
r7 = value;
break reducibleJoin8;
}
break reducibleJoin5;
}
}
length3 = a0.length;
value5 = 2;
if (length3 < value5) {
break reducibleJoin30;
}
length4 = a1.length;
if (length4 < value5) {
break reducibleJoin30;
}
env0_0 = value5;
value6 = length / value5;
value7 = length2 / value5;
value /= value5;
r1 = value5;
r5 = value7;
r6 = value6;
r7 = value;
break reducibleJoin8;
}
return -1;
}
}
if (a4) {
value = -1;
reducibleJoin28: while (true) {
if (!(r7 < r6)) {
break reducibleJoin28;
}
r2 = value;
reducibleLoop19: while (true) {
value14 = arrayIndexOfRead2(a0, r7);
value15 = value === r2;
value16 = 0;
reducibleJoin21: while (true) {
if (value15) {
r13 = value16;
break reducibleJoin21;
}
value17 = r7 - r2;
r13 = value17;
break reducibleJoin21;
}
if (value14 === arrayIndexOfRead2(a1, r13)) {
if (value15) {
r2 = r7;
}
reducibleJoin27: while (true) {
if (r7 - r2 + value2 === r5) {
return r2 * r1;
}
r13 = r2;
r14 = r7;
break reducibleJoin27;
}
} else {
reducibleJoin24: while (true) {
if (value === r2) {
r14 = r7;
break reducibleJoin24;
}
value18 = r7 - (r7 - r2);
r14 = value18;
break reducibleJoin24;
}
r13 = value;
}
value19 = typeof r14 === 'bigint' ? r14 + 1n : +r14 + 1;
if (value19 < r6) {
r2 = r13;
r7 = value19;
continue reducibleLoop19;
}
break reducibleJoin28;
}
}
} else {
reducibleJoin11: while (true) {
if (r7 + r5 > r6) {
value = r6 - r5;
r13 = value;
break reducibleJoin11;
}
r13 = r7;
break reducibleJoin11;
}
value = 0;
reducibleJoin28: while (true) {
if (!(r13 >= value)) {
break reducibleJoin28;
}
reducibleLoop12: while (true) {
value8 = true;
if (value < r5) {
r16 = value;
reducibleLoop13: while (true) {
value9 = arrayIndexOfRead2(a0, r13 + r16);
value10 = arrayIndexOfRead2(a1, r16);
value11 = false;
if (value9 !== value10) {
r14 = value11;
break reducibleLoop13;
}
value12 = typeof r16 === 'bigint' ? r16 + 1n : +r16 + 1;
if (value12 < r5) {
r16 = value12;
continue reducibleLoop13;
}
r14 = value8;
break reducibleLoop13;
}
} else {
r14 = value8;
}
if (r14) {
return r13;
}
value13 = typeof r13 === 'bigint' ? r13 - 1n : +r13 - 1;
if (value13 >= value) {
r13 = value13;
continue reducibleLoop12;
}
break reducibleJoin28;
}
}
}
return -1;
function arrayIndexOfRead(a0, a1) { // fn#6323, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:5274, owner: arrayIndexOf.read, offset: 0x00cf6861, size: 47 bytes, params: 3, frame: 13
return env0_0 === 1 ? a0[a1] : a0.readUInt16BE(a1 * env0_0);
}
}
function hexWrite(a0, a1, a2, a3) { // fn#6324, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:5588, offset: 0x00cf6890, size: 167 bytes, params: 5, frame: 23
var r6;
var r2;
var r1;
var value2;
var parseInt;
var substr;
const Number = global.Number;
const r7 = Number(a2) || 0;
let length = a0.length;
value = length - r7;
if (a3) {
value2 = global.Number(a3);
r6 = value2 > value ? value : value2;
} else {
r6 = value;
}
length = a1.length;
r6 = r6 > length / 2 ? length / 2 : r6;
value = 0;
if (value < r6) {
r2 = value;
loopExit7: while (true) {
parseInt = global.parseInt;
substr = a1.substr;
value = parseInt(Reflect.apply(substr, a1, [2 * r2, 2]), 16);
if (numberIsNaN(value)) {
return r2;
}
a0[r7 + r2] = value;
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value < r6) {
r2 = value;
continue;
}
r1 = value;
break loopExit7;
}
return r1;
}
return value;
}
function utf8Write(a0, a1, a2, a3) { // fn#6325, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:5807, offset: 0x00cf6937, size: 54 bytes, params: 5, frame: 18
return blitBuffer(utf8ToBytes(a1, a0.length - a2), a0, a2, a3);
}
function asciiWrite(a0, a1, a2, a3) { // fn#6326, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:5886, offset: 0x00cf696d, size: 88 bytes, params: 5, frame: 18
var r2;
var push;
var charCodeAt;
const blitBufferBinding = blitBuffer;
const items2 = [];
let length = a1.length;
let value = 0;
if (value < length) {
for (r2 = value; true; r2 = value) {
push = items2.push;
charCodeAt = a1.charCodeAt;
Reflect.apply(push, items2, [255 & Reflect.apply(charCodeAt, a1, [r2])]);
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
length = a1.length;
if (!(value < length)) {
break;
}
}
}
return blitBufferBinding(items2, a0, a2, a3);
}
function base64Write(a0, a1, a2, a3) { // fn#6328, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:6095, offset: 0x00cf69e0, size: 38 bytes, params: 5, frame: 17
return blitBuffer(base64ToBytes(a1), a0, a2, a3);
}
function ucs2Write(a0, a1, a2, a3) { // fn#6329, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:6167, offset: 0x00cf6a06, size: 141 bytes, params: 5, frame: 25
var r0;
var r7;
var value3;
var value4;
const blitBufferBinding = blitBuffer;
let length = a0.length;
let value = length - a2;
const items2 = [];
length = a1.length;
const value2 = 0;
if (value2 < length) {
value -= 2;
if (!(value < value2)) {
r0 = value2;
r7 = value;
while (true) {
value = a1.charCodeAt(r0);
value3 = value >> 8;
value %= 256;
items2.push(value);
items2.push(value3);
value = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
length = a1.length;
if (!(value < length)) {
break;
}
value4 = r7 - 2;
if (value4 < value2) {
break;
}
r0 = value;
r7 = value4;
continue;
}
}
}
return blitBufferBinding(items2, a0, a2, a3);
}
function base64Slice(a0, a1, a2) { // fn#6330, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:6377, offset: 0x00cf6a93, size: 105 bytes, params: 4, frame: 16
var r0;
var value;
if (a1 !== 0) {
value = require(206) /* metro dependency 206 */;
value = value.fromByteArray(a0.slice(a1, a2));
r0 = value;
} else if (a2 === a0.length) {
value = require(206) /* metro dependency 206 */;
value = value.fromByteArray(a0);
r0 = value;
} else {
value = require(206) /* metro dependency 206 */;
value = value.fromByteArray(a0.slice(a1, a2));
r0 = value;
}
return r0;
}
function utf8Slice(a0, a1, a2) { // fn#6331, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:6493, offset: 0x00cf6afc, size: 891 bytes, params: 4, frame: 61
var r0;
var r34;
var r37;
var r36;
var r41;
var r47;
var r42;
var r46;
var r45;
var r43;
var r40;
var r2;
var r3;
var property;
var property2;
var property3;
var property4;
var value10;
var value11;
var value12;
var value13;
var property5;
var property6;
var value14;
var value15;
var value16;
var property7;
var value17;
var value18;
var push;
var value19;
var value20;
var String;
var fromCharCode;
var apply;
var slice;
var value21;
var value22;
let value = a1;
const Math = global.Math;
const min = Math.min;
let length = a0.length;
const value2 = Reflect.apply(min, Math, [length, a2]);
const items2 = [];
const value3 = undefined;
const value4 = 65533;
const value5 = 1;
const value6 = null;
const value7 = 2;
const value8 = 3;
const value9 = 4;
if (value < value2) {
r0 = value3;
r34 = value;
reducibleLoop1: while (true) {
property = a0[r34];
reducibleJoin6: while (true) {
if (property > 239) {
r41 = value9;
break reducibleJoin6;
}
reducibleJoin5: while (true) {
if (property > 223) {
r36 = value8;
break reducibleJoin5;
}
r37 = property > 191 ? value7 : value5;
r36 = r37;
break reducibleJoin5;
}
r41 = r36;
break reducibleJoin6;
}
reducibleJoin33: while (true) {
if (r34 + r41 <= value2) {
if (value5 === r41) {
if (property < 128) {
r36 = r0;
r43 = property;
break reducibleJoin33;
}
r36 = r0;
r43 = value6;
break reducibleJoin33;
}
if (value7 === r41) {
property7 = a0[r34 + value5];
value = (192 & property7) === 128;
reducibleJoin31: while (true) {
if (value) {
value = 31 & property;
value17 = 63 & property7;
value = value << 6 | value17;
value18 = value > 127;
r42 = value;
r45 = value18;
break reducibleJoin31;
}
r42 = r0;
r45 = value;
break reducibleJoin31;
}
if (r45) {
r36 = r42;
r43 = r42;
break reducibleJoin33;
}
r36 = r42;
r43 = value6;
break reducibleJoin33;
}
if (value8 === r41) {
property5 = a0[r34 + value5];
property6 = a0[r34 + value7];
value = (192 & property5) === 128;
reducibleJoin22: while (true) {
if (value) {
value = (192 & property6) === 128;
r46 = value;
break reducibleJoin22;
}
r46 = value;
break reducibleJoin22;
}
reducibleJoin24: while (true) {
if (r46) {
value = 15 & property;
value14 = 63 & property5;
value15 = 63 & property6;
value <<= 12;
value = value | value14 << 6 | value15;
value16 = value > 2047;
r42 = value;
r46 = value16;
break reducibleJoin24;
}
r42 = r0;
break reducibleJoin24;
}
reducibleJoin28: while (true) {
if (r46) {
value = r42 < 55296;
reducibleJoin27: while (true) {
if (value) {
r47 = value;
break reducibleJoin27;
}
value = r42 > 57343;
r47 = value;
break reducibleJoin27;
}
r46 = r47;
break reducibleJoin28;
}
break reducibleJoin28;
}
if (r46) {
r36 = r42;
r43 = r42;
break reducibleJoin33;
}
r36 = r42;
r43 = value6;
break reducibleJoin33;
}
if (value9 !== r41) {
r36 = r0;
r43 = value6;
break reducibleJoin33;
}
property2 = a0[r34 + value5];
property3 = a0[r34 + value7];
property4 = a0[r34 + value8];
value = (192 & property2) === 128;
reducibleJoin13: while (true) {
if (value) {
value = (192 & property3) === 128;
r47 = value;
break reducibleJoin13;
}
r47 = value;
break reducibleJoin13;
}
reducibleJoin15: while (true) {
if (r47) {
value = (192 & property4) === 128;
r47 = value;
break reducibleJoin15;
}
break reducibleJoin15;
}
reducibleJoin17: while (true) {
if (r47) {
value = 15 & property;
value10 = 63 & property2;
value11 = 63 & property3;
value12 = 63 & property4;
value <<= 18;
value |= value10 << 12;
value = value | value11 << 6 | value12;
value13 = value > 65535;
r42 = value;
r47 = value13;
break reducibleJoin17;
}
r42 = r0;
break reducibleJoin17;
}
reducibleJoin19: while (true) {
if (r47) {
value = r42 < 1114112;
r47 = value;
break reducibleJoin19;
}
break reducibleJoin19;
}
if (r47) {
r36 = r42;
r43 = r42;
break reducibleJoin33;
}
r36 = r42;
r43 = value6;
break reducibleJoin33;
}
r36 = r0;
r43 = value6;
break reducibleJoin33;
}
reducibleJoin36: while (true) {
if (value6 === r43) {
r40 = value5;
r42 = value4;
break reducibleJoin36;
}
if (r43 > 65535) {
value = r43 - 65536;
push = items2.push;
Reflect.apply(push, items2, [value >>> 10 & 1023 | 55296]);
value = 56320 | 1023 & value;
r40 = r41;
r42 = value;
break reducibleJoin36;
}
r40 = r41;
r42 = r43;
break reducibleJoin36;
}
push = items2.push;
Reflect.apply(push, items2, [r42]);
value = r34 + r40;
if (value < value2) {
r0 = r36;
r34 = value;
continue reducibleLoop1;
}
break reducibleLoop1;
}
}
length = items2.length;
if (length <= env0_4) {
String = global.String;
fromCharCode = String.fromCharCode;
apply = fromCharCode.apply;
String = global.String;
r0 = Reflect.apply(apply, fromCharCode, [String, items2]);
} else {
value19 = 0;
value20 = '';
if (value19 < length) {
r2 = value20;
r3 = value19;
reducibleLoop39: while (true) {
String = global.String;
fromCharCode = String.fromCharCode;
apply = fromCharCode.apply;
String = global.String;
slice = items2.slice;
value21 = r3 + env0_4;
value22 = r2 + Reflect.apply(apply, fromCharCode, [String, Reflect.apply(slice, items2, [r3,
value21])]);
if (value21 < length) {
r2 = value22;
r3 = value21;
continue reducibleLoop39;
}
r0 = value22;
break reducibleLoop39;
}
} else {
r0 = value20;
}
}
return r0;
}
function hexSlice(a0, a1, a2) { // fn#6334, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:13313, offset: 0x00cf6f26, size: 101 bytes, params: 4, frame: 8
var r1;
var r4;
var r0;
var value4;
var binding;
var value6;
let value = a1;
const value2 = a2;
const length = a0.length;
reducibleJoin2: while (true) {
if (value) {
value4 = value < 0;
r1 = value4;
break reducibleJoin2;
}
r1 = !value;
break reducibleJoin2;
}
reducibleJoin4: while (true) {
if (r1) {
value = 0;
r4 = value;
break reducibleJoin4;
}
r4 = value;
break reducibleJoin4;
}
value = !value2;
reducibleJoin6: while (true) {
if (value2) {
value = value2 < 0;
r1 = value;
break reducibleJoin6;
}
r1 = value;
break reducibleJoin6;
}
reducibleJoin8: while (true) {
if (r1) {
break reducibleJoin8;
}
value = value2 > length;
r1 = value;
break reducibleJoin8;
}
const r3 = r1 ? length : value2;
value = '';
if (r4 < r3) {
r1 = value;
reducibleLoop10: while (true) {
binding = env0_6;
value = r1 + binding[a0[r4]];
value6 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
if (value6 < r3) {
r1 = value;
r4 = value6;
continue reducibleLoop10;
}
r0 = value;
break reducibleLoop10;
}
} else {
r0 = value;
}
return r0;
}
function checkInt(a0, a1, a2, a3, a4, a5) { // fn#6337, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:13720, offset: 0x00cf706b, size: 172 bytes, params: 7, frame: 13
if (Buffer.isBuffer(a0)) {
if (a1 > a4) {
throw new global.RangeError('"value" argument is out of bounds');
}
if (a1 < a5) {
throw new global.RangeError('"value" argument is out of bounds');
}
if (a2 + a3 > a0.length) {
throw new global.RangeError('Index out of range');
}
return undefined;
}
const TypeError = global.TypeError;
throw new TypeError('"buffer" argument must be a Buffer instance');
}
function writeFloat(a0, a1, a2, a3, a4) { // fn#6339, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:14114, offset: 0x00cf717f, size: 113 bytes, params: 6, frame: 21
const value = Number(a1);
const value2 = a2 >>> 0;
if (!a4) {
checkIEEE754(a0, undefined, value2, 4);
}
(Module00489Module).write(a0, value, value2, a3, 23, 4);
return value2 + 4;
}
function writeDouble(a0, a1, a2, a3, a4) { // fn#6340, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:14221, offset: 0x00cf71f0, size: 113 bytes, params: 6, frame: 21
const value = Number(a1);
const value2 = a2 >>> 0;
if (!a4) {
checkIEEE754(a0, undefined, value2, 8);
}
(Module00489Module).write(a0, value, value2, a3, 52, 8);
return value2 + 8;
}
function base64ToBytes(a0) { // fn#6342, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:22503, offset: 0x00cf74f8, size: 150 bytes, params: 2, frame: 19
var r5;
var r3;
var r0;
var value;
const toByteArray = Module00206Module.toByteArray;
const value3 = a0.split('=')[0].trim().replace(env0_5, '');
let length = value3.length;
reducibleJoin4: while (true) {
if (length < 2) {
r0 = value;
break reducibleJoin4;
}
length = value3.length;
if (length % 4 === 0) {
r3 = value3;
} else {
r5 = value3;
reducibleLoop2: while (true) {
value = r5 + '=';
length = value.length;
if (length % 4 !== 0) {
r5 = value;
continue reducibleLoop2;
}
r3 = value;
break reducibleLoop2;
}
}
r0 = r3;
break reducibleJoin4;
}
return Reflect.apply(toByteArray, Module00206Module, [r0]);
}
function SlowBuffer(a0) { // fn#6346, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:154, offset: 0x00cf7649, size: 35 bytes, params: 2, frame: 11
const value = a0;
return Buffer.alloc(Number(Number(value) == value ? value : 0));
}
function typedArraySupport() { // fn#6347, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:7331, offset: 0x00cf766c, size: 117 bytes, params: 1, frame: 15
var Uint8Array;
var prototype;
var value;
var uint8Array;
var object;
var closure;
var Object;
var setPrototypeOf;
var error;
try {
Uint8Array = global.Uint8Array;
prototype = Uint8Array.prototype;
value = Object.create(prototype, {constructor: {value: Uint8Array}});
uint8Array = new Uint8Array(1);
value = uint8Array instanceof Object ? uint8Array : value;
object = {};
closure = function() {
return 42;
};
object.foo = closure;
Object = global.Object;
setPrototypeOf = Object.setPrototypeOf;
Uint8Array = global.Uint8Array;
prototype = Uint8Array.prototype;
Reflect.apply(setPrototypeOf, Object, [object, prototype]);
Object = global.Object;
Object.setPrototypeOf(value, object);
value = value.foo();
} catch (error) {
return false;
}
return value === 42;
}
function alloc(a0, a1, a2) { // fn#6352, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:8233, offset: 0x00cf7749, size: 114 bytes, params: 4, frame: 18
var r4;
var r0;
var value;
assertSize(a0);
if (a0 <= 0) {
r0 = createBuffer(a0);
} else if (a1 !== undefined) {
if (typeof a2 === 'string') {
value = createBuffer(a0);
value = value.fill(a1, a2);
r4 = value;
} else {
value = createBuffer(a0);
value = value.fill(a1);
r4 = value;
}
r0 = r4;
} else {
r0 = createBuffer(a0);
}
return r0;
}
function isBuffer(a0) { // fn#6355, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:8553, offset: 0x00cf77ce, size: 45 bytes, params: 2, frame: 4
return a0 != null && a0._isBuffer === true && a0 !== Buffer.prototype;
}
function compare_6356(a0, a1) { // fn#6356, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:8645, offset: 0x00cf77fb, size: 303 bytes, params: 3, frame: 22
var r4;
var r6;
var r2;
var r3;
var length;
var length2;
var value4;
var property;
var value5;
var property2;
let value = a0;
const value2 = a1;
let isInstance_6344Binding = isInstance_6344;
let Uint8Array = global.Uint8Array;
if (isInstance_6344Binding(value, Uint8Array)) {
value = Buffer.from(value, value.offset, value.byteLength);
r4 = value;
} else {
r4 = value;
}
isInstance_6344Binding = isInstance_6344;
Uint8Array = global.Uint8Array;
const r5 = isInstance_6344Binding(value2, Uint8Array) ? Buffer.from(value2, value2.offset,
value2.byteLength) : value2;
if (Buffer.isBuffer(r4)) {
if (Buffer.isBuffer(r5)) {
if (r4 === r5) {
return 0;
}
length = r4.length;
length2 = r5.length;
value = global.Math.min(length, length2);
value4 = 0;
if (value4 < value) {
r6 = value4;
loopExit9: while (true) {
property = r4[r6];
if (property !== r5[r6]) {
property = r4[r6];
property2 = r5[r6];
r2 = property2;
r3 = property;
break loopExit9;
}
value5 = typeof r6 === 'bigint' ? r6 + 1n : +r6 + 1;
if (value5 < value) {
r6 = value5;
continue;
}
r2 = length2;
r3 = length;
break loopExit9;
}
} else {
r2 = length2;
r3 = length;
}
value = -1;
return r3 < r2 ? value : r2 < r3 ? 1 : value4;
}
throw new global.TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
}
const TypeError = global.TypeError;
throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
}
function concat_6358(a0, a1) { // fn#6358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:9324, offset: 0x00cf79b4, size: 311 bytes, params: 3, frame: 21
var r1;
var r4;
var r3;
var length;
var value2;
var value3;
var value4;
var property;
var isInstance_6344Binding;
var Uint8Array;
var from;
var value5;
var isBuffer;
var copy;
var value6;
var value7;
let value = a1;
const Array = global.Array;
if (Array.isArray(a0)) {
length = a0.length;
value2 = 0;
if (value2 === length) {
value = environment;
return Buffer.alloc(value2);
}
reducibleJoin6: while (true) {
if (value !== undefined) {
r3 = value;
break reducibleJoin6;
}
length = a0.length;
if (!(value2 < length)) {
r3 = value2;
break reducibleJoin6;
}
r1 = value2;
r4 = value2;
reducibleLoop5: while (true) {
length = a0[r1].length;
value = r4 + length;
value3 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
length = a0.length;
if (value3 < length) {
r1 = value3;
r4 = value;
continue reducibleLoop5;
}
r3 = value;
break reducibleJoin6;
}
}
value = environment;
value4 = Buffer.allocUnsafe(r3);
length = a0.length;
if (value2 < length) {
r3 = value2;
r4 = value2;
reducibleLoop7: while (true) {
property = a0[r4];
isInstance_6344Binding = isInstance_6344;
Uint8Array = global.Uint8Array;
reducibleJoin9: while (true) {
if (isInstance_6344Binding(property, Uint8Array)) {
from = Buffer.from;
value5 = Reflect.apply(from, Buffer, [property]);
r1 = value5;
break reducibleJoin9;
}
r1 = property;
break reducibleJoin9;
}
isBuffer = Buffer.isBuffer;
if (!Reflect.apply(isBuffer, Buffer, [r1])) {
throw new global.TypeError('"list" argument must be an Array of Buffers');
}
copy = r1.copy;
Reflect.apply(copy, r1, [value4, r3]);
length = r1.length;
value6 = r3 + length;
value7 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
length = a0.length;
if (!(value7 < length)) {
return value4;
}
r3 = value6;
r4 = value7;
continue reducibleLoop7;
}
}
return value4;
}
const TypeError = global.TypeError;
throw new TypeError('"list" argument must be an Array of Buffers');
}
function swap64() { // fn#6361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:10246, offset: 0x00cf7bc6, size: 162 bytes, params: 1, frame: 26
var r10;
var swapBinding;
const length = this.length;
let value = 0;
if (length % 8 !== value) {
throw new global.RangeError('Buffer size must be a multiple of 64-bits');
}
if (value < length) {
r10 = value;
reducibleLoop2: while (true) {
swapBinding = swap;
swapBinding(this, r10, r10 + 7);
value = r10 + 1;
swapBinding(this, value, r10 + 6);
value = r10 + 2;
swapBinding(this, value, r10 + 5);
value = r10 + 3;
swapBinding(this, value, r10 + 4);
value = r10 + 8;
if (value < length) {
r10 = value;
continue reducibleLoop2;
}
break reducibleLoop2;
}
}
return this;
}
function toString_6362() { // fn#6362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:10492, offset: 0x00cf7c68, size: 70 bytes, params: 1, frame: 19
const length = this.length;
return length === 0 ? '' : arguments.length === 0 ? utf8Slice(this, 0, length) : slowToString.apply(this, arguments);
}
function equals_6363(a0) { // fn#6363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:10705, offset: 0x00cf7cae, size: 94 bytes, params: 2, frame: 15
var r0;
var value2;
var value;
if (Buffer.isBuffer(a0)) {
value2 = this === a0;
if (value2) {
r0 = value2;
} else {
value = Buffer.compare(this, a0);
value = value === 0;
r0 = value;
}
return r0;
}
const TypeError = global.TypeError;
throw new TypeError('Argument must be a Buffer');
}
function inspect_6364() { // fn#6364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:10866, offset: 0x00cf7d0c, size: 117 bytes, params: 1, frame: 16
var r1;
const INSPECT_MAX_BYTES = env0_1.INSPECT_MAX_BYTES;
let value = this.toString('hex', 0, INSPECT_MAX_BYTES);
value = value.replace(RegExp('(.{2})', 'g'), '$1 ');
value = value.trim();
if (this.length > INSPECT_MAX_BYTES) {
value += ' ... ';
r1 = value;
} else {
r1 = value;
}
return '<Buffer ' + r1 + '>';
}
function compare_6365(a0, a1, a2, a3, a4) { // fn#6365, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:11104, offset: 0x00cf7d81, size: 441 bytes, params: 6, frame: 24
var r6;
var r2;
var length;
var r3;
var r4;
var r5;
var r7;
var from;
var offset;
var byteLength;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var Math;
var min;
var value14;
var slice;
var value15;
var value16;
var property;
var value17;
var property2;
var value18;
let value = a0;
const value2 = a1;
const value3 = a2;
const value4 = a3;
const value5 = a4;
const isInstance_6344Binding = isInstance_6344;
const Uint8Array = global.Uint8Array;
reducibleJoin2: while (true) {
if (isInstance_6344Binding(value, Uint8Array)) {
from = Buffer.from;
offset = value.offset;
byteLength = value.byteLength;
value = Reflect.apply(from, Buffer, [value, offset, byteLength]);
r6 = value;
break reducibleJoin2;
}
r6 = value;
break reducibleJoin2;
}
if (Buffer.isBuffer(r6)) {
reducibleJoin6: while (true) {
if (value2 !== undefined) {
r2 = value2;
break reducibleJoin6;
}
value = 0;
r2 = value;
break reducibleJoin6;
}
reducibleJoin10: while (true) {
if (value3 !== undefined) {
r3 = value3;
break reducibleJoin10;
}
value = 0;
reducibleJoin9: while (true) {
if (r6) {
length = r6.length;
break reducibleJoin9;
}
length = value;
break reducibleJoin9;
}
r3 = length;
break reducibleJoin10;
}
reducibleJoin12: while (true) {
if (value4 !== undefined) {
r4 = value4;
break reducibleJoin12;
}
value = 0;
r4 = value;
break reducibleJoin12;
}
reducibleJoin14: while (true) {
if (value5 !== undefined) {
r5 = value5;
break reducibleJoin14;
}
length = this.length;
r5 = length;
break reducibleJoin14;
}
value = 0;
if (!(r2 < value)) {
length = r6.length;
reducibleJoin36: while (true) {
if (r3 > length) {
break reducibleJoin36;
}
if (r4 < value) {
break reducibleJoin36;
}
length = this.length;
if (!(r5 > length)) {
if (r4 >= r5) {
reducibleJoin20: while (true) {
if (r2 >= r3) {
return value;
}
break reducibleJoin20;
}
}
if (r4 >= r5) {
return -1;
}
if (r2 >= r3) {
return 1;
}
if (this === r6) {
return value;
}
value8 = r5 >>> value;
value9 = r4 >>> value;
value10 = value8 - value9;
value11 = r3 >>> value;
value12 = r2 >>> value;
value13 = value11 - value12;
Math = global.Math;
min = Math.min;
value14 = Reflect.apply(min, Math, [value10, value13]);
slice = this.slice;
value15 = Reflect.apply(slice, this, [value9, value8]);
slice = r6.slice;
value16 = Reflect.apply(slice, r6, [value12, value11]);
if (value < value14) {
r7 = value;
reducibleLoop24: while (true) {
property = value15[r7];
if (property !== value16[r7]) {
property = value15[r7];
property2 = value16[r7];
r3 = property2;
r4 = property;
break reducibleLoop24;
}
value17 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
if (value17 < value14) {
r7 = value17;
continue reducibleLoop24;
}
r3 = value13;
r4 = value10;
break reducibleLoop24;
}
} else {
r3 = value13;
r4 = value10;
}
value18 = -1;
reducibleJoin31: while (true) {
if (r4 < r3) {
r2 = value18;
break reducibleJoin31;
}
reducibleJoin30: while (true) {
if (r3 < r4) {
value = 1;
r3 = value;
break reducibleJoin30;
}
r3 = value;
break reducibleJoin30;
}
r2 = r3;
break reducibleJoin31;
}
return r2;
}
break reducibleJoin36;
}
}
throw new global.RangeError('out of range index');
}
const TypeError = global.TypeError;
throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof r6);
}
function write(a0, a1, a2, a3) { // fn#6369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:12054, offset: 0x00cf7f99, size: 628 bytes, params: 5, frame: 33
var r1;
var r2;
var r19;
var r6;
var isFinite;
var prototype;
var value5;
var value6;
var length;
var value7;
var value8;
var value10;
var toLowerCase;
var value11;
var RangeError;
var rangeError;
let value = a1;
const value2 = a2;
const value3 = a3;
const value4 = undefined;
if (value4 === value) {
length = this.length;
value = 0;
value8 = 'utf8';
r1 = length;
r2 = value;
r19 = value8;
} else {
reducibleJoin10: while (true) {
reducibleJoin3: while (true) {
if (value4 !== value2) {
break reducibleJoin3;
}
if (typeof value === 'string') {
length = this.length;
value7 = 0;
r1 = length;
r2 = value7;
r19 = value;
break reducibleJoin10;
}
break reducibleJoin3;
}
isFinite = global.isFinite;
if (!isFinite(value)) {
throw new global.Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');
}
value >>>= 0;
isFinite = global.isFinite;
if (isFinite(value2)) {
value5 = value2 >>> 0;
if (value4 !== value3) {
r1 = value5;
r2 = value;
r19 = value3;
break reducibleJoin10;
}
value6 = 'utf8';
r1 = value5;
r2 = value;
r19 = value6;
break reducibleJoin10;
}
r1 = value4;
r2 = value;
r19 = value2;
break reducibleJoin10;
}
}
value = this.length - r2;
const value9 = value4 === r1;
reducibleJoin12: while (true) {
if (value9) {
r6 = value9;
break reducibleJoin12;
}
value10 = r1 > value;
r6 = value10;
break reducibleJoin12;
}
r1 = r6 ? value : r1;
if (a0.length > 0) {
reducibleJoin16: while (true) {
reducibleJoin40: while (true) {
if (r1 < 0) {
break reducibleJoin40;
}
if (r2 < 0) {
break reducibleJoin40;
}
break reducibleJoin16;
}
RangeError = global.RangeError;
prototype = RangeError.prototype;
value = Object.create(prototype, {constructor: {value: RangeError}});
rangeError = new RangeError('Attempt to write outside buffer bounds');
value = rangeError instanceof Object ? rangeError : value;
throw value;
}
}
if (r2 > this.length) {
throw new global.RangeError('Attempt to write outside buffer bounds');
}
reducibleJoin19: while (true) {
if (r19) {
break reducibleJoin19;
}
value = 'utf8';
r19 = value;
break reducibleJoin19;
}
let r18 = false;
reducibleLoop20: while (true) {
if (r19 === 'hex') {
value = environment;
return hexWrite(this, a0, r2, r1);
}
if (r19 === 'utf8') {
value = environment;
return utf8Write(this, a0, r2, r1);
}
if (r19 === 'utf-8') {
value = environment;
return utf8Write(this, a0, r2, r1);
}
if (r19 === 'ascii') {
value = environment;
return asciiWrite(this, a0, r2, r1);
}
if (r19 === 'latin1') {
value = environment;
return latin1Write(this, a0, r2, r1);
}
if (r19 === 'binary') {
value = environment;
return latin1Write(this, a0, r2, r1);
}
if (r19 === 'base64') {
value = environment;
return base64Write(this, a0, r2, r1);
}
if (r19 === 'ucs2') {
value = environment;
return ucs2Write(this, a0, r2, r1);
}
if (r19 === 'ucs-2') {
value = environment;
return ucs2Write(this, a0, r2, r1);
}
if (r19 === 'utf16le') {
value = environment;
return ucs2Write(this, a0, r2, r1);
}
if (r19 === 'utf-16le') {
value = environment;
return ucs2Write(this, a0, r2, r1);
}
if (r18) {
throw new global.TypeError('Unknown encoding: ' + r19);
}
value = String(r19);
toLowerCase = value.toLowerCase;
value = Reflect.apply(toLowerCase, value, []);
value11 = true;
r18 = value11;
r19 = value;
continue reducibleLoop20;
}
}
function slice(a0, a1) { // fn#6371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:14352, offset: 0x00cf824b, size: 142 bytes, params: 3, frame: 16
var r2;
const length = this.length;
let value = ~~a0;
const value2 = 0;
if (value < value2) {
value += length;
r2 = value < value2 ? value2 : value;
} else {
r2 = value > length ? length : value;
}
const r4 = a1 === undefined ? length : ~~a1;
let r1 = r4 < value2 ? r4 + length < value2 ? value2 : r4 + length : r4 > length ? length : r4;
r1 = r1 < r2 ? r2 : r1;
value = this.subarray(r2, r1);
const Object = global.Object;
Object.setPrototypeOf(value, Buffer.prototype);
return value;
}
function readUIntLE(a0, a1, a2) { // fn#6372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:14593, offset: 0x00cf82d9, size: 110 bytes, params: 4, frame: 20
var r1;
var r2;
var r3;
var r0;
var value6;
var value7;
var value8;
const value = a0 >>> 0;
const value2 = a1 >>> 0;
if (!a2) {
checkOffset(value, value2, this.length);
}
const property = this[value];
const value4 = 256;
const value5 = 1;
if (value5 < value2) {
r1 = value4;
r2 = property;
r3 = value5;
while (true) {
value6 = r2 + this[value + r3] * r1;
value7 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value7 < value2)) {
r0 = value6;
break;
}
value8 = r1 * value4;
if (value8) {
r1 = value8;
r2 = value6;
r3 = value7;
continue;
}
r0 = value6;
break;
}
} else {
r0 = property;
}
return r0;
}
function readUIntBE(a0, a1, a2) { // fn#6373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:14762, offset: 0x00cf8347, size: 114 bytes, params: 4, frame: 20
var r1;
var r2;
var r4;
var r0;
var value6;
var value7;
var value8;
const value = a0 >>> 0;
const value2 = a1 >>> 0;
if (!a2) {
checkOffset(value, value2, this.length);
}
const value4 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
const property = this[value + value4];
const value5 = 256;
if (value4 > 0) {
r1 = value5;
r2 = property;
r4 = value4;
while (true) {
value6 = typeof r4 === 'bigint' ? r4 - 1n : +r4 - 1;
value7 = r2 + this[value + value6] * r1;
if (!(value6 > 0)) {
r0 = value7;
break;
}
value8 = r1 * value5;
if (value8) {
r1 = value8;
r2 = value7;
r4 = value6;
continue;
}
r0 = value7;
break;
}
} else {
r0 = property;
}
return r0;
}
function readUInt8(a0, a1) { // fn#6374, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:14930, offset: 0x00cf83b9, size: 48 bytes, params: 3, frame: 16
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 1, this.length);
}
return this[value];
}
function readUInt16LE(a0, a1) { // fn#6375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:15039, offset: 0x00cf83e9, size: 70 bytes, params: 3, frame: 16
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 2, this.length);
}
return this[value] | this[value + 1] << 8;
}
function readUInt16BE(a0, a1) { // fn#6376, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:15164, offset: 0x00cf842f, size: 70 bytes, params: 3, frame: 16
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 2, this.length);
}
return this[value] << 8 | this[value + 1];
}
function readUInt32LE(a0, a1) { // fn#6377, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:15289, offset: 0x00cf8475, size: 117 bytes, params: 3, frame: 16
let value = a0 >>> 0;
if (!a1) {
checkOffset(value, 4, this.length);
}
const value3 = this[value] | this[value + 1] << 8;
const value4 = this[value + 2] << 16;
value = 16777216 * this[value + 3];
return (value3 | value4) + value;
}
function readUInt32BE(a0, a1) { // fn#6378, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:15449, offset: 0x00cf84ea, size: 117 bytes, params: 3, frame: 16
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 4, this.length);
}
return 16777216 * this[value] + (this[value + 1] << 16 | this[value + 2] << 8 | this[value + 3]);
}
function readIntLE(a0, a1, a2) { // fn#6379, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:15606, offset: 0x00cf855f, size: 167 bytes, params: 4, frame: 21
var r0;
var r3;
var r4;
var r1;
var r2;
var value6;
var value7;
var value8;
const value = a0 >>> 0;
const value2 = a1 >>> 0;
if (!a2) {
checkOffset(value, value2, this.length);
}
const property = this[value];
const value4 = 256;
const value5 = 1;
if (value5 < value2) {
r0 = value5;
r3 = value4;
r4 = property;
while (true) {
value6 = r4 + this[value + r0] * r3;
value7 = typeof r0 === 'bigint' ? r0 + 1n : +r0 + 1;
if (!(value7 < value2)) {
r1 = r3;
r2 = value6;
break;
}
value8 = r3 * value4;
if (value8) {
r0 = value7;
r3 = value8;
r4 = value6;
continue;
}
r1 = value8;
r2 = value6;
break;
}
} else {
r1 = value5;
r2 = property;
}
return r2 >= r1 * 128 ? r2 - global.Math.pow(2, 8 * value2) : r2;
}
function readIntBE(a0, a1, a2) { // fn#6380, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:15807, offset: 0x00cf8606, size: 171 bytes, params: 4, frame: 22
var r0;
var r3;
var r5;
var r1;
var r2;
var value7;
var value8;
var value9;
const value = a0 >>> 0;
const value2 = a1 >>> 0;
if (!a2) {
checkOffset(value, value2, this.length);
}
const value4 = typeof value2 === 'bigint' ? value2 - 1n : +value2 - 1;
const property = this[value + value4];
const value5 = 256;
if (value4 > 0) {
r0 = property;
r3 = value5;
r5 = value4;
while (true) {
value7 = typeof r5 === 'bigint' ? r5 - 1n : +r5 - 1;
value8 = r0 + this[value + value7] * r3;
if (!(value7 > 0)) {
r1 = r3;
r2 = value8;
break;
}
value9 = r3 * value5;
if (value9) {
r0 = value8;
r3 = value9;
r5 = value7;
continue;
}
r1 = value9;
r2 = value8;
break;
}
} else {
r1 = 1;
r2 = property;
}
return r2 >= r1 * 128 ? r2 - global.Math.pow(2, 8 * value2) : r2;
}
function readInt8(a0, a1) { // fn#6381, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:16011, offset: 0x00cf86b1, size: 91 bytes, params: 3, frame: 16
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 1, this.length);
}
const value3 = 128 & this[value];
const property = this[value];
return value3 ? -1 * (255 - property + 1) : property;
}
function readInt16LE(a0, a1) { // fn#6382, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:16149, offset: 0x00cf870c, size: 100 bytes, params: 3, frame: 16
let value = a0 >>> 0;
if (!a1) {
checkOffset(value, 2, this.length);
}
value = this[value] | this[value + 1] << 8;
return 32768 & value ? 4294901760 | value : value;
}
function readInt16BE(a0, a1) { // fn#6383, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:16301, offset: 0x00cf8770, size: 100 bytes, params: 3, frame: 16
let value = a0 >>> 0;
if (!a1) {
checkOffset(value, 2, this.length);
}
value = this[value + 1] | this[value] << 8;
return 32768 & value ? 4294901760 | value : value;
}
function readInt32LE(a0, a1) { // fn#6384, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:16453, offset: 0x00cf87d4, size: 114 bytes, params: 3, frame: 16
let value = a0 >>> 0;
if (!a1) {
checkOffset(value, 4, this.length);
}
const value3 = this[value] | this[value + 1] << 8;
const value4 = this[value + 2] << 16;
value = this[value + 3] << 24;
return value3 | value4 | value;
}
function readInt32BE(a0, a1) { // fn#6385, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:16604, offset: 0x00cf8846, size: 114 bytes, params: 3, frame: 16
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 4, this.length);
}
return this[value] << 24 | this[value + 1] << 16 | this[value + 2] << 8 | this[value + 3];
}
function readFloatLE(a0, a1) { // fn#6386, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:16755, offset: 0x00cf88b8, size: 96 bytes, params: 3, frame: 19
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 4, this.length);
}
return (Module00489Module).read(this, value, true, 23, 4);
}
function readFloatBE(a0, a1) { // fn#6387, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:16886, offset: 0x00cf8918, size: 96 bytes, params: 3, frame: 19
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 4, this.length);
}
return (Module00489Module).read(this, value, false, 23, 4);
}
function readDoubleLE(a0, a1) { // fn#6388, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:17018, offset: 0x00cf8978, size: 96 bytes, params: 3, frame: 19
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 8, this.length);
}
return (Module00489Module).read(this, value, true, 52, 8);
}
function readDoubleBE(a0, a1) { // fn#6389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:17151, offset: 0x00cf89d8, size: 96 bytes, params: 3, frame: 19
const value = a0 >>> 0;
if (!a1) {
checkOffset(value, 8, this.length);
}
return (Module00489Module).read(this, value, false, 52, 8);
}
function writeUIntLE(a0, a1, a2, a3) { // fn#6390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:17283, offset: 0x00cf8a38, size: 158 bytes, params: 5, frame: 23
var r2;
var r3;
var value8;
var value9;
var value10;
const value = Number(a0);
const value2 = a1 >>> 0;
const value3 = a2 >>> 0;
if (!a3) {
checkInt(this, value, value2, value3, global.Math.pow(2, 8 * value3) - 1, 0);
}
this[value2] = 255 & value;
const value6 = 256;
const value7 = 1;
if (value7 < value3) {
r2 = value6;
r3 = value7;
while (true) {
value8 = value2 + r3;
this[value8] = value / r2 & 255;
value9 = typeof r3 === 'bigint' ? r3 + 1n : +r3 + 1;
if (!(value9 < value3)) {
break;
}
value10 = r2 * value6;
if (value10) {
r2 = value10;
r3 = value9;
continue;
}
break;
}
}
return value2 + value3;
}
function writeUIntBE(a0, a1, a2, a3) { // fn#6391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:17484, offset: 0x00cf8ad6, size: 169 bytes, params: 5, frame: 24
var r2;
var r4;
var value10;
var value11;
var value12;
const value = Number(a0);
const value2 = a1 >>> 0;
const value3 = a2 >>> 0;
if (!a3) {
checkInt(this, value, value2, value3, global.Math.pow(2, 8 * value3) - 1, 0);
}
const value6 = value3 - 1;
this[value2 + value6] = 255 & value;
const value8 = typeof value6 === 'bigint' ? value6 - 1n : +value6 - 1;
const value9 = 256;
if (value8 >= 0) {
r2 = value9;
r4 = value8;
while (true) {
value10 = value2 + r4;
this[value10] = value / r2 & 255;
value11 = typeof r4 === 'bigint' ? r4 - 1n : +r4 - 1;
if (!(value11 >= 0)) {
break;
}
value12 = r2 * value9;
if (value12) {
r2 = value12;
r4 = value11;
continue;
}
break;
}
}
return value2 + value3;
}
function writeUInt8(a0, a1, a2) { // fn#6392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:17689, offset: 0x00cf8b7f, size: 74 bytes, params: 4, frame: 21
const value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 1, 255, 0);
}
this[value2] = 255 & value;
return value2 + 1;
}
function writeUInt16LE(a0, a1, a2) { // fn#6393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:17815, offset: 0x00cf8bc9, size: 95 bytes, params: 4, frame: 21
let value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 2, 65535, 0);
}
this[value2] = 255 & value;
value >>>= 8;
this[value2 + 1] = value;
return value2 + 2;
}
function writeUInt16BE(a0, a1, a2) { // fn#6394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:17962, offset: 0x00cf8c28, size: 95 bytes, params: 4, frame: 21
let value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 2, 65535, 0);
}
this[value2] = value >>> 8;
value = 255 & value;
this[value2 + 1] = value;
return value2 + 2;
}
function writeUInt32LE(a0, a1, a2) { // fn#6395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:18109, offset: 0x00cf8c87, size: 135 bytes, params: 4, frame: 21
const value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 4, 4294967295, 0);
}
this[value2 + 3] = value >>> 24;
this[value2 + 2] = value >>> 16;
this[value2 + 1] = value >>> 8;
this[value2] = 255 & value;
return value2 + 4;
}
function writeUInt32BE(a0, a1, a2) { // fn#6396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:18295, offset: 0x00cf8d0e, size: 135 bytes, params: 4, frame: 21
let value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 4, 4294967295, 0);
}
this[value2] = value >>> 24;
this[value2 + 1] = value >>> 16;
this[value2 + 2] = value >>> 8;
value = 255 & value;
this[value2 + 3] = value;
return value2 + 4;
}
function writeIntLE(a0, a1, a2, a3) { // fn#6397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:18478, offset: 0x00cf8d95, size: 213 bytes, params: 5, frame: 27
var r2;
var r3;
var r4;
var r12;
var value4;
var value11;
var value12;
var value13;
var value14;
var value15;
const value = Number(a0);
const value2 = 0;
const value3 = a1 >>> value2;
if (!a3) {
value4 = global.Math.pow(2, 8 * a2 - 1);
checkInt(this, value, value3, a2, value4 - 1, -value4);
}
this[value3] = 255 & value;
const value7 = 1;
const value8 = value7 < a2;
const value9 = 256;
const value10 = value < value2;
if (value8) {
r2 = value2;
r3 = value9;
r4 = value7;
while (true) {
if (value10) {
value11 = value2 === r2;
r12 = value11;
} else {
r12 = value10;
}
if (!r12) {
continue;
}
value12 = value2 !== this[value3 + r4 - value7];
r12 = value12;
if (r12) {
r2 = value7;
continue;
}
continue;
value13 = value3 + r4;
this[value13] = (value / r3 | 0) - r2 & 255;
value14 = typeof r4 === 'bigint' ? r4 + 1n : +r4 + 1;
if (value14 < a2) {
value15 = r3 * value9;
if (value15) {
r3 = value15;
r4 = value14;
continue;
}
break;
}
break;
}
}
return value3 + a2;
}
function writeIntBE(a0, a1, a2, a3) { // fn#6398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:18728, offset: 0x00cf8e6a, size: 218 bytes, params: 5, frame: 27
var r2;
var r3;
var r6;
var r12;
var value4;
var value13;
var value14;
var value15;
var value16;
var value17;
const value = Number(a0);
const value2 = 0;
const value3 = a1 >>> value2;
if (!a3) {
value4 = global.Math.pow(2, 8 * a2 - 1);
checkInt(this, value, value3, a2, value4 - 1, -value4);
}
const value7 = 1;
const value8 = a2 - value7;
this[value3 + value8] = 255 & value;
const value10 = typeof value8 === 'bigint' ? value8 - 1n : +value8 - 1;
const value11 = 256;
const value12 = value < value2;
if (value10 >= value2) {
r2 = value2;
r3 = value11;
r6 = value10;
while (true) {
if (value12) {
value13 = value2 === r2;
r12 = value13;
} else {
r12 = value12;
}
if (!r12) {
continue;
}
value14 = value2 !== this[value3 + r6 + value7];
r12 = value14;
if (r12) {
r2 = value7;
continue;
}
continue;
value15 = value3 + r6;
this[value15] = (value / r3 | 0) - r2 & 255;
value16 = typeof r6 === 'bigint' ? r6 - 1n : +r6 - 1;
if (value16 >= value2) {
value17 = r3 * value11;
if (value17) {
r3 = value17;
r6 = value16;
continue;
}
break;
}
break;
}
}
return value3 + a2;
}
function writeInt8(a0, a1, a2) { // fn#6399, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:18982, offset: 0x00cf8f44, size: 99 bytes, params: 4, frame: 22
const value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 1, 127, -128);
}
this[value2] = 255 & (value < 0 ? 255 + value + 1 : value);
return value2 + 1;
}
function writeInt16LE(a0, a1, a2) { // fn#6400, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:19126, offset: 0x00cf8fa7, size: 99 bytes, params: 4, frame: 21
let value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 2, 32767, -32768);
}
this[value2] = 255 & value;
value >>>= 8;
this[value2 + 1] = value;
return value2 + 2;
}
function writeInt16BE(a0, a1, a2) { // fn#6401, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:19276, offset: 0x00cf900a, size: 99 bytes, params: 4, frame: 21
let value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 2, 32767, -32768);
}
this[value2] = value >>> 8;
value = 255 & value;
this[value2 + 1] = value;
return value2 + 2;
}
function writeInt32LE(a0, a1, a2) { // fn#6402, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:19426, offset: 0x00cf906d, size: 135 bytes, params: 4, frame: 21
let value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 4, 2147483647, -2147483648);
}
this[value2] = 255 & value;
this[value2 + 1] = value >>> 8;
this[value2 + 2] = value >>> 16;
value >>>= 24;
this[value2 + 3] = value;
return value2 + 4;
}
function writeInt32BE(a0, a1, a2) { // fn#6403, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:19620, offset: 0x00cf90f4, size: 163 bytes, params: 4, frame: 22
const value = Number(a0);
const value2 = a1 >>> 0;
if (!a2) {
checkInt(this, value, value2, 4, 2147483647, -2147483648);
}
const r2 = value < 0 ? 4294967295 + value + 1 : value;
this[value2] = r2 >>> 24;
this[value2 + 1] = r2 >>> 16;
this[value2 + 2] = r2 >>> 8;
this[value2 + 3] = 255 & r2;
return value2 + 4;
}
function copy(a0, a1, a2, a3) { // fn#6408, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:20208, offset: 0x00cf920b, size: 502 bytes, params: 5, frame: 20
var r5;
var r0;
var r4;
var r6;
var r1;
var r2;
var prototype;
var value5;
var value6;
var length;
var value7;
var Uint8Array;
var copyWithin;
var set;
var call;
var subarray;
var value8;
var value9;
var value10;
var RangeError;
var rangeError;
let value = a1;
const value2 = a2;
const value3 = a3;
if (Buffer.isBuffer(a0)) {
reducibleJoin4: while (true) {
if (value2) {
r5 = value2;
break reducibleJoin4;
}
value5 = 0;
r5 = value5;
break reducibleJoin4;
}
reducibleJoin6: while (true) {
if (value3) {
r0 = value3;
break reducibleJoin6;
}
value6 = value3 === 0;
r0 = value6;
break reducibleJoin6;
}
reducibleJoin8: while (true) {
if (r0) {
r4 = value3;
break reducibleJoin8;
}
length = this.length;
r4 = length;
break reducibleJoin8;
}
length = a0.length;
reducibleJoin10: while (true) {
if (value >= length) {
length = a0.length;
r6 = length;
break reducibleJoin10;
}
r6 = value;
break reducibleJoin10;
}
reducibleJoin12: while (true) {
if (r6) {
break reducibleJoin12;
}
value = 0;
r6 = value;
break reducibleJoin12;
}
value = r4 > 0;
reducibleJoin14: while (true) {
if (value) {
value = r4 < r5;
r1 = value;
break reducibleJoin14;
}
r1 = value;
break reducibleJoin14;
}
r4 = r1 ? r5 : r4;
if (r4 === r5) {
return 0;
}
length = a0.length;
if (length !== 0) {
length = this.length;
reducibleJoin39: while (true) {
if (length !== 0) {
if (r6 < 0) {
throw new global.RangeError('targetStart out of bounds');
}
if (!(r5 < 0)) {
length = this.length;
reducibleJoin37: while (true) {
if (!(r5 >= length)) {
if (r4 < 0) {
throw new global.RangeError('sourceEnd out of bounds');
}
length = this.length;
reducibleJoin24: while (true) {
if (r4 > length) {
length = this.length;
r4 = length;
break reducibleJoin24;
}
break reducibleJoin24;
}
length = a0.length;
value = length - r6;
reducibleJoin26: while (true) {
if (value < r4 - r5) {
length = a0.length;
value = length - r6 + r5;
r4 = value;
break reducibleJoin26;
}
break reducibleJoin26;
}
value = r4 - r5;
value7 = this === a0;
reducibleJoin35: while (true) {
reducibleJoin31: while (true) {
if (value7) {
Uint8Array = global.Uint8Array;
prototype = Uint8Array.prototype;
copyWithin = prototype.copyWithin;
if (typeof copyWithin === 'function') {
copyWithin = this.copyWithin;
Reflect.apply(copyWithin, this, [r6, r5, r4]);
break reducibleJoin35;
}
if (value7) {
if (r5 < r6) {
if (r6 < r4) {
value8 = value - 1;
if (value8 >= 0) {
r2 = value8;
reducibleLoop33: while (true) {
value9 = r2 + r6;
a0[value9] = this[r2 + r5];
value10 = typeof r2 === 'bigint' ? r2 - 1n : +r2 - 1;
if (value10 >= 0) {
r2 = value10;
continue reducibleLoop33;
}
break reducibleJoin35;
}
return value;
}
break reducibleJoin35;
}
break reducibleJoin31;
}
break reducibleJoin31;
}
break reducibleJoin31;
}
if (value7) {
if (r5 < r6) {
if (r6 < r4) {
value8 = value - 1;
if (value8 >= 0) {
r2 = value8;
reducibleLoop33: while (true) {
value9 = r2 + r6;
a0[value9] = this[r2 + r5];
value10 = typeof r2 === 'bigint' ? r2 - 1n : +r2 - 1;
if (value10 >= 0) {
r2 = value10;
continue reducibleLoop33;
}
break reducibleJoin35;
}
return value;
}
break reducibleJoin35;
}
break reducibleJoin31;
}
break reducibleJoin31;
}
break reducibleJoin31;
}
Uint8Array = global.Uint8Array;
prototype = Uint8Array.prototype;
set = prototype.set;
call = set.call;
subarray = this.subarray;
Reflect.apply(call, set, [a0, Reflect.apply(subarray, this, [r5, r4]), r6]);
break reducibleJoin35;
}
return value;
}
break reducibleJoin37;
}
}
RangeError = global.RangeError;
prototype = RangeError.prototype;
value = Object.create(prototype, {constructor: {value: RangeError}});
rangeError = new RangeError('Index out of range');
value = rangeError instanceof Object ? rangeError : value;
throw value;
}
break reducibleJoin39;
}
}
return 0;
}
const TypeError = global.TypeError;
throw new TypeError('argument should be a Buffer');
}
function fill_6409(a0, a1, a2, a3) { // fn#6409, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:20948, offset: 0x00cf9401, size: 639 bytes, params: 5, frame: 22
var r4;
var r5;
var r6;
var r9;
var r1;
var r2;
var r3;
var r8;
var r7;
var Number;
var length;
var value6;
var value7;
var isEncoding;
var TypeError;
var typeError;
var charCodeAt;
var value9;
var value10;
var value11;
var value12;
var value13;
var value14;
var value15;
var isBuffer;
var from;
var value16;
var value17;
let value = a0;
const value2 = a1;
const value3 = a2;
const value4 = a3;
const value5 = typeof value;
if (value5 === 'string') {
if (typeof value2 === 'string') {
length = this.length;
value6 = 0;
r4 = value2;
r5 = length;
r6 = value6;
} else {
reducibleJoin9: while (true) {
if (typeof value3 !== 'string') {
r4 = value4;
r5 = value3;
r6 = value2;
break reducibleJoin9;
}
length = this.length;
r4 = value3;
r5 = length;
r6 = value2;
break reducibleJoin9;
}
}
reducibleJoin20: while (true) {
reducibleJoin14: while (true) {
if (r4 === undefined) {
if (typeof r4 !== 'string') {
break reducibleJoin14;
}
value7 = environment;
if (!Buffer.isEncoding(r4)) {
throw new global.TypeError('Unknown encoding: ' + r4);
}
break reducibleJoin14;
}
if (typeof r4 !== 'string') {
throw new global.TypeError('encoding must be a string');
}
if (typeof r4 !== 'string') {
break reducibleJoin14;
}
value7 = environment;
isEncoding = Buffer.isEncoding;
if (!Reflect.apply(isEncoding, Buffer, [r4])) {
throw new global.TypeError('Unknown encoding: ' + r4);
}
break reducibleJoin14;
}
length = value.length;
if (length !== 1) {
r1 = r5;
r2 = r6;
r3 = value;
r8 = r4;
break reducibleJoin20;
}
charCodeAt = value.charCodeAt;
value9 = Reflect.apply(charCodeAt, value, [0]);
value10 = r4 === 'utf8';
reducibleJoin17: while (true) {
if (value10) {
value11 = value9 < 128;
r9 = value11;
break reducibleJoin17;
}
r9 = value10;
break reducibleJoin17;
}
reducibleJoin19: while (true) {
if (r9) {
break reducibleJoin19;
}
value12 = r4 === 'latin1';
r9 = value12;
break reducibleJoin19;
}
if (r9) {
r1 = r5;
r2 = r6;
r3 = value9;
r8 = r4;
break reducibleJoin20;
}
r1 = r5;
r2 = r6;
r3 = value;
r8 = r4;
break reducibleJoin20;
}
} else if (value5 === 'number') {
value &= 255;
r1 = value3;
r2 = value2;
r3 = value;
r8 = value4;
} else {
reducibleJoin20: while (true) {
if (value5 !== 'boolean') {
r1 = value3;
r2 = value2;
r3 = value;
r8 = value4;
break reducibleJoin20;
}
Number = global.Number;
value = Number(value);
r1 = value3;
r2 = value2;
r3 = value;
r8 = value4;
break reducibleJoin20;
}
}
value = 0;
if (!(r2 < value)) {
length = this.length;
reducibleJoin39: while (true) {
if (length < r2) {
break reducibleJoin39;
}
length = this.length;
if (!(length < r1)) {
if (r1 <= r2) {
return this;
}
value13 = r2 >>> value;
if (r1 === undefined) {
length = this.length;
r1 = length;
} else {
value14 = r1 >>> value;
r1 = value14;
}
if (!r3) {
r3 = value;
}
if (typeof r3 === 'number') {
if (value13 < r1) {
r2 = value13;
reducibleLoop36: while (true) {
this[r2] = r3;
value = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
if (value < r1) {
r2 = value;
continue reducibleLoop36;
}
break reducibleLoop36;
}
}
} else {
value15 = environment;
isBuffer = Buffer.isBuffer;
reducibleJoin31: while (true) {
if (Reflect.apply(isBuffer, Buffer, [r3])) {
r6 = r3;
break reducibleJoin31;
}
from = Buffer.from;
value16 = Reflect.apply(from, Buffer, [r3, r8]);
r6 = value16;
break reducibleJoin31;
}
length = r6.length;
if (value === length) {
TypeError = global.TypeError;
value = 'The value "' + r3;
value17 = Object.create(TypeError.prototype, {constructor: {value: TypeError}});
value += '" is invalid for argument "value"';
typeError = new TypeError(value);
value = typeError instanceof Object ? typeError : value17;
throw value;
}
if (value < r1 - value13) {
r7 = value;
reducibleLoop33: while (true) {
value = r7 + value13;
this[value] = r6[r7 % length];
value = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1;
if (value < r1 - value13) {
r7 = value;
continue reducibleLoop33;
}
break reducibleLoop33;
}
}
}
return this;
}
break reducibleJoin39;
}
}
const RangeError = global.RangeError;
throw new RangeError('Out of range index');
}
}
function utf8ToBytes(a0, a1) { // fn#6341, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:21812, offset: 0x00cf7261, size: 663 bytes, params: 3, frame: 56
var r31;
var r1;
var r2;
var r33;
var r34;
var r37;
var r39;
var charCodeAt;
var value3;
var value4;
var value5;
var push;
var value6;
var value7;
var value8;
var value9;
var value10;
var value11;
var value12;
var value13;
var value14;
var value15;
var value16;
var value17;
var value18;
var value19;
var value20;
var value21;
var value22;
var value23;
var value24;
var value25;
var value26;
var value27;
var value28;
var value29;
var value30;
var value31;
let value = a1;
reducibleJoin2: while (true) {
if (value) {
r31 = value;
break reducibleJoin2;
}
value = Infinity;
r31 = value;
break reducibleJoin2;
}
const length = a0.length;
const items2 = [];
value = 0;
const value2 = null;
if (value < length) {
r1 = value;
r2 = value2;
reducibleLoop3: while (true) {
charCodeAt = a0.charCodeAt;
value3 = Reflect.apply(charCodeAt, a0, [r1]);
if (value3 > 55295) {
reducibleJoin5: while (true) {
if (value3 < 57344) {
if (r2) {
if (value3 < 56320) {
value30 = r31 - 3;
reducibleJoin33: while (true) {
if (value30 > -1) {
push = items2.push;
Reflect.apply(push, items2, [239, 191, 189]);
r33 = value3;
r34 = value30;
break reducibleJoin33;
}
r33 = value3;
r34 = value30;
break reducibleJoin33;
}
} else {
value8 = r2 - 55296;
value9 = value3 - 56320;
value10 = 65536 + (value8 << 10 | value9);
r37 = r31;
r39 = value10;
if (r39 < 128) {
value29 = r37 - 1;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value29 < value) {
break reducibleJoin34;
}
push = items2.push;
Reflect.apply(push, items2, [r39]);
r33 = value2;
r34 = value29;
break reducibleJoin33;
}
return items2;
}
} else if (r39 < 2048) {
value25 = r37 - 2;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value25 < value) {
break reducibleJoin34;
}
push = items2.push;
value26 = r39 >> 6;
value27 = 63 & r39;
value28 = value26 | 192;
Reflect.apply(push, items2, [value28, value27 | 128]);
r33 = value2;
r34 = value25;
break reducibleJoin33;
}
return items2;
}
} else if (r39 < 65536) {
value19 = r37 - 3;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value19 < value) {
break reducibleJoin34;
}
push = items2.push;
value20 = r39 >> 12;
value21 = r39 >> 6;
value22 = 63 & r39;
value23 = value20 | 224;
value24 = value21 & 63 | 128;
Reflect.apply(push, items2, [value23, value24, value22 | 128]);
r33 = value2;
r34 = value19;
break reducibleJoin33;
}
return items2;
}
} else {
if (!(r39 < 1114112)) {
throw new global.Error('Invalid code point');
}
value11 = r37 - 4;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value11 < value) {
break reducibleJoin34;
}
push = items2.push;
value12 = r39 >> 18;
value13 = r39 >> 12;
value14 = r39 >> 6;
value15 = 63 & r39;
value16 = value12 | 240;
value17 = value13 & 63 | 128;
value18 = value14 & 63 | 128;
Reflect.apply(push, items2, [value16, value17, value18, value15 | 128]);
r33 = value2;
r34 = value11;
break reducibleJoin33;
}
return items2;
}
}
}
} else if (value3 > 56319) {
value7 = r31 - 3;
reducibleJoin33: while (true) {
if (value7 > -1) {
push = items2.push;
Reflect.apply(push, items2, [239, 191, 189]);
r33 = r2;
r34 = value7;
break reducibleJoin33;
}
r33 = r2;
r34 = value7;
break reducibleJoin33;
}
} else {
reducibleJoin33: while (true) {
if (r1 + 1 !== length) {
r33 = value3;
r34 = r31;
break reducibleJoin33;
}
value6 = r31 - 3;
if (value6 > -1) {
push = items2.push;
Reflect.apply(push, items2, [239, 191, 189]);
r33 = r2;
r34 = value6;
break reducibleJoin33;
}
r33 = r2;
r34 = value6;
break reducibleJoin33;
}
}
value31 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value31 < length)) {
return items2;
}
r1 = value31;
r2 = r33;
r31 = r34;
continue reducibleLoop3;
}
break reducibleJoin5;
}
}
reducibleJoin7: while (true) {
if (r2) {
value4 = r31 - 3;
value5 = value4 > -1;
r33 = value4;
r34 = value5;
break reducibleJoin7;
}
r33 = r31;
r34 = r2;
break reducibleJoin7;
}
reducibleJoin18: while (true) {
if (r34) {
push = items2.push;
Reflect.apply(push, items2, [239, 191, 189]);
r37 = r33;
r39 = value3;
break reducibleJoin18;
}
r37 = r33;
r39 = value3;
break reducibleJoin18;
}
if (r39 < 128) {
value29 = r37 - 1;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value29 < value) {
break reducibleJoin34;
}
push = items2.push;
Reflect.apply(push, items2, [r39]);
r33 = value2;
r34 = value29;
break reducibleJoin33;
}
return items2;
}
} else if (r39 < 2048) {
value25 = r37 - 2;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value25 < value) {
break reducibleJoin34;
}
push = items2.push;
value26 = r39 >> 6;
value27 = 63 & r39;
value28 = value26 | 192;
Reflect.apply(push, items2, [value28, value27 | 128]);
r33 = value2;
r34 = value25;
break reducibleJoin33;
}
return items2;
}
} else if (r39 < 65536) {
value19 = r37 - 3;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value19 < value) {
break reducibleJoin34;
}
push = items2.push;
value20 = r39 >> 12;
value21 = r39 >> 6;
value22 = 63 & r39;
value23 = value20 | 224;
value24 = value21 & 63 | 128;
Reflect.apply(push, items2, [value23, value24, value22 | 128]);
r33 = value2;
r34 = value19;
break reducibleJoin33;
}
return items2;
}
} else {
if (!(r39 < 1114112)) {
throw new global.Error('Invalid code point');
}
value11 = r37 - 4;
reducibleJoin33: while (true) {
reducibleJoin34: while (true) {
if (value11 < value) {
break reducibleJoin34;
}
push = items2.push;
value12 = r39 >> 18;
value13 = r39 >> 12;
value14 = r39 >> 6;
value15 = 63 & r39;
value16 = value12 | 240;
value17 = value13 & 63 | 128;
value18 = value14 & 63 | 128;
Reflect.apply(push, items2, [value16, value17, value18, value15 | 128]);
r33 = value2;
r34 = value11;
break reducibleJoin33;
}
return items2;
}
}
value31 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
if (!(value31 < length)) {
return items2;
}
r1 = value31;
r2 = r33;
r31 = r34;
continue reducibleLoop3;
}
}
return items2;
}
function foo() { // fn#6348, owner: typedArraySupport.foo, offset: 0x00cf76e1, size: 5 bytes, params: 1, frame: 1
return 42;
}
function isEncoding(a0) { // fn#6357, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:536:9091, offset: 0x00cf792a, size: 138 bytes, params: 2, frame: 11
const String = global.String;
let value = String(a0);
value = value.toLowerCase();
if (value === 'hex') {
return true;
}
if (value === 'utf8') {
return true;
}
if (value === 'utf-8') {
return true;
}
if (value === 'ascii') {
return true;
}
if (value === 'latin1') {
return true;
}
if (value === 'binary') {
return true;
}
if (value === 'base64') {
return true;
}
if (value === 'ucs2') {
return true;
}
if (value === 'ucs-2') {
return true;
}
if (value === 'utf16le') {
return true;
}
if (value === 'utf-16le') {
return true;
}
return false;
}
global.__d(_fun6309, 488, [206, 489]) /* metro module 488, dependencies: [206, 489] */;