1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9550],{69577:function(t,e,i){i.d(e,{Z:function(){return n}});let n=(0,i(30518).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},10193:function(t,e,i){i.d(e,{default:function(){return r.a}});var n=i(87266),r=i.n(n)},87266:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{default:function(){return l},getImageProps:function(){return a}});let n=i(46490),r=i(64783),s=i(26790),o=n._(i(63597));function a(t){let{props:e}=(0,r.getImgProps)(t,{defaultLoader:o.default,imgConf:{deviceSizes:[375,430,640,750,1080,1200,1920],imageSizes:[16,32,48,64,96,128,256],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[t,i]of Object.entries(e))void 0===i&&delete e[t];return{props:e}}let l=s.Image},67840:function(t,e,i){i.d(e,{D:function(){return o}});var n=i(63884),r=i(22874),s=i(55972);function o(t,e,i){let o=(0,n.i)(t)?t:(0,r.BX)(t);return o.start((0,s.v)("",o,e,i)),o.animation}},55972:function(t,e,i){i.d(e,{v:function(){return K}});var n=i(72048);function r(t){t.duration=0,t.type="keyframes"}var s=i(21588),o=i(75355),a=i(89111),l=i(66457),u=i(10481),h=i(78983),c=i(19218),d=i(13593),f=i(42721);let p=t=>t.startsWith("--");var m=i(75187),v=i(77322),g=i(39638),y=i(88784),x=i(95273),w=i(54597);let P={},T=function(t,e){let i=(0,w.X)(t);return()=>P[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing");var b=i(8540);let S=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,A={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:S([0,.65,.55,1]),circOut:S([.55,0,1,.45]),backIn:S([.31,.01,.66,-.59]),backOut:S([.33,1.53,.69,.99])};var M=i(8478);class D extends v.T{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,(0,f.k)("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return(0,M.x)(t)&&T()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?T()?(0,b.w)(e,i):"ease-out":(0,x.q)(e)?S(e):Array.isArray(e)?e.map(e=>t(e,i)||A.easeOut):A[e]}(a,r);Array.isArray(c)&&(h.easing=c),y.f.value&&g.P.waapi++;let d={delay:n,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(d.pseudoElement=u);let f=t.animate(h,d);return y.f.value&&f.finished.finally(()=>{g.P.waapi--}),f}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=(0,h.$)(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):p(i)?e.style.setProperty(i,t):e.style[i]=t,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){let t=this.animation.effect?.getComputedTiming?.().duration||0;return(0,d.X)(Number(t))}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,d.X)(t)}get time(){return(0,d.X)(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=(0,d.w)(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&(0,m.t)())?(this.animation.timeline=t,l.Z):e(this)}}var V=i(47169),E=i(49307),C=i(53310),k=i(98850);let R={anticipate:E.L,backInOut:C.XL,circInOut:k.X7};class L extends D{constructor(t){"string"==typeof t.ease&&t.ease in R&&(t.ease=R[t.ease]),(0,V.f)(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t){e.set(t);return}let a=new o.L({...s,autoplay:!1}),l=(0,d.w)(this.finishedTime??this.time);e.setWithVelocity(a.sample(l-10).value,a.sample(l).value,10),a.stop()}}var j=i(81665);let F=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(j.P.test(t)||"0"===t)&&!t.startsWith("url(")),O=new Set(["opacity","clipPath","filter","transform"]),B=(0,w.X)(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class I extends v.T{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:h,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=u.X.now();
1let f={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:h,...d},p=h?.KeyframeResolver||c.e;this.keyframeResolver=new p(o,(t,e,i)=>this.onKeyframesResolved(t,e,f,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:s,type:c,velocity:d,delay:p,isHandoff:m,onUpdate:v}=i;this.resolvedAt=u.X.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=F(r,e),a=F(s,e);return(0,f.K)(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||(0,M.x)(i))&&n)}(t,s,c,d)&&((a.c.instantAnimations||!p)&&v?.(h.$(t,i,e)),t[0]=t[t.length-1],r(i),i.repeat=0);let g={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},y=!m&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return B()&&i&&O.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(g)?new L({...g,element:g.motionValue.owner.current}):new o.L(g);y.finished.then(()=>this.notifyFinished()).catch(l.Z),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),(0,c.m)()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let W=t=>null!==t;var $=i(78109);let U={type:"spring",stiffness:500,damping:25,restSpeed:10},X=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),N={type:"keyframes",duration:.8},Y={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},z=(t,{keyframes:e})=>e.length>2?N:$.G.has(t)?t.startsWith("scale")?X(e[1]):U:Y,K=(t,e,i,l={},u,h)=>c=>{let f=(0,n.e)(l,t)||{},p=f.delay||l.delay||0,{elapsed:m=0}=l;m-=(0,d.w)(p);let v={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-m,onUpdate:t=>{e.set(t),f.onUpdate&&f.onUpdate(t)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:t,motionValue:e,element:h?void 0:u};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(f)&&Object.assign(v,z(t,v)),v.duration&&(v.duration=(0,d.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,d.w)(v.repeatDelay)),void 0!==v.from&&(v.keyframes[0]=v.from);let g=!1;if(!1!==v.type&&(0!==v.duration||v.repeatDelay)||(r(v),0!==v.delay||(g=!0)),(a.c.instantAnimations||a.c.skipAnimations)&&(g=!0,r(v),v.delay=0),v.allowFlatten=!f.type&&!f.ease,g&&!h&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(W),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(v.keyframes,f);if(void 0!==t){s.Wi.update(()=>{v.onUpdate(t),v.onComplete()});return}}return f.isSync?new o.L(v):new I(v)}},56442:function(t,e,i){i.d(e,{w:function(){return d}});var n=i(72048),r=i(21588),s=i(30249),o=i(22874),a=i(31331),l=i(84648),u=i(72966),h=i(67855),c=i(55972);function d(t,e,{delay:i=0,transitionOverride:d,type:f}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:m,...v}=e;d&&(p=d);let g=[],y=f&&t.animationState&&t.animationState.getState()[f];for(let e in v){let o=t.getValue(e,t.latestValues[e]??null),a=v[e];
1if(void 0===a||y&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(y,e))continue;let l={delay:i,...(0,n.e)(p||{},e)},d=o.get();if(void 0!==d&&!o.isAnimating&&!Array.isArray(a)&&a===d&&!l.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let i=(0,h.s)(t);if(i){let t=window.MotionHandoffAnimation(i,e,r.Wi);null!==t&&(l.startTime=t,f=!0)}}(0,u.K)(t,e),o.start((0,c.v)(e,o,a,t.shouldReduceMotion&&s.z.has(e)?{type:!1}:l,t,f));let m=o.animation;m&&g.push(m)}return m&&Promise.all(g).then(()=>{r.Wi.update(()=>{m&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=(0,l.x)(t,e)||{};for(let e in r={...r,...i}){var s;let i=(s=r[e],(0,a.C)(s)?s[s.length-1]||0:s);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,(0,o.BX)(i))}}(t,m)})}),g}},28971:function(t,e,i){i.d(e,{M:function(){return n}});let n="data-"+(0,i(74028).D)("framerAppearId")},67855:function(t,e,i){i.d(e,{s:function(){return r}});var n=i(28971);function r(t){return t.props[n.M]}},34753:function(t,e,i){i.d(e,{H:function(){return n}});function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}},31331:function(t,e,i){i.d(e,{C:function(){return n}});let n=t=>Array.isArray(t)},58721:function(t,e,i){i.d(e,{p:function(){return n}});let n=(0,i(83641).createContext)({})},97397:function(t,e,i){i.d(e,{_:function(){return n}});let n=(0,i(83641).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},52010:function(t,e,i){i.d(e,{O:function(){return n}});let n=(0,i(83641).createContext)(null)},47776:function(t,e,i){i.d(e,{g:function(){return n}});let n=(0,i(83641).createContext)({})},3772:function(t,e,i){i.d(e,{featureDefinitions:function(){return r}});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},r={};for(let t in n)r[t]={isEnabled:e=>n[t].some(t=>!!e[t])}},51448:function(t,e,i){i.d(e,{F:function(){return $}});var n,r=i(74023),s=i(83641),o=i(58721);let a=(0,s.createContext)({strict:!1});var l=i(97397);let u=(0,s.createContext)({});var h=i(42925),c=i(31380);function d(t){return Array.isArray(t)?t.join(" "):t}var f=i(63884),p=i(76425),m=i(80246);let v=()=>({style:{},transform:{},transformOrigin:{},vars:{}});
1function g(t,e,i){for(let n in e)(0,f.i)(e[n])||(0,p.j)(n,i)||(t[n]=e[n])}var y=i(179);let x=()=>({...v(),attrs:{}});var w=i(55490);let P=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function T(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||P.has(t)}let b=t=>!T(t);try{n=require("@emotion/is-prop-valid").default,"function"==typeof n&&(b=t=>t.startsWith("on")?!T(t):n(t))}catch{}var S=i(52148),A=i(34753),M=i(52010),D=i(59689),V=i(61510),E=i(59880);let C=t=>(e,i)=>{let n=(0,s.useContext)(u),r=(0,s.useContext)(M.O),o=()=>(function(t,e,i,n){let{scrapeMotionValuesFromProps:r,createRenderState:s}=t;return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=(0,E.b)(s[t]);let{initial:o,animate:a}=t,l=(0,h.G)(t),u=(0,h.M)(t);e&&u&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let c=!!i&&!1===i.initial,d=(c=c||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!(0,A.H)(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=(0,D.o)(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(e,i,n,r),renderState:s()}})(t,e,n,r);return i?o():(0,V.h)(o)},k=C({scrapeMotionValuesFromProps:i(65660).U,createRenderState:v}),R=C({scrapeMotionValuesFromProps:i(53581).U,createRenderState:x});var L=i(55663),j=i(3772);let F=Symbol.for("motionComponentSymbol");var O=i(33422),B=i(28971),I=i(47776),W=i(21335);function $(t){var e,i;let{forwardMotionProps:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,P=arguments.length>3?arguments[3]:void 0;p&&function(t){for(let e in t)j.featureDefinitions[e]={...j.featureDefinitions[e],...t[e]}}(p);let A=(0,S.q)(t)?R:k;function D(e,i){var p;let D;let V={...(0,s.useContext)(l._),...e,layoutId:function(t){let{layoutId:e}=t,i=(0,s.useContext)(o.p).id;return i&&void 0!==e?i+"-"+e:e}(e)},{isStatic:E}=V,C=function(t){let{initial:e,animate:i}=function(t,e){if((0,h.G)(t)){let{initial:e,animate:i}=t;return{initial:!1===e||(0,c.$)(e)?e:void 0,animate:(0,c.$)(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(u));return(0,s.useMemo)(()=>({initial:e,animate:i}),[d(e),d(i)])}(e),k=A(e,E);if(!E&&L.j){(0,s.useContext)(a).strict;let e=function(t){let{drag:e,layout:i}=j.featureDefinitions;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(V);D=e.MeasureLayout,C.visualElement=function(t,e,i,n,r){var o,h,c,d;let{visualElement:f}=(0,s.useContext)(u),p=(0,s.useContext)(a),m=(0,s.useContext)(M.O),v=(0,s.useContext)(l._).reducedMotion,g=(0,s.useRef)(null);n=n||p.renderer,!g.current&&n&&(g.current=n(t,{visualState:e,parent:f,props:i,presenceContext:m,blockInitialAnimation:!!m&&!1===m.initial,reducedMotionConfig:v}));let y=g.current,x=(0,s.useContext)(I.g);y&&!y.projection&&r&&("html"===y.type||"svg"===y.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&(0,O.I)(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(g.current,i,r,x);let w=(0,s.useRef)(!1);(0,s.useInsertionEffect)(()=>{y&&w.current&&y.update(i,m)});let P=i[B.M],T=(0,s.useRef)(!!P&&!(null===(o=(h=window).MotionHandoffIsComplete)||void 0===o?void 0:o.call(h,P))&&(null===(c=(d=window).MotionHasOptimisedAnimation)||void 0===c?void 0:c.call(
1d,P)));return(0,W.L)(()=>{y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),T.current&&y.animationState&&y.animationState.animateChanges())}),(0,s.useEffect)(()=>{y&&(!T.current&&y.animationState&&y.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var t,e;null===(t=(e=window).MotionHandoffMarkAsComplete)||void 0===t||t.call(e,P)}),T.current=!1),y.enteringChildren=void 0)}),y}(t,k,V,P,e.ProjectionNode)}return(0,r.jsxs)(u.Provider,{value:C,children:[D&&C.visualElement?(0,r.jsx)(D,{visualElement:C.visualElement,...V}):null,function(t,e,i,n,r){let{latestValues:o}=n,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=((0,S.q)(t)?function(t,e,i,n){let r=(0,s.useMemo)(()=>{let i=x();return(0,y.i)(i,e,(0,w.a)(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};g(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return g(n,i,t),Object.assign(n,function(t,e){let{transformTemplate:i}=t;return(0,s.useMemo)(()=>{let t=v();return(0,m.r)(t,e,i),Object.assign({},t.vars,t.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(e,o,r,t),u=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(b(r)||!0===i&&T(r)||!e&&!T(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,a),h=t!==s.Fragment?{...u,...l,ref:i}:{},{children:c}=e,d=(0,s.useMemo)(()=>(0,f.i)(c)?c.get():c,[c]);return(0,s.createElement)(t,{...h,children:d})}(t,e,(p=C.visualElement,(0,s.useCallback)(t=>{t&&k.onMount&&k.onMount(t),p&&(t?p.mount(t):p.unmount()),i&&("function"==typeof i?i(t):(0,O.I)(i)&&(i.current=t))},[p])),k,E,n)]})}D.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!==(i=null!==(e=t.displayName)&&void 0!==e?e:t.name)&&void 0!==i?i:"",")"));let V=(0,s.forwardRef)(D);return V[F]=t,V}},76425:function(t,e,i){i.d(e,{j:function(){return s}});var n=i(78109),r=i(67436);function s(t,{layout:e,layoutId:i}){return n.G.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!r.P[t]||"opacity"===t)}},41363:function(t,e,i){function n({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function r({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function s(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}i.d(e,{d7:function(){return s},i8:function(){return n},z2:function(){return r}})},34339:function(t,e,i){i.d(e,{D2:function(){return d},YY:function(){return u},am:function(){return h},o2:function(){return l},q2:function(){return s}});var n=i(35333),r=i(80751);function s(t,e,i){return i+e*(t-i)}function o(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function a(t,e=0,i=1,n,r){t.min=o(t.min,e,i,n,r),t.max=o(t.max,e,i,n,r)}function l(t,{x:e,y:i}){a(t.x,e.translate,e.scale,e.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}function u(t,e,i,n=!1){let s,o;let a=i.length;if(a){e.x=e.y=1;for(let u=0;u<a;u++){o=(s=i[u]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&d(t,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,l(t,o)),n&&(0,r.ud)(s.latestValues)&&d(t,s.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}function h(t,e){t.min=t.min+e,t.max=t.max+e}function c(t,e,i,r,s=.5){let o=(0,n.t)(t.min,t.max,s);a(t,e,i,o,r)}function d(t,e){c(t.x,e.x,e.scaleX,e.scale,e.originX),c(t.y,e.y,e.scaleY,e.scale,e.originY)}},74819:function(t,e,i){i.d(e,{dO:function(){return o},wc:function(){return r}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),r=()=>({x:n(),y:n()}),s=()=>({min:0,max:0}),o=()=>({x:s(),y:s()})}
1,67436:function(t,e,i){i.d(e,{B:function(){return s},P:function(){return r}});var n=i(85313);let r={};function s(t){for(let e in t)r[e]=t[e],(0,n.f)(e)&&(r[e].isCSSVariable=!0)}},80751:function(t,e,i){function n(t){return void 0===t||1===t}function r({scale:t,scaleX:e,scaleY:i}){return!n(t)||!n(e)||!n(i)}function s(t){return r(t)||o(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function o(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}i.d(e,{D_:function(){return o},Lj:function(){return r},ud:function(){return s}})},85023:function(t,e,i){i.d(e,{J:function(){return s},z:function(){return o}});var n=i(41363),r=i(34339);function s(t,e){return(0,n.i8)((0,n.d7)(t.getBoundingClientRect(),e))}function o(t,e,i){let n=s(t,i),{scroll:o}=e;return o&&((0,r.am)(n.x,o.offset.x),(0,r.am)(n.y,o.offset.y)),n}},15357:function(t,e,i){i.d(e,{l:function(){return E}});var n=i(19218),r=i(10481),s=i(21588),o=i(63884),a=i(78109),l=i(22874),u=i(71659),h=i(81665),c=i(25873),d=i(43938);let f=[...c.$,u.$,h.P],p=t=>f.find((0,d.l)(t));var m=i(29665),v=i(54062),g=i(22834),y=i(41765),x=i(58631),w=i(3772),P=i(74819),T=i(55663);let b={current:null},S={current:!1};var A=i(32728),M=i(42925),D=i(59689);let V=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class E{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},h={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=n.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=r.X.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,s.Wi.render(this.render,!1,!0))};let{latestValues:c,renderState:d}=u;this.latestValues=c,this.baseTarget={...c},this.initialValues=e.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=h,this.blockInitialAnimation=!!l,this.isControllingVariants=(0,M.G)(e),this.isVariantNode=(0,M.M)(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:f,...p}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in p){let e=p[t];void 0!==c[t]&&(0,o.i)(e)&&e.set(c[t])}}mount(t){this.current=t,A.R.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),S.current||function(){if(S.current=!0,T.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>b.current=t.matches;t.addEventListener("change",e),e()}else b.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||b.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),(0,s.Pn)(this.notifyUpdate),(0,s.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=a.G.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&s.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in w.featureDefinitions){let e=w.featureDefinitions[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,P.dO)()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<V.length;e++){let i=V[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let r=e[n],s=i[n];if((0,o.i)(r))t.addValue(n,r);else if((0,o.i)(s))t.addValue(n,(0,l.BX)(r,{owner:t}));else if(s!==r){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,(0,l.BX)(void 0!==e?e:r,{owner:t}))}}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=(0,l.BX)(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&((0,g.P)(i)||(0,y.W)(i))?i=parseFloat(i):!p(i)&&h.P.test(e)&&(i=(0,m.T)(t,e)),this.setBaseTarget(t,(0,o.i)(i)?i.get():i)),(0,o.i)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=(0,D.o)(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||(0,o.i)(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new x.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){v.g.render(this.render)}}},57784:function(t,e,i){i.d(e,{yz:function(){return a},MZ:function(){return l},yK:function(){return u},Mo:function(){return h},JF:function(){return c},tI:function(){return d},Lf:function(){return m},ed:function(){return v},aU:function(){return f},ux:function(){return p},Db:function(){return g}});var n=i(51448),r=i(526),s=i(48127);function o(t,e){return(0,n.F)(t,e,s.Y,r.b)}let a=o("aside"),l=o("button"),u=o("div"),h=o("h3"),c=o("img"),d=o("p"),f=o("section"),p=o("span"),m=o("path"),v=o("rect"),g=o("svg")},48127:function(t,e,i){i.d(e,{Y:function(){return e3}});var n=i(34753),r=i(84648),s=i(56442);function o(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function a(t,e,i={}){let n=(0,r.x)(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:l=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(l=i.transitionOverride);let u=n?()=>Promise.all((0,s.w)(t,n,i)):()=>Promise.resolve(),h=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:s,staggerDirection:u}=l;
1return function(t,e,i=0,n=0,r=0,s=1,l){let u=[];for(let h of t.variantChildren)h.notify("AnimationStart",e),u.push(a(h,e,{...l,delay:i+("function"==typeof n?0:n)+o(t.variantChildren,h,n,r,s)}).then(()=>h.notify("AnimationComplete",e)));return Promise.all(u)}(t,e,n,r,s,u,i)}:()=>Promise.resolve(),{when:c}=l;if(!c)return Promise.all([u(),h(i.delay)]);{let[t,e]="beforeChildren"===c?[u,h]:[h,u];return t().then(()=>e())}}var l=i(31331);function u(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}var h=i(31380),c=i(32514);let d=c.V.length,f=[...c.e].reverse(),p=c.e.length;function m(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function v(){return{animate:m(!0),whileInView:m(),whileHover:m(),whileTap:m(),whileDrag:m(),whileFocus:m(),exit:m()}}class g{constructor(t){this.isMounted=!1,this.node=t}update(){}}class y extends g{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>a(t,e,i)));else if("string"==typeof e)n=a(t,e,i);else{let o="function"==typeof e?(0,r.x)(t,e,i.custom):e;n=Promise.all((0,s.w)(t,o,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=v(),m=!0,g=e=>(i,n)=>{let s=(0,r.x)(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function y(s){let{props:a}=t,v=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<d;t++){let n=c.V[t],r=e.props[n];((0,h.$)(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},y=[],x=new Set,w={},P=1/0;for(let e=0;e<p;e++){var T;let c=f[e],d=i[c],p=void 0!==a[c]?a[c]:v[c],b=(0,h.$)(p),S=c===s?d.isActive:null;!1===S&&(P=e);let A=p===v[c]&&p!==a[c]&&b;if(A&&m&&t.manuallyAnimateOnMount&&(A=!1),d.protectedKeys={...w},!d.isActive&&null===S||!p&&!d.prevProp||(0,n.H)(p)||"boolean"==typeof p)continue;let M=(T=d.prevProp,"string"==typeof p?p!==T:!!Array.isArray(p)&&!u(p,T)),D=M||c===s&&d.isActive&&!A&&b||e>P&&b,V=!1,E=Array.isArray(p)?p:[p],C=E.reduce(g(c),{});!1===S&&(C={});let{prevResolvedValues:k={}}=d,R={...k,...C},L=e=>{D=!0,x.has(e)&&(V=!0,x.delete(e)),d.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in R){let e=C[t],i=k[t];if(!w.hasOwnProperty(t))((0,l.C)(e)&&(0,l.C)(i)?u(e,i):e===i)?void 0!==e&&x.has(t)?L(t):d.protectedKeys[t]=!0:null!=e?L(t):x.add(t)}d.prevProp=p,d.prevResolvedValues=C,d.isActive&&(w={...w,...C}),m&&t.blockInitialAnimation&&(D=!1);let j=A&&M,F=!j||V;D&&F&&y.push(...E.map(e=>{let i={type:c};if("string"==typeof e&&m&&!j&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=(0,r.x)(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=o(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(x.size){let e={};if("boolean"!=typeof a.initial){let i=(0,r.x)(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}x.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),y.push({animation:e})}let b=!!y.length;return m&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(b=!1),m=!1,b?e(y):Promise.resolve()}return{animateChanges:y,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=y(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=v(),m=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();(0,n.H)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let x=0;class w extends g{constructor(){super(...arguments),this.id=x++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}var P=i(66457);let T={x:!1,y:!1};var b=i(53909),S=i(21588),A=i(35333),M=i(42721),D=i(55972);function V(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let E=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function C(t){return{point:{x:t.pageX,y:t.pageY}}}let k=t=>e=>E(e)&&t(e,C(e));function R(t,e,i,n){return V(t,e,k(i),n)}var L=i(41363);function j(t){return t.max-t.min}function F(t,e,i,n=.5){t.origin=n,t.originPoint=(0,A.t)(e.min,e.max,t.origin),t.scale=j(i)/j(e),t.translate=(0,A.t)(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function O(t,e,i,n){F(t.x,e.x,i.x,n?n.originX:void 0),F(t.y,e.y,i.y,n?n.originY:void 0)}function B(t,e,i){t.min=i.min+e.min,t.max=t.min+j(e)}function I(t,e,i){t.min=e.min-i.min,t.max=t.min+j(e)}function W(t,e,i){I(t.x,e.x,i.x),I(t.y,e.y,i.y)}var $=i(74819);function U(t){return[t("x"),t("y")]}var X=i(85023);let N=({current:t})=>t?t.ownerDocument.defaultView:null;var Y=i(33422),z=i(72966),K=i(77357),H=i(13593);let Z=(t,e)=>Math.abs(t-e);class _{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=J(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(Z(t.x,e.x)**2+Z(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=S.frameData;this.history.push({...s,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=q(e,this.transformPagePoint),S.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=J("pointercancel"===t.type?this.lastMoveEventInfo:q(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!E(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=q(C(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=S.frameData;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,J(o,this.history)),this.removeListeners=(0,K.z)(R(this.contextWindow,"pointermove",this.handlePointerMove),R(this.contextWindow,"pointerup",this.handlePointerUp),R(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,S.Pn)(this.updatePoint)}}function q(t,e){return e?{point:e(t.point)}:t}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function J({point:t},e){return{point:t,delta:G(t,Q(e)),offset:G(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=Q(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>(0,H.w)(.1)));)i--;if(!n)return{x:0,y:0};let s=(0,H.X)(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,0)}}function Q(t){return t[t.length-1]}var tt=i(98992),te=i(97733);function ti(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function tn(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function tr(t,e,i){return{min:ts(t,e),max:ts(t,i)}}function ts(t,e){return"number"==typeof t?t:t[e]||0}let to=new WeakMap;class ta{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,$.dO)(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new _(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(C(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===i||"y"===i?T[i]?null:(T[i]=!0,()=>{T[i]=!1}):T.x||T.y?null:(T.x=T.y=!0,()=>{T.x=T.y=!1}),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),U(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.aQ.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];if(n){let t=j(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),r&&S.Wi.postRender(()=>r(t,e)),(0,z.K)(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>U(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:N(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&S.Wi.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!tl(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?(0,A.t)(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?(0,A.t)(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&(0,Y.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ti(t.x,i,r),y:ti(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:tr(t,"left","right"),y:tr(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&U(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!(0,Y.I)(e))return!1;let n=e.current;(0,M.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=(0,X.z)(n,r.root,this.visualElement.getTransformPagePoint()),o={x:tn((t=r.layout.layoutBox).x,s.x),y:tn(t.y,s.y)};if(i){let t=i((0,L.z2)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,L.i8)(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(U(o=>
1{if(!tl(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return(0,z.K)(this.visualElement,t),i.start((0,D.v)(t,i,0,e,this.visualElement,!1))}stopAnimation(){U(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){U(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){U(e=>{let{drag:i}=this.getProps();if(!tl(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-(0,A.t)(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!(0,Y.I)(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};U(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=j(t),r=j(e);return r>n?i=(0,tt.Y)(e.min,e.max-n,t.min):n>r&&(i=(0,tt.Y)(t.min,t.max-r,e.min)),(0,te.u)(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),U(e=>{if(!tl(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set((0,A.t)(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;to.set(this.visualElement,this);let t=R(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();(0,Y.I)(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),S.Wi.read(e);let r=V(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(U(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function tl(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class tu extends g{constructor(t){super(t),this.removeGroupControls=P.Z,this.removeListeners=P.Z,this.controls=new ta(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||P.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let th=t=>(e,i)=>{t&&S.Wi.postRender(()=>t(e,i))};class tc extends g{constructor(){super(...arguments),this.removePointerDownListener=P.Z}onPointerDown(t){this.session=new _(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:N(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:th(t),onStart:th(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&S.Wi.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=R(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var td=i(74023),tf=i(54062),tp=i(83641),tm=i(52010),tv=i(58721),tg=i(47776);let ty={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function tx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let tw={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!b.px.test(t))return t;t=parseFloat(t)}let i=tx(t,e.target.x),n=tx(t,e.target.y);return`${i}% ${n}%`}};var tP=i(81665),tT=i(67436);let tb=!1;class tS extends tp.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;(0,tT.B)(tM),r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),tb&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ty.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,tb=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent===r||(r?s.promote():s.relegate()||S.Wi.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tf.g.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;tb=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tA(t){let[e,i]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,tp.useContext)(tm.O);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,tp.useId)();(0,tp.useEffect)(()=>
1{if(t)return r(s)},[t]);let o=(0,tp.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,tp.useContext)(tv.p);return(0,td.jsx)(tS,{...t,layoutGroup:n,switchLayoutGroup:(0,tp.useContext)(tg.g),isPresent:e,safeToRemove:i})}let tM={borderRadius:{...tw,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tw,borderTopRightRadius:tw,borderBottomLeftRadius:tw,borderBottomRightRadius:tw,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tP.P.parse(t);if(n.length>5)return t;let r=tP.P.createTransformer(t),s="number"!=typeof n[0]?1:0,o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=(0,A.t)(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};var tD=i(88784),tV=i(94127),tE=i(71614),tC=i(72048),tk=i(10481),tR=i(39638),tL=i(22874),tj=i(58631),tF=i(67840),tO=i(67855),tB=i(12917);let tI=(t,e)=>t.depth-e.depth;class tW{constructor(){this.children=[],this.isDirty=!1}add(t){(0,tB.y4)(this.children,t),this.isDirty=!0}remove(t){(0,tB.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(tI),this.isDirty=!1,this.children.forEach(t)}}var t$=i(59880),tU=i(98850);let tX=["TopLeft","TopRight","BottomLeft","BottomRight"],tN=tX.length,tY=t=>"string"==typeof t?parseFloat(t):t,tz=t=>"number"==typeof t||b.px.test(t);function tK(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let tH=t_(0,.5,tU.Bn),tZ=t_(.5,.95,P.Z);function t_(t,e,i){return n=>n<t?0:n>e?1:i((0,tt.Y)(t,e,n))}function tq(t,e){t.min=e.min,t.max=e.max}function tG(t,e){tq(t.x,e.x),tq(t.y,e.y)}function tJ(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var tQ=i(34339);function t0(t,e,i,n,r){return t-=e,t=(0,tQ.q2)(t,1/i,n),void 0!==r&&(t=(0,tQ.q2)(t,1/r,n)),t}function t1(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(b.aQ.test(e)&&(e=parseFloat(e),e=(0,A.t)(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=(0,A.t)(s.min,s.max,n);t===s&&(a-=e),t.min=t0(t.min,e,i,a,r),t.max=t0(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let t3=["x","scaleX","originX"],t5=["y","scaleY","originY"];function t7(t,e,i,n){t1(t.x,e,t3,i?i.x:void 0,n?n.x:void 0),t1(t.y,e,t5,i?i.y:void 0,n?n.y:void 0)}function t8(t){return 0===t.translate&&1===t.scale}function t2(t){return t8(t.x)&&t8(t.y)}function t4(t,e){return t.min===e.min&&t.max===e.max}function t9(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function t6(t,e){return t9(t.x,e.x)&&t9(t.y,e.y)}function et(t){return j(t.x)/j(t.y)}function ee(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class ei{constructor(){this.members=[]}add(t){(0,tB.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,tB.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var en=i(80751);let er={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},es=["","X","Y","Z"],eo=0;function ea(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function el({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=eo++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tD.f.value&&(er.nodes=er.calculatedTargetDeltas=er.calculatedProjections=0),this.nodes.forEac
1h(ec),this.nodes.forEach(ey),this.nodes.forEach(ex),this.nodes.forEach(ed),tD.f.addProjectionMetrics&&tD.f.addProjectionMetrics(er)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new tW)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tj.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=(0,tV.v)(e)&&!(0,tE.r)(e),this.instance=e;let{layoutId:i,layout:n,visualElement:r}=this.options;if(r&&!r.current&&r.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i;let n=0,r=()=>this.root.updateBlockedByResize=!1;S.Wi.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=tk.X.now(),n=({timestamp:e})=>{let r=e-i;r>=250&&((0,S.Pn)(n),t(r-250))};return S.Wi.setup(n,!0),()=>(0,S.Pn)(n)}(r,0),ty.hasAnimatedSinceResize&&(ty.hasAnimatedSinceResize=!1,this.nodes.forEach(eg)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||eA,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!t6(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...(0,tC.e)(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||eg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),(0,S.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ew),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=(0,tO.s)(i);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",S.Wi,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEac
1h(ep);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(em);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ev),this.nodes.forEach(eu),this.nodes.forEach(eh)):this.nodes.forEach(em),this.clearAllSnapshots();let t=tk.X.now();S.frameData.delta=(0,te.u)(0,1e3/60,t-S.frameData.timestamp),S.frameData.timestamp=t,S.frameData.isProcessing=!0,S.yL.update.process(S.frameData),S.yL.preRender.process(S.frameData),S.yL.render.process(S.frameData),S.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tf.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ef),this.sharedNodes.forEach(eP)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,S.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){S.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||j(this.snapshot.measuredBox.x)||j(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,$.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!t2(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||(0,en.ud)(this.latestValues)||s)&&(r(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),eV((e=n).x),eV(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return(0,$.dO)();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(eC))){let{scroll:t}=this.root;t&&((0,tQ.am)(e.x,t.offset.x),(0,tQ.am)(e.y,t.offset.y))}return e}removeElementScroll(t){let e=(0,$.dO)();if(tG(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&tG(e,t),(0,tQ.am)(e.x,r.offset.x),(0,tQ.am)(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=(0,$.dO)();tG(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,tQ.D2)(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,en.ud)(n.latestValues)&&(0,tQ.D2)(i,n.latestValues)}return(0,en.ud)(this.latestValues)&&(0,tQ.D2)(i,this.latestValues),i}removeTransform(t){let e=(0,$.dO)();tG(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!(0,en.ud)(i.latestValues))continue;(0,en.Lj)(i.latestValues)&&i.updateSnapshot();let n=(0,$.dO)();tG(n,i.measurePageBox()),t7(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return(0,en.ud)(this.latestValues)&&t7(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==S.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:r}=this.options;if(this.layout&&(n||r)){if(this.resolvedRelativeTargetAt=S.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),W(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),tG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=(0,$.dO)(),this.targetWithTransforms=(0,$.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,o,a;this.forceRelativeParentToResolveTarget(),s=this.target,o=this.relativeTarget,a=this.relativeParent.target,B(s.x,o.x,a.x),B(s.y,o.y,a.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):tG(this.target,this.layout.layoutBox),(0,tQ.o2)(this.target,this.targetDelta)):tG(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,$.dO)(),this.relativeTargetOrigin=(0,$.dO)(),W(this.relativeTargetOrigin,this.target,t.target),tG(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tD.f.value&&er.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,en.Lj)(this.parent.latestValues)||(0,en.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===S.frameData.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||r))return;tG(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;(0,tQ.YY)(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,$.dO)());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(tJ(this.prevProjectionDelta.x,this.projectionDelta.x),tJ(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),O(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&ee(this.projectionDelta.x,this.prevProjectionDelta.x)&&ee(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),tD.f.value&&er.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,$.wc)(),this.projectionDelta=(0,$.wc)(),this.projectionDeltaWithTransform=(0,$.wc)()}setAnimationOrigin(t,e=!1){let i;let n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=(0,$.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=(0,$.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(eS));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(eT(o.x,t.x,n),eT(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;W(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,eb(f.x,p.x,a.x,n),eb(f.y,p.y,a.y,n),i&&(u=this.relativeTarget,d=i,t4(u.x,d.x)&&t4(u.y,d.y))&&(this.isProjectionDirty=!1),i||(i=(0,$.dO)()),tG(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=(0,A.t)(0,i.opacity??1,tH(n)),t.opacityExit=(0,A.t)(e.opacity??1,0,tZ(n))):s&&(t.opacity=(0,A.t)(e.opacity??1,i.opacity??1,n));for(let r=0;r<tN;r++){let s=`border${tX[r]}Radius`,o=tK(e,s),a=tK(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||tz(o)===tz(a)?(t[s]=Math.max((0,A.t)(tY(o),tY(a),n),0),(b.aQ.test(a)||b.aQ.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=(0,A.t)(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&((0,S.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=S.Wi.update(()=>{ty.hasAnimatedSinceResize=!0,tR.P.layout++,this.motionValue||(this.motionValue=(0,tL.BX)(0)),this.currentAnimation=(0,tF.D)(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{tR.P.layout--},onComplete:()=>{tR.P.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&eE(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||(0,$.dO)();let e=j(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=j(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}tG(e,i),(0,tQ.D2)(e,r),O(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new ei),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;
1return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&ea("z",t,n,this.animationValues);for(let e=0;e<es.length;e++)ea(`rotate${es[e]}`,t,n,this.animationValues),ea(`skew${es[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=(0,t$.b)(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,t$.b)(e?.pointerEvents)||""),this.hasProjected&&!(0,en.ud)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,r);i&&(s=i(r,s)),t.transform=s;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,tT.P){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=tT.P[e],l="none"===s?r[e]:i(r[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?(0,t$.b)(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(ep),this.root.sharedNodes.clear()}}}function eu(t){t.updateLayout()}function eh(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?U(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=j(n);n.min=i[t].min,n.max=n.min+r}):eE(r,e.layoutBox,i)&&U(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=j(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=(0,$.wc)();O(o,i,e.layoutBox);let a=(0,$.wc)();s?O(a,t.applyTransform(n,!0),e.measuredBox):O(a,i,e.layoutBox);let l=!t2(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=(0,$.dO)();W(o,e.layoutBox,r.layoutBox);let a=(0,$.dO)();W(a,i,s.layoutBox),t6(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ec(t){tD.f.value&&er.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ed(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ef(t){t.clearSnapshot()}function ep(t){t.clearMeasurements()}function em(t){t.isLayoutDirty=!1}function ev(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function eg(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ey(t){t.resolveTargetDelta()}function ex(t){t.calcProjection()}function ew(t){t.resetSkewAndRotation()}function eP(t){t.removeLeadSnapshot()}function eT(t,e,i){t.translate=(0,A.t)(e.translate,0,i),t.scale=(0,A.t)(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function eb(t,e,i,n){t.min=(0,A.t)(e.min,i.min,n),t.max=(0,A.t)(e.max,i.max,n)}function eS(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let eA={duration:.45,ease:[.4,0,.1,1]},eM=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),eD=eM("applewebkit/")&&!eM("chrome/")?Math.round:P.Z;function eV(t){t.min=eD(t.min),t.max=eD(t.max)}function eE(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(et(e)-et(i)))}function eC(t){return t!==t.root&&t.scroll?.wasRoot}let ek=el({attachResizeListener:(t,e)=>V(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eR={current:void 0},eL=el({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!eR.current){let t=new ek({});t.mount(window),t.setOptions({layoutScroll:!0}),eR.current=t}return eR.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});var ej=i(33342);function eF(t,e){let i=(0,ej.I)(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function eO(t){return!("touch"===t.pointerType||T.x||T.y)}function eB(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&S.Wi.postRender(()=>r(e,C(e)))}class eI extends g{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=eF(t,i),o=t=>{if(!eO(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{eO(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(eB(this.node,e,"Start"),t=>eB(this.node,t,"End"))))}unmount(){}}class eW extends g{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,K.z)(V(this.node.current,"focus",()=>this.onFocus()),V(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var e$=i(45073);let eU=(t,e)=>!!e&&(t===e||eU(t,e.parentElement)),eX=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),eN=new WeakSet;function eY(t){return e=>{"Enter"===e.key&&t(e)}}function ez(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let eK=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=eY(()=>{if(eN.has(i))return;ez(i,"down");let t=eY(()=>{ez(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>ez(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function eH(t){return E(t)&&!(T.x||T.y)}function eZ(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&S.Wi.postRender(()=>r(e,C(e)))}class e_ extends g{mount(){let{current:t}=this.node;
1t&&(this.unmount=function(t,e,i={}){let[n,r,s]=eF(t,i),o=t=>{let n=t.currentTarget;if(!eH(t))return;eN.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),eN.has(n)&&eN.delete(n),eH(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||eU(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),(0,e$.R)(t)&&(t.addEventListener("focus",t=>eK(t,r)),eX.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(eZ(this.node,e,"Start"),(t,{success:e})=>eZ(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let eq=new WeakMap,eG=new WeakMap,eJ=t=>{let e=eq.get(t.target);e&&e(t)},eQ=t=>{t.forEach(eJ)},e0={some:0,all:1};class e1 extends g{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:e0[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;eG.has(i)||eG.set(i,{});
1let n=eG.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(eQ,{root:t,...e})),n[r]}(e);return eq.set(t,i),n.observe(t),()=>{eq.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let e3={animation:{Feature:y},exit:{Feature:w},inView:{Feature:e1},tap:{Feature:e_},focus:{Feature:eW},hover:{Feature:eI},pan:{Feature:tc},drag:{Feature:tu,ProjectionNode:eL,MeasureLayout:tA},layout:{ProjectionNode:eL,MeasureLayout:tA}}},7820:function(t,e,i){i.d(e,{J:function(){return y}});var n=i(30249),r=i(25873),s=i(42721),o=i(22834),a=i(85313);let l=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var u=i(19218),h=i(41765),c=i(81665),d=i(29665);let f=new Set(["auto","none","0"]);var p=i(81386);class m extends u.e{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&(n=n.trim(),(0,a.t)(n))){let r=function t(e,i,n=1){(0,s.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,u]=function(t){let e=l.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let h=window.getComputedStyle(i).getPropertyValue(r);if(h){let t=h.trim();return(0,o.P)(t)?parseFloat(t):t}return(0,a.t)(u)?t(u,i,n+1):u}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!n.z.has(i)||2!==t.length)return;let[u,h]=t,c=(0,r.C)(u),d=(0,r.C)(h);if(c!==d){if((0,p.mP)(c)&&(0,p.mP)(d))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else p.lw[i]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||(0,h.W)(n)))&&i.push(e)}i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!f.has(e)&&(0,c.V)(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=(0,d.T)(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=p.lw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let r=i.length-1,s=i[r];i[r]=p.lw[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}var v=i(63884),g=i(15357);class y extends g.l{constructor(){super(...arguments),this.KeyframeResolver=m}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;(0,v.i)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}},526:function(t,e,i){i.d(e,{b:function(){return a}});var n=i(83641),r=i(70699),s=i(70070),o=i(52148);let a=(t,e)=>(0,o.q)(t)?new s.e(e):new r.W(e,{allowProjection:t!==n.Fragment})},74028:function(t,e,i){i.d(e,{D:function(){return n}});let n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},52148:function(t,e,i){i.d(e,{q:function(){return r}});let n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function r(t){if("string"!=typeof t||t.includes("-"));else if(n.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}},70699:function(t,e,i){i.d(e,{W:function(){return c}});var n=i(78109),r=i(72841),s=i(85313),o=i(85023),a=i(7820),l=i(80246),u=i(79474),h=i(65660);class c extends a.J{constructor(){super(...arguments),this.type="html",this.renderInstance=u.N}readValueFromInstance(t,e){if(n.G.has(e))return this.projection?.isProjecting?(0,r.E$)(e):(0,r.RT)(t,e);{let i=window.getComputedStyle(t),n=((0,s.f)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return(0,o.J)(t,e)}build(t,e,i){(0,l.r)(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return(0,h.U)(t,e,i)}}},80246:function(t,e,i){i.d(e,{r:function(){return u}});var n=i(78109),r=i(85313);let s=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var o=i(67910);let a={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l=n._.length;function u(t,e,i){let{style:u,vars:h,transformOrigin:c}=t,d=!1,f=!1;for(let t in e){let i=e[t];if(n.G.has(t)){d=!0;continue}if((0,r.f)(t)){h[t]=i;continue}{let e=s(i,o.j[t]);t.startsWith("origin")?(f=!0,c[t]=e):u[t]=e}}if(!e.transform&&(d||i?u.transform=function(t,e,i){let r="",u=!0;for(let h=0;h<l;h++){let l=n._[h],c=t[l];if(void 0===c)continue;let d=!0;if(!(d="number"==typeof c?c===(l.startsWith("scale")?1:0):0===parseFloat(c))||i){let t=s(c,o.j[l]);if(!d){u=!1;let e=a[l]||l;r+=`${e}(${t}) `}i&&(e[l]=t)}}return r=r.trim(),i?r=i(e,u?"":r):u&&(r="none"),r}(e,t.transform,i):u.transform&&(u.transform="none")),f){let{originX:t="50%",originY:e="50%",originZ:i=0}=c;u.transformOrigin=`${t} ${e} ${i}`}}},79474:function(t,e,i){i.d(e,{N:function(){return n}});function n(t,{style:e,vars:i},n,r){let s;let o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}},65660:function(t,e,i){i.d(e,{U:function(){return s}});var n=i(63884),r=i(76425);function s(t,e,i){let{style:s}=t,o={};for(let a in s)((0,n.i)(s[a])||e.style&&(0,n.i)(e.style[a])||(0,r.j)(a,t)||i?.getValue(a)?.liveStyle!==void 0)&&(o[a]=s[a]);return o}},32728:function(t,e,i){i.d(e,{R:function(){return n}});let n=new WeakMap},70070:function(t,e,i){i.d(e,{e:function(){return f}});var n=i(78109),r=i(85804),s=i(74819),o=i(7820),a=i(74028),l=i(179);let u=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);var h=i(55490),c=i(79474),d=i(53581);class f extends o.J{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=s.dO}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(n.G.has(e)){let t=(0,r.A)(e);return t&&t.default||0}return e=u.has(e)?e:(0,a.D)(e),t.getAttribute(e)}
1scrapeMotionValuesFromProps(t,e,i){return(0,d.U)(t,e,i)}build(t,e,i){(0,l.i)(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){!function(t,e,i,n){for(let i in(0,c.N)(t,e,void 0,n),e.attrs)t.setAttribute(u.has(i)?i:(0,a.D)(i),e.attrs[i])}(t,e,0,n)}mount(t){this.isSVGTag=(0,h.a)(t.tagName),super.mount(t)}}},179:function(t,e,i){i.d(e,{i:function(){return a}});var n=i(80246),r=i(53909);let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function a(t,{attrX:e,attrY:i,attrScale:a,pathLength:l,pathSpacing:u=1,pathOffset:h=0,...c},d,f,p){if((0,n.r)(t,c,f),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:v}=t;m.transform&&(v.transform=m.transform,delete m.transform),(v.transform||m.transformOrigin)&&(v.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),v.transform&&(v.transformBox=p?.transformBox??"fill-box",delete m.transformBox),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==a&&(m.scale=a),void 0!==l&&function(t,e,i=1,n=0,a=!0){t.pathLength=1;let l=a?s:o;t[l.offset]=r.px.transform(-n);let u=r.px.transform(e),h=r.px.transform(i);t[l.array]=`${u} ${h}`}(m,l,u,h,!1)}},55490:function(t,e,i){i.d(e,{a:function(){return n}});let n=t=>"string"==typeof t&&"svg"===t.toLowerCase()},53581:function(t,e,i){i.d(e,{U:function(){return o}});var n=i(63884),r=i(78109),s=i(65660);function o(t,e,i){let o=(0,s.U)(t,e,i);for(let i in t)((0,n.i)(t[i])||(0,n.i)(e[i]))&&(o[-1!==r._.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return o}},42925:function(t,e,i){i.d(e,{G:function(){return o},M:function(){return a}});var n=i(34753),r=i(31380),s=i(32514);function o(t){return(0,n.H)(t.animate)||s.V.some(e=>(0,r.$)(t[e]))}function a(t){return!!(o(t)||t.variants)}},31380:function(t,e,i){i.d(e,{$:function(){return n}});function n(t){return"string"==typeof t||Array.isArray(t)}},84648:function(t,e,i){i.d(e,{x:function(){return r}});var n=i(59689);function r(t,e,i){let r=t.getProps();return(0,n.o)(r,e,void 0!==i?i:r.custom,t)}},59689:function(t,e,i){function n(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function r(t,e,i,r){if("function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,o]=n(r);e=e(void 0!==i?i:t.custom,s,o)}return e}i.d(e,{o:function(){return r}})},32514:function(t,e,i){i.d(e,{V:function(){return r},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],r=["initial",...n]},55663:function(t,e,i){i.d(e,{j:function(){return n}});let n="undefined"!=typeof window},33422:function(t,e,i){i.d(e,{I:function(){return n}});function n(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}},61510:function(t,e,i){i.d(e,{h:function(){return r}});var n=i(83641);function r(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},21335:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(83641);let r=i(55663).j?n.useLayoutEffect:n.useEffect},72966:function(t,e,i){i.d(e,{K:function(){return s}});var n=i(89111),r=i(63884);function s(t,e){let i=t.getValue("willChange");if((0,r.i)(i)&&i.add)return i.add(e);if(!i&&n.c.WillChange){let i=new n.c.WillChange("auto");t.addValue("willChange",i),i.add(e)}}},59880:function(t,e,i){i.d(e,{b:function(){return r}});var n=i(63884);function r(t){return(0,n.i)(t)?t.get():t}},75355:function(t,e,i){i.d(e,{L:function(){return y}});var n=i(77357),r=i(97733),s=i(13593),o=i(10481),a=i(39638),l=i(1169),u=i(21588);let h=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>u.Wi.update(e,t),stop:()=>(0,u.Pn)(e),now:()=>u.frameData.isProcessing?u.frameData.timestamp:o.X.now()}};var c=i(79685),d=i(59759),f=i(15783),p=i(78983),m=i(47169),v=i(77322);let g=t=>t/100;class y extends v.T{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==o.X.now()&&this.tick(o.X.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},a.P.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;(0,m.f)(t);let{type:e=d.F,repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:o=0}=t,{keyframes:a}=t,u=e||d.F;u!==d.F&&"number"!=typeof a[0]&&(this.mixKeyframes=(0,n.z)(g,(0,l.C)(a[0],a[1])),a=[0,100]);let h=u({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=u({...t,keyframes:[...a].reverse(),velocity:-o})),null===h.calculatedDuration&&(h.calculatedDuration=(0,f.i)(h));let{calculatedDuration:c}=h;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=h}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:u=0,keyframes:h,repeat:d,repeatType:f,repeatDelay:m,type:v,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?x<0:x>n;
1this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let P=this.currentTime,T=i;if(d){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(i=1-i,m&&(i-=m/a)):"mirror"===f&&(T=o)),P=(0,r.u)(0,1,i)*a}let b=w?{done:!1,value:h[0]}:T.next(P);s&&(b.value=s(b.value));let{done:S}=b;w||null===l||(S=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let A=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return A&&v!==c.I&&(b.value=(0,p.$)(h,this.options,y,this.speed)),g&&g(b.value),A&&this.finish(),b}then(t,e){return this.finished.then(t,e)}get duration(){return(0,s.X)(this.calculatedDuration)}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+(0,s.X)(t)}get time(){return(0,s.X)(this.currentTime)}set time(t){t=(0,s.w)(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(o.X.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,s.X)(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=h,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(o.X.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,a.P.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}},79685:function(t,e,i){i.d(e,{I:function(){return s}});var n=i(64184),r=i(60790);function s({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:l,min:u,max:h,restDelta:c=.5,restSpeed:d}){let f,p;let m=t[0],v={done:!1,value:m},g=t=>void 0!==u&&t<u||void 0!==h&&t>h,y=t=>void 0===u?h:void 0===h?u:Math.abs(u-t)<Math.abs(h-t)?u:h,x=i*e,w=m+x,P=void 0===l?w:l(w);P!==w&&(x=P-m);let T=t=>-x*Math.exp(-t/s),b=t=>P+T(t),S=t=>{let e=T(t),i=b(t);v.done=Math.abs(e)<=c,v.value=v.done?P:i},A=t=>{g(v.value)&&(f=t,p=(0,n.S)({keyframes:[v.value,y(v.value)],velocity:(0,r.P)(b,t,v.value),damping:o,stiffness:a,restDelta:c,restSpeed:d}))};return A(0),{calculatedDuration:null,next:t=>{let e=!1;return(p||void 0!==f||(e=!0,S(t),A(t)),void 0!==f&&t>=f)?p.next(t-f):(e||S(t),v)}}}},59759:function(t,e,i){i.d(e,{F:function(){return l}});var n=i(40499),r=i(98028),s=i(90270),o=i(84537),a=i(44210);function l({duration:t=300,keyframes:e,times:i,ease:l="easeInOut"}){let u=(0,r.N)(l)?l.map(s.R):(0,s.R)(l),h={done:!1,value:e[0]},c=(i&&i.length===e.length?i:(0,a.Y)(e)).map(e=>e*t),d=(0,o.s)(c,e,{ease:Array.isArray(u)?u:e.map(()=>u||n.mZ).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(h.value=d(e),h.done=e>=t,h)}}},64184:function(t,e,i){i.d(e,{S:function(){return m}});var n=i(97733),r=i(13593),s=i(8540),o=i(15783),a=i(98534),l=i(60790);let u={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};var h=i(42721);function c(t,e){return t*Math.sqrt(1-e*e)}let d=["duration","bounce"],f=["stiffness","damping","mass"];function p(t,e){return e.some(e=>void 0!==t[e])}function m(t=u.visualDuration,e=u.bounce){let i;let a="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:m,restDelta:v}=a,g=a.keyframes[0],y=a.keyframes[a.keyframes.length-1],x={done:!1,value:g},{stiffness:w,damping:P,mass:T,duration:b,velocity:S,isResolvedFromDuration:A}=function(t){let e={velocity:u.velocity,stiffness:u.stiffness,damping:u.damping,mass:u.mass,isResolvedFromDuration:!1,...t};if(!p(t,f)&&p(t,d)){if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,s=2*(0,n.u)(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:u.mass,stiffness:r,damping:s}}else{let i=function({duration:t=u.duration,bounce:e=u.bounce,velocity:i=u.velocity,mass:s=u.mass}){let o,a;(0,h.K)(t<=(0,r.w)(u.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-e;l=(0,n.u)(u.minDamping,u.maxDamping,l),t=(0,n.u)(u.minDuration,u.maxDuration,(0,r.X)(t)),l<1?(o=e=>{let n=e*l,r=n*t;return .001-(n-i)/c(e,l)*Math.exp(-r)},a=e=>{let n=e*l*t,r=Math.pow(l,2)*Math.pow(e,2)*t,s=c(Math.pow(e,2),l);return(n*i+i-r)*Math.exp(-n)*(-o(e)+.001>0?-1:1)/s}):(o=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),a=e=>t*t*(i-e)*Math.exp(-e*t));
1let d=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(o,a,5/t);if(t=(0,r.w)(t),isNaN(d))return{stiffness:u.stiffness,damping:u.damping,duration:t};{let e=Math.pow(d,2)*s;return{stiffness:e,damping:2*l*Math.sqrt(s*e),duration:t}}}(t);(e={...e,...i,mass:u.mass}).isResolvedFromDuration=!0}}return e}({...a,velocity:-(0,r.X)(a.velocity||0)}),M=S||0,D=P/(2*Math.sqrt(w*T)),V=y-g,E=(0,r.X)(Math.sqrt(w/T)),C=5>Math.abs(V);if(m||(m=C?u.restSpeed.granular:u.restSpeed.default),v||(v=C?u.restDelta.granular:u.restDelta.default),D<1){let t=c(E,D);i=e=>y-Math.exp(-D*E*e)*((M+D*E*V)/t*Math.sin(t*e)+V*Math.cos(t*e))}else if(1===D)i=t=>y-Math.exp(-E*t)*(V+(M+E*V)*t);else{let t=E*Math.sqrt(D*D-1);i=e=>{let i=Math.exp(-D*E*e),n=Math.min(t*e,300);return y-i*((M+D*E*V)*Math.sinh(n)+t*V*Math.cosh(n))/t}}let k={calculatedDuration:A&&b||null,next:t=>{let e=i(t);if(A)x.done=t>=b;else{let n=0===t?M:0;D<1&&(n=0===t?(0,r.w)(M):(0,l.P)(i,t,e));let s=Math.abs(n)<=m,o=Math.abs(y-e)<=v;x.done=s&&o}return x.value=x.done?y:e,x},toString:()=>{let t=Math.min((0,o.i)(k),o.E),e=(0,s.w)(e=>k.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return k}m.applyToOptions=t=>{let e=(0,a.S)(t,100,m);return t.ease=e.ease,t.duration=(0,r.w)(e.duration),t.type="keyframes",t}},15783:function(t,e,i){i.d(e,{E:function(){return n},i:function(){return r}});let n=2e4;function r(t){let e=0,i=t.next(e);for(;!i.done&&e<n;)e+=50,i=t.next(e);return e>=n?1/0:e}},98534:function(t,e,i){i.d(e,{S:function(){return s}});var n=i(13593),r=i(15783);function s(t,e=100,i){let s=i({...t,keyframes:[0,e]}),o=Math.min((0,r.i)(s),r.E);return{type:"keyframes",ease:t=>s.next(o*t).value/e,duration:(0,n.X)(o)}}},8478:function(t,e,i){i.d(e,{x:function(){return n}});function n(t){return"function"==typeof t&&"applyToOptions"in t}},60790:function(t,e,i){i.d(e,{P:function(){return r}});var n=i(306);function r(t,e,i){let r=Math.max(e-5,0);return(0,n.R)(i-t(r),e-r)}},19218:function(t,e,i){i.d(e,{e:function(){return d},m:function(){return c}});var n=i(81386),r=i(21588);let s=new Set,o=!1,a=!1,l=!1;function u(){if(a){let t=Array.from(s).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=(0,n.Ei)(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}a=!1,o=!1,s.forEach(t=>t.complete(l)),s.clear()}function h(){s.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)})}function c(){l=!0,h(),u(),l=!1}class d{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(s.add(this),o||(o=!0,r.Wi.read(h),r.Wi.resolveKeyframes(u))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}!function(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),s.delete(this)}cancel(){"scheduled"===this.state&&(s.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}},78983:function(t,e,i){i.d(e,{$:function(){return r}});let n=t=>null!==t;function r(t,{repeat:e,repeatType:i="loop"},r,s=1){let o=t.filter(n),a=s<0||e&&"loop"!==i&&e%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}},44210:function(t,e,i){i.d(e,{Y:function(){return r}});var n=i(83099);function r(t){let e=[0];return(0,n.c)(e,t.length-1),e}},83099:function(t,e,i){i.d(e,{c:function(){return s}});var n=i(98992),r=i(35333);function s(t,e){let i=t[t.length-1];for(let s=1;s<=e;s++){let o=(0,n.Y)(0,e,s);t.push((0,r.t)(i,1,o))}}}
1,81386:function(t,e,i){i.d(e,{Ei:function(){return h},lw:function(){return c},mP:function(){return a}});var n=i(72841),r=i(78109),s=i(47603),o=i(53909);let a=t=>t===s.Rx||t===o.px,l=new Set(["x","y","z"]),u=r._.filter(t=>!l.has(t));function h(t){let e=[];return u.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(i.startsWith("scale")?1:0))}),e}let c={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>(0,n.WK)(e,"x"),y:(t,{transform:e})=>(0,n.WK)(e,"y")};c.translateX=c.x,c.translateY=c.y},77322:function(t,e,i){i.d(e,{T:function(){return n}});class n{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}},72048:function(t,e,i){i.d(e,{e:function(){return n}});function n(t,e){return t?.[e]??t?.default??t}},85313:function(t,e,i){i.d(e,{f:function(){return r},t:function(){return o}});let n=t=>e=>"string"==typeof e&&e.startsWith(t),r=n("--"),s=n("var(--"),o=t=>!!s(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},47169:function(t,e,i){i.d(e,{f:function(){return a}});var n=i(79685),r=i(59759),s=i(64184);let o={decay:n.I,inertia:n.I,tween:r.F,keyframes:r.F,spring:s.S};function a(t){"string"==typeof t.type&&(t.type=o[t.type])}},8540:function(t,e,i){i.d(e,{w:function(){return n}});let n=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`}},86362:function(t,e,i){i.d(e,{Z:function(){return o}});var n=i(89111);let r=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];var s=i(88784);function o(t,e){let i=!1,o=!0,a={delta:0,timestamp:0,isProcessing:!1},l=()=>i=!0,u=r.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,o=!1,a=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1},u=0;function h(e){a.has(e)&&(c.schedule(e),t()),u++,e(l)}let c={schedule:(t,e=!1,s=!1)=>{let o=s&&r?i:n;return e&&a.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(l=t,r){o=!0;return}r=!0,[i,n]=[n,i],i.forEach(h),e&&s.f.value&&s.f.value.frameloop[e].push(u),u=0,i.clear(),r=!1,o&&(o=!1,c.process(t))}};return c}(l,e?i:void 0),t),{}),{setup:h,read:c,resolveKeyframes:d,preUpdate:f,update:p,preRender:m,render:v,postRender:g}=u,y=()=>{let r=n.c.useManualTiming?a.timestamp:performance.now();i=!1,n.c.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(r-a.timestamp,40),1)),a.timestamp=r,a.isProcessing=!0,h.process(a),c.process(a),d.process(a),f.process(a),p.process(a),m.process(a),v.process(a),g.process(a),a.isProcessing=!1,i&&e&&(o=!1,t(y))},x=()=>{i=!0,o=!0,a.isProcessing||t(y)};return{schedule:r.reduce((t,e)=>{let n=u[e];return t[e]=(t,e=!1,r=!1)=>(i||x(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e<r.length;e++)u[r[e]].cancel(t)},state:a,steps:u}}},21588:function(t,e,i){i.d(e,{Pn:function(){return s},Wi:function(){return r},frameData:function(){return o},yL:function(){return a}});var n=i(66457);let{schedule:r,cancel:s,state:o,steps:a}=(0,i(86362).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},54062:function(t,e,i){i.d(e,{g:function(){return n}});let{schedule:n,cancel:r}=(0,i(86362).Z)(queueMicrotask,!1)},10481:function(t,e,i){let n;i.d(e,{X:function(){return a}});var r=i(89111),s=i(21588);function o(){n=void 0}let a={now:()=>(void 0===n&&a.set(s.frameData.isProcessing||r.c.useManualTiming?s.frameData.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(o)}}},72841:function(t,e,i){i.d(e,{E$:function(){return h},RT:function(){return d},WK:function(){return c}});let n=t=>180*t/Math.PI,r=t=>o(n(Math.atan2(t[1],t[0]))),s={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:r,rotateZ:r,skewX:t=>n(Math.atan(t[1])),skewY:t=>n(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},o=t=>((t%=360)<0&&(t+=360),t),a=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),u={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:a,scaleY:l,scale:t=>(a(t)+l(t))/2,rotateX:t=>o(n(Math.atan2(t[6],t[5]))),rotateY:t=>o(n(Math.atan2(-t[2],t[0]))),rotateZ:r,rotate:r,skewX:t=>n(Math.atan(t[4])),skewY:t=>n(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function h(t){return t.includes("scale")?1:0}function c(t,e){let i,n;if(!t||"none"===t)return h(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=u,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=s,n=e}if(!n)return h(e);let o=i[e],a=n[1].split(",").map(f);return"function"==typeof o?o(a):a[o]}let d=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return c(i,e)};function f(t){return parseFloat(t.trim())}}
1,30249:function(t,e,i){i.d(e,{z:function(){return n}});let n=new Set(["width","height","top","left","right","bottom",...i(78109)._])},78109:function(t,e,i){i.d(e,{G:function(){return r},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(n)},39638:function(t,e,i){i.d(e,{P:function(){return n}});let n={layout:0,mainThread:0,waapi:0}},88784:function(t,e,i){i.d(e,{f:function(){return n}});let n={value:null,addProjectionMetrics:null}},84537:function(t,e,i){i.d(e,{s:function(){return h}});var n=i(89111),r=i(66457),s=i(77357),o=i(42721),a=i(98992),l=i(97733),u=i(1169);function h(t,e,{clamp:i=!0,ease:h,mixer:c}={}){let d=t.length;if((0,o.k)(d===e.length,"Both input and output ranges must be the same length","range-length"),1===d)return()=>e[0];if(2===d&&e[0]===e[1])return()=>e[1];let f=t[0]===t[1];t[0]>t[d-1]&&(t=[...t].reverse(),e=[...e].reverse());let p=function(t,e,i){let o=[],a=i||n.c.mix||u.C,l=t.length-1;for(let i=0;i<l;i++){let n=a(t[i],t[i+1]);if(e){let t=Array.isArray(e)?e[i]||r.Z:e;n=(0,s.z)(t,n)}o.push(n)}return o}(e,h,c),m=p.length,v=i=>{if(f&&i<t[0])return e[0];let n=0;if(m>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let r=(0,a.Y)(t[n],t[n+1],i);return p[n](r)};return i?e=>v((0,l.u)(t[0],t[d-1],e)):v}},45073:function(t,e,i){i.d(e,{R:function(){return r}});var n=i(74372);function r(t){return(0,n.K)(t)&&"offsetHeight"in t}},94127:function(t,e,i){i.d(e,{v:function(){return r}});var n=i(74372);function r(t){return(0,n.K)(t)&&"ownerSVGElement"in t}},71614:function(t,e,i){i.d(e,{r:function(){return r}});var n=i(94127);function r(t){return(0,n.v)(t)&&"svg"===t.tagName}},1169:function(t,e,i){i.d(e,{C:function(){return A}});var n=i(77357),r=i(42721),s=i(85313),o=i(71659),a=i(81665),l=i(75815),u=i(58537);function h(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var c=i(43779);function d(t,e){return i=>i>0?e:t}var f=i(35333);let p=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},m=[l.$,c.m,u.J],v=t=>m.find(e=>e.test(t));function g(t){let e=v(t);if((0,r.K)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===u.J&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=h(a,n,t+1/3),s=h(a,n,t),o=h(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let y=(t,e)=>{let i=g(t),n=g(e);if(!i||!n)return d(t,e);let r={...i};return t=>(r.red=p(i.red,n.red,t),r.green=p(i.green,n.green,t),r.blue=p(i.blue,n.blue,t),r.alpha=(0,f.t)(i.alpha,n.alpha,t),c.m.transform(r))},x=new Set(["none","hidden"]);function w(t,e){return i=>(0,f.t)(t,e,i)}function P(t){return"number"==typeof t?w:"string"==typeof t?(0,s.t)(t)?d:o.$.test(t)?y:S:Array.isArray(t)?T:"object"==typeof t?o.$.test(t)?y:b:d}function T(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>P(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function b(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=P(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let S=(t,e)=>{let i=a.P.createTransformer(e),s=(0,a.V)(t),o=(0,a.V)(e);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?x.has(t)&&!o.values.length||x.has(e)&&!s.values.length?x.has(t)?i=>i<=0?t:e:i=>i>=1?e:t:(0,n.z)(T(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(s,o),o.values),i):((0,r.K)(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),d(t,e))};function A(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?(0,f.t)(t,e,i):P(t)(t,e)}}
1,35333:function(t,e,i){i.d(e,{t:function(){return n}});let n=(t,e,i)=>t+(e-t)*i},33342:function(t,e,i){i.d(e,{I:function(){return n}});function n(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}},75187:function(t,e,i){i.d(e,{t:function(){return n}});let n=(0,i(54597).X)(()=>void 0!==window.ScrollTimeline)},22874:function(t,e,i){i.d(e,{BX:function(){return h},S1:function(){return l}});var n=i(58631),r=i(306),s=i(10481),o=i(21588);let a=t=>!isNaN(parseFloat(t)),l={current:void 0};class u{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=s.X.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=s.X.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=a(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new n.L);let i=this.events[t].add(e);return"change"===t?()=>{i(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=s.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,r.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function h(t,e){return new u(t,e)}},75815:function(t,e,i){i.d(e,{$:function(){return r}});var n=i(43779);let r={test:(0,i(77012).i)("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:n.m.transform}},58537:function(t,e,i){i.d(e,{J:function(){return a}});var n=i(47603),r=i(53909),s=i(84103),o=i(77012);let a={test:(0,o.i)("hsl","hue"),parse:(0,o.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:o=1})=>"hsla("+Math.round(t)+", "+r.aQ.transform((0,s.N)(e))+", "+r.aQ.transform((0,s.N)(i))+", "+(0,s.N)(n.Fq.transform(o))+")"}},71659:function(t,e,i){i.d(e,{$:function(){return o}});var n=i(75815),r=i(58537),s=i(43779);let o={test:t=>s.m.test(t)||n.$.test(t)||r.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):r.J.test(t)?r.J.parse(t):n.$.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?s.m.transform(t):r.J.transform(t),getAnimatableNone:t=>{let e=o.parse(t);return e.alpha=0,o.transform(e)}}}
1,43779:function(t,e,i){i.d(e,{m:function(){return u}});var n=i(97733),r=i(47603),s=i(84103),o=i(77012);let a=t=>(0,n.u)(0,255,t),l={...r.Rx,transform:t=>Math.round(a(t))},u={test:(0,o.i)("rgb","red"),parse:(0,o.d)("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(i)+", "+(0,s.N)(r.Fq.transform(n))+")"}},77012:function(t,e,i){i.d(e,{i:function(){return s},d:function(){return o}});var n=i(33010);let r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s=(t,e)=>i=>!!("string"==typeof i&&r.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),o=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[s,o,a,l]=r.match(n.K);return{[t]:parseFloat(s),[e]:parseFloat(o),[i]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},60130:function(t,e,i){i.d(e,{h:function(){return l}});var n=i(81665),r=i(33010);let s=new Set(["brightness","contrast","saturate","opacity"]);function o(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(r.K)||[];if(!n)return t;let o=i.replace(n,""),a=s.has(e)?1:0;return n!==i&&(a*=100),e+"("+a+o+")"}let a=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:t=>{let e=t.match(a);return e?e.map(o).join(" "):t}}},81665:function(t,e,i){i.d(e,{V:function(){return h},P:function(){return p}});var n=i(71659);let r=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var s=i(33010),o=i(84103);let a="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function h(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},s=[],o=0,h=e.replace(u,t=>(n.$.test(t)?(r.color.push(o),s.push(l),i.push(n.$.parse(t))):t.startsWith("var(")?(r.var.push(o),s.push("var"),i.push(t)):(r.number.push(o),s.push(a),i.push(parseFloat(t))),++o,"${}")).split("${}");return{values:i,split:h,indexes:r,types:s}}function c(t){return h(t).values}function d(t){let{split:e,types:i}=h(t),r=e.length;return t=>{let s="";for(let u=0;u<r;u++)if(s+=e[u],void 0!==t[u]){let e=i[u];e===a?s+=(0,o.N)(t[u]):e===l?s+=n.$.transform(t[u]):s+=t[u]}return s}}let f=t=>"number"==typeof t?0:n.$.test(t)?n.$.getAnimatableNone(t):t,p={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(s.K)?.length||0)+(t.match(r)?.length||0)>0},parse:c,createTransformer:d,getAnimatableNone:function(t){let e=c(t);return d(t)(e.map(f))}}},25873:function(t,e,i){i.d(e,{$:function(){return o},C:function(){return a}});var n=i(47603),r=i(53909),s=i(43938);let o=[n.Rx,r.px,r.aQ,r.RW,r.vw,r.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>o.find((0,s.l)(t))},85804:function(t,e,i){i.d(e,{A:function(){return o}});var n=i(71659),r=i(60130);let s={...i(67910).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:r.h,WebkitFilter:r.h},o=t=>s[t]},67910:function(t,e,i){i.d(e,{j:function(){return a}});var n=i(47603);let r={...n.Rx,transform:Math.round};var s=i(53909);let o={rotate:s.RW,rotateX:s.RW,rotateY:s.RW,rotateZ:s.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:s.RW,skewX:s.RW,skewY:s.RW,distance:s.px,translateX:s.px,translateY:s.px,translateZ:s.px,x:s.px,y:s.px,z:s.px,perspective:s.px,transformPerspective:s.px,opacity:n.Fq,originX:s.$C,originY:s.$C,originZ:s.px},a={borderWidth:s.px,borderTopWidth:s.px,borderRightWidth:s.px,borderBottomWidth:s.px,borderLeftWidth:s.px,borderRadius:s.px,radius:s.px,borderTopLeftRadius:s.px,borderTopRightRadius:s.px,borderBottomRightRadius:s.px,borderBottomLeftRadius:s.px,width:s.px,maxWidth:s.px,height:s.px,maxHeight:s.px,top:s.px,right:s.px,bottom:s.px,left:s.px,padding:s.px,paddingTop:s.px,paddingRight:s.px,paddingBottom:s.px,paddingLeft:s.px,margin:s.px,marginTop:s.px,marginRight:s.px,marginBottom:s.px,marginLeft:s.px,backgroundPositionX:s.px,backgroundPositionY:s.px,...o,zIndex:r,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:r}}
1,47603:function(t,e,i){i.d(e,{Fq:function(){return s},Rx:function(){return r},bA:function(){return o}});var n=i(97733);let r={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},s={...r,transform:t=>(0,n.u)(0,1,t)},o={...r,default:1}},53909:function(t,e,i){i.d(e,{$C:function(){return u},RW:function(){return r},aQ:function(){return s},px:function(){return o},vh:function(){return a},vw:function(){return l}});let n=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),r=n("deg"),s=n("%"),o=n("px"),a=n("vh"),l=n("vw"),u={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},43938:function(t,e,i){i.d(e,{l:function(){return n}});let n=t=>e=>e.test(t)},29665:function(t,e,i){i.d(e,{T:function(){return o}});var n=i(81665),r=i(60130),s=i(85804);function o(t,e){let i=(0,s.A)(t);return i!==r.h&&(i=n.P),i.getAnimatableNone?i.getAnimatableNone(e):void 0}},33010:function(t,e,i){i.d(e,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},84103:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Math.round(1e5*t)/1e5},63884:function(t,e,i){i.d(e,{i:function(){return n}});let n=t=>!!(t&&t.getVelocity)},12917:function(t,e,i){function n(t,e){-1===t.indexOf(e)&&t.push(e)}function r(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}i.d(e,{cl:function(){return r},y4:function(){return n}})},97733:function(t,e,i){i.d(e,{u:function(){return n}});let n=(t,e,i)=>i>e?e:i<t?t:i},49307:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(53310);let r=t=>(t*=2)<1?.5*(0,n.G2)(t):.5*(2-Math.pow(2,-10*(t-1)))},53310:function(t,e,i){i.d(e,{CG:function(){return o},G2:function(){return a},XL:function(){return l}});var n=i(27525),r=i(37172),s=i(34936);let o=(0,n._)(.33,1.53,.69,.99),a=(0,s.M)(o),l=(0,r.o)(a)},98850:function(t,e,i){i.d(e,{Bn:function(){return o},X7:function(){return a},Z7:function(){return s}});var n=i(37172),r=i(34936);let s=t=>1-Math.sin(Math.acos(t)),o=(0,r.M)(s),a=(0,n.o)(s)},27525:function(t,e,i){i.d(e,{_:function(){return s}});var n=i(66457);let r=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function s(t,e,i,s){if(t===e&&i===s)return n.Z;let o=e=>(function(t,e,i,n,s){let o,a;let l=0;do(o=r(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(o)>1e-7&&++l<12);return a})(e,0,1,t,i);return t=>0===t||1===t?t:r(o(t),e,s)}},40499:function(t,e,i){i.d(e,{Vv:function(){return s},YQ:function(){return r},mZ:function(){return o}});var n=i(27525);let r=(0,n._)(.42,0,1,1),s=(0,n._)(0,0,.58,1),o=(0,n._)(.42,0,.58,1)},37172:function(t,e,i){i.d(e,{o:function(){return n}});let n=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},34936:function(t,e,i){i.d(e,{M:function(){return n}});let n=t=>e=>1-t(1-e)},95273:function(t,e,i){i.d(e,{q:function(){return n}});let n=t=>Array.isArray(t)&&"number"==typeof t[0]},98028:function(t,e,i){i.d(e,{N:function(){return n}});let n=t=>Array.isArray(t)&&"number"!=typeof t[0]},90270:function(t,e,i){i.d(e,{R:function(){return f}});var n=i(42721),r=i(66457),s=i(49307),o=i(53310),a=i(98850),l=i(27525),u=i(40499),h=i(95273);let c={linear:r.Z,easeIn:u.YQ,easeInOut:u.mZ,easeOut:u.Vv,circIn:a.Z7,circInOut:a.X7,circOut:a.Bn,backIn:o.G2,backInOut:o.XL,backOut:o.CG,anticipate:s.L},d=t=>"string"==typeof t,f=t=>{if((0,h.q)(t)){(0,n.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,r,s]=t;return(0,l._)(e,i,r,s)}return d(t)?((0,n.k)(void 0!==c[t],`Invalid easing type '${t}'`,"invalid-easing-type"),c[t]):t}},42721:function(t,e,i){i.d(e,{K:function(){return n},k:function(){return r}});let n=()=>{},r=()=>{}},89111:function(t,e,i){i.d(e,{c:function(){return n}});let n={}},22834:function(t,e,i){i.d(e,{P:function(){return n}});let n=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},74372:function(t,e,i){i.d(e,{K:function(){return n}});function n(t){return"object"==typeof t&&null!==t}},41765:function(t,e,i){i.d(e,{W:function(){return n}});let n=t=>/^0[^.\s]+$/u.test(t)},54597:function(t,e,i){i.d(e,{X:function(){return n}});function n(t){let e;return()=>(void 0===e&&(e=t()),e)}},66457:function(t,e,i){i.d(e,{Z:function(){return n}});let n=t=>t}
1,77357:function(t,e,i){i.d(e,{z:function(){return r}});let n=(t,e)=>i=>e(t(i)),r=(...t)=>t.reduce(n)},98992:function(t,e,i){i.d(e,{Y:function(){return n}});let n=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n}},58631:function(t,e,i){i.d(e,{L:function(){return r}});var n=i(12917);class r{constructor(){this.subscriptions=[]}add(t){return(0,n.y4)(this.subscriptions,t),()=>(0,n.cl)(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},13593:function(t,e,i){i.d(e,{X:function(){return r},w:function(){return n}});let n=t=>1e3*t,r=t=>t/1e3},306:function(t,e,i){i.d(e,{R:function(){return n}});function n(t,e){return e?1e3/e*t:0}}}]);
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.