/* Metro module 7485; source: unknown; dependencies: [7372] */ function _fun60368(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7663:6, offset: 0x01701f13, size: 105 bytes, params: 8, frame: 18 let env0_0 = require; const filenameIsInApp_603692 = filenameIsInApp_60369; const closure2 = function(a0) { var env0_0 = a0; var env0_1 = RegExp('^\\s*[-]{4,}$', ''); var env0_2 = RegExp('at (?:async )?(?:(.+?)\\s+\\()?(?:(.+):(\\d+):(\\d+)?|([^)]+))\\)?', ''); return _fun60371; }; const _parseIntOrUndefined_60372 = function(a0) { return (0, global.parseInt)(a0 || '', 10) || undefined; }; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.filenameIsInApp = filenameIsInApp_603692; exports.node = closure2; exports.nodeStackLineParser = nodeStackLineParser_60373; function node_60370(a0) { // fn#60370, offset: 0x01701f7c, size: 52 bytes, params: 2, frame: 2 const env0_0 = a0; const env0_1 = RegExp('^\\s*[-]{4,}$', ''); const env0_2 = RegExp('at (?:async )?(?:(.+?)\\s+\\()?(?:(.+):(\\d+):(\\d+)?|([^)]+))\\)?', ''); return _fun60371; function _fun60371(a0) { // fn#60371, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7663:386, offset: 0x01701fb0, size: 583 bytes, params: 2, frame: 27 var r10; var r3; var r5; var r8; var r0; var r1; var r2; var object; var value3; var property; var value4; var value6; var value7; var value8; var value9; var value10; var value14; var _parseIntOrUndefined_60372Binding; var filenameIsInApp_60369Binding; var value; const value2 = a0.match(env0_2); if (value2) { value3 = undefined; if (value2[1]) { property = value2[1]; value4 = property.lastIndexOf('.'); r10 = property[value4 - 1] !== '.' ? value4 : typeof value4 === 'bigint' ? value4 - 1n : +value4 - 1; if (r10 > 0) { value6 = property.slice(0, r10); value7 = property.slice(r10 + 1); value8 = value6.indexOf('.Module'); if (value8 > 0) { value9 = property.slice(value8 + 1); value10 = value6.slice(0, value8); r3 = value9; r5 = value7; r8 = value10; } else { r3 = property; r5 = value7; r8 = value6; } } else { r3 = property; r5 = value3; r8 = value3; } r0 = r8; r1 = r5; r2 = r3; } else { r0 = value3; r1 = value3; r2 = value3; } r10 = r1 ? r0 : value3; if (r1 === '') { r2 = value3; r8 = value3; } if (value3 === r2) { r8 = !r8 ? (require(7372) /* metro dependency 7372 */).UNKNOWN_FUNCTION : r8; r2 = r10 ? '' + r10 + '.' + r8 : r8; } r8 = value2[2] && value2[2].startsWith('file://') ? value2[2].slice(7) : value2[2]; value14 = value2[5] === 'native'; r5 = r8 && r8.match(RegExp('\\/[A-Z]:', '')); r1 = r5 ? r8.slice(1) : r8; r5 = r1 || !value2[5]; r5 = !r5 ? value14 : r5; r1 = !r5 ? value2[5] : r1; object = {}; r5 = r1 ? global.decodeURI(r1) : value3; object.filename = r5; r5 = env0_0 ? env0_0(r1) : value3; object.module = r5; object.function = r2; value = environment.__proto__; _parseIntOrUndefined_60372Binding = _parseIntOrUndefined_60372; object.lineno = _parseIntOrUndefined_60372Binding(value2[3]); object.colno = _parseIntOrUndefined_60372Binding(value2[4]); filenameIsInApp_60369Binding = filenameIsInApp_60369; r1 = !r1 ? '' : r1; object.in_app = filenameIsInApp_60369Binding(r1, value14); return object; } if (a0.match(env0_1)) { return {filename: a0}; } } } function nodeStackLineParser_60373(a0) { // fn#60373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7663:1245, offset: 0x00d8f119, size: 33 bytes, params: 2, frame: 11 return [90, node_60370(a0)]; } } function filenameIsInApp_60369(a0) { // fn#60369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7663:30, offset: 0x00d8eda6, size: 182 bytes, params: 2, frame: 14 var r2; const value = a0; let r0 = arguments.length > 1 && arguments[1] !== undefined && arguments[1]; if (!r0) { r2 = value && !value.startsWith('/'); r2 = r2 && !value.match(RegExp('^[A-Z]:', '')); r2 = r2 && !value.startsWith('.'); r2 = r2 && !value.match(RegExp('^[a-zA-Z]([a-zA-Z0-9.\\-+])*:\\/\\/', '')); r0 = r2; } r0 = !r0 && value !== undefined && !value.includes('node_modules/'); return r0; } global.__d(_fun60368, 7485, [7372]) /* metro module 7485, dependencies: [7372] */;