193 lines
9.2 KiB
JavaScript
193 lines
9.2 KiB
JavaScript
/* Metro module 6490; source: unknown; dependencies: [6411, 31, 6486, 6487, 6484] */
|
|
import Module06411 from './module-06411.js'; /* Metro dependency 6411 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as Module06486Module from './module-06486.js'; /* Metro dependency 6486 */
|
|
|
|
function _fun51097(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#51097, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:6, offset: 0x012290e0, size: 123 bytes, params: 8, frame: 18
|
|
let env0_0 = require;
|
|
const runScrollBenchmark_51098 = function(a0, a1, a2, a3) {
|
|
return _runScrollBenchmark_51099.apply(this, arguments);
|
|
};
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
let env0_2 = Module06411;
|
|
exports.useFlatListBenchmark = function(a0, a1, a2) {
|
|
var env0_0 = a0;
|
|
var env0_1 = a1;
|
|
var env0_2 = a2;
|
|
useEffect(_fun51104, []);
|
|
return [];
|
|
};
|
|
function _runScrollBenchmark_51099() { // fn#51099, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:214, offset: 0x0122915b, size: 48 bytes, params: 1, frame: 14
|
|
return env0_2(_fun51101).apply(this, arguments);
|
|
function* _fun51101(a0, a1, a2, a3) { // fn#51101, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:275, offset: 0x01229194, size: 222 bytes, params: 5, frame: 26
|
|
var environment;
|
|
var r7;
|
|
var r5;
|
|
var horizontal;
|
|
var value4;
|
|
var scrollNow_511022;
|
|
var binding;
|
|
var value5;
|
|
var autoScroll;
|
|
let value = a1;
|
|
if (true) {
|
|
var env0_0 = a0;
|
|
if (a0.current) {
|
|
horizontal = a0.current.props.horizontal;
|
|
value4 = 0;
|
|
r7 = horizontal ? value : value4;
|
|
r5 = horizontal ? value4 : value;
|
|
scrollNow_511022 = scrollNow_51102;
|
|
value = environment.__proto__.__proto__;
|
|
binding = env2_0;
|
|
value5 = binding(env2_1[2]);
|
|
autoScroll = value5.autoScroll;
|
|
yield Reflect.apply(autoScroll, value5, [scrollNow_511022, value4, value4, r7, r5, a3, a2]);
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
binding = env2_0;
|
|
value = binding(env2_1[2]);
|
|
autoScroll = value.autoScroll;
|
|
yield Reflect.apply(autoScroll, value, [scrollNow_511022, r7, r5, value4, value4, a3, a2]);
|
|
value = undefined;
|
|
return undefined;
|
|
}
|
|
}
|
|
function scrollNow_51102(a0, a1) { // fn#51102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:359, offset: 0x01228054, size: 63 bytes, params: 3, frame: 14
|
|
const value = a0;
|
|
const value2 = a1;
|
|
const current = env0_0.current;
|
|
if (current != null) {
|
|
current.scrollToOffset({offset: horizontal ? value : value2, animated: false});
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function useFlatListBenchmark(a0, a1, a2) { // fn#51103, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:586, offset: 0x01229272, size: 53 bytes, params: 4, frame: 13
|
|
const env0_0 = a0;
|
|
const env0_1 = a1;
|
|
const env0_2 = a2;
|
|
useEffect(_fun51104, []);
|
|
return [];
|
|
function _fun51104() { // fn#51104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:633, offset: 0x012292a7, size: 218 bytes, params: 1, frame: 18
|
|
var environment;
|
|
var startDelayInMs;
|
|
var Number;
|
|
var data;
|
|
var setTimeout;
|
|
let value = environment.__proto__;
|
|
const value2 = undefined;
|
|
const Cancellable = (Module06486Module).Cancellable;
|
|
const cancellable = new Cancellable();
|
|
if (cancellable.current) {
|
|
Number = global.Number;
|
|
data = cancellable.current.props.data;
|
|
if (Number(data == null ? value2 : data.length) > 0) {
|
|
setTimeout = global.setTimeout;
|
|
value = env1_2(_fun51106);
|
|
startDelayInMs = importDefault.startDelayInMs;
|
|
startDelayInMs = !startDelayInMs ? 3000 : startDelayInMs;
|
|
var env0_1 = setTimeout(value, startDelayInMs);
|
|
return _fun51107;
|
|
}
|
|
throw new global.Error('Data is empty, cannot run benchmark');
|
|
}
|
|
setTimeout = global.setTimeout;
|
|
value = env1_2(_fun51106);
|
|
startDelayInMs = importDefault.startDelayInMs;
|
|
startDelayInMs = !startDelayInMs ? 3000 : startDelayInMs;
|
|
var env0_1 = setTimeout(value, startDelayInMs);
|
|
return _fun51107;
|
|
function* _fun51106() { // fn#51106, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:826, offset: 0x0122938a, size: 308 bytes, params: 1, frame: 25
|
|
var r9;
|
|
var r1;
|
|
var r4;
|
|
var binding2;
|
|
var targetOffset;
|
|
var binding3;
|
|
var speedMultiplier;
|
|
var value10;
|
|
var value11;
|
|
var value12;
|
|
var object;
|
|
if (true) {
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
var binding = env3_0;
|
|
var JSFPSMonitor = binding(env3_1[3]).JSFPSMonitor;
|
|
var jSFPSMonitor = new JSFPSMonitor();
|
|
jSFPSMonitor.startTracking();
|
|
var repeatCount = env2_2.repeatCount;
|
|
repeatCount = !repeatCount ? 1 : repeatCount;
|
|
var value7 = 0;
|
|
var value8 = 1;
|
|
if (value7 < repeatCount) {
|
|
r9 = value7;
|
|
while (true) {
|
|
binding = env3_4;
|
|
binding2 = env2_2;
|
|
targetOffset = binding2.targetOffset;
|
|
binding3 = env1_0;
|
|
speedMultiplier = binding2.speedMultiplier;
|
|
r1 = speedMultiplier || value8;
|
|
yield binding(require, targetOffset, binding3, r1);
|
|
value10 = undefined;
|
|
value11 = false;
|
|
if (value11) {
|
|
return value10;
|
|
}
|
|
value12 = typeof r9 === 'bigint' ? r9 + 1n : +r9 + 1;
|
|
repeatCount = env2_2.repeatCount;
|
|
if (repeatCount) {
|
|
r4 = repeatCount;
|
|
continue;
|
|
}
|
|
r4 = value8;
|
|
continue;
|
|
if (value12 < r4) {
|
|
r9 = value12;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
object = {};
|
|
object.js = jSFPSMonitor.stopAndGetData();
|
|
object.suggestions = [];
|
|
binding = env1_0;
|
|
object.interrupted = binding.isCancelled();
|
|
if (!binding.isCancelled()) {
|
|
object.formattedString = env3_0(env3_1[4]).getFormattedString(object);
|
|
}
|
|
dependencyMap(object);
|
|
} else {
|
|
object = {};
|
|
object.js = jSFPSMonitor.stopAndGetData();
|
|
object.suggestions = [];
|
|
binding = env1_0;
|
|
object.interrupted = binding.isCancelled();
|
|
if (!binding.isCancelled()) {
|
|
object.formattedString = env3_0(env3_1[4]).getFormattedString(object);
|
|
}
|
|
dependencyMap(object);
|
|
}
|
|
}
|
|
}
|
|
|
|
function _fun51107() { // fn#51107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6668:1169, offset: 0x012294be, size: 38 bytes, params: 1, frame: 12
|
|
global.clearTimeout(env0_1);
|
|
env0_0.cancel();
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun51097, 6490, [6411, 31, 6486, 6487,
|
|
6484]) /* metro module 6490, dependencies: [6411, 31, 6486, 6487, 6484] */;
|