/* Metro module 1092; source: unknown; dependencies: [826] */ function _fun11358(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11358, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1219:6, offset: 0x00daa5b0, size: 130 bytes, params: 8, frame: 20 let env0_0 = require; const Object = global.Object; const defineProperty = Object.defineProperty; const Symbol = global.Symbol; Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]); const WeakMap = global.WeakMap; const weakMap = new WeakMap(); exports.reportingObserverIntegration = (require(826) /* metro dependency 826 */).defineIntegration(function() { var env0_1 = _fun11360; var env0_0 = (arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}).types || ['crash', 'deprecation', 'intervention']; return {name: 'ReportingObserver', setupOnce: _fun11363, setup: _fun11364}; }); } function _reportingObserverIntegration() { // fn#11359, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1219:138, offset: 0x00daa632, size: 97 bytes, params: 1, frame: 5 let r0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; r0 = r0.types || ['crash', 'deprecation', 'intervention']; return {name: 'ReportingObserver', setupOnce: setupOnce_11363, setup: setup_11364}; } function _reportingObserverIntegrationHandler(a0) { // fn#11360, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1219:291, owner: _reportingObserverIntegration.handler, offset: 0x00daa693, size: 96 bytes, params: 2, frame: 15 var environment; var r2; var value; var binding; var has; var getClient; var closure; var iterator; var iterator2; var item; var item2; var error; exceptionSkip5: while (true) { exceptionLanding5: while (true) { value = environment.__proto__; binding = env1_2; has = binding.has; value = require(826) /* metro dependency 826 */; getClient = value.getClient; if (Reflect.apply(has, binding, [Reflect.apply(getClient, value, [])])) { closure = handler_loop; iterator = a0[Symbol.iterator](); iterator2 = iterator.next; for (r2 = iterator; true; r2 = item2) { item2 = Reflect.apply(iterator2, r2, []); item = item2.value; item2 = item2.done ? undefined : r2; if (item2 === undefined) { break; } try { closure(item); } catch (error) { break exceptionLanding5; } } } return undefined; break exceptionSkip5; } try { item2.return(); } catch { } throw error; break exceptionSkip5; } } function _reportingObserverIntegrationSetupOnce() { // fn#11363, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1219:775, owner: _reportingObserverIntegration.setupOnce, offset: 0x00daa87c, size: 128 bytes, params: 1, frame: 15 var ReportingObserver; var _reportingObserverIntegrationHandlerBinding; var object; const value = environment.__proto__; const moduleValue = require(826) /* metro dependency 826 */; if (moduleValue.supportsReportingObserver()) { ReportingObserver = moduleValue.GLOBAL_OBJ.ReportingObserver; _reportingObserverIntegrationHandlerBinding = _reportingObserverIntegrationHandler; object = {buffered: true, types: env0_0}; new ReportingObserver().observe(); } } function _reportingObserverIntegrationSetup(a0) { // fn#11364, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1219:923, owner: _reportingObserverIntegration.setup, offset: 0x00daa8fc, size: 27 bytes, params: 2, frame: 13 env1_2.set(a0, true); } function handler_loop(a0) { // fn#11361, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1219:348, owner: _reportingObserverIntegration.handler._loop, offset: 0x00daa6f3, size: 51 bytes, params: 2, frame: 12 var environment; const env0_0 = a0; const value = environment.__proto__.__proto__; (require(826) /* metro dependency 826 */).withScope(_fun11362); } function _fun11362(a0) { // fn#11362, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1219:385, offset: 0x00daa726, size: 342 bytes, params: 2, frame: 24 var crashId; var reason; var r6; var object2; var propertyName; var body2; const setExtra = a0.setExtra; var value; const binding = env0_0; Reflect.apply(setExtra, a0, ['url', binding.url]); const value2 = 'ReportingObserver [' + binding.type + ']'; let body = binding.body; const value3 = 'No details available'; if (body) { object2 = {}; body = env0_0.body; for (propertyName in body) { body2 = env0_0.body; object2[propertyName] = body2[propertyName]; } a0.setExtra('body', object2); if (env0_0.type === 'crash') { body = env0_0.body; crashId = body.crashId; crashId = !crashId ? '' : crashId; reason = body.reason; reason = !reason ? '' : reason; value = [crashId, reason].join(' '); value = value.trim(); r6 = value || value3; } else { r6 = env0_0.body.message || value3; } } else { r6 = value3; } value = environment.__proto__.__proto__.__proto__; (require(826) /* metro dependency 826 */).captureMessage('' + value2 + ': ' + r6); }