/* Metro module 7444; source: unknown; dependencies: [65, 7425, 7397, 7369, 7380, 7378] */ function _fun60057(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#60057, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:6, offset: 0x016f9f26, size: 251 bytes, params: 8, frame: 19 let env0_0 = require; const env0_2 = require(65) /* metro dependency 65 */; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = [RegExp('^Script error\\.?$', ''), RegExp('^Javascript error: Script error\\.? on line 0$', ''), RegExp('^ResizeObserver loop completed with undelivered notifications.$', ''), RegExp('^Cannot redefine property: googletag$', ''), "undefined is not an object (evaluating 'a.L')", 'can\'t redefine non-configurable property "solana"', "vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)", "Can't find variable: _AutofillCallbackHandler", RegExp('^Non-Error promise rejection captured with value: Object Not Found Matching Id:\\d+, MethodName:simulateEvent, ParamCount:\\d+$', '')]; exports.inboundFiltersIntegration = (require(7425) /* metro dependency 7425 */).defineIntegration(function() { var env0_0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; return {name: 'InboundFilters', processEvent: _fun60061}; }); } function _getEventFilterUrl_60058(a0) { // fn#60058, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:3734, offset: 0x016fa021, size: 189 bytes, params: 2, frame: 15 var environment; var frames; var r1; var exception; var values; var property; var stacktrace; var error; var value2; var closure; var value3; var value4; var DEBUG_BUILD; var logger; let value = undefined; try { try { exception = a0.exception; values = exception.values; property = values[0]; stacktrace = property.stacktrace; frames = stacktrace.frames; } catch (error) { frames = value; } value2 = null; if (frames) { closure = function() { var r4; var r3; var r0; var value; var property; reducibleJoin4: while (true) { reducibleJoin2: while (true) { if (arguments.length > 0) { if (arguments[0] !== undefined) { value = arguments[0]; r4 = value; break reducibleJoin4; } break reducibleJoin2; } break reducibleJoin2; } r4 = []; break reducibleJoin4; } value = r4.length - 1; if (value >= 0) { r3 = value; reducibleLoop5: while (true) { property = r4[r3]; if (property) { reducibleJoin8: while (true) { if (property.filename === '') { break reducibleJoin8; } if (property.filename !== '[native code]') { break reducibleLoop5; } break reducibleJoin8; } } value = typeof r3 === 'bigint' ? r3 - 1n : +r3 - 1; if (!(value >= 0)) { return null; } r3 = value; continue reducibleLoop5; } property = property.filename; reducibleJoin12: while (true) { if (property) { r0 = property; break reducibleJoin12; } value = null; r0 = value; break reducibleJoin12; } return r0; } return null; }; value3 = closure(frames); r1 = value3; } else { r1 = value2; } } catch (error) { value4 = environment; DEBUG_BUILD = (require(7397) /* metro dependency 7397 */).DEBUG_BUILD; if (DEBUG_BUILD) { logger = (require(7369) /* metro dependency 7369 */).logger; error = logger.error; value = require(7380) /* metro dependency 7380 */; value = value.getEventDescription(a0); Reflect.apply(error, logger, ['Cannot extract url for event ' + value]); } return null; } return r1; } function _inboundFiltersIntegration() { // fn#60060, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:696, offset: 0x016fa0de, size: 59 bytes, params: 1, frame: 5 const env0_0 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; return {name: 'InboundFilters', processEvent: processEvent_60061}; } function _inboundFiltersIntegrationProcessEvent(a0, a1, a2) { // fn#60061, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:840, owner: _inboundFiltersIntegration.processEvent, offset: 0x016fa119, size: 59 bytes, params: 4, frame: 15 const value = a0; return processEvent_shouldDropEvent(value, processEvent_mergeOptions(env0_0, a2.getOptions())) ? null : value; } function processEvent_mergeOptions() { // fn#60062, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:892, owner: _inboundFiltersIntegration.processEvent._mergeOptions, offset: 0x016fa154, size: 371 bytes, params: 1, frame: 22 const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; const r1 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; const object2 = {}; const items2 = []; const concat = items2.concat; const value = environment.__proto__.__proto__; object2.allowUrls = Reflect.apply(concat, items2, [env2_2(r2.allowUrls || []), env2_2(r1.allowUrls || [])]); const items4 = []; object2.denyUrls = items4.concat(env2_2(r2.denyUrls || []), env2_2(r1.denyUrls || [])); const items7 = []; object2.ignoreErrors = items7.concat(env2_2(r2.ignoreErrors || []), env2_2(r1.ignoreErrors || []), env2_2(r2.disableErrorDefaults ? [] : env2_3)); const items11 = []; object2.ignoreTransactions = items11.concat(env2_2(r2.ignoreTransactions || []), env2_2(r1.ignoreTransactions || [])); object2.ignoreInternal = r2.ignoreInternal === undefined || r2.ignoreInternal; return object2; } function processEvent_shouldDropEvent(a0, a1) { // fn#60063, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:1421, owner: _inboundFiltersIntegration.processEvent._shouldDropEvent, offset: 0x016fa2c7, size: 1115 bytes, params: 3, frame: 21 var environment; var r2; var exception; var values; var property; var type; var value; var error; var value5; var value6; var value10; var value11; const DEBUG_BUILD = (require(7397) /* metro dependency 7397 */).DEBUG_BUILD; const logger = (require(7369) /* metro dependency 7369 */).logger; var warn; if (a1.ignoreInternal) { try { exception = a0.exception; values = exception.values; property = values[0]; type = property.type; value = type === 'SentryError'; r2 = value; } catch (error) { value = false; r2 = value; } if (r2) { value = environment.__proto__.__proto__; if (DEBUG_BUILD) { warn = logger.warn; value = require(7380) /* metro dependency 7380 */; value = value.getEventDescription(a0); Reflect.apply(warn, logger, ['Event dropped due to being internal Sentry Error.\nEvent: ' + value]); } return true; } } if (_shouldDropEvent_isIgnoredError_60064(a0, a1.ignoreErrors)) { value = environment.__proto__.__proto__; if (DEBUG_BUILD) { warn = logger.warn; value = require(7380) /* metro dependency 7380 */; value = value.getEventDescription(a0); Reflect.apply(warn, logger, ['Event dropped due to being matched by `ignoreErrors` option.\nEvent: ' + value]); } return true; } if (((a0) => { if (!a0.type) { if (a0.exception) { if (a0.exception.values) { if (a0.exception.values.length === 0) { return false; } return !a0.message && !a0.exception.values.some(_fun60067); } return false; } } return false; })(a0)) { value = environment.__proto__.__proto__; if (DEBUG_BUILD) { warn = logger.warn; value = require(7380) /* metro dependency 7380 */; value = value.getEventDescription(a0); Reflect.apply(warn, logger, ['Event dropped due to not having an error message, error type or stacktrace.\nEvent: ' + value]); } return true; } const ignoreTransactions = a1.ignoreTransactions; type = a0.type; value = false; if (type !== 'transaction' ? value : ignoreTransactions && ignoreTransactions.length ? a0.transaction ? (require(7378) /* metro dependency 7378 */).stringMatchesSomePattern(a0.transaction, ignoreTransactions) : !!a0.transaction : value) { value = environment.__proto__.__proto__; if (DEBUG_BUILD) { warn = logger.warn; value = require(7380) /* metro dependency 7380 */; value = value.getEventDescription(a0); Reflect.apply(warn, logger, ['Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ' + value]); } return true; } const denyUrls = a1.denyUrls; if (denyUrls) { if (denyUrls.length) { value5 = environment.__proto__.__proto__; value6 = _getEventFilterUrl_60058(a0); r2 = value6 ? (require(7378) /* metro dependency 7378 */).stringMatchesSomePattern(value6, denyUrls) : !!value6; } else { r2 = value; } } else { r2 = value; } if (r2) { value = environment.__proto__.__proto__; if (DEBUG_BUILD) { logger.warn('Event dropped due to being matched by `denyUrls` option.\nEvent: ' + (require(7380) /* metro dependency 7380 */).getEventDescription(a0) + '.\nUrl: ' + _getEventFilterUrl_60058(a0)); } return true; } const allowUrls = a1.allowUrls; const value9 = true; if (allowUrls) { if (allowUrls.length) { value10 = environment.__proto__.__proto__; value11 = _getEventFilterUrl_60058(a0); r2 = value11 ? (require(7378) /* metro dependency 7378 */).stringMatchesSomePattern(value11, allowUrls) : !value11; } else { r2 = value9; } } else { r2 = value9; } if (r2) { return value; } value = environment.__proto__.__proto__; if (DEBUG_BUILD) { logger.warn('Event dropped due to not being matched by `allowUrls` option.\nEvent: ' + (require(7380) /* metro dependency 7380 */).getEventDescription(a0) + '.\nUrl: ' + _getEventFilterUrl_60058(a0)); } return value9; } function _shouldDropEvent_isIgnoredError_60064(a0, a1) { // fn#60064, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:1725, owner: _inboundFiltersIntegration.processEvent._shouldDropEvent._isIgnoredError, offset: 0x016fa722, size: 247 bytes, params: 3, frame: 19 var r2; var length; var value; var items2; var exception; var values; var values2; var value2; var property; var error; const env0_0 = a1; if (!a0.type) { if (a1) { length = a1.length; if (length) { value = undefined; items2 = []; if (a0.message) { items2.push(a0.message); } try { exception = a0.exception; values = exception.values; exception = a0.exception; values2 = exception.values; length = values2.length; value2 = length - 1; property = values[value2]; r2 = property; } catch (error) { r2 = value; } if (r2 && r2.value) { items2.push(r2.value); if (r2.type) { items2.push('' + r2.type + ': ' + r2.value); } } return items2.some(_fun60065); } return false; } } return false; } function _shouldDropEvent_isUselessError_60066(a0) { // fn#60066, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:2268, owner: _inboundFiltersIntegration.processEvent._shouldDropEvent._isUselessError, offset: 0x016fa84a, size: 109 bytes, params: 2, frame: 12 if (!a0.type) { if (a0.exception) { if (a0.exception.values) { if (a0.exception.values.length === 0) { return false; } return !a0.message && !a0.exception.values.some(function(a0) { var r0; r0 = a0.stacktrace || a0.type && a0.type !== 'Error'; r0 = !r0 ? a0.value : r0; return r0; }); } return false; } } return false; } function _fun60065(a0) { // fn#60065, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7622:2027, offset: 0x016fa819, size: 49 bytes, params: 2, frame: 13 const value = environment.__proto__.__proto__.__proto__.__proto__; return (require(7378) /* metro dependency 7378 */).stringMatchesSomePattern(a0, require); }