This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,54 +1,60 @@
/* Metro module 4094; source: modules/mobile_native_updater/MobileNativeUpdateConstants.tsx; dependencies: [3738, 477, 1471, 1582, 2] */
import Module03738 from '../../by-id/module-03738.js'; /* Metro dependency 3738 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ClientInfoUtilsModule from '../../utils/native/ClientInfoUtils.tsx'; /* Metro dependency 1582 */
function _fun33545(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33545, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4252:6, offset: 0x01033693, size: 140 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = importDefault(3738) /* metro dependency 3738 */;
let value = Module03738;
value = value.duration(6, 'hours');
const value2 = currentUpdateConfig();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateConstants.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateConstants.tsx');
exports.UPDATE_CHECK_INTERVAL = value;
exports.UPDATE_CONFIG = value2;
}
function currentUpdateConfig() { // fn#33546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4252:132, offset: 0x0103371f, size: 390 bytes, params: 1, frame: 18
var r2;
var r4;
var moduleValue;
var moduleValue2;
var defaultImport;
const INTERNAL_UPDATE_URL = global.process.env.INTERNAL_UPDATE_URL;
const value = null;
const value2 = undefined;
if (value2 === INTERNAL_UPDATE_URL) {
r4 = value;
} else if (global.process.env.INTERNAL_UPDATE_URL === '') {
r4 = value;
} else {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isIOS()) {
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
r2 = defaultImport.toURLSafe(global.process.env.INTERNAL_UPDATE_URL);
function currentUpdateConfig() { // fn#33546, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4252:132, offset: 0x0103371f, size: 390 bytes, params: 1, frame: 18
var r2;
var r4;
var moduleValue;
var moduleValue2;
var defaultImport;
const INTERNAL_UPDATE_URL = global.process.env.INTERNAL_UPDATE_URL;
const value = null;
const value2 = undefined;
if (value2 === INTERNAL_UPDATE_URL) {
r4 = value;
} else if (global.process.env.INTERNAL_UPDATE_URL === '') {
r4 = value;
} else {
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isAndroid()) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isIOS()) {
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
r2 = defaultImport.toURLSafe(global.process.env.INTERNAL_UPDATE_URL);
} else {
r2 = value;
moduleValue2 = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue2.isAndroid()) {
defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
r2 = defaultImport.toURLSafe(global.process.env.INTERNAL_UPDATE_URL);
} else {
r2 = value;
}
}
r4 = r2;
}
r4 = r2;
const constants = (ClientInfoUtilsModule).getConstants();
const parseInt = global.parseInt;
const Build = value == constants ? value2 : constants.Build;
const int = parseInt(Build);
const Number = global.Number;
const r3 = Number.isNaN(int) || int === 0 || (int === 123456 || int === 1234567890) ? value : int;
const constants2 = (ClientInfoUtilsModule).getConstants();
const Version = value == constants2 ? value2 : constants2.Version;
r2 = value != Version ? Version : value;
return value === r4 || value === r3 || value === r2 ? value : {url: r4, currentBuild: r3, currentVersion: r2};
}
const constants = (require(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
const parseInt = global.parseInt;
const Build = value == constants ? value2 : constants.Build;
const int = parseInt(Build);
const Number = global.Number;
const r3 = Number.isNaN(int) || int === 0 || (int === 123456 || int === 1234567890) ? value : int;
const constants2 = (require(1582) /* metro dependency 1582: ClientInfoUtils */).getConstants();
const Version = value == constants2 ? value2 : constants2.Version;
r2 = value != Version ? Version : value;
return value === r4 || value === r3 || value === r2 ? value : {url: r4, currentBuild: r3, currentVersion: r2};
}
global.__d(_fun33545, 4094, [3738, 477, 1471, 1582,
2]) /* metro module 4094, dependencies: [3738, 477, 1471, 1582, 2] */;
@@ -1,152 +1,159 @@
/* Metro module 12949; source: modules/mobile_native_updater/MobileNativeUpdateStore.tsx; dependencies: [6, 7, 15, 17, 18, 4094, 3, 694, 12680, 566, 2] */
import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import Dispatcher from '../../Dispatcher.tsx'; /* Metro dependency 694 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MobileNativeUpdateConstantsModule from './MobileNativeUpdateConstants.tsx'; /* Metro dependency 4094 */
function _fun98631(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#98631, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:6, offset: 0x021b10d3, size: 400 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
let value = require(4094) /* metro dependency 4094: MobileNativeUpdateConstants */;
let value = MobileNativeUpdateConstantsModule;
const env0_8 = value.UPDATE_CONFIG;
const env0_9 = value.UPDATE_CHECK_INTERVAL;
value = importDefault(3) /* metro dependency 3: Logger */;
value = new value('MobileNativeUpdateStore');
const env0_11 = {'lastCheck': null, 'checking': false, 'newBuild': null};
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
_fun98635(Store).displayName = 'MobileNativeUpdateStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
{MOBILE_NATIVE_UPDATE_CHECK_STARTED: MOBILE_NATIVE_UPDATE_CHECK_STARTED,
MOBILE_NATIVE_UPDATE_CHECK_FAILED: MOBILE_NATIVE_UPDATE_CHECK_FAILED,
MOBILE_NATIVE_UPDATE_CHECK_FINISHED: MOBILE_NATIVE_UPDATE_CHECK_FINISHED_98645});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_98632() { // fn#98632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:202, offset: 0x021b1263, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_98632_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun98635(a0) { // fn#98635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:499, offset: 0x021b12c5, size: 122 bytes, params: 2, frame: 16
const closure = MobileNativeUpdateStore;
env0_7(closure, a0);
return env0_4(closure, [{key: 'checkForNewerBuild', value: value_98637}, {key: 'ensureInitialized',
value: value_98640}, {key: 'latestFetchedBuild', value: value_98642}]);
}
function MOBILE_NATIVE_UPDATE_CHECK_STARTED() { // fn#98643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1663, offset: 0x021b154e, size: 35 bytes, params: 1, frame: 13
const object2 = {};
copyDataProperties(object2, env0_11, undefined);
object2['checking'] = true;
}
function MOBILE_NATIVE_UPDATE_CHECK_FAILED() { // fn#98644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1749, offset: 0x021b1571, size: 35 bytes, params: 1, frame: 13
const object2 = {};
copyDataProperties(object2, env0_11, undefined);
object2['checking'] = false;
}
function MOBILE_NATIVE_UPDATE_CHECK_FINISHED_98645({newBuild}) { // fn#98645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1836, offset: 0x021b1594, size: 67 bytes, params: 2, frame: 11
const object2 = {};
const Date = global.Date;
object2.lastCheck = new Date();
object2.checking = false;
object2.newBuild = newBuild;
}
function MobileNativeUpdateStore(a0) { // fn#98636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:511, offset: 0x021b133f, size: 142 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, MobileNativeUpdateStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(MobileNativeUpdateStore);
binding = env1_5;
if (_isNativeReflectConstruct_98632()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.hasUpdatesConfigured = UPDATE_CONFIG !== null;
return value;
}
function value_98637() { // fn#98637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:895, offset: 0x021b13cd, size: 120 bytes, params: 1, frame: 17
var environment;
let value = environment.__proto__;
if (env1_11.checking !== true) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_STARTED'});
value = require(12680) /* metro dependency 12680: MobileNativeUpdateUtils */;
value = value.checkForNewerBuild();
value.then(_fun98638, _fun98639);
}
}
function value_98640() { // fn#98640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1205, offset: 0x021b14ad, size: 94 bytes, params: 1, frame: 15
var environment;
var value;
var closure;
if (this.hasUpdatesConfigured) {
value = environment.__proto__;
if (env1_12 === null) {
closure = backgroundUpdateCheck;
env1_12 = global.setInterval(closure, UPDATE_CHECK_INTERVAL.asMilliseconds());
global.setTimeout(closure, 1000);
function _isNativeReflectConstruct_98632() { // fn#98632, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:202, offset: 0x021b1263, size: 98 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_98632_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun98635(a0) { // fn#98635, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:499, offset: 0x021b12c5, size: 122 bytes, params: 2, frame: 16
const MobileNativeUpdateStore2 = MobileNativeUpdateStore;
Inherits(MobileNativeUpdateStore2, a0);
return CreateClass(MobileNativeUpdateStore2, [{key: 'checkForNewerBuild', value: value_98637}, {key: 'ensureInitialized',
value: value_98640}, {key: 'latestFetchedBuild', value: value_98642}]);
function MobileNativeUpdateStore(a0) { // fn#98636, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:511, offset: 0x021b133f, size: 142 bytes, params: 2, frame: 20
var r0;
var Reflect;
let value = copyRestArgs(0, undefined);
let binding = env1_3;
binding(this, MobileNativeUpdateStore);
const items2 = [];
arraySpread(items2, value, 0, items2);
value = env1_6(MobileNativeUpdateStore);
binding = env1_5;
if (_isNativeReflectConstruct_98632()) {
Reflect = global.Reflect;
value = Reflect.construct(value, items2, env1_6(this).constructor);
r0 = value;
} else {
value = value.apply(this, items2);
r0 = value;
}
value = binding(this, r0);
value.hasUpdatesConfigured = UPDATE_CONFIG !== null;
return value;
}
function value_98637() { // fn#98637, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:895, offset: 0x021b13cd, size: 120 bytes, params: 1, frame: 17
var environment;
let value = environment.__proto__;
if (env1_11.checking !== true) {
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_STARTED'});
value = require(12680) /* metro dependency 12680: MobileNativeUpdateUtils */;
value = value.checkForNewerBuild();
value.then(_fun98638, _fun98639);
}
function _fun98638(a0) { // fn#98638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1021, offset: 0x021b1445, size: 55 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(Dispatcher).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_FINISHED',
newBuild: a0});
}
function _fun98639() { // fn#98639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1102, offset: 0x021b147c, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
(Dispatcher).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_FAILED'});
}
}
function value_98640() { // fn#98640, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1205, offset: 0x021b14ad, size: 94 bytes, params: 1, frame: 15
var environment;
var value;
var backgroundUpdateCheck2;
if (this.hasUpdatesConfigured) {
value = environment.__proto__;
if (env1_12 === null) {
backgroundUpdateCheck2 = backgroundUpdateCheck;
env1_12 = global.setInterval(backgroundUpdateCheck2, UPDATE_CHECK_INTERVAL.asMilliseconds());
global.setTimeout(backgroundUpdateCheck2, 1000);
}
}
function backgroundUpdateCheck() { // fn#98641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1282, owner: value_98640.backgroundUpdateCheck, offset: 0x021b150b, size: 45 bytes, params: 1, frame: 11
env2_10.info('Checking for new native builds in the background');
env0_0.checkForNewerBuild();
}
}
function value_98642() { // fn#98642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1502, offset: 0x021b1538, size: 22 bytes, params: 1, frame: 9
this.ensureInitialized();
return env1_11;
}
}
function MOBILE_NATIVE_UPDATE_CHECK_STARTED() { // fn#98643, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1663, offset: 0x021b154e, size: 35 bytes, params: 1, frame: 13
const object = {};
copyDataProperties(object, env0_11, undefined);
object['checking'] = true;
}
function MOBILE_NATIVE_UPDATE_CHECK_FAILED() { // fn#98644, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1749, offset: 0x021b1571, size: 35 bytes, params: 1, frame: 13
const object = {};
copyDataProperties(object, env0_11, undefined);
object['checking'] = false;
}
function MOBILE_NATIVE_UPDATE_CHECK_FINISHED_98645({newBuild}) { // fn#98645, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1836, offset: 0x021b1594, size: 67 bytes, params: 2, frame: 11
const object = {};
const Date = global.Date;
object.lastCheck = new Date();
object.checking = false;
object.newBuild = newBuild;
}
}
function value_98642() { // fn#98642, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1502, offset: 0x021b1538, size: 22 bytes, params: 1, frame: 9
this.ensureInitialized();
return env1_11;
}
function _fun98638(a0) { // fn#98638, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1021, offset: 0x021b1445, size: 55 bytes, params: 2, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_FINISHED',
newBuild: a0});
}
function _fun98639() { // fn#98639, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1102, offset: 0x021b147c, size: 49 bytes, params: 1, frame: 13
const value = environment.__proto__.__proto__;
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MOBILE_NATIVE_UPDATE_CHECK_FAILED'});
}
function backgroundUpdateCheck() { // fn#98641, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13139:1282, owner: value_98640.backgroundUpdateCheck, offset: 0x021b150b, size: 45 bytes, params: 1, frame: 11
env2_10.info('Checking for new native builds in the background');
env0_0.checkForNewerBuild();
}
global.__d(_fun98631, 12949, [6, 7, 15, 17, 18, 4094, 3, 694, 12680, 566,
2]) /* metro module 12949, dependencies: [6, 7, 15, 17, 18, 4094, 3, 694, 12680, 566, 2] */;
@@ -1,206 +1,204 @@
/* Metro module 12680; source: modules/mobile_native_updater/MobileNativeUpdateUtils.tsx; dependencies: [5, 4094, 3, 507, 3853, 477, 676, 2] */
import Logger from '../debug/Logger.tsx'; /* Metro dependency 3 */
import Module00005 from '../../by-id/module-00005.js'; /* Metro dependency 5 */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as MobileNativeUpdateConstantsModule from './MobileNativeUpdateConstants.tsx'; /* Metro dependency 4094 */
function _fun97155(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:6, offset: 0x02174f9a, size: 219 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = openBuildInstallerUrl;
const openBuildInstallerUrl2 = openBuildInstallerUrl;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = (require(4094) /* metro dependency 4094: MobileNativeUpdateConstants */).UPDATE_CONFIG;
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
value = new value('MobileNativeUpdateUtils');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/mobile_native_updater/MobileNativeUpdateUtils.tsx');
exports.checkForNewerBuild = function() {
return _checkForNewerBuild.apply(this, arguments);
};
exports.openBuildInstaller = function(a0) {
openBuildInstallerUrl(a0.urls.install);
};
exports.openBuildInstallerUrl = closure;
}
function _checkForNewerBuild() { // fn#97156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:172, offset: 0x02175075, size: 50 bytes, params: 1, frame: 14
return env0_2(_fun97158).apply(this, arguments);
}
function openBuildInstallerUrl(a0) { // fn#97159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:777, offset: 0x02175283, size: 269 bytes, params: 2, frame: 17
var origin;
var URL;
var prototype;
var uRL;
var value3;
var origin2;
var value5;
var url;
var value6;
var property;
var moduleValue;
var openURLExternally;
var moduleValue2;
var isIOS;
var isIOS2;
var toString;
var value7;
var moduleValue3;
var WebBrowserType;
var SAFARI;
var value8;
var binding;
var error;
var concat;
var value9;
const value = undefined;
reducibleJoin3: while (true) {
reduciblePort59: while (true) {
exceptionLanding58: while (true) {
try {
URL = global.URL;
} catch (error) {
break exceptionLanding58;
}
break reducibleJoin3;
exports.openBuildInstallerUrl = openBuildInstallerUrl2;
function _checkForNewerBuild() { // fn#97156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:172, offset: 0x02175075, size: 50 bytes, params: 1, frame: 14
return Module00005(_fun97158).apply(this, arguments);
function* _fun97158() { // fn#97158, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:233, offset: 0x021750b2, size: 465 bytes, params: 1, frame: 23
var r3;
var body;
var build;
var Date;
var build_timestamp;
var value6;
var date;
if (false) {
return undefined;
}
break reduciblePort59;
value = environment.__proto__.__proto__;
const value3 = null;
if (value3 === env2_3) {
return value3;
}
let binding = env2_4;
binding.info('Checking ' + env2_3.url + ' for updates');
const HTTP = env2_0(env2_1[3]).HTTP;
const get = HTTP.get;
let object = {};
object.url = env2_3.url.toString();
object.headers = {Accept: 'application/json'};
object.rejectWithError = false;
yield Reflect.apply(get, HTTP, [object]);
const value4 = undefined;
if (false) {
return value4;
}
if (value4.ok) {
object = {};
body = value4.body;
build = body.build;
object.build = build;
body = value4.body;
object.version = body.version;
Date = global.Date;
body = value4.body;
build_timestamp = body.build_timestamp;
value6 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date();
object.buildTimestamp = date instanceof Object ? date : value6;
body = value4.body;
object.urls = body.urls;
build = object.build;
if (build > env2_3.currentBuild) {
if (object.version >= env2_3.currentVersion) {
binding = env2_4;
binding.info('Update build ' + object.build + ' is newer than ' + env2_3.currentBuild);
r3 = object;
} else {
binding = env2_4;
binding.info('Update build ' + object.build + ' is older than ' + env2_3.currentBuild);
r3 = value3;
}
} else {
binding = env2_4;
binding.info('Update build ' + object.build + ' is older than ' + env2_3.currentBuild);
r3 = value3;
}
return r3;
}
throw value4;
}
return value;
}
try {
prototype = URL.prototype;
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
uRL = new URL(a0);
} catch (error) {
break exceptionLanding58;
}
try {
value3 = uRL instanceof Object ? uRL : undefined;
} catch (error) {
break exceptionLanding58;
}
try {
origin2 = value3.origin;
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
value5 = UPDATE_CONFIG == null;
} catch (error) {
break exceptionLanding58;
}
reducibleJoin19: while (true) {
if (value5) {
origin = value;
function openBuildInstallerUrl(a0) { // fn#97159, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:777, offset: 0x02175283, size: 269 bytes, params: 2, frame: 17
var origin;
var URL;
var prototype;
var uRL;
var value3;
var origin2;
var value5;
var url;
var value6;
var property;
var moduleValue;
var openURLExternally;
var moduleValue2;
var isIOS;
var isIOS2;
var toString;
var value7;
var moduleValue3;
var WebBrowserType;
var SAFARI;
var value8;
var binding;
var error;
var concat;
var value9;
const value = undefined;
reducibleJoin3: while (true) {
reduciblePort59: while (true) {
exceptionLanding58: while (true) {
try {
URL = global.URL;
} catch (error) {
break exceptionLanding58;
}
break reducibleJoin3;
}
break reduciblePort59;
}
return value;
}
try {
prototype = URL.prototype;
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
uRL = new URL(a0);
} catch (error) {
break exceptionLanding58;
}
try {
value3 = uRL instanceof Object ? uRL : undefined;
} catch (error) {
break exceptionLanding58;
}
try {
origin2 = value3.origin;
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
value5 = UPDATE_CONFIG == null;
} catch (error) {
break exceptionLanding58;
}
reducibleJoin19: while (true) {
if (value5) {
origin = value;
break reducibleJoin19;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
url = UPDATE_CONFIG.url;
} catch (error) {
break exceptionLanding58;
}
try {
origin = url.origin;
} catch (error) {
break exceptionLanding58;
}
break reducibleJoin19;
}
try {
value6 = origin2 !== origin;
} catch (error) {
break exceptionLanding58;
}
try {
url = UPDATE_CONFIG.url;
} catch (error) {
break exceptionLanding58;
}
try {
origin = url.origin;
} catch (error) {
break exceptionLanding58;
}
break reducibleJoin19;
}
try {
value6 = origin2 !== origin;
} catch (error) {
break exceptionLanding58;
}
if (value6) {
try {
binding = env0_4;
} catch (error) {
break exceptionLanding58;
}
try {
error = binding.error;
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
value9 = Reflect.apply(concat, 'Attempted to follow invalid install URL ', [value3]);
} catch (error) {
break exceptionLanding58;
}
try {
Reflect.apply(error, binding, [value9]);
} catch (error) {
break exceptionLanding58;
}
} else {
try {
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
property = dependencyMap[4];
} catch (error) {
break exceptionLanding58;
}
try {
moduleValue = require(property);
} catch (error) {
break exceptionLanding58;
}
try {
property = moduleValue.default;
} catch (error) {
break exceptionLanding58;
}
try {
openURLExternally = property.openURLExternally;
} catch (error) {
break exceptionLanding58;
}
try {
property = dependencyMap[5];
} catch (error) {
break exceptionLanding58;
}
try {
moduleValue2 = require(property);
} catch (error) {
break exceptionLanding58;
}
try {
isIOS = moduleValue2.isIOS;
} catch (error) {
break exceptionLanding58;
}
try {
isIOS2 = Reflect.apply(isIOS, moduleValue2, []);
} catch (error) {
break exceptionLanding58;
}
if (isIOS2) {
if (value6) {
try {
binding = env0_4;
} catch (error) {
break exceptionLanding58;
}
try {
error = binding.error;
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
@@ -210,123 +208,130 @@ function openBuildInstallerUrl(a0) { // fn#97159, source: /ci/build/discord/disc
break exceptionLanding58;
}
try {
property = dependencyMap[6];
value9 = Reflect.apply(concat, 'Attempted to follow invalid install URL ', [value3]);
} catch (error) {
break exceptionLanding58;
}
try {
moduleValue3 = require(property);
} catch (error) {
break exceptionLanding58;
}
try {
WebBrowserType = moduleValue3.WebBrowserType;
} catch (error) {
break exceptionLanding58;
}
try {
SAFARI = WebBrowserType.SAFARI;
} catch (error) {
break exceptionLanding58;
}
try {
toString = value3.toString;
} catch (error) {
break exceptionLanding58;
}
try {
value8 = Reflect.apply(toString, value3, []);
} catch (error) {
break exceptionLanding58;
}
try {
openURLExternally(value8, SAFARI);
Reflect.apply(error, binding, [value9]);
} catch (error) {
break exceptionLanding58;
}
} else {
try {
toString = value3.toString;
} catch (error) {
break exceptionLanding58;
}
try {
value7 = Reflect.apply(toString, value3, []);
} catch (error) {
break exceptionLanding58;
}
try {
openURLExternally(value7);
property = dependencyMap[4];
} catch (error) {
break exceptionLanding58;
}
}
}
return value;
}
function* _fun97158() { // fn#97158, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12870:233, offset: 0x021750b2, size: 465 bytes, params: 1, frame: 23
var r3;
var body;
var build;
var Date;
var build_timestamp;
var value6;
var date;
if (false) {
return undefined;
}
value = environment.__proto__.__proto__;
const value3 = null;
if (value3 === env2_3) {
return value3;
}
let binding = env2_4;
binding.info('Checking ' + env2_3.url + ' for updates');
const HTTP = env2_0(env2_1[3]).HTTP;
const get = HTTP.get;
let object2 = {};
object2.url = env2_3.url.toString();
object2.headers = {Accept: 'application/json'};
object2.rejectWithError = false;
yield Reflect.apply(get, HTTP, [object2]);
const value4 = undefined;
if (false) {
return value4;
}
if (value4.ok) {
object2 = {};
body = value4.body;
build = body.build;
object2.build = build;
body = value4.body;
object2.version = body.version;
Date = global.Date;
body = value4.body;
build_timestamp = body.build_timestamp;
value6 = Object.create(Date.prototype, {constructor: {value: Date}});
date = new Date();
object2.buildTimestamp = date instanceof Object ? date : value6;
body = value4.body;
object2.urls = body.urls;
build = object2.build;
if (build > env2_3.currentBuild) {
if (object2.version >= env2_3.currentVersion) {
binding = env2_4;
binding.info('Update build ' + object2.build + ' is newer than ' + env2_3.currentBuild);
r3 = object2;
try {
moduleValue = require(property);
} catch (error) {
break exceptionLanding58;
}
try {
property = moduleValue.default;
} catch (error) {
break exceptionLanding58;
}
try {
openURLExternally = property.openURLExternally;
} catch (error) {
break exceptionLanding58;
}
try {
property = dependencyMap[5];
} catch (error) {
break exceptionLanding58;
}
try {
moduleValue2 = require(property);
} catch (error) {
break exceptionLanding58;
}
try {
isIOS = moduleValue2.isIOS;
} catch (error) {
break exceptionLanding58;
}
try {
isIOS2 = Reflect.apply(isIOS, moduleValue2, []);
} catch (error) {
break exceptionLanding58;
}
if (isIOS2) {
try {
} catch (error) {
break exceptionLanding58;
}
try {
} catch (error) {
break exceptionLanding58;
}
try {
property = dependencyMap[6];
} catch (error) {
break exceptionLanding58;
}
try {
moduleValue3 = require(property);
} catch (error) {
break exceptionLanding58;
}
try {
WebBrowserType = moduleValue3.WebBrowserType;
} catch (error) {
break exceptionLanding58;
}
try {
SAFARI = WebBrowserType.SAFARI;
} catch (error) {
break exceptionLanding58;
}
try {
toString = value3.toString;
} catch (error) {
break exceptionLanding58;
}
try {
value8 = Reflect.apply(toString, value3, []);
} catch (error) {
break exceptionLanding58;
}
try {
openURLExternally(value8, SAFARI);
} catch (error) {
break exceptionLanding58;
}
} else {
binding = env2_4;
binding.info('Update build ' + object2.build + ' is older than ' + env2_3.currentBuild);
r3 = value3;
try {
toString = value3.toString;
} catch (error) {
break exceptionLanding58;
}
try {
value7 = Reflect.apply(toString, value3, []);
} catch (error) {
break exceptionLanding58;
}
try {
openURLExternally(value7);
} catch (error) {
break exceptionLanding58;
}
}
} else {
binding = env2_4;
binding.info('Update build ' + object2.build + ' is older than ' + env2_3.currentBuild);
r3 = value3;
}
return r3;
return value;
}
throw value4;
}
global.__d(_fun97155, 12680, [5, 4094, 3, 507, 3853, 477, 676,
2]) /* metro module 12680, dependencies: [5, 4094, 3, 507, 3853, 477, 676, 2] */;