// Module ID: 1823 // Function ID: 1824 // Name: getVal // Dependencies: [1665] // Module 1823 (getVal) import t from "t" /* 1665 */; require = arg1; const dependencyMap = arg6; let obj = { IDENTITY: "identity", CLAMP: "clamp", EXTEND: "extend" }; function getVal(arg0, arg1, arg2, arg3, arg4, arg5) { if (obj.IDENTITY === arg0) { return arg5; } else if (tmp.CLAMP === arg0) { let tmp5 = arg4; if (arg1 * arg2 < arg1 * arg3) { tmp5 = arg3; } return tmp5; } else { const EXTEND = tmp.EXTEND; return arg2; } } getVal.__closure = { Extrapolation: obj }; getVal.__workletHash = 15103214376416; getVal.__initData = { code: "function getVal_Pnpm_interpolationTs1(type,coef,val,leftEdgeOutput,rightEdgeOutput,x){const{Extrapolation}=this.__closure;switch(type){case Extrapolation.IDENTITY:return x;case Extrapolation.CLAMP:if(coef*val= leftEdgeOutput) { num = 1; } if (num * sum < num * leftEdgeOutput) { extrapolateLeft = extrapolateLeft.extrapolateLeft; if (typeof getVal !== "function") { HermesBuiltin.throwTypeError(); } if (obj.IDENTITY !== extrapolateLeft) { if (tmp9.CLAMP !== extrapolateLeft) { const EXTEND2 = tmp9.EXTEND; tmp10 = sum; } } const result = num * sum; num = num * leftEdgeOutput; if (result < num) { rightEdgeOutput = leftEdgeOutput; } tmp10 = rightEdgeOutput; } else if (num * rightEdgeOutput >= num * sum) { return sum; } else { const extrapolateRight = extrapolateLeft.extrapolateRight; if (typeof getVal !== "function") { HermesBuiltin.throwTypeError(); } let tmp5 = tmp10; if (obj.IDENTITY !== extrapolateRight) { if (tmp4.CLAMP !== extrapolateRight) { const EXTEND = tmp4.EXTEND; tmp5 = sum; } } let tmp6 = rightEdgeOutput; if (num * sum < num * leftEdgeOutput) { tmp6 = leftEdgeOutput; } tmp5 = tmp6; } } } internalInterpolate.__closure = { getVal }; internalInterpolate.__workletHash = 16257995045856; internalInterpolate.__initData = { code: "function internalInterpolate_Pnpm_interpolationTs4(x,narrowedInput,extrapolationConfig){const{getVal}=this.__closure;const{leftEdgeInput:leftEdgeInput,rightEdgeInput:rightEdgeInput,leftEdgeOutput:leftEdgeOutput,rightEdgeOutput:rightEdgeOutput}=narrowedInput;if(rightEdgeInput-leftEdgeInput===0){return leftEdgeOutput;}const progress=(x-leftEdgeInput)/(rightEdgeInput-leftEdgeInput);const val=leftEdgeOutput+progress*(rightEdgeOutput-leftEdgeOutput);const coef=rightEdgeOutput>=leftEdgeOutput?1:-1;if(coef*valcoef*rightEdgeOutput){return getVal(extrapolationConfig.extrapolateRight,coef,val,leftEdgeOutput,rightEdgeOutput,x);}return val;}" }; function interpolate(arg0, arg1, arg2, arg3) { if (arg1.length >= 2) { if (arg2.length >= 2) { obj = { leftEdgeInput: null, rightEdgeInput: null, leftEdgeOutput: null, rightEdgeOutput: null }; [obj[0], obj[1]] = arg1; [obj[2], obj[3]] = arg2; if (arg1.length > 2) { if (arg0 > arg1[length - 1]) { obj.leftEdgeInput = arg1[length - 2]; obj.rightEdgeInput = arg1[length - 1]; obj.leftEdgeOutput = arg2[length - 2]; obj.rightEdgeOutput = arg2[length - 1]; } else { let num = 1; if (1 < length) { while (arg0 > arg1[num]) { num = num + 1; } const diff = num - 1; obj.leftEdgeInput = arg1[diff]; obj.rightEdgeInput = arg1[num]; obj.leftEdgeOutput = arg2[diff]; obj.rightEdgeOutput = arg2[num]; } } } return internalInterpolate(arg0, obj, validateType(arg3)); } } const reanimatedError = new t.ReanimatedError("Interpolation input and output ranges should contain at least two values."); throw reanimatedError; } interpolate.__closure = { validateType, internalInterpolate }; interpolate.__workletHash = 16263308339935; interpolate.__initData = { code: "function interpolate_Pnpm_interpolationTs5(x,inputRange,outputRange,type){const{validateType,internalInterpolate}=this.__closure;if(inputRange.length<2||outputRange.length<2){throw new ReanimatedError('Interpolation input and output ranges should contain at least two values.');}const extrapolationConfig=validateType(type);const length=inputRange.length;const narrowedInput={leftEdgeInput:inputRange[0],rightEdgeInput:inputRange[1],leftEdgeOutput:outputRange[0],rightEdgeOutput:outputRange[1]};if(length>2){if(x>inputRange[length-1]){narrowedInput.leftEdgeInput=inputRange[length-2];narrowedInput.rightEdgeInput=inputRange[length-1];narrowedInput.leftEdgeOutput=outputRange[length-2];narrowedInput.rightEdgeOutput=outputRange[length-1];}else{for(let i=1;i