/* Metro module 1687; source: unknown; dependencies: [1686] */ function _fun18419(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#18419, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1814:6, offset: 0x00e8b8c3, size: 86 bytes, params: 8, frame: 16 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); object = {code: 'function rubberBandDecay_Pnpm_rubberBandDecayTs1(animation,now,config){const{SLOPE_FACTOR,DERIVATIVE_EPS,VELOCITY_EPS}=this.__closure;const{lastTimestamp:lastTimestamp,startTimestamp:startTimestamp,current:current,velocity:velocity}=animation;const deltaTime=Math.min(Math.max(now-lastTimestamp,0),64);const clampIndex=Math.abs(current-config.clamp[0])config.clamp[1]){derivative=current-config.clamp[clampIndex];}const v=velocity*Math.exp(-(1-config.deceleration)*(now-startTimestamp)*SLOPE_FACTOR)-derivative*config.rubberBandFactor;if(Math.abs(derivative)>DERIVATIVE_EPS){animation.springActive=true;}else if(animation.springActive){animation.current=config.clamp[clampIndex];return true;}else if(Math.abs(v) a2.clamp[value5] ? current - a2.clamp[r7] : value; Math = global.Math; const exp = Math.exp; const value11 = -(value5 - a2.deceleration) * (a1 - startTimestamp); const SLOPE_FACTOR = require(dependencyMap[value]).SLOPE_FACTOR; const value14 = velocity * Reflect.apply(exp, Math, [value11 * SLOPE_FACTOR]) - r13 * a2.rubberBandFactor; Math = global.Math; if (Math.abs(r13) > 0.1) { a0.springActive = true; a0.current = current + value14 * a2.velocityFactor * value3 / 1000; a0.velocity = value14; } else { if (a0.springActive) { a0.current = a2.clamp[r7]; return true; } var value16 = global.Math.abs(value14); var VELOCITY_EPS = require(dependencyMap[value]).VELOCITY_EPS; if (value16 < VELOCITY_EPS) { return true; } a0.current = current + value14 * a2.velocityFactor * value3 / 1000; a0.velocity = value14; } a0.lastTimestamp = a1; return false; }