/* Metro module 7853; source: unknown; dependencies: [5, 27, 488] */ function _fun62706(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#62706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8031:6, offset: 0x01b6454c, size: 129 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_2 = importDefault(5) /* metro dependency 5 */; (require(27) /* metro dependency 27 */).Platform; exports.fetchText = function(a0) { return _fetchText.apply(this, arguments); }; } function _fetchText() { // fn#62707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8031:123, offset: 0x01b645cd, size: 48 bytes, params: 1, frame: 14 return env0_2(_fun62709).apply(this, arguments); } function _fetchUriData() { // fn#62711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8031:717, offset: 0x01b64708, size: 48 bytes, params: 1, frame: 14 return env0_2(_fun62713).apply(this, arguments); } function decodeBase64Image(a0) { // fn#62714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8031:553, offset: 0x01b647f0, size: 137 bytes, params: 2, frame: 15 let value = global.decodeURIComponent(a0); value = value.split(';'); let property = value[1]; property = property.split(',')[0]; value = value.slice(1); value = value.join(','); const Buffer = (require(488) /* metro dependency 488 */).Buffer; value = Buffer.from(value, property); return value.toString('utf-8'); } function* _fun62709(a0) { // fn#62709, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8031:166, offset: 0x01b64606, size: 228 bytes, params: 2, frame: 18 var environment; var r3; var startsWith; var decodeURIComponent; var error; var Error; var prototype; var value3; if (false) { return undefined; } value = null; if (a0) { startsWith = a0.startsWith; if (Reflect.apply(startsWith, a0, ['data:image/svg+xml;utf8'])) { try { decodeURIComponent = global.decodeURIComponent; value = decodeURIComponent(a0); value = value.split(','); value = value.slice(1); value = value.join(','); r3 = value; } catch (error) { Error = global.Error; value = 'Decoding ' + a0 + ' failed with error: ' + error; prototype = Error.prototype; value3 = Object.create(prototype, {constructor: {value: Error}}); error = new Error(value); value = error instanceof Object ? error : value3; throw value; } return r3; } startsWith = a0.startsWith; if (Reflect.apply(startsWith, a0, ['data:image/svg+xml;base64'])) { value = environment.__proto__.__proto__; value = env2_3(a0); r3 = value; } else { r3 = fetchUriData(a0); } return r3; } return value; } function* _fun62713(a0) { // fn#62713, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8031:766, offset: 0x01b64741, size: 175 bytes, params: 2, frame: 18 var Error; if (false) { return undefined; } yield global.fetch(a0); if (false) { return undefined; } if (value.ok) { yield value.text(); value = undefined; return value; } if (value.status !== 0) { Error = global.Error; value = 'Fetching ' + a0 + ' failed with status ' + value.status; throw new Error(value); } if (a0.startsWith('file://')) { yield value.text(); value = undefined; return value; } Error = global.Error; value = 'Fetching ' + a0 + ' failed with status ' + value.status; const value4 = Object.create(Error.prototype, {constructor: {value: Error}}); const error = new Error(value); throw error instanceof Object ? error : value4; } function fetchUriData(a0) { // fn#62710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8031:434, offset: 0x01b646ea, size: 30 bytes, params: 2, frame: 13 return env3_5.apply(this, arguments); }