2355 lines
83 KiB
React
2355 lines
83 KiB
React
/* Metro module 1009; source: unknown; dependencies: [57, 27, 1010, 1005, 1012, 826, 1021, 1015, 1022] */
|
|
function _fun10538(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#10538, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:6, offset: 0x00d90667, size: 763 bytes, params: 8, frame: 22
|
|
var object2;
|
|
var closure2;
|
|
let value = this;
|
|
let env0_0 = require;
|
|
const closure = getRNSentryModule;
|
|
let Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_2 = importDefault(57) /* metro dependency 57 */;
|
|
let value2 = require(27) /* metro dependency 27 */;
|
|
let env0_3 = value2.NativeModules;
|
|
value2.Platform;
|
|
if (!(value && value.__awaiter)) {
|
|
closure2 = function(a0, a1, a2, a3) {
|
|
var r2;
|
|
var value = a2;
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = value;
|
|
var env0_3 = a3;
|
|
r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
var value2 = new r2(_fun10541);
|
|
return value2 instanceof Object ? value2 : value;
|
|
};
|
|
}
|
|
if (value && value.__rest) {
|
|
}
|
|
const env0_6 = closure();
|
|
const env0_7 = (require(1012) /* metro dependency 1012 */).encodeUTF8('\n');
|
|
object2 = {fetchModules: fetchModules, sendEnvelope: sendEnvelope, initNativeSdk: initNativeSdk,
|
|
fetchNativeLogAttributes: fetchNativeLogAttributes, fetchNativeRelease: fetchNativeRelease,
|
|
fetchNativeSdkInfo: fetchNativeSdkInfo, fetchNativeDeviceContexts: fetchNativeDeviceContexts,
|
|
fetchNativeAppStart: fetchNativeAppStart, fetchNativeFrames: fetchNativeFrames, nativeCrash: nativeCrash,
|
|
setUser: setUser_10579, setTag: setTag_10580, setExtra: setExtra_10581, addBreadcrumb: addBreadcrumb_10582,
|
|
clearBreadcrumbs: clearBreadcrumbs, setContext: setContext_10584, closeNativeSdk: closeNativeSdk,
|
|
disableNativeFramesTracking: disableNativeFramesTracking,
|
|
enableNativeFramesTracking: enableNativeFramesTracking, isNativeAvailable: isNativeAvailable,
|
|
captureScreenshot: captureScreenshot, fetchViewHierarchy: fetchViewHierarchy, startProfiling: startProfiling,
|
|
stopProfiling: stopProfiling, fetchNativePackageName: fetchNativePackageName,
|
|
fetchNativeStackFramesBy: fetchNativeStackFramesBy,
|
|
initNativeReactNavigationNewFrameTracking: initNativeReactNavigationNewFrameTracking,
|
|
captureReplay: captureReplay, getCurrentReplayId: getCurrentReplayId, crashedLastRun: crashedLastRun,
|
|
getNewScreenTimeToDisplay: getNewScreenTimeToDisplay, getDataFromUri: getDataFromUri,
|
|
popTimeToDisplayFor: popTimeToDisplayFor, setActiveSpanId: setActiveSpanId, encodeToBase64: encodeToBase64,
|
|
primitiveProcessor: function(a0) {
|
|
return a0;
|
|
}, _processItem: _processItem, _serializeObject: function(a0) {
|
|
var env0_0 = a0;
|
|
var Object = global.Object;
|
|
Object.keys(a0).forEach(_fun10625);
|
|
return {};
|
|
}, _processLevels: function(a0) {
|
|
var env0_0 = this;
|
|
var Object = global.Object;
|
|
var assign = Object.assign;
|
|
var Object2 = global.Object;
|
|
var value = Object2.assign({}, a0);
|
|
var object = {};
|
|
var value2 = undefined;
|
|
object.level = a0.level ? this._processLevel(a0.level) : value2;
|
|
var breadcrumbs = a0.breadcrumbs;
|
|
object.breadcrumbs = breadcrumbs === null || value2 === breadcrumbs ? value2 : breadcrumbs.map(_fun10627);
|
|
return Reflect.apply(assign, Object, [value, object]);
|
|
}, _processLevel: function(a0) {
|
|
var value = a0;
|
|
return value == 'log' ? 'debug' : value;
|
|
}, _isModuleLoaded: function(a0) {
|
|
return !!a0;
|
|
}, _setPrimitiveProcessor: function(a0) {
|
|
this.primitiveProcessor = a0;
|
|
}};
|
|
const SentryError = (require(826) /* metro dependency 826 */).SentryError;
|
|
object2._DisabledNativeError = new SentryError('Native is disabled');
|
|
object2._NativeClientError = new SentryError("Native Client is not available, can't start on native.");
|
|
object2.enableNative = true;
|
|
object2.nativeIsReady = false;
|
|
object2.platform = 'android';
|
|
exports.getRNSentryModule = closure;
|
|
exports.NATIVE = object2;
|
|
exports.getDataFromUri = getDataFromUri_10631;
|
|
}
|
|
|
|
function getRNSentryModule() { // fn#10539, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:877, offset: 0x00d90962, size: 119 bytes, params: 1, frame: 13
|
|
var r0;
|
|
var TurboModuleRegistry;
|
|
const value2 = undefined;
|
|
const moduleValue = require(1010) /* metro dependency 1010 */;
|
|
if (moduleValue.isTurboModuleEnabled()) {
|
|
TurboModuleRegistry = (require(1005) /* metro dependency 1005 */).ReactNativeLibraries.TurboModuleRegistry;
|
|
r0 = TurboModuleRegistry === null || value2 === TurboModuleRegistry ? value2 : TurboModuleRegistry.get('RNSentry');
|
|
} else {
|
|
r0 = NativeModules.RNSentry;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function _fun10540(a0, a1, a2, a3) { // fn#10540, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:174, offset: 0x00d909d9, size: 75 bytes, params: 5, frame: 12
|
|
let value = a2;
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_3 = a3;
|
|
let r2 = value || global.Promise;
|
|
value = Object.create(r2.prototype, {constructor: {value: r2}});
|
|
r2 = new r2(_fun10541);
|
|
return r2 instanceof Object ? r2 : value;
|
|
}
|
|
|
|
function fetchModules() { // fn#10548, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:1127, offset: 0x00d90bfd, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10550);
|
|
}
|
|
|
|
function sendEnvelope(a0) { // fn#10551, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:1378, offset: 0x00d90c94, size: 36 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return env0_4(this, undefined, undefined, _fun10553);
|
|
}
|
|
|
|
function initNativeSdk(a0) { // fn#10554, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:2513, offset: 0x00d9106d, size: 36 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return env0_4(this, undefined, undefined, _fun10556);
|
|
}
|
|
|
|
function fetchNativeLogAttributes() { // fn#10560, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:4217, offset: 0x00d91372, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10562);
|
|
}
|
|
|
|
function fetchNativeRelease() { // fn#10563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:4465, offset: 0x00d913e4, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10565);
|
|
}
|
|
|
|
function fetchNativeSdkInfo() { // fn#10566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:4701, offset: 0x00d91456, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10568);
|
|
}
|
|
|
|
function fetchNativeDeviceContexts() { // fn#10569, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:4944, offset: 0x00d914c8, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10571);
|
|
}
|
|
|
|
function fetchNativeAppStart() { // fn#10572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:5195, offset: 0x00d9153a, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10574);
|
|
}
|
|
|
|
function fetchNativeFrames() { // fn#10575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:5467, offset: 0x00d91602, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10577);
|
|
}
|
|
|
|
function nativeCrash() { // fn#10578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:5694, offset: 0x00d91674, size: 59 bytes, params: 1, frame: 12
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
env0_6.crash();
|
|
return undefined;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
}
|
|
|
|
function setUser_10579(a0) { // fn#10579, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:5817, offset: 0x00d916af, size: 171 bytes, params: 2, frame: 22
|
|
var r2;
|
|
var r3;
|
|
var value2;
|
|
var id;
|
|
var ip_address;
|
|
var email;
|
|
var username;
|
|
var geo;
|
|
var value3;
|
|
var value4;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
value2 = null;
|
|
if (a0) {
|
|
id = a0.id;
|
|
ip_address = a0.ip_address;
|
|
email = a0.email;
|
|
username = a0.username;
|
|
geo = a0.geo;
|
|
value3 = env0_5(a0, ['id', 'ip_address', 'email', 'username', 'geo']);
|
|
value4 = this._serializeObject({id: id, ip_address: ip_address, email: email, username: username,
|
|
geo: geo});
|
|
r2 = this._serializeObject(value3);
|
|
r3 = value4;
|
|
} else {
|
|
r2 = value2;
|
|
r3 = value2;
|
|
}
|
|
env0_6.setUser(r3, r2);
|
|
return undefined;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
}
|
|
|
|
function setTag_10580(a0, a1) { // fn#10580, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:6175, offset: 0x00d9175a, size: 100 bytes, params: 3, frame: 14
|
|
var r3;
|
|
let value = a1;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
if (typeof value === 'string') {
|
|
r3 = value;
|
|
} else {
|
|
value = global.JSON.stringify(value);
|
|
r3 = value;
|
|
}
|
|
env0_6.setTag(a0, r3);
|
|
return undefined;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
}
|
|
|
|
function setExtra_10581(a0, a1) { // fn#10581, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:6346, offset: 0x00d917be, size: 281 bytes, params: 3, frame: 19
|
|
var r4;
|
|
var property;
|
|
var moduleValue;
|
|
var value3;
|
|
var JSON;
|
|
var value4;
|
|
var error;
|
|
var debug;
|
|
const value = undefined;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
if (typeof a1 === 'string') {
|
|
return env0_6.setExtra(a0, a1);
|
|
}
|
|
if (value === a1) {
|
|
return env0_6.setExtra(a0, 'undefined');
|
|
}
|
|
try {
|
|
property = dependencyMap[5];
|
|
moduleValue = require(property);
|
|
value3 = moduleValue.normalize(a1);
|
|
JSON = global.JSON;
|
|
value4 = JSON.stringify(value3);
|
|
r4 = value4;
|
|
} catch (error) {
|
|
debug = require(dependencyMap[5]).debug;
|
|
debug.error('Extra for key ${key} not passed to native SDK, because it contains non-stringifiable values',
|
|
|
|
error);
|
|
r4 = value;
|
|
}
|
|
return typeof r4 === 'string' ? env0_6.setExtra(a0, r4) : env0_6.setExtra(a0, '**non-stringifiable**');
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function addBreadcrumb_10582(a0) { // fn#10582, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:6819, offset: 0x00d918d7, size: 136 bytes, params: 2, frame: 19
|
|
var binding;
|
|
var addBreadcrumb;
|
|
var Object;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
binding = env0_6;
|
|
addBreadcrumb = binding.addBreadcrumb;
|
|
Object = global.Object;
|
|
Reflect.apply(addBreadcrumb, binding, [Object.assign(global.Object.assign({}, a0),
|
|
{level: a0.level ? this._processLevel(a0.level) : undefined})]);
|
|
return undefined;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
}
|
|
|
|
function clearBreadcrumbs() { // fn#10583, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:7047, offset: 0x00d9195f, size: 59 bytes, params: 1, frame: 12
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
env0_6.clearBreadcrumbs();
|
|
return undefined;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
}
|
|
|
|
function setContext_10584(a0, a1) { // fn#10584, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:7189, offset: 0x00d9199a, size: 209 bytes, params: 3, frame: 19
|
|
var r4;
|
|
var property;
|
|
var moduleValue;
|
|
var value3;
|
|
var error;
|
|
var debug;
|
|
var binding;
|
|
var setContext;
|
|
const value = undefined;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
if (a1 === null) {
|
|
return env0_6.setContext(a0, null);
|
|
}
|
|
try {
|
|
property = dependencyMap[8];
|
|
moduleValue = require(property);
|
|
value3 = moduleValue.convertToNormalizedObject(a1);
|
|
r4 = value3;
|
|
} catch (error) {
|
|
debug = require(dependencyMap[5]).debug;
|
|
debug.error('Context for key ${key} not passed to native SDK, because it contains non-serializable values',
|
|
|
|
error);
|
|
r4 = value;
|
|
}
|
|
binding = env0_6;
|
|
setContext = binding.setContext;
|
|
if (r4) {
|
|
Reflect.apply(setContext, binding, [a0, r4]);
|
|
} else {
|
|
Reflect.apply(setContext, binding, [a0, {error: '**non-serializable**'}]);
|
|
}
|
|
return value;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
return value;
|
|
}
|
|
|
|
function closeNativeSdk() { // fn#10585, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:7594, offset: 0x00d91a6b, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10587);
|
|
}
|
|
|
|
function disableNativeFramesTracking() { // fn#10589, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:7814, offset: 0x00d91afa, size: 54 bytes, params: 1, frame: 12
|
|
if (this.enableNative && this._isModuleLoaded(env0_6)) {
|
|
env0_6.disableNativeFramesTracking();
|
|
}
|
|
}
|
|
|
|
function enableNativeFramesTracking() { // fn#10590, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:7957, offset: 0x00d91b30, size: 54 bytes, params: 1, frame: 12
|
|
if (this.enableNative && this._isModuleLoaded(env0_6)) {
|
|
env0_6.enableNativeFramesTracking();
|
|
}
|
|
}
|
|
|
|
function isNativeAvailable() { // fn#10591, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:8089, offset: 0x00d91b66, size: 23 bytes, params: 1, frame: 11
|
|
return this._isModuleLoaded(env0_6);
|
|
}
|
|
|
|
function captureScreenshot() { // fn#10592, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:8168, offset: 0x00d91b7d, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10594);
|
|
}
|
|
|
|
function fetchViewHierarchy() { // fn#10596, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:8636, offset: 0x00d91cef, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10598);
|
|
}
|
|
|
|
function startProfiling(a0) { // fn#10599, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:8905, offset: 0x00d91d92, size: 153 bytes, params: 2, frame: 14
|
|
var value2;
|
|
var started;
|
|
var error;
|
|
var debug;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
value2 = env0_6.startProfiling(a0);
|
|
started = value2.started;
|
|
error = value2.error;
|
|
debug = (require(826) /* metro dependency 826 */).debug;
|
|
if (started) {
|
|
debug.log('[NATIVE] Start Profiling');
|
|
} else {
|
|
debug.error('[NATIVE] Start Profiling Failed', error);
|
|
}
|
|
return !!started;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function stopProfiling() { // fn#10600, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:9223, offset: 0x00d91e2b, size: 291 bytes, params: 1, frame: 18
|
|
var value2;
|
|
var profile;
|
|
var nativeProfile;
|
|
var androidProfile;
|
|
var error;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
var object2;
|
|
var JSON;
|
|
var value3;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
value2 = env0_6.stopProfiling();
|
|
profile = value2.profile;
|
|
nativeProfile = value2.nativeProfile;
|
|
androidProfile = value2.androidProfile;
|
|
error = value2.error;
|
|
if (profile) {
|
|
if (error) {
|
|
debug.error('[NATIVE] Stop Profiling Failed', error);
|
|
return null;
|
|
}
|
|
if (!androidProfile) {
|
|
debug.warn('[NATIVE] Stop Profiling Failed: No Android Profile');
|
|
}
|
|
try {
|
|
object2 = {};
|
|
JSON = global.JSON;
|
|
value3 = JSON.parse(profile);
|
|
object2.hermesProfile = value3;
|
|
object2.nativeProfile = nativeProfile;
|
|
object2.androidProfile = androidProfile;
|
|
} catch (error) {
|
|
debug.error('[NATIVE] Failed to parse Hermes Profile JSON', error);
|
|
return null;
|
|
}
|
|
return object2;
|
|
}
|
|
debug.error('[NATIVE] Stop Profiling Failed', error);
|
|
return null;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function fetchNativePackageName() { // fn#10601, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:9785, offset: 0x00d91f4e, size: 57 bytes, params: 1, frame: 12
|
|
let r0 = this.enableNative && this._isModuleLoaded(env0_6) && env0_6.fetchNativePackageName();
|
|
r0 = !r0 ? null : r0;
|
|
return r0;
|
|
}
|
|
|
|
function fetchNativeStackFramesBy(a0) { // fn#10602, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:9929, offset: 0x00d91f87, size: 61 bytes, params: 2, frame: 12
|
|
let r0 = this.enableNative && this._isModuleLoaded(env0_6) && env0_6.fetchNativeStackFramesBy(a0);
|
|
r0 = !r0 ? null : r0;
|
|
return r0;
|
|
}
|
|
|
|
function initNativeReactNavigationNewFrameTracking() { // fn#10603, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:10096, offset: 0x00d91fc4, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10605);
|
|
}
|
|
|
|
function captureReplay(a0) { // fn#10606, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:10307, offset: 0x00d9202b, size: 36 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return env0_4(this, undefined, undefined, _fun10608);
|
|
}
|
|
|
|
function getCurrentReplayId() { // fn#10609, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:10740, offset: 0x00d92185, size: 231 bytes, params: 1, frame: 17
|
|
var r1;
|
|
var r0;
|
|
const debug = (require(826) /* metro dependency 826 */).debug;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
r1 = env0_6.getCurrentReplayId() || null;
|
|
} else {
|
|
debug.warn('[NATIVE] `' + this.getCurrentReplayId.name + '` is not available when native is not available.');
|
|
r1 = null;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
debug.warn('[NATIVE] `' + this.getCurrentReplayId.name + '` is not available when native is disabled.');
|
|
r0 = null;
|
|
}
|
|
return r0;
|
|
}
|
|
|
|
function crashedLastRun() { // fn#10610, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:11101, offset: 0x00d9226c, size: 29 bytes, params: 1, frame: 15
|
|
return env0_4(this, undefined, undefined, _fun10612);
|
|
}
|
|
|
|
function getNewScreenTimeToDisplay() { // fn#10613, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:11336, offset: 0x00d922f5, size: 71 bytes, params: 1, frame: 12
|
|
return this.enableNative && this._isModuleLoaded(env0_6) ? env0_6.getNewScreenTimeToDisplay() : global.Promise.resolve(null);
|
|
}
|
|
|
|
function getDataFromUri(a0) { // fn#10614, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:11491, offset: 0x00d9233c, size: 36 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return env0_4(this, undefined, undefined, _fun10616);
|
|
}
|
|
|
|
function popTimeToDisplayFor(a0) { // fn#10617, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:11758, offset: 0x00d92415, size: 144 bytes, params: 2, frame: 14
|
|
var Promise;
|
|
var binding;
|
|
var value2;
|
|
var error;
|
|
var debug;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
try {
|
|
binding = env0_6;
|
|
value2 = binding.popTimeToDisplayFor(a0);
|
|
} catch (error) {
|
|
debug = (require(826) /* metro dependency 826 */).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
return value2;
|
|
}
|
|
}
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
|
|
function setActiveSpanId(a0) { // fn#10618, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:11991, offset: 0x00d924a5, size: 106 bytes, params: 2, frame: 14
|
|
var binding;
|
|
var error;
|
|
var debug;
|
|
if (this.enableNative) {
|
|
if (this._isModuleLoaded(env0_6)) {
|
|
try {
|
|
binding = env0_6;
|
|
binding.setActiveSpanId(a0);
|
|
} catch (error) {
|
|
debug = (require(826) /* metro dependency 826 */).debug;
|
|
debug.error('Error:', error);
|
|
return undefined;
|
|
}
|
|
return undefined;
|
|
}
|
|
}
|
|
}
|
|
|
|
function encodeToBase64(a0) { // fn#10619, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:12160, offset: 0x00d9250f, size: 36 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return env0_4(this, undefined, undefined, _fun10621);
|
|
}
|
|
|
|
function _processItem(a0) { // fn#10623, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:12517, offset: 0x00d92607, size: 139 bytes, params: 2, frame: 16
|
|
var value3;
|
|
const value2 = env0_2(a0, 2);
|
|
const property = value2[0];
|
|
const property2 = value2[1];
|
|
if (property.type == 'event') {
|
|
value3 = this._processLevels(property2);
|
|
if (env0_8.platform === 'android' && 'message' in value3) {
|
|
value3.message = {message: value3.message};
|
|
}
|
|
return [property, value3];
|
|
}
|
|
if (property.type == 'transaction') {
|
|
value3 = this._processLevels(property2);
|
|
if (env0_8.platform === 'android' && 'message' in value3) {
|
|
value3.message = {message: value3.message};
|
|
}
|
|
return [property, value3];
|
|
}
|
|
return a0;
|
|
}
|
|
|
|
function _serializeObject(a0) { // fn#10624, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:12751, offset: 0x00d92692, size: 50 bytes, params: 2, frame: 13
|
|
const env0_0 = a0;
|
|
const Object = global.Object;
|
|
Object.keys(a0).forEach(_fun10625);
|
|
return {};
|
|
}
|
|
|
|
function _processLevels(a0) { // fn#10626, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:12908, offset: 0x00d926ff, size: 127 bytes, params: 2, frame: 20
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Object2 = global.Object;
|
|
const value = Object2.assign({}, a0);
|
|
const object2 = {};
|
|
const level = a0.level;
|
|
const value2 = undefined;
|
|
object2.level = level ? this._processLevel(a0.level) : value2;
|
|
const breadcrumbs = a0.breadcrumbs;
|
|
object2.breadcrumbs = breadcrumbs === null || value2 === breadcrumbs ? value2 : breadcrumbs.map(_fun10627);
|
|
return Reflect.apply(assign, Object, [value, object2]);
|
|
}
|
|
|
|
function getDataFromUri_10631(a0) { // fn#10631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:13708, offset: 0x00d927fa, size: 36 bytes, params: 2, frame: 15
|
|
const env0_0 = a0;
|
|
return env0_4(this, undefined, undefined, _fun10633);
|
|
}
|
|
|
|
function _fun10541(a0, a1) { // fn#10541, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:220, offset: 0x00d90a24, size: 98 bytes, params: 3, frame: 16
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const closure = step_10544;
|
|
const value2 = importAll.apply(env0_0, require || []);
|
|
closure(value2.next());
|
|
}
|
|
|
|
function* _fun10550() { // fn#10550, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:1180, offset: 0x00d90c23, size: 113 bytes, params: 1, frame: 13
|
|
var r2;
|
|
var _isModuleLoaded;
|
|
var binding;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
binding = env2_6;
|
|
yield binding.fetchModules();
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
if (value) {
|
|
value = global.JSON.parse(value);
|
|
r2 = value;
|
|
} else {
|
|
r2 = null;
|
|
}
|
|
return r2;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function* _fun10553() { // fn#10553, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:1432, offset: 0x00d90cc1, size: 940 bytes, params: 1, frame: 39
|
|
var r1;
|
|
var r5;
|
|
var r6;
|
|
var r22;
|
|
var r19;
|
|
var r20;
|
|
var binding;
|
|
var debug;
|
|
var warn;
|
|
var _isModuleLoaded;
|
|
var value3;
|
|
var value4;
|
|
var property;
|
|
var property2;
|
|
var JSON;
|
|
var stringify;
|
|
var value5;
|
|
var value6;
|
|
var encodeUTF8;
|
|
var value7;
|
|
var Uint8Array;
|
|
var length;
|
|
var length2;
|
|
var value8;
|
|
var prototype;
|
|
var value9;
|
|
var uint8Array;
|
|
var value10;
|
|
var set;
|
|
var value11;
|
|
var iterator;
|
|
var iterator2;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var item;
|
|
var item2;
|
|
var _processItem;
|
|
var value15;
|
|
var value16;
|
|
var property3;
|
|
var value17;
|
|
var value18;
|
|
var content_type;
|
|
var value19;
|
|
var value20;
|
|
var binding2;
|
|
var property4;
|
|
var value21;
|
|
var value22;
|
|
var value23;
|
|
var binding3;
|
|
var property5;
|
|
var value24;
|
|
var isHardCrash;
|
|
var isHardCrash2;
|
|
var value25;
|
|
var binding4;
|
|
var property6;
|
|
var value26;
|
|
var value27;
|
|
var value28;
|
|
var binding5;
|
|
var value29;
|
|
var value30;
|
|
var length3;
|
|
var value31;
|
|
var value32;
|
|
var value33;
|
|
var value34;
|
|
var value36;
|
|
var length4;
|
|
var value37;
|
|
var length5;
|
|
var value38;
|
|
var value39;
|
|
var length6;
|
|
var value40;
|
|
var binding6;
|
|
var value41;
|
|
var value42;
|
|
var error;
|
|
var captureEnvelope;
|
|
var binding7;
|
|
var base64StringFromByteArray;
|
|
var value43;
|
|
if (true) {
|
|
var enableNative = this.enableNative;
|
|
value = environment.__proto__.__proto__;
|
|
reducibleJoin7: while (true) {
|
|
reducibleJoin124: while (true) {
|
|
if (enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
if (!Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
throw this._NativeClientError;
|
|
}
|
|
binding = env2_2;
|
|
value3 = environment.__proto__;
|
|
value4 = binding(require, 2);
|
|
property = value4[0];
|
|
property2 = value4[1];
|
|
JSON = global.JSON;
|
|
stringify = JSON.stringify;
|
|
value5 = Reflect.apply(stringify, JSON, [property]);
|
|
binding = env2_0;
|
|
value6 = binding(env2_1[4]);
|
|
encodeUTF8 = value6.encodeUTF8;
|
|
value7 = Reflect.apply(encodeUTF8, value6, [value5]);
|
|
Uint8Array = global.Uint8Array;
|
|
length = value7.length;
|
|
length2 = env2_7.length;
|
|
value8 = length + length2;
|
|
prototype = Uint8Array.prototype;
|
|
value9 = Object.create(prototype, {constructor: {value: Uint8Array}});
|
|
uint8Array = new Uint8Array();
|
|
value10 = uint8Array instanceof Object ? uint8Array : value9;
|
|
set = value10.set;
|
|
Reflect.apply(set, value10, [value7]);
|
|
set = value10.set;
|
|
binding = env2_7;
|
|
length = value7.length;
|
|
Reflect.apply(set, value10, [binding, length]);
|
|
value11 = false;
|
|
iterator = property2[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
value12 = 'text/plain';
|
|
value13 = 'application/octet-stream';
|
|
value14 = 'application/json';
|
|
r1 = value10;
|
|
r5 = iterator;
|
|
r6 = value11;
|
|
item2 = Reflect.apply(iterator2, r5, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
if (item2 === undefined) {
|
|
binding = env2_6;
|
|
captureEnvelope = binding.captureEnvelope;
|
|
binding7 = env2_0;
|
|
value = binding7(env2_1[7]);
|
|
base64StringFromByteArray = value.base64StringFromByteArray;
|
|
value = Reflect.apply(base64StringFromByteArray, value, [r1]);
|
|
yield Reflect.apply(captureEnvelope, binding, [value, {hardCrashed: r6}]);
|
|
value = undefined;
|
|
value43 = false;
|
|
if (value43) {
|
|
return value;
|
|
}
|
|
break reducibleJoin124;
|
|
}
|
|
break reducibleJoin7;
|
|
}
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
warn = debug.warn;
|
|
Reflect.apply(warn, debug, ['Event was skipped as native SDK is not enabled.']);
|
|
break reducibleJoin124;
|
|
}
|
|
return undefined;
|
|
}
|
|
reducibleLoop7: while (true) {
|
|
try {
|
|
_processItem = this._processItem;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value15 = Reflect.apply(_processItem, this, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value16 = binding(value15, 2);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = value16[0];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property3 = value16[1];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value17 = typeof property3 === 'string';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
if (value17) {
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding4 = env2_1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property6 = binding4[4];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value26 = binding(property6);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
encodeUTF8 = value26.encodeUTF8;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value27 = Reflect.apply(encodeUTF8, value26, [property3]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r19 = value12;
|
|
r20 = value27;
|
|
} else {
|
|
try {
|
|
Uint8Array = global.Uint8Array;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value18 = property3 instanceof Uint8Array;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
content_type = property.content_type;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
value19 = typeof content_type;
|
|
if (value18) {
|
|
try {
|
|
value25 = value19 !== 'string';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin49: while (true) {
|
|
if (value25) {
|
|
r22 = value13;
|
|
break reducibleJoin49;
|
|
}
|
|
try {
|
|
content_type = property.content_type;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r22 = content_type;
|
|
break reducibleJoin49;
|
|
}
|
|
r19 = r22;
|
|
r20 = property3;
|
|
} else {
|
|
try {
|
|
value20 = value19 !== 'string';
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin25: while (true) {
|
|
if (value20) {
|
|
r22 = value14;
|
|
break reducibleJoin25;
|
|
}
|
|
try {
|
|
content_type = property.content_type;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r22 = content_type;
|
|
break reducibleJoin25;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env2_1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property4 = binding2[4];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value21 = binding(property4);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
encodeUTF8 = value21.encodeUTF8;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
stringify = JSON.stringify;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value22 = Reflect.apply(stringify, JSON, [property3]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value23 = Reflect.apply(encodeUTF8, value21, [value22]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
reducibleJoin58: while (true) {
|
|
if (r6) {
|
|
r19 = r22;
|
|
r20 = value23;
|
|
break reducibleJoin58;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env2_1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property5 = binding3[6];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value24 = binding(property5);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isHardCrash = value24.isHardCrash;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
isHardCrash2 = Reflect.apply(isHardCrash, value24, [property3]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r6 = isHardCrash2;
|
|
r19 = r22;
|
|
r20 = value23;
|
|
break reducibleJoin58;
|
|
}
|
|
}
|
|
}
|
|
try {
|
|
property.content_type = r19;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r20.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property.length = length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
JSON = global.JSON;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
stringify = JSON.stringify;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value28 = Reflect.apply(stringify, JSON, [property]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_0;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding5 = env2_1;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding5[4];
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value29 = binding(property);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
encodeUTF8 = value29.encodeUTF8;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value30 = Reflect.apply(encodeUTF8, value29, [value28]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Uint8Array = global.Uint8Array;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r1.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length3 = value30.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value31 = length + length3;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = binding.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value32 = value31 + length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r20.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value33 = value32 + length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = binding.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value34 = value33 + length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
prototype = Uint8Array.prototype;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
uint8Array = new Uint8Array();
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value36 = uint8Array instanceof Object ? uint8Array : undefined;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
set = value36.set;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(set, value36, [r1]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
set = value36.set;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r1.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(set, value36, [value30, length]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
set = value36.set;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r1.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length4 = value30.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value37 = length + length4;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(set, value36, [binding, value37]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
set = value36.set;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r1.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length5 = value30.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value38 = length + length5;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = binding.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value39 = value38 + length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(set, value36, [r20, value39]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
set = value36.set;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env2_7;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r1.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length6 = value30.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value40 = length + length6;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
binding6 = env2_7;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = binding6.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value41 = value40 + length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
length = r20.length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
value42 = value41 + length;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(set, value36, [binding, value42]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r1 = value36;
|
|
r5 = item2;
|
|
item2 = Reflect.apply(iterator2, r5, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r5;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop7;
|
|
}
|
|
continue reducibleLoop7;
|
|
}
|
|
binding = env2_6;
|
|
captureEnvelope = binding.captureEnvelope;
|
|
value = env2_0(env2_1[7]);
|
|
value = value.base64StringFromByteArray(r1);
|
|
yield Reflect.apply(captureEnvelope, binding, [value, {hardCrashed: r6}]);
|
|
}
|
|
}
|
|
|
|
function* _fun10556() { // fn#10556, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:2576, offset: 0x00d9109a, size: 701 bytes, params: 1, frame: 24
|
|
var environment;
|
|
var r6;
|
|
var r5;
|
|
var binding;
|
|
var dsn;
|
|
var value7;
|
|
var ignoreErrors;
|
|
var androidProfilingOptions;
|
|
var Object3;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
let Object = global.Object;
|
|
let assign = Object.assign;
|
|
const Object2 = global.Object;
|
|
const assign2 = Object2.assign;
|
|
value = environment.__proto__;
|
|
const value3 = Reflect.apply(assign2, Object2, [{'enableNative': true, 'autoInitializeNativeSdk': true}, require]);
|
|
const enableLogs = require.enableLogs;
|
|
const value4 = undefined;
|
|
const value6 = Reflect.apply(assign, Object, [value3,
|
|
value4 !== enableLogs ? {enableLogs: require.enableLogs && require.logsOrigin !== 'js'} : {}]);
|
|
if (value6.enableNative) {
|
|
if (value6.autoInitializeNativeSdk) {
|
|
dsn = value6.dsn;
|
|
value7 = environment.__proto__.__proto__;
|
|
if (dsn) {
|
|
if (this._isModuleLoaded(env2_6)) {
|
|
ignoreErrors = value6.ignoreErrors;
|
|
r6 = ignoreErrors === null || value4 === dependencyMap ? value4 : dependencyMap.filter(function(a0) {
|
|
return typeof a0 === 'string';
|
|
});
|
|
ignoreErrors = value6.ignoreErrors;
|
|
env1_2 = ignoreErrors;
|
|
if (ignoreErrors === null) {
|
|
r5 = value4;
|
|
} else if (value4 === env1_2) {
|
|
r5 = value4;
|
|
} else {
|
|
value = env1_2.filter(_fun10558);
|
|
value = value.map(_fun10559);
|
|
r5 = value;
|
|
}
|
|
if (r6 && r6.length > 0) {
|
|
value6.ignoreErrorsStr = r6;
|
|
}
|
|
r6 = r5 && r5.length > 0;
|
|
if (r6) {
|
|
value6.ignoreErrorsRegex = r5;
|
|
}
|
|
value6.beforeSend;
|
|
value6.beforeBreadcrumb;
|
|
value6.beforeSendTransaction;
|
|
value6.beforeSendMetric;
|
|
value6.integrations;
|
|
value6.ignoreErrors;
|
|
value6.logsOrigin;
|
|
androidProfilingOptions = value6.androidProfilingOptions;
|
|
binding = env2_5;
|
|
value = binding(value6, ['beforeSend', 'beforeBreadcrumb', 'beforeSendTransaction',
|
|
'beforeSendMetric',
|
|
'integrations', 'ignoreErrors', 'logsOrigin', 'androidProfilingOptions']);
|
|
if (androidProfilingOptions) {
|
|
Object = global.Object;
|
|
assign = Object.assign;
|
|
Object3 = global.Object;
|
|
value._experiments = Reflect.apply(assign, Object, [Object3.assign({}, value._experiments),
|
|
{androidProfilingOptions: androidProfilingOptions}]);
|
|
}
|
|
binding = env2_6;
|
|
yield binding.initNativeSdk(value);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
this.nativeIsReady = value;
|
|
this.enableNative = true;
|
|
return value;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
binding = env2_0;
|
|
binding(env2_1[5]).debug.warn('Warning: No DSN was provided. The Sentry SDK will be disabled. Native SDK will also not be initalized.');
|
|
this.enableNative = false;
|
|
return false;
|
|
}
|
|
if (value6.enableNativeNagger) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_0(env2_1[5]).debug.warn('Note: Native Sentry SDK was not initialized automatically, you will need to initialize it manually. If you wish to disable the native SDK and get rid of this warning, pass enableNative: false');
|
|
}
|
|
this.enableNative = true;
|
|
} else {
|
|
if (value6.enableNativeNagger) {
|
|
value = environment.__proto__.__proto__;
|
|
env2_0(env2_1[5]).debug.warn('Note: Native Sentry SDK is disabled.');
|
|
}
|
|
this.enableNative = false;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
function* _fun10562() { // fn#10562, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:4282, offset: 0x00d91398, size: 76 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return env2_6.fetchNativeLogAttributes();
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function* _fun10565() { // fn#10565, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:4524, offset: 0x00d9140a, size: 76 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return env2_6.fetchNativeRelease();
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function* _fun10568() { // fn#10568, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:4760, offset: 0x00d9147c, size: 76 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return env2_6.fetchNativeSdkInfo();
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function* _fun10571() { // fn#10571, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:5010, offset: 0x00d914ee, size: 76 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return env2_6.fetchNativeDeviceContexts();
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function* _fun10574() { // fn#10574, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:5255, offset: 0x00d91560, size: 162 bytes, params: 1, frame: 15
|
|
var r2;
|
|
var r1;
|
|
var debug;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const enableNative = this.enableNative;
|
|
value = environment.__proto__.__proto__;
|
|
if (enableNative) {
|
|
if (this._isModuleLoaded(env2_6)) {
|
|
r2 = env2_6.fetchNativeAppStart();
|
|
} else {
|
|
debug = env2_0(env2_1[5]).debug;
|
|
debug.error(this._NativeClientError);
|
|
r2 = null;
|
|
}
|
|
r1 = r2;
|
|
} else {
|
|
debug = env2_0(env2_1[5]).debug;
|
|
debug.warn(this._DisabledNativeError);
|
|
r1 = null;
|
|
}
|
|
return r1;
|
|
}
|
|
|
|
function* _fun10577() { // fn#10577, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:5525, offset: 0x00d91628, size: 76 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return env2_6.fetchNativeFrames();
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function* _fun10587() { // fn#10587, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:7649, offset: 0x00d91a91, size: 86 bytes, params: 1, frame: 14
|
|
var environment;
|
|
var _isModuleLoaded;
|
|
if (true) {
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return env2_6.closeNativeSdk().then(_fun10588);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function* _fun10594() { // fn#10594, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:8226, offset: 0x00d91ba3, size: 252 bytes, params: 1, frame: 17
|
|
var environment;
|
|
var r2;
|
|
var r1;
|
|
var binding;
|
|
var debug;
|
|
var warn;
|
|
var error;
|
|
var captureScreenshot;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var map;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = undefined;
|
|
const enableNative = this.enableNative;
|
|
let value3 = environment.__proto__.__proto__;
|
|
if (enableNative) {
|
|
if (this._isModuleLoaded(env2_6)) {
|
|
reducibleJoin6: while (true) {
|
|
reduciblePort14: while (true) {
|
|
exceptionLanding13: while (true) {
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
break reducibleJoin6;
|
|
}
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
warn = debug.warn;
|
|
Reflect.apply(warn, debug, ['Failed to capture screenshot', error]);
|
|
r2 = value;
|
|
break reduciblePort14;
|
|
}
|
|
value = null;
|
|
reducibleJoin16: while (true) {
|
|
if (r2) {
|
|
map = r2.map;
|
|
value = Reflect.apply(map, r2, [function(a0) {
|
|
var Object = global.Object;
|
|
var Object2 = global.Object;
|
|
var value = Object2.assign({}, a0);
|
|
var Uint8Array = global.Uint8Array;
|
|
var data = a0.data;
|
|
var value2 = Object.create(Uint8Array.prototype, {constructor: {value: Uint8Array}});
|
|
var value3 = new Uint8Array(data);
|
|
return Object.assign(value, {data: value3 instanceof Object ? value3 : value2});
|
|
}]);
|
|
r1 = value;
|
|
break reducibleJoin16;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin16;
|
|
}
|
|
return r1;
|
|
}
|
|
try {
|
|
captureScreenshot = binding.captureScreenshot;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(captureScreenshot, binding, []);
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
break exceptionLanding13;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
r2 = value5;
|
|
value = null;
|
|
reducibleJoin16: while (true) {
|
|
if (r2) {
|
|
map = r2.map;
|
|
value = Reflect.apply(map, r2, [_fun10595]);
|
|
r1 = value;
|
|
break reducibleJoin16;
|
|
}
|
|
r1 = value;
|
|
break reducibleJoin16;
|
|
}
|
|
return r1;
|
|
}
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error(this._NativeClientError);
|
|
} else {
|
|
debug = env2_0(env2_1[5]).debug;
|
|
debug.warn(this._DisabledNativeError);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function* _fun10598() { // fn#10598, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:8695, offset: 0x00d91d15, size: 125 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
var binding;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
binding = env2_6;
|
|
yield binding.fetchViewHierarchy();
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value ? new global.Uint8Array(value) : null;
|
|
}
|
|
throw this._NativeClientError;
|
|
}
|
|
throw this._DisabledNativeError;
|
|
}
|
|
|
|
function* _fun10605() { // fn#10605, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:10178, offset: 0x00d91fea, size: 65 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
if (true) {
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return env2_6.initNativeReactNavigationNewFrameTracking();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function* _fun10608() { // fn#10608, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:10362, offset: 0x00d92058, size: 301 bytes, params: 1, frame: 19
|
|
var binding;
|
|
var debug;
|
|
var warn;
|
|
var captureReplay;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
const enableNative = this.enableNative;
|
|
value = environment.__proto__.__proto__;
|
|
if (enableNative) {
|
|
if (this._isModuleLoaded(env2_6)) {
|
|
binding = env2_6;
|
|
captureReplay = binding.captureReplay;
|
|
value = environment.__proto__;
|
|
yield Reflect.apply(captureReplay, binding, [require]);
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return value || null;
|
|
}
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
warn = debug.warn;
|
|
captureReplay = this.captureReplay;
|
|
Reflect.apply(warn, debug,
|
|
['[NATIVE] `' + captureReplay.name + '` is not available when native is not available.']);
|
|
value = global.Promise.resolve(null);
|
|
return value;
|
|
}
|
|
debug = env2_0(env2_1[5]).debug;
|
|
debug.warn('[NATIVE] `' + this.captureReplay.name + '` is not available when native is disabled.');
|
|
const Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
|
|
function* _fun10612() { // fn#10612, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:11156, offset: 0x00d92292, size: 99 bytes, params: 1, frame: 13
|
|
var _isModuleLoaded;
|
|
var binding;
|
|
let value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
binding = env2_6;
|
|
yield binding.crashedLastRun();
|
|
value = undefined;
|
|
if (false) {
|
|
return value;
|
|
}
|
|
return typeof value !== 'boolean' ? null : value;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
function* _fun10616() { // fn#10616, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:11547, offset: 0x00d92369, size: 172 bytes, params: 1, frame: 14
|
|
var binding;
|
|
var getDataFromUri;
|
|
var value4;
|
|
var value5;
|
|
var value6;
|
|
var Uint8Array;
|
|
var prototype;
|
|
var uint8Array;
|
|
var value8;
|
|
var error;
|
|
var debug;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (!this.enableNative) {
|
|
return null;
|
|
}
|
|
const _isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (!Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
return null;
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
try {
|
|
getDataFromUri = binding.getDataFromUri;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(getDataFromUri, binding, [require]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
yield value4;
|
|
try {
|
|
value5 = undefined;
|
|
value6 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
if (value6) {
|
|
return value5;
|
|
}
|
|
try {
|
|
Uint8Array = global.Uint8Array;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
try {
|
|
prototype = Uint8Array.prototype;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
try {
|
|
uint8Array = new Uint8Array();
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
try {
|
|
value8 = uint8Array instanceof Object ? uint8Array : undefined;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
return null;
|
|
}
|
|
return value8;
|
|
}
|
|
|
|
function* _fun10621() { // fn#10621, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:12216, offset: 0x00d9253c, size: 203 bytes, params: 1, frame: 15
|
|
var _isModuleLoaded;
|
|
var Promise;
|
|
var Array;
|
|
var from;
|
|
var value3;
|
|
var value4;
|
|
var binding;
|
|
var encodeToBase64;
|
|
var value5;
|
|
var value6;
|
|
var value7;
|
|
var error;
|
|
var debug;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
if (this.enableNative) {
|
|
_isModuleLoaded = this._isModuleLoaded;
|
|
value = environment.__proto__.__proto__;
|
|
if (Reflect.apply(_isModuleLoaded, this, [env2_6])) {
|
|
try {
|
|
Array = global.Array;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
try {
|
|
from = Array.from;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
value3 = environment.__proto__;
|
|
try {
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
try {
|
|
value4 = Reflect.apply(from, Array, [require]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
try {
|
|
binding = env2_6;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
try {
|
|
encodeToBase64 = binding.encodeToBase64;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
try {
|
|
value5 = Reflect.apply(encodeToBase64, binding, [value4]);
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
yield value5;
|
|
try {
|
|
value6 = undefined;
|
|
value7 = false;
|
|
} catch (error) {
|
|
binding = env2_0;
|
|
debug = binding(env2_1[5]).debug;
|
|
debug.error('Error:', error);
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
if (value7) {
|
|
return value6;
|
|
}
|
|
return value6 || null;
|
|
}
|
|
}
|
|
Promise = global.Promise;
|
|
return Promise.resolve(null);
|
|
}
|
|
|
|
function _fun10625(a0) { // fn#10625, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:12820, offset: 0x00d926c4, size: 59 bytes, params: 2, frame: 14
|
|
const property = env0_0[a0];
|
|
env0_1[a0] = typeof property === 'string' ? property : global.JSON.stringify(property);
|
|
}
|
|
|
|
function _fun10627(a0) { // fn#10627, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:13102, offset: 0x00d9277e, size: 85 bytes, params: 2, frame: 17
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Object2 = global.Object;
|
|
return Reflect.apply(assign, Object, [Object2.assign({}, a0),
|
|
{level: a0.level ? env0_0._processLevel(a0.level) : undefined}]);
|
|
}
|
|
|
|
function* _fun10633() { // fn#10633, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:13764, offset: 0x00d92827, size: 38 bytes, params: 1, frame: 12
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__;
|
|
const binding = env2_8;
|
|
const getDataFromUri = binding.getDataFromUri;
|
|
value = environment.__proto__;
|
|
return Reflect.apply(getDataFromUri, binding, [require]);
|
|
}
|
|
|
|
function step_10544(a0) { // fn#10544, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:348, offset: 0x00d90a86, size: 77 bytes, params: 2, frame: 14
|
|
var value;
|
|
if (a0.done) {
|
|
env0_0(a0.value);
|
|
} else {
|
|
value = a0.value;
|
|
value = step_10544Adopt(value);
|
|
value.then(fulfilled_10542, rejected_10543);
|
|
}
|
|
}
|
|
|
|
function _fun10558(a0) { // fn#10558, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:3553, offset: 0x00d91357, size: 17 bytes, params: 2, frame: 2
|
|
const RegExp = global.RegExp;
|
|
return a0 instanceof RegExp;
|
|
}
|
|
|
|
function _fun10588() { // fn#10588, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:7750, offset: 0x00d91ae7, size: 19 bytes, params: 1, frame: 2
|
|
env0_0.enableNative = false;
|
|
}
|
|
|
|
function _fun10595(a0) { // fn#10595, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:8521, offset: 0x00d91c9f, size: 80 bytes, params: 2, frame: 16
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const Object2 = global.Object;
|
|
const value = Object2.assign({}, a0);
|
|
const Uint8Array = global.Uint8Array;
|
|
const data = a0.data;
|
|
const value2 = Object.create(Uint8Array.prototype, {constructor: {value: Uint8Array}});
|
|
const uint8Array = new Uint8Array(data);
|
|
return Reflect.apply(assign, Object, [value, {data: uint8Array instanceof Object ? uint8Array : value2}]);
|
|
}
|
|
|
|
function step_10544Adopt(a0) { // fn#10545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1136:383, owner: step_10544.adopt, offset: 0x00d90ad3, size: 54 bytes, params: 2, frame: 12
|
|
const value = a0;
|
|
return value instanceof env2_2 ? value : new env2_2(_fun10546);
|
|
}
|
|
|