/* Metro module 184; source: unknown; dependencies: [185, 186] */ function _fun2635(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#2635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:209:6, offset: 0x00c8568d, size: 73 bytes, params: 8, frame: 16 const env0_1 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.default = parseErrorStack; function parseErrorStack(a0) { // fn#2636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:209:102, offset: 0x00c856d6, size: 366 bytes, params: 2, frame: 27 var environment; var r4; var r14; var r17; var r1; var r0; var value; var value2; var moduleValue; var Array; var isArray; var HermesInternal; var parse; var map; var moduleValue2; var items2; var entries; var iterator; var iterator2; var item; var item2; var type; var location; var functionName; var push; var object; var sourceUrl; var line1Based; var virtualOffset0Based; var column1Based; var error; exceptionSkip39: while (true) { exceptionLanding39: while (true) { value = a0; if (value == null) { return []; } value2 = environment; moduleValue = require(185) /* metro dependency 185 */; Array = global.Array; isArray = Array.isArray; if (Reflect.apply(isArray, Array, [value])) { r0 = value; } else { HermesInternal = env0_0.HermesInternal; if (HermesInternal) { moduleValue2 = require(186) /* metro dependency 186 */; value = moduleValue2.default(value); items2 = []; entries = value.entries; iterator = entries[Symbol.iterator](); iterator2 = iterator.next; r4 = iterator; while (true) { item2 = Reflect.apply(iterator2, r4, []); item = item2.value; item2 = item2.done ? undefined : r4; if (item2 === undefined) { r1 = items2; break; } try { type = item.type; } catch (error) { break exceptionLanding39; } try { value = type !== 'FRAME'; } catch (error) { break exceptionLanding39; } if (value) { r4 = item2; continue; } try { location = item.location; } catch (error) { break exceptionLanding39; } try { functionName = item.functionName; } catch (error) { break exceptionLanding39; } try { type = location.type; } catch (error) { break exceptionLanding39; } value = type !== 'NATIVE'; if (!value) { r14 = value; continue; } try { type = location.type; } catch (error) { break exceptionLanding39; } value = type !== 'INTERNAL_BYTECODE'; r14 = value; if (!r14) { r4 = item2; continue; } try { push = items2.push; } catch (error) { break exceptionLanding39; } try { object = {}; } catch (error) { break exceptionLanding39; } try { object.methodName = functionName; } catch (error) { break exceptionLanding39; } try { sourceUrl = location.sourceUrl; } catch (error) { break exceptionLanding39; } try { object.file = sourceUrl; } catch (error) { break exceptionLanding39; } try { line1Based = location.line1Based; } catch (error) { break exceptionLanding39; } try { object.lineNumber = line1Based; } catch (error) { break exceptionLanding39; } try { type = location.type; } catch (error) { break exceptionLanding39; } try { value = type === 'SOURCE'; } catch (error) { break exceptionLanding39; } if (value) { try { column1Based = location.column1Based; } catch (error) { break exceptionLanding39; } try { value = column1Based - 1; } catch (error) { break exceptionLanding39; } r17 = value; } else { try { virtualOffset0Based = location.virtualOffset0Based; } catch (error) { break exceptionLanding39; } r17 = virtualOffset0Based; } try { object.column = r17; } catch (error) { break exceptionLanding39; } try { Reflect.apply(push, items2, [object]); } catch (error) { break exceptionLanding39; } r4 = item2; } } else { parse = moduleValue.parse; value = Reflect.apply(parse, moduleValue, [value]); map = value.map; value = Reflect.apply(map, value, [function(a0) { var Object = global.Object; var value = null; return Object.assign({}, a0, {column: value != a0.column ? a0.column - 1 : value}); }]); r1 = value; } r0 = r1; } return r0; break exceptionSkip39; } try { item2.return(); } catch { } throw error; break exceptionSkip39; } } } global.__d(_fun2635, 184, [185, 186]) /* metro module 184, dependencies: [185, 186] */;