250 lines
11 KiB
React
250 lines
11 KiB
React
/* Metro module 1065; source: unknown; dependencies: [6, 7, 1064] */
|
|
function _fun11151(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#11151, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1192:6, offset: 0x00da2426, size: 117 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const env0_2 = require(6) /* metro dependency 6 */;
|
|
const env0_3 = require(7) /* metro dependency 7 */;
|
|
const Object = global.Object;
|
|
const defineProperty = Object.defineProperty;
|
|
const Symbol = global.Symbol;
|
|
Reflect.apply(defineProperty, Object, [exports, Symbol.toStringTag, {value: 'Module'}]);
|
|
exports.InteractionManager = _fun11152();
|
|
}
|
|
|
|
function _fun11152() { // fn#11152, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1192:126, offset: 0x00da249b, size: 151 bytes, params: 1, frame: 15
|
|
return env0_3(InteractionManager, [{key: '__init', value: function() {
|
|
this._longestInteractionList = [];
|
|
}}, {key: '__init2', value: function() {
|
|
var Map = global.Map;
|
|
this._longestInteractionMap = new Map();
|
|
}}, {key: '_resetInteractions', value: function() {
|
|
env1_4 = require(dependencyMap[2]).getInteractionCount();
|
|
this._longestInteractionList.length = 0;
|
|
this._longestInteractionMap.clear();
|
|
}}, {key: '_estimateP98LongestInteraction', value: value_11157}, {key: '_processEntry', value: value_11158}]);
|
|
}
|
|
|
|
function InteractionManager() { // fn#11153, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1192:160, offset: 0x00da2532, size: 69 bytes, params: 1, frame: 14
|
|
env1_2(this, InteractionManager);
|
|
InteractionManager.prototype.__init.call(this);
|
|
InteractionManager.prototype.__init2.call(this);
|
|
}
|
|
|
|
function value_11157() { // fn#11157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1192:679, offset: 0x00da25fb, size: 119 bytes, params: 1, frame: 19
|
|
const Math = global.Math;
|
|
const min = Math.min;
|
|
let value = this._longestInteractionList.length - 1;
|
|
const Math2 = global.Math;
|
|
value = Reflect.apply(min, Math, [value,
|
|
Math2.floor(((require(1064) /* metro dependency 1064 */).getInteractionCount() - env1_4) / 50)]);
|
|
return this._longestInteractionList[value];
|
|
}
|
|
|
|
function value_11158(a0) { // fn#11158, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1192:944, offset: 0x00da2672, size: 470 bytes, params: 2, frame: 18
|
|
var r5;
|
|
var r2;
|
|
var r4;
|
|
var _onBeforeProcessingEntry;
|
|
var call;
|
|
var interactionId;
|
|
var entryType;
|
|
var _longestInteractionList;
|
|
var at;
|
|
var value;
|
|
var _longestInteractionMap;
|
|
var get;
|
|
var value2;
|
|
var length;
|
|
var duration;
|
|
var _latency;
|
|
var object2;
|
|
var set;
|
|
var id;
|
|
var push;
|
|
var startTime;
|
|
var entries;
|
|
var startTime2;
|
|
var sort;
|
|
var splice;
|
|
var iterator;
|
|
var iterator2;
|
|
var item;
|
|
var item2;
|
|
var property;
|
|
var error;
|
|
var _onAfterProcessingINPCandidate;
|
|
exceptionSkip22: while (true) {
|
|
exceptionLanding22: while (true) {
|
|
_onBeforeProcessingEntry = this._onBeforeProcessingEntry;
|
|
reducibleJoin2: while (true) {
|
|
if (_onBeforeProcessingEntry == null) {
|
|
break reducibleJoin2;
|
|
}
|
|
call = _onBeforeProcessingEntry.call;
|
|
Reflect.apply(call, _onBeforeProcessingEntry, [this, a0]);
|
|
break reducibleJoin2;
|
|
}
|
|
interactionId = a0.interactionId;
|
|
reducibleJoin25: while (true) {
|
|
reducibleJoin7: while (true) {
|
|
if (interactionId) {
|
|
_longestInteractionList = this._longestInteractionList;
|
|
value = _longestInteractionList.at(-1);
|
|
_longestInteractionMap = this._longestInteractionMap;
|
|
if (_longestInteractionMap.get(a0.interactionId)) {
|
|
break reducibleJoin7;
|
|
}
|
|
_longestInteractionList = this._longestInteractionList;
|
|
if (_longestInteractionList.length < 10) {
|
|
break reducibleJoin7;
|
|
}
|
|
if (a0.duration > value._latency) {
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin25;
|
|
}
|
|
entryType = a0.entryType;
|
|
if (entryType !== 'first-input') {
|
|
break reducibleJoin25;
|
|
}
|
|
_longestInteractionList = this._longestInteractionList;
|
|
at = _longestInteractionList.at;
|
|
value = Reflect.apply(at, _longestInteractionList, [-1]);
|
|
_longestInteractionMap = this._longestInteractionMap;
|
|
get = _longestInteractionMap.get;
|
|
interactionId = a0.interactionId;
|
|
value2 = Reflect.apply(get, _longestInteractionMap, [interactionId]);
|
|
if (value2) {
|
|
break reducibleJoin7;
|
|
}
|
|
_longestInteractionList = this._longestInteractionList;
|
|
length = _longestInteractionList.length;
|
|
if (length < 10) {
|
|
break reducibleJoin7;
|
|
}
|
|
duration = a0.duration;
|
|
_latency = value._latency;
|
|
if (duration > _latency) {
|
|
break reducibleJoin7;
|
|
}
|
|
break reducibleJoin25;
|
|
}
|
|
if (value2) {
|
|
duration = a0.duration;
|
|
_latency = value2._latency;
|
|
if (duration > _latency) {
|
|
value2.entries = [a0];
|
|
duration = a0.duration;
|
|
value2._latency = duration;
|
|
r2 = value2;
|
|
} else {
|
|
duration = a0.duration;
|
|
_latency = value2._latency;
|
|
value = duration === _latency;
|
|
reducibleJoin12: while (true) {
|
|
if (value) {
|
|
startTime = a0.startTime;
|
|
entries = value2.entries;
|
|
startTime2 = entries[0].startTime;
|
|
value = startTime === startTime2;
|
|
r5 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
r5 = value;
|
|
break reducibleJoin12;
|
|
}
|
|
reducibleJoin15: while (true) {
|
|
if (r5) {
|
|
entries = value2.entries;
|
|
push = entries.push;
|
|
Reflect.apply(push, entries, [a0]);
|
|
r2 = value2;
|
|
break reducibleJoin15;
|
|
}
|
|
r2 = value2;
|
|
break reducibleJoin15;
|
|
}
|
|
}
|
|
} else {
|
|
object2 = {};
|
|
interactionId = a0.interactionId;
|
|
object2.id = interactionId;
|
|
object2.entries = [a0];
|
|
duration = a0.duration;
|
|
object2._latency = duration;
|
|
_longestInteractionMap = this._longestInteractionMap;
|
|
set = _longestInteractionMap.set;
|
|
id = object2.id;
|
|
Reflect.apply(set, _longestInteractionMap, [id, object2]);
|
|
_longestInteractionList = this._longestInteractionList;
|
|
push = _longestInteractionList.push;
|
|
Reflect.apply(push, _longestInteractionList, [object2]);
|
|
r2 = object2;
|
|
}
|
|
_longestInteractionList = this._longestInteractionList;
|
|
sort = _longestInteractionList.sort;
|
|
Reflect.apply(sort, _longestInteractionList, [function(a0, {_latency}) {
|
|
return _latency - a0._latency;
|
|
}]);
|
|
_longestInteractionList = this._longestInteractionList;
|
|
length = _longestInteractionList.length;
|
|
reducibleJoin23: while (true) {
|
|
if (!(length > 10)) {
|
|
break reducibleJoin23;
|
|
}
|
|
_longestInteractionList = this._longestInteractionList;
|
|
splice = _longestInteractionList.splice;
|
|
iterator = Reflect.apply(splice, _longestInteractionList, [10])[Symbol.iterator]();
|
|
iterator2 = iterator.next;
|
|
r4 = iterator;
|
|
reducibleLoop17: while (true) {
|
|
item2 = Reflect.apply(iterator2, r4, []);
|
|
item = item2.value;
|
|
item2 = item2.done ? undefined : r4;
|
|
if (item2 === undefined) {
|
|
break reducibleJoin23;
|
|
}
|
|
try {
|
|
_longestInteractionMap = this._longestInteractionMap;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
property = _longestInteractionMap.delete;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
id = item.id;
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
try {
|
|
Reflect.apply(property, _longestInteractionMap, [id]);
|
|
} catch (error) {
|
|
break exceptionLanding22;
|
|
}
|
|
r4 = item2;
|
|
continue reducibleLoop17;
|
|
}
|
|
}
|
|
_onAfterProcessingINPCandidate = this._onAfterProcessingINPCandidate;
|
|
if (_onAfterProcessingINPCandidate == null) {
|
|
break reducibleJoin25;
|
|
}
|
|
call = _onAfterProcessingINPCandidate.call;
|
|
Reflect.apply(call, _onAfterProcessingINPCandidate, [this, r2]);
|
|
break reducibleJoin25;
|
|
}
|
|
return undefined;
|
|
break exceptionSkip22;
|
|
}
|
|
try {
|
|
item2.return();
|
|
} catch {
|
|
}
|
|
throw error;
|
|
break exceptionSkip22;
|
|
}
|
|
}
|
|
|