// Module ID: 1663 // Function ID: 18442 // Name: withSequence // Dependencies: [1586, 1622] // Module 1663 (withSequence) const require = arg1; const dependencyMap = arg6; let closure_2 = { code: "function withSequence_Pnpm_sequenceTs1(_reduceMotionOrFirstAnimation,..._animations){const{logger,defineAnimation,getReduceMotionForAnimation}=this.__closure;let reduceMotion;if(_reduceMotionOrFirstAnimation){if(typeof _reduceMotionOrFirstAnimation==='string'){reduceMotion=_reduceMotionOrFirstAnimation;}else{_animations.unshift(_reduceMotionOrFirstAnimation);}}if(_animations.length===0){logger.warn('No animation was provided for the sequence');return defineAnimation(0,function(){'worklet';return{onStart:function(animation,value){return animation.current=value;},onFrame:function(){return true;},current:0,animationIndex:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};});}return defineAnimation(_animations[0],function(){'worklet';const animations=_animations.map(function(a){const result=typeof a==='function'?a():a;result.finished=false;return result;});function findNextNonReducedMotionAnimationIndex(index){while(index { function withSequence(withTimingResult, withTimingResult1, withTimingResult2, arg3) { const length = arguments.length; let num = 0; if (length > 1) { num = length - 1; } let arr = new Array(num); for (let num2 = 1; num2 < length; num2 = num2 + 1) { arr[num2 - 1] = arguments[num2]; } if (!withTimingResult) { if (0 === arr.length) { const logger = outer1_0(outer1_1[0]).logger; logger.warn("No animation was provided for the sequence"); /* worklet (recovered source) */ function pnpm_sequenceTs2(){const{getReduceMotionForAnimation,reduceMotion}=this.__closure;return{onStart:function(animation,value){return animation.current=value;},onFrame:function(){return true;},current:0,animationIndex:0,reduceMotion:getReduceMotionForAnimation(reduceMotion)};} let obj = { getReduceMotionForAnimation: outer1_0(outer1_1[1]).getReduceMotionForAnimation, reduceMotion: undefined }; pnpm_sequenceTs2.__closure = obj; pnpm_sequenceTs2.__workletHash = 3306563388298; pnpm_sequenceTs2.__initData = outer1_3; let defineAnimationResult = outer1_0(outer1_1[1]).defineAnimation(0, pnpm_sequenceTs2); const obj3 = outer1_0(outer1_1[1]); } else { obj = outer1_0(outer1_1[1]); /* worklet (recovered source) */ function pnpm_sequenceTs3(){const{_animations,getReduceMotionForAnimation,reduceMotion}=this.__closure;const animations=_animations.map(function(a){const result=typeof a==='function'?a():a;result.finished=false;return result;});function findNextNonReducedMotionAnimationIndex(index){while(index