405 lines
18 KiB
React
405 lines
18 KiB
React
/* Metro module 1122; source: unknown; dependencies: [1010] */
|
|
function _fun12537(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1249:6, offset: 0x00dcdf28, size: 75 bytes, params: 8, frame: 16
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.reactNativeInfoIntegration = function() {
|
|
return {name: 'ReactNativeInfo', setupOnce: _fun12540, processEvent: processEvent_12538};
|
|
};
|
|
}
|
|
|
|
function processEvent_12538(a0, a1) { // fn#12538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1249:92, offset: 0x00dcdf73, size: 694 bytes, params: 3, frame: 27
|
|
var originalException;
|
|
var r3;
|
|
var jsEngine;
|
|
var values;
|
|
var r7;
|
|
var r9;
|
|
var frames;
|
|
var r14;
|
|
var r15;
|
|
var componentStack;
|
|
var value;
|
|
var object2;
|
|
var value2;
|
|
var moduleValue;
|
|
var isTurboModuleEnabled;
|
|
var moduleValue2;
|
|
var isFabricEnabled;
|
|
var moduleValue3;
|
|
var getReactNativeVersion;
|
|
var moduleValue4;
|
|
var isExpo;
|
|
var moduleValue5;
|
|
var isHermesEnabled;
|
|
var moduleValue6;
|
|
var getHermesVersion;
|
|
var value3;
|
|
var exception;
|
|
var threads;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var value4;
|
|
var stacktrace;
|
|
var value5;
|
|
var value6;
|
|
var items2;
|
|
var iterator3;
|
|
var item3;
|
|
var value7;
|
|
var platform;
|
|
var value8;
|
|
var lineno;
|
|
var value9;
|
|
var value10;
|
|
var error;
|
|
var js_engine;
|
|
var Object;
|
|
var assign;
|
|
var tags;
|
|
var moduleValue7;
|
|
var getExpoGoVersion;
|
|
var value11;
|
|
var getExpoSdkVersion;
|
|
var contexts;
|
|
exceptionSkip51: while (true) {
|
|
exceptionLanding51: while (true) {
|
|
exceptionSkip48: while (true) {
|
|
exceptionLanding48: while (true) {
|
|
value = undefined;
|
|
reducibleJoin2: while (true) {
|
|
if (a1 == null) {
|
|
originalException = value;
|
|
break reducibleJoin2;
|
|
}
|
|
originalException = a1.originalException;
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleJoin6: while (true) {
|
|
if (originalException) {
|
|
reducibleJoin5: while (true) {
|
|
if (a1 == null) {
|
|
originalException = value;
|
|
break reducibleJoin5;
|
|
}
|
|
originalException = a1.originalException;
|
|
break reducibleJoin5;
|
|
}
|
|
r3 = originalException;
|
|
break reducibleJoin6;
|
|
}
|
|
r3 = value;
|
|
break reducibleJoin6;
|
|
}
|
|
object2 = {};
|
|
value2 = environment;
|
|
moduleValue = require(1010) /* metro dependency 1010 */;
|
|
isTurboModuleEnabled = moduleValue.isTurboModuleEnabled;
|
|
object2.turbo_module = Reflect.apply(isTurboModuleEnabled, moduleValue, []);
|
|
moduleValue2 = require(1010) /* metro dependency 1010 */;
|
|
isFabricEnabled = moduleValue2.isFabricEnabled;
|
|
object2.fabric = Reflect.apply(isFabricEnabled, moduleValue2, []);
|
|
moduleValue3 = require(1010) /* metro dependency 1010 */;
|
|
getReactNativeVersion = moduleValue3.getReactNativeVersion;
|
|
object2.react_native_version = Reflect.apply(getReactNativeVersion, moduleValue3, []);
|
|
moduleValue4 = require(1010) /* metro dependency 1010 */;
|
|
isExpo = moduleValue4.isExpo;
|
|
object2.expo = Reflect.apply(isExpo, moduleValue4, []);
|
|
moduleValue5 = require(1010) /* metro dependency 1010 */;
|
|
isHermesEnabled = moduleValue5.isHermesEnabled;
|
|
if (Reflect.apply(isHermesEnabled, moduleValue5, [])) {
|
|
object2.js_engine = 'hermes';
|
|
moduleValue6 = require(1010) /* metro dependency 1010 */;
|
|
getHermesVersion = moduleValue6.getHermesVersion;
|
|
value3 = Reflect.apply(getHermesVersion, moduleValue6, []);
|
|
reducibleJoin13: while (true) {
|
|
if (value3) {
|
|
object2.hermes_version = value3;
|
|
break reducibleJoin13;
|
|
}
|
|
break reducibleJoin13;
|
|
}
|
|
exception = a0.exception;
|
|
reducibleJoin16: while (true) {
|
|
if (exception === null) {
|
|
values = value;
|
|
break reducibleJoin16;
|
|
}
|
|
if (value === exception) {
|
|
values = value;
|
|
break reducibleJoin16;
|
|
}
|
|
values = exception.values;
|
|
break reducibleJoin16;
|
|
}
|
|
reducibleJoin21: while (true) {
|
|
if (values) {
|
|
r7 = values;
|
|
break reducibleJoin21;
|
|
}
|
|
threads = a0.threads;
|
|
reducibleJoin20: while (true) {
|
|
if (threads === null) {
|
|
values = value;
|
|
break reducibleJoin20;
|
|
}
|
|
if (value === threads) {
|
|
values = value;
|
|
break reducibleJoin20;
|
|
}
|
|
values = threads.values;
|
|
break reducibleJoin20;
|
|
}
|
|
r7 = values;
|
|
break reducibleJoin21;
|
|
}
|
|
reducibleJoin23: while (true) {
|
|
if (r7) {
|
|
break reducibleJoin23;
|
|
}
|
|
r7 = [];
|
|
break reducibleJoin23;
|
|
}
|
|
iterator = r7[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r9 = iterator;
|
|
reducibleLoop24: while (true) {
|
|
item2 = Reflect.apply(iterator2, r9, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r9;
|
|
value4 = false;
|
|
if (item2 === value) {
|
|
r7 = value4;
|
|
break reducibleLoop24;
|
|
}
|
|
try {
|
|
stacktrace = item.stacktrace;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value5 = stacktrace === null;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
reducibleJoin32: while (true) {
|
|
if (value5) {
|
|
frames = value;
|
|
break reducibleJoin32;
|
|
}
|
|
try {
|
|
value6 = value === stacktrace;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value6) {
|
|
frames = value;
|
|
break reducibleJoin32;
|
|
}
|
|
try {
|
|
frames = stacktrace.frames;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
break reducibleJoin32;
|
|
}
|
|
reducibleJoin34: while (true) {
|
|
if (frames) {
|
|
r14 = frames;
|
|
break reducibleJoin34;
|
|
}
|
|
try {
|
|
items2 = [];
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
r14 = items2;
|
|
break reducibleJoin34;
|
|
}
|
|
try {
|
|
iterator = r14[Symbol.iterator]();
|
|
iterator3 = iterator.next;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
r15 = iterator;
|
|
reducibleLoop36: while (true) {
|
|
try {
|
|
item3 = Reflect.apply(iterator3, r15, []);
|
|
item = item3.value;
|
|
item3 = item3.done ? undefined : r15;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
value7 = item3 === value;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (value7) {
|
|
r9 = item2;
|
|
continue reducibleLoop24;
|
|
}
|
|
try {
|
|
try {
|
|
platform = item.platform;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
try {
|
|
value8 = value !== platform;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
if (!value8) {
|
|
try {
|
|
try {
|
|
lineno = item.lineno;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
try {
|
|
value9 = lineno === 1;
|
|
} catch (error) {
|
|
break exceptionLanding48;
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
reducibleJoin45: while (true) {
|
|
if (value9) {
|
|
try {
|
|
item3.return();
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
item2.return();
|
|
value10 = true;
|
|
r7 = value10;
|
|
break reducibleLoop24;
|
|
}
|
|
break reducibleJoin45;
|
|
}
|
|
}
|
|
r15 = item3;
|
|
continue reducibleLoop36;
|
|
}
|
|
}
|
|
object2.hermes_debug_info = !r7;
|
|
} else {
|
|
reducibleJoin9: while (true) {
|
|
if (r3 == null) {
|
|
jsEngine = value;
|
|
break reducibleJoin9;
|
|
}
|
|
jsEngine = r3.jsEngine;
|
|
break reducibleJoin9;
|
|
}
|
|
reducibleJoin53: while (true) {
|
|
if (jsEngine) {
|
|
jsEngine = r3.jsEngine;
|
|
object2.js_engine = jsEngine;
|
|
break reducibleJoin53;
|
|
}
|
|
break reducibleJoin53;
|
|
}
|
|
}
|
|
js_engine = object2.js_engine;
|
|
reducibleJoin55: while (true) {
|
|
if (js_engine !== 'hermes') {
|
|
break reducibleJoin55;
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
tags = a0.tags;
|
|
a0.tags = Reflect.apply(assign, Object, [{hermes: true}, tags]);
|
|
break reducibleJoin55;
|
|
}
|
|
reducibleJoin57: while (true) {
|
|
if (r3 == null) {
|
|
componentStack = value;
|
|
break reducibleJoin57;
|
|
}
|
|
componentStack = r3.componentStack;
|
|
break reducibleJoin57;
|
|
}
|
|
reducibleJoin59: while (true) {
|
|
if (componentStack) {
|
|
componentStack = r3.componentStack;
|
|
object2.component_stack = componentStack;
|
|
break reducibleJoin59;
|
|
}
|
|
break reducibleJoin59;
|
|
}
|
|
moduleValue7 = require(1010) /* metro dependency 1010 */;
|
|
getExpoGoVersion = moduleValue7.getExpoGoVersion;
|
|
value11 = Reflect.apply(getExpoGoVersion, moduleValue7, []);
|
|
reducibleJoin61: while (true) {
|
|
if (value11) {
|
|
object2.expo_go_version = value11;
|
|
break reducibleJoin61;
|
|
}
|
|
break reducibleJoin61;
|
|
}
|
|
value = require(1010) /* metro dependency 1010 */;
|
|
getExpoSdkVersion = value.getExpoSdkVersion;
|
|
value = Reflect.apply(getExpoSdkVersion, value, []);
|
|
reducibleJoin63: while (true) {
|
|
if (value) {
|
|
object2.expo_sdk_version = value;
|
|
break reducibleJoin63;
|
|
}
|
|
break reducibleJoin63;
|
|
}
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
contexts = a0.contexts;
|
|
a0.contexts = Reflect.apply(assign, Object, [{react_native_context: object2}, contexts]);
|
|
return a0;
|
|
break exceptionSkip48;
|
|
}
|
|
try {
|
|
try {
|
|
item3.return();
|
|
} catch {
|
|
}
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
try {
|
|
throw error;
|
|
} catch (error) {
|
|
break exceptionLanding51;
|
|
}
|
|
break exceptionSkip48;
|
|
}
|
|
break exceptionSkip51;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip51;
|
|
}
|
|
}
|
|
|
|
function reactNativeInfoIntegration() { // fn#12539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1249:1208, offset: 0x00dce229, size: 38 bytes, params: 1, frame: 2
|
|
return {name: 'ReactNativeInfo', setupOnce: function() {
|
|
}, processEvent: processEvent_12538};
|
|
}
|
|
|