103 lines
4.7 KiB
React
103 lines
4.7 KiB
React
/* Metro module 1094; source: unknown; dependencies: [65, 826] */
|
|
function _fun11389(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1221:6, offset: 0x00dab3c5, size: 133 bytes, params: 8, frame: 21
|
|
let env0_0 = require;
|
|
const closure = applySourceContextToFrame;
|
|
const env0_2 = require(65) /* metro dependency 65 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
let value = require(826) /* metro dependency 826 */;
|
|
value = value.defineIntegration(function() {
|
|
var env0_0 = (arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}).frameContextLines ?? 7;
|
|
return {name: 'ContextLines', processEvent: _fun11392};
|
|
});
|
|
exports.applySourceContextToFrame = closure;
|
|
exports.contextLinesIntegration = value;
|
|
}
|
|
|
|
function applySourceContextToFrame(a0, a1, a2, a3) { // fn#11390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1221:906, offset: 0x00dab44a, size: 79 bytes, params: 5, frame: 15
|
|
if (a0.filename === a2) {
|
|
if (a0.lineno) {
|
|
if (a1.length) {
|
|
(require(826) /* metro dependency 826 */).addContextToFrame(a1, a0, a3);
|
|
}
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _contextLinesIntegration() { // fn#11391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1221:138, offset: 0x00dab499, size: 83 bytes, params: 1, frame: 5
|
|
const r2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
let frameContextLines = r2.frameContextLines;
|
|
frameContextLines = frameContextLines != null ? r2.frameContextLines : 7;
|
|
return {name: 'ContextLines', processEvent: function(a0) {
|
|
_fun11393(a0, frameContextLines);
|
|
return a0;
|
|
}};
|
|
}
|
|
|
|
function _contextLinesIntegrationProcessEvent(a0) { // fn#11392, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1221:328, owner: _contextLinesIntegration.processEvent, offset: 0x00dab4ec, size: 27 bytes, params: 2, frame: 13
|
|
addSourceContext(a0, frameContextLines);
|
|
return a0;
|
|
}
|
|
|
|
function addSourceContext(a0, a1) { // fn#11393, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1221:360, owner: _contextLinesIntegration.processEvent.addSourceContext, offset: 0x00dab507, size: 266 bytes, params: 3, frame: 20
|
|
var environment;
|
|
var r3;
|
|
var values;
|
|
var moduleValue;
|
|
var exception;
|
|
var innerHTML;
|
|
var items2;
|
|
const env0_0 = a1;
|
|
const value = environment.__proto__.__proto__;
|
|
const value2 = undefined;
|
|
const GLOBAL_OBJ = (require(826) /* metro dependency 826 */).GLOBAL_OBJ;
|
|
const document = GLOBAL_OBJ.document;
|
|
const location = GLOBAL_OBJ.location;
|
|
if (location) {
|
|
moduleValue = require(826) /* metro dependency 826 */;
|
|
r3 = moduleValue.stripUrlQueryAndFragment(GLOBAL_OBJ.location.href);
|
|
} else {
|
|
r3 = location;
|
|
}
|
|
if (document) {
|
|
if (r3) {
|
|
exception = a0.exception;
|
|
values = exception == null ? value2 : exception.values;
|
|
if (values == null) {
|
|
return a0;
|
|
}
|
|
if (values.length) {
|
|
innerHTML = document.documentElement.innerHTML;
|
|
if (innerHTML) {
|
|
items2 = ['<!DOCTYPE html>', '<html>'];
|
|
var env0_2 = items2.concat(env2_2(innerHTML.split('\n')), ['</html>']);
|
|
values.forEach(function({stacktrace}) {
|
|
if (stacktrace != null && stacktrace.frames) {
|
|
stacktrace.frames = stacktrace.frames.map(_fun11395);
|
|
}
|
|
});
|
|
return a0;
|
|
}
|
|
return a0;
|
|
}
|
|
return a0;
|
|
}
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _fun11394({stacktrace}) { // fn#11394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1221:758, offset: 0x00dab611, size: 60 bytes, params: 2, frame: 12
|
|
if (stacktrace != null && stacktrace.frames) {
|
|
stacktrace.frames = stacktrace.frames.map(_fun11395);
|
|
}
|
|
}
|
|
|
|
function _fun11395(a0) { // fn#11395, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1221:832, offset: 0x00dab64d, size: 36 bytes, params: 2, frame: 17
|
|
applySourceContextToFrame(a0, env1_2, env1_1, require);
|
|
return a0;
|
|
}
|
|
|