187 lines
9.4 KiB
JavaScript
187 lines
9.4 KiB
JavaScript
/* Metro module 1063; source: unknown; dependencies: [1048, 1046, 1064, 1052, 1057, 1065, 1061, 1054, 1055] */
|
|
import * as InitMetricModule from './module-01052-initMetric.js'; /* Metro dependency 1052 */
|
|
import * as moduleValue4 from './module-01054-observe.js'; /* Metro dependency 1054 */
|
|
import * as moduleValue5 from './module-01055-bindReporter.js'; /* Metro dependency 1055 */
|
|
import * as moduleValue3 from './module-01057-initUnique.js'; /* Metro dependency 1057 */
|
|
import * as WhenIdleOrHiddenModule from './module-01061-whenIdleOrHidden.js'; /* Metro dependency 1061 */
|
|
import * as Module01064Module from './module-01064.js'; /* Metro dependency 1064 */
|
|
import * as InteractionManagerModule from './module-01065-InteractionManager.js'; /* Metro dependency 1065 */
|
|
|
|
function _fun11140(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11140, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:6, offset: 0x00da1fbc, size: 100 bytes, params: 8, frame: 17
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.INPThresholds = [200, 500];
|
|
exports.onINP = onINP;
|
|
function onINP(a0) { // fn#11141, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:133, offset: 0x00da2020, size: 145 bytes, params: 2, frame: 15
|
|
var object;
|
|
var value;
|
|
const env0_0 = a0;
|
|
if (arguments.length > 1) {
|
|
if (arguments[1] !== undefined) {
|
|
value = arguments[1];
|
|
} else {
|
|
object = {};
|
|
}
|
|
} else {
|
|
object = {};
|
|
}
|
|
const PerformanceEventTiming = global.globalThis.PerformanceEventTiming;
|
|
if (PerformanceEventTiming) {
|
|
if ('interactionId' in global.PerformanceEventTiming.prototype) {
|
|
value = require(1048) /* metro dependency 1048 */;
|
|
var env0_2 = value.getVisibilityWatcher();
|
|
value = require(1046) /* metro dependency 1046 */;
|
|
value.whenActivated(_fun11142);
|
|
}
|
|
}
|
|
function _fun11142() { // fn#11142, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:365, offset: 0x00da20b1, size: 305 bytes, params: 1, frame: 23
|
|
(Module01064Module).initInteractionCountPolyfill();
|
|
const value2 = (InitMetricModule).initMetric('INP');
|
|
const env0_1 = value2;
|
|
const initUnique = moduleValue3.initUnique;
|
|
const binding = env0_1;
|
|
const InteractionManager = (InteractionManagerModule).InteractionManager;
|
|
const env0_2 = Reflect.apply(initUnique, moduleValue3, [binding, InteractionManager]);
|
|
const handleEntries_111432 = handleEntries_11143;
|
|
const value5 = moduleValue4.observe('event', handleEntries_111432,
|
|
{durationThreshold: env0_1.durationThreshold ?? 40});
|
|
const env0_0Binding = moduleValue5.bindReporter(env0_0, value2, env1_2, env0_1.reportAllChanges);
|
|
if (value5) {
|
|
value5.observe({'type': 'first-input', 'buffered': true});
|
|
env0_2.onHidden(_fun11145);
|
|
}
|
|
function handleEntries_11143(a0) { // fn#11143, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:508, offset: 0x00da21e2, size: 52 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__.__proto__;
|
|
(WhenIdleOrHiddenModule).whenIdleOrHidden(_fun11144);
|
|
function _fun11144() { // fn#11144, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:560, offset: 0x00da2216, size: 135 bytes, params: 1, frame: 15
|
|
var binding;
|
|
var _processEntry;
|
|
var error;
|
|
var _estimateP98LongestInteraction;
|
|
var value2;
|
|
var _latency;
|
|
var value3;
|
|
var value4;
|
|
var entries;
|
|
const iterator = env0_0[Symbol.iterator]();
|
|
const iterator2 = iterator.next;
|
|
let r3 = iterator;
|
|
let item2 = Reflect.apply(iterator2, r3, []);
|
|
let item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
reducibleJoin2: while (true) {
|
|
if (item2 === undefined) {
|
|
binding = env1_2;
|
|
_estimateP98LongestInteraction = binding._estimateP98LongestInteraction;
|
|
value2 = Reflect.apply(_estimateP98LongestInteraction, binding, []);
|
|
reducibleJoin8: while (true) {
|
|
if (value2) {
|
|
_latency = value2._latency;
|
|
value3 = env1_1.value;
|
|
value4 = _latency !== value3;
|
|
r3 = value4;
|
|
break reducibleJoin8;
|
|
}
|
|
r3 = value2;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (r3) {
|
|
binding = env1_1;
|
|
_latency = value2._latency;
|
|
binding.value = _latency;
|
|
entries = value2.entries;
|
|
binding.entries = entries;
|
|
env1_0();
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
return undefined;
|
|
}
|
|
break reducibleJoin2;
|
|
}
|
|
reducibleLoop2: while (true) {
|
|
try {
|
|
binding = env1_2;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
_processEntry = binding._processEntry;
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
try {
|
|
Reflect.apply(_processEntry, binding, [item]);
|
|
} catch (error) {
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
}
|
|
r3 = item2;
|
|
item2 = Reflect.apply(iterator2, r3, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r3;
|
|
if (item2 === undefined) {
|
|
break reducibleLoop2;
|
|
}
|
|
continue reducibleLoop2;
|
|
}
|
|
value2 = env1_2._estimateP98LongestInteraction();
|
|
reducibleJoin8: while (true) {
|
|
if (value2) {
|
|
_latency = value2._latency;
|
|
value3 = env1_1.value;
|
|
value4 = _latency !== value3;
|
|
r3 = value4;
|
|
break reducibleJoin8;
|
|
}
|
|
r3 = value2;
|
|
break reducibleJoin8;
|
|
}
|
|
reducibleJoin10: while (true) {
|
|
if (r3) {
|
|
binding = env1_1;
|
|
_latency = value2._latency;
|
|
binding.value = _latency;
|
|
entries = value2.entries;
|
|
binding.entries = entries;
|
|
env1_0();
|
|
break reducibleJoin10;
|
|
}
|
|
break reducibleJoin10;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
function _fun11145() { // fn#11145, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1190:913, offset: 0x00da05d5, size: 41 bytes, params: 1, frame: 12
|
|
handleEntries_11143(env0_4.takeRecords());
|
|
env0_0(true);
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun11140, 1063, [1048, 1046, 1064, 1052, 1057, 1065, 1061, 1054,
|
|
1055]) /* metro module 1063, dependencies: [1048, 1046, 1064, 1052, 1057, 1065, 1061, 1054, 1055] */;
|