1"use strict";(self.webpackChunkweb=self.webpackChunkweb||[]).push([[2600],{22600:(e,t,a)=>{a.d(t,{A:()=>xe});var n=a(36665),i=a(54531);const o=function omitZero_reactNativeReanimatedCarousel_computeOffsetIfDataChangedJs1Factory({_worklet_13597655474965_init_data:e}){const omitZero=function(e,t){return 0===e?0:t};return omitZero.__closure={},omitZero.__workletHash=0xc5df36ca315,omitZero.__initData=e,omitZero}({_worklet_13597655474965_init_data:{code:"function omitZero_reactNativeReanimatedCarousel_computeOffsetIfDataChangedJs1(a,b){if(a===0)return 0;return b;}"}}),r=function computeOffsetIfDataChanged_reactNativeReanimatedCarousel_computeOffsetIfDataChangedJs2Factory({_worklet_3212579586756_init_data:e,omitZero:t}){const computeOffsetIfDataChanged=function(e){const{direction:a,handlerOffset:n,size:i,previousLength:o,currentLength:r}=e;let l,s,u=n;const c=a<0;c?(l=Math.abs(u)/i,s=Number.parseInt(String(t(o,l/o)))):(l=(Math.abs(u)-i)/i,s=Number.parseInt(String(t(o,l/o)))+1);const d=t(o,l%o);return(c?d:o-d-1)>r-1&&r<o?u=c?(r-1)*i*a:(r-1)*i*-1:u+=s*(r-o)*i*a,u};return computeOffsetIfDataChanged.__closure={omitZero:t},computeOffsetIfDataChanged.__workletHash=3212579586756,computeOffsetIfDataChanged.__initData=e,computeOffsetIfDataChanged}({_worklet_3212579586756_init_data:{code:"function computeOffsetIfDataChanged_reactNativeReanimatedCarousel_computeOffsetIfDataChangedJs2(params){const{omitZero}=this.__closure;const{direction:direction,handlerOffset:_handlerOffset,size:size,previousLength:previousLength,currentLength:currentLength}=params;let handlerOffset=_handlerOffset;let positionIndex;let round;const isPositive=direction<0;if(isPositive){positionIndex=Math.abs(handlerOffset)/size;round=Number.parseInt(String(omitZero(previousLength,positionIndex/previousLength)));}else{positionIndex=(Math.abs(handlerOffset)-size)/size;round=Number.parseInt(String(omitZero(previousLength,positionIndex/previousLength)))+1;}const prevOffset=omitZero(previousLength,positionIndex%previousLength);const prevIndex=isPositive?prevOffset:previousLength-prevOffset-1;const changedLength=round*(currentLength-previousLength);const changedOffset=changedLength*size;if(prevIndex>currentLength-1&¤tLength<previousLength){if(isPositive)handlerOffset=(currentLength-1)*size*direction;else handlerOffset=(currentLength-1)*size*-1;}else{handlerOffset+=changedOffset*direction;}return handlerOffset;}"},omitZero:o}),l=function computeOffsetIfSizeChanged_reactNativeReanimatedCarousel_computeOffsetIfSizeChangedJs1Factory({_worklet_6973309627197_init_data:e}){const computeOffsetIfSizeChanged=function(e){const{handlerOffset:t,prevSize:a,size:n}=e;return t/a*n};return computeOffsetIfSizeChanged.__closure={},computeOffsetIfSizeChanged.__workletHash=6973309627197,computeOffsetIfSizeChanged.__initData=e,computeOffsetIfSizeChanged}({_worklet_6973309627197_init_data:{code:"function computeOffsetIfSizeChanged_reactNativeReanimatedCarousel_computeOffsetIfSizeChangedJs1(params){const{handlerOffset:handlerOffset,prevSize:prevSize,size:size}=params;return handlerOffset/prevSize*size;}"}}),s=function handlerOffsetDirection_reactNativeReanimatedCarousel_handleroffsetDirectionJs1Factory({_worklet_10949983045518_init_data:e}){const handlerOffsetDirection=function(e,t){return"negative"===t?-1:"positive"===t?1:0===e.value?-1:Math.sign(e.value)};return handlerOffsetDirection.__closure={},handlerOffsetDirection.__workletHash=0x9f57dd9878e,handlerOffsetDirection.__initData=e,handlerOffsetDirection}({_worklet_10949983045518_init_data:{code:'function handlerOffsetDirection_reactNativeReanimatedCarousel_handleroffsetDirectionJs1(handlerOffset,fixedDirection){if(fixedDirection==="negative")return-1;if(fixedDirection==="positive")return 1;if(handlerOffset.value===0)return-1;return Math.sign(handlerOffset.value);}'}}),u={code:"function reactNativeReanimatedCarousel_useCommonVariablesJs1(){const{prevDataLength,dataLength,loop}=this.__closure;const previousLength=prevDataLength.value;const currentLength=dataLength;const isLengthChanged=previousLength!==currentLength;const shouldComputed=isLengthChanged&&loop;if(shouldComputed)prevDataLength.value=dataLength;return{shouldComputed:shouldComputed,previousLength:previousLength,currentLength:currentLength};}"},c={code:"function reactNativeReanimatedCarousel_useCommonVariablesJs2(_ref){const{handlerOffsetDirection,handlerOffset,computeOffsetIfDataChanged,size}=this.__closure;let{shouldComputed:shouldComputed,previousLength:previousLength,currentLength:currentLength}=_ref;if(shouldComputed){const direction=handlerOffsetDirection(handlerOffset);handlerOffset.value=computeOffsetIfDataChanged({direction:direction,previousLength:previousLength,currentLength:currentLength,size:size,handlerOffset:handlerOffset.value});}}"},d={code:"function reactNativeReanimatedCarousel_useCommonVariablesJs3(){const{prevSize,size}=this.__closure;const previousSize=prevSize.value;const isSizeChanged=previousSize!==size;const shouldComputed=isSizeChanged;if(shouldComputed)prevSize.value=size;return{shouldComputed:shouldComputed,previousSize:previousSize,size:size};}"},_={code:"function reactNativeReanimatedCarousel_useCommonVariablesJs4(_ref2){const{handlerOffset,computeOffsetIfSizeChanged}=this.__closure;let{shouldComputed:shouldComputed,previousSize:previousSize,size:size}=_ref2;if(shouldComputed){handlerOffset.value=computeOffsetIfSizeChanged({handlerOffset:handlerOffset.value,prevSize:previousSize,size:size});}}"};function useCommonVariables(e){const{vertical:t,height:a,width:n,dataLength:o,defaultIndex:h,defaultScrollOffsetValue:f,loop:v}=e,g=t?a:n,p=-Math.abs(h*g),m=(0,i.useSharedValue)(p),S=null!=f?f:m,w=(0,i.useSharedValue)(o),C=(0,i.useSharedValue)(g);return(0,i.useAnimatedReaction)(function reactNativeReanimatedCarousel_useCommonVariablesJs1Factory({_worklet_5182207537887_init_data:e,prevDataLength:t,dataLength:a,loop:n}){const reactNativeReanimatedCarousel_useCommonVariablesJs1=function(){const e=t.value,i=a,o=e!==i&&n;return o&&(t.value=a),{shouldComputed:o,previousLength:e,currentLength:i}};return reactNativeReanimatedCarousel_useCommonVariablesJs1.__closure={prevDataLength:t,dataLength:a,loop:n},reactNativeReanimatedCarousel_useCommonVariablesJs1.__workletHash=5182207537887,reactNativeReanimatedCarousel_useCommonVariablesJs1.__initData=e,reactNativeReanimatedCarousel_useCommonVariablesJs1}({_worklet_5182207537887_init_data:u,prevDataLength:w,dataLength:o,loop:v}),function reactNativeReanimatedCarousel_useCommonVariablesJs2Factory({_worklet_16127690875774_init_data:e,handlerOffsetDirection:t,handlerOffset:a,computeOffsetIfDataChanged:n,size:i}){const reactNativeReanimatedCarousel_useCommonVariablesJs2=function(e){let{shouldComputed:o,previousLength:r,currentLength:l}=e;if(o){const e=t(a);a.value=n({direction:e,previousLength:r,currentLength:l,size:i,handlerOffset:a.value})}};return reactNativeReanimatedCarousel_useCommonVariablesJs2.__closure={handlerOffsetDirection:t,handlerOffset:a,computeOffsetIfDataChanged:n,size:i},reactNativeReanimatedCarousel_useCommonVariablesJs2.__workletHash=0xeab0549237e,reactNativeReanimatedCarousel_useCommonVariablesJs2.__initData=e,reactNativeReanimatedCarousel_useCommonVariablesJs2}({_worklet_16127690875774_init_data:c,handlerOffsetDirection:s,handlerOffset:S,computeOffsetIfDataChanged:r,size:g}),[o,v]),(0,i.useAnimatedReaction)(function reactNativeReanimatedCarousel_useCommonVariablesJs3Factory({_worklet_17113535646226_init_data:e,prevSize:t,size:a}){const reactNativeReanimatedCarousel_useCommonVariablesJs3=function(){const e=t.value,n=e!==a;return n&&(t.value=a),{shouldComputed:n,previousSize:e,size:a}};return reactNativeReanimatedCarousel_useCommonVariablesJs3.__closure={prevSize:t,size:a},reactNativeReanimatedCarousel_useCommonVariablesJs3.__workletHash=0xf908e368a12,reactNativeReanimatedCarousel_useCommonVariablesJs3.__initData=e,reactNativeReanimatedCarousel_useCommonVariablesJs3}({_worklet_17113535646226_init_data:d,prevSize:C,size:g}),function reactNativeReanimatedCarousel_useCommonVariablesJs4Factory({_worklet_3633679055215_init_data:e,handlerOffset:t,computeOffsetIfSizeChanged:a}){const reactNativeReanimatedCarousel_useCommonVariablesJs4=function(e){let{shouldComputed:n,previousSize:i,size:o}=e;n&&(t.value=a({handlerOffset:t.value,prevSize:i,size:o}))};return reactNativeReanimatedCarousel_useCommonVariablesJs4.__closure={handlerOffset:t,computeOffsetIfSizeChanged:a},reactNativeReanimatedCarousel_useCommonVariablesJs4.__workletHash=3633679055215,reactNativeReanimatedCarousel_useCommonVariablesJs4.__initData=e,reactNativeReanimatedCarousel_useCommonVariablesJs4}({_worklet_3633679055215_init_data:_,handlerOffset:S,computeOffsetIfSizeChanged:l}),[g]),{size:g,validLength:o-1,handlerOffset:S}}let h;!function(e){e[e.SINGLE_ITEM=1]="SINGLE_ITEM",e[e.DOUBLE_ITEM=2]="DOUBLE_ITEM"}(h||(h={}));const f={easeOutQuart:i.Easing.bezier(.25,1,.5,1)},{SINGLE_ITEM:v,DOUBLE_ITEM:g}=h,p=function isAutoFillData_reactNativeReanimatedCarousel_computedWithAutoFillDataJs1Factory({_worklet_3158989133050_init_data:e}){const isAutoFillData=function(e){return!!e.loop&&!!e.autoFillData};return isAutoFillData.__closure={},isAutoFillData.__workletHash=3158989133050,isAutoFillData.__initData=e,isAutoFillData}({_worklet_3158989133050_init_data:{code:"function isAutoFillData_reactNativeReanimatedCarousel_computedWithAutoFillDataJs1(params){return!!params.loop&&!!params.autoFillData;}"}}),m=function convertToSharedIndex_reactNativeReanimatedCarousel_computedWithAutoFillDataJs2Factory({_worklet_14594809847348_init_data:e,isAutoFillData:t,SINGLE_ITEM:a,DOUBLE_ITEM:n}){const convertToSharedIndex=function(e){const{loop:i,rawDataLength:o,index:r,autoFillData:l}=e;if(t({loop:i,autoFillData:l}))switch(o){case a:return 0;case n:return r%2}return r};return convertToSharedIndex.__closure={isAutoFillData:t,SINGLE_ITEM:a,DOUBLE_ITEM:n},convertToSharedIndex.__workletHash=0xd461e74de34,convertToSharedIndex.__initData=e,convertToSharedIndex}({_worklet_14594809847348_init_data:{code:"function convertToSharedIndex_reactNativeReanimatedCarousel_computedWithAutoFillDataJs2(params){const{isAutoFillData,SINGLE_ITEM,DOUBLE_ITEM}=this.__closure;const{loop:loop,rawDataLength:rawDataLength,index:index,autoFillData:autoFillData}=params;if(isAutoFillData({loop:loop,autoFillData:autoFillData})){switch(rawDataLength){case SINGLE_ITEM:return 0;case DOUBLE_ITEM:return index%2;}}return index;}"},isAutoFillData:p,SINGLE_ITEM:v,DOUBLE_ITEM:g}),S=function computedOffsetXValueWithAutoFillData_reactNativeReanimatedCarousel_computedWithAutoFillDataJs3Factory({_worklet_8152482174704_init_data:e,isAutoFillData:t,SINGLE_ITEM:a,DOUBLE_ITEM:n}){const computedOffsetXValueWithAutoFillData=function(e){const{rawDataLength:i,value:o,size:r,loop:l,autoFillData:s}=e;if(t({loop:l,autoFillData:s}))switch(i){case a:return o%r;case n:return o%(2*r)}return o};return computedOffsetXValueWithAutoFillData.__closure={isAutoFillData:t,SINGLE_ITEM:a,DOUBLE_ITEM:n},computedOffsetXValueWithAutoFillData.__workletHash=8152482174704,computedOffsetXValueWithAutoFillData.__initData=e,computedOffsetXValueWithAutoFillData}({_worklet_8152482174704_init_data:{code:"function computedOffsetXValueWithAutoFillData_reactNativeReanimatedCarousel_computedWithAutoFillDataJs3(params){const{isAutoFillData,SINGLE_ITEM,DOUBLE_ITEM}=this.__closure;const{rawDataLength:rawDataLength,value:value,size:size,loop:loop,autoFillData:autoFillData}=params;if(isAutoFillData({loop:loop,autoFillData:autoFillData})){switch(rawDataLength){case SINGLE_ITEM:return value%size;case DOUBLE_ITEM:return value%(size*2);}}return value;}"},isAutoFillData:p,SINGLE_ITEM:v,DOUBLE_ITEM:g});function computedRealIndexWithAutoFillData(e){const{index:t,dataLength:a,loop:n,autoFillData:i}=e;if(p({loop:n,autoFillData:i}))switch(a){case v:return t%1;case g:return t%2}return t}function useInitProps(e){var t;const{defaultIndex:a=0,data:i=[],loop:o=!0,autoPlayInterval:r=1e3,scrollAnimationDuration:l=500,style:s={},autoFillData:u=!0,enabled:c=!0,pagingEnabled:d=!0,overscrollEnabled:_=!0,snapEnabled:h=null===(t=e.enableSnap)||void 0===t||t,width:f,height:m}=e,S=Math.round(f||0),w=Math.round(m||0),C=Math.max(r,0),D=n.useMemo((()=>function computedFillDataWithAutoFillData(e){const{data:t,loop:a,autoFillData:n,dataLength:i}=e;if(p({loop:a,autoFillData:n}))switch(i){case v:return[t[0],t[0],t[0]];case g:return[t[0],t[1],t[0],t[1]]}return t}({loop:o,autoFillData:u,data:i,dataLength:i.length})),[i,o,u]),x=D.length,L=i.length;var E,I;"vertical-stack"!==e.mode&&"horizontal-stack"!==e.mode||(e.modeConfig||(e.modeConfig={}),e.modeConfig.showLength=null!==(E=null===(I=e.modeConfig)||void 0===I?void 0:I.showLength)&&void 0!==E?E:x-1);return Object.assign({},e,{defaultIndex:a,autoFillData:u,data:D,dataLength:x,rawData:i,rawDataLength:L,loop:o,enabled:c,autoPlayInterval:C,scrollAnimationDuration:l,style:s,pagingEnabled:d,snapEnabled:h,overscrollEnabled:_,width:S,height:w})}const w=n.createContext({}),C={code:"function reactNativeReanimatedCarousel_indexJs1(index,dimensions){const{itemDimensions}=this.__closure;itemDimensions.value={...itemDimensions.value,[index]:dimensions};}"},D={code:"function reactNativeReanimatedCarousel_indexJs2(dimensions){const{containerSize}=this.__closure;containerSize.value=dimensions;}"},GlobalStateProvider=e=>{let{children:t,value:a}=e;const o=(0,i.useSharedValue)({width:0,height:0}),r=(0,i.useSharedValue)({}),l=function reactNativeReanimatedCarousel_indexJs1Factory({_worklet_6384719035051_init_data:e,itemDimensions:t}){const reactNativeReanimatedCarousel_indexJs1=function(e,a){t.value=Object.assign({},t.value,{[e]:a})};return reactNativeReanimatedCarousel_indexJs1.__closure={itemDimensions:t},reactNativeReanimatedCarousel_indexJs1.__workletHash=6384719035051,reactNativeReanimatedCarousel_indexJs1.__initData=e,reactNativeReanimatedCarousel_indexJs1}({_worklet_6384719035051_init_data:C,itemDimensions:r}),s=function reactNativeReanimatedCarousel_indexJs2Factory({_worklet_16577020652975_init_data:e,containerSize:t}){const reactNativeReanimatedCarousel_indexJs2=function(e){t.value=e};return reactNativeReanimatedCarousel_indexJs2.__closure={containerSize:t},reactNativeReanimatedCarousel_indexJs2.__workletHash=0xf13a36d6daf,reactNativeReanimatedCarousel_indexJs2.__initData=e,reactNativeReanimatedCarousel_indexJs2}({_worklet_16577020652975_init_data:D,containerSize:o});return n.createElement(w.Provider,{value:Object.assign({},a,{layout:{containerSize:o,itemDimensions:r,updateItemDimensions:l,updateContainerSize:s}})},t)},useGlobalState=()=>{const e=n.useContext(w);if(!e)throw new Error("useGlobalState must be used within a GlobalStateProvider");return e};var x=a(8715),L=a(23411);const E={code:"function reactNativeReanimatedCarousel_dealWithAnimationJs2(isFinished){const{cb}=this.__closure;return cb(isFinished);}"},I={code:"function reactNativeReanimatedCarousel_dealWithAnimationJs3(isFinished){const{cb}=this.__closure;return cb(isFinished);}"},z=function dealWithAnimation_reactNativeReanimatedCarousel_dealWithAnimationJs1Factory({_worklet_5922841158752_init_data:e,withSpring:t,withTiming:a}){const dealWithAnimation=function(e){switch(e.type){case"spring":return(a,n)=>t(a,e.config,function reactNativeReanimatedCarousel_dealWithAnimationJs2Factory({_worklet_9298631112730_init_data:e,cb:t}){const reactNativeReanimatedCarousel_dealWithAnimationJs2=e=>t(e);return reactNativeReanimatedCarousel_dealWithAnimationJs2.__closure={cb:t},reactNativeReanimatedCarousel_dealWithAnimationJs2.__workletHash=9298631112730,reactNativeReanimatedCarousel_dealWithAnimationJs2.__initData=e,reactNativeReanimatedCarousel_dealWithAnimationJs2}({_worklet_9298631112730_init_data:E,cb:n}));case"timing":return(t,n)=>a(t,e.config,function reactNativeReanimatedCarousel_dealWithAnimationJs3Factory({_worklet_14995112194267_init_data:e,cb:t}){const reactNativeReanimatedCarousel_dealWithAnimationJs3=e=>t(e);return reactNativeReanimatedCarousel_dealWithAnimationJs3.__closure={cb:t},reactNativeReanimatedCarousel_dealWithAnimationJs3.__workletHash=0xda35255f0db,reactNativeReanimatedCarousel_dealWithAnimationJs3.__initData=e,reactNativeReanimatedCarousel_dealWithAnimationJs3}({_worklet_14995112194267_init_data:I,cb:n}))}};return dealWithAnimation.__closure={withSpring:t,withTiming:a},dealWithAnimation.__workletHash=5922841158752,dealWithAnimation.__initData=e,
1dealWithAnimation}({_worklet_5922841158752_init_data:{code:'function dealWithAnimation_reactNativeReanimatedCarousel_dealWithAnimationJs1(withAnimation){const{withSpring,withTiming}=this.__closure;switch(withAnimation.type){case"spring":return function(value,cb){return withSpring(value,withAnimation.config,function(isFinished){return cb(isFinished);});};case"timing":return function(value,cb){return withTiming(value,withAnimation.config,function(isFinished){return cb(isFinished);});};}}'},withSpring:i.withSpring,withTiming:i.withTiming});const R=function round_reactNativeReanimatedCarousel_logJs1Factory({_worklet_8564353436600_init_data:e}){const round=function(e){return Math.round(e)};return round.__closure={},round.__workletHash=8564353436600,round.__initData=e,round}({_worklet_8564353436600_init_data:{code:"function round_reactNativeReanimatedCarousel_logJs1(number){return Math.round(number);}"}}),y={code:"function reactNativeReanimatedCarousel_useCarouselControllerJs1(){const{handlerOffset,round,size,dataInfo,convertToSharedIndex,loop,autoFillData}=this.__closure;const handlerOffsetValue=handlerOffset.value;const toInt=round(handlerOffsetValue/size)%dataInfo.length;const isPositive=handlerOffsetValue<=0;const i=isPositive?Math.abs(toInt):Math.abs(toInt>0?dataInfo.length-toInt:0);const newSharedIndexValue=convertToSharedIndex({loop:loop,rawDataLength:dataInfo.originalLength,autoFillData:autoFillData,index:i});return{i:i,newSharedIndexValue:newSharedIndexValue};}"},b={code:"function reactNativeReanimatedCarousel_useCarouselControllerJs2(_ref){const{index,runOnJS,setSharedIndex}=this.__closure;let{i:i,newSharedIndexValue:newSharedIndexValue}=_ref;index.value=i;runOnJS(setSharedIndex)(newSharedIndexValue);}"},k={code:"function reactNativeReanimatedCarousel_useCarouselControllerJs3(isFinished){const{runOnJS,onScrollEnd,onFinished}=this.__closure;if(isFinished){runOnJS(onScrollEnd)();onFinished&&runOnJS(onFinished)();}}"},F={code:'function reactNativeReanimatedCarousel_useCarouselControllerJs4(toValue,onFinished){const{_worklet_6551740911478_init_data,runOnJS,onScrollEnd,duration,Easing,dealWithAnimation,withAnimation}=this.__closure;const callback=function reactNativeReanimatedCarousel_useCarouselControllerJs3Factory({_worklet_6551740911478_init_data:_worklet_6551740911478_init_data,runOnJS:runOnJS,onScrollEnd:onScrollEnd,onFinished:onFinished}){const reactNativeReanimatedCarousel_useCarouselControllerJs3=function(isFinished){if(isFinished){runOnJS(onScrollEnd)();onFinished&&runOnJS(onFinished)();}};reactNativeReanimatedCarousel_useCarouselControllerJs3.__closure={runOnJS:runOnJS,onScrollEnd:onScrollEnd,onFinished:onFinished};reactNativeReanimatedCarousel_useCarouselControllerJs3.__workletHash=6551740911478;reactNativeReanimatedCarousel_useCarouselControllerJs3.__initData=_worklet_6551740911478_init_data;return reactNativeReanimatedCarousel_useCarouselControllerJs3;}({_worklet_6551740911478_init_data:_worklet_6551740911478_init_data,runOnJS:runOnJS,onScrollEnd:onScrollEnd,onFinished:onFinished});const defaultWithAnimation={type:"timing",config:{duration:duration,easing:Easing.easeOutQuart}};return dealWithAnimation(withAnimation!==null&&withAnimation!==void 0?withAnimation:defaultWithAnimation)(toValue,callback);}'},O={code:"function reactNativeReanimatedCarousel_useCarouselControllerJs5(){const{canSliding,loop,index,dataInfo,size,overscrollEnabled,containerSize,onScrollStart,currentFixedPage,handlerOffset,scrollWithTiming}=this.__closure;let opts=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};const{count=1,animated=true,onFinished:onFinished}=opts;if(!canSliding())return;if(!loop&&index.value>=dataInfo.length-1)return;const visibleContentWidth=(dataInfo.length-index.value)*size;if(!overscrollEnabled&&!(visibleContentWidth>containerSize.value.width)){return;}onScrollStart===null||onScrollStart===void 0?void 0:onScrollStart();const nextPage=currentFixedPage()+count;index.value=nextPage;if(animated){handlerOffset.value=scrollWithTiming(-nextPage*size,onFinished);}else{handlerOffset.value=-nextPage*size;onFinished===null||onFinished===void 0?void 0:onFinished();}}"};const A={code:"function reactNativeReanimatedCarousel_normalJs1(value){const{interpolate,size,vertical}=this.__closure;const translate=interpolate(value,[-1,0,1],[-size,0,size]);return{transform:[vertical?{translateY:translate}:{translateX:translate}]};}"};const J={code:"function reactNativeReanimatedCarousel_parallaxJs1(value){const{interpolate,size,parallaxScrollingOffset,Extrapolation,parallaxAdjacentItemScale,parallaxScrollingScale,vertical}=this.__closure;const translate=interpolate(value,[-1,0,1],[-size+parallaxScrollingOffset,0,size-parallaxScrollingOffset]);const zIndex=Math.round(interpolate(value,[-1,0,1],[0,size,0],Extrapolation.CLAMP));const scale=interpolate(value,[-1,0,1],[parallaxAdjacentItemScale,parallaxScrollingScale,parallaxAdjacentItemScale],Extra
1polation.CLAMP);return{transform:[vertical?{translateY:translate}:{translateX:translate},{scale:scale}],zIndex:zIndex};}"};const M=a(97583).A.get("window"),P={code:'function reactNativeReanimatedCarousel_stackJs1(_value){const{screen,modeConfig,getCommonVariables,getCommonStyles,interpolate,Extrapolation}=this.__closure;const{showLength:showLength,snapDirection="left",moveSize=screen.width,stackInterval=18,scaleInterval=0.04,opacityInterval=0.1,rotateZDeg=30}=modeConfig;const{validLength:validLength,value:value,inputRange:inputRange}=getCommonVariables({showLength:showLength,value:_value,snapDirection:snapDirection});const{zIndex:zIndex,opacity:opacity}=getCommonStyles({validLength:validLength,value:value,opacityInterval:opacityInterval,snapDirection:snapDirection});let translateX;let scale;let rotateZ;if(snapDirection==="left"){translateX=interpolate(value,inputRange,[-moveSize,0,validLength*stackInterval],Extrapolation.CLAMP);scale=interpolate(value,inputRange,[1,1,1-validLength*scaleInterval],Extrapolation.CLAMP);rotateZ=interpolate(value,inputRange,[-rotateZDeg,0,0],Extrapolation.CLAMP)+"deg";}else if(snapDirection==="right"){translateX=interpolate(value,inputRange,[-validLength*stackInterval,0,moveSize],Extra
1polation.CLAMP);scale=interpolate(value,inputRange,[1-validLength*scaleInterval,1,1],Extrapolation.CLAMP);rotateZ=interpolate(value,inputRange,[0,0,rotateZDeg],Extrapolation.CLAMP)+"deg";}const transform=[{translateX:translateX},{scale:scale},{rotateZ:rotateZ}];const styles={transform:transform,zIndex:zIndex,opacity:opacity};return styles;}'};function horizontalStackLayout(){return function reactNativeReanimatedCarousel_stackJs1Factory({_worklet_11404640603425_init_data:e,screen:t,modeConfig:a,getCommonVariables:n,getCommonStyles:i,interpolate:o,Extrapolation:r}){const reactNativeReanimatedCarousel_stackJs1=function(e){const{showLength:l,snapDirection:s="left",moveSize:u=t.width,stackInterval:c=18,scaleInterval:d=.04,opacityInterval:_=.1,rotateZDeg:h=30}=a,{validLength:f,value:v,inputRange:g}=n({showLength:l,value:e,snapDirection:s}),{zIndex:p,opacity:m}=i({validLength:f,value:v,opacityInterval:_,snapDirection:s});let S,w,C;"left"===s?(S=o(v,g,[-u,0,f*c],r.CLAMP),w=o(v,g,[1,1,1-f*d],r.CLAMP),C=`${o(v,g,[-h,0,0],r.CLAMP)}deg`):"right"===s&&(S=o(v,g,[-f*c,0,u],r.CLAMP),w=o(v,g,[1-f*d,1,1],r.CLAMP),C=`${o(v,g,[0,0,h],r.CLAMP)}deg`);return{transform:[{translateX:S},{scale:w},{rotateZ:C}],zIndex:p,opacity:m}};return reactNativeReanimatedCarousel_stackJs1.__closure={screen:t,modeConfig:a,getCommonVariables:n,getCommonStyles:i,interpolate:o,Extrapolation:r},reactNativeReanimatedCarousel_stackJs1.__workletHash=0xa5f598d4d21,reactNativeReanimatedCarousel_stackJs1.__initData=e,reactNativeReanimatedCarousel_stackJs1}({_worklet_11404640603425_init_data:P,screen:M,modeConfig:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},getCommonVariables:V,getCommonStyles:T,interpolate:i.interpolate,Extrapolation:i.Extrapolation})}const N={code:'function reactNativeReanimatedCarousel_stackJs2(_value){const{screen,modeConfig,getCommonVariables,getCommonStyles,interpolate,Extrapolation}=this.__closure;const{showLength:showLength,snapDirection="left",moveSize=screen.width,stackInterval=18,scaleInterval=0.04,opacityInterval=0.1,rotateZDeg=30}=modeConfig;const{validLength:validLength,value:value,inputRange:inputRange}=getCommonVariables({showLength:showLength,value:_value,snapDirection:snapDirection});const{zIndex:zIndex,opacity:opacity}=getCommonStyles({validLength:validLength,value:value,opacityInterval:opacityInterval,snapDirection:snapDirection});let translateX;let scale;let rotateZ;let translateY;if(snapDirection==="left"){translateX=interpolate(value,inputRange,[-moveSize,0,0],Extrapolation.CLAMP);scale=interpolate(value,inputRange,[1,1,1-validLength*scaleInterval],Extrapolation.CLAMP);rotateZ=interpolate(value,inputRange,[-rotateZDeg,0,0],Extrapolation.CLAMP)+"deg";translateY=interpolate(value,inputRange,[0,0,validLength*stackInterval],Extrapolation.CLAMP);}else if(snapDirection==="right"){translateX=interpolate(value,inputRange,[0,0,moveSize],Extra
1polation.CLAMP);scale=interpolate(value,inputRange,[1-validLength*scaleInterval,1,1],Extrapolation.CLAMP);rotateZ=interpolate(value,inputRange,[0,0,rotateZDeg],Extrapolation.CLAMP)+"deg";translateY=interpolate(value,inputRange,[validLength*stackInterval,0,0],Extrapolation.CLAMP);}const transform=[{translateX:translateX},{scale:scale},{rotateZ:rotateZ},{translateY:translateY}];const styles={transform:transform,zIndex:zIndex,opacity:opacity};return styles;}'};const V=function getCommonVariables_reactNativeReanimatedCarousel_stackJs3Factory({_worklet_5665610729108_init_data:e}){const getCommonVariables=function(e){const{showLength:t,value:a,snapDirection:n}=e;function easeInOutCubic(e){return e<.5?4*e*e*e:1-(-2*e+2)**3/2}const i=Math.floor(Math.abs(a)),o=Math.abs(a)%1,r=a<0?-(i+easeInOutCubic(o)):i+easeInOutCubic(o),l=t-1;let s;if("left"===n)s=[-1,0,l];else{if("right"!==n)throw new Error("snapDirection must be set to either left or right");s=[-l,0,1]}return{inputRange:s,validLength:l,value:r}};return getCommonVariables.__closure={},getCommonVariables.__workletHash=5665610729108,getCommonVariables.__initData=e,getCommonVariables}({_worklet_5665610729108_init_data:{code:'function getCommonVariables_reactNativeReanimatedCarousel_stackJs3(opts){const{showLength:showLength,value:_value,snapDirection:snapDirection}=opts;function easeInOutCubic(v){return v<0.5?4*v*v*v:1-(-2*v+2)**3/2;}const page=Math.floor(Math.abs(_value));const diff=Math.abs(_value)%1;const value=_value<0?-(page+easeInOutCubic(diff)):page+easeInOutCubic(diff);const validLength=showLength-1;let inputRange;if(snapDirection==="left")inputRange=[-1,0,validLength];else if(snapDirection==="right")inputRange=[-validLength,0,1];else throw new Error("snapDirection must be set to either left or right");return{inputRange:inputRange,validLength:validLength,value:value};}'}}),T=function getCommonStyles_reactNativeReanimatedCarousel_stackJs4Factory({_worklet_230262173912_init_data:e,interpolate:t}){const getCommonStyles=function(e){const{snapDirection:a,validLength:n,value:i,opacityInterval:o}=e;let r,l;if("left"===a)r=Math.floor(1e4*t(i,[-1.5,-1,-1+Number.MIN_VALUE,0,n],[Number.MIN_VALUE,n,n,n-1,-1]))/100,l=t(i,[-1,0,n-1,n],[.25,1,1-(n-1)*o,.25]);else{if("right"!==a)throw new Error("snapDirection must be set to either left or right");r=Math.floor(1e4*t(i,[-n,0,1-Number.MIN_VALUE,1,1.5],[1,n-1,n,n,Number.MIN_VALUE]))/100,l=t(i,[-n,1-n,0,1],[.25,1-(n-1)*o,1,.25])}return{zIndex:Math.round(r),opacity:l}};return getCommonStyles.__closure={interpolate:t},getCommonStyles.__workletHash=230262173912,getCommonStyles.__initData=e,getCommonStyles}({_worklet_230262173912_init_data:{code:'function getCommonStyles_reactNativeReanimatedCarousel_stackJs4(opts){const{interpolate}=this.__closure;const{snapDirection:snapDirection,validLength:validLength,value:value,opacityInterval:opacityInterval}=opts;let zIndex;let opacity;if(snapDirection==="left"){zIndex=Math.floor(interpolate(value,[-1.5,-1,-1+Number.MIN_VALUE,0,validLength],[Number.MIN_VALUE,validLength,validLength,validLength-1,-1])*10000)/100;opacity=interpolate(value,[-1,0,validLength-1,validLength],[0.25,1,1-(validLength-1)*opacityInterval,0.25]);}else if(snapDirection==="right"){zIndex=Math.floor(interpolate(value,[-validLength,0,1-Number.MIN_VALUE,1,1.5],[1,validLength-1,validLength,validLength,Number.MIN_VALUE])*10000)/100;opacity=interpolate(value,[-validLength,1-validLength,0,1],[0.25,1-(validLength-1)*opacityInterval,1,0.25]);}else{throw new Error("snapDirection must be set to either left or right");}return{zIndex:Math.round(zIndex),opacity:opacity};}'},interpolate:i.interpolate}),G={normal:function normalLayout(e){const{size:t,vertical:a}=e;return function reactNativeReanimatedCarousel_normalJs1Factory({_worklet_15713475302336_init_data:e,interpolate:t,size:a,vertical:n}){const reactNativeReanimatedCarousel_normalJs1=function(e){const i=t(e,[-1,0,1],[-a,0,a]);return{transform:[n?{translateY:i}:{translateX:i}]}};return reactNativeReanimatedCarousel_normalJs1.__closure={interpolate:t,size:a,vertical:n},reactNativeReanimatedCarousel_normalJs1.__workletHash=0xe4a941d13c0,reactNativeReanimatedCarousel_normalJs1.__initData=e,reactNativeReanimatedCarousel_normalJs1}({_worklet_15713475302336_init_data:A,interpolate:i.interpolate,size:t,vertical:a})},parallax:function parallaxLayout(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:a,vertical:n}=e,{parallaxScrollingOffset:o=100,parallaxScrollingScale:r=.8,parallaxAdjacentItemScale:l=r**2}=t;return function reactNativeReanimatedCarousel_parallaxJs1Factory({_worklet_1866963384135_init_data:e,interpolate:t,size:a,parallaxScrollingOffset:n,Extrapolation:i,parallaxAdjacentItemScale:o,parallaxScrollingScale:r,vertical:l}){const reactNativeReanimatedCarousel_parallaxJs1=function(e){const s=t(e,[-1,0,1],[-a+n,0,a-n]),u=Math.round(t(e,[-1,0,1],[0,a,0],i.CLAMP)),c=t(e,[-1,0,1],[o,r,o],i.
1CLAMP);return{transform:[l?{translateY:s}:{translateX:s},{scale:c}],zIndex:u}};return reactNativeReanimatedCarousel_parallaxJs1.__closure={interpolate:t,size:a,parallaxScrollingOffset:n,Extrapolation:i,parallaxAdjacentItemScale:o,parallaxScrollingScale:r,vertical:l},reactNativeReanimatedCarousel_parallaxJs1.__workletHash=1866963384135,reactNativeReanimatedCarousel_parallaxJs1.__initData=e,reactNativeReanimatedCarousel_parallaxJs1}({_worklet_1866963384135_init_data:J,interpolate:i.interpolate,size:a,parallaxScrollingOffset:o,Extrapolation:i.Extrapolation,parallaxAdjacentItemScale:l,parallaxScrollingScale:r,vertical:n})},horizontalStack:horizontalStackLayout,verticalStack:function verticalStackLayout(){return function reactNativeReanimatedCarousel_stackJs2Factory({_worklet_11345252724774_init_data:e,screen:t,modeConfig:a,getCommonVariables:n,getCommonStyles:i,interpolate:o,Extrapolation:r}){const reactNativeReanimatedCarousel_stackJs2=function(e){const{showLength:l,snapDirection:s="left",moveSize:u=t.width,stackInterval:c=18,scaleInterval:d=.04,opacityInterval:_=.1,rotateZDeg:h=30}=a,{validLength:f,value:v,inputRange:g}=n({showLength:l,value:e,snapDirection:s}),{zIndex:p,opacity:m}=i({validLength:f,value:v,opacityInterval:_,snapDirection:s});let S,w,C,D;"left"===s?(S=o(v,g,[-u,0,0],r.CLAMP),w=o(v,g,[1,1,1-f*d],r.CLAMP),C=`${o(v,g,[-h,0,0],r.CLAMP)}deg`,D=o(v,g,[0,0,f*c],r.CLAMP)):"right"===s&&(S=o(v,g,[0,0,u],r.CLAMP),w=o(v,g,[1-f*d,1,1],r.CLAMP),C=`${o(v,g,[0,0,h],r.CLAMP)}deg`,D=o(v,g,[f*c,0,0],r.CLAMP));return{transform:[{translateX:S},{scale:w},{rotateZ:C},{translateY:D}],zIndex:p,opacity:m}};return reactNativeReanimatedCarousel_stackJs2.__closure={screen:t,modeConfig:a,getCommonVariables:n,getCommonStyles:i,interpolate:o,Extrapolation:r},reactNativeReanimatedCarousel_stackJs2.__workletHash=0xa5185c23026,reactNativeReanimatedCarousel_stackJs2.__initData=e,reactNativeReanimatedCarousel_stackJs2}({_worklet_11345252724774_init_data:N,screen:M,modeConfig:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},getCommonVariables:V,getCommonStyles:T,interpolate:i.interpolate,Extrapolation:i.Extrapolation})}};const H={code:"function reactNativeReanimatedCarousel_useOnProgressChangeJs1(){const{offsetX}=this.__closure;return offsetX.value;}"},W={code:"function reactNativeReanimatedCarousel_useOnProgressChangeJs2(_value){const{computedOffsetXValueWithAutoFillData,rawDataLength,size,autoFillData,loop,onProgressChange,isFunc,runOnJS}=this.__closure;let value=computedOffsetXValueWithAutoFillData({value:_value,rawDataLength:rawDataLength,size:size,autoFillData:autoFillData,loop:loop});if(!loop){value=Math.max(-((rawDataLength-1)*size),Math.min(value,0));}let absoluteProgress=Math.abs(value/size);if(value>0)absoluteProgress=rawDataLength-absoluteProgress;if(onProgressChange){if(isFunc)runOnJS(onProgressChange)(value,absoluteProgress);else onProgressChange.value=absoluteProgress;}}"};const X={code:"function reactNativeReanimatedCarousel_useOffsetXJs1(){const{visibleRanges,index,loop,TOTAL_WIDTH,MIN,HALF_WIDTH,startPos,MAX,interpolate,handlerOffset,Extrapolation,size}=this.__closure;const{negativeRange:negativeRange,positiveRange:positiveRange}=visibleRanges.value;if(index>=negativeRange[0]&&index<=negativeRange[1]||index>=positiveRange[0]&&index<=positiveRange[1]){if(loop){const inputRange=[-TOTAL_WIDTH,MIN-HALF_WIDTH-startPos-Number.MIN_VALUE,MIN-HALF_WIDTH-startPos,0,MAX+HALF_WIDTH-startPos,MAX+HALF_WIDTH-startPos+Number.MIN_VALUE,TOTAL_WIDTH];const outputRange=[startPos,MAX+HALF_WIDTH-Number.MIN_VALUE,MIN-HALF_WIDTH,startPos,MAX+HALF_WIDTH,MIN-HALF_WIDTH+Number.MIN_VALUE,startPos];return interpolate(handlerOffset.value,inputRange,outputRange,Extrapolation.CLAMP);}return handlerOffset.value+size*index;}return Number.MAX_SAFE_INTEGER;}"},U={code:"function reactNativeReanimatedCarousel_ItemLayoutJs1(){const{x,size}=this.__closure;return x.value/size;}"},B={code:"function reactNativeReanimatedCarousel_ItemLayoutJs2(){const{animationStyle,x,size,index}=this.__closure;return animationStyle(x.value/size,index);}"},ItemLayout=e=>{const{handlerOffset:t,index:a,children:o,visibleRanges:r,animationStyle:l}=e,{props:{loop:s,dataLength:u,width:c,height:d,vertical:_,customConfig:h,mode:f,modeConfig:v}}=useGlobalState(),g=_?d:c;let p=Object.assign({handlerOffset:t,index:a,size:g,dataLength:u,loop:s},"function"==typeof h?h():{});if("horizontal-stack"===f){const{snapDirection:e,showLength:n}=v;p={handlerOffset:t,index:a,size:g,dataLength:u,loop:s,type:"right"===e?"negative":"positive",viewCount:n}}const m=((e,t)=>{const{handlerOffset:a,index:n,size:o,loop:r,dataLength:l,type:s="positive",viewCount:u}=e,c=l,d=c-1,_=o*c,h=.5*o,f=null!=u?u:Math.round((c-1)/2),v="positive"===s?f:d-f;let g=o*n;n>v&&(g=(n-c)*o);const p=v*o,m=-(d-v)*o,S=(0,i.useDerivedValue)(function reactNativeReanimatedCarousel_useOffsetXJs1Factory({_worklet_15408426523678_init_data:e,visibleRanges:t,index:a,loop:n,TOTAL_WIDTH:i,MIN:o,HALF_WIDTH:r,startPos:l,MAX:s,interpolate:u,handlerOffset:c,Extra
1polation:d,size:_}){const reactNativeReanimatedCarousel_useOffsetXJs1=function(){const{negativeRange:e,positiveRange:h}=t.value;if(a>=e[0]&&a<=e[1]||a>=h[0]&&a<=h[1]){if(n){const e=[-i,o-r-l-Number.MIN_VALUE,o-r-l,0,s+r-l,s+r-l+Number.MIN_VALUE,i],t=[l,s+r-Number.MIN_VALUE,o-r,l,s+r,o-r+Number.MIN_VALUE,l];return u(c.value,e,t,d.CLAMP)}return c.value+_*a}return Number.MAX_SAFE_INTEGER};return reactNativeReanimatedCarousel_useOffsetXJs1.__closure={visibleRanges:t,index:a,loop:n,TOTAL_WIDTH:i,MIN:o,HALF_WIDTH:r,startPos:l,MAX:s,interpolate:u,handlerOffset:c,Extrapolation:d,size:_},reactNativeReanimatedCarousel_useOffsetXJs1.__workletHash=0xe038dca1c1e,reactNativeReanimatedCarousel_useOffsetXJs1.__initData=e,reactNativeReanimatedCarousel_useOffsetXJs1}({_worklet_15408426523678_init_data:X,visibleRanges:t,index:n,loop:r,TOTAL_WIDTH:_,MIN:m,HALF_WIDTH:h,startPos:g,MAX:p,interpolate:i.interpolate,handlerOffset:a,Extrapolation:i.Extrapolation,size:o}),[r,l,f,s,o,t,a]);return S})(p,r),S=(0,i.useDerivedValue)(function reactNativeReanimatedCarousel_ItemLayoutJs1Factory({_worklet_6558319092169_init_data:e,x:t,size:a}){const reactNativeReanimatedCarousel_ItemLayoutJs1=()=>t.value/a;return reactNativeReanimatedCarousel_ItemLayoutJs1.__closure={x:t,size:a},reactNativeReanimatedCarousel_ItemLayoutJs1.__workletHash=6558319092169,reactNativeReanimatedCarousel_ItemLayoutJs1.__initData=e,reactNativeReanimatedCarousel_ItemLayoutJs1}({_worklet_6558319092169_init_data:U,x:m,size:g}),[m,g]),w=(0,i.useAnimatedStyle)(function reactNativeReanimatedCarousel_ItemLayoutJs2Factory({_worklet_4347492386759_init_data:e,animationStyle:t,x:a,size:n,index:i}){const reactNativeReanimatedCarousel_ItemLayoutJs2=()=>t(a.value/n,i);return reactNativeReanimatedCarousel_ItemLayoutJs2.__closure={animationStyle:t,x:a,size:n,index:i},reactNativeReanimatedCarousel_ItemLayoutJs2.__workletHash=4347492386759,reactNativeReanimatedCarousel_ItemLayoutJs2.__initData=e,reactNativeReanimatedCarousel_ItemLayoutJs2}({_worklet_4347492386759_init_data:B,animationStyle:l,x:m,size:g,index:a}),[l,a,m,g]);return n.createElement(i.default.View,{style:[{width:c||"100%",height:d||"100%",position:"absolute",pointerEvents:"box-none"},w],testID:`__CAROUSEL_ITEM_${a}__`},o({animationValue:S}))},Z={code:"function reactNativeReanimatedCarousel_useVisibleRangesJs1(){const{windowSize,translation,viewSize,total,loop,isArraysEqual,cachedRanges}=this.__closure;var _cachedRanges$current,_cachedRanges$current2,_cachedRanges$current3,_cachedRanges$current4;const positiveCount=Math.round(windowSize/2);const negativeCount=windowSize-positiveCount;let currentIndex=Math.round(-translation.value/viewSize);currentIndex=currentIndex<0?currentIndex%total+total:currentIndex;let newRanges;if(!loop){newRanges={negativeRange:[0+currentIndex-(windowSize-1),0+currentIndex],positiveRange:[0+currentIndex,currentIndex+(windowSize-1)]};}else{const negativeRange=[(currentIndex-negativeCount+total)%total,(currentIndex-1+total)%total];const positiveRange=[(currentIndex+total)%total,(currentIndex+positiveCount+total)%total];if(negativeRange[0]<total&&negativeRange[0]>negativeRange[1]){negativeRange[1]=total-1;positiveRange[0]=0;}if(positiveRange[0]>positiveRange[1]){negativeRange[1]=total-1;positiveRange[0]=0;}newRanges={negativeRange:negativeRange,positiveRange:positiveRange};}if(isArraysEqual((_cachedRanges$current=(_cachedRanges$current2=cachedRanges.current)===null||_cachedRanges$current2===void 0?void 0:_cachedRanges$current2.negativeRange)!==null&&_cachedRanges$current!==void 0?_cachedRanges$current:[],newRanges.negativeRange)&&isArraysEqual((_cachedRanges$current3=(_cachedRanges$current4=cachedRanges.current)===null||_cachedRanges$current4===void 0?void 0:_cachedRanges$current4.positiveRange)!==null&&_cachedRanges$current3!==void 0?_cachedRanges$current3:[],newRanges.positiveRange))return cachedRanges.current;cachedRanges.current=newRanges;return cachedRanges.current;}"};const Y=function isArraysEqual_reactNativeReanimatedCarousel_useVisibleRangesJs2Factory({_worklet_862169520800_init_data:e}){const isArraysEqual=function(e,t){return e.length===t.length&&e.every(((e,a)=>e===t[a]))};return isArraysEqual.__closure={},isArraysEqual.__workletHash=862169520800,isArraysEqual.__initData=e,isArraysEqual}({_worklet_862169520800_init_data:{code:"function isArraysEqual_reactNativeReanimatedCarousel_useVisibleRangesJs2(a,b){if(a.length!==b.length)return false;return a.every(function(value,index){return value===b[index];});}"}}),$={code:"function reactNativeReanimatedCarousel_ItemRendererJs1(){const{visibleRanges}=this.__closure;return visibleRanges.value;}"},j={code:"function reactNativeReanimatedCarousel_ItemRendererJs2(ranges){const{runOnJS,setDisplayedItems}=this.__closure;
1return runOnJS(setDisplayedItems)(ranges);}"},ItemRenderer=e=>{const{data:t,size:a,windowSize:o,handlerOffset:r,offsetX:l,dataLength:s,rawDataLength:u,loop:c,autoFillData:d,layoutConfig:_,renderItem:h,customAnimation:f}=e,v=function useVisibleRanges(e){const{total:t=0,viewSize:a,translation:o,windowSize:r,loop:l}=e,s=null!=r?r:t,u=(0,n.useRef)(null),c=(0,i.useDerivedValue)(function reactNativeReanimatedCarousel_useVisibleRangesJs1Factory({_worklet_7074525823629_init_data:e,windowSize:t,translation:a,viewSize:n,total:i,loop:o,isArraysEqual:r,cachedRanges:l}){const reactNativeReanimatedCarousel_useVisibleRangesJs1=function(){var e,s,u,c;const d=Math.round(t/2),_=t-d;let h,f=Math.round(-a.value/n);if(f=f<0?f%i+i:f,o){const e=[(f-_+i)%i,(f-1+i)%i],t=[(f+i)%i,(f+d+i)%i];e[0]<i&&e[0]>e[1]&&(e[1]=i-1,t[0]=0),t[0]>t[1]&&(e[1]=i-1,t[0]=0),h={negativeRange:e,positiveRange:t}}else h={negativeRange:[0+f-(t-1),0+f],positiveRange:[0+f,f+(t-1)]};return r(null!==(e=null===(s=l.current)||void 0===s?void 0:s.negativeRange)&&void 0!==e?e:[],h.negativeRange)&&r(null!==(u=null===(c=l.current)||void 0===c?void 0:c.positiveRange)&&void 0!==u?u:[],h.positiveRange)||(l.current=h),l.current};return reactNativeReanimatedCarousel_useVisibleRangesJs1.__closure={windowSize:t,translation:a,viewSize:n,total:i,loop:o,isArraysEqual:r,cachedRanges:l},reactNativeReanimatedCarousel_useVisibleRangesJs1.__workletHash=7074525823629,reactNativeReanimatedCarousel_useVisibleRangesJs1.__initData=e,reactNativeReanimatedCarousel_useVisibleRangesJs1}({_worklet_7074525823629_init_data:Z,windowSize:s,translation:o,viewSize:a,total:t,loop:l,isArraysEqual:Y,cachedRanges:u}),[l,t,s,o]);return c}({total:s,viewSize:a,translation:r,windowSize:o,loop:c}),[g,p]=n.useState(null);return(0,i.useAnimatedReaction)(function reactNativeReanimatedCarousel_ItemRendererJs1Factory({_worklet_14427485479597_init_data:e,visibleRanges:t}){const reactNativeReanimatedCarousel_ItemRendererJs1=()=>t.value;return reactNativeReanimatedCarousel_ItemRendererJs1.__closure={visibleRanges:t},reactNativeReanimatedCarousel_ItemRendererJs1.__workletHash=0xd1f2925a2ad,reactNativeReanimatedCarousel_ItemRendererJs1.__initData=e,reactNativeReanimatedCarousel_ItemRendererJs1}({_worklet_14427485479597_init_data:$,visibleRanges:v}),function reactNativeReanimatedCarousel_ItemRendererJs2Factory({_worklet_5044279496263_init_data:e,runOnJS:t,setDisplayedItems:a}){const reactNativeReanimatedCarousel_ItemRendererJs2=e=>t(a)(e);return reactNativeReanimatedCarousel_ItemRendererJs2.__closure={runOnJS:t,setDisplayedItems:a},reactNativeReanimatedCarousel_ItemRendererJs2.__workletHash=5044279496263,reactNativeReanimatedCarousel_ItemRendererJs2.__initData=e,reactNativeReanimatedCarousel_ItemRendererJs2}({_worklet_5044279496263_init_data:j,runOnJS:i.runOnJS,setDisplayedItems:p}),[v]),g?n.createElement(n.Fragment,null,t.map(((e,t)=>{const a=computedRealIndexWithAutoFillData({index:t,dataLength:u,loop:c,autoFillData:d}),{negativeRange:i,positiveRange:o}=g;return t>=i[0]&&t<=i[1]||t>=o[0]&&t<=o[1]?n.createElement(ItemLayout,{key:t,index:t,handlerOffset:l,visibleRanges:v,animationStyle:f||_},(t=>{let{animationValue:n}=t;return h({item:e,index:a,animationValue:n})})):null}))):null},q={code:"function reactNativeReanimatedCarousel_usePanGestureProxyJs1(e){const{userDefinedConflictGestures}=this.__closure;if(userDefinedConflictGestures.onBegin)userDefinedConflictGestures.onBegin(e);}"},Q={code:"function reactNativeReanimatedCarousel_usePanGestureProxyJs2(e){const{onGestureStart,userDefinedConflictGestures}=this.__closure;onGestureStart(e);if(userDefinedConflictGestures.onStart)userDefinedConflictGestures.onStart(e);}"},K={code:"function reactNativeReanimatedCarousel_usePanGestureProxyJs3(e){const{onGestureUpdate,userDefinedConflictGestures}=this.__closure;onGestureUpdate(e);if(userDefinedConflictGestures.onUpdate)userDefinedConflictGestures.onUpdate(e);}"},ee={code:"function reactNativeReanimatedCarousel_usePanGestureProxyJs4(e,success){const{onGestureEnd,userDefinedConflictGestures}=this.__closure;onGestureEnd(e,success);if(userDefinedConflictGestures.onEnd)userDefinedConflictGestures.onEnd(e,success);}"},te={code:"function reactNativeReanimatedCarousel_usePanGestureProxyJs5(e,success){const{userDefinedConflictGestures}=this.__closure;if(userDefinedConflictGestures.onFinalize)userDefinedConflictGestures.onFinalize(e,success);}"},usePanGestureProxy=e=>{const{onConfigurePanGesture:t,onGestureStart:a,onGestureUpdate:i,onGestureEnd:o,options:r={}}=e,l=(0,n.useMemo)((()=>{const e=L.q6.Pan().withTestId("rnrc-gesture-handler"),n={onBegin:e.onBegin,onStart:e.onStart,onUpdate:e.onUpdate,onEnd:e.onEnd,onFinalize:e.onFinalize},r={onBegin:void 0,onStart:void 0,onUpdate:void 0,onEnd:void 0,onFinalize:void 0};return e.onBegin=t=>(r.onBegin=t,e),e.onStart=t=>(r.onStart=t,e),e.onUpdate=t=>(r.onUpdate=t,e),e.onEnd=t=>(r.onEnd=t,e),e.onFinalize=t=>(r.onFinalize=t,e),t&&t(e),e.onBegin=n.onBegin,e.onStart=n.onStart,e.onUpdate=n.onUpdate,e.onEnd=n.onEnd,e.onFinalize=n.onFinalize,e.onBegin(function reactNativeReanimatedCarousel_usePanGestureProxyJs1Factory({_worklet_1500008236288_init_data:e,userDefinedConflictGestures:t}){const reactNativeReanimatedCarousel_usePanGestureProxyJs1=function(e){t.onBegin&&t.onBegin(e)};return reactNativeReanimatedCarousel_usePanGestureProxyJs1.__closure={userDefinedConflictGestures:t},reactNativeReanimatedCarousel_usePanGestureProxyJs1.__workletHash=1500008236288,reactNativeReanimatedCarousel_usePanGestureProxyJs1.__initData=e,reactNativeReanimatedCarousel_usePanGestureProxyJs1}({_worklet_1500008236288_init_data:q,userDefinedConflictGestures:r})).onStart(function reactNativeReanimatedCarousel_usePanGestureProxyJs2Factory({_worklet_6485907458448_init_data:e,onGestureStart:t,userDefinedConflictGestures:a}){const reactNativeReanimatedCarousel_usePanGestureProxyJs2=function(e){t(e),a.onStart&&a.onStart(e)};return reactNativeReanimatedCarousel_usePanGestureProxyJs2.__closure={onGestureStart:t,userDefinedConflictGestures:a},reactNativeReanimatedCarousel_usePanGestureProxyJs2.__workletHash=6485907458448,reactNativeReanimatedCarousel_usePanGestureProxyJs2.__initData=e,reactNativeReanimatedCarousel_usePanGestureProxyJs2}({_worklet_6485907458448_init_data:Q,onGestureStart:a,userDefinedConflictGestures:r})).onUpdate(function reactNativeReanimatedCarousel_usePanGestureProxyJs3Factory({_worklet_15290733921361_init_data:e,onGestureUpdate:t,userDefinedConflictGestures:a}){const reactNativeReanimatedCarousel_usePanGestureProxyJs3=function(e){t(e),a.onUpdate&&a.onUpdate(e)};return reactNativeReanimatedCarousel_usePanGestureProxyJs3.__closure={onGestureUpdate:t,userDefinedConflictGestures:a},reactNativeReanimatedCarousel_usePanGestureProxyJs3.__workletHash=0xde826c38451,reactNativeReanimatedCarousel_usePanGestureProxyJs3.__initData=e,reactNativeReanimatedCarousel_usePanGestureProxyJs3}({_worklet_15290733921361_init_data:K,onGestureUpdate:i,userDefinedConflictGestures:r})).onEnd(function reactNativeReanimatedCarousel_usePanGestureProxyJs4Factory({_worklet_13405067841209_init_data:e,onGestureEnd:t,userDefinedConflictGestures:a}){const reactNativeReanimatedCarousel_usePanGestureProxyJs4=function(e,n){t(e,n),a.onEnd&&a.onEnd(e,n)};return reactNativeReanimatedCarousel_usePanGestureProxyJs4.__closure={onGestureEnd:t,userDefinedConflictGestures:a},reactNativeReanimatedCarousel_usePanGestureProxyJs4.__workletHash=0xc311c4e8eb9,reactNativeReanimatedCarousel_usePanGestureProxyJs4.__initData=e,reactNativeReanimatedCarousel_usePanGestureProxyJs4}({_worklet_13405067841209_init_data:ee,onGestureEnd:o,userDefinedConflictGestures:r})).onFinalize(function reactNativeReanimatedCarousel_usePanGestureProxyJs5Factory({_worklet_2299975325956_init_data:e,userDefinedConflictGestures:t}){const reactNativeReanimatedCarousel_usePanGestureProxyJs5=function(e,a){t.onFinalize&&t.onFinalize(e,a)};return reactNativeReanimatedCarousel_usePanGestureProxyJs5.__closure={userDefinedConflictGestures:t},reactNativeReanimatedCarousel_usePanGestureProxyJs5.__workletHash=2299975325956,reactNativeReanimatedCarousel_usePanGestureProxyJs5.__initData=e,reactNativeReanimatedCarousel_usePanGestureProxyJs5}({_worklet_2299975325956_init_data:te,userDefinedConflictGestures:r})),e}),[a,i,o,t]);return((e,t)=>{const{enabled:a}=t;(0,n.useEffect)((()=>{void 0!==a&&e.enabled(a)}),[a,e])})(l,r),l},ae={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs1(){const{vertical}=this.__closure;return!vertical;}"},ne={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs2(){const{loop,overscrollEnabled,measure,containerRef,dataLength,size}=this.__closure;if(!loop&&!overscrollEnabled){const measurement=measure(containerRef);const containerWidth=(measurement===null||measurement===void 0?void 0:measurement.width)||0;if(dataLength*size<containerWidth)return 0;return dataLength*size-containerWidth;}return dataLength*size;}"},ie={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs3(isFinished){const{onFinished,runOnJS}=this.__closure;if(isFinished)onFinished&&runOnJS(onFinished)();}"},oe={code:'function reactNativeReanimatedCarousel_ScrollViewGestureJs4(toValue,onFinished){const{scrollAnimationDuration,Easing,dealWithAnimation,withAnimation,_worklet_1967854351966_init_data,runOnJS}=this.__closure;const defaultWithAnimation={type:"timing",config:{duration:scrollAnimationDuration+100,easing:Easing.easeOutQuart}};return dealWithAnimation(withAnimation!==null&&withAnimation!==void 0?withAnimation:defaultWithAnimation)(toValue,function reactNativeReanimatedCarousel_ScrollViewGestureJs3Factory({_worklet_1967854351966_init_data:_worklet_1967854351966_init_data,onFinished:onFinished,runOnJS:runOnJS}){const reactNativeReanimatedCarousel_ScrollViewGestureJs3=function(isFinished){if(isFinished)onFinished&&runOnJS(onFinished)();};reactNativeReanimatedCarousel_ScrollViewGestureJs3.__closure={onFinished:onFinished,runOnJS:runOnJS};reactNativeReanimatedCarousel_ScrollViewGestureJs3.__workletHash=1967854351966;reactNativeReanimatedCarousel_ScrollViewGestureJs3.__initData=_worklet_1967854351966_init_data;return reactNativeReanimatedCarousel_ScrollViewGestureJs3;}({_worklet_1967854351966_init_data:_worklet_1967854351966_init_data,onFinished:onFinished,runOnJS:runOnJS}));}'},re={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs5(scrollEndTranslationValue,scrollEndVelocityValue,onFinished){const{translation,withDecay,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,size,pagingEnabled,withSpring,loop,maxPage,snapEnabled,overscrollEnabled,getLimit}=this.__closure;const origin=translation.value;const velocity=scrollEndVelocityValue;let finalTranslation=withDecay({velocity:velocity,deceleration:0.999});if(maxScrollDistancePerSwipeIsSet&&Math.abs(scrollEndTranslationValue)>maxScrollDistancePerSwipe){finalTranslation=origin;}else{const nextPage=-Math.round((origin+velocity*2)/size);if(pagingEnabled){const offset=-(scrollEndTranslationValue>=0?1:-1);const computed=offset<0?Math.ceil:Math.floor;const page=computed(-origin/size);const velocityDirection=-Math.sign(velocity);if(page===nextPage||velocityDirection!==offset){finalTranslation=withSpring(withProcessTranslation(-page*size),onFinished);}else if(loop){const finalPage=page+offset;finalTranslation=withSpring(withProcessTranslation(-finalPage*size),onFinished);}else{const finalPage=Math.min(maxPage-1,Math.max(0,page+offset));finalTranslation=withSpring(withProcessTranslation(-finalPage*size),onFinished);}}if(!pagingEnabled&&snapEnabled){finalTranslation=withSpring(withProcessTranslation(-nextPage*size),onFinished);}}translation.value=finalTranslation;function withProcessTranslation(translation){if(!loop&&!overscrollEnabled){const limit=getLimit();const sign=Math.sign(translation);return sign*Math.max(0,Math.min(limit,Math.abs(translation)));}return translation;}}"},le={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs6(isFinished){const{touching,onScrollEnd,runOnJS}=this.__closure;if(isFinished){touching.value=false;onScrollEnd&&runOnJS(onScrollEnd)();}}"},se={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs7(){const{touching,translation,withDecay,scrollEndVelocity,onFinish}=this.__closure;touching.value=true;translation.value=withDecay({velocity:scrollEndVelocity.value},function(isFinished){return onFinish(isFinished);});}"},ue={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs8(isFinished){const{onFinish}=this.__closure;return onFinish(isFinished);}"},ce={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs9(){const{touching,translation,scrollEndTranslation,activeDecay,loop,withSpring,maxPage,size}=this.__closure;if(touching.value)return;if(translation.value>0){if(scrollEndTranslation.value<0){activeDecay();return;}if(!loop){translation.value=withSpring(0);return;}}if(translation.value<-((maxPage-1)*size)){if(scrollEndTranslation.value>0){activeDecay();return;}if(!loop)translation.value=withSpring(-((maxPage-1)*size));}}"},de={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs10(){const{translation}=this.__closure;return translation.value;}"},_e={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs11(){const{pagingEnabled,resetBoundary}=this.__closure;if(!pagingEnabled)resetBoundary();}"},he={code:"function withProcessTranslation_reactNativeReanimatedCarousel_ScrollViewGestureJs12(translation){const{loop,overscrollEnabled,getLimit}=this.__closure;if(!loop&&!overscrollEnabled){const limit=getLimit();const sign=Math.sign(translation);return sign*Math.max(0,Math.min(limit,Math.abs(translation)));}return translation;}"},fe={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs13(_){const{touching,validStart,onScrollStart,runOnJS,max,maxPage,size,loop,overscrollEnabled,getLimit,panOffset,translation}=this.__closure;touching.value=true;validStart.value=true;onScrollStart&&runOnJS(onScrollStart)();max.value=(maxPage-1)*size;if(!loop&&!overscrollEnabled)max.value=getLimit();panOffset.value=translation.value;}"},ve={code:'function reactNativeReanimatedCarousel_ScrollViewGestureJs14(e){const{panOffset,validStart,cancelAnimation,translation,touching,isHorizontal,fixedDirection,loop,max}=this.__closure;if(panOffset.value===undefined){return;}if(validStart.value){validStart.value=false;cancelAnimation(translation);}touching.value=true;const{translationX:translationX,translationY:translationY}=e;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);if(!loop){if(translation.value>0||translation.value<-max.value){const boundary=translation.value>0?0:-max.value;const fixed=boundary-panOffset.value;const dynamic=panTranslation-fixed;translation.value=boundary+dynamic*0.5;return;}}const translationValue=panOffset.value+panTranslation;translation.value=translationValue;}'},ge={code:'function reactNativeReanimatedCarousel_ScrollViewGestureJs15(e,_success){const{panOffset,isHorizontal,scrollEndVelocity,fixedDirection,scrollEndTranslation,maxScrollDistancePerSwipeIsSet,maxScrollDistancePerSwipe,size,translation,withSpring,withProcessTranslation,onScrollEnd,minScrollDistancePerSwipeIsSet,minScrollDistancePerSwipe,endWithSpring,loop,touching}=this.__closure;if(panOffset.value===undefined){return;}const{velocityX:velocityX,velocityY:velocityY,translationX:translationX,translationY:translationY}=e;const scrollEndVelocityValue=isHorizontal.value?velocityX:velocityY;scrollEndVelocity.value=scrollEndVelocityValue;let panTranslation=isHorizontal.value?translationX:translationY;if(fixedDirection==="negative")panTranslation=-Math.abs(panTranslation);else if(fixedDirection==="positive")panTranslation=+Math.abs(panTranslation);scrollEndTranslation.value=panTranslation;const totalTranslation=scrollEndVelocityValue+panTranslation;if(maxScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)>maxScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+maxScrollDistancePerSwipe*Math.sign(totalTranslation))/size)*size;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else if(minScrollDistancePerSwipeIsSet&&Math.abs(totalTranslation)<minScrollDistancePerSwipe){const nextPage=Math.round((panOffset.value+minScrollDistancePerSwipe*Ma
1th.sign(totalTranslation))/size)*size;translation.value=withSpring(withProcessTranslation(nextPage),onScrollEnd);}else{endWithSpring(panTranslation,scrollEndVelocityValue,onScrollEnd);}if(!loop)touching.value=false;panOffset.value=undefined;}'},pe={code:"function reactNativeReanimatedCarousel_ScrollViewGestureJs16(e){const{updateContainerSize}=this.__closure;updateContainerSize({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height});}"},ScrollViewGesture=e=>{const{props:{onConfigurePanGesture:t,vertical:a,pagingEnabled:o,snapEnabled:r,loop:l,scrollAnimationDuration:s,withAnimation:u,enabled:c,dataLength:d,overscrollEnabled:_,maxScrollDistancePerSwipe:h,minScrollDistancePerSwipe:v,fixedDirection:g},common:{size:p},layout:{updateContainerSize:m}}=useGlobalState(),{translation:S,testID:w,style:C={},onScrollStart:D,onScrollEnd:x,onTouchBegin:E,onTouchEnd:I}=e,R=d,y=(0,i.useDerivedValue)(function reactNativeReanimatedCarousel_ScrollViewGestureJs1Factory({_worklet_14673809227686_init_data:e,vertical:t}){const reactNativeReanimatedCarousel_ScrollViewGestureJs1=()=>!t;return reactNativeReanimatedCarousel_ScrollViewGestureJs1.__closure={vertical:t},reactNativeReanimatedCarousel_ScrollViewGestureJs1.__workletHash=0xd58832fbfa6,reactNativeReanimatedCarousel_ScrollViewGestureJs1.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs1}({_worklet_14673809227686_init_data:ae,vertical:a}),[a]),b=(0,i.useSharedValue)(0),k=(0,i.useSharedValue)(void 0),F=(0,i.useSharedValue)(!1),O=(0,i.useSharedValue)(!1),A=(0,i.useSharedValue)(0),J=(0,i.useSharedValue)(0),M=(0,i.useAnimatedRef)(),P="number"==typeof h,N="number"==typeof v,V=n.useCallback(function reactNativeReanimatedCarousel_ScrollViewGestureJs2Factory({_worklet_5300161616802_init_data:e,loop:t,overscrollEnabled:a,measure:n,containerRef:i,dataLength:o,size:r}){const reactNativeReanimatedCarousel_ScrollViewGestureJs2=function(){if(!t&&!a){const e=n(i),t=(null==e?void 0:e.width)||0;return o*r<t?0:o*r-t}return o*r};return reactNativeReanimatedCarousel_ScrollViewGestureJs2.__closure={loop:t,overscrollEnabled:a,measure:n,containerRef:i,dataLength:o,size:r},reactNativeReanimatedCarousel_ScrollViewGestureJs2.__workletHash=5300161616802,reactNativeReanimatedCarousel_ScrollViewGestureJs2.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs2}({_worklet_5300161616802_init_data:ne,loop:l,overscrollEnabled:_,measure:i.measure,containerRef:M,dataLength:d,size:p}),[l,p,d,_]),T=n.useCallback(function reactNativeReanimatedCarousel_ScrollViewGestureJs4Factory({_worklet_4480551938335_init_data:e,scrollAnimationDuration:t,Easing:a,dealWithAnimation:n,withAnimation:i,_worklet_1967854351966_init_data:o,runOnJS:r}){const reactNativeReanimatedCarousel_ScrollViewGestureJs4=function(e,l){const s={type:"timing",config:{duration:t+100,easing:a.easeOutQuart}};return n(null!=i?i:s)(e,function reactNativeReanimatedCarousel_ScrollViewGestureJs3Factory({_worklet_1967854351966_init_data:e,onFinished:t,runOnJS:a}){const reactNativeReanimatedCarousel_ScrollViewGestureJs3=function(e){e&&t&&a(t)()};return reactNativeReanimatedCarousel_ScrollViewGestureJs3.__closure={onFinished:t,runOnJS:a},reactNativeReanimatedCarousel_ScrollViewGestureJs3.__workletHash=1967854351966,reactNativeReanimatedCarousel_ScrollViewGestureJs3.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs3}({_worklet_1967854351966_init_data:o,onFinished:l,runOnJS:r}))};return reactNativeReanimatedCarousel_ScrollViewGestureJs4.__closure={scrollAnimationDuration:t,Easing:a,dealWithAnimation:n,withAnimation:i,_worklet_1967854351966_init_data:o,runOnJS:r},reactNativeReanimatedCarousel_ScrollViewGestureJs4.__workletHash=4480551938335,reactNativeReanimatedCarousel_ScrollViewGestureJs4.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs4}({_worklet_4480551938335_init_data:oe,scrollAnimationDuration:s,Easing:f,dealWithAnimation:z,withAnimation:u,_worklet_1967854351966_init_data:ie,runOnJS:i.runOnJS}),[s,u]),G=n.useCallback(function reactNativeReanimatedCarousel_ScrollViewGestureJs5Factory({_worklet_10187379433656_init_data:e,translation:t,withDecay:a,maxScrollDistancePerSwipeIsSet:n,maxScrollDistancePerSwipe:i,size:o,pagingEnabled:r,withSpring:l,loop:s,maxPage:u,snapEnabled:c,overscrollEnabled:d,getLimit:_}){const reactNativeReanimatedCarousel_ScrollViewGestureJs5=function(e,h,f){const v=t.value,g=h;let p=a({velocity:g,deceleration:.999});if(n&&Math.abs(e)>i)p=v;else{const t=-Math.round((v+2*g)/o);if(r){const a=-(e>=0?1:-1),n=(a<0?Math.ceil:Math.floor)(-v/o),i=-Math.sign(g);if(n===t||i!==a)p=l(withProcessTranslation(-n*o),f);else if(s){p=l(withProcessTranslation(-(n+a)*o),f)}else{const e=Math.min(u-1,Math.max(0,n+a));p=l(withProcessTranslation(-e*o),f)}}!r&&c&&(p=l(withProcessTranslation(-t*o),f))}function withProcessTranslation(e){if(!s&&!d){const t=_();return Math.sign(e)*Math.max(0,Math.min(t,Math.abs(e)))}return e}t.value=p};return reactNativeReanimatedCarousel_ScrollViewGestureJs5.__closure={translation:t,withDecay:a,maxScrollDistancePerSwipeIsSet:n,maxScrollDistancePerSwipe:i,size:o,pagingEnabled:r,withSpring:l,loop:s,maxPage:u,snapEnabled:c,overscrollEnabled:d,getLimit:_},reactNativeReanimatedCarousel_ScrollViewGestureJs5.__workletHash=0x943ef21e0b8,reactNativeReanimatedCarousel_ScrollViewGestureJs5.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs5}({_worklet_10187379433656_init_data:re,translation:S,withDecay:i.withDecay,maxScrollDistancePerSwipeIsSet:P,maxScrollDistancePerSwipe:h,size:p,pagingEnabled:o,withSpring:T,loop:l,maxPage:R,snapEnabled:r,overscrollEnabled:_,getLimit:V}),[T,p,R,l,r,S,o,h,P]),H=n.useCallback(function reactNativeReanimatedCarousel_ScrollViewGestureJs6Factory({_worklet_555825479167_init_data:e,touching:t,onScrollEnd:a,runOnJS:n}){const reactNativeReanimatedCarousel_ScrollViewGestureJs6=function(e){e&&(t.value=!1,a&&n(a)())};return reactNativeReanimatedCarousel_ScrollViewGestureJs6.__closure={touching:t,onScrollEnd:a,runOnJS:n},reactNativeReanimatedCarousel_ScrollViewGestureJs6.__workletHash=555825479167,reactNativeReanimatedCarousel_ScrollViewGestureJs6.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs6}({_worklet_555825479167_init_data:le,touching:F,onScrollEnd:x,runOnJS:i.runOnJS}),[x,F]),W=n.useCallback(function reactNativeReanimatedCarousel_ScrollViewGestureJs7Factory({_worklet_11260436326608_init_data:e,touching:t,translation:a,withDecay:n,scrollEndVelocity:i,onFinish:o}){const reactNativeReanimatedCarousel_ScrollViewGestureJs7=function(){t.value=!0,a.value=n({velocity:i.value},function reactNativeReanimatedCarousel_ScrollViewGestureJs8Factory({_worklet_6011478160623_init_data:e,onFinish:t}){const reactNativeReanimatedCarousel_ScrollViewGestureJs8=e=>t(e);return reactNativeReanimatedCarousel_ScrollViewGestureJs8.__closure={onFinish:t},reactNativeReanimatedCarousel_ScrollViewGestureJs8.__workletHash=6011478160623,reactNativeReanimatedCarousel_ScrollViewGestureJs8.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs8}({_worklet_6011478160623_init_data:ue,onFinish:o}))};return reactNativeReanimatedCarousel_ScrollViewGestureJs7.__closure={touching:t,translation:a,withDecay:n,scrollEndVelocity:i,onFinish:o},reactNativeReanimatedCarousel_ScrollViewGestureJs7.__workletHash=0xa3dc64ea8d0,reactNativeReanimatedCarousel_ScrollViewGestureJs7.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs7}({_worklet_11260436326608_init_data:se,touching:F,translation:S,withDecay:i.withDecay,scrollEndVelocity:J,onFinish:H}),[H,J,F,S]),X=n.useCallback(function reactNativeReanimatedCarousel_ScrollViewGestureJs9Factory({_worklet_15876891668518_init_data:e,touching:t,translation:a,scrollEndTranslation:n,activeDecay:i,loop:o,withSpring:r,maxPage:l,size:s}){const reactNativeReanimatedCarousel_ScrollViewGestureJs9=function(){if(!t.value){if(a.value>0){if(n.value<0)return void i();if(!o)return void(a.value=r(0))}if(a.value<-(l-1)*s){if(n.value>0)return void i();o||(a.value=r(-(l-1)*s))}}};return reactNativeReanimatedCarousel_ScrollViewGestureJs9.__closure={touching:t,translation:a,scrollEndTranslation:n,activeDecay:i,loop:o,withSpring:r,maxPage:l,size:s},reactNativeReanimatedCarousel_ScrollViewGestureJs9.__workletHash=0xe70a07cf026,reactNativeReanimatedCarousel_ScrollViewGestureJs9.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs9}({_worklet_15876891668518_init_data:ce,touching:F,translation:S,scrollEndTranslation:A,activeDecay:W,loop:l,withSpring:T,maxPage:R,size:p}),[F,S,R,p,A,l,W,T]);(0,i.useAnimatedReaction)(function reactNativeReanimatedCarousel_ScrollViewGestureJs10Factory({_worklet_1264267512882_init_data:e,translation:t}){const reactNativeReanimatedCarousel_ScrollViewGestureJs10=()=>t.value;return reactNativeReanimatedCarousel_ScrollViewGestureJs10.__closure={translation:t},reactNativeReanimatedCarousel_ScrollViewGestureJs10.__workletHash=1264267512882,reactNativeReanimatedCarousel_ScrollViewGestureJs10.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs10}({_worklet_1264267512882_init_data:de,translation:S}
1),function reactNativeReanimatedCarousel_ScrollViewGestureJs11Factory({_worklet_10212387055870_init_data:e,pagingEnabled:t,resetBoundary:a}){const reactNativeReanimatedCarousel_ScrollViewGestureJs11=function(){t||a()};return reactNativeReanimatedCarousel_ScrollViewGestureJs11.__closure={pagingEnabled:t,resetBoundary:a},reactNativeReanimatedCarousel_ScrollViewGestureJs11.__workletHash=0x949c1b3e8fe,reactNativeReanimatedCarousel_ScrollViewGestureJs11.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs11}({_worklet_10212387055870_init_data:_e,pagingEnabled:o,resetBoundary:X}),[o,X]);const U=function withProcessTranslation_reactNativeReanimatedCarousel_ScrollViewGestureJs12Factory({_worklet_9779112541943_init_data:e,loop:t,overscrollEnabled:a,getLimit:n}){const withProcessTranslation=function(e){if(!t&&!a){const t=n();return Math.sign(e)*Math.max(0,Math.min(t,Math.abs(e)))}return e};return withProcessTranslation.__closure={loop:t,overscrollEnabled:a,getLimit:n},withProcessTranslation.__workletHash=9779112541943,withProcessTranslation.__initData=e,withProcessTranslation}({_worklet_9779112541943_init_data:he,loop:l,overscrollEnabled:_,getLimit:V}),B=(0,n.useCallback)(function reactNativeReanimatedCarousel_ScrollViewGestureJs13Factory({_worklet_8168457730699_init_data:e,touching:t,validStart:a,onScrollStart:n,runOnJS:i,max:o,maxPage:r,size:l,loop:s,overscrollEnabled:u,getLimit:c,panOffset:d,translation:_}){const reactNativeReanimatedCarousel_ScrollViewGestureJs13=function(e){t.value=!0,a.value=!0,n&&i(n)(),o.value=(r-1)*l,s||u||(o.value=c()),d.value=_.value};return reactNativeReanimatedCarousel_ScrollViewGestureJs13.__closure={touching:t,validStart:a,onScrollStart:n,runOnJS:i,max:o,maxPage:r,size:l,loop:s,overscrollEnabled:u,getLimit:c,panOffset:d,translation:_},reactNativeReanimatedCarousel_ScrollViewGestureJs13.__workletHash=8168457730699,reactNativeReanimatedCarousel_ScrollViewGestureJs13.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs13}({_worklet_8168457730699_init_data:fe,touching:F,validStart:O,onScrollStart:D,runOnJS:i.runOnJS,max:b,maxPage:R,size:p,loop:l,overscrollEnabled:_,getLimit:V,panOffset:k,translation:S}),[b,p,R,l,F,k,O,S,_,V,D]),Z=(0,n.useCallback)(function reactNativeReanimatedCarousel_ScrollViewGestureJs14Factory({_worklet_7229186468044_init_data:e,panOffset:t,validStart:a,cancelAnimation:n,translation:i,touching:o,isHorizontal:r,fixedDirection:l,loop:s,max:u}){const reactNativeReanimatedCarousel_ScrollViewGestureJs14=function(e){if(void 0===t.value)return;a.value&&(a.value=!1,n(i)),o.value=!0;const{translationX:c,translationY:d}=e;let _=r.value?c:d;if("negative"===l?_=-Math.abs(_):"positive"===l&&(_=+Math.abs(_)),!s&&(i.value>0||i.value<-u.value)){const e=i.value>0?0:-u.value,a=_-(e-t.value);return void(i.value=e+.5*a)}const h=t.value+_;i.value=h};return reactNativeReanimatedCarousel_ScrollViewGestureJs14.__closure={panOffset:t,validStart:a,cancelAnimation:n,translation:i,touching:o,isHorizontal:r,fixedDirection:l,loop:s,max:u},reactNativeReanimatedCarousel_ScrollViewGestureJs14.__workletHash=7229186468044,reactNativeReanimatedCarousel_ScrollViewGestureJs14.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs14}({_worklet_7229186468044_init_data:ve,panOffset:k,validStart:O,cancelAnimation:i.cancelAnimation,translation:S,touching:F,isHorizontal:y,fixedDirection:g,loop:l,max:b}),[y,b,k,l,_,g,S,O,F]),Y=(0,n.useCallback)(function reactNativeReanimatedCarousel_ScrollViewGestureJs15Factory({_worklet_5983470128731_init_data:e,panOffset:t,isHorizontal:a,scrollEndVelocity:n,fixedDirection:i,scrollEndTranslation:o,maxScrollDistancePerSwipeIsSet:r,maxScrollDistancePerSwipe:l,size:s,translation:u,withSpring:c,withProcessTranslation:d,onScrollEnd:_,minScrollDistancePerSwipeIsSet:h,minScrollDistancePerSwipe:f,endWithSpring:v,loop:g,touching:p}){const reactNativeReanimatedCarousel_ScrollViewGestureJs15=function(e,m){if(void 0===t.value)return;const{velocityX:S,velocityY:w,translationX:C,translationY:D}=e,x=a.value?S:w;n.value=x;let L=a.value?C:D;"negative"===i?L=-Math.abs(L):"positive"===i&&(L=+Math.abs(L)),o.value=L;const E=x+L;if(r&&Math.abs(E)>l){const e=Math.round((t.value+l*Math.sign(E))/s)*s;u.value=c(d(e),_)}else if(h&&Math.abs(E)<f){const e=Math.round((t.value+f*Math.sign(E))/s)*s;u.value=c(d(e),_)}else v(L,x,_);g||(p.value=!1),t.value=void 0};return reactNativeReanimatedCarousel_ScrollViewGestureJs15.__closure={panOffset:t,isHorizontal:a,scrollEndVelocity:n,fixedDirection:i,scrollEndTranslation:o,maxScrollDistancePerSwipeIsSet:r,maxScrollDistancePerSwipe:l,size:s,translation:u,withSpring:c,withProcessTranslation:d,onScrollEnd:_,minScrollDistancePerSwipeIsSet:h,minScrollDistancePerSwipe:f,endWithSpring:v,loop:g,touching:p},reactNativeReanimatedCarousel_ScrollViewGestureJs15.__workletHash=5983470128731,reactNativeReanimatedCarousel_ScrollViewGestureJs15.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs15}({_worklet_5983470128731_init_data:ge,panOffset:k,isHorizontal:y,scrollEndVelocity:J,fixedDirection:g,scrollEndTranslation:A,maxScrollDistancePerSwipeIsSet:P,maxScrollDistancePerSwipe:h,size:p,translation:S,withSpring:T,withProcessTranslation:U,onScrollEnd:x,minScrollDistancePerSwipeIsSet:N,minScrollDistancePerSwipe:v,endWithSpring:G,loop:l,touching:F}
1),[p,l,F,k,S,y,J,A,g,P,h,P,v,G,T,x]),$=usePanGestureProxy({onConfigurePanGesture:t,onGestureStart:B,onGestureUpdate:Z,onGestureEnd:Y,options:{enabled:c}}),j=n.useCallback(function reactNativeReanimatedCarousel_ScrollViewGestureJs16Factory({_worklet_15427155763157_init_data:e,updateContainerSize:t}){const reactNativeReanimatedCarousel_ScrollViewGestureJs16=function(e){t({width:e.nativeEvent.layout.width,height:e.nativeEvent.layout.height})};return reactNativeReanimatedCarousel_ScrollViewGestureJs16.__closure={updateContainerSize:t},reactNativeReanimatedCarousel_ScrollViewGestureJs16.__workletHash=0xe07ea239fd5,reactNativeReanimatedCarousel_ScrollViewGestureJs16.__initData=e,reactNativeReanimatedCarousel_ScrollViewGestureJs16}({_worklet_15427155763157_init_data:pe,updateContainerSize:m}),[m]);return n.createElement(L.Sl,{gesture:$},n.createElement(i.default.View,{ref:M,testID:w,style:C,onTouchStart:E,onTouchEnd:I,onLayout:j},e.children))},me={code:"function reactNativeReanimatedCarousel_CarouselLayoutJs1(){const{size,dataLength,handlerOffset,loop}=this.__closure;const totalSize=size*dataLength;const x=handlerOffset.value%totalSize;if(!loop)return handlerOffset.value;return Number.isNaN(x)?0:x;}"},Se={code:'function reactNativeReanimatedCarousel_CarouselLayoutJs2(){const{width,height}=this.__closure;return{width:width||"100%",height:height||"100%"};}'},we=n.forwardRef(((e,t)=>{const{props:a,layout:o}=useGlobalState(),{itemDimensions:r}=o,{testID:l,loop:u,autoFillData:c,data:d,dataLength:_,rawDataLength:h,mode:v,style:g,containerStyle:p,width:w,height:C,vertical:D,autoPlay:x,windowSize:E,autoPlayReverse:I,autoPlayInterval:A,scrollAnimationDuration:J,withAnimation:M,fixedDirection:P,renderItem:N,onScrollEnd:V,onSnapToItem:T,onScrollStart:X,onProgressChange:U,customAnimation:B,defaultIndex:Z}=a,Y=useCommonVariables(a),{size:$,handlerOffset:j}=Y,q=function useLayoutConfig(e){const{size:t,vertical:a}=e;return n.useMemo((()=>{const n={size:t,vertical:a};switch(e.mode){case"parallax":return G.parallax(n,e.modeConfig);case"horizontal-stack":return G.horizontalStack(e.modeConfig);case"vertical-stack":return G.verticalStack(e.modeConfig);default:return G.normal(n)}}),[e.mode,e.modeConfig,t,a])}(Object.assign({},a,{size:$})),Q=(0,i.useDerivedValue)(function reactNativeReanimatedCarousel_CarouselLayoutJs1Factory({_worklet_4986430493784_init_data:e,size:t,dataLength:a,handlerOffset:n,loop:i}){const reactNativeReanimatedCarousel_CarouselLayoutJs1=function(){const e=t*a,o=n.value%e;return i?Number.isNaN(o)?0:o:n.value};return reactNativeReanimatedCarousel_CarouselLayoutJs1.__closure={size:t,dataLength:a,handlerOffset:n,loop:i},reactNativeReanimatedCarousel_CarouselLayoutJs1.__workletHash=4986430493784,reactNativeReanimatedCarousel_CarouselLayoutJs1.__initData=e,reactNativeReanimatedCarousel_CarouselLayoutJs1}({_worklet_4986430493784_init_data:me,size:$,dataLength:_,handlerOffset:j,loop:u}),[u,$,_,j]);!function useOnProgressChange(e){const{autoFillData:t,loop:a,offsetX:n,size:o,rawDataLength:r,onProgressChange:l}=e,s="function"==typeof l;(0,i.useAnimatedReaction)(function reactNativeReanimatedCarousel_useOnProgressChangeJs1Factory({_worklet_4224304859996_init_data:e,offsetX:t}){const reactNativeReanimatedCarousel_useOnProgressChangeJs1=()=>t.value;return reactNativeReanimatedCarousel_useOnProgressChangeJs1.__closure={offsetX:t},reactNativeReanimatedCarousel_useOnProgressChangeJs1.__workletHash=4224304859996,reactNativeReanimatedCarousel_useOnProgressChangeJs1.__initData=e,reactNativeReanimatedCarousel_useOnProgressChangeJs1}({_worklet_4224304859996_init_data:H,offsetX:n}),function reactNativeReanimatedCarousel_useOnProgressChangeJs2Factory({_worklet_12907431502618_init_data:e,computedOffsetXValueWithAutoFillData:t,rawDataLength:a,size:n,autoFillData:i,loop:o,onProgressChange:r,isFunc:l,runOnJS:s}){const reactNativeReanimatedCarousel_useOnProgressChangeJs2=function(e){let u=t({value:e,rawDataLength:a,size:n,autoFillData:i,loop:o});o||(u=Math.max(-(a-1)*n,Math.min(u,0)));let c=Math.abs(u/n);u>0&&(c=a-c),r&&(l?s(r)(u,c):r.value=c)};return reactNativeReanimatedCarousel_useOnProgressChangeJs2.__closure={computedOffsetXValueWithAutoFillData:t,rawDataLength:a,size:n,autoFillData:i,loop:o,onProgressChange:r,isFunc:l,runOnJS:s},reactNativeReanimatedCarousel_useOnProgressChangeJs2.__workletHash=0xbbd3edea31a,reactNativeReanimatedCarousel_useOnProgressChangeJs2.__initData=e,reactNativeReanimatedCarousel_useOnProgressChangeJs2}({_worklet_12907431502618_init_data:W,computedOffsetXValueWithAutoFillData:S,rawDataLength:r,size:o,autoFillData:t,loop:a,onProgressChange:l,isFunc:s,runOnJS:i.runOnJS}),[a,t,r,l,o])}({autoFillData:c,loop:u,size:$,offsetX:Q,rawDataLength:h,onProgressChange:U});const K=function useCarouselController(e){const{ref:t,size:a,loop:o,dataLength:r,handlerOffset:l,withAnimation:u,defaultIndex:c=0,duration:d,autoFillData:_,fixedDirection:h}=e,v=useGlobalState(),{props:{overscrollEnabled:g},layout:{containerSize:p}}=v,S=n.useMemo((()=>({length:r,disable:!r,originalLength:r})),[r]),w=(0,i.useSharedValue)(c),C=(0,n.useRef)(c),D=(0,n.useRef)(c),x=n.useCallback((()=>
1{if(o)return-Math.round(l.value/a);const e=l.value/a%S.length;return Math.round(l.value<=0?Math.abs(e):Math.abs(e>0?S.length-e:0))}),[l,S,a,o]);(0,i.useAnimatedReaction)(function reactNativeReanimatedCarousel_useCarouselControllerJs1Factory({_worklet_5289488520494_init_data:e,handlerOffset:t,round:a,size:n,dataInfo:i,convertToSharedIndex:o,loop:r,autoFillData:l}){const reactNativeReanimatedCarousel_useCarouselControllerJs1=function(){const e=t.value,s=a(e/n)%i.length,u=e<=0?Math.abs(s):Math.abs(s>0?i.length-s:0);return{i:u,newSharedIndexValue:o({loop:r,rawDataLength:i.originalLength,autoFillData:l,index:u})}};return reactNativeReanimatedCarousel_useCarouselControllerJs1.__closure={handlerOffset:t,round:a,size:n,dataInfo:i,convertToSharedIndex:o,loop:r,autoFillData:l},reactNativeReanimatedCarousel_useCarouselControllerJs1.__workletHash=5289488520494,reactNativeReanimatedCarousel_useCarouselControllerJs1.__initData=e,reactNativeReanimatedCarousel_useCarouselControllerJs1}({_worklet_5289488520494_init_data:y,handlerOffset:l,round:R,size:a,dataInfo:S,convertToSharedIndex:m,loop:o,autoFillData:_}),function reactNativeReanimatedCarousel_useCarouselControllerJs2Factory({_worklet_12360719814301_init_data:e,index:t,runOnJS:a,setSharedIndex:n}){const reactNativeReanimatedCarousel_useCarouselControllerJs2=function(e){let{i,newSharedIndexValue:o}=e;t.value=i,a(n)(o)};return reactNativeReanimatedCarousel_useCarouselControllerJs2.__closure={index:t,runOnJS:a,setSharedIndex:n},reactNativeReanimatedCarousel_useCarouselControllerJs2.__workletHash=0xb3df4504e9d,reactNativeReanimatedCarousel_useCarouselControllerJs2.__initData=e,reactNativeReanimatedCarousel_useCarouselControllerJs2}({_worklet_12360719814301_init_data:b,index:w,runOnJS:i.runOnJS,setSharedIndex:function setSharedIndex(e){C.current=e}}),[D,C,a,S,w,o,_,l]);const L=n.useCallback((()=>computedRealIndexWithAutoFillData({index:w.value,dataLength:S.originalLength,loop:o,autoFillData:_})),[w,_,S,o]),E=n.useCallback((()=>!S.disable),[S]),I=n.useCallback((()=>{var t;null===(t=e.onScrollEnd)||void 0===t||t.call(e)}),[e]),A=n.useCallback((()=>{var t;null===(t=e.onScrollStart)||void 0===t||t.call(e)}),[e]),J=n.useCallback(function reactNativeReanimatedCarousel_useCarouselControllerJs4Factory({_worklet_8854438548336_init_data:e,_worklet_6551740911478_init_data:t,runOnJS:a,onScrollEnd:n,duration:i,Easing:o,dealWithAnimation:r,withAnimation:l}){const reactNativeReanimatedCarousel_useCarouselControllerJs4=function(e,s){const u=function reactNativeReanimatedCarousel_useCarouselControllerJs3Factory({_worklet_6551740911478_init_data:e,runOnJS:t,onScrollEnd:a,onFinished:n}){const reactNativeReanimatedCarousel_useCarouselControllerJs3=function(e){e&&(t(a)(),n&&t(n)())};return reactNativeReanimatedCarousel_useCarouselControllerJs3.__closure={runOnJS:t,onScrollEnd:a,onFinished:n},reactNativeReanimatedCarousel_useCarouselControllerJs3.__workletHash=6551740911478,reactNativeReanimatedCarousel_useCarouselControllerJs3.__initData=e,reactNativeReanimatedCarousel_useCarouselControllerJs3}({_worklet_6551740911478_init_data:t,runOnJS:a,onScrollEnd:n,onFinished:s}),c={type:"timing",config:{duration:i,easing:o.easeOutQuart}};return r(null!=l?l:c)(e,u)};return reactNativeReanimatedCarousel_useCarouselControllerJs4.__closure={_worklet_6551740911478_init_data:t,runOnJS:a,onScrollEnd:n,duration:i,Easing:o,dealWithAnimation:r,withAnimation:l},reactNativeReanimatedCarousel_useCarouselControllerJs4.__workletHash=8854438548336,reactNativeReanimatedCarousel_useCarouselControllerJs4.__initData=e,reactNativeReanimatedCarousel_useCarouselControllerJs4}({_worklet_8854438548336_init_data:F,_worklet_6551740911478_init_data:k,runOnJS:i.runOnJS,onScrollEnd:I,duration:d,Easing:f,dealWithAnimation:z,withAnimation:u}),[d,u,I]),M=n.useCallback(function reactNativeReanimatedCarousel_useCarouselControllerJs5Factory({_worklet_10314749536624_init_data:e,canSliding:t,loop:a,index:n,dataInfo:i,size:o,overscrollEnabled:r,containerSize:l,onScrollStart:s,currentFixedPage:u,handlerOffset:c,scrollWithTiming:d}){const reactNativeReanimatedCarousel_useCarouselControllerJs5=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{count:_=1,animated:h=!0,onFinished:f}=e;if(!t())return;if(!a&&n.value>=i.length-1)return;const v=(i.length-n.value)*o;if(!(r||v>l.value.width))return;null==s||s();const g=u()+_;n.value=g,h?c.value=d(-g*o,f):(c.value=-g*o,null==f||f())};return reactNativeReanimatedCarousel_useCarouselControllerJs5.__closure={canSliding:t,loop:a,index:n,dataInfo:i,size:o,overscrollEnabled:r,containerSize:l,onScrollStart:s,currentFixedPage:u,handlerOffset:c,scrollWithTiming:d},reactNativeReanimatedCarousel_useCarouselControllerJs5.__workletHash=0x96196fb6970,reactNativeReanimatedCarousel_useCarouselControllerJs5.__initData=e,reactNativeReanimatedCarousel_useCarouselControllerJs5}({_worklet_10314749536624_init_data:O,canSliding:E,loop:o,index:w,dataInfo:S,size:a,overscrollEnabled:g,containerSize:p,onScrollStart:A,currentFixedPage:x,handlerOffset:l,scrollWithTiming:J}),[E,o,w,S,A,l,a,J,x]),P=n.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{count:t=1,animated:n=!0,onFinished:i}=e;if(!E())return;if(!o&&w.value<=0)return;null==A||A();const r=x()-t;w.value=r,n?l.value=J(-r*a,i):(l.value=-r*a,null==i||i())}),[E,o,w,A,l,a,J,x]),N=n.useCallback((e=>{const{i:t,animated:n=!1,onFinished:i}=e;if(t===w.value)return;if(!E())return;null==A||A();const r=s(l,h),u=t*a*r,c=S.length*a;let d=!1;o&&(d=Math.abs(l.value%c)/c>=.5);
1const _=(Math.floor(Math.abs(l.value/c))+(d?1:0))*c*r+u;n?(w.value=t,l.value=J(_,i)):(l.value=_,w.value=t,null==i||i())}),[a,o,w,h,l,S.length,E,A,J]),V=n.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{index:t,count:a,animated:n=!1,onFinished:i}=e;if("number"==typeof t&&t>-1)return void N({i:t,animated:n,onFinished:i});if(!a)return;const o=Math.round(a);o<0?P({count:Math.abs(o),animated:n,onFinished:i}):M({count:o,animated:n,onFinished:i})}),[P,M,N]);return n.useImperativeHandle(t,(()=>({next:M,prev:P,getCurrentIndex:L,scrollTo:V})),[L,M,P,V]),{next:M,prev:P,scrollTo:V,getCurrentIndex:L,getSharedIndex:()=>C.current,index:w}}({ref:t,loop:u,size:$,dataLength:_,autoFillData:c,handlerOffset:j,withAnimation:M,defaultIndex:Z,fixedDirection:P,duration:J,onScrollEnd:()=>(0,i.runOnJS)(te)(),onScrollStart:()=>!!X&&(0,i.runOnJS)(X)()}),{getSharedIndex:ee}=K,te=n.useCallback((()=>{const e=computedRealIndexWithAutoFillData({index:Math.round(ee()),dataLength:h,loop:u,autoFillData:c});T&&T(e),V&&V(e)}),[u,c,h,ee,T,V]),{start:ae,pause:ne}=function useAutoPlay(e){const{autoPlay:t=!1,autoPlayReverse:a=!1,autoPlayInterval:i,carouselController:o}=e,{prev:r,next:l}=o,s=n.useRef(),u=n.useRef(!t),c=n.useCallback((()=>{u.current||(s.current&&clearTimeout(s.current),s.current=setTimeout((()=>{a?r({onFinished:c}):l({onFinished:c})}),i))}),[a,i,r,l]),d=n.useCallback((()=>{t&&(s.current&&clearTimeout(s.current),u.current=!0)}),[t]),_=n.useCallback((()=>{t&&(u.current=!1,c())}),[c,t]);return n.useEffect((()=>(t?_():d(),d)),[d,_,t]),{pause:d,start:_}}({autoPlay:x,autoPlayInterval:A,autoPlayReverse:I,carouselController:K}),ie=n.useCallback((()=>{ne(),null==X||X()}),[X,ne]),oe=n.useCallback((()=>{ae(),te()}),[te,ae]),re=n.useCallback(ne,[ne]),le=n.useCallback(ae,[ae]),se=(0,i.useAnimatedStyle)(function reactNativeReanimatedCarousel_CarouselLayoutJs2Factory({_worklet_9584261842134_init_data:e,width:t,height:a}){const reactNativeReanimatedCarousel_CarouselLayoutJs2=function(){return{width:t||"100%",height:a||"100%"}};return reactNativeReanimatedCarousel_CarouselLayoutJs2.__closure={width:t,height:a},reactNativeReanimatedCarousel_CarouselLayoutJs2.__workletHash=9584261842134,reactNativeReanimatedCarousel_CarouselLayoutJs2.__initData=e,reactNativeReanimatedCarousel_CarouselLayoutJs2}({_worklet_9584261842134_init_data:Se,width:w,height:C}),[w,C,$,r]);return n.createElement(L.Zy,{style:[Ce.layoutContainer,p]},n.createElement(ScrollViewGesture,{size:$,key:v,translation:j,style:[Ce.contentContainer,se,g,D?Ce.itemsVertical:Ce.itemsHorizontal],testID:l,onScrollStart:ie,onScrollEnd:oe,onTouchBegin:re,onTouchEnd:le},n.createElement(ItemRenderer,{data:d,dataLength:_,rawDataLength:h,loop:u,size:$,windowSize:E,autoFillData:c,offsetX:Q,handlerOffset:j,layoutConfig:q,renderItem:N,customAnimation:B})))})),Ce=x.A.create({layoutContainer:{display:"flex"},contentContainer:{overflow:"hidden"},itemsHorizontal:{flexDirection:"row"},itemsVertical:{flexDirection:"column"}}),De=n.forwardRef(((e,t)=>{const a=useInitProps(e),{dataLength:i}=a,o=useCommonVariables(a);return function usePropsErrorBoundary(e){n.useEffect((()=>{const{defaultIndex:t,dataLength:a}=e;if("number"==typeof t&&a>0&&(t<0||t>=a))throw new Error("DefaultIndex must be in the range of data length.");if(!e.mode||"parallax"===e.mode){if(!e.vertical&&!e.width)throw new Error("`width` must be specified for horizontal carousels.");if(e.vertical&&!e.height)throw new Error("`height` must be specified for vertical carousels.")}}),[e])}(Object.assign({},a,{dataLength:i})),n.createElement(GlobalStateProvider,{value:{props:a,common:o}},n.createElement(we,{ref:t}))}));a(1495),a(23525);a(98587);const xe=De}}]); 2//# sourceMappingURL=2600.2fd37998.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.