/* Metro module 930; source: unknown; dependencies: [77, 895, 836, 873, 831, 841, 832, 833] */ function _fun9902(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#9902, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1057:6, offset: 0x00d7584e, size: 125 bytes, params: 8, frame: 20 let env0_0 = require; const env0_2 = require(77) /* metro dependency 77 */; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); exports.extraErrorDataIntegration = (require(895) /* metro dependency 895 */).defineIntegration(function() { var r2; r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; var property = r2.depth; var env0_0 = property === undefined ? 3 : property; property = r2.captureErrorCause; var env0_1 = property === undefined || property; return {name: 'ExtraErrorData', processEvent: _fun9905}; }); } function _extractErrorData(a0, a1, a2) { // fn#9903, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1057:1069, offset: 0x00d758cb, size: 685 bytes, params: 4, frame: 38 var r12; var r23; var r20; var r10; var r4; var r9; var object; var object3; var Object; var keys; var value; var iterator; var iterator2; var item; var item2; var value2; var indexOf; var value3; var value4; var property; var property2; var moduleValue; var isError; var isError2; var value5; var HermesInternal; var concat; var value6; var property3; var moduleValue2; var truncate; var value7; var value8; var error; var cause; var value9; var moduleValue3; var isError3; var name; var constructor; var binding; var _extractErrorDataBinding; var value10; var value11; var toJSON; var value12; var value13; var value14; var iterator3; var item3; var value15; var property4; var moduleValue4; var isError4; var toString; var value16; var DEBUG_BUILD; var debug; exceptionSkip124: while (true) { exceptionLanding124: while (true) { exceptionSkip120: while (true) { exceptionLanding120: while (true) { exceptionSkip51: while (true) { exceptionLanding51: while (true) { try { object = ['name', 'message', 'stack', 'line', 'column', 'fileName', 'lineNumber', 'columnNumber', 'toJSON']; } catch (error) { break exceptionLanding124; } try { object3 = {}; } catch (error) { break exceptionLanding124; } try { Object = global.Object; } catch (error) { break exceptionLanding124; } try { keys = Object.keys; } catch (error) { break exceptionLanding124; } try { value = Reflect.apply(keys, Object, [a0]); } catch (error) { break exceptionLanding124; } try { iterator = value[Symbol.iterator](); iterator2 = iterator.next; } catch (error) { break exceptionLanding124; } value = environment; r12 = iterator; reducibleLoop11: while (true) { try { item2 = Reflect.apply(iterator2, r12, []); item = item2.value; item2 = item2.done ? undefined : r12; } catch (error) { break exceptionLanding124; } try { value2 = item2 === undefined; } catch (error) { break exceptionLanding124; } if (value2) { break reducibleLoop11; } try { try { indexOf = object.indexOf; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { value3 = Reflect.apply(indexOf, object, [item]); } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { value4 = value3 !== -1; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } reducibleJoin50: while (true) { if (value4) { break reducibleJoin50; } try { try { property = a0[item]; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { property2 = dependencyMap[2]; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { moduleValue = require(property2); } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { isError = moduleValue.isError; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { isError2 = Reflect.apply(isError, moduleValue, [property]); } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } reducibleJoin49: while (true) { reducibleJoin31: while (true) { if (isError2) { break reducibleJoin31; } try { try { value5 = typeof property === 'string'; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } if (value5) { break reducibleJoin31; } r20 = property; break reducibleJoin49; } if (a2) { try { try { } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { property3 = dependencyMap[5]; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { moduleValue2 = require(property3); } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { truncate = moduleValue2.truncate; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { HermesInternal = global.HermesInternal; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { concat = HermesInternal.concat; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { value7 = '' + property; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { value8 = Reflect.apply(truncate, moduleValue2, [value7, a2]); } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } r23 = value8; } else { try { try { HermesInternal = global.HermesInternal; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { concat = HermesInternal.concat; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } try { try { value6 = '' + property; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } r23 = value6; } r20 = r23; break reducibleJoin49; } try { try { object3[item] = r20; } catch (error) { break exceptionLanding51; } } catch (error) { break exceptionLanding124; } break reducibleJoin50; } r12 = item2; continue reducibleLoop11; } reducibleJoin89: while (true) { if (a1) { try { cause = a0.cause; } catch (error) { break exceptionLanding124; } try { value9 = cause === undefined; } catch (error) { break exceptionLanding124; } if (value9) { break reducibleJoin89; } try { } catch (error) { break exceptionLanding124; } try { } catch (error) { break exceptionLanding124; } try { property = dependencyMap[2]; } catch (error) { break exceptionLanding124; } try { moduleValue3 = require(property); } catch (error) { break exceptionLanding124; } try { isError = moduleValue3.isError; } catch (error) { break exceptionLanding124; } try { cause = a0.cause; } catch (error) { break exceptionLanding124; } try { isError3 = Reflect.apply(isError, moduleValue3, [cause]); } catch (error) { break exceptionLanding124; } if (isError3) { try { cause = a0.cause; } catch (error) { break exceptionLanding124; } try { name = cause.name; } catch (error) { break exceptionLanding124; } reducibleJoin79: while (true) { if (name) { r10 = name; break reducibleJoin79; } try { cause = a0.cause; } catch (error) { break exceptionLanding124; } try { constructor = cause.constructor; } catch (error) { break exceptionLanding124; } try { name = constructor.name; } catch (error) { break exceptionLanding124; } r10 = name; break reducibleJoin79; } try { binding = env0_2; } catch (error) { break exceptionLanding124; } try { _extractErrorDataBinding = _extractErrorData; } catch (error) { break exceptionLanding124; } try { cause = a0.cause; } catch (error) { break exceptionLanding124; } try { value10 = _extractErrorDataBinding(cause, false, a2); } catch (error) { break exceptionLanding124; } try { object = {}; } catch (error) { break exceptionLanding124; } try { value11 = binding(object, r10, value10); } catch (error) { break exceptionLanding124; } try { object3.cause = value11; } catch (error) { break exceptionLanding124; } break reducibleJoin89; } try { cause = a0.cause; } catch (error) { break exceptionLanding124; } try { object3.cause = cause; } catch (error) { break exceptionLanding124; } break reducibleJoin89; } break reducibleJoin89; } try { toJSON = a0.toJSON; } catch (error) { break exceptionLanding124; } try { value12 = typeof toJSON !== 'function'; } catch (error) { break exceptionLanding124; } reducibleJoin123: while (true) { if (value12) { break reducibleJoin123; } try { toJSON = a0.toJSON; } catch (error) { break exceptionLanding124; } try { value13 = Reflect.apply(toJSON, a0, []); } catch (error) { break exceptionLanding124; } try { Object = global.Object; } catch (error) { break exceptionLanding124; } try { keys = Object.keys; } catch (error) { break exceptionLanding124; } try { value14 = Reflect.apply(keys, Object, [value13]); } catch (error) { break exceptionLanding124; } try { iterator = value14[Symbol.iterator](); iterator3 = iterator.next; } catch (error) { break exceptionLanding124; } r4 = iterator; reducibleLoop102: while (true) { try { item3 = Reflect.apply(iterator3, r4, []); item = item3.value; item3 = item3.done ? undefined : r4; } catch (error) { break exceptionLanding124; } try { value15 = item3 === undefined; } catch (error) { break exceptionLanding124; } if (value15) { break reducibleJoin123; } try { try { property = value13[item]; } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } try { try { } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } try { try { } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } try { try { property4 = dependencyMap[2]; } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } try { try { moduleValue4 = require(property4); } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } try { try { isError = moduleValue4.isError; } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } try { try { isError4 = Reflect.apply(isError, moduleValue4, [property]); } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } if (isError4) { try { try { toString = property.toString; } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } try { try { value16 = Reflect.apply(toString, property, []); } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } r9 = value16; } else { r9 = property; } try { try { object3[item] = r9; } catch (error) { break exceptionLanding120; } } catch (error) { break exceptionLanding124; } r4 = item3; continue reducibleLoop102; } } return object3; break exceptionSkip51; } try { try { item2.return(); } catch { } } catch (error) { break exceptionLanding124; } try { throw error; } catch (error) { break exceptionLanding124; } break exceptionSkip51; } break exceptionSkip120; } try { try { item3.return(); } catch { } } catch (error) { break exceptionLanding124; } try { throw error; } catch (error) { break exceptionLanding124; } break exceptionSkip120; } break exceptionSkip124; } value = environment; DEBUG_BUILD = require(dependencyMap[6]).DEBUG_BUILD; if (DEBUG_BUILD) { debug = require(dependencyMap[7]).debug; debug.error('Unable to extract extra data from the Error object:', error); return null; } return null; break exceptionSkip124; } } function _extraErrorDataIntegration() { // fn#9904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1057:138, offset: 0x00d75b78, size: 95 bytes, params: 1, frame: 6 const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; const depth = r2.depth; const env0_0 = depth === undefined ? 3 : depth; const captureErrorCause = r2.captureErrorCause; const env0_1 = captureErrorCause === undefined || captureErrorCause; return {name: 'ExtraErrorData', processEvent: processEvent_9905}; } function _extraErrorDataIntegrationProcessEvent(a0, a1, a2) { // fn#9905, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1057:347, owner: _extraErrorDataIntegration.processEvent, offset: 0x00d75bd7, size: 51 bytes, params: 4, frame: 19 const getOptions = a2.getOptions; return processEvent_enhanceEventWithErrorData(a0, a1, env0_0, env0_1, Reflect.apply(getOptions, a2, []).maxValueLength); } function processEvent_enhanceEventWithErrorData(a0) { // fn#9906, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1057:419, owner: _extraErrorDataIntegration.processEvent._enhanceEventWithErrorData, offset: 0x00d75c0a, size: 341 bytes, params: 2, frame: 24 var name; var value6; var moduleValue; var isError; var _extractErrorDataBinding; var value7; var Object; var value8; var value9; var moduleValue3; const value = undefined; const r0 = arguments.length > 1 && value !== arguments[1] ? arguments[1] : {}; const r13 = arguments.length > 2 ? arguments[2] : value; const r9 = arguments.length > 3 ? arguments[3] : value; const r6 = arguments.length > 4 ? arguments[4] : value; let originalException = r0.originalException; if (originalException) { value6 = environment.__proto__.__proto__; moduleValue = require(836) /* metro dependency 836 */; isError = moduleValue.isError; originalException = r0.originalException; if (Reflect.apply(isError, moduleValue, [originalException])) { originalException = r0.originalException; name = originalException.name; name = !name ? r0.originalException.constructor.name : name; _extractErrorDataBinding = _extractErrorData; originalException = r0.originalException; value7 = _extractErrorDataBinding(originalException, r9, r6); if (value7) { Object = global.Object; value8 = Object.assign({}, a0.contexts); value9 = (require(873) /* metro dependency 873 */).normalize(value7, r13); moduleValue3 = require(836) /* metro dependency 836 */; if (moduleValue3.isPlainObject(value9)) { (require(831) /* metro dependency 831 */).addNonEnumerableProperty(value9, '__sentry_skip_normalization__', true); value8[name] = value9; } Object = global.Object; return Object.assign({}, a0, {contexts: value8}); } return a0; } } return a0; }