Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,152 @@
|
||||
/* Metro module 1219; source: modules/telemetry_ring/native/TelemetryRingLifecycle.tsx; dependencies: [6, 7, 15, 17, 18, 1220, 1878, 7030, 661, 12833, 12835, 5256, 694, 4561, 2] */
|
||||
function _fun13567(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13567, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:6, offset: 0x00def12a, size: 292 bytes, params: 8, frame: 19
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_5 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_6 = importDefault(18) /* metro dependency 18 */;
|
||||
const apexExperimentStore = importDefault(1220) /* metro dependency 1220: ApexExperimentStore */;
|
||||
const userStore = importDefault(1878) /* metro dependency 1878: UserStore */;
|
||||
const appStateStore = importDefault(7030) /* metro dependency 7030: AppStateStore */;
|
||||
const env0_10 = (require(661) /* metro dependency 661: Constants */).AppStates;
|
||||
let value = importDefault(4561) /* metro dependency 4561: LifecycleManager */;
|
||||
value = _fun13571(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/TelemetryRingLifecycle.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_13568() { // fn#13568, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:198, offset: 0x00def24e, size: 94 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_13568_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun13571(a0) { // fn#13571, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:401, offset: 0x00def2ac, size: 114 bytes, params: 2, frame: 16
|
||||
const closure = TelemetryRingLifecycleImpl;
|
||||
env0_6(closure, a0);
|
||||
return env0_3(closure, [{key: '_updateZoomedInExport', value: value_13575}, {key: '_initialize',
|
||||
value: value_13576}, {key: '_terminate', value: value_13578}]);
|
||||
}
|
||||
|
||||
function TelemetryRingLifecycleImpl(a0) { // fn#13572, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:413, offset: 0x00def31e, size: 170 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_2;
|
||||
binding(this, TelemetryRingLifecycleImpl);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_5(TelemetryRingLifecycleImpl);
|
||||
binding = env1_4;
|
||||
if (_isNativeReflectConstruct_13568()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_5(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value._initialized = false;
|
||||
value._experimentUnsubscribe = null;
|
||||
value._handleEligibilityChange = _handleEligibilityChange;
|
||||
value._handleLogout = _handleLogout;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_13575() { // fn#13575, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:945, offset: 0x00def418, size: 176 bytes, params: 1, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const state = AppStateStore.getState();
|
||||
let ACTIVE = AppStates.ACTIVE;
|
||||
(importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).setShouldCollectHermesInstrumentedStats(state === ACTIVE && (importDefault(12835) /* metro dependency 12835: ZoomedInTelemetry */).shouldRun());
|
||||
ACTIVE = AppStates.ACTIVE;
|
||||
if (state === ACTIVE) {
|
||||
(importDefault(12835) /* metro dependency 12835: ZoomedInTelemetry */).start();
|
||||
} else {
|
||||
(importDefault(12835) /* metro dependency 12835: ZoomedInTelemetry */).stop();
|
||||
}
|
||||
}
|
||||
|
||||
function value_13576() { // fn#13576, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:1137, offset: 0x00def4c8, size: 186 bytes, params: 1, frame: 19
|
||||
var environment;
|
||||
var value;
|
||||
var defaultImport;
|
||||
var addChangeListener;
|
||||
var _handleEligibilityChange;
|
||||
if (!this._initialized) {
|
||||
this._initialized = true;
|
||||
value = environment.__proto__;
|
||||
defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
defaultImport.subscribe('LOGOUT', this._handleLogout);
|
||||
addChangeListener = AppStateStore.addChangeListener;
|
||||
_handleEligibilityChange = this._handleEligibilityChange;
|
||||
Reflect.apply(addChangeListener, AppStateStore, [_handleEligibilityChange]);
|
||||
addChangeListener = UserStore.addChangeListener;
|
||||
_handleEligibilityChange = this._handleEligibilityChange;
|
||||
Reflect.apply(addChangeListener, UserStore, [_handleEligibilityChange]);
|
||||
addChangeListener = ApexExperimentStore.addChangeListener;
|
||||
_handleEligibilityChange = this._handleEligibilityChange;
|
||||
Reflect.apply(addChangeListener, ApexExperimentStore, [_handleEligibilityChange]);
|
||||
this._experimentUnsubscribe = _experimentUnsubscribe;
|
||||
value = importDefault(12835) /* metro dependency 12835: ZoomedInTelemetry */;
|
||||
value.initialize();
|
||||
this._updateZoomedInExport();
|
||||
}
|
||||
}
|
||||
|
||||
function value_13578() { // fn#13578, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:1556, offset: 0x00def5a5, size: 183 bytes, params: 1, frame: 16
|
||||
const value = environment.__proto__;
|
||||
const defaultImport = importDefault(694) /* metro dependency 694: Dispatcher */;
|
||||
defaultImport.unsubscribe('LOGOUT', this._handleLogout);
|
||||
AppStateStore.removeChangeListener(this._handleEligibilityChange);
|
||||
UserStore.removeChangeListener(this._handleEligibilityChange);
|
||||
if (this._experimentUnsubscribe != null) {
|
||||
this._experimentUnsubscribe();
|
||||
this._experimentUnsubscribe = null;
|
||||
}
|
||||
(importDefault(12835) /* metro dependency 12835: ZoomedInTelemetry */).stop();
|
||||
(importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).setShouldCollectHermesInstrumentedStats(false);
|
||||
this._initialized = false;
|
||||
}
|
||||
|
||||
function _handleEligibilityChange() { // fn#13573, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:752, owner: TelemetryRingLifecycleImpl._handleEligibilityChange, offset: 0x00def3c8, size: 21 bytes, params: 1, frame: 9
|
||||
env0_0._updateZoomedInExport();
|
||||
}
|
||||
|
||||
function TelemetryRingLifecycleImpl_handleLogout() { // fn#13574, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:800, owner: TelemetryRingLifecycleImpl._handleLogout, offset: 0x00def3dd, size: 59 bytes, params: 1, frame: 13
|
||||
const value = environment.__proto__.__proto__;
|
||||
(importDefault(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */).clear();
|
||||
(importDefault(12835) /* metro dependency 12835: ZoomedInTelemetry */).reset();
|
||||
}
|
||||
|
||||
function value_13576_experimentUnsubscribe() { // fn#13577, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1346:1418, owner: value_13576._experimentUnsubscribe, offset: 0x00def582, size: 35 bytes, params: 1, frame: 11
|
||||
ApexExperimentStore.removeChangeListener(env0_0._handleEligibilityChange);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
/* Metro module 12833; source: modules/telemetry_ring/native/TelemetryRingNative.android.tsx; dependencies: [12834, 2] */
|
||||
function _fun97895(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97895, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13023:6, offset: 0x02195e8f, size: 168 bytes, params: 8, frame: 17
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const object = {append: append_97896, snapshot: snapshot, clear: clear_97898};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/TelemetryRingNative.android.tsx');
|
||||
exports.default = object;
|
||||
exports.TelemetryChannel = {SENTRY: 'SENTRY', NORMAL: 'NORMAL', ZOOMED: 'ZOOMED'};
|
||||
}
|
||||
|
||||
function append_97896(a0, a1, a2, a3, a4) { // fn#97896, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13023:181, offset: 0x02195f37, size: 54 bytes, params: 6, frame: 20
|
||||
(importDefault(12834) /* metro dependency 12834: NativeTelemetryRingModule */).append(a0, a1, a2, a3, a4);
|
||||
}
|
||||
|
||||
function snapshot(a0, a1, a2, a3) { // fn#97897, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13023:235, offset: 0x02195f6d, size: 51 bytes, params: 5, frame: 17
|
||||
return (importDefault(12834) /* metro dependency 12834: NativeTelemetryRingModule */).snapshot(a0, a1, a2, a3);
|
||||
}
|
||||
|
||||
function clear_97898() { // fn#97898, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13023:272, offset: 0x02195fa0, size: 36 bytes, params: 1, frame: 11
|
||||
(importDefault(12834) /* metro dependency 12834: NativeTelemetryRingModule */).clear();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/* Metro module 12836; source: modules/telemetry_ring/native/ZoomedInAnalyticsExperiment.tsx; dependencies: [1854, 2] */
|
||||
function _fun97917(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97917, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13026:6, offset: 0x0219666b, size: 164 bytes, params: 8, frame: 21
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
let value = require(1854) /* metro dependency 1854: apex */;
|
||||
value = value.createApexExperiment({'kind': 'user', 'name': '2025-12-zoomed-analytics',
|
||||
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/ZoomedInAnalyticsExperiment.tsx');
|
||||
exports.default = value;
|
||||
exports.isZoomedExperimentEnabled = isZoomedExperimentEnabled;
|
||||
}
|
||||
|
||||
function isZoomedExperimentEnabled() { // fn#97918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13026:372, offset: 0x0219670f, size: 37 bytes, params: 1, frame: 12
|
||||
const binding = env0_0;
|
||||
const getConfig = binding.getConfig;
|
||||
return Reflect.apply(getConfig, binding, [{location: 'zoomed_in_telemetry_consumer'}]).enabled;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/* Metro module 12839; source: modules/telemetry_ring/native/channels/BaseTelemetryChannel.tsx; dependencies: [6, 7, 2] */
|
||||
function _fun97974(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97974, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13029:6, offset: 0x02197e91, size: 126 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_0 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_1 = importDefault(7) /* metro dependency 7 */;
|
||||
const value = _fun97975();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/channels/BaseTelemetryChannel.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _fun97975() { // fn#97975, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13029:118, offset: 0x02197f0f, size: 109 bytes, params: 1, frame: 15
|
||||
return env0_1(BaseTelemetryChannel, [{key: 'append', value: function(a0, a1, a2, a3) {
|
||||
var value = a1;
|
||||
var value2 = a2;
|
||||
var value3 = a3;
|
||||
var value4 = null;
|
||||
this.native.append(a0, value4 != value3 ? value3 : global.Date.now(), value4 != value2 ? value2 : value4,
|
||||
value4 != value ? value : value4, this.channels);
|
||||
}}, {key: 'snapshot', value: function(a0, a1, a2) {
|
||||
return this.native.snapshot(this.channels, a0, a1, a2);
|
||||
}}, {key: 'clearAll', value: function() {
|
||||
this.native.clear();
|
||||
}}]);
|
||||
}
|
||||
|
||||
function BaseTelemetryChannel(a0, a1) { // fn#97976, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13029:139, offset: 0x02197f7c, size: 45 bytes, params: 3, frame: 13
|
||||
env1_0(this, BaseTelemetryChannel);
|
||||
this.native = a0;
|
||||
this.channels = a1;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,425 @@
|
||||
/* Metro module 12838; source: modules/telemetry_ring/native/channels/BaseTelemetryExportChannel.tsx; dependencies: [5, 6, 7, 15, 17, 18, 3, 587, 12839, 2] */
|
||||
function _fun97942(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97942, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:6, offset: 0x021974ba, size: 226 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
let value = importDefault(12839) /* metro dependency 12839: BaseTelemetryChannel */;
|
||||
value = _fun97946(value);
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/channels/BaseTelemetryExportChannel.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_97943() { // fn#97943, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:158, offset: 0x0219759c, 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_97943_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun97946(a0) { // fn#97946, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:357, offset: 0x021975fe, size: 483 bytes, params: 2, frame: 17
|
||||
const closure = BaseTelemetryExportChannel;
|
||||
env0_8(closure, a0);
|
||||
const binding = env0_5;
|
||||
const items2 = [{key: 'getIntervalMs', value: function() {
|
||||
return 500;
|
||||
}}];
|
||||
items2[1] = {key: 'getExportBatchSize', value: function() {
|
||||
return null;
|
||||
}};
|
||||
items2[2] = {key: 'initialize', value: function() {
|
||||
if (!this._initialized) {
|
||||
this._initialized = true;
|
||||
}
|
||||
}};
|
||||
items2[3] = {key: 'reset', value: function() {
|
||||
var _inflight;
|
||||
var env0_0 = this;
|
||||
this.stop();
|
||||
if (!this._resetting) {
|
||||
this._resetting = true;
|
||||
this._clearAckedEndOffset();
|
||||
_inflight = this._inflight;
|
||||
if (_inflight == null) {
|
||||
this._resetting = false;
|
||||
} else {
|
||||
_inflight.finally(_fun97952);
|
||||
}
|
||||
}
|
||||
}};
|
||||
items2[4] = {key: 'start', value: function() {
|
||||
var env0_0 = this;
|
||||
if (this.shouldRun() && this._timer == null) {
|
||||
this._kick({'mode': 'backlog', 'flush': false});
|
||||
this._timer = global.setInterval(_fun97954, this.getIntervalMs());
|
||||
}
|
||||
}};
|
||||
items2[5] = {key: 'stop', value: function() {
|
||||
if (this._timer != null) {
|
||||
global.clearInterval(this._timer);
|
||||
this._timer = null;
|
||||
}
|
||||
}};
|
||||
const binding2 = env0_3;
|
||||
var env0_3 = binding2(_fun97957);
|
||||
items2[6] = {key: 'flushNow', value: value_97958};
|
||||
items2[7] = {key: '_readAckedEndOffset', value: value_97959};
|
||||
items2[8] = {key: '_writeAckedEndOffset', value: value_97960};
|
||||
items2[9] = {key: '_clearAckedEndOffset', value: function() {
|
||||
var Storage = require(dependencyMap[7]).Storage;
|
||||
Storage.remove(this.getAckedEndOffsetStorageKey());
|
||||
}};
|
||||
items2[10] = {key: '_kick', value: function(a0) {
|
||||
var r0;
|
||||
var value;
|
||||
var env0_0 = this;
|
||||
if (this.shouldRun()) {
|
||||
if (this._inflight == null) {
|
||||
value = this._drainOnce(a0);
|
||||
value = value.catch(_fun97963);
|
||||
this._inflight = value.finally(_fun97964);
|
||||
}
|
||||
r0 = this._inflight;
|
||||
} else {
|
||||
r0 = global.Promise.resolve();
|
||||
}
|
||||
return r0;
|
||||
}};
|
||||
const env0_2 = binding2(_fun97966);
|
||||
items2[11] = {key: '_drainOnce', value: value_97967};
|
||||
const env0_1 = binding2(_fun97969);
|
||||
items2[12] = {key: '_collectPages', value: value_97970};
|
||||
let env0_0 = binding2(_fun97972);
|
||||
items2[13] = {key: '_exportPages', value: value_97973};
|
||||
return binding(closure, items2);
|
||||
}
|
||||
|
||||
function BaseTelemetryExportChannel(a0) { // fn#97947, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:369, offset: 0x021977e1, size: 206 bytes, params: 2, frame: 20
|
||||
var r0;
|
||||
var Reflect;
|
||||
let value = copyRestArgs(0, undefined);
|
||||
let binding = env1_4;
|
||||
binding(this, BaseTelemetryExportChannel);
|
||||
const items2 = [];
|
||||
arraySpread(items2, value, 0, items2);
|
||||
value = env1_7(BaseTelemetryExportChannel);
|
||||
binding = env1_6;
|
||||
if (_isNativeReflectConstruct_97943()) {
|
||||
Reflect = global.Reflect;
|
||||
value = Reflect.construct(value, items2, env1_7(this).constructor);
|
||||
r0 = value;
|
||||
} else {
|
||||
value = value.apply(this, items2);
|
||||
r0 = value;
|
||||
}
|
||||
value = binding(this, r0);
|
||||
value._initialized = false;
|
||||
value._timer = null;
|
||||
value._inflight = null;
|
||||
value._resetting = false;
|
||||
const defaultImport = importDefault(3) /* metro dependency 3: Logger */;
|
||||
const value4 = Object.create(defaultImport.prototype, {constructor: {value: defaultImport}});
|
||||
const defaultImport2 = new defaultImport('TelemetryRing');
|
||||
value._logger = defaultImport2 instanceof Object ? defaultImport2 : value4;
|
||||
return value;
|
||||
}
|
||||
|
||||
function value_97951() { // fn#97951, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:1015, offset: 0x021978cf, size: 92 bytes, params: 1, frame: 12
|
||||
var _inflight;
|
||||
this.stop();
|
||||
if (!this._resetting) {
|
||||
this._resetting = true;
|
||||
this._clearAckedEndOffset();
|
||||
_inflight = this._inflight;
|
||||
if (_inflight == null) {
|
||||
this._resetting = false;
|
||||
} else {
|
||||
_inflight.finally(_fun97952);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_97953() { // fn#97953, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:1214, offset: 0x0219793e, size: 107 bytes, params: 1, frame: 14
|
||||
if (this.shouldRun() && this._timer == null) {
|
||||
this._kick({'mode': 'backlog', 'flush': false});
|
||||
this._timer = global.setInterval(_fun97954, this.getIntervalMs());
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun97957() { // fn#97957, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:1517, offset: 0x02197a04, size: 69 bytes, params: 1, frame: 12
|
||||
if (true) {
|
||||
if (this.shouldRun()) {
|
||||
yield this._kick({'mode': 'stream', 'flush': true});
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function value_97959() { // fn#97959, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:1682, offset: 0x02197a49, size: 104 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
const get = Storage.get;
|
||||
const getAckedEndOffsetStorageKey = this.getAckedEndOffsetStorageKey;
|
||||
value = Reflect.apply(get, Storage, [Reflect.apply(getAckedEndOffsetStorageKey, this, [])]);
|
||||
const value2 = -1;
|
||||
return typeof value !== 'number' ? value2 : global.Number.isFinite(value) ? value : value2;
|
||||
}
|
||||
|
||||
function value_97960(a0) { // fn#97960, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:1841, offset: 0x02197ab1, size: 60 bytes, params: 2, frame: 14
|
||||
const value = environment.__proto__;
|
||||
const Storage = (require(587) /* metro dependency 587: Storage */).Storage;
|
||||
Storage.set(this.getAckedEndOffsetStorageKey(), a0);
|
||||
}
|
||||
|
||||
function value_97962(a0) { // fn#97962, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:2038, offset: 0x02197b26, size: 119 bytes, params: 2, frame: 14
|
||||
var r0;
|
||||
var value;
|
||||
var _inflight;
|
||||
if (this.shouldRun()) {
|
||||
_inflight = this._inflight;
|
||||
if (_inflight == null) {
|
||||
value = this._drainOnce(a0);
|
||||
value = value.catch(_fun97963);
|
||||
this._inflight = value.finally(_fun97964);
|
||||
}
|
||||
_inflight = this._inflight;
|
||||
r0 = _inflight;
|
||||
} else {
|
||||
r0 = global.Promise.resolve();
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function* _fun97966({mode, flush}) { // fn#97966, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:2301, offset: 0x02197be0, size: 218 bytes, params: 2, frame: 19
|
||||
var maxReturnedEndOffset;
|
||||
if (true) {
|
||||
value = this.getBudget(mode);
|
||||
var value3 = this._readAckedEndOffset();
|
||||
var r4 = value3 >= 0 ? value3 : undefined;
|
||||
yield this._collectPages(value, r4);
|
||||
value = undefined;
|
||||
if (false) {
|
||||
return value;
|
||||
}
|
||||
if (value.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
yield this._exportPages(value, flush);
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
if (undefined) {
|
||||
maxReturnedEndOffset = value[0].maxReturnedEndOffset;
|
||||
if (!this._resetting) {
|
||||
r4 = typeof maxReturnedEndOffset === 'number' && global.Number.isFinite(maxReturnedEndOffset);
|
||||
r4 = r4 && maxReturnedEndOffset >= 0;
|
||||
if (r4) {
|
||||
this._writeAckedEndOffset(maxReturnedEndOffset);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun97969(a0, a1) { // fn#97969, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:2692, offset: 0x02197cc5, size: 168 bytes, params: 3, frame: 22
|
||||
var snapshot;
|
||||
var value3;
|
||||
var Array;
|
||||
var isArray;
|
||||
var entries;
|
||||
var length;
|
||||
var push;
|
||||
var maxReturnedEndOffset;
|
||||
var hasMore;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const items2 = [];
|
||||
let nextBeforeOffset = -1;
|
||||
reducibleLoop2: while (true) {
|
||||
snapshot = this.snapshot;
|
||||
yield Reflect.apply(snapshot, this, [nextBeforeOffset, a0, a1]);
|
||||
value = undefined;
|
||||
value3 = false;
|
||||
if (value3) {
|
||||
return value;
|
||||
}
|
||||
Array = global.Array;
|
||||
isArray = Array.isArray;
|
||||
entries = value.entries;
|
||||
if (!Reflect.apply(isArray, Array, [entries])) {
|
||||
return items2;
|
||||
}
|
||||
entries = value.entries;
|
||||
length = entries.length;
|
||||
if (length === 0) {
|
||||
return items2;
|
||||
}
|
||||
push = items2.push;
|
||||
entries = value.entries;
|
||||
maxReturnedEndOffset = value.maxReturnedEndOffset;
|
||||
nextBeforeOffset = value.nextBeforeOffset;
|
||||
Reflect.apply(push, items2, [{entries: entries, maxReturnedEndOffset: maxReturnedEndOffset,
|
||||
nextBeforeOffset: nextBeforeOffset}]);
|
||||
nextBeforeOffset = value.nextBeforeOffset;
|
||||
hasMore = value.hasMore;
|
||||
if (!hasMore) {
|
||||
return items2;
|
||||
}
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
}
|
||||
|
||||
function* _fun97972(a0, a1) { // fn#97972, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:3064, offset: 0x02197d78, size: 281 bytes, params: 3, frame: 32
|
||||
var r8;
|
||||
var r16;
|
||||
var r14;
|
||||
var r18;
|
||||
var r1;
|
||||
var property;
|
||||
var entries;
|
||||
var value7;
|
||||
var Math;
|
||||
var min;
|
||||
var value8;
|
||||
var value9;
|
||||
var slice;
|
||||
var value10;
|
||||
var value11;
|
||||
var exportEntries;
|
||||
var value12;
|
||||
var value13;
|
||||
var value14;
|
||||
var value15;
|
||||
const value = a1;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const exportBatchSize = this.getExportBatchSize();
|
||||
let length = a0.length;
|
||||
const value5 = length - 1;
|
||||
const value6 = 0;
|
||||
if (value5 >= value6) {
|
||||
r8 = value5;
|
||||
reducibleLoop2: while (true) {
|
||||
property = a0[r8];
|
||||
reducibleJoin5: while (true) {
|
||||
reducibleJoin4: while (true) {
|
||||
if (exportBatchSize == null) {
|
||||
break reducibleJoin4;
|
||||
}
|
||||
if (exportBatchSize > value6) {
|
||||
r16 = exportBatchSize;
|
||||
break reducibleJoin5;
|
||||
}
|
||||
break reducibleJoin4;
|
||||
}
|
||||
entries = property.entries;
|
||||
length = entries.length;
|
||||
r16 = length;
|
||||
break reducibleJoin5;
|
||||
}
|
||||
entries = property.entries;
|
||||
length = entries.length;
|
||||
value7 = value6 === r8;
|
||||
if (value6 < length) {
|
||||
r14 = value6;
|
||||
reducibleLoop6: while (true) {
|
||||
Math = global.Math;
|
||||
min = Math.min;
|
||||
value8 = r14 + r16;
|
||||
entries = property.entries;
|
||||
length = entries.length;
|
||||
value9 = Reflect.apply(min, Math, [value8, length]);
|
||||
entries = property.entries;
|
||||
slice = entries.slice;
|
||||
value10 = Reflect.apply(slice, entries, [r14, value9]);
|
||||
reducibleJoin8: while (true) {
|
||||
if (value7) {
|
||||
entries = property.entries;
|
||||
length = entries.length;
|
||||
value11 = value9 === length;
|
||||
r18 = value11;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
r18 = value7;
|
||||
break reducibleJoin8;
|
||||
}
|
||||
exportEntries = this.exportEntries;
|
||||
r1 = value && r18;
|
||||
yield Reflect.apply(exportEntries, this, [value10, r1]);
|
||||
value12 = undefined;
|
||||
value13 = false;
|
||||
if (value13) {
|
||||
return value12;
|
||||
}
|
||||
if (!value12) {
|
||||
return false;
|
||||
}
|
||||
value14 = r14 + r16;
|
||||
entries = property.entries;
|
||||
length = entries.length;
|
||||
if (value14 < length) {
|
||||
r14 = value14;
|
||||
continue reducibleLoop6;
|
||||
}
|
||||
break reducibleLoop6;
|
||||
}
|
||||
}
|
||||
value15 = typeof r8 === 'bigint' ? r8 - 1n : +r8 - 1;
|
||||
if (!(value15 >= value6)) {
|
||||
return true;
|
||||
}
|
||||
r8 = value15;
|
||||
continue reducibleLoop2;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function _fun97952() { // fn#97952, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:1165, offset: 0x0219792b, size: 19 bytes, params: 1, frame: 2
|
||||
env0_0._resetting = false;
|
||||
}
|
||||
|
||||
function _fun97954() { // fn#97954, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:1326, offset: 0x021979a9, size: 34 bytes, params: 1, frame: 11
|
||||
return env0_0._kick({'mode': 'stream', 'flush': false});
|
||||
}
|
||||
|
||||
function _fun97963(a0) { // fn#97963, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:2139, offset: 0x02197b9d, size: 37 bytes, params: 2, frame: 13
|
||||
env0_0._logger.warn('TelemetryRing export failed', a0);
|
||||
}
|
||||
|
||||
function _fun97964() { // fn#97964, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13028:2206, offset: 0x02197bc2, size: 19 bytes, params: 1, frame: 2
|
||||
env0_0._inflight = null;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/* Metro module 12841; source: modules/telemetry_ring/native/channels/NormalTelemetry.tsx; dependencies: [7, 6, 15, 17, 18, 12833, 12839, 2] */
|
||||
function _fun97987(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97987, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13031:6, offset: 0x021982b6, size: 230 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
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 = importDefault(12839) /* metro dependency 12839: BaseTelemetryChannel */;
|
||||
value = _fun97991(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/channels/NormalTelemetry.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_97988() { // fn#97988, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13031:148, offset: 0x0219839c, 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_97988_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun97991(a0) { // fn#97991, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13031:351, offset: 0x021983fe, size: 42 bytes, params: 2, frame: 14
|
||||
const closure = NormalTelemetryImpl;
|
||||
env0_7(closure, a0);
|
||||
return env0_3(closure);
|
||||
}
|
||||
|
||||
function NormalTelemetryImpl() { // fn#97992, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13031:363, offset: 0x02198428, size: 169 bytes, params: 1, frame: 19
|
||||
const value = environment.__proto__;
|
||||
env1_4(this, NormalTelemetryImpl);
|
||||
const items2 = [importDefault(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */];
|
||||
const TelemetryChannel = (require(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */).TelemetryChannel;
|
||||
const NORMAL = TelemetryChannel.NORMAL;
|
||||
items2[1] = [NORMAL];
|
||||
const value3 = env1_6(NormalTelemetryImpl);
|
||||
return env1_5(this, _isNativeReflectConstruct_97988() ? global.Reflect.construct(value3, items2,
|
||||
env1_6(this).constructor) : value3.apply(this, items2));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
/* Metro module 12840; source: modules/telemetry_ring/native/channels/SentryTelemetry.tsx; dependencies: [6, 7, 15, 17, 18, 12833, 12839, 2] */
|
||||
function _fun97980(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97980, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13030:6, offset: 0x0219804b, size: 248 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 */;
|
||||
const env0_8 = {'type': 'BYTES', 'limit': 1048576};
|
||||
let value = importDefault(12839) /* metro dependency 12839: BaseTelemetryChannel */;
|
||||
value = _fun97984(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/channels/SentryTelemetry.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_97981() { // fn#97981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13030:148, offset: 0x02198143, 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_97981_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun97984(a0) { // fn#97984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13030:382, offset: 0x021981a5, size: 74 bytes, params: 2, frame: 15
|
||||
const closure = SentryTelemetryImpl;
|
||||
env0_7(closure, a0);
|
||||
return env0_4(closure, [{key: 'snapshotForBreadcrumbs', value: value_97986}]);
|
||||
}
|
||||
|
||||
function SentryTelemetryImpl() { // fn#97985, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13030:394, offset: 0x021981ef, size: 169 bytes, params: 1, frame: 19
|
||||
const value = environment.__proto__;
|
||||
env1_3(this, SentryTelemetryImpl);
|
||||
const items2 = [importDefault(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */];
|
||||
const TelemetryChannel = (require(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */).TelemetryChannel;
|
||||
const SENTRY = TelemetryChannel.SENTRY;
|
||||
items2[1] = [SENTRY];
|
||||
const value3 = env1_6(SentryTelemetryImpl);
|
||||
return env1_5(this, _isNativeReflectConstruct_97981() ? global.Reflect.construct(value3, items2,
|
||||
env1_6(this).constructor) : value3.apply(this, items2));
|
||||
}
|
||||
|
||||
function value_97986() { // fn#97986, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13030:753, offset: 0x02198298, size: 30 bytes, params: 1, frame: 13
|
||||
return this.snapshot(-1, env1_8);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,516 @@
|
||||
/* Metro module 12837; source: modules/telemetry_ring/native/channels/ZoomedInAnalyticBuilder.tsx; dependencies: [661, 5256, 12496, 12392, 2] */
|
||||
function _fun97919(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:6, offset: 0x02196734, size: 445 bytes, params: 8, frame: 19
|
||||
var object2;
|
||||
const env0_0 = require;
|
||||
const coerceNumber = function(a0) {
|
||||
var value = a0;
|
||||
var value2 = null;
|
||||
return typeof value !== 'number' ? value2 : global.Number.isFinite(value) ? value : value2;
|
||||
};
|
||||
const coerceString = function(a0) {
|
||||
var value = a0;
|
||||
return typeof value !== 'string' ? null : value;
|
||||
};
|
||||
const coerceNumberFromUnknown = function(a0) {
|
||||
var value = typeof a0;
|
||||
if (value === 'number') {
|
||||
if (global.Number.isFinite(a0)) {
|
||||
return a0;
|
||||
}
|
||||
}
|
||||
if (value === 'string') {
|
||||
value = a0.trim();
|
||||
if (value !== '') {
|
||||
value = (0, global.Number)(a0);
|
||||
return global.Number.isFinite(value) ? value : null;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const AnalyticEvents = (require(661) /* metro dependency 661: Constants */).AnalyticEvents;
|
||||
object2 = {Gateway: 'gateway', RtcControl: 'rtc_control', RemoteAuth: 'remote_auth', Spotify: 'spotify', Rpc: 'rpc',
|
||||
GameServerPing: 'game_server_ping'};
|
||||
object2 = {};
|
||||
const DEVICE_EVENT = AnalyticEvents.DEVICE_EVENT;
|
||||
object2[DEVICE_EVENT] = function(a0) {
|
||||
return convertDeviceEventBreadcrumb(a0);
|
||||
};
|
||||
const REACT_SOFT_EXCEPTION = AnalyticEvents.REACT_SOFT_EXCEPTION;
|
||||
object2[REACT_SOFT_EXCEPTION] = _fun97933;
|
||||
const NETWORK_CAPABILITIES_CHANGED = AnalyticEvents.NETWORK_CAPABILITIES_CHANGED;
|
||||
object2[NETWORK_CAPABILITIES_CHANGED] = _fun97934;
|
||||
const FOREGROUND_SERVICE = AnalyticEvents.FOREGROUND_SERVICE;
|
||||
object2[FOREGROUND_SERVICE] = _fun97935;
|
||||
const APP_LIFECYCLE = AnalyticEvents.APP_LIFECYCLE;
|
||||
object2[APP_LIFECYCLE] = _fun97936;
|
||||
const UI_LIFECYCLE = AnalyticEvents.UI_LIFECYCLE;
|
||||
object2[UI_LIFECYCLE] = _fun97937;
|
||||
object2 = {};
|
||||
const TOUCH_EVENT = AnalyticEvents.TOUCH_EVENT;
|
||||
object2[TOUCH_EVENT] = _fun97938;
|
||||
const HTTP_REQUEST = AnalyticEvents.HTTP_REQUEST;
|
||||
object2[HTTP_REQUEST] = _fun97939;
|
||||
const WEBSOCKET_MESSAGE_RECEIVED = AnalyticEvents.WEBSOCKET_MESSAGE_RECEIVED;
|
||||
object2[WEBSOCKET_MESSAGE_RECEIVED] = function(a0) {
|
||||
return buildWebsocketMessageProps(a0);
|
||||
};
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/channels/ZoomedInAnalyticBuilder.tsx');
|
||||
exports.buildZoomedInAnalyticsEvent = buildZoomedInAnalyticsEvent;
|
||||
}
|
||||
|
||||
function convertDeviceEventBreadcrumb(a0) { // fn#97920, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:294, offset: 0x021968f1, size: 148 bytes, params: 2, frame: 16
|
||||
const data = a0.data;
|
||||
if (data == null) {
|
||||
return null;
|
||||
}
|
||||
let Object = global.Object;
|
||||
if (Object.keys(data).length === 0) {
|
||||
return null;
|
||||
}
|
||||
return {action: coerceString(data.action) ?? coerceString(a0.message),
|
||||
description: coerceString(a0.message) ?? coerceString(data.description), metadata: ((a0) => {
|
||||
var r0;
|
||||
var Object = global.Object;
|
||||
var value = Object.entries(a0);
|
||||
value = value.filter(_fun97922);
|
||||
if (value.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value = value.map(_fun97923);
|
||||
value = value.join(', ');
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
})(data)};
|
||||
}
|
||||
|
||||
function resolveSocketKind(a0, a1) { // fn#97924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:730, offset: 0x02196a3b, size: 398 bytes, params: 3, frame: 17
|
||||
var r4;
|
||||
var r0;
|
||||
var value4;
|
||||
const value2 = coerceString(a0.socket_kind);
|
||||
const value3 = null;
|
||||
if (value3 != value2) {
|
||||
r0 = value2;
|
||||
} else {
|
||||
if (value3 == a1) {
|
||||
r4 = value3;
|
||||
} else {
|
||||
value4 = a1.toLowerCase();
|
||||
r4 = value4.includes('gateway') ? env0_3.Gateway : value4.includes('discord.media') ? env0_3.RtcControl : value4.includes('remote-auth') ? env0_3.RemoteAuth : value4.includes('spotify') ? env0_3.Spotify : value4.includes('rtc') ? env0_3.RtcControl : value4.includes('127.0.0.1') || value4.includes('localhost') ? env0_3.Rpc : value4.includes('game') && value4.includes('ping') ? env0_3.GameServerPing : value3;
|
||||
}
|
||||
r0 = r4;
|
||||
}
|
||||
r0 = value3 == r0 ? value3 != a0.cmd || value3 != a0.evt ? env0_3.Rpc : value3 != a0.t || value3 != a0.s ? env0_3.Gateway : value3 : r0;
|
||||
return r0;
|
||||
}
|
||||
|
||||
function buildSocketMessageIdentity(a0, a1) { // fn#97925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:1329, offset: 0x02196bc9, size: 463 bytes, params: 3, frame: 22
|
||||
var r6;
|
||||
var r2;
|
||||
var r0;
|
||||
var op;
|
||||
var coerceNumberFromUnknownBinding;
|
||||
var value5;
|
||||
var property;
|
||||
var value6;
|
||||
var value;
|
||||
let coerceStringBinding = coerceString;
|
||||
const t = a0.t;
|
||||
const value2 = null;
|
||||
let r4 = value2 != t ? t : a0.type;
|
||||
r4 = value2 == r4 ? a0.evt : r4;
|
||||
const value3 = coerceStringBinding(r4);
|
||||
const Gateway = env0_3.Gateway;
|
||||
if (a1 === Gateway) {
|
||||
op = a0.op;
|
||||
value6 = coerceNumberFromUnknown(op);
|
||||
if (value2 == value6) {
|
||||
r4 = value2;
|
||||
} else {
|
||||
property = (require(12496) /* metro dependency 12496: GatewaySocketOpcode */).Opcode[value6];
|
||||
r4 = typeof property !== 'string' ? value2 : property;
|
||||
}
|
||||
if (value2 != r4) {
|
||||
return r4 !== 'DISPATCH' || value2 == value3 ? r4 : '' + r4 + '/' + value3;
|
||||
}
|
||||
coerceNumberFromUnknownBinding = coerceNumberFromUnknown;
|
||||
op = a0.op;
|
||||
value = coerceNumberFromUnknownBinding(op);
|
||||
if (value2 == value) {
|
||||
r0 = value3;
|
||||
} else {
|
||||
if (value2 != value3) {
|
||||
value = '' + value + '/' + value3;
|
||||
r2 = value;
|
||||
} else {
|
||||
value = global.String(value);
|
||||
r2 = value;
|
||||
}
|
||||
r0 = r2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
const RtcControl = env0_3.RtcControl;
|
||||
if (a1 === RtcControl) {
|
||||
op = a0.op;
|
||||
value5 = coerceNumberFromUnknown(op);
|
||||
if (value2 == value5) {
|
||||
r4 = value2;
|
||||
} else {
|
||||
property = (require(12392) /* metro dependency 12392: RTCControlSocket */).RTCSocketOpcode[value5];
|
||||
r4 = typeof property !== 'string' ? value2 : property;
|
||||
}
|
||||
if (value2 != r4) {
|
||||
return r4;
|
||||
}
|
||||
coerceNumberFromUnknownBinding = coerceNumberFromUnknown;
|
||||
op = a0.op;
|
||||
value = coerceNumberFromUnknownBinding(op);
|
||||
if (value2 != value) {
|
||||
value = global.String(value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value2;
|
||||
}
|
||||
return r6;
|
||||
}
|
||||
coerceStringBinding = coerceString;
|
||||
value = coerceStringBinding(a0.cmd);
|
||||
const value4 = coerceStringBinding(a0.evt);
|
||||
return value2 == value ? value3 : value2 == value4 ? value : '' + value + '/' + value4;
|
||||
}
|
||||
|
||||
function buildWebsocketMessageProps({data}) { // fn#97926, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:2098, offset: 0x02196d98, size: 141 bytes, params: 2, frame: 17
|
||||
if (data == null) {
|
||||
return {message_identity: 'unknown', socket_kind: undefined};
|
||||
}
|
||||
const coerceStringBinding = coerceString;
|
||||
const value2 = coerceStringBinding(data.url);
|
||||
const socketKind = resolveSocketKind(data, value2);
|
||||
let r3 = coerceStringBinding(data.message_identity) ?? buildSocketMessageIdentity(data, socketKind);
|
||||
r3 = r3 ?? buildLegacyMessageIdentity(data);
|
||||
return {message_identity: r3 ?? value2 ?? 'unknown', socket_kind: socketKind};
|
||||
}
|
||||
|
||||
function _fun97933({data}) { // fn#97933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:3043, offset: 0x02196f45, size: 117 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var object2;
|
||||
var coerceStringBinding;
|
||||
if (data == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
object2 = {};
|
||||
object2.error_message = coerceString(data.error_message) ?? coerceString(data.message) ?? undefined;
|
||||
coerceStringBinding = coerceString;
|
||||
object2.component = coerceStringBinding(data.component);
|
||||
object2.stacktrace = coerceStringBinding(data.stacktrace);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun97934({data}) { // fn#97934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:3293, offset: 0x02196fba, size: 131 bytes, params: 2, frame: 16
|
||||
var vpn_active;
|
||||
var r0;
|
||||
var object2;
|
||||
var coerceStringBinding;
|
||||
var coerceNumberBinding;
|
||||
if (data == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
object2 = {};
|
||||
coerceStringBinding = coerceString;
|
||||
object2.action = coerceStringBinding(data.action);
|
||||
object2.network_type = coerceStringBinding(data.network_type);
|
||||
coerceNumberBinding = coerceNumber;
|
||||
object2.upload_bandwidth = coerceNumberBinding(data.upload_bandwidth);
|
||||
object2.download_bandwidth = coerceNumberBinding(data.download_bandwidth);
|
||||
vpn_active = data.vpn_active;
|
||||
vpn_active = typeof vpn_active !== 'boolean' ? null : data.vpn_active;
|
||||
object2.vpn_active = vpn_active;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun97935(a0) { // fn#97935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:3643, offset: 0x0219703d, size: 188 bytes, params: 2, frame: 17
|
||||
var guard_allowed;
|
||||
var r0;
|
||||
var object2;
|
||||
var coerceStringBinding;
|
||||
var value3;
|
||||
const data = a0.data;
|
||||
const value = null;
|
||||
if (value == data) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
coerceStringBinding = coerceString;
|
||||
object2.service_name = coerceStringBinding(data.service_name);
|
||||
object2.action = coerceStringBinding(data.action);
|
||||
value3 = coerceStringBinding(data.detail);
|
||||
object2.detail = value != value3 ? value3 : coerceString(a0.message);
|
||||
coerceStringBinding = coerceString;
|
||||
object2.fgs_operation = coerceStringBinding(data.fgs_operation);
|
||||
object2.fgs_configuration_type = coerceStringBinding(data.fgs_configuration_type);
|
||||
guard_allowed = data.guard_allowed;
|
||||
guard_allowed = typeof guard_allowed !== 'boolean' ? value : data.guard_allowed;
|
||||
object2.guard_allowed = guard_allowed;
|
||||
object2.fgs_guard_reason = coerceString(data.fgs_guard_reason);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun97936(a0) { // fn#97936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:4108, offset: 0x021970f9, size: 103 bytes, params: 2, frame: 17
|
||||
var r0;
|
||||
var object2;
|
||||
var coerceStringBinding;
|
||||
var value3;
|
||||
const data = a0.data;
|
||||
const value = null;
|
||||
if (value == data) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
value3 = coerceString(data.state);
|
||||
object2.state = value != value3 ? value3 : coerceString(a0.message);
|
||||
coerceStringBinding = coerceString;
|
||||
object2.previous_state = coerceStringBinding(data.previous_state);
|
||||
object2.details = coerceStringBinding(data.details);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun97937({data}) { // fn#97937, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:4346, offset: 0x02197160, size: 169 bytes, params: 2, frame: 17
|
||||
var r2;
|
||||
var r0;
|
||||
var object2;
|
||||
var value3;
|
||||
var value5;
|
||||
var value7;
|
||||
const value = null;
|
||||
if (value == data) {
|
||||
r0 = value;
|
||||
} else {
|
||||
object2 = {};
|
||||
value3 = coerceString(data.activity_name);
|
||||
r2 = value != value3 ? value3 : coerceString(data.screen);
|
||||
object2.activity_name = r2;
|
||||
value5 = coerceString(data.stage);
|
||||
r2 = value != value5 ? value5 : coerceString(data.state);
|
||||
object2.stage = r2;
|
||||
value7 = coerceString(data.extra);
|
||||
r2 = value != value7 ? value7 : coerceString(data.details);
|
||||
r2 = value == r2 ? coerceString(data.detail) : r2;
|
||||
object2.extra = r2;
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun97938({data}) { // fn#97938, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:4690, offset: 0x02197209, size: 353 bytes, params: 2, frame: 17
|
||||
var r5;
|
||||
var r0;
|
||||
var coerceStringBinding;
|
||||
var value3;
|
||||
var object2;
|
||||
var coerceNumberBinding;
|
||||
if (data == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value3 = coerceString(data.touch_action_type);
|
||||
r5 = (importDefault(5256) /* metro dependency 5256: ProcessUtilsNative */).getCurrentHermesInstrumentedStatsSummary() ?? null;
|
||||
object2 = {touch_action_type: value3};
|
||||
coerceNumberBinding = coerceNumber;
|
||||
object2.client_timestamp_ms = coerceNumberBinding(data.client_timestamp_ms);
|
||||
object2.screen_x = coerceNumberBinding(data.screen_x);
|
||||
object2.screen_y = coerceNumberBinding(data.screen_y);
|
||||
object2.view_x = coerceNumberBinding(data.view_x);
|
||||
object2.view_y = coerceNumberBinding(data.view_y);
|
||||
object2.total_memory_mb = coerceNumberBinding(data.total_memory_mb);
|
||||
coerceStringBinding = coerceString;
|
||||
object2.memory_breakdown = coerceStringBinding(data.memory_breakdown);
|
||||
object2.hermes_instrumented_stats_summary = r5;
|
||||
object2.view_hierarchy = coerceStringBinding(data.view_hierarchy);
|
||||
object2.gesture = coerceStringBinding(data.gesture);
|
||||
object2.window_name = coerceStringBinding(data.window_name);
|
||||
object2.hit_test_duration_us = coerceNumberBinding(data.hit_test_duration_us);
|
||||
object2.distance = coerceNumberBinding(data.distance);
|
||||
object2.duration_ms = coerceNumberBinding(data.duration_ms);
|
||||
object2.velocity = coerceNumberBinding(data.velocity);
|
||||
object2.scale_factor = coerceNumberBinding(data.scale_factor);
|
||||
r0 = object2;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function _fun97939({data}) { // fn#97939, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:5567, offset: 0x0219736a, size: 196 bytes, params: 2, frame: 17
|
||||
var r7;
|
||||
var r1;
|
||||
var r0;
|
||||
var object2;
|
||||
var coerceNumberBinding;
|
||||
if (data == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
r7 = coerceString(data.url) ?? coerceString(data.uri);
|
||||
r7 = r7 ?? coerceString(data.request_url);
|
||||
if (r7 == null) {
|
||||
r1 = null;
|
||||
} else {
|
||||
object2 = {url: r7, method: coerceString(data.method) ?? coerceString(data.http_method)};
|
||||
coerceNumberBinding = coerceNumber;
|
||||
object2.status_code = coerceNumberBinding(data.status_code);
|
||||
object2.duration_ms = coerceNumberBinding(data.duration_ms);
|
||||
object2.source = coerceString(data.source);
|
||||
r1 = object2;
|
||||
}
|
||||
r0 = r1;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function buildZoomedInAnalyticsEvent(a0) { // fn#97941, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:6155, offset: 0x02197441, size: 121 bytes, params: 2, frame: 15
|
||||
var value3;
|
||||
var value4;
|
||||
let key = a0.key;
|
||||
var value;
|
||||
const value2 = key in env0_4;
|
||||
key = a0.key;
|
||||
if (value2) {
|
||||
value = env0_4[key](a0);
|
||||
value4 = null;
|
||||
return value4 == value ? value4 : {key: key, props: value};
|
||||
}
|
||||
if (key in env0_5) {
|
||||
key = a0.key;
|
||||
value = env0_5[key](a0);
|
||||
value3 = null;
|
||||
return value3 == value ? value3 : {key: key, props: value};
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
function formatDeviceMetadata(a0) { // fn#97921, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:535, owner: convertDeviceEventBreadcrumb.formatDeviceMetadata, offset: 0x02196985, size: 89 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
const Object = global.Object;
|
||||
let value = Object.entries(a0);
|
||||
value = value.filter(function(a0) {
|
||||
var r1;
|
||||
var r2;
|
||||
var r4;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var value = undefined;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value2 = item2 === value;
|
||||
if (value2) {
|
||||
}
|
||||
if (value2) {
|
||||
r1 = item2;
|
||||
r2 = value2;
|
||||
r4 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r4 = value;
|
||||
} else {
|
||||
r1 = item3;
|
||||
r2 = value3;
|
||||
r4 = item;
|
||||
}
|
||||
}
|
||||
if (!r2) {
|
||||
r1.return();
|
||||
}
|
||||
return r4 != null;
|
||||
});
|
||||
if (value.length === 0) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value = value.map(function(a0) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r3;
|
||||
var item3;
|
||||
var value3;
|
||||
var iterator = a0[Symbol.iterator]();
|
||||
var iterator2 = iterator.next;
|
||||
var item2 = Reflect.apply(iterator2, iterator, []);
|
||||
var item = item2.value;
|
||||
item2 = item2.done ? undefined : iterator;
|
||||
var value = undefined;
|
||||
var value2 = item2 === value;
|
||||
var r4 = value2 ? value : item;
|
||||
if (value2) {
|
||||
r0 = item2;
|
||||
r1 = value2;
|
||||
r3 = value;
|
||||
} else {
|
||||
item3 = Reflect.apply(iterator2, item2, []);
|
||||
item = item3.value;
|
||||
item3 = item3.done ? undefined : item2;
|
||||
value3 = item3 === value;
|
||||
if (value3) {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r3 = value;
|
||||
} else {
|
||||
r0 = item3;
|
||||
r1 = value3;
|
||||
r3 = item;
|
||||
}
|
||||
}
|
||||
if (!r1) {
|
||||
r0.return();
|
||||
}
|
||||
return '' + r4 + '=' + r3;
|
||||
});
|
||||
value = value.join(', ');
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function buildLegacyMessageIdentity({category, type, name}) { // fn#97927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13027:2383, owner: buildWebsocketMessageProps.buildLegacyMessageIdentity, offset: 0x02196e25, size: 112 bytes, params: 2, frame: 13
|
||||
var environment;
|
||||
var r0;
|
||||
let value = environment.__proto__;
|
||||
const coerceStringBinding = coerceString;
|
||||
value = coerceStringBinding(category);
|
||||
const value2 = coerceStringBinding(type);
|
||||
const value3 = coerceStringBinding(name);
|
||||
if (value != null) {
|
||||
value = [value, value2, value3].filter(function(a0) {
|
||||
return a0 != null;
|
||||
});
|
||||
value = value.join('/');
|
||||
r0 = value;
|
||||
} else if (value2 != null) {
|
||||
value = [value, value2, value3].filter(_fun97928);
|
||||
value = value.join('/');
|
||||
r0 = value;
|
||||
} else if (value3 == null) {
|
||||
r0 = null;
|
||||
} else {
|
||||
value = [value, value2, value3].filter(_fun97928);
|
||||
value = value.join('/');
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,412 @@
|
||||
/* Metro module 12835; source: modules/telemetry_ring/native/channels/ZoomedInTelemetry.tsx; dependencies: [5, 6, 7, 15, 17, 18, 12836, 12833, 12837, 683, 12838, 2] */
|
||||
function _fun97900(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#97900, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:6, offset: 0x02196035, size: 304 bytes, params: 8, frame: 19
|
||||
const env0_0 = require;
|
||||
const _arrayLikeToArray_97903 = function(a0, a1) {
|
||||
var r0;
|
||||
var r1;
|
||||
var r2;
|
||||
var value3;
|
||||
var length;
|
||||
var value5;
|
||||
var value = undefined;
|
||||
var value2 = value == null;
|
||||
reducibleJoin2: while (true) {
|
||||
if (value2) {
|
||||
r0 = value2;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
value3 = value > a0.length;
|
||||
r0 = value3;
|
||||
break reducibleJoin2;
|
||||
}
|
||||
reducibleJoin4: while (true) {
|
||||
if (r0) {
|
||||
length = a0.length;
|
||||
r1 = length;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
r1 = value;
|
||||
break reducibleJoin4;
|
||||
}
|
||||
value = (0, global.Array)(r1);
|
||||
var value4 = 0;
|
||||
if (value4 < r1) {
|
||||
r2 = value4;
|
||||
reducibleLoop5: while (true) {
|
||||
value[r2] = a0[r2];
|
||||
value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
||||
if (value5 < r1) {
|
||||
r2 = value5;
|
||||
continue reducibleLoop5;
|
||||
}
|
||||
break reducibleLoop5;
|
||||
}
|
||||
}
|
||||
return value;
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
||||
const env0_4 = importDefault(6) /* metro dependency 6 */;
|
||||
const env0_5 = importDefault(7) /* metro dependency 7 */;
|
||||
const env0_6 = importDefault(15) /* metro dependency 15 */;
|
||||
const env0_7 = importDefault(17) /* metro dependency 17 */;
|
||||
const env0_8 = importDefault(18) /* metro dependency 18 */;
|
||||
const env0_9 = {'type': 'ROWS', 'limit': 250};
|
||||
const env0_10 = {'type': 'ROWS', 'limit': 10000};
|
||||
let value = importDefault(12838) /* metro dependency 12838: BaseTelemetryExportChannel */;
|
||||
value = _fun97907(value);
|
||||
value = new value();
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/channels/ZoomedInTelemetry.tsx');
|
||||
exports.default = value;
|
||||
}
|
||||
|
||||
function _createForOfIteratorHelperLoose_97901(a0, a1) { // fn#97901, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:160, offset: 0x02196165, size: 372 bytes, params: 3, frame: 20
|
||||
var r6;
|
||||
var r9;
|
||||
var r5;
|
||||
var value3;
|
||||
var regexp;
|
||||
const env0_0 = a0;
|
||||
const Symbol = global.Symbol;
|
||||
let value = typeof Symbol !== 'undefined';
|
||||
let r1 = value && a0[global.Symbol.iterator];
|
||||
r1 = !r1 ? a0['@@iterator'] : r1;
|
||||
if (r1) {
|
||||
value = r1.call(a0);
|
||||
return value.next.bind(value);
|
||||
}
|
||||
const Array = global.Array;
|
||||
if (Array.isArray(a0)) {
|
||||
if (r1) {
|
||||
}
|
||||
return _fun97902;
|
||||
}
|
||||
value = undefined;
|
||||
if (a0) {
|
||||
if (typeof a0 === 'string') {
|
||||
value = _arrayLikeToArray_97903(a0, value);
|
||||
r5 = value;
|
||||
} else {
|
||||
value3 = ({}).toString.call(a0).slice(8, -1);
|
||||
r6 = value3 === 'Object' && a0.constructor;
|
||||
r9 = r6 ? a0.constructor.name : value3;
|
||||
if (r9 === 'Map') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Set') {
|
||||
r6 = global.Array.from(a0);
|
||||
} else if (r9 === 'Arguments') {
|
||||
value = _arrayLikeToArray_97903(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', '');
|
||||
if (regexp.test(r9)) {
|
||||
value = _arrayLikeToArray_97903(a0, value);
|
||||
r6 = value;
|
||||
} else {
|
||||
r6 = value;
|
||||
}
|
||||
}
|
||||
r5 = r6;
|
||||
}
|
||||
} else {
|
||||
r5 = value;
|
||||
}
|
||||
if (r5) {
|
||||
if (r5) {
|
||||
}
|
||||
return _fun97902;
|
||||
}
|
||||
const TypeError = global.TypeError;
|
||||
throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct_97904() { // fn#97904, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:1070, offset: 0x021962d9, 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_97904_isNativeReflectConstruct = function() {
|
||||
return !!result;
|
||||
})();
|
||||
}
|
||||
|
||||
function _fun97907(a0) { // fn#97907, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:1325, offset: 0x0219633b, size: 198 bytes, params: 2, frame: 17
|
||||
const closure = ZoomedInTelemetryImpl;
|
||||
env0_8(closure, a0);
|
||||
const binding = env0_5;
|
||||
const items2 = [{key: 'shouldRun', value: value_97909}];
|
||||
items2[1] = {key: 'getBudget', value: value_97910};
|
||||
items2[2] = {key: 'getAckedEndOffsetStorageKey', value: function() {
|
||||
return 'telemetry_ring_zoomed_acked_end_offset_v1';
|
||||
}};
|
||||
items2[3] = {key: 'getExportBatchSize', value: function() {
|
||||
return 250;
|
||||
}};
|
||||
const env0_0 = env0_3(_fun97914);
|
||||
items2[4] = {key: 'exportEntries', value: value_97916};
|
||||
return binding(closure, items2);
|
||||
}
|
||||
|
||||
function ZoomedInTelemetryImpl() { // fn#97908, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:1337, offset: 0x02196401, size: 169 bytes, params: 1, frame: 19
|
||||
const value = environment.__proto__;
|
||||
env1_4(this, ZoomedInTelemetryImpl);
|
||||
const items2 = [importDefault(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */];
|
||||
const TelemetryChannel = (require(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */).TelemetryChannel;
|
||||
const ZOOMED = TelemetryChannel.ZOOMED;
|
||||
items2[1] = [ZOOMED];
|
||||
const value3 = env1_7(ZoomedInTelemetryImpl);
|
||||
return env1_6(this, _isNativeReflectConstruct_97904() ? global.Reflect.construct(value3, items2,
|
||||
env1_7(this).constructor) : value3.apply(this, items2));
|
||||
}
|
||||
|
||||
function value_97909() { // fn#97909, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:1694, offset: 0x021964aa, size: 37 bytes, params: 1, frame: 11
|
||||
const value = environment.__proto__;
|
||||
return (require(12836) /* metro dependency 12836: ZoomedInAnalyticsExperiment */).isZoomedExperimentEnabled();
|
||||
}
|
||||
|
||||
function value_97910(a0) { // fn#97910, offset: 0x021964cf, size: 31 bytes, params: 2, frame: 2
|
||||
return a0 === 'backlog' ? env1_10 : env1_9;
|
||||
}
|
||||
|
||||
function* _fun97914(a0, a1) { // fn#97914, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:2045, offset: 0x02196506, size: 265 bytes, params: 3, frame: 23
|
||||
var environment;
|
||||
var r8;
|
||||
var items2;
|
||||
var binding;
|
||||
var value3;
|
||||
var value4;
|
||||
var done;
|
||||
var value5;
|
||||
var binding2;
|
||||
var property;
|
||||
var value6;
|
||||
var buildZoomedInAnalyticsEvent;
|
||||
var zoomedInAnalyticsEvent;
|
||||
var value7;
|
||||
var push;
|
||||
var object2;
|
||||
var key;
|
||||
var props;
|
||||
var value8;
|
||||
var length;
|
||||
var map;
|
||||
var closure;
|
||||
var Promise;
|
||||
var all;
|
||||
var value9;
|
||||
var error;
|
||||
if (false) {
|
||||
return undefined;
|
||||
}
|
||||
const env0_0 = a1;
|
||||
var env0_1;
|
||||
try {
|
||||
items2 = [];
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
env0_1 = items2;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
value = environment.__proto__.__proto__;
|
||||
try {
|
||||
binding = env2_11;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value3 = binding(a0);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value4 = value3();
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
done = value4.done;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
if (!done) {
|
||||
r8 = value4;
|
||||
while (true) {
|
||||
try {
|
||||
value5 = r8.value;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
binding = env2_0;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
binding2 = env2_2;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
property = binding2[8];
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value6 = binding(property);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
buildZoomedInAnalyticsEvent = value6.buildZoomedInAnalyticsEvent;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
zoomedInAnalyticsEvent = Reflect.apply(buildZoomedInAnalyticsEvent, value6, [value5]);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value7 = zoomedInAnalyticsEvent == null;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
if (value7) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
push = items2.push;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
object2 = {};
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
key = zoomedInAnalyticsEvent.key;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
object2.key = key;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
props = zoomedInAnalyticsEvent.props;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
object2.props = props;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
Reflect.apply(push, items2, [object2]);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value8 = value3();
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
done = value8.done;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
if (done) {
|
||||
break;
|
||||
}
|
||||
r8 = value8;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
try {
|
||||
length = items2.length;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value = length === 0;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
if (!value) {
|
||||
try {
|
||||
map = items2.map;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
closure = _fun97915;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(map, items2, [closure]);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
Promise = global.Promise;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
all = Promise.all;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
value = Reflect.apply(all, Promise, [value]);
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
yield value;
|
||||
try {
|
||||
value = undefined;
|
||||
value9 = false;
|
||||
} catch (error) {
|
||||
return false;
|
||||
}
|
||||
if (value9) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function _fun97915({key, props}, a1) { // fn#97915, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13025:2269, offset: 0x0219660f, size: 92 bytes, params: 3, frame: 18
|
||||
const value = environment.__proto__.__proto__.__proto__;
|
||||
return env3_1(env3_2[9]).track(key, props, {flush: require && a1 === env0_1.length - 1});
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/* Metro module 1218; source: modules/telemetry_ring/native/index.tsx; dependencies: [2, 1219, 12835, 12840, 12841, 12836, 12833] */
|
||||
function _fun13566(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#13566, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1345:6, offset: 0x00def065, size: 197 bytes, params: 8, frame: 18
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/telemetry_ring/native/index.tsx');
|
||||
exports.TelemetryRingLifecycle = importDefault(1219) /* metro dependency 1219: TelemetryRingLifecycle */;
|
||||
exports.ZoomedInTelemetry = importDefault(12835) /* metro dependency 12835: ZoomedInTelemetry */;
|
||||
exports.SentryTelemetry = importDefault(12840) /* metro dependency 12840: SentryTelemetry */;
|
||||
exports.NormalTelemetry = importDefault(12841) /* metro dependency 12841: NormalTelemetry */;
|
||||
exports.isZoomedExperimentEnabled = (require(12836) /* metro dependency 12836: ZoomedInAnalyticsExperiment */).isZoomedExperimentEnabled;
|
||||
const TelemetryChannel = (require(12833) /* metro dependency 12833: TelemetryRingNativeAndroid */).TelemetryChannel;
|
||||
exports.TelemetryChannel = TelemetryChannel;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user