"use strict";(self.webpackChunkgardaoto=self.webpackChunkgardaoto||[]).push([[6356],{62123:(t,e,n)=>{n.d(e,{P:()=>o});var i=n(97800);const s=(0,n(17721).p)((()=>void 0!==window.ScrollTimeline));class o{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,e){return Promise.all(this.animations).then(t).catch(e)}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;n{if(!s()||!e.attachTimeline)return e.pause(),function(t,e){let n;const s=()=>{const{currentTime:i}=e,s=(null===i?0:i.value)/100;n!==s&&t(s),n=s};return i.Gt.update(s,!0),()=>(0,i.WG)(s)}((t=>{e.time=e.duration*t}),t);e.attachTimeline(t)}));return()=>{e.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}},8035:(t,e,n)=>{n.d(e,{i:()=>W});var i=n(392),s=n(82067),o=n(96985),r=n(62123);var a=n(83558),l=n(67311),u=n(39167),h=n(70851);function c(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=(0,l.x)(t)?new u.l(e):new h.M(e);n.mount(t),s.C.set(t,n)}var d=n(77611),p=n(2406),m=n(54265),f=n(92449);function v(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const n=(0,p.o)({keyframes:[0,e],...t}),i=Math.min((0,m.t)(n),m.Y);return{type:"keyframes",ease:t=>n.next(i*t).value/e,duration:(0,f.X)(i)}}var g=n(59035),y=n(13227),x=n(67922),P=n(38232);function w(t,e,n,i){var s;return"number"==typeof e?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):"<"===e?n:null!==(s=i.get(e))&&void 0!==s?s:t}const S=(t,e,n)=>{const i=e-t;return((n-t)%i+i)%i+t};var T=n(8531);function b(t,e){return(0,T.h)(t)?t[S(0,t.length,e)]:t}var A=n(23062),V=n(44625);function E(t,e,n,i,s,o){!function(t,e,n){for(let i=0;ie&&s.at"number"==typeof t,j=t=>t.every(L);function F(t,e,n,l){const u=(0,i.K)(t,l),h=u.length;(0,o.V)(Boolean(h),"No valid element provided.");const d=[];for(let t=0;t1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const o=e.duration||.3,r=new Map,a=new Map,l={},u=new Map;let h=0,c=0,d=0;for(let n=0;n3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const a=R(t),{delay:l=0,times:u=(0,g.Z)(a),type:h="keyframes",...p}=n;let{ease:m=e.ease||"easeOut",duration:x}=n;const P="function"==typeof l?l(s,r):l,w=a.length;if(w<=2&&"spring"===h){let t=100;if(2===w&&j(a)){const e=a[1]-a[0];t=Math.abs(e)}const e={...p};void 0!==x&&(e.duration=(0,f.f)(x));const n=v(e,t);m=n.ease,x=n.duration}null!=x||(x=o);const T=c+P,b=T+x;1===u.length&&0===u[0]&&(u[1]=1);const A=u.length-a.length;A>0&&(0,y.f)(u,A),1===a.length&&a.unshift(null),E(i,a,m,u,T,b),S=Math.max(P+x,S),d=Math.max(b,d)};if((0,P.S)(p))T(m,x,D("default",k(p,a)));else{const t=(0,i.K)(p,s,l),e=t.length;for(let n=0;n{for(const s in t){const o=t[s];o.sort(C);const a=[],l=[],u=[];for(let t=0;t{let n,{keyframes:i,transition:o}=t;n=(0,P.S)(e)?(0,d.z)(e,i.default,o.default):F(e,i,o),s.push(n)})),new r.P(s)}const W=function(t,e,n){let i;var s;return s=t,i=Array.isArray(s)&&Array.isArray(s[0])?O(t,e,I):function(t){return"object"==typeof t&&!Array.isArray(t)}(e)?F(t,e,n,I):(0,d.z)(t,e,n),I&&I.animations.push(i),i};var I},84659:(t,e,n)=>{n.d(e,{M:()=>i});const i=new Set(["opacity","clipPath","filter","transform"])},2406:(t,e,n)=>{n.d(e,{o:()=>y});var i=n(92449),s=n(15882),o=n(96985),r=n(13904);const a=.001,l=.01,u=10,h=.05,c=1;function d(t){let e,n,{duration:s=800,bounce:d=.25,velocity:f=0,mass:v=1}=t;(0,o.$)(s<=(0,i.f)(u),"Spring duration must be 10 seconds or less");let g=1-d;g=(0,r.q)(h,c,g),s=(0,r.q)(l,u,(0,i.X)(s)),g<1?(e=t=>{const e=t*g,n=e*s,i=e-f,o=m(t,g),r=Math.exp(-n);return a-i/o*r},n=t=>{const n=t*g*s,i=n*f+f,o=Math.pow(g,2)*Math.pow(t,2)*s,r=Math.exp(-n),l=m(Math.pow(t,2),g);return(-e(t)+a>0?-1:1)*((i-o)*r)/l}):(e=t=>Math.exp(-t*s)*((t-f)*s+1)-a,n=t=>Math.exp(-t*s)*(s*s*(f-t)));const y=function(t,e,n){let i=n;for(let n=1;nvoid 0!==t[e]))}function y(t){let{keyframes:e,restDelta:n,restSpeed:o,...r}=t;const a=e[0],l=e[e.length-1],u={done:!1,value:a},{stiffness:h,damping:c,mass:p,duration:y,velocity:x,isResolvedFromDuration:P}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!g(t,v)&&g(t,f)){const n=d(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}({...r,velocity:-(0,i.X)(r.velocity||0)}),w=x||0,S=c/(2*Math.sqrt(h*p)),T=l-a,b=(0,i.X)(Math.sqrt(h/p)),A=Math.abs(T)<5;let V;if(o||(o=A?.01:2),n||(n=A?.005:.5),S<1){const t=m(b,S);V=e=>{const n=Math.exp(-S*b*e);return l-n*((w+S*b*T)/t*Math.sin(t*e)+T*Math.cos(t*e))}}else if(1===S)V=t=>l-Math.exp(-b*t)*(T+(w+b*T)*t);else{const t=b*Math.sqrt(S*S-1);V=e=>{const n=Math.exp(-S*b*e),i=Math.min(t*e,300);return l-n*((w+S*b*T)*Math.sinh(i)+t*T*Math.cosh(i))/t}}return{calculatedDuration:P&&y||null,next:t=>{const e=V(t);if(P)u.done=t>=y;else{let r=0;S<1&&(r=0===t?(0,i.f)(w):(0,s.Y)(V,t,e));const a=Math.abs(r)<=o,h=Math.abs(l-e)<=n;u.done=a&&h}return u.value=u.done?l:e,u}}}},54265:(t,e,n)=>{n.d(e,{Y:()=>i,t:()=>s});const i=2e4;function s(t){let e=0;let n=t.next(e);for(;!n.done&&e=i?1/0:e}},15882:(t,e,n)=>{n.d(e,{Y:()=>o});var i=n(24073);const s=5;function o(t,e,n){const o=Math.max(e-s,0);return(0,i.f)(n-t(o),e-o)}},29748:(t,e,n)=>{n.d(e,{f:()=>ht});var i=n(92449),s=n(2760);const o={type:"spring",stiffness:500,damping:25,restSpeed:10},r={type:"keyframes",duration:.8},a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},l=(t,e)=>{let{keyframes:n}=e;return n.length>2?r:s.f.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:o:a};var u=n(88042),h=n(73628);const c=!1,d=t=>null!==t;function p(t,e,n){let{repeat:i,repeatType:s="loop"}=e;const o=t.filter(d),r=i&&"loop"!==s&&i%2==1?0:o.length-1;return r&&void 0!==n?n:o[r]}var m=n(97800),f=n(95722),v=n(17721),g=n(25627),y=n(27030),x=n(67827),P=n(96985),w=n(94494);const S=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!w.f.test(t)&&"0"!==t||t.startsWith("url(")));class T{constructor(t){let{autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:r="loop",...a}=t;this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=y.k.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,x.q)(),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=y.k.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:s,delay:o,onComplete:r,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,n,i){const s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;const o=t[t.length-1],r=S(s,e),a=S(o,e);return(0,P.$)(r===a,`You are trying to animate ${e} from "${s}" to "${o}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${o} via the \`style\` property.`),!(!r||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;n{this.resolveFinishedPromise=t}))}}var b=n(2406),A=n(15882);function V(t){let{keyframes:e,velocity:n=0,power:i=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:r=500,modifyTarget:a,min:l,max:u,restDelta:h=.5,restSpeed:c}=t;const d=e[0],p={done:!1,value:d},m=t=>void 0===l?u:void 0===u||Math.abs(l-t)-f*Math.exp(-t/s),x=t=>g+y(t),P=t=>{const e=y(t),n=x(t);p.done=Math.abs(e)<=h,p.value=p.done?g:n};let w,S;const T=t=>{var e;(e=p.value,void 0!==l&&eu)&&(w=t,S=(0,b.o)({keyframes:[p.value,m(p.value)],velocity:(0,A.Y)(x,t,p.value),damping:o,stiffness:r,restDelta:h,restSpeed:c}))};return T(0),{calculatedDuration:null,next:t=>{let e=!1;return S||void 0!==w||(e=!0,P(t),T(t)),void 0!==w&&t>=w?S.next(t-w):(!e&&P(t),p)}}}const E=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,C=1e-7,M=12;function k(t,e,n,i){if(t===e&&n===i)return g.l;const s=e=>function(t,e,n,i,s){let o,r,a=0;do{r=e+(n-e)/2,o=E(r,i,s)-t,o>0?n=r:e=r}while(Math.abs(o)>C&&++a0===t||1===t?t:E(s(t),e,i)}const D=k(.42,0,1,1),R=k(0,0,.58,1),B=k(.42,0,.58,1);var L=n(8531),j=n(38132),F=n(40817),O=n(21474);const W=k(.33,1.53,.69,.99),I=(0,O.G)(W),U=(0,F.V)(I),G={linear:g.l,easeIn:D,easeInOut:B,easeOut:R,circIn:j.po,circInOut:j.tn,circOut:j.yT,backIn:I,backInOut:U,backOut:W,anticipate:t=>(t*=2)<1?.5*I(t):.5*(2-Math.pow(2,-10*(t-1)))},$=t=>{if(Array.isArray(t)){(0,P.V)(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,i,s]=t;return k(e,n,i,s)}return"string"==typeof t?((0,P.V)(void 0!==G[t],`Invalid easing type '${t}'`),G[t]):t};var N=n(92028),K=n(59035);function z(t){let{duration:e=300,keyframes:n,times:i,ease:s="easeInOut"}=t;const o=(0,L.h)(s)?s.map($):$(s),r={done:!1,value:n[0]},a=function(t,e){return t.map((t=>t*e))}(i&&i.length===n.length?i:(0,K.Z)(n),e),l=(0,N.G)(a,n,{ease:Array.isArray(o)?o:(u=n,h=o,u.map((()=>h||B)).splice(0,u.length-1))});var u,h;return{calculatedDuration:e,next:t=>(r.value=l(t),r.done=t>=e,r)}}var H=n(84475),Y=n(30848),X=n(54265),q=n(13904);const Q=t=>{const e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>m.Gt.update(e,!0),stop:()=>(0,m.WG)(e),now:()=>m.uv.isProcessing?m.uv.timestamp:y.k.now()}},Z={decay:V,inertia:V,tween:z,keyframes:z,spring:b.o},_=t=>t/100;class J extends T{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:t}=this.options;t&&t()};const{name:e,motionValue:n,element:i,keyframes:s}=this.options,o=(null==i?void 0:i.KeyframeResolver)||x.h;this.resolver=new o(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,r=Z[e]||z;let a,l;r!==z&&"number"!=typeof t[0]&&(a=(0,H.F)(_,(0,Y.j)(t[0],t[1])),t=[0,100]);const u=r({...this.options,keyframes:t});"mirror"===s&&(l=r({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=(0,X.t)(u));const{calculatedDuration:h}=u,c=h+i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-i}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:r,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=n;if(null===this.startTime)return s.next(0);const{delay:c,repeat:d,repeatType:m,repeatDelay:f,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let x=this.currentTime,P=s;if(d){const t=Math.min(this.currentTime,u)/h;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,d+1);Boolean(e%2)&&("reverse"===m?(n=1-n,f&&(n-=f/h)):"mirror"===m&&(P=o)),x=(0,q.q)(0,1,n)*h}const w=y?{done:!1,value:a[0]}:P.next(x);r&&(w.value=r(w.value));let{done:S}=w;y||null===l||(S=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return T&&void 0!==i&&(w.value=p(a,this.options,i)),v&&v(w.value),T&&this.finish(),w}get duration(){const{resolved:t}=this;return t?(0,i.X)(t.calculatedDuration):0}get time(){return(0,i.X)(this.currentTime)}set time(t){t=(0,i.f)(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=(0,i.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=Q,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}var tt=n(84659);const et=t=>Array.isArray(t)&&"number"==typeof t[0];function nt(t){return Boolean(!t||"string"==typeof t&&t in st||et(t)||Array.isArray(t)&&t.every(nt))}const it=t=>{let[e,n,i,s]=t;return`cubic-bezier(${e}, ${n}, ${i}, ${s})`},st={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:it([0,.65,.55,1]),circOut:it([.55,0,1,.45]),backIn:it([.31,.01,.66,-.59]),backOut:it([.33,1.53,.69,.99])};function ot(t){return rt(t)||st.easeOut}function rt(t){return t?et(t)?it(t):Array.isArray(t)?t.map(ot):st[t]:void 0}const at=(0,v.p)((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class lt extends T{constructor(t){super(t);const{name:e,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new f.K(s,((t,e)=>this.onKeyframesResolved(t,e)),e,n,i),this.resolver.scheduleResolve()}initPlayback(t,e){var n;let{duration:i=300,times:s,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!(null===(n=a.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(h=this.options).type||!nt(h.ease)){const{onComplete:e,onUpdate:n,motionValue:a,element:l,...u}=this.options,h=function(t,e){const n=new J({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let o=0;for(;!i.done&&o<2e4;)i=n.sample(o),s.push(i.value),o+=10;return{times:void 0,keyframes:s,duration:o-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),i=h.duration,s=h.times,o=h.ease,r="keyframes"}var h;const c=function(t,e,n){let{delay:i=0,duration:s=300,repeat:o=0,repeatType:r="loop",ease:a,times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u={[e]:n};l&&(u.offset=l);const h=rt(a);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:i,duration:s,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===r?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;a.set(p(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:r,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return(0,i.X)(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return(0,i.X)(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=(0,i.f)(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return g.l;const{animation:n}=e;n.timeline=t,n.onfinish=null}else this.pendingTimeline=t;return g.l}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:s,type:o,ease:r,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:l,element:u,...h}=this.options,c=new J({...h,keyframes:n,duration:s,type:o,ease:r,times:a,isGenerator:!0}),d=(0,i.f)(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:i,repeatType:s,damping:o,type:r}=t;return at()&&n&&tt.M.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!i&&"mirror"!==s&&0!==o&&"inertia"!==r}}var ut=n(62123);const ht=function(t,e,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;return d=>{const f=(0,u.r)(s,t)||{},v=f.delay||s.delay||0;let{elapsed:g=0}=s;g-=(0,i.f)(v);let y={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...f,delay:-g,onUpdate:t=>{e.set(t),f.onUpdate&&f.onUpdate(t)},onComplete:()=>{d(),f.onComplete&&f.onComplete(),a&&a()},onStop:a,name:t,motionValue:e,element:r?void 0:o};(0,u.D)(f)||(y={...y,...l(t,y)}),y.duration&&(y.duration=(0,i.f)(y.duration)),y.repeatDelay&&(y.repeatDelay=(0,i.f)(y.repeatDelay)),void 0!==y.from&&(y.keyframes[0]=y.from);let x=!1;if((!1===y.type||0===y.duration&&!y.repeatDelay)&&(y.duration=0,0===y.delay&&(x=!0)),(c||h.W.skipAnimations)&&(x=!0,y.duration=0,y.delay=0),x&&!r&&void 0!==e.get()){const t=p(y.keyframes,f);if(void 0!==t)return m.Gt.update((()=>{y.onUpdate(t),y.onComplete()})),new ut.P([])}return!r&<.supports(y)?new lt(y):new J(y)}}},77611:(t,e,n)=>{n.d(e,{z:()=>r});var i=n(29748),s=n(17473),o=n(38232);function r(t,e,n){const r=(0,o.S)(t)?t:(0,s.OQ)(t);return r.start((0,i.f)("",r,e,n)),r.animation}},83558:(t,e,n)=>{n.d(e,{$:()=>m});var i=n(2760),s=n(29748),o=n(96693),r=n(17473),a=n(63777);function l(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,r.OQ)(n))}var u=n(88042),h=n(85322),c=n(50526),d=n(97800);function p(t,e){let{protectedKeys:n,needsAnimating:i}=t;const s=n.hasOwnProperty(e)&&!0!==i[e];return i[e]=!1,s}function m(t,e){let{delay:n=0,transitionOverride:r,type:m}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var f;let{transition:v=t.getDefaultTransition(),transitionEnd:g,...y}=e;r&&(v=r);const x=[],P=m&&t.animationState&&t.animationState.getState()[m];for(const e in y){const o=t.getValue(e,null!==(f=t.latestValues[e])&&void 0!==f?f:null),r=y[e];if(void 0===r||P&&p(P,e))continue;const a={delay:n,...(0,u.r)(v||{},e)};let l=!1;if(window.MotionHandoffAnimation){const n=(0,h.P)(t);if(n){const t=window.MotionHandoffAnimation(n,e,d.Gt);null!==t&&(a.startTime=t,l=!0)}}o.start((0,s.f)(e,o,r,t.shouldReduceMotion&&i.f.has(e)?{type:!1}:a,t,l,(0,c.g)(t,e)));const m=o.animation;m&&x.push(m)}return g&&Promise.all(x).then((()=>{d.Gt.update((()=>{g&&function(t,e){const n=(0,a.K)(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const e in r)l(t,e,(0,o.K)(r[e]))}(t,g)}))})),x}},49512:(t,e,n)=>{n.d(e,{n:()=>i});const i="data-"+(0,n(79246).I)("framerAppearId")},85322:(t,e,n)=>{n.d(e,{P:()=>s});var i=n(49512);function s(t){return t.props[i.n]}},70498:(t,e,n)=>{function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}n.d(e,{N:()=>i})},56640:(t,e,n)=>{n.d(e,{p:()=>i});const i=t=>Array.isArray(t)},88042:(t,e,n)=>{function i(t){let{when:e,delay:n,delayChildren:i,staggerChildren:s,staggerDirection:o,repeat:r,repeatType:a,repeatDelay:l,from:u,elapsed:h,...c}=t;return!!Object.keys(c).length}function s(t,e){return t[e]||t.default||t}n.d(e,{D:()=>i,r:()=>s})},42278:(t,e,n)=>{n.d(e,{Q:()=>i});const i=(0,n(9950).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},38132:(t,e,n)=>{n.d(e,{po:()=>o,tn:()=>a,yT:()=>r});var i=n(40817),s=n(21474);const o=t=>1-Math.sin(Math.acos(t)),r=(0,s.G)(o),a=(0,i.V)(o)},40817:(t,e,n)=>{n.d(e,{V:()=>i});const i=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2},21474:(t,e,n)=>{n.d(e,{G:()=>i});const i=t=>e=>1-t(1-e)},8531:(t,e,n)=>{n.d(e,{h:()=>i});const i=t=>Array.isArray(t)&&"number"!=typeof t[0]},6494:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(73628);const s=["read","resolveKeyframes","update","preRender","render","postRender"],o=40;function r(t,e){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=s.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,i=!1,s=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(r)}const l={schedule:function(t){const s=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(t),s.has(t)||s.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{r=t,i?s=!0:(i=!0,[e,n]=[n,e],n.clear(),e.forEach(a),i=!1,s&&(s=!1,l.process(t)))}};return l}(l),t)),{}),{read:h,resolveKeyframes:c,update:d,preRender:p,render:m,postRender:f}=u,v=()=>{const s=i.W.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(s-a.timestamp,o),1),a.timestamp=s,a.isProcessing=!0,h.process(a),c.process(a),d.process(a),p.process(a),m.process(a),f.process(a),a.isProcessing=!1,n&&e&&(r=!1,t(v))},g=s.reduce(((e,i)=>{const s=u[i];return e[i]=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,a.isProcessing||t(v)),s.schedule(e,i,o)},e}),{});return{schedule:g,cancel:t=>{for(let e=0;e{n.d(e,{Ci:()=>l,Gt:()=>o,WG:()=>r,uv:()=>a});var i=n(25627),s=n(6494);const{schedule:o,cancel:r,state:a,steps:l}=(0,s.I)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.l,!0)},27030:(t,e,n)=>{n.d(e,{k:()=>a});var i=n(73628),s=n(97800);let o;function r(){o=void 0}const a={now:()=>(void 0===o&&a.set(s.uv.isProcessing||i.W.useManualTiming?s.uv.timestamp:performance.now()),o),set:t=>{o=t,queueMicrotask(r)}}},35132:(t,e,n)=>{n.d(e,{B:()=>s});const i={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"]},s={};for(const t in i)s[t]={isEnabled:e=>i[t].some((t=>!!e[t]))}},10061:(t,e,n)=>{n.d(e,{z:()=>o});var i=n(27365),s=n(2760);function o(t,e){let{layout:n,layoutId:o}=e;return s.f.has(t)||t.startsWith("origin")||(n||void 0!==o)&&(!!i.H[t]||"opacity"===t)}},78176:(t,e,n)=>{function i(t){let{top:e,left:n,right:i,bottom:s}=t;return{x:{min:n,max:i},y:{min:e,max:s}}}function s(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function o(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}n.d(e,{FY:()=>i,bS:()=>o,pA:()=>s})},41241:(t,e,n)=>{n.d(e,{OU:()=>c,Ql:()=>d,Ww:()=>m,hq:()=>o,o4:()=>l});var i=n(44625),s=n(70126);function o(t,e,n){return n+e*(t-n)}function r(t,e,n,i,s){return void 0!==s&&(t=o(t,s,i)),o(t,n,i)+e}function a(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0;t.min=r(t.min,e,n,i,s),t.max=r(t.max,e,n,i,s)}function l(t,e){let{x:n,y:i}=e;a(t.x,n.translate,n.scale,n.originPoint),a(t.y,i.translate,i.scale,i.originPoint)}const u=.999999999999,h=1.0000000000001;function c(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.length;if(!o)return;let r,a;e.x=e.y=1;for(let u=0;uu&&(e.x=1),e.yu&&(e.y=1)}function d(t,e){t.min=t.min+e,t.max=t.max+e}function p(t,e,n,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;a(t,e,n,(0,i.k)(t.min,t.max,o),s)}function m(t,e){p(t.x,e.x,e.scaleX,e.scale,e.originX),p(t.y,e.y,e.scaleY,e.scale,e.originY)}},78826:(t,e,n)=>{n.d(e,{ge:()=>s,xU:()=>i});const i=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),s=()=>({x:{min:0,max:0},y:{min:0,max:0}})},27365:(t,e,n)=>{n.d(e,{$:()=>s,H:()=>i});const i={};function s(t){Object.assign(i,t)}},70126:(t,e,n)=>{function i(t){return void 0===t||1===t}function s(t){let{scale:e,scaleX:n,scaleY:s}=t;return!i(e)||!i(n)||!i(s)}function o(t){return s(t)||r(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function r(t){return a(t.x)||a(t.y)}function a(t){return t&&"0%"!==t}n.d(e,{HD:()=>o,vF:()=>r,vk:()=>s})},44005:(t,e,n)=>{n.d(e,{L:()=>r,m:()=>o});var i=n(78176),s=n(41241);function o(t,e){return(0,i.FY)((0,i.bS)(t.getBoundingClientRect(),e))}function r(t,e,n){const i=o(t,n),{scroll:r}=e;return r&&((0,s.Ql)(i.x,r.offset.x),(0,s.Ql)(i.y,r.offset.y)),i}},35854:(t,e,n)=>{function i(t){if("undefined"==typeof Proxy)return t;const e=new Map;return new Proxy((function(){return t(...arguments)}),{get:(n,i)=>"create"===i?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}n.d(e,{P:()=>ci});var s=n(70498),o=n(56640);function r(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:{};var i;const s=(0,l.K)(t,e,"exit"===n.type?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(o=n.transitionOverride);const r=s?()=>Promise.all((0,h.$)(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:s=0,staggerChildren:r,staggerDirection:a}=o;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0;const r=[],a=(t.variantChildren.size-1)*i,l=1===s?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i}:function(){return a-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*i};return Array.from(t.variantChildren).sort(d).forEach(((t,i)=>{t.notify("AnimationStart",e),r.push(c(t,e,{...o,delay:n+l(i)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(r)}(t,e,s+i,r,a,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[t,e]="beforeChildren"===u?[r,a]:[a,r];return t().then((()=>e()))}return Promise.all([r(),a(n.delay)])}function d(t,e){return t.sortNodePosition(e)}const p=[...u.U].reverse(),m=u.U.length;function f(t){return e=>Promise.all(e.map((e=>{let{animation:n,options:i}=e;return function(t,e){let n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const s=e.map((e=>c(t,e,i)));n=Promise.all(s)}else if("string"==typeof e)n=c(t,e,i);else{const s="function"==typeof e?(0,l.K)(t,e,i.custom):e;n=Promise.all((0,h.$)(t,s,i))}return n.then((()=>{t.notify("AnimationComplete",e)}))}(t,n,i)})))}function v(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!r(e,t)}function g(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function y(){return{animate:g(!0),whileInView:g(),whileHover:g(),whileTap:g(),whileDrag:g(),whileFocus:g(),exit:g()}}class x{constructor(t){this.isMounted=!1,this.node=t}update(){}}let P=0;const w={animation:{Feature:class extends x{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=f(t),n=y(),i=!0;const u=e=>(n,i)=>{var s;const o=(0,l.K)(t,i,"exit"===e?null===(s=t.presenceContext)||void 0===s?void 0:s.custom:void 0);if(o){const{transition:t,transitionEnd:e,...i}=o;n={...n,...i,...e}}return n};function h(l){const h=t.getProps(),c=t.getVariantContext(!0)||{},d=[],f=new Set;let g={},y=1/0;for(let e=0;ey&&w,A=!1;const V=Array.isArray(P)?P:[P];let E=V.reduce(u(m),{});!1===S&&(E={});const{prevResolvedValues:C={}}=x,M={...C,...E},k=e=>{b=!0,f.has(e)&&(A=!0,f.delete(e)),x.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in M){const e=E[t],n=C[t];if(g.hasOwnProperty(t))continue;let i=!1;i=(0,o.p)(e)&&(0,o.p)(n)?!r(e,n):e!==n,i?null!=e?k(t):f.add(t):void 0!==e&&f.has(t)?k(t):x.protectedKeys[t]=!0}x.prevProp=P,x.prevResolvedValues=E,x.isActive&&(g={...g,...E}),i&&t.blockInitialAnimation&&(b=!1),!b||T&&!A||d.push(...V.map((t=>({animation:t,options:{type:m}}))))}if(f.size){const e={};f.forEach((n=>{const i=t.getBaseTarget(n),s=t.getValue(n);s&&(s.liveStyle=!0),e[n]=null!=i?i:null})),d.push({animation:e})}let x=Boolean(d.length);return!i||!1!==h.initial&&h.initial!==h.animate||t.manuallyAnimateOnMount||(x=!1),i=!1,x?e(d):Promise.resolve()}return{animateChanges:h,setActive:function(e,i){var s;if(n[e].isActive===i)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,i)})),n[e].isActive=i;const o=h(e);for(const t in n)n[t].protectedKeys={};return o},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=y(),i=!0}}}(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();(0,s.N)(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends x{constructor(){super(...arguments),this.id=P++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);e&&!t&&i.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};var S=n(25627),T=n(96985);const b=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function A(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}const V=t=>e=>b(e)&&t(e,A(e));var E=n(92449);function C(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function M(t,e,n,i){return C(t,e,V(n),i)}var k=n(84475);const D=(t,e)=>Math.abs(t-e);var R=n(97800);class B{constructor(t,e){let{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=F(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=D(t.x,e.x),i=D(t.y,e.y);return Math.sqrt(n**2+i**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:i}=t,{timestamp:s}=R.uv;this.history.push({...i,timestamp:s});const{onStart:o,onMove:r}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),r&&r(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=L(e,this.transformPagePoint),R.Gt.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:i,resumeAnimation:s}=this.handlers;if(this.dragSnapToOrigin&&s&&s(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=F("pointercancel"===t.type?this.lastMoveEventInfo:L(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),i&&i(t,o)},!b(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=n,this.contextWindow=i||window;const o=L(A(t),this.transformPagePoint),{point:r}=o,{timestamp:a}=R.uv;this.history=[{...r,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,F(o,this.history)),this.removeListeners=(0,k.F)(M(this.contextWindow,"pointermove",this.handlePointerMove),M(this.contextWindow,"pointerup",this.handlePointerUp),M(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,R.WG)(this.updatePoint)}}function L(t,e){return e?{point:e(t.point)}:t}function j(t,e){return{x:t.x-e.x,y:t.y-e.y}}function F(t,e){let{point:n}=t;return{point:n,delta:j(n,W(e)),offset:j(n,O(e)),velocity:I(e,.1)}}function O(t){return t[0]}function W(t){return t[t.length-1]}function I(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=W(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>(0,E.f)(e)));)n--;if(!i)return{x:0,y:0};const o=(0,E.X)(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};const r={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function U(t){let e=null;return()=>{const n=()=>{e=null};return null===e&&(e=t,n)}}const G=U("dragHorizontal"),$=U("dragVertical");function N(t){let e=!1;if("y"===t)e=$();else if("x"===t)e=G();else{const t=G(),n=$();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function K(){const t=N(!0);return!t||(t(),!1)}function z(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}var H=n(67922),Y=n(44625);const X=.9999,q=1.0001,Q=-.01,Z=.01;function _(t){return t.max-t.min}function J(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=i,t.originPoint=(0,Y.k)(e.min,e.max,t.origin),t.scale=_(n)/_(e),t.translate=(0,Y.k)(n.min,n.max,t.origin)-t.originPoint,(t.scale>=X&&t.scale<=q||isNaN(t.scale))&&(t.scale=1),(t.translate>=Q&&t.translate<=Z||isNaN(t.translate))&&(t.translate=0)}function tt(t,e,n,i){J(t.x,e.x,n.x,i?i.originX:void 0),J(t.y,e.y,n.y,i?i.originY:void 0)}function et(t,e,n){t.min=n.min+e.min,t.max=t.min+_(e)}function nt(t,e,n){t.min=e.min-n.min,t.max=t.min+_(e)}function it(t,e,n){nt(t.x,e.x,n.x),nt(t.y,e.y,n.y)}var st=n(13904);function ot(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function rt(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min{let{current:e}=t;return e?e.ownerDocument.defaultView:null};var gt=n(50526);const yt=new WeakMap;class xt{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,ht.ge)(),this.visualElement=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new B(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(A(t,"page").point)},onStart:(t,e)=>{var n;const{drag:i,dragPropagation:s,onDragStart:o}=this.getProps();if(i&&!s&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=N(i),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ct((t=>{let e=this.getAxisMotionValue(t).get()||0;if(mt.KN.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const i=n.layout.layoutBox[t];if(i){e=_(i)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&R.Gt.postRender((()=>o(t,e))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=(0,gt.g)(this.visualElement,"transform");const{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:r}=e;if(i&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(r),void(null!==this.currentDirection&&s&&s(this.currentDirection));this.updateAxis("x",e.point,r),this.updateAxis("y",e.point,r),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>ct((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:vt(this.visualElement)})}stop(t,e){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=e;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&&R.Gt.postRender((()=>o(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:i}=this.getProps();if(!n||!Pt(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,e,n){let{min:i,max:s}=e;return void 0!==i&&ts&&(t=n?(0,Y.k)(s,t,n.max):Math.min(t,s)),t}(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,s=this.constraints;e&&z(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,e){let{top:n,left:i,bottom:s,right:o}=e;return{x:ot(t.x,i,o),y:ot(t.y,n,s)}}(i.layoutBox,e),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:at;return!1===t?t=0:!0===t&&(t=at),{x:lt(t,"left","right"),y:lt(t,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ct((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(i.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!z(t))return!1;const n=t.current;(0,T.V)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=(0,dt.L)(n,i.root,this.visualElement.getTransformPagePoint());let o=function(t,e){return{x:rt(t.x,e.x),y:rt(t.y,e.y)}}(i.layout.layoutBox,s);if(e){const t=e((0,pt.pA)(o));this.hasMutatedConstraints=!!t,t&&(o=(0,pt.FY)(t))}return o}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:r}=this.getProps(),a=this.constraints||{},l=ct((r=>{if(!Pt(r,e,this.currentDirection))return;let l=a&&a[r]||{};o&&(l={min:0,max:0});const u=i?200:1e6,h=i?40:1e7,c={type:"inertia",velocity:n?t[r]:0,bounceStiffness:u,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(r,c)}));return Promise.all(l).then(r)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return n.start((0,ft.f)(t,n,0,e,this.visualElement,!1,(0,gt.g)(this.visualElement,t)))}stopAnimation(){ct((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){ct((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[e];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){ct((e=>{const{drag:n}=this.getProps();if(!Pt(e,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(e);if(i&&i.layout){const{min:n,max:o}=i.layout.layoutBox[e];s.set(t[e]-(0,Y.k)(n,o,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!z(e)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ct((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();i[t]=function(t,e){let n=.5;const i=_(t),s=_(e);return s>i?n=(0,H.q)(e.min,e.max-i,t.min):i>s&&(n=(0,H.q)(t.min,t.max-s,e.min)),(0,st.q)(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ct((e=>{if(!Pt(e,t,null))return;const n=this.getAxisMotionValue(e),{min:s,max:o}=this.constraints[e];n.set((0,Y.k)(s,o,i[e]))}))}addListeners(){if(!this.visualElement.current)return;yt.set(this.visualElement,this);const t=M(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();z(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),R.Gt.read(e);const s=C(window,"resize",(()=>this.scalePositionWithinConstraints())),o=n.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(ct((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{s(),t(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=at,dragMomentum:r=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:r}}}function Pt(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const wt=t=>(e,n)=>{t&&R.Gt.postRender((()=>t(e,n)))};var St=n(44414),Tt=n(9950);const bt=(0,Tt.createContext)(null);const At=(0,Tt.createContext)({}),Vt=(0,Tt.createContext)({}),Et={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ct(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Mt={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!mt.px.test(t))return t;t=parseFloat(t)}return`${Ct(t,e.target.x)}% ${Ct(t,e.target.y)}%`}};var kt=n(94494);const Dt={correct:(t,e)=>{let{treeScale:n,projectionDelta:i}=e;const s=t,o=kt.f.parse(t);if(o.length>5)return s;const r=kt.f.createTransformer(t),a="number"!=typeof o[0]?1:0,l=i.x.scale*n.x,u=i.y.scale*n.y;o[0+a]/=l,o[1+a]/=u;const h=(0,Y.k)(l,u,.5);return"number"==typeof o[2+a]&&(o[2+a]/=h),"number"==typeof o[3+a]&&(o[3+a]/=h),r(o)}};var Rt=n(27365),Bt=n(6494);const{schedule:Lt,cancel:jt}=(0,Bt.I)(queueMicrotask,!1);class Ft extends Tt.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=t;(0,Rt.$)(Wt),s&&(e.group&&e.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(()=>{this.safeToRemove()})),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Et.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o?(o.isPresent=s,i||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||R.Gt.postRender((()=>{const t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Lt.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ot(t){const[e,n]=function(){const t=(0,Tt.useContext)(bt);if(null===t)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,s=(0,Tt.useId)();(0,Tt.useEffect)((()=>i(s)),[]);const o=(0,Tt.useCallback)((()=>n&&n(s)),[s,n]);return!e&&n?[!1,o]:[!0]}(),i=(0,Tt.useContext)(At);return(0,St.jsx)(Ft,{...t,layoutGroup:i,switchLayoutGroup:(0,Tt.useContext)(Vt),isPresent:e,safeToRemove:n})}const Wt={borderRadius:{...Mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomLeftRadius:Mt,borderBottomRightRadius:Mt,boxShadow:Dt};var It=n(18334),Ut=n(38132);const Gt=["TopLeft","TopRight","BottomLeft","BottomRight"],$t=Gt.length,Nt=t=>"string"==typeof t?parseFloat(t):t,Kt=t=>"number"==typeof t||mt.px.test(t);function zt(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const Ht=Xt(0,.5,Ut.yT),Yt=Xt(.5,.95,S.l);function Xt(t,e,n){return i=>ie?1:n((0,H.q)(t,e,i))}function qt(t,e){t.min=e.min,t.max=e.max}function Qt(t,e){qt(t.x,e.x),qt(t.y,e.y)}function Zt(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}var _t=n(41241);function Jt(t,e,n,i,s){return t-=e,t=(0,_t.hq)(t,1/n,i),void 0!==s&&(t=(0,_t.hq)(t,1/s,i)),t}function te(t,e,n,i,s){let[o,r,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;mt.KN.test(e)&&(e=parseFloat(e),e=(0,Y.k)(r.min,r.max,e/100)-r.min);if("number"!=typeof e)return;let a=(0,Y.k)(o.min,o.max,i);t===o&&(a-=e),t.min=Jt(t.min,e,n,a,s),t.max=Jt(t.max,e,n,a,s)}(t,e[o],e[r],e[a],e.scale,i,s)}const ee=["x","scaleX","originX"],ne=["y","scaleY","originY"];function ie(t,e,n,i){te(t.x,e,ee,n?n.x:void 0,i?i.x:void 0),te(t.y,e,ne,n?n.y:void 0,i?i.y:void 0)}var se=n(88042);function oe(t){return 0===t.translate&&1===t.scale}function re(t){return oe(t.x)&&oe(t.y)}function ae(t,e){return t.min===e.min&&t.max===e.max}function le(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ue(t,e){return le(t.x,e.x)&&le(t.y,e.y)}function he(t){return _(t.x)/_(t.y)}function ce(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}var de=n(23062);class pe{constructor(){this.members=[]}add(t){(0,de.Kq)(this.members,t),t.scheduleRender()}remove(t){if((0,de.Ai)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let t=e;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var me=n(70126);const fe=(t,e)=>t.depth-e.depth;class ve{constructor(){this.children=[],this.isDirty=!1}add(t){(0,de.Kq)(this.children,t),this.isDirty=!0}remove(t){(0,de.Ai)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(fe),this.isDirty=!1,this.children.forEach(t)}}var ge=n(96693),ye=n(38232);function xe(t){const e=(0,ye.S)(t)?t.get():t;return(0,ge.B)(e)?e.toValue():e}var Pe=n(27030);var we=n(67311),Se=n(77611),Te=n(85322);const be={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ae="undefined"!=typeof window&&void 0!==window.MotionDebug,Ve=["","X","Y","Z"],Ee={visibility:"hidden"};let Ce=0;function Me(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function ke(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=(0,Te.P)(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",R.Gt,!(e||i))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&ke(i)}function De(t){let{attachResizeListener:e,defaultParent:n,measureScroll:i,checkIsScrollRoot:s,resetTransform:o}=t;return class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==n?void 0:n();this.id=Ce++,this.animationId=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,Ae&&(be.totalNodes=be.resolvedTargetDeltas=be.recalculatedProjection=0),this.nodes.forEach(Le),this.nodes.forEach(Ge),this.nodes.forEach($e),this.nodes.forEach(je),Ae&&window.MotionDebug.record(be)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t1?n-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;this.isSVG=(0,we.x)(t),this.instance=t;const{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||i)&&(this.isLayoutDirty=!0),e){let n;const i=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){const n=Pe.k.now(),i=s=>{let{timestamp:o}=s;const r=o-n;r>=e&&((0,R.WG)(i),t(r-e))};return R.Gt.read(i,!0),()=>(0,R.WG)(i)}(i,250),Et.hasAnimatedSinceResize&&(Et.hasAnimatedSinceResize=!1,this.nodes.forEach(Ue))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeTargetChanged:i,layout:s}=t;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||o.getDefaultTransition()||Xe,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),u=!this.targetLayout||!ue(this.targetLayout,s)||i,h=!n&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||h||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,h);const t={...(0,se.r)(r,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||Ue(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,R.WG)(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(Ne),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ke(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=s(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(!o)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!re(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;t&&(e||(0,me.HD)(this.latestValues)||s)&&(o(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var i;return t&&(n=this.removeTransform(n)),Ze((i=n).x),Ze(i.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return(0,ht.ge)();const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(Je))){const{scroll:t}=this.root;t&&((0,_t.Ql)(n.x,t.offset.x),(0,_t.Ql)(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n=(0,ht.ge)();if(Qt(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let e=0;e1&&void 0!==arguments[1]&&arguments[1];const n=(0,ht.ge)();Qt(n,t);for(let t=0;t0&&void 0!==arguments[0]&&arguments[0];var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const i=Boolean(this.resumingFrom)||this!==n;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:o}=this.options;if(this.layout&&(s||o)){if(this.resolvedRelativeTargetAt=R.uv.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,ht.ge)(),this.relativeTargetOrigin=(0,ht.ge)(),it(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var r,a,l;if(this.target||(this.target=(0,ht.ge)(),this.targetWithTransforms=(0,ht.ge)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),r=this.target,a=this.relativeTarget,l=this.relativeParent.target,et(r.x,a.x,l.x),et(r.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Qt(this.target,this.layout.layoutBox),(0,_t.o4)(this.target,this.targetDelta)):Qt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,ht.ge)(),this.relativeTargetOrigin=(0,ht.ge)(),it(this.relativeTargetOrigin,this.target,t.target),Qt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ae&&be.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!(0,me.vk)(this.parent.latestValues)&&!(0,me.vF)(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let i=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===R.uv.timestamp&&(i=!1),i)return;const{layout:s,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!s&&!o)return;Qt(this.layoutCorrected,this.layout.layoutBox);const r=this.treeScale.x,a=this.treeScale.y;(0,_t.OU)(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms=(0,ht.ge)());const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Zt(this.prevProjectionDelta.x,this.projectionDelta.x),Zt(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),tt(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&ce(this.projectionDelta.x,this.prevProjectionDelta.x)&&ce(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ae&&be.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,ht.xU)(),this.projectionDelta=(0,ht.xU)(),this.projectionDeltaWithTransform=(0,ht.xU)()}setAnimationOrigin(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,i=n?n.latestValues:{},s={...this.latestValues},o=(0,ht.xU)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;const r=(0,ht.ge)(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,h=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(Ye));let c;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,d,p,m,f,v;ze(o.x,t.x,n),ze(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(it(r,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=r,v=n,He(p.x,m.x,f.x,v),He(p.y,m.y,f.y,v),c&&(l=this.relativeTarget,d=c,ae(l.x,d.x)&&ae(l.y,d.y))&&(this.isProjectionDirty=!1),c||(c=(0,ht.ge)()),Qt(c,this.relativeTarget)),a&&(this.animationValues=s,function(t,e,n,i,s,o){s?(t.opacity=(0,Y.k)(0,void 0!==n.opacity?n.opacity:1,Ht(i)),t.opacityExit=(0,Y.k)(void 0!==e.opacity?e.opacity:1,0,Yt(i))):o&&(t.opacity=(0,Y.k)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s<$t;s++){const o=`border${Gt[s]}Radius`;let r=zt(e,o),a=zt(n,o);void 0===r&&void 0===a||(r||(r=0),a||(a=0),0===r||0===a||Kt(r)===Kt(a)?(t[o]=Math.max((0,Y.k)(Nt(r),Nt(a),i),0),(mt.KN.test(a)||mt.KN.test(r))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,Y.k)(e.rotate||0,n.rotate||0,i))}(s,i,this.latestValues,n,h,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,R.WG)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=R.Gt.update((()=>{Et.hasAnimatedSinceResize=!0,this.currentAnimation=(0,Se.z)(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{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);const 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(){const t=this.getLead();let{targetWithTransforms:e,target:n,layout:i,latestValues:s}=t;if(e&&n&&i){if(this!==t&&this.layout&&i&&_e(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||(0,ht.ge)();const e=_(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const i=_(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+i}Qt(e,n),(0,_t.Ww)(e,s),tt(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new pe);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=this.getStack();i&&i.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const i={};n.z&&Me("z",t,i,this.animationValues);for(let e=0;e{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(Oe),this.root.sharedNodes.clear()}}}function Re(t){t.updateLayout()}function Be(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:i}=t.layout,{animationType:s}=t.options,o=n.source!==t.layout.source;"size"===s?ct((t=>{const i=o?n.measuredBox[t]:n.layoutBox[t],s=_(i);i.min=e[t].min,i.max=i.min+s})):_e(s,n.layoutBox,e)&&ct((i=>{const s=o?n.measuredBox[i]:n.layoutBox[i],r=_(e[i]);s.max=s.min+r,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[i].max=t.relativeTarget[i].min+r)}));const r=(0,ht.xU)();tt(r,e,n.layoutBox);const a=(0,ht.xU)();o?tt(a,t.applyTransform(i,!0),n.measuredBox):tt(a,e,n.layoutBox);const l=!re(r);let u=!1;if(!t.resumeFrom){const i=t.getClosestProjectingParent();if(i&&!i.resumeFrom){const{snapshot:s,layout:o}=i;if(s&&o){const r=(0,ht.ge)();it(r,n.layoutBox,s.layoutBox);const a=(0,ht.ge)();it(a,e,o.layoutBox),ue(r,a)||(u=!0),i.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=r,t.relativeParent=i)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function Le(t){Ae&&be.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function je(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Fe(t){t.clearSnapshot()}function Oe(t){t.clearMeasurements()}function We(t){t.isLayoutDirty=!1}function Ie(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ue(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ge(t){t.resolveTargetDelta()}function $e(t){t.calcProjection()}function Ne(t){t.resetSkewAndRotation()}function Ke(t){t.removeLeadSnapshot()}function ze(t,e,n){t.translate=(0,Y.k)(e.translate,0,n),t.scale=(0,Y.k)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function He(t,e,n,i){t.min=(0,Y.k)(e.min,n.min,i),t.max=(0,Y.k)(e.max,n.max,i)}function Ye(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const Xe={duration:.45,ease:[.4,0,.1,1]},qe=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Qe=qe("applewebkit/")&&!qe("chrome/")?Math.round:S.l;function Ze(t){t.min=Qe(t.min),t.max=Qe(t.max)}function _e(t,e,n){return"position"===t||"preserve-aspect"===t&&(i=he(e),s=he(n),o=.2,!(Math.abs(i-s)<=o));var i,s,o}function Je(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const tn=De({attachResizeListener:(t,e)=>C(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),en={current:void 0},nn=De({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!en.current){const t=new tn({});t.mount(window),t.setOptions({layoutScroll:!0}),en.current=t}return en.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),sn={pan:{Feature:class extends x{constructor(){super(...arguments),this.removePointerDownListener=S.l}onPointerDown(t){this.session=new B(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:vt(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:wt(t),onStart:wt(e),onMove:n,onEnd:(t,e)=>{delete this.session,i&&R.Gt.postRender((()=>i(t,e)))}}}mount(){this.removePointerDownListener=M(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends x{constructor(t){super(t),this.removeGroupControls=S.l,this.removeListeners=S.l,this.controls=new xt(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||S.l}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:nn,MeasureLayout:Ot}};function on(t,e){const n=e?"pointerenter":"pointerleave",i=e?"onHoverStart":"onHoverEnd";return M(t.current,n,((n,s)=>{if("touch"===n.pointerType||K())return;const o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);const r=o[i];r&&R.Gt.postRender((()=>r(n,s)))}),{passive:!t.getProps()[i]})}const rn=(t,e)=>!!e&&(t===e||rn(t,e.parentElement));function an(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,A(n))}const ln=new WeakMap,un=new WeakMap,hn=t=>{const e=ln.get(t.target);e&&e(t)},cn=t=>{t.forEach(hn)};function dn(t,e,n){const i=function(t){let{root:e,...n}=t;const i=e||document;un.has(i)||un.set(i,{});const s=un.get(i),o=JSON.stringify(n);return s[o]||(s[o]=new IntersectionObserver(cn,{root:e,...n})),s[o]}(e);return ln.set(t,n),i.observe(t),()=>{ln.delete(t),i.unobserve(t)}}const pn={some:0,all:1};const mn={inView:{Feature:class extends x{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:i="some",once:s}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:pn[i]};return dn(this.node.current,o,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,s&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=e?n:i;o&&o(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends x{constructor(){super(...arguments),this.removeStartListeners=S.l,this.removeEndListeners=S.l,this.removeAccessibleListeners=S.l,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),i=M(window,"pointerup",((t,e)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:i,globalTapTarget:s}=this.node.getProps(),o=s||rn(this.node.current,t.target)?n:i;o&&R.Gt.update((()=>o(t,e)))}),{passive:!(n.onTap||n.onPointerUp)}),s=M(window,"pointercancel",((t,e)=>this.cancelPress(t,e)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,k.F)(i,s),this.startPress(t,e)},this.startAccessiblePress=()=>{const t=C(this.node.current,"keydown",(t=>{if("Enter"!==t.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=C(this.node.current,"keyup",(t=>{"Enter"===t.key&&this.checkPressEnd()&&an("up",((t,e)=>{const{onTap:n}=this.node.getProps();n&&R.Gt.postRender((()=>n(t,e)))}))})),an("down",((t,e)=>{this.startPress(t,e)}))})),e=C(this.node.current,"blur",(()=>{this.isPressing&&an("cancel",((t,e)=>this.cancelPress(t,e)))}));this.removeAccessibleListeners=(0,k.F)(t,e)}}startPress(t,e){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&R.Gt.postRender((()=>n(t,e)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!K()}cancelPress(t,e){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&R.Gt.postRender((()=>n(t,e)))}mount(){const t=this.node.getProps(),e=M(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=C(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,k.F)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends x{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.F)(C(this.node.current,"focus",(()=>this.onFocus())),C(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends x{mount(){this.unmount=(0,k.F)(on(this.node,!0),on(this.node,!1))}unmount(){}}}},fn={layout:{ProjectionNode:nn,MeasureLayout:Ot}};var vn=n(42278);const gn=(0,Tt.createContext)({});var yn=n(47544);const xn=(0,Tt.createContext)({strict:!1});var Pn=n(49512);let wn=!1;function Sn(t,e,n,i,s){var o;const{visualElement:r}=(0,Tt.useContext)(gn),a=(0,Tt.useContext)(xn),l=(0,Tt.useContext)(bt),u=(0,Tt.useContext)(vn.Q).reducedMotion,h=(0,Tt.useRef)();i=i||a.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));const c=h.current,d=(0,Tt.useContext)(Vt);!c||c.projection||!s||"html"!==c.type&&"svg"!==c.type||function(t,e,n,i){const{layoutId:s,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:bn(t.parent)),t.projection.setOptions({layoutId:s,layout:o,alwaysMeasureLayout:Boolean(r)||a&&z(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(h.current,n,s,d),(0,Tt.useInsertionEffect)((()=>{c&&c.update(n,l)}));const p=n[Pn.n],m=(0,Tt.useRef)(Boolean(p)&&!window.MotionHandoffIsComplete&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,p)));return(0,yn.E)((()=>{c&&(c.updateFeatures(),Lt.render(c.render),m.current&&c.animationState&&c.animationState.animateChanges())})),(0,Tt.useEffect)((()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current=!1,wn||(wn=!0,queueMicrotask(Tn)))})),c}function Tn(){window.MotionHandoffIsComplete=!0}function bn(t){if(t)return!1!==t.options.allowProjection?t.projection:bn(t.parent)}function An(t,e,n){return(0,Tt.useCallback)((i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&("function"==typeof n?n(i):z(n)&&(n.current=i))}),[e])}var Vn=n(67349);function En(t){const{initial:e,animate:n}=function(t,e){if((0,Vn.e)(t)){const{initial:e,animate:n}=t;return{initial:!1===e||(0,a.w)(e)?e:void 0,animate:(0,a.w)(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,Tt.useContext)(gn));return(0,Tt.useMemo)((()=>({initial:e,animate:n})),[Cn(e),Cn(n)])}function Cn(t){return Array.isArray(t)?t.join(" "):t}var Mn=n(35132);var kn=n(67584);const Dn=Symbol.for("motionComponentSymbol");function Rn(t){let{preloadedFeatures:e,createVisualElement:n,useRender:i,useVisualState:s,Component:o}=t;e&&function(t){for(const e in t)Mn.B[e]={...Mn.B[e],...t[e]}}(e);const r=(0,Tt.forwardRef)((function(t,e){let r;const a={...(0,Tt.useContext)(vn.Q),...t,layoutId:Bn(t)},{isStatic:l}=a,u=En(t),h=s(t,l);if(!l&&kn.B){!function(){(0,Tt.useContext)(xn).strict;0}();const t=function(t){const{drag:e,layout:n}=Mn.B;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(a);r=t.MeasureLayout,u.visualElement=Sn(o,h,a,n,t.ProjectionNode)}return(0,St.jsxs)(gn.Provider,{value:u,children:[r&&u.visualElement?(0,St.jsx)(r,{visualElement:u.visualElement,...a}):null,i(o,t,An(h,u.visualElement,e),h,l,u.visualElement)]})}));return r[Dn]=o,r}function Bn(t){let{layoutId:e}=t;const n=(0,Tt.useContext)(At).id;return n&&void 0!==e?n+"-"+e:e}const Ln=["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 jn(t){return"string"==typeof t&&!t.includes("-")&&!!(Ln.indexOf(t)>-1||/[A-Z]/u.test(t))}var Fn=n(40407),On=n(30233),Wn=n(25285),In=n(79305),Un=n(29095);const Gn=t=>(e,n)=>{const i=(0,Tt.useContext)(gn),s=(0,Tt.useContext)(bt),o=()=>function(t,e,n,i,s){let{applyWillChange:o=!1,scrapeMotionValuesFromProps:r,createRenderState:a,onMount:l}=t;const u={latestValues:Kn(e,n,i,!s&&o,r),renderState:a()};return l&&(u.mount=t=>l(e,t,u)),u}(t,e,i,s,n);return n?o():(0,In.M)(o)};function $n(t,e){const n=(0,Un.I)(e);n&&(0,de.Kq)(t,n)}function Nn(t,e,n){const i=Array.isArray(e)?e:[e];for(let e=0;e{for(const e in t){let n=t[e];if(Array.isArray(n)){n=n[f?n.length-1:0]}null!==n&&(a[e]=n)}for(const t in e)a[t]=e[t]})),u&&(d&&!1!==c&&!(0,s.N)(d)&&Nn(t,d,(t=>{for(const e in t)$n(l,e)})),l.length&&(a.willChange=l.join(","))),a}const zn=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Hn=()=>({...zn(),attrs:{}});var Yn=n(27840),Xn=n(14633);const qn={useVisualState:Gn({scrapeMotionValuesFromProps:On.x,createRenderState:Hn,onMount:(t,e,n)=>{let{renderState:i,latestValues:s}=n;R.Gt.read((()=>{try{i.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){i.dimensions={x:0,y:0,width:0,height:0}}})),R.Gt.render((()=>{(0,Yn.B)(i,s,(0,Xn.n)(e.tagName),t.transformTemplate),(0,Fn.d)(e,i)}))}})};const Qn={useVisualState:Gn({applyWillChange:!0,scrapeMotionValuesFromProps:n(86750).x,createRenderState:zn})};var Zn=n(10061),_n=n(17014);function Jn(t,e,n){for(const i in e)(0,ye.S)(e[i])||(0,Zn.z)(i,n)||(t[i]=e[i])}function ti(t,e){const n={};return Jn(n,t.style||{},t),Object.assign(n,function(t,e){let{transformTemplate:n}=t;return(0,Tt.useMemo)((()=>{const t=zn();return(0,_n.O)(t,e,n),Object.assign({},t.vars,t.style)}),[e])}(t,e)),n}function ei(t,e){const n={},i=ti(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const ni=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 ii(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ni.has(t)}let si=t=>!ii(t);try{(oi=require("@emotion/is-prop-valid").default)&&(si=t=>t.startsWith("on")?!ii(t):oi(t))}catch(t){}var oi;function ri(t,e,n,i){const s=(0,Tt.useMemo)((()=>{const n=Hn();return(0,Yn.B)(n,e,(0,Xn.n)(i),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};Jn(e,t.style,t),s.style={...e,...s.style}}return s}function ai(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,i,s,o)=>{let{latestValues:r}=s;const a=(jn(e)?ri:ei)(n,r,o,e),l=function(t,e,n){const i={};for(const s in t)"values"===s&&"object"==typeof t.values||(si(s)||!0===n&&ii(s)||!e&&!ii(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}(n,"string"==typeof e,t),u=e!==Tt.Fragment?{...l,...a,ref:i}:{},{children:h}=n,c=(0,Tt.useMemo)((()=>(0,ye.S)(h)?h.get():h),[h]);return(0,Tt.createElement)(e,{...u,children:c})}}function li(t,e){return function(n){let{forwardMotionProps:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return Rn({...jn(n)?qn:Qn,preloadedFeatures:t,useRender:ai(i),createVisualElement:e,Component:n})}}var ui=n(70851),hi=n(39167);const ci=i(li({...w,...mn,...sn,...fn},((t,e)=>jn(t)?new hi.l(e):new ui.M(e,{allowProjection:t!==Tt.Fragment}))))},95722:(t,e,n)=>{n.d(e,{K:()=>f});var i=n(45520);var s=n(96985),o=n(50884),r=n(71560);const a=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function l(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,s.V)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[i,u]=function(t){const e=a.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${null!=n?n:i}`,s]}(t);if(!i)return;const h=window.getComputedStyle(e).getPropertyValue(i);if(h){const t=h.trim();return(0,o.i)(t)?parseFloat(t):t}return(0,r.p)(u)?l(u,e,n+1):u}var u=n(85532),h=n(58963),c=n(67827),d=n(94494),p=n(80184);const m=new Set(["auto","none","0"]);class f extends c.h{constructor(t,e,n,i,s){super(t,e,n,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let n=0;n{let[n,i]=t;e.getValue(n).set(i)})),this.resolveNoneKeyframes()}}},68609:(t,e,n)=>{n.d(e,{b:()=>D});var i=n(67584);const s={current:null},o={current:!1};var r=n(18334),a=n(17473),l=n(38232),u=n(2760),h=n(67349),c=n(52247);var d=n(25285),p=n(35132),m=n(53380),f=n(82067),v=n(67827),g=n(50884),y=n(45520),x=n(1483),P=n(94494),w=n(58963),S=n(56689);const T=[...w.T,x.y,P.f];var b=n(80184),A=n(78826),V=n(97800);const E=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],C=m._.length;class M{scrapeMotionValuesFromProps(t,e,n){return{}}constructor(t){let{parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:o,visualState:r}=t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=v.h,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,V.Gt.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=r;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=(0,h.e)(n),this.isVariantNode=(0,h.O)(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:d,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const t in p){const e=p[t];void 0!==u[t]&&(0,l.S)(e)&&e.set(u[t],!1)}}mount(t){this.current=t,f.C.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))),o.current||function(){if(o.current=!0,i.B)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>s.current=t.matches;t.addListener(e),e()}else s.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||s.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){f.C.delete(this.current),this.projection&&this.projection.unmount(),(0,V.WG)(this.notifyUpdate),(0,V.WG)(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=u.f.has(t),i=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&V.Gt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),s=e.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{i(),s(),o&&o(),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 p.B){const e=p.B[t];if(!e)continue;const{isEnabled:n,Feature:i}=e;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const e=this.features[t];e.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,A.ge)()}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;e0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}const t={};for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const 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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,a.OQ)(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let i=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var s;return null!=i&&("string"==typeof i&&((0,g.i)(i)||(0,y.$)(i))?i=parseFloat(i):(s=i,!T.find((0,S.w)(s))&&P.f.test(e)&&(i=(0,b.J)(t,e))),this.setBaseTarget(t,(0,l.S)(i)?i.get():i)),(0,l.S)(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let i;if("string"==typeof n||"object"==typeof n){const s=(0,d.a)(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);s&&(i=s[t])}if(n&&void 0!==i)return i;const s=this.getBaseTargetFromProps(this.props,t);return void 0===s||(0,l.S)(s)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:s}on(t,e){return this.events[t]||(this.events[t]=new r.v),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i{n.d(e,{I:()=>i});const i=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},71560:(t,e,n)=>{n.d(e,{j:()=>s,p:()=>r});const i=t=>e=>"string"==typeof e&&e.startsWith(t),s=i("--"),o=i("var(--"),r=t=>!!o(t)&&a.test(t.split("/*")[0].trim()),a=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},67311:(t,e,n)=>{function i(t){return t instanceof SVGElement&&"svg"!==t.tagName}n.d(e,{x:()=>i})},392:(t,e,n)=>{n.d(e,{K:()=>s});var i=n(96985);function s(t,e,n){var s;if("string"==typeof t){let o=document;e&&((0,i.V)(Boolean(e.current),"Scope provided, but no element detected."),o=e.current),n?(null!==(s=n[t])&&void 0!==s||(n[t]=o.querySelectorAll(t)),t=n[t]):t=o.querySelectorAll(t)}else t instanceof Element&&(t=[t]);return Array.from(t||[])}},85532:(t,e,n)=>{n.d(e,{$y:()=>r,E4:()=>a,Hr:()=>p,W9:()=>d});var i=n(2760),s=n(46064),o=n(17813);const r=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),a=t=>t===s.ai||t===o.px,l=(t,e)=>parseFloat(t.split(", ")[e]),u=(t,e)=>(n,i)=>{let{transform:s}=i;if("none"===s||!s)return 0;const o=s.match(/^matrix3d\((.+)\)$/u);if(o)return l(o[1],e);{const e=s.match(/^matrix\((.+)\)$/u);return e?l(e[1],t):0}},h=new Set(["x","y","z"]),c=i.U.filter((t=>!h.has(t)));function d(t){const e=[];return c.forEach((n=>{const i=t.getValue(n);void 0!==i&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))})),e}const p={width:(t,e)=>{let{x:n}=t,{paddingLeft:i="0",paddingRight:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:(t,e)=>{let{y:n}=t,{paddingTop:i="0",paddingBottom:s="0"}=e;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:i}=e;return parseFloat(i)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:i}=e;return parseFloat(i)+(n.max-n.min)},x:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},80184:(t,e,n)=>{n.d(e,{J:()=>r});var i=n(94494),s=n(38924),o=n(20739);function r(t,e){let n=(0,o.D)(t);return n!==s.p&&(n=i.f),n.getAnimatableNone?n.getAnimatableNone(e):void 0}},20739:(t,e,n)=>{n.d(e,{D:()=>r});var i=n(1483),s=n(38924);const o={...n(56419).W,color:i.y,backgroundColor:i.y,outlineColor:i.y,fill:i.y,stroke:i.y,borderColor:i.y,borderTopColor:i.y,borderRightColor:i.y,borderBottomColor:i.y,borderLeftColor:i.y,filter:s.p,WebkitFilter:s.p},r=t=>o[t]},58963:(t,e,n)=>{n.d(e,{T:()=>r,n:()=>a});var i=n(46064),s=n(17813),o=n(56689);const r=[i.ai,s.px,s.KN,s.uj,s.vw,s.vh,{test:t=>"auto"===t,parse:t=>t}],a=t=>r.find((0,o.w)(t))},56419:(t,e,n)=>{n.d(e,{W:()=>r});var i=n(46064),s=n(17813);const o={...i.ai,transform:Math.round},r={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,size: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,rotate:s.uj,rotateX:s.uj,rotateY:s.uj,rotateZ:s.uj,scale:i.hs,scaleX:i.hs,scaleY:i.hs,scaleZ:i.hs,skew:s.uj,skewX:s.uj,skewY:s.uj,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:i.X4,originX:s.gQ,originY:s.gQ,originZ:s.px,zIndex:o,backgroundPositionX:s.px,backgroundPositionY:s.px,fillOpacity:i.X4,strokeOpacity:i.X4,numOctaves:o}},56689:(t,e,n)=>{n.d(e,{w:()=>i});const i=t=>e=>e.test(t)},70851:(t,e,n)=>{n.d(e,{M:()=>d});var i=n(17014),s=n(71560),o=n(2760),r=n(86750),a=n(99788),l=n(20739),u=n(44005),h=n(68609),c=n(38232);class d extends h.b{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=a.e}readValueFromInstance(t,e){if(o.f.has(e)){const t=(0,l.D)(e);return t&&t.default||0}{const i=(n=t,window.getComputedStyle(n)),o=((0,s.j)(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return(0,u.m)(t,n)}build(t,e,n){(0,i.O)(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return(0,r.x)(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;(0,c.S)(t)&&(this.childSubscription=t.on("change",(t=>{this.current&&(this.current.textContent=`${t}`)})))}}},17014:(t,e,n)=>{n.d(e,{O:()=>u});var i=n(2760);const s=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var o=n(56419);const r={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},a=i.U.length;var l=n(71560);function u(t,e,n){const{style:u,vars:h,transformOrigin:c}=t;let d=!1,p=!1;for(const t in e){const n=e[t];if(i.f.has(t))d=!0;else if((0,l.j)(t))h[t]=n;else{const e=s(n,o.W[t]);t.startsWith("origin")?(p=!0,c[t]=e):u[t]=e}}if(e.transform||(d||n?u.transform=function(t,e,n){let l="",u=!0;for(let h=0;h{function i(t,e,n,i){let{style:s,vars:o}=e;Object.assign(t.style,s,i&&i.getProjectionStyles(n));for(const e in o)t.style.setProperty(e,o[e])}n.d(e,{e:()=>i})},86750:(t,e,n)=>{n.d(e,{x:()=>o});var i=n(10061),s=n(38232);function o(t,e,n){var o;const{style:r}=t,a={};for(const l in r)((0,s.S)(r[l])||e.style&&(0,s.S)(e.style[l])||(0,i.z)(l,t)||void 0!==(null===(o=null==n?void 0:n.getValue(l))||void 0===o?void 0:o.liveStyle))&&(a[l]=r[l]);return n&&r&&"string"==typeof r.willChange&&(n.applyWillChange=!1),a}},2760:(t,e,n)=>{n.d(e,{U:()=>i,f:()=>s});const i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(i)},82067:(t,e,n)=>{n.d(e,{C:()=>i});const i=new WeakMap},39167:(t,e,n)=>{n.d(e,{l:()=>p});var i=n(30233),s=n(68609),o=n(27840),r=n(79246),a=n(74519),l=n(2760),u=n(40407),h=n(20739),c=n(78826),d=n(14633);class p extends s.b{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=c.ge}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(l.f.has(e)){const t=(0,h.D)(e);return t&&t.default||0}return e=a.e.has(e)?e:(0,r.I)(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return(0,i.x)(t,e,n)}build(t,e,n){(0,o.B)(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,i){(0,u.d)(t,e,n,i)}mount(t){this.isSVGTag=(0,d.n)(t.tagName),super.mount(t)}}},27840:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(17014),s=n(17813);function o(t,e,n){return"string"==typeof t?t:s.px.transform(e+n*t)}const r={offset:"stroke-dashoffset",array:"stroke-dasharray"},a={offset:"strokeDashoffset",array:"strokeDasharray"};function l(t,e,n,l){let{attrX:u,attrY:h,attrScale:c,originX:d,originY:p,pathLength:m,pathSpacing:f=1,pathOffset:v=0,...g}=e;if((0,i.O)(t,g,l),n)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:y,style:x,dimensions:P}=t;y.transform&&(P&&(x.transform=y.transform),delete y.transform),P&&(void 0!==d||void 0!==p||x.transform)&&(x.transformOrigin=function(t,e,n){return`${o(e,t.x,t.width)} ${o(n,t.y,t.height)}`}(P,void 0!==d?d:.5,void 0!==p?p:.5)),void 0!==u&&(y.x=u),void 0!==h&&(y.y=h),void 0!==c&&(y.scale=c),void 0!==m&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const l=o?r:a;t[l.offset]=s.px.transform(-i);const u=s.px.transform(e),h=s.px.transform(n);t[l.array]=`${u} ${h}`}(y,m,f,v,!1)}},74519:(t,e,n)=>{n.d(e,{e:()=>i});const i=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"])},14633:(t,e,n)=>{n.d(e,{n:()=>i});const i=t=>"string"==typeof t&&"svg"===t.toLowerCase()},40407:(t,e,n)=>{n.d(e,{d:()=>r});var i=n(79246),s=n(99788),o=n(74519);function r(t,e,n,r){(0,s.e)(t,e,void 0,r);for(const n in e.attrs)t.setAttribute(o.e.has(n)?n:(0,i.I)(n),e.attrs[n])}},30233:(t,e,n)=>{n.d(e,{x:()=>r});var i=n(38232),s=n(86750),o=n(2760);function r(t,e,n){const r=(0,s.x)(t,e,n);for(const n in t)if((0,i.S)(t[n])||(0,i.S)(e[n])){r[-1!==o.U.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]}return r}},67827:(t,e,n)=>{n.d(e,{h:()=>c,q:()=>h});var i=n(85532),s=n(97800);const o=new Set;let r=!1,a=!1;function l(){if(a){const t=Array.from(o).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=(0,i.W9)(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((e=>{let[n,i]=e;var s;null===(s=t.getValue(n))||void 0===s||s.set(i)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}a=!1,r=!1,o.forEach((t=>t.complete())),o.clear()}function u(){o.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(a=!0)}))}function h(){u(),l()}class c{constructor(t,e,n,i,s){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(o.add(this),r||(r=!0,s.Gt.read(u),s.Gt.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:i}=this;for(let s=0;s{n.d(e,{O:()=>a,e:()=>r});var i=n(70498),s=n(52247),o=n(53380);function r(t){return(0,i.N)(t.animate)||o._.some((e=>(0,s.w)(t[e])))}function a(t){return Boolean(r(t)||t.variants)}},52247:(t,e,n)=>{function i(t){return"string"==typeof t||Array.isArray(t)}n.d(e,{w:()=>i})},63777:(t,e,n)=>{n.d(e,{K:()=>s});var i=n(25285);function s(t,e,n){const s=t.getProps();return(0,i.a)(s,e,void 0!==n?n:s.custom,t)}},25285:(t,e,n)=>{function i(t){const e=[{},{}];return null==t||t.values.forEach(((t,n)=>{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function s(t,e,n,s){if("function"==typeof e){const[o,r]=i(s);e=e(void 0!==n?n:t.custom,o,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[o,r]=i(s);e=e(void 0!==n?n:t.custom,o,r)}return e}n.d(e,{a:()=>s})},53380:(t,e,n)=>{n.d(e,{U:()=>i,_:()=>s});const i=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],s=["initial",...i]},73628:(t,e,n)=>{n.d(e,{W:()=>i});const i={skipAnimations:!1,useManualTiming:!1}},23062:(t,e,n)=>{function i(t,e){-1===t.indexOf(e)&&t.push(e)}function s(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{Ai:()=>s,Kq:()=>i})},13904:(t,e,n)=>{n.d(e,{q:()=>i});const i=(t,e,n)=>n>e?e:n{n.d(e,{$:()=>s,V:()=>o});var i=n(25627);let s=i.l,o=i.l},92028:(t,e,n)=>{n.d(e,{G:()=>u});var i=n(96985),s=n(13904),o=n(84475),r=n(67922),a=n(25627),l=n(30848);function u(t,e){let{clamp:n=!0,ease:u,mixer:h}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const c=t.length;if((0,i.V)(c===e.length,"Both input and output ranges must be the same length"),1===c)return()=>e[0];if(2===c&&t[0]===t[1])return()=>e[1];t[0]>t[c-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=function(t,e,n){const i=[],s=n||l.j,r=t.length-1;for(let n=0;n{let n=0;if(p>1)for(;nm((0,s.q)(t[0],t[c-1],e)):m}},67584:(t,e,n)=>{n.d(e,{B:()=>i});const i="undefined"!=typeof window},50884:(t,e,n)=>{n.d(e,{i:()=>i});const i=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)},45520:(t,e,n)=>{n.d(e,{$:()=>i});const i=t=>/^0[^.\s]+$/u.test(t)},17721:(t,e,n)=>{function i(t){let e;return()=>(void 0===e&&(e=t()),e)}n.d(e,{p:()=>i})},30848:(t,e,n)=>{n.d(e,{j:()=>b});var i=n(44625),s=n(96985);function o(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var r=n(22868),a=n(16471),l=n(98027);function u(t,e){return n=>n>0?e:t}const h=(t,e,n)=>{const i=t*t,s=n*(e*e-i)+i;return s<0?0:Math.sqrt(s)},c=[r.u,a.B,l.V];function d(t){const e=(n=t,c.find((t=>t.test(n))));var n;if((0,s.$)(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let i=e.parse(t);return e===l.V&&(i=function(t){let{hue:e,saturation:n,lightness:i,alpha:s}=t;e/=360,n/=100,i/=100;let r=0,a=0,l=0;if(n){const t=i<.5?i*(1+n):i+n-i*n,s=2*i-t;r=o(s,t,e+1/3),a=o(s,t,e),l=o(s,t,e-1/3)}else r=a=l=i;return{red:Math.round(255*r),green:Math.round(255*a),blue:Math.round(255*l),alpha:s}}(i)),i}const p=(t,e)=>{const n=d(t),s=d(e);if(!n||!s)return u(t,e);const o={...n};return t=>(o.red=h(n.red,s.red,t),o.green=h(n.green,s.green,t),o.blue=h(n.blue,s.blue,t),o.alpha=(0,i.k)(n.alpha,s.alpha,t),a.B.transform(o))};var m=n(84475),f=n(1483),v=n(94494),g=n(71560);const y=new Set(["none","hidden"]);function x(t,e){return n=>(0,i.k)(t,e,n)}function P(t){return"number"==typeof t?x:"string"==typeof t?(0,g.p)(t)?u:f.y.test(t)?p:T:Array.isArray(t)?w:"object"==typeof t?f.y.test(t)?p:S:u}function w(t,e){const n=[...t],i=n.length,s=t.map(((t,n)=>P(t)(t,e[n])));return t=>{for(let e=0;e{for(const e in i)n[e]=i[e](t);return n}}const T=(t,e)=>{const n=v.f.createTransformer(e),i=(0,v.V)(t),o=(0,v.V)(e);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?y.has(t)&&!o.values.length||y.has(e)&&!i.values.length?function(t,e){return y.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):(0,m.F)(w(function(t,e){var n;const i=[],s={color:0,var:0,number:0};for(let o=0;o{n.d(e,{k:()=>i});const i=(t,e,n)=>t+(e-t)*n},25627:(t,e,n)=>{n.d(e,{l:()=>i});const i=t=>t},59035:(t,e,n)=>{n.d(e,{Z:()=>s});var i=n(13227);function s(t){const e=[0];return(0,i.f)(e,t.length-1),e}},13227:(t,e,n)=>{n.d(e,{f:()=>o});var i=n(44625),s=n(67922);function o(t,e){const n=t[t.length-1];for(let o=1;o<=e;o++){const r=(0,s.q)(0,e,o);t.push((0,i.k)(n,1,r))}}},84475:(t,e,n)=>{n.d(e,{F:()=>s});const i=(t,e)=>n=>e(t(n)),s=function(){for(var t=arguments.length,e=new Array(t),n=0;n{n.d(e,{q:()=>i});const i=(t,e,n)=>{const i=e-t;return 0===i?1:(n-t)/i}},96693:(t,e,n)=>{n.d(e,{B:()=>s,K:()=>o});var i=n(56640);const s=t=>Boolean(t&&"object"==typeof t&&t.mix&&t.toValue),o=t=>(0,i.p)(t)?t[t.length-1]||0:t},18334:(t,e,n)=>{n.d(e,{v:()=>s});var i=n(23062);class s{constructor(){this.subscriptions=[]}add(t){return(0,i.Kq)(this.subscriptions,t),()=>(0,i.Ai)(this.subscriptions,t)}notify(t,e,n){const i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](t,e,n);else for(let s=0;s{n.d(e,{X:()=>s,f:()=>i});const i=t=>1e3*t,s=t=>t/1e3},79305:(t,e,n)=>{n.d(e,{M:()=>s});var i=n(9950);function s(t){const e=(0,i.useRef)(null);return null===e.current&&(e.current=t()),e.current}},47544:(t,e,n)=>{n.d(e,{E:()=>s});var i=n(9950);const s=n(67584).B?i.useLayoutEffect:i.useEffect},24073:(t,e,n)=>{function i(t,e){return e?t*(1e3/e):0}n.d(e,{f:()=>i})},17473:(t,e,n)=>{n.d(e,{KG:()=>l,OQ:()=>u,bt:()=>a});var i=n(18334),s=n(24073),o=n(27030),r=n(97800);const a={current:void 0};class l{constructor(t){var e=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.5.4",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const i=o.k.now();e.updatedAt!==i&&e.setPrevFrameValue(),e.prev=e.current,e.setCurrent(t),e.current!==e.prev&&e.events.change&&e.events.change.notify(e.current),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){var e;this.current=t,this.updatedAt=o.k.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 i.v);const n=this.events[t].add(e);return"change"===t?()=>{n(),r.Gt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=o.k.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,s.f)(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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function u(t,e){return new l(t,e)}},22868:(t,e,n)=>{n.d(e,{u:()=>s});var i=n(16471);const s={test:(0,n(62560).$)("#"),parse:function(t){let e="",n="",i="",s="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),i=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),i=t.substring(3,4),s=t.substring(4,5),e+=e,n+=n,i+=i,s+=s),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:i.B.transform}},98027:(t,e,n)=>{n.d(e,{V:()=>a});var i=n(46064),s=n(17813),o=n(95696),r=n(62560);const a={test:(0,r.$)("hsl","hue"),parse:(0,r.q)("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:r,alpha:a=1}=t;return"hsla("+Math.round(e)+", "+s.KN.transform((0,o.aj)(n))+", "+s.KN.transform((0,o.aj)(r))+", "+(0,o.aj)(i.X4.transform(a))+")"}}},1483:(t,e,n)=>{n.d(e,{y:()=>a});var i=n(95696),s=n(22868),o=n(98027),r=n(16471);const a={test:t=>r.B.test(t)||s.u.test(t)||o.V.test(t),parse:t=>r.B.test(t)?r.B.parse(t):o.V.test(t)?o.V.parse(t):s.u.parse(t),transform:t=>(0,i.Kg)(t)?t:t.hasOwnProperty("red")?r.B.transform(t):o.V.transform(t)}},16471:(t,e,n)=>{n.d(e,{B:()=>l});var i=n(13904),s=n(46064),o=n(95696),r=n(62560);const a={...s.ai,transform:t=>Math.round((t=>(0,i.q)(0,255,t))(t))},l={test:(0,r.$)("rgb","red"),parse:(0,r.q)("red","green","blue"),transform:t=>{let{red:e,green:n,blue:i,alpha:r=1}=t;return"rgba("+a.transform(e)+", "+a.transform(n)+", "+a.transform(i)+", "+(0,o.aj)(s.X4.transform(r))+")"}}},62560:(t,e,n)=>{n.d(e,{$:()=>s,q:()=>o});var i=n(95696);const s=(t,e)=>n=>Boolean((0,i.Kg)(n)&&i.Fl.test(n)&&n.startsWith(t)||e&&!(0,i.uy)(n)&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>s=>{if(!(0,i.Kg)(s))return s;const[o,r,a,l]=s.match(i.SY);return{[t]:parseFloat(o),[e]:parseFloat(r),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},38924:(t,e,n)=>{n.d(e,{p:()=>l});var i=n(94494),s=n(95696);const o=new Set(["brightness","contrast","saturate","opacity"]);function r(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[i]=n.match(s.SY)||[];if(!i)return t;const r=n.replace(i,"");let a=o.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const a=/\b([a-z-]*)\(.*?\)/gu,l={...i.f,getAnimatableNone:t=>{const e=t.match(a);return e?e.map(r).join(" "):t}}},94494:(t,e,n)=>{n.d(e,{V:()=>c,f:()=>f});var i=n(1483),s=n(95696);const o="number",r="color",a="var",l="var(",u="${}",h=/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 c(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},c=[];let d=0;const p=e.replace(h,(t=>(i.y.test(t)?(s.color.push(d),c.push(r),n.push(i.y.parse(t))):t.startsWith(l)?(s.var.push(d),c.push(a),n.push(t)):(s.number.push(d),c.push(o),n.push(parseFloat(t))),++d,u))).split(u);return{values:n,split:p,indexes:s,types:c}}function d(t){return c(t).values}function p(t){const{split:e,types:n}=c(t),a=e.length;return t=>{let l="";for(let u=0;u"number"==typeof t?0:t;const f={test:function(t){var e,n;return isNaN(t)&&(0,s.Kg)(t)&&((null===(e=t.match(s.SY))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(s.ne))||void 0===n?void 0:n.length)||0)>0},parse:d,createTransformer:p,getAnimatableNone:function(t){const e=d(t);return p(t)(e.map(m))}}},46064:(t,e,n)=>{n.d(e,{X4:()=>o,ai:()=>s,hs:()=>r});var i=n(13904);const s={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...s,transform:t=>(0,i.q)(0,1,t)},r={...s,default:1}},17813:(t,e,n)=>{n.d(e,{KN:()=>r,gQ:()=>h,px:()=>a,uj:()=>o,vh:()=>l,vw:()=>u});var i=n(95696);const s=t=>({test:e=>(0,i.Kg)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=s("deg"),r=s("%"),a=s("px"),l=s("vh"),u=s("vw"),h={...r,parse:t=>r.parse(t)/100,transform:t=>r.transform(100*t)}},95696:(t,e,n)=>{n.d(e,{Fl:()=>r,Kg:()=>a,SY:()=>s,aj:()=>i,ne:()=>o,uy:()=>l});const i=t=>Math.round(1e5*t)/1e5,s=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,o=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,r=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function a(t){return"string"==typeof t}function l(t){return null==t}},71567:(t,e,n)=>{n.d(e,{d:()=>a});var i=n(9950),s=n(17473),o=n(42278),r=n(79305);function a(t){const e=(0,r.M)((()=>(0,s.OQ)(t))),{isStatic:n}=(0,i.useContext)(o.Q);if(n){const[,n]=(0,i.useState)(t);(0,i.useEffect)((()=>e.on("change",n)),[])}return e}},81105:(t,e,n)=>{n.d(e,{L:()=>G});var i=n(17473),s=n(79305),o=n(9950),r=n(96985),a=n(392);const l=new WeakMap;let u;function h(t){let{target:e,contentRect:n,borderBoxSize:i}=t;var s;null===(s=l.get(e))||void 0===s||s.forEach((t=>{t({target:e,contentSize:n,get size(){return function(t,e){if(e){const{inlineSize:t,blockSize:n}=e[0];return{width:t,height:n}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}(e,i)}})}))}function c(t){t.forEach(h)}function d(t,e){u||"undefined"!=typeof ResizeObserver&&(u=new ResizeObserver(c));const n=(0,a.K)(t);return n.forEach((t=>{let n=l.get(t);n||(n=new Set,l.set(t,n)),n.add(e),null==u||u.observe(t)})),()=>{n.forEach((t=>{const n=l.get(t);null==n||n.delete(e),(null==n?void 0:n.size)||null==u||u.unobserve(t)}))}}const p=new Set;let m;function f(t){return p.add(t),m||(m=()=>{const t={width:window.innerWidth,height:window.innerHeight},e={target:window,size:t,contentSize:t};p.forEach((t=>t(e)))},window.addEventListener("resize",m)),()=>{p.delete(t),!p.size&&m&&(m=void 0)}}var v=n(67922),g=n(24073);const y=50,x=()=>({time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}),P={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function w(t,e,n,i){const s=n[e],{length:o,position:r}=P[e],a=s.current,l=n.time;s.current=t[`scroll${r}`],s.scrollLength=t[`scroll${o}`]-t[`client${o}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=(0,v.q)(0,s.scrollLength,s.current);const u=i-l;s.velocity=u>y?0:(0,g.f)(s.current-a,u)}const S={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},T={start:0,center:.5,end:1};function b(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=0;if(t in T&&(t=T[t]),"string"==typeof t){const e=parseFloat(t);t.endsWith("px")?i=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?i=e/100*document.documentElement.clientWidth:t.endsWith("vh")?i=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(i=e*t),n+i}const A=[0,0];function V(t,e,n,i){let s=Array.isArray(t)?t:A,o=0,r=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,T[t]?t:"0"]),o=b(s[0],n,i),r=b(s[1],e),o-r}var E=n(92028),C=n(59035);const M={x:0,y:0};function k(t,e,n){const{offset:i=S.All}=n,{target:s=t,axis:o="y"}=n,r="y"===o?"height":"width",a=s!==t?function(t,e){const n={x:0,y:0};let i=t;for(;i&&i!==e;)if(i instanceof HTMLElement)n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if("svg"===i.tagName){const t=i.getBoundingClientRect();i=i.parentElement;const e=i.getBoundingClientRect();n.x+=t.left-e.left,n.y+=t.top-e.top}else{if(!(i instanceof SVGGraphicsElement))break;{const{x:t,y:e}=i.getBBox();n.x+=t,n.y+=e;let s=null,o=i.parentNode;for(;!s;)"svg"===o.tagName&&(s=o),o=i.parentNode;i=s}}return n}(s,t):M,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:function(t){return"getBBox"in t&&"svg"!==t.tagName?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}(s),u={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let h=!e[o].interpolate;const c=i.length;for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:{};return{measure:()=>function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=arguments.length>2?arguments[2]:void 0;if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let i=e;for(;i&&i!==t;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}(t,i.target,n),update:e=>{!function(t,e,n){w(t,"x",e,n),w(t,"y",e,n),e.time=n}(t,n,e),(i.offset||i.target)&&k(t,n,i)},notify:()=>e(n)}}var R=n(97800);const B=new WeakMap,L=new WeakMap,j=new WeakMap,F=t=>t===document.documentElement?window:t;function O(t){let{container:e=document.documentElement,...n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=j.get(e);i||(i=new Set,j.set(e,i));const s=x(),o=D(e,t,s,n);if(i.add(o),!B.has(e)){const t=()=>{for(const t of i)t.measure()},n=()=>{for(const t of i)t.update(R.uv.timestamp)},s=()=>{for(const t of i)t.notify()},o=()=>{R.Gt.read(t,!1,!0),R.Gt.read(n,!1,!0),R.Gt.update(s,!1,!0)};B.set(e,o);const l=F(e);window.addEventListener("resize",o,{passive:!0}),e!==document.documentElement&&L.set(e,(a=o,"function"==typeof(r=e)?f(r):d(r,a))),l.addEventListener("scroll",o,{passive:!0})}var r,a;const l=B.get(e);return R.Gt.read(l,!1,!0),()=>{var t;(0,R.WG)(l);const n=j.get(e);if(!n)return;if(n.delete(o),n.size)return;const i=B.get(e);B.delete(e),i&&(F(e).removeEventListener("scroll",i),null===(t=L.get(e))||void 0===t||t(),window.removeEventListener("resize",i))}}var W=n(47544);function I(t,e){(0,r.$)(Boolean(!e||e.current),`You have defined a ${t} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}const U=()=>({scrollX:(0,i.OQ)(0),scrollY:(0,i.OQ)(0),scrollXProgress:(0,i.OQ)(0),scrollYProgress:(0,i.OQ)(0)});function G(){let{container:t,target:e,layoutEffect:n=!0,...i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=(0,s.M)(U);return(n?W.E:o.useEffect)((()=>(I("target",e),I("container",t),O((t=>{let{x:e,y:n}=t;r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(n.current),r.scrollYProgress.set(n.progress)}),{...i,container:(null==t?void 0:t.current)||void 0,target:(null==e?void 0:e.current)||void 0}))),[t,e,JSON.stringify(i.offset)]),r}},67473:(t,e,n)=>{n.d(e,{G:()=>c});var i=n(92028);const s=t=>(t=>t&&"object"==typeof t&&t.mix)(t)?t.mix:void 0;var o=n(71567),r=n(47544),a=n(97800);function l(t,e){const n=(0,o.d)(e()),i=()=>n.set(e());return i(),(0,r.E)((()=>{const e=()=>a.Gt.preRender(i,!1,!0),n=t.map((t=>t.on("change",e)));return()=>{n.forEach((t=>t())),(0,a.WG)(i)}})),n}var u=n(79305),h=n(17473);function c(t,e,n,o){if("function"==typeof t)return function(t){h.bt.current=[],t();const e=l(h.bt.current,t);return h.bt.current=void 0,e}(t);const r="function"==typeof e?e:function(){const t=!Array.isArray(arguments.length<=0?void 0:arguments[0]),e=t?0:-1,n=0+e<0||arguments.length<=0+e?void 0:arguments[0+e],o=1+e<0||arguments.length<=1+e?void 0:arguments[1+e],r=2+e<0||arguments.length<=2+e?void 0:arguments[2+e],a=3+e<0||arguments.length<=3+e?void 0:arguments[3+e],l=(0,i.G)(o,r,{mixer:s(r[0]),...a});return t?l(n):l}(e,n,o);return Array.isArray(t)?d(t,r):d([t],(t=>{let[e]=t;return r(e)}))}function d(t,e){const n=(0,u.M)((()=>[]));return l(t,(()=>{n.length=0;const i=t.length;for(let e=0;e{n.d(e,{g:()=>l});var i=n(17473),s=n(29095),o=n(23062);class r extends i.KG{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(t){const e=(0,s.I)(t);if(!e)return;const n=this.counts.get(e)||0;this.counts.set(e,n+1),0===n&&(this.output.push(e),this.update());let i=!1;return()=>{if(i)return;i=!0;const t=this.counts.get(e)-1;this.counts.set(e,t),0===t&&((0,o.Ai)(this.output,e),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}var a=n(38232);function l(t,e){var n;if(!t.applyWillChange)return;let i=t.getValue("willChange");return i||(null===(n=t.props.style)||void 0===n?void 0:n.willChange)||(i=new r("auto"),t.addValue("willChange",i)),function(t){return Boolean((0,a.S)(t)&&t.add)}(i)?i.add(e):void 0}},29095:(t,e,n)=>{n.d(e,{I:()=>r});var i=n(84659),s=n(79246),o=n(2760);function r(t){return o.f.has(t)?"transform":i.M.has(t)?(0,s.I)(t):void 0}},38232:(t,e,n)=>{n.d(e,{S:()=>i});const i=t=>Boolean(t&&t.getVelocity)}}]);