/* Metro module 6409; source: unknown; dependencies: [6374, 6375] */ function _fun50245(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#50245, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6587:6, offset: 0x01214e51, size: 93 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); const env0_0 = importDefault(6374) /* metro dependency 6374 */; const env0_1 = importDefault(6375) /* metro dependency 6375 */; exports.VelocityTracker = _fun50246(); } function _fun50246() { // fn#50246, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6587:118, offset: 0x01214eae, size: 80 bytes, params: 1, frame: 15 return env0_1(VelocityTracker, [{key: 'computeVelocity', value: value_50248}, {key: 'cleanUp', value: function() { if (this.timeoutId !== null) { global.clearTimeout(this.timeoutId); this.timeoutId = null; } }}]); } function VelocityTracker() { // fn#50247, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6587:139, offset: 0x01214efe, size: 74 bytes, params: 1, frame: 13 env1_0(this, VelocityTracker); const Date = global.Date; this.lastUpdateTime = Date.now(); this.velocity = {'x': 0, 'y': 0}; this.timeoutId = null; } function value_50248(a0, a1, a2, a3) { // fn#50248, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6587:297, offset: 0x01214f48, size: 180 bytes, params: 5, frame: 20 const env0_0 = a3; this.cleanUp(); const Date = global.Date; let value = Date.now(); const value2 = a0 - a1; const Math = global.Math; const value3 = value2 / Math.max(1, value - this.lastUpdateTime); this.lastUpdateTime = value; const velocity = this.velocity; value = 0; velocity.x = a2 ? value3 : value; this.velocity.y = a2 ? value : value3; a3(this.velocity, false); this.timeoutId = global.setTimeout(_fun50249, 100); } function _fun50249() { // fn#50249, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:6587:529, offset: 0x01214ffc, size: 88 bytes, params: 1, frame: 13 const binding = env0_1; binding.cleanUp(); const Date = global.Date; binding.lastUpdateTime = Date.now(); binding.velocity.x = 0; binding.velocity.y = 0; importAll(binding.velocity, true); }