/* Metro module 12498; source: modules/gateway/DispatcherWorkConstants.tsx; dependencies: [6, 7, 2] */ import ClassCallCheck from '../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from '../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */ import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ function _fun95202(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#95202, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12688:6, offset: 0x021354d6, size: 244 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const value = _fun95203(); (FileImportTrackerModule).fileFinishedImporting('modules/gateway/DispatcherWorkConstants.tsx'); exports.DISPATCHER_STANDARD_TIMEOUT_MS = 50; exports.DISPATCHER_IDEAL_TIME_LIMIT_MS = 50; exports.DISPATCHER_MIN_DEADLINE_TIME_MS = 2.0833333333333335; exports.DISPATCHER_DEADLINE_OVERHEAD_MS = 3.3333333333333335; exports.NATIVE_WORK_DEADLINE_MS = 5.555555555555556; exports.NATIVE_WORK_BACKOFF_MS = 4.166666666666667; exports.DISPATCHER_LONG_TIMEOUT_MS = 200; exports.MAX_DISPATCHER_TIMEOUT_MS = 1000; exports.MAX_DISPATCHER_FLUSH_DEADLINE_TRIES = 2; exports.DISPATCHER_CALLBACK_MAX_TIME_REMAINING_MS = 50; exports.WorkIdleDeadline = value; function _fun95203() { // fn#95203, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12688:139, offset: 0x021355ca, size: 138 bytes, params: 1, frame: 15 return CreateClass(WorkIdleDeadline, [{key: 'timeRemaining', value: function() { var value = global.performance.now(); value -= this._startMs; return global.Math.max(0, this._deadlineMs - value); }}, {key: 'didTimeout', get: function() { return this._firedDueToMaxTimeout; }}, {key: 'timeSinceExpiration', get: function() { return global.performance.now() - (this._startMs + this._deadlineMs); }}, {key: 'generateDeadlineMetrics', value: function() { var object = {isDeadlineNotIdeal: this._browserDeadlineMs < 2.0833333333333335}; object.deadlineMs = this._deadlineMs.toFixed(2); var value = global.performance.now(); value -= this._startMs; object.timeSinceStartMs = value.toFixed(2); return object; }}]); function WorkIdleDeadline(a0) { // fn#95204, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12688:160, offset: 0x02135654, size: 107 bytes, params: 2, frame: 17 let value = a1; const r3 = value !== undefined ? value : false; value = environment.__proto__; env1_0(this, WorkIdleDeadline); const Math = global.Math; this._deadlineMs = Math.max(2.0833333333333335, a0); this._browserDeadlineMs = a0; this._firedDueToMaxTimeout = r3; const performance = global.performance; this._startMs = performance.now(); } } } global.__d(_fun95202, 12498, [6, 7, 2]) /* metro module 12498, dependencies: [6, 7, 2] */;