/* Metro module 216; source: unknown; dependencies: [] */ function _fun2962(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:6, offset: 0x00c8d5f0, size: 125 bytes, params: 8, frame: 15 var object2; const closure = t; if (typeof exports !== 'object') { if (typeof global.define !== 'function') { object2 = {}; this.WHATWGFetch = object2; closure(object2); } else if (global.define.amd) { global.define(['exports'], closure); } else { object2 = {}; this.WHATWGFetch = object2; closure(object2); } } else if (module !== undefined) { closure(exports); } else if (typeof global.define !== 'function') { object2 = {}; this.WHATWGFetch = object2; closure(object2); } else if (global.define.amd) { global.define(['exports'], closure); } else { object2 = {}; this.WHATWGFetch = object2; closure(object2); } } function t(a0) { // fn#2963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:50, offset: 0x00c8d66d, size: 939 bytes, params: 2, frame: 24 var r1; var r112; var r12; var r113; var r114; var Symbol; var Blob; var prototype; var error; var ArrayBuffer; var isView; var closure6; var iterator; var prototype2; var entries; var call; var DOMException; var Object; var create; var Error; var fetch; let env0_0 = a0; const normalizeName = function(a0) { var r1; var TypeError; var value2; var value = a0; if (typeof value === 'string') { r1 = value; } else { value = (0, global.String)(value); r1 = value; } if (RegExp("[^a-z0-9\\-#$%&'*+.^_`|~!]", 'i').test(r1)) { TypeError = global.TypeError; value = 'Invalid character in header field name: "' + r1; value2 = Object.create(TypeError.prototype, {constructor: {value: TypeError}}); value += '"'; value = new TypeError(value); value = value instanceof Object ? value : value2; throw value; } if (r1 === '') { TypeError = global.TypeError; value = 'Invalid character in header field name: "' + r1; value2 = Object.create(TypeError.prototype, {constructor: {value: TypeError}}); value += '"'; value = new TypeError(value); value = value instanceof Object ? value : value2; throw value; } return r1.toLowerCase(); }; const tNormalizeValue = function(a0) { var r0; var value = a0; if (typeof value === 'string') { r0 = value; } else { value = (0, global.String)(value); r0 = value; } return r0; }; const closure = Headers; const consumed = function(a0) { var r0; var Promise; var value2; if (a0._noBody) { return undefined; } if (a0.bodyUsed) { Promise = global.Promise; value2 = new global.TypeError('Already read'); value2 = Promise.reject(value2); r0 = value2; } else { a0.bodyUsed = true; r0 = undefined; } return r0; }; const fileReaderReady = function(a0) { var env0_0 = a0; var Promise = global.Promise; var value = Object.create(Promise.prototype, {constructor: {value: Promise}}); var value2 = new Promise(_fun2975); return value2 instanceof Object ? value2 : value; }; const readBlobAsArrayBuffer = function(a0) { var FileReader = global.FileReader; var value2 = new FileReader(); var value4 = fileReaderReady(value2); value2.readAsArrayBuffer(a0); return value4; }; const bufferClone = function(a0) { if (a0.slice) { return a0.slice(0); } var Uint8Array = global.Uint8Array; var value2 = new Uint8Array(a0.byteLength); Uint8Array = global.Uint8Array; var value3 = Object.create(Uint8Array.prototype, {constructor: {value: Uint8Array}}); var value4 = new Uint8Array(a0); value2.set(value4 instanceof Object ? value4 : value3); return value2.buffer; }; const closure2 = Body; const closure3 = Request_2987; const tDecode = function(a0) { var FormData = global.FormData; var value2 = new FormData(); var env0_0 = value2; a0.trim().split('&').forEach(_fun2989); return value2; }; const closure4 = Response_2990; const closure5 = function(a0, a1) { var env0_0 = a0; var env0_1 = a1; var Promise = global.Promise; var value = Object.create(Promise.prototype, {constructor: {value: Promise}}); var value2 = new Promise(_fun2992); return value2 instanceof Object ? value2 : value; }; let r11 = typeof global.globalThis !== 'undefined' && global.globalThis; r11 = !r11 ? typeof global.self !== 'undefined' && global.self : r11; r11 = !r11 ? env0_0 !== undefined && env0_0 : r11; r11 = !r11 ? {} : r11; const result = 'URLSearchParams' in r11; value = 'Symbol' in r11; if (value) { Symbol = global.Symbol; r1 = 'iterator' in Symbol; } else { r1 = value; } value = 'FileReader' in r11; if (value) { value = 'Blob' in r11; r112 = value; } else { r112 = value; } if (r112) { try { Blob = global.Blob; prototype = Blob.prototype; Object.create(prototype, {constructor: {value: Blob}}); new Blob(); } catch (error) { value = false; r12 = value; r113 = r12; var env0_4 = r113; var result_2 = 'FormData' in r11; value = 'ArrayBuffer' in r11; var result_3 = value; if (value) { var env0_7 = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]']; ArrayBuffer = global.ArrayBuffer; isView = ArrayBuffer.isView; if (isView) { r114 = isView; } else { closure6 = _fun3008; r114 = closure6; } var env0_8 = r114; } prototype = closure.prototype; prototype.append = append_3009; prototype = closure.prototype; prototype.delete = function(a0) { delete this.map[normalizeName(a0)]; }; prototype = closure.prototype; prototype.get = get_3011; prototype = closure.prototype; prototype.has = has_3012; prototype = closure.prototype; prototype.set = set_3013; prototype = closure.prototype; prototype.forEach = forEach_3014; prototype = closure.prototype; prototype.keys = keys_3015; prototype = closure.prototype; prototype.values = values_3017; prototype = closure.prototype; prototype.entries = entries_3019; if (r1) { prototype = closure.prototype; Symbol = global.Symbol; iterator = Symbol.iterator; prototype2 = closure.prototype; entries = prototype2.entries; prototype[iterator] = entries; } var env0_9 = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE']; prototype = closure3.prototype; prototype.clone = clone_3021; call = closure2.call; prototype = closure3.prototype; Reflect.apply(call, closure2, [prototype]); call = closure2.call; prototype = closure4.prototype; Reflect.apply(call, closure2, [prototype]); prototype = closure4.prototype; prototype.clone = clone_3022; closure4.error = error_3023; var env0_10 = [301, 302, 303, 307, 308]; closure4.redirect = redirect; DOMException = r11.DOMException; a0.DOMException = DOMException; try { DOMException = a0.DOMException; prototype = DOMException.prototype; Object.create(prototype, {constructor: {value: DOMException}}); new DOMException(); } catch (error) { a0.DOMException = DOMException_3025; DOMException = a0.DOMException; Object = global.Object; create = Object.create; Error = global.Error; prototype = Error.prototype; DOMException.prototype = Reflect.apply(create, Object, [prototype]); DOMException = a0.DOMException; prototype = DOMException.prototype; DOMException = a0.DOMException; prototype.constructor = DOMException; } closure5.polyfill = true; fetch = r11.fetch; if (!fetch) { r11.fetch = closure5; r11.Headers = closure; r11.Request = closure3; r11.Response = closure4; } a0.Headers = closure; a0.Request = closure3; a0.Response = closure4; a0.fetch = closure5; Object = global.Object; Object.defineProperty(a0, '__esModule', {value: true}); return undefined; } } var result_2 = 'FormData' in r11; if ('ArrayBuffer' in r11) { var env0_7 = ['[object Int8Array]', '[object Uint8Array]', '[object Uint8ClampedArray]', '[object Int16Array]', '[object Uint16Array]', '[object Int32Array]', '[object Uint32Array]', '[object Float32Array]', '[object Float64Array]']; r114 = global.ArrayBuffer.isView || _fun3008; } closure.prototype.append = append_3009; closure.prototype.delete = function(a0) { delete this.map[normalizeName(a0)]; }; closure.prototype.get = get_3011; closure.prototype.has = function(a0) { return this.map.hasOwnProperty(normalizeName(a0)); }; closure.prototype.set = function(a0, a1) { this.map[normalizeName(a0)] = tNormalizeValue(a1); }; closure.prototype.forEach = function(a0, a1) { var r2; var propertyName; var propertyName2; var map2; for (propertyName in this.map) { map2 = this.map; if (!map2.hasOwnProperty(propertyName)) { r2 = propertyName2; continue; } a0.call(a1, this.map[propertyName], propertyName, this); r2 = propertyName2; } }; closure.prototype.keys = function() { this.forEach(_fun3016); return iteratorFor([]); }; closure.prototype.values = function() { this.forEach(_fun3018); return iteratorFor([]); }; closure.prototype.entries = function() { this.forEach(_fun3020); return iteratorFor([]); }; if (r1) { closure.prototype[global.Symbol.iterator] = closure.prototype.entries; } var env0_9 = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE']; closure3.prototype.clone = clone_3021; closure2.call(closure3.prototype); closure2.call(closure4.prototype); closure4.prototype.clone = clone_3022; closure4.error = error_3023; var env0_10 = [301, 302, 303, 307, 308]; closure4.redirect = redirect; DOMException = r11.DOMException; a0.DOMException = DOMException; try { DOMException = a0.DOMException; } catch (error) { a0.DOMException = function(a0, a1) { this.message = a0; this.name = a1; this.stack = (0, global.Error)(a0).stack; }; DOMException = a0.DOMException; Object = global.Object; create = Object.create; Error = global.Error; prototype = Error.prototype; DOMException.prototype = Reflect.apply(create, Object, [prototype]); DOMException = a0.DOMException; prototype = DOMException.prototype; DOMException = a0.DOMException; prototype.constructor = DOMException; closure5.polyfill = true; fetch = r11.fetch; if (!fetch) { r11.fetch = closure5; r11.Headers = closure; r11.Request = closure3; r11.Response = closure4; } a0.Headers = closure; a0.Request = closure3; a0.Response = closure4; a0.fetch = closure5; Object = global.Object; Object.defineProperty(a0, '__esModule', {value: true}); return undefined; } try { prototype = DOMException.prototype; } catch (error) { a0.DOMException = function(a0, a1) { this.message = a0; this.name = a1; this.stack = (0, global.Error)(a0).stack; }; DOMException = a0.DOMException; Object = global.Object; create = Object.create; Error = global.Error; prototype = Error.prototype; DOMException.prototype = Reflect.apply(create, Object, [prototype]); DOMException = a0.DOMException; prototype = DOMException.prototype; DOMException = a0.DOMException; prototype.constructor = DOMException; closure5.polyfill = true; fetch = r11.fetch; if (!fetch) { r11.fetch = closure5; r11.Headers = closure; r11.Request = closure3; r11.Response = closure4; } a0.Headers = closure; a0.Request = closure3; a0.Response = closure4; a0.fetch = closure5; Object = global.Object; Object.defineProperty(a0, '__esModule', {value: true}); return undefined; } try { Object.create(prototype, {constructor: {value: DOMException}}); } catch (error) { a0.DOMException = function(a0, a1) { this.message = a0; this.name = a1; this.stack = (0, global.Error)(a0).stack; }; DOMException = a0.DOMException; Object = global.Object; create = Object.create; Error = global.Error; prototype = Error.prototype; DOMException.prototype = Reflect.apply(create, Object, [prototype]); DOMException = a0.DOMException; prototype = DOMException.prototype; DOMException = a0.DOMException; prototype.constructor = DOMException; closure5.polyfill = true; fetch = r11.fetch; if (!fetch) { r11.fetch = closure5; r11.Headers = closure; r11.Request = closure3; r11.Response = closure4; } a0.Headers = closure; a0.Request = closure3; a0.Response = closure4; a0.fetch = closure5; Object = global.Object; Object.defineProperty(a0, '__esModule', {value: true}); return undefined; } try { new DOMException(); } catch (error) { a0.DOMException = function(a0, a1) { this.message = a0; this.name = a1; this.stack = (0, global.Error)(a0).stack; }; DOMException = a0.DOMException; Object = global.Object; create = Object.create; Error = global.Error; prototype = Error.prototype; DOMException.prototype = Reflect.apply(create, Object, [prototype]); DOMException = a0.DOMException; prototype = DOMException.prototype; DOMException = a0.DOMException; prototype.constructor = DOMException; } closure5.polyfill = true; if (!r11.fetch) { r11.fetch = closure5; r11.Headers = closure; r11.Request = closure3; r11.Response = closure4; } a0.Headers = closure; a0.Request = closure3; a0.Response = closure4; a0.fetch = closure5; Object = global.Object; Object.defineProperty(a0, '__esModule', {value: true}); } function iteratorFor(a0) { // fn#2966, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:949, owner: t.iteratorFor, offset: 0x00c8dab9, size: 59 bytes, params: 2, frame: 3 const env0_0 = a0; const object2 = {next: next_2967}; if (env0_3) { object2[global.Symbol.iterator] = _fun2968; } return object2; } function Headers(a0) { // fn#2969, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1105, owner: t.Headers, offset: 0x00c8db17, size: 131 bytes, params: 2, frame: 15 var Array; const env0_0 = a0; this.map = {}; if (a0 instanceof Headers) { a0.forEach(function(a0, a1) { this.append(a1, a0); }, this); } else { Array = global.Array; if (Array.isArray(a0)) { a0.forEach(_fun2971, this); } else if (a0) { global.Object.getOwnPropertyNames(a0).forEach(_fun2972, this); } } } function fileReaderReady(a0) { // fn#2974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1595, owner: t.fileReaderReady, offset: 0x00c8dc8a, size: 44 bytes, params: 2, frame: 11 const env0_0 = a0; const Promise = global.Promise; const value = Object.create(Promise.prototype, {constructor: {value: Promise}}); const promise = new Promise(_fun2975); return promise instanceof Object ? promise : value; } function Body() { // fn#2980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1963, owner: t.Body, offset: 0x00c8ddc4, size: 98 bytes, params: 1, frame: 4 this.bodyUsed = false; this._initBody = _initBody; if (env0_4) { this.blob = blob; } this.arrayBuffer = arrayBuffer; this.text = text_2984; if (result_2) { this.formData = function() { return this.text().then(tDecode); }; } this.json = function() { return this.text().then(global.JSON.parse); }; return this; } function tRequest(a0, a1) { // fn#2987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:5500, owner: t.Request, offset: 0x00c8e429, size: 924 bytes, params: 3, frame: 18 var r0; var r2; var r4; var credentials; var method; var mode; var signal; var r5; var body; var url; var headers; var _bodyInit; var regexp; var test; var date; var replace; let value = a1; if (this instanceof Request_2987) { r0 = value || ({}); body = r0.body; if (a0 instanceof Request_2987) { if (a0.bodyUsed) { throw new global.TypeError('Already read'); } url = a0.url; this.url = url; credentials = a0.credentials; this.credentials = credentials; headers = r0.headers; if (!headers) { headers = a0.headers; headers = new Headers(); this.headers = headers; } method = a0.method; this.method = method; mode = a0.mode; this.mode = mode; signal = a0.signal; this.signal = signal; r2 = body || a0._bodyInit == null; if (r2) { r4 = body; } else { _bodyInit = a0._bodyInit; a0.bodyUsed = true; r4 = _bodyInit; } credentials = r0.credentials; credentials = !credentials ? this.credentials : credentials; credentials = !credentials ? 'same-origin' : credentials; this.credentials = credentials; headers = r0.headers; value = !headers; r2 = headers ? value : this.headers; if (!r2) { headers = r0.headers; headers = new Headers(); this.headers = headers; } method = r0.method; method = !method ? this.method : method; method = !method ? 'GET' : method; value = method.toUpperCase(); r2 = env0_9.indexOf(value) > -1 ? value : method; this.method = r2; mode = r0.mode; mode = !mode ? this.mode : mode; mode = !mode ? null : mode; this.mode = mode; signal = r0.signal; signal = !signal ? this.signal : signal; r2 = signal || ('AbortController' in env0_1 ? new global.AbortController().signal : undefined); this.signal = r2; this.referrer = null; method = this.method; if (method === 'GET') { if (r4) { throw new global.TypeError('Body not allowed for GET or HEAD requests'); } this._initBody(r4); if (this.method === 'GET') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } else if (this.method === 'HEAD') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } return undefined; } method = this.method; if (method !== 'HEAD') { this._initBody(r4); if (this.method === 'GET') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } else if (this.method === 'HEAD') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } return undefined; } if (r4) { throw new global.TypeError('Body not allowed for GET or HEAD requests'); } this._initBody(r4); method = this.method; if (method === 'GET') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } else if (this.method === 'HEAD') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } return undefined; } this.url = global.String(a0); r4 = body; credentials = r0.credentials; credentials = !credentials ? this.credentials : credentials; credentials = !credentials ? 'same-origin' : credentials; this.credentials = credentials; headers = r0.headers; value = !headers; r2 = headers ? value : this.headers; if (!r2) { headers = r0.headers; headers = new Headers(); this.headers = headers; } method = r0.method; method = !method ? this.method : method; method = !method ? 'GET' : method; value = method.toUpperCase(); r2 = env0_9.indexOf(value) > -1 ? value : method; this.method = r2; mode = r0.mode; mode = !mode ? this.mode : mode; mode = !mode ? null : mode; this.mode = mode; signal = r0.signal; signal = !signal ? this.signal : signal; r2 = signal || ('AbortController' in env0_1 ? new global.AbortController().signal : undefined); this.signal = r2; this.referrer = null; method = this.method; if (method === 'GET') { if (r4) { throw new global.TypeError('Body not allowed for GET or HEAD requests'); } this._initBody(r4); if (this.method === 'GET') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } else if (this.method === 'HEAD') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } return undefined; } method = this.method; if (method !== 'HEAD') { this._initBody(r4); if (this.method === 'GET') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } else if (this.method === 'HEAD') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } return undefined; } if (r4) { throw new global.TypeError('Body not allowed for GET or HEAD requests'); } this._initBody(r4); method = this.method; if (method === 'GET') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } else if (this.method === 'HEAD') { if (r0.cache === 'no-store') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } else if (r0.cache === 'no-cache') { regexp = RegExp('([?&])_=[^&]*', ''); test = regexp.test; url = this.url; value = Reflect.apply(test, regexp, [url]); url = this.url; if (value) { replace = url.replace; date = new global.Date(); date = date.getTime(); this.url = Reflect.apply(replace, url, [regexp, '$1_=' + date]); } else { regexp = RegExp('\\?', ''); r5 = regexp.test(this.url) ? '&' : '?'; date = new global.Date(); date = date.getTime(); this.url = url + (r5 + '_=' + date); } } } return undefined; } const TypeError = global.TypeError; throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); } function tDecode(a0) { // fn#2988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:6791, owner: t.decode, offset: 0x00c8e7c5, size: 78 bytes, params: 2, frame: 13 const FormData = global.FormData; const formData = new FormData(); a0.trim().split('&').forEach(_fun2989); return formData; } function tResponse(a0, a1) { // fn#2990, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:7026, owner: t.Response, offset: 0x00c8e8a7, size: 299 bytes, params: 3, frame: 15 var r1; var r2; var status; var statusText; var headers; var value4; let value = a1; if (this instanceof Response_2990) { r1 = value || ({}); this.type = 'default'; status = r1.status; value = 200; r2 = status === undefined ? value : r1.status; this.status = r2; status = this.status; if (status < value) { throw new global.RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599]."); } status = this.status; if (status > 599) { throw new global.RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599]."); } status = this.status; value = status >= value; r2 = value && this.status < 300; this.ok = r2; statusText = r1.statusText; value = ''; this.statusText = statusText === undefined ? value : String(r1.statusText); headers = r1.headers; value4 = Object.create(Headers.prototype, {constructor: {value: Headers}}); headers = new Headers(); this.headers = headers instanceof Object ? headers : value4; r1 = r1.url || value; this.url = r1; this._initBody(a0); return undefined; } const TypeError = global.TypeError; throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); } function tFetch(a0, a1) { // fn#2991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:8465, owner: t.fetch, offset: 0x00c8e9d2, size: 51 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; const Promise = global.Promise; const value = Object.create(Promise.prototype, {constructor: {value: Promise}}); const promise = new Promise(_fun2992); return promise instanceof Object ? promise : value; } function _fun3008(a0) { // fn#3008, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:607, offset: 0x00c8f0cd, size: 67 bytes, params: 2, frame: 14 var r0; var binding; var indexOf; var toString; let value = a0; if (value) { binding = env0_7; indexOf = binding.indexOf; toString = global.Object.prototype.toString; value = Reflect.apply(indexOf, binding, [toString.call(value)]); value = value > -1; r0 = value; } else { r0 = value; } return r0; } function tAppend(a0, a1) { // fn#3009, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:4482, owner: t.append, offset: 0x00c8f110, size: 72 bytes, params: 3, frame: 15 const value2 = normalizeName(a0); const value = tNormalizeValue(a1); const property = this.map[value2]; this.map[value2] = property ? property + ', ' + value : value; } function tGet(a0) { // fn#3011, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:4673, owner: t.get, offset: 0x00c8f177, size: 46 bytes, params: 2, frame: 12 const value = normalizeName(a0); return this.has(value) ? this.map[value] : null; } function tHas(a0) { // fn#3012, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:4763, owner: t.has, offset: 0x00c8f1a5, size: 38 bytes, params: 2, frame: 13 const map = this.map; return map.hasOwnProperty(normalizeName(a0)); } function tSet(a0, a1) { // fn#3013, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:4847, owner: t.set, offset: 0x00c8f1cb, size: 43 bytes, params: 3, frame: 13 this.map[normalizeName(a0)] = tNormalizeValue(a1); } function tForEach(a0, a1) { // fn#3014, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:4933, owner: t.forEach, offset: 0x00c8f1f6, size: 89 bytes, params: 3, frame: 22 var r2; var propertyName; var propertyName2; var map2; var hasOwnProperty; var call; var map3; for (propertyName in this.map) { map2 = this.map; hasOwnProperty = map2.hasOwnProperty; if (!Reflect.apply(hasOwnProperty, map2, [propertyName])) { r2 = propertyName2; continue; } call = a0.call; map3 = this.map; Reflect.apply(call, a0, [a1, map3[propertyName], propertyName, this]); r2 = propertyName2; } } function tKeys() { // fn#3015, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:5050, owner: t.keys, offset: 0x00c8f24f, size: 44 bytes, params: 1, frame: 12 this.forEach(_fun3016); return iteratorFor([]); } function tValues() { // fn#3017, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:5159, owner: t.values, offset: 0x00c8f27b, size: 44 bytes, params: 1, frame: 12 this.forEach(_fun3018); return iteratorFor([]); } function tEntries() { // fn#3019, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:5267, owner: t.entries, offset: 0x00c8f2a7, size: 44 bytes, params: 1, frame: 12 this.forEach(_fun3020); return iteratorFor([]); } function tClone() { // fn#3021, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:7612, owner: t.clone, offset: 0x00c8f2fa, size: 50 bytes, params: 1, frame: 13 const object2 = {}; object2.body = this._bodyInit; const value = Object.create(Request_2987.prototype, {constructor: {value: Request_2987}}); const request_2987 = new Request_2987(this, object2); return request_2987 instanceof Object ? request_2987 : value; } function tClone_3022() { // fn#3022, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:7755, owner: t.clone, offset: 0x00c8f32c, size: 110 bytes, params: 1, frame: 16 const _bodyInit = this._bodyInit; const object2 = {}; object2.status = this.status; object2.statusText = this.statusText; let headers = this.headers; headers = new Headers(headers); object2.headers = headers; object2.url = this.url; headers = Object.create(Response_2990.prototype, {constructor: {value: Response_2990}}); const response_2990 = new Response_2990(_bodyInit, object2); return response_2990 instanceof Object ? response_2990 : headers; } function tError() { // fn#3023, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:7913, owner: t.error, offset: 0x00c8f39a, size: 67 bytes, params: 1, frame: 13 const response_2990 = new Response_2990(null, {'status': 200, 'statusText': ''}); response_2990.ok = false; response_2990.status = 0; response_2990.type = 'error'; return response_2990; } function redirect(a0, a1) { // fn#3024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:8066, owner: t.redirect, offset: 0x00c8f3dd, size: 118 bytes, params: 3, frame: 13 if (env0_10.indexOf(a1) === -1) { throw new global.RangeError('Invalid status code'); } const value = Object.create(Response_2990.prototype, {constructor: {value: Response_2990}}); const response_2990 = new Response_2990(null, {status: a1, headers: {location: a0}}); return response_2990 instanceof Object ? response_2990 : value; } function tDOMException(a0, a1) { // fn#3025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:8281, owner: t.DOMException, offset: 0x00c8f453, size: 50 bytes, params: 3, frame: 12 this.message = a0; this.name = a1; const Error = global.Error; this.stack = Error(a0).stack; } function iteratorForNext() { // fn#2967, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:985, owner: t.iteratorFor.next, offset: 0x00c8daf4, size: 35 bytes, params: 1, frame: 10 const value = env0_0.shift(); return {done: value === undefined, value: value}; } function _fun2971(a0) { // fn#2971, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1236, offset: 0x00c8dbb3, size: 92 bytes, params: 2, frame: 14 var TypeError; var value; if (a0.length != 2) { TypeError = global.TypeError; value = 'Headers constructor: expected name/value pair to be length 2, found' + a0.length; throw new TypeError(); } this.append(a0[0], a0[1]); } function _fun2972(a0) { // fn#2972, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1436, offset: 0x00c8dc0f, size: 33 bytes, params: 2, frame: 13 this.append(a0, env0_0[a0]); } function _fun2975(a0, a1) { // fn#2975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1643, offset: 0x00c8dcb6, size: 49 bytes, params: 3, frame: 3 const env0_0 = a0; const env0_1 = a1; const binding = env0_0; binding.onload = onload_2976; binding.onerror = onerror_2977; } function _initBody(a0) { // fn#2981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:2018, owner: t.Body._initBody, offset: 0x00c8de26, size: 652 bytes, params: 2, frame: 16 var r5; var value2; var Blob; var prototype; var items; var value3; var blob; let value = a0; this.bodyUsed = this.bodyUsed; this._bodyInit = value; if (value) { if (typeof value === 'string') { this._bodyText = value; r5 = value; } else { value2 = environment.__proto__; if (env1_4) { Blob = global.Blob; prototype = Blob.prototype; if (prototype.isPrototypeOf(value)) { this._bodyBlob = value; r5 = value; } else if (result_2) { prototype = global.FormData.prototype; if (prototype.isPrototypeOf(value)) { this._bodyFormData = value; r5 = value; } else if (result) { prototype = global.URLSearchParams.prototype; if (prototype.isPrototypeOf(value)) { this._bodyText = value.toString(); r5 = value; } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result) { prototype = global.URLSearchParams.prototype; if (prototype.isPrototypeOf(value)) { this._bodyText = value.toString(); r5 = value; } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_2) { prototype = global.FormData.prototype; if (prototype.isPrototypeOf(value)) { this._bodyFormData = value; r5 = value; } else if (result) { prototype = global.URLSearchParams.prototype; if (prototype.isPrototypeOf(value)) { this._bodyText = value.toString(); r5 = value; } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result) { prototype = global.URLSearchParams.prototype; if (prototype.isPrototypeOf(value)) { this._bodyText = value.toString(); r5 = value; } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { if (env1_4) { if (value && global.DataView.prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value.buffer); Blob = global.Blob; items = [this._bodyArrayBuffer]; value3 = Object.create(Blob.prototype, {constructor: {value: Blob}}); blob = new Blob(); this._bodyInit = blob instanceof Object ? blob : value3; r5 = value; } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else if (result_3) { prototype = global.ArrayBuffer.prototype; if (prototype.isPrototypeOf(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else if (env1_8(value)) { this._bodyArrayBuffer = bufferClone(value); r5 = value; } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } else { value = global.Object.prototype.toString.call(value); this._bodyText = value; r5 = value; } } } else { this._noBody = true; this._bodyText = ''; r5 = value; } let headers = this.headers; const get = headers.get; if (!Reflect.apply(get, headers, ['content-type'])) { if (typeof r5 === 'string') { this.headers.set('content-type', 'text/plain;charset=UTF-8'); } else if (this._bodyBlob) { if (this._bodyBlob.type) { headers = this.headers; headers.set('content-type', this._bodyBlob.type); } else { value = environment.__proto__; if (result && global.URLSearchParams.prototype.isPrototypeOf(r5)) { this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); } } } else { value = environment.__proto__; if (result && global.URLSearchParams.prototype.isPrototypeOf(r5)) { this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); } } } } function blob() { // fn#2982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:2996, owner: t.Body.blob, offset: 0x00c8e0b2, size: 237 bytes, params: 1, frame: 16 var Promise; var resolve; var Blob; var items; let value = environment.__proto__; value = consumed(this); if (value) { return value; } if (this._bodyBlob) { Promise = global.Promise; return Promise.resolve(this._bodyBlob); } if (this._bodyArrayBuffer) { Promise = global.Promise; resolve = Promise.resolve; Blob = global.Blob; items = [this._bodyArrayBuffer]; } else { if (this._bodyFormData) { throw new global.Error('could not read FormData body as blob'); } Promise = global.Promise; resolve = Promise.resolve; Blob = global.Blob; items = [this._bodyText]; } return Reflect.apply(resolve, Promise, [new Blob()]); } function arrayBuffer() { // fn#2983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:3330, owner: t.Body.arrayBuffer, offset: 0x00c8e19f, size: 217 bytes, params: 1, frame: 18 var r1; var r0; var value2; var ArrayBuffer; var isView; var Promise; var resolve; var buffer; var slice; var byteOffset; var byteOffset2; let _bodyArrayBuffer = this._bodyArrayBuffer; let value = environment.__proto__; if (_bodyArrayBuffer) { value = consumed(this); if (value) { r0 = value; } else { ArrayBuffer = global.ArrayBuffer; isView = ArrayBuffer.isView; _bodyArrayBuffer = this._bodyArrayBuffer; value = Reflect.apply(isView, ArrayBuffer, [_bodyArrayBuffer]); Promise = global.Promise; resolve = Promise.resolve; _bodyArrayBuffer = this._bodyArrayBuffer; if (value) { buffer = _bodyArrayBuffer.buffer; slice = buffer.slice; _bodyArrayBuffer = this._bodyArrayBuffer; byteOffset = _bodyArrayBuffer.byteOffset; _bodyArrayBuffer = this._bodyArrayBuffer; byteOffset2 = _bodyArrayBuffer.byteOffset; _bodyArrayBuffer = this._bodyArrayBuffer; r1 = Reflect.apply(resolve, Promise, [Reflect.apply(slice, buffer, [byteOffset, byteOffset2 + _bodyArrayBuffer.byteLength])]); } else { r1 = Reflect.apply(resolve, Promise, [_bodyArrayBuffer]); } r0 = r1; } return r0; } if (env1_4) { value2 = this.blob(); return value2.then(readBlobAsArrayBuffer); } const Error = global.Error; throw new Error('could not read as ArrayBuffer'); } function BodyText() { // fn#2984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:3745, owner: t.Body.text, offset: 0x00c8e278, size: 364 bytes, params: 1, frame: 22 var r7; var r3; var Promise; var resolve; var prototype; var Uint8Array; var uint8Array; var Array; var length; var value3; var array; var value4; var value5; var String; var fromCharCode; var value6; var fileReader; var regexp; var value9; var property; let value = environment.__proto__; const value2 = consumed(this); if (value2) { return value2; } let _bodyBlob = this._bodyBlob; if (_bodyBlob) { _bodyBlob = this._bodyBlob; fileReader = new global.FileReader(); value = fileReaderReady(fileReader); regexp = RegExp('charset=([A-Za-z0-9_-]+)', ''); value9 = regexp.exec(_bodyBlob.type); reducibleJoin11: while (true) { if (value9) { property = value9[1]; r3 = property; break reducibleJoin11; } r3 = 'utf-8'; break reducibleJoin11; } fileReader.readAsText(_bodyBlob, r3); return value; } let _bodyArrayBuffer = this._bodyArrayBuffer; if (_bodyArrayBuffer) { Promise = global.Promise; resolve = Promise.resolve; _bodyArrayBuffer = this._bodyArrayBuffer; Uint8Array = global.Uint8Array; prototype = Uint8Array.prototype; value = Object.create(prototype, {constructor: {value: Uint8Array}}); uint8Array = new Uint8Array(_bodyArrayBuffer); value = uint8Array instanceof Object ? uint8Array : value; Array = global.Array; length = value.length; prototype = Array.prototype; value3 = Object.create(prototype, {constructor: {value: Array}}); array = new Array(); value4 = array instanceof Object ? array : value3; length = value.length; value5 = 0; if (value5 < length) { r7 = value5; reducibleLoop7: while (true) { String = global.String; fromCharCode = String.fromCharCode; value4[r7] = Reflect.apply(fromCharCode, String, [value[r7]]); value6 = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; length = value.length; if (value6 < length) { r7 = value6; continue reducibleLoop7; } break reducibleLoop7; } } return Reflect.apply(resolve, Promise, [value4.join('')]); } if (this._bodyFormData) { throw new global.Error('could not read FormData body as text'); } Promise = global.Promise; return Promise.resolve(this._bodyText); } function _fun2989(a0) { // fn#2989, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:6865, offset: 0x00c8e813, size: 148 bytes, params: 2, frame: 16 var value; var value3; var binding; var append; var decodeURIComponent; var value5; if (a0) { value = a0.split('='); value3 = value.shift().replace(RegExp('\\+', 'g'), ' '); value = value.join('='); value = value.replace(RegExp('\\+', 'g'), ' '); binding = env0_0; append = binding.append; decodeURIComponent = global.decodeURIComponent; value5 = decodeURIComponent(value3); decodeURIComponent = global.decodeURIComponent; Reflect.apply(append, binding, [value5, decodeURIComponent(value)]); } } function _fun2992(a0, a1) { // fn#2992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:8505, offset: 0x00c8ea05, size: 659 bytes, params: 3, frame: 23 var environment; var r9; var _bodyInit; var value7; var location; var href; var error; var credentials; var headers; var Headers2; var Headers3; var Object; var getOwnPropertyNames; var forEach; var addEventListener; var send; const env0_0 = a0; const env0_1 = a1; const closure = abortXhr; let value = environment.__proto__; let binding = env0_0; const request_2987 = new Request_2987(binding, require); let signal = request_2987.signal; if (signal) { signal = request_2987.signal; reducibleJoin2: while (true) { if (signal.aborted) { return a1(new env1_0.DOMException('Aborted', 'AbortError')); } break reducibleJoin2; } } const XMLHttpRequest = global.XMLHttpRequest; const xMLHttpRequest = new XMLHttpRequest(); xMLHttpRequest.onload = onload_2994; xMLHttpRequest.onerror = function() { global.setTimeout(_fun2999, 0); }; xMLHttpRequest.ontimeout = function() { global.setTimeout(_fun3001, 0); }; xMLHttpRequest.onabort = function() { global.setTimeout(_fun3003, 0); }; const open = xMLHttpRequest.open; const method = request_2987.method; const url = request_2987.url; reducibleJoin9: while (true) { reduciblePort15: while (true) { exceptionLanding14: while (true) { try { value7 = url !== ''; } catch (error) { break exceptionLanding14; } reducibleJoin13: while (true) { reducibleJoin9: while (true) { if (value7) { break reducibleJoin9; } try { binding = env1_1; } catch (error) { break exceptionLanding14; } try { location = binding.location; } catch (error) { break exceptionLanding14; } try { href = location.href; } catch (error) { break exceptionLanding14; } if (href) { try { binding = env1_1; } catch (error) { break exceptionLanding14; } try { location = binding.location; } catch (error) { break exceptionLanding14; } try { href = location.href; } catch (error) { break exceptionLanding14; } r9 = href; break reducibleJoin13; } break reducibleJoin9; } r9 = url; break reducibleJoin13; } break reduciblePort15; } r9 = url; break reduciblePort15; } Reflect.apply(open, xMLHttpRequest, [method, r9, true]); credentials = request_2987.credentials; if (credentials === 'include') { xMLHttpRequest.withCredentials = true; } else { credentials = request_2987.credentials; reducibleJoin19: while (true) { if (credentials !== 'omit') { break reducibleJoin19; } xMLHttpRequest.withCredentials = false; break reducibleJoin19; } } reducibleJoin24: while (true) { if ('responseType' in xMLHttpRequest) { if (env1_4) { xMLHttpRequest.responseType = 'blob'; break reducibleJoin24; } if (result_3) { xMLHttpRequest.responseType = 'arraybuffer'; break reducibleJoin24; } break reducibleJoin24; } break reducibleJoin24; } reducibleJoin31: while (true) { reducibleJoin30: while (true) { if (require) { headers = require.headers; if (typeof headers !== 'object') { break reducibleJoin30; } headers = require.headers; if (headers instanceof Headers) { break reducibleJoin30; } Headers2 = env1_1.Headers; if (Headers2) { headers = require.headers; Headers3 = env1_1.Headers; if (headers instanceof Headers3) { break reducibleJoin30; } } var env0_4 = []; Object = global.Object; getOwnPropertyNames = Object.getOwnPropertyNames; headers = require.headers; value = Reflect.apply(getOwnPropertyNames, Object, [headers]); forEach = value.forEach; Reflect.apply(forEach, value, [_fun3004]); headers = request_2987.headers; forEach = headers.forEach; Reflect.apply(forEach, headers, [_fun3005]); break reducibleJoin31; } break reducibleJoin30; } headers = request_2987.headers; forEach = headers.forEach; Reflect.apply(forEach, headers, [_fun3006]); break reducibleJoin31; } signal = request_2987.signal; reducibleJoin33: while (true) { if (signal) { signal = request_2987.signal; addEventListener = signal.addEventListener; Reflect.apply(addEventListener, signal, ['abort', closure]); xMLHttpRequest.onreadystatechange = onreadystatechange_3007; break reducibleJoin33; } break reducibleJoin33; } send = xMLHttpRequest.send; _bodyInit = request_2987._bodyInit; value = null; reducibleJoin35: while (true) { if (_bodyInit === undefined) { _bodyInit = value; break reducibleJoin35; } _bodyInit = request_2987._bodyInit; break reducibleJoin35; } Reflect.apply(send, xMLHttpRequest, [_bodyInit]); return undefined; } Reflect.apply(open, xMLHttpRequest, [method, url, true]); if (request_2987.credentials === 'include') { xMLHttpRequest.withCredentials = true; } else { reducibleJoin19: while (true) { if (request_2987.credentials !== 'omit') { break reducibleJoin19; } xMLHttpRequest.withCredentials = false; break reducibleJoin19; } } reducibleJoin24: while (true) { if ('responseType' in xMLHttpRequest) { if (env1_4) { xMLHttpRequest.responseType = 'blob'; break reducibleJoin24; } if (result_3) { xMLHttpRequest.responseType = 'arraybuffer'; break reducibleJoin24; } break reducibleJoin24; } break reducibleJoin24; } reducibleJoin31: while (true) { reducibleJoin30: while (true) { if (require) { headers = require.headers; if (typeof headers !== 'object') { break reducibleJoin30; } headers = require.headers; if (headers instanceof Headers) { break reducibleJoin30; } Headers2 = env1_1.Headers; if (Headers2) { headers = require.headers; Headers3 = env1_1.Headers; if (headers instanceof Headers3) { break reducibleJoin30; } } var env0_4 = []; Object = global.Object; getOwnPropertyNames = Object.getOwnPropertyNames; headers = require.headers; value = Reflect.apply(getOwnPropertyNames, Object, [headers]); forEach = value.forEach; Reflect.apply(forEach, value, [_fun3004]); headers = request_2987.headers; forEach = headers.forEach; Reflect.apply(forEach, headers, [_fun3005]); break reducibleJoin31; } break reducibleJoin30; } headers = request_2987.headers; forEach = headers.forEach; Reflect.apply(forEach, headers, [_fun3006]); break reducibleJoin31; } signal = request_2987.signal; reducibleJoin33: while (true) { if (signal) { signal = request_2987.signal; addEventListener = signal.addEventListener; Reflect.apply(addEventListener, signal, ['abort', closure]); xMLHttpRequest.onreadystatechange = onreadystatechange_3007; break reducibleJoin33; } break reducibleJoin33; } send = xMLHttpRequest.send; _bodyInit = request_2987._bodyInit; reducibleJoin35: while (true) { if (_bodyInit === undefined) { _bodyInit = null; break reducibleJoin35; } _bodyInit = request_2987._bodyInit; break reducibleJoin35; } Reflect.apply(send, xMLHttpRequest, [_bodyInit]); } function _fun3020(a0, a1) { // fn#3020, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:5308, offset: 0x00c8f2d3, size: 39 bytes, params: 3, frame: 12 env0_0.push([a1, a0]); } function onload_2976() { // fn#2976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1666, offset: 0x00c8dce7, size: 29 bytes, params: 1, frame: 11 env0_0(env1_0.result); } function onerror_2977() { // fn#2977, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:1700, offset: 0x00c8dd04, size: 28 bytes, params: 1, frame: 11 require(env1_0.error); } function abortXhr() { // fn#2993, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:8650, offset: 0x00c8ec98, size: 21 bytes, params: 1, frame: 9 env0_3.abort(); } function onload_2994() { // fn#2994, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:8692, offset: 0x00c8ecad, size: 363 bytes, params: 1, frame: 17 const object2 = {}; object2.statusText = env0_3.statusText; let binding = env0_3; const r7 = binding.getAllResponseHeaders() || ''; const headers = new Headers(); r7.replace(RegExp('\\r?\\n[\\t ]+', 'g'), ' ').split('\r').map(function(a0) { var r0; var value = a0; if (value.indexOf('\n') !== 0) { r0 = value; } else { value = value.substr(1, value.length); r0 = value; } return r0; }).forEach(_fun2996); object2.headers = headers; if (env0_2.url.indexOf('file://') !== 0) { object2.status = env0_3.status; } else if (env0_3.status < 200) { object2.status = 200; } else if (env0_3.status > 599) { object2.status = 200; } else { object2.status = env0_3.status; } object2.url = 'responseURL' in env0_3 ? env0_3.responseURL : object2.headers.get('X-Request-URL'); const value12 = 'response' in env0_3; binding = env0_3; let r0 = value12 ? binding.response : binding.responseText; global.setTimeout(_fun2997, 0); } function onerror_2998() { // fn#2998, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:9333, offset: 0x00c8ef06, size: 27 bytes, params: 1, frame: 13 global.setTimeout(_fun2999, 0); } function ontimeout_3000() { // fn#3000, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:9428, offset: 0x00c8ef53, size: 27 bytes, params: 1, frame: 13 global.setTimeout(_fun3001, 0); } function onabort_3002() { // fn#3002, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:9524, offset: 0x00c8efa0, size: 27 bytes, params: 1, frame: 13 global.setTimeout(_fun3003, 0); } function _fun3004(a0) { // fn#3004, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:10065, offset: 0x00c8eff6, size: 78 bytes, params: 2, frame: 16 let binding = env0_4; binding.push(normalizeName(a0)); binding = env0_3; binding.setRequestHeader(a0, tNormalizeValue(require.headers[a0])); } function _fun3005(a0, a1) { // fn#3005, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:10175, offset: 0x00c8f044, size: 54 bytes, params: 3, frame: 13 if (env0_4.indexOf(a1) === -1) { env0_3.setRequestHeader(a1, a0); } } function _fun3006(a0, a1) { // fn#3006, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:10259, offset: 0x00c8f07a, size: 29 bytes, params: 3, frame: 13 env0_3.setRequestHeader(a1, a0); } function onreadystatechange_3007() { // fn#3007, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:10376, offset: 0x00c8f097, size: 54 bytes, params: 1, frame: 13 var signal; if (env0_3.readyState === 4) { signal = env0_2.signal; signal.removeEventListener('abort', abortXhr); } } function _fun2996(a0) { // fn#2996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:8914, offset: 0x00c8ee49, size: 135 bytes, params: 2, frame: 16 var value4; var binding; var error; var console; var warn; var message; let value = a0.split(':'); const value3 = value.shift().trim(); if (value3) { value = value.join(':'); value = value.trim(); try { value4 = environment; binding = env0_0; binding.append(value3, value); } catch (error) { console = global.console; warn = console.warn; message = error.message; Reflect.apply(warn, console, ['Response ' + message]); } } } function _fun2997() { // fn#2997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:9285, offset: 0x00c8eed0, size: 54 bytes, params: 1, frame: 14 let value = environment.__proto__; const binding = env1_0; value = environment.__proto__.__proto__.__proto__; binding(new Response_2990(env0_2, env0_1)); } function _fun2999() { // fn#2999, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:9356, offset: 0x00c8ef21, size: 50 bytes, params: 1, frame: 12 const value = environment.__proto__; const TypeError = global.TypeError; require(new TypeError('Network request failed')); } function _fun3001() { // fn#3001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:9451, offset: 0x00c8ef6e, size: 50 bytes, params: 1, frame: 12 const value = environment.__proto__; const TypeError = global.TypeError; require(new TypeError('Network request timed out')); } function _fun3003() { // fn#3003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:241:9547, offset: 0x00c8efbb, size: 59 bytes, params: 1, frame: 14 let value = environment.__proto__; value = environment.__proto__.__proto__.__proto__; const DOMException = env3_0.DOMException; require(new DOMException('Aborted', 'AbortError')); }