vendor: 31,017 bytes, line 1
1import{n as X,i as zi,f as B,t as H,c as tt,a as b,b as rt,v as An,d as Vn,e as Cn,p as Te,m as Mn,g as xe,h as g,j as Dn,s as En,k as Y,l as Ln,M as xt,o as Xi,q as ht,r as St,u as Q,w as Rn,x as kn,y as Bn,z as Be,A as qt,B as Vt,C as W,D as jn,E as je,F as Fn,G as Yi,H as On,I as qi,S as Zi,J as D,K as Se,L as Zt,N as Qi,O as Qt,P as Ut,Q as In,R as Fe}from"./B6EZfjIF.js";import{bQ as Un,bT as Nn,k as $n,r as Kn,be as Gn,l as Wn,$ as Hn,h as _n,A as zn,S as Xn,ck as Yn,c7 as qn,ag as Zn,bt as Ji,cl as Qn,ar as Jn,aQ as to}from"./CBQuBlzC.js";import{g as Oe}from"./BGOSjtxl.js";function bt(t,e){const i=typeof t=="string"&&!e?`${t}Context`:e,s=Symbol(i);return[o=>{const a=Un(s,o);if(a===void 0)throw new Error(`Injection \`${s.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`);return a},o=>(Nn(s,o),o),s]}function eo(t,e){const{layoutGroup:i,presenceContext:s,config:n}=e,r=i.id&&t.layoutId?`${i.id}-${t.layoutId}`:t.layoutId||void 0;return{...t,layoutId:r,transition:t.transition??n.transition,layoutGroup:i,motionConfig:n,inViewOptions:t.inViewOptions??n.inViewOptions,presenceContext:s,initial:s.initial===!1?s.initial:t.initial===!0?void 0:t.initial}}const ts=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),es=t=>/^0[^.\s]+$/u.test(t),N=t=>t*1e3,U=t=>t/1e3,is=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,io=1e-7,so=12;function no(t,e,i,s,n){let r,o,a=0;do o=e+(i-e)/2,r=is(o,s,n)-t,r>0?i=o:e=o;while(Math.abs(r)>io&&++a<so);return o}function At(t,e,i,s){if(t===e&&i===s)return X;const n=r=>no(r,0,1,t,i);return r=>r===0||r===1?r:is(n(r),e,s)}const ss=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ns=t=>e=>1-t(1-e),os=At(.33,1.53,.69,.99),Pe=ns(os),rs=ss(Pe),as=t=>t>=1?1:(t*=2)<1?.5*Pe(t):.5*(2-Math.pow(2,-10*(t-1))),we=t=>1-Math.sin(Math.acos(t)),ls=ns(we),us=ss(we),oo=At(.42,0,1,1),ro=At(0,0,.58,1),cs=At(.42,0,.58,1),ao=t=>Array.isArray(t)&&typeof t[0]!="number",hs=t=>Array.isArray(t)&&typeof t[0]=="number",lo={linear:X,easeIn:oo,easeInOut:cs,easeOut:ro,circIn:we,circInOut:us,circOut:ls,backIn:Pe,backInOut:rs,backOut:os,anticipate:as},uo=t=>typeof t=="string",Ie=t=>{if(hs(t)){zi(t.length===4);const[e,i,s,n]=t;return At(e,i,s,n)}else if(uo(t))return lo[t];return t},co=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>b.update(e,i),stop:()=>tt(e),now:()=>B.isProcessing?B.timestamp:H.now()}},fs=(t,e,i=10)=>{let s="";const n=Math.max(Math.round(e/i),2);for(let r=0;r<n;r++)s+=Math.round(t(r/(n-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Lt=2e4;function be(t){let e=0;const i=50;let s=t.next(e);for(;!s.done&&e<Lt;)e+=i,s=t.next(e);return e>=Lt?1/0:e}function ho(t,e=100,i){const s=i({...t,keyframes:[0,e]}),n=Math.min(be(s),Lt);return{type:"keyframes",ease:r=>s.next(n*r).value/e,duration:U(n)}}const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Jt(t,e){return t*Math.sqrt(1-e*e)}const fo=12;function po(t,e,i){let s=i;for(let n=1;n<fo;n++)s=s-t(s)/e(s);return s}const Nt=.001;function mo({duration:t=M.duration,bounce:e=M.bounce,velocity:i=M.velocity,mass:s=M.mass}){let n,r,o=1-e;o=rt(M.minDamping,M.maxDamping,o),t=rt(M.minDuration,M.maxDuration,U(t)),o<1?(n=c=>{const u=c*o,h=u*t,f=u-i,d=Jt(c,o),m=Math.exp(-h);return Nt-f/d*m},r=c=>{const h=c*o*t,f=h*i+i,d=Math.pow(o,2)*Math.pow(c,2)*t,m=Math.exp(-h),y=Jt(Math.pow(c,2),o);return(-n(c)+Nt>0?-1:1)*((f-d)*m)/y}):(n=c=>{const u=Math.exp(-c*t),h=(c-i)*t+1;return-Nt+u*h},r=c=>{const u=Math.exp(-c*t),h=(i-c)*(t*t);return u*h});const a=5/t,l=po(n,r,a);if(t=N(t),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:o*2*Math.sqrt(s*c),duration:t}}}const yo=["duration","bounce"],go=["stiffness","damping","mass"];function Ue(t,e){return e.some(i=>t[i]!==void 0)}function vo(t){let e={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...t};if(!Ue(t,go)&&Ue(t,yo))if(e.velocity=0,t.visualDuration){const i=t.visualDuration,s=2*Math.PI/(i*1.2),n=s*s,r=2*rt(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:M.mass,stiffness:n,damping:r}}else{const i=mo({...t,velocity:0});e={...e,...i,mass:M.mass},e.isResolvedFromDuration=!0}return e}function Rt(t=M.visualDuration,e=M.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:n}=i;const r=i.keyframes[0],o=i.keyframes[i.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=vo({...i,velocity:-U(i.velocity||0)}),m=f||0,y=c/(2*Math.sqrt(l*u)),p=o-r,v=U(Math.sqrt(l/u)),T=Math.abs(p)<5;s||(s=T?M.restSpeed.granular:M.restSpeed.default),n||(n=T?M.restDelta.granular:M.restDelta.default);let S,V,P,L,F,w;if(y<1)P=Jt(v,y),L=(m+y*v*p)/P,S=x=>{const C=Math.exp(-y*v*x);return o-C*(L*Math.sin(P*x)+p*Math.cos(P*x))},F=y*v*L+p*P,w=y*v*p-L*P,V=x=>Math.exp(-y*v*x)*(F*Math.sin(P*x)+w*Math.cos(P*x));else if(y===1){S=C=>o-Math.exp(-v*C)*(p+(m+v*p)*C);const x=m+v*p;V=C=>Math.exp(-v*C)*(v*x*C-m)}else{const x=v*Math.sqrt(y*y-1);S=K=>{const q=Math.exp(-y*v*K),A=Math.min(x*K,300);return o-q*((m+y*v*p)*Math.sinh(A)+x*p*Math.cosh(A))/x};const C=(m+y*v*p)/x,$=y*v*C-p*x,at=y*v*p-C*x;V=K=>{const q=Math.exp(-y*v*K),A=Math.min(x*K,300);return q*($*Math.sinh(A)+at*Math.cosh(A))}}const R={calculatedDuration:d&&h||null,velocity:x=>N(V(x)),next:x=>{if(!d&&y<1){const $=Math.exp(-y*v*x),at=Math.sin(P*x),K=Math.cos(P*x),q=o-$*(L*at+p*K),A=N($*(F*at+w*K));return a.done=Math.abs(A)<=s&&Math.abs(o-q)<=n,a.value=a.done?o:q,a}const C=S(x);if(d)a.done=x>=h;else{const $=N(V(x));a.done=Math.abs($)<=s&&Math.abs(o-C)<=n}return a.value=a.done?o:C,a},toString:()=>{const x=Math.min(be(R),Lt),C=fs($=>R.next(x*$).value,x,30);return x+"ms "+C},toTransition:()=>{}};return R}Rt.applyToOptions=t=>{const e=ho(t,100,Rt);return t.ease=e.ease,t.duration=N(e.duration),t.type="keyframes",t};const To=5;function ds(t,e,i){const s=Math.max(e-To,0);return An(i-t(s),e-s)}function te({keyframes:t,velocity:e=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=w=>a!==void 0&&w<a||l!==void 0&&w>l,m=w=>a===void 0?l:l===void 0||Math.abs(a-w)<Math.abs(l-w)?a:l;let y=i*e;const p=h+y,v=o===void 0?p:o(p);v!==p&&(y=v-h);const T=w=>-y*Math.exp(-w/s),S=w=>v+T(w),V=w=>{const R=T(w),x=S(w);f.done=Math.abs(R)<=c,f.value=f.done?v:x};let P,L;const F=w=>{d(f.value)&&(P=w,L=Rt({keyframes:[f.value,m(f.value)],velocity:ds(S,w,f.value),damping:n,stiffness:r,restDelta:c,restSpeed:u}))};return F(0),{calculatedDuration:null,next:w=>{let R=!1;return!L&&P===void 0&&(R=!0,V(w),F(w)),P!==void 0&&w>=P?L.next(w-P):(!R&&V(w),f)}}}function xo(t,e){return t.map(i=>i*e)}function So(t,e){return t.map(()=>e||cs).splice(0,t.length-1)}function gt({duration:t=300,keyframes:e,times:i,ease:s="easeInOut"}){const n=ao(s)?s.map(Ie):Ie(s),r={done:!1,value:e[0]},o=xo(i&&i.length===e.length?i:Vn(e),t),a=Cn(o,e,{ease:Array.isArray(n)?n:So(e,n)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Po=t=>t!==null;function Ot(t,{repeat:e,repeatType:i="loop"},s,n=1){const r=t.filter(Po),a=n<0||e&&i!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const wo={decay:te,inertia:te,tween:gt,keyframes:gt,spring:Rt};function ps(t){typeof t.type=="string"&&(t.type=wo[t.type])}class Ae{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,i){return this.finished.then(e,i)}}const bo=t=>t/100;class kt extends Ae{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:i}=this.options;i&&i.updatedAt!==H.now()&&this.tick(H.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ps(e);const{type:i=gt,repeat:s=0,repeatDelay:n=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=i||gt;l!==gt&&typeof a[0]!="number"&&(this.mixKeyframes=Te(bo,Mn(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=be(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(s+1)-n,this.generator=c}updateTime(e){const i=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(e,i=!1){const{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:y,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),i?this.currentTime=e:this.updateTime(e);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=n);let S=this.currentTime,V=s;if(h){const w=Math.min(this.currentTime,n)/a;let R=Math.floor(w),x=w%1;!x&&w>=1&&(x=1),x===1&&R--,R=Math.min(R,h+1),R%2&&(f==="reverse"?(x=1-x,d&&(x-=d/a)):f==="mirror"&&(V=o)),S=rt(0,1,x)*a}let P;T?(this.delayState.value=u[0],P=this.delayState):P=V.next(S),r&&!T&&(P.value=r(P.value));let{done:L}=P;!T&&l!==null&&(L=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&L);return F&&m!==te&&(P.value=Ot(u,this.options,p,this.speed)),y&&y(P.value),F&&this.finish(),P}then(e,i){return this.finished.then(e,i)}get duration(){return U(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(this.currentTime)}set time(e){e=N(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const i=this.generator.next(e).value;return ds(s=>this.generator.next(s).value,e,i)}get speed(){return this.playbackSpeed}set speed(e){const i=this.playbackSpeed!==e;i&&this.driver&&this.updateTime(H.now()),this.playbackSpeed=e,i&&this.driver&&(this.time=U(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=co,startTime:i}=this.options;this.driver||(this.driver=e(n=>this.tick(n))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=i??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(H.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Ao(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const nt=t=>t*180/Math.PI,ee=t=>{const e=nt(Math.atan2(t[1],t[0]));return ie(e)},Vo={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ee,rotateZ:ee,skewX:t=>nt(Math.atan(t[1])),skewY:t=>nt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ie=t=>(t=t%360,t<0&&(t+=360),t),Ne=ee,$e=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Ke=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Co={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$e,scaleY:Ke,scale:t=>($e(t)+Ke(t))/2,rotateX:t=>ie(nt(Math.atan2(t[6],t[5]))),rotateY:t=>ie(nt(Math.atan2(-t[2],t[0]))),rotateZ:Ne,rotate:Ne,skewX:t=>nt(Math.atan(t[4])),skewY:t=>nt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function se(t){return t.includes("scale")?1:0}function ne(t,e){if(!t||t==="none")return se(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,n;if(i)s=Co,n=i;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Vo,n=a}if(!n)return se(e);const r=s[e],o=n[1].split(",").map(Do);return typeof r=="function"?r(o):o[r]}const Mo=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return ne(i,e)};function Do(t){return parseFloat(t.trim())}const ft=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dt=new Set(ft),Ge=t=>t===xe||t===g,Eo=new Set(["x","y","z"]),Lo=ft.filter(t=>!Eo.has(t));function Ro(t){const e=[];return Lo.forEach(i=>{const s=t.getValue(i);s!==void 0&&(e.push([i,s.get()]),s.set(i.startsWith("scale")?1:0))}),e}const J={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:s})=>{const n=t.max-t.min;return s==="border-box"?n:n-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ne(e,"x"),y:(t,{transform:e})=>ne(e,"y")};J.translateX=J.x;J.translateY=J.y;const ot=new Set;let oe=!1,re=!1,ae=!1;function ms(){if(re){const t=Array.from(ot).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),i=new Map;e.forEach(s=>{const n=Ro(s);n.length&&(i.set(s,n),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const n=i.get(s);n&&n.forEach(([r,o])=>{s.getValue(r)?.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}re=!1,oe=!1,ot.forEach(t=>t.complete(ae)),ot.clear()}function ys(){ot.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(re=!0)})}function ko(){ae=!0,ys(),ms(),ae=!1}class Ve{constructor(e,i,s,n,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=s,this.motionValue=n,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ot.add(this),oe||(oe=!0,b.read(ys),b.resolveKeyframes(ms))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:s,motionValue:n}=this;if(e[0]===null){const r=n?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&i){const a=s.readValue(i,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),n&&r===void 0&&n.set(e[0])}Ao(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ot.delete(this)}cancel(){this.state==="scheduled"&&(ot.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Bo=t=>t.startsWith("--");function gs(t,e,i){Bo(e)?t.style.setProperty(e,i):t.style[e]=i}const vs=Dn(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),mt=([t,e,i,s])=>`cubic-bezier(${t}, ${e}, ${i}, ${s})`,We={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:mt([0,.65,.55,1]),circOut:mt([.55,0,1,.45]),backIn:mt([.31,.01,.66,-.59]),backOut:mt([.33,1.53,.69,.99])};function Ts(t,e){if(t)return typeof t=="function"?vs()?fs(t,e):"ease-out":hs(t)?mt(t):Array.isArray(t)?t.map(i=>Ts(i,e)||We.easeOut):We[t]}function jo(t,e,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:i};l&&(u.offset=l);const h=Ts(a,n);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function xs(t){return typeof t=="function"&&"applyToOptions"in t}function Fo({type:t,...e}){return xs(t)&&vs()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ss extends Ae{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:i,name:s,keyframes:n,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,zi(typeof e.type!="string");const c=Fo(e);this.animation=jo(i,s,n,c,r),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const u=Ot(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),gs(i,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return U(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(Number(this.animation.currentTime)||0)}set time(e){const i=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=N(e),i&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:i,rangeEnd:s,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&En()?(this.animation.timeline=e,i&&(this.animation.rangeStart=i),s&&(this.animation.rangeEnd=s),X):n(this)}}const Ps={anticipate:as,backInOut:rs,circInOut:us};function Oo(t){return t in Ps}function Io(t){typeof t.ease=="string"&&Oo(t.ease)&&(t.ease=Ps[t.ease])}const $t=10;class Uo extends Ss{constructor(e){Io(e),ps(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:i,onUpdate:s,onComplete:n,element:r,...o}=this.options;if(!i)return;if(e!==void 0){i.set(e);return}const a=new kt({...o,autoplay:!1}),l=Math.max($t,H.now()-this.startTime),c=rt(0,$t,l-$t),u=a.sample(l).value,{name:h}=this.options;r&&h&&gs(r,h,u),i.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const He=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Y.test(t)||t==="0")&&!t.startsWith("url("));function No(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function $o(t,e,i,s){const n=t[0];if(n===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=He(n,e),a=He(r,e);return!o||!a?!1:No(t)||(i==="spring"||xs(i))&&s}function le(t){t.duration=0,t.type="keyframes"}const ws=new Set(["opacity","clipPath","filter","transform"]),Ko=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Go(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&Ko.test(t[e]))return!0;return!1}const Wo=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Ho=Ln(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _o(t){const{motionValue:e,name:i,repeatDelay:s,repeatType:n,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return Ho()&&i&&(ws.has(i)||Wo.has(i)&&Go(a))&&(i!=="transform"||!u)&&!c&&!s&&n!=="mirror"&&r!==0&&o!=="inertia"}const zo=40;class Xo extends Ae{constructor({autoplay:e=!0,delay:i=0,type:s="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=H.now();const f={autoplay:e,delay:i,type:s,repeat:n,repeatDelay:r,repeatType:o,name:l,motionValue:c,element:u,...h},d=u?.KeyframeResolver||Ve;this.keyframeResolver=new d(a,(m,y,p)=>this.onKeyframesResolved(m,y,f,!p),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,i,s,n){this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=H.now();let h=!0;$o(e,r,o,a)||(h=!1,(xt.instantAnimations||!l)&&u?.(Ot(e,s,i)),e[0]=e[e.length-1],le(s),s.repeat=0);const d={startTime:n?this.resolvedAt?this.resolvedAt-this.createdAt>zo?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...s,keyframes:e},m=h&&!c&&_o(d),y=d.motionValue?.owner?.current;let p;if(m)try{p=new Uo({...d,element:y})}catch{p=new kt(d)}else p=new kt(d);p.finished.then(()=>{this.notifyFinished()}).catch(X),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,i){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ko()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function bs(t,e,i,s=0,n=1){const r=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),o=t.size,a=(o-1)*s;return typeof i=="function"?i(r,o):n===1?r*s:a-r*s}const Yo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function qo(t){const e=Yo.exec(t);if(!e)return[,];const[,i,s,n]=e;return[`--${i??s}`,n]}function As(t,e,i=1){const[s,n]=qo(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return ts(o)?parseFloat(o):o}return Xi(n)?As(n,e,i+1):n}const Zo={type:"spring",stiffness:500,damping:25,restSpeed:10},Qo=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Jo={type:"keyframes",duration:.8},tr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},er=(t,{keyframes:e})=>e.length>2?Jo:dt.has(t)?t.startsWith("scale")?Qo(e[1]):Zo:tr;function Vs(t,e){if(t?.inherit&&e){const{inherit:i,...s}=t;return{...e,...s}}return t}function Ce(t,e){const i=t?.[e]??t?.default??t;return i!==t?Vs(i,t):i}const ir=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function sr(t){for(const e in t)if(!ir.has(e))return!0;return!1}const Me=(t,e,i,s={},n,r)=>o=>{const a=Ce(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-N(l);const u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:n};sr(a)||Object.assign(u,er(t,u)),u.duration&&(u.duration=N(u.duration)),u.repeatDelay&&(u.repeatDelay=N(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(le(u),u.delay===0&&(h=!0)),(xt.instantAnimations||xt.skipAnimations||n?.shouldSkipAnimations)&&(h=!0,le(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=Ot(u.keyframes,a);if(f!==void 0){b.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new kt(u):new Xo(u)};function _e(t){const e=[{},{}];return t?.values.forEach((i,s)=>{e[0][s]=i.get(),e[1][s]=i.getVelocity()}),e}function Cs(t,e,i,s){if(typeof e=="function"){const[n,r]=_e(s);e=e(i!==void 0?i:t.custom,n,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[n,r]=_e(s);e=e(i!==void 0?i:t.custom,n,r)}return e}function ct(t,e,i){const s=t.getProps();return Cs(s,e,i!==void 0?i:s.custom,t)}const Ms=new Set(["width","height","top","left","right","bottom",...ft]),nr=t=>Array.isArray(t);function or(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ht(i))}function rr(t){return nr(t)?t[t.length-1]||0:t}function ar(t,e){const i=ct(t,e);let{transitionEnd:s={},transition:n={},...r}=i||{};r={...r,...s};for(const o in r){const a=rr(r[o]);or(t,o,a)}}const k=t=>!!(t&&t.getVelocity);function lr(t){return!!(k(t)&&t.add)}function ue(t,e){const i=t.getValue("willChange");if(lr(i))return i.add(e);if(!i&&xt.WillChange){const s=new xt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function De(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const ur="framerAppearId",cr="data-"+De(ur);function Ds(t){return t.props[cr]}function hr({protectedKeys:t,needsAnimating:e},i){const s=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,s}function Es(t,e,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?Vs(r,l):l;const c=r?.reduceMotion;s&&(r=s);const u=[],h=n&&t.animationState&&t.animationState.getState()[n];for(const f in a){const d=t.getValue(f,t.latestValues[f]??null),m=a[f];if(m===void 0||h&&hr(h,f))continue;const y={delay:i,...Ce(r||{},f)},p=d.get();if(p!==void 0&&!d.isAnimating()&&!Array.isArray(m)&&m===p&&!y.velocity){b.update(()=>d.set(m));continue}let v=!1;if(window.MotionHandoffAnimation){const V=Ds(t);if(V){const P=window.MotionHandoffAnimation(V,f,b);P!==null&&(y.startTime=P,v=!0)}}ue(t,f);const T=c??t.shouldReduceMotion;d.start(Me(f,d,m,T&&Ms.has(f)?{type:!1}:y,t,v));const S=d.animation;S&&u.push(S)}if(o){const f=()=>b.update(()=>{o&&ar(t,o)});u.length?Promise.all(u).then(f):f()}return u}function ce(t,e,i={}){const s=ct(t,e,i.type==="exit"?t.presenceContext?.custom:void 0);let{transition:n=t.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);const r=s?()=>Promise.all(Es(t,s,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=n;return fr(t,e,l,c,u,h,i)}:()=>Promise.resolve(),{when:a}=n;if(a){const[l,c]=a==="beforeChildren"?[r,o]:[o,r];return l().then(()=>c())}else return Promise.all([r(),o(i.delay)])}function fr(t,e,i=0,s=0,n=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(ce(l,e,{...o,delay:i+(typeof s=="function"?0:s)+bs(t.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function dr(t,e,i={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const n=e.map(r=>ce(t,r,i));s=Promise.all(n)}else if(typeof e=="string")s=ce(t,e,i);else{const n=typeof e=="function"?ct(t,e,i.custom):e;s=Promise.all(Es(t,n,i))}return s.then(()=>{t.notify("AnimationComplete",e)})}const pr={test:t=>t==="auto",parse:t=>t},Ls=t=>e=>e.test(t),Rs=[xe,g,St,Q,Rn,kn,pr],ze=t=>Rs.find(Ls(t));function mr(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||es(t):!0}const yr=new Set(["brightness","contrast","saturate","opacity"]);function gr(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=i.match(Bn)||[];if(!s)return t;const n=i.replace(s,"");let r=yr.has(e)?1:0;return s!==i&&(r*=100),e+"("+r+n+")"}const vr=/\b([a-z-]*)\(.*?\)/gu,he={...Y,getAnimatableNone:t=>{const e=t.match(vr);return e?e.map(gr).join(" "):t}},fe={...Y,getAnimatableNone:t=>{const e=Y.parse(t);return Y.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Xe={...xe,transform:Math.round},Tr={rotate:Q,rotateX:Q,rotateY:Q,rotateZ:Q,scale:Vt,scaleX:Vt,scaleY:Vt,scaleZ:Vt,skew:Q,skewX:Q,skewY:Q,distance:g,translateX:g,translateY:g,translateZ:g,x:g,y:g,z:g,perspective:g,transformPerspective:g,opacity:qt,originX:Be,originY:Be,originZ:g},Ee={borderWidth:g,borderTopWidth:g,borderRightWidth:g,borderBottomWidth:g,borderLeftWidth:g,borderRadius:g,borderTopLeftRadius:g,borderTopRightRadius:g,borderBottomRightRadius:g,borderBottomLeftRadius:g,width:g,maxWidth:g,height:g,maxHeight:g,top:g,right:g,bottom:g,left:g,inset:g,insetBlock:g,insetBlockStart:g,insetBlockEnd:g,insetInline:g,insetInlineStart:g,insetInlineEnd:g,padding:g,paddingTop:g,paddingRight:g,paddingBottom:g,paddingLeft:g,paddingBlock:g,paddingBlockStart:g,paddingBlockEnd:g,paddingInline:g,paddingInlineStart:g,paddingInlineEnd:g,margin:g,marginTop:g,marginRight:g,marginBottom:g,marginLeft:g,marginBlock:g,marginBlockStart:g,marginBlockEnd:g,marginInline:g,marginInlineStart:g,marginInlineEnd:g,fontSize:g,backgroundPositionX:g,backgroundPositionY:g,...Tr,zIndex:Xe,fillOpacity:qt,strokeOpacity:qt,numOctaves:Xe},xr={...Ee,color:W,backgroundColor:W,outlineColor:W,fill:W,stroke:W,borderColor:W,borderTopColor:W,borderRightColor:W,borderBottomColor:W,borderLeftColor:W,filter:he,WebkitFilter:he,mask:fe,WebkitMask:fe},ks=t=>xr[t],Sr=new Set([he,fe]);function Bs(t,e){let i=ks(t);return Sr.has(i)||(i=Y),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
vendor: 1,695 bytes, line 1
1const Pr=new Set(["auto","none","0"]);function wr(t,e,i){let s=0,n;for(;s<t.length&&!n;){const r=t[s];typeof r=="string"&&!Pr.has(r)&&jn(r).values.length&&(n=t[s]),s++}if(n&&i)for(const r of e)t[r]=Bs(i,n)}class br extends Ve{constructor(e,i,s,n,r){super(e,i,s,n,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:s}=this;if(!i||!i.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),Xi(h))){const f=As(h,i.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!Ms.has(s)||e.length!==2)return;const[n,r]=e,o=ze(n),a=ze(r),l=je(n),c=je(r);if(l!==c&&J[s]){this.needsMeasurement=!0;return}if(o!==a)if(Ge(o)&&Ge(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else J[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,s=[];for(let n=0;n<e.length;n++)(e[n]===null||mr(e[n]))&&s.push(n);s.length&&wr(e,s,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=J[s](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const n=i[i.length-1];n!==void 0&&e.getValue(s,n).jump(n,!1)}measureEndState(){const{element:e,name:i,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);const r=s.length-1,o=s[r];s[r]=J[i](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 44,081 bytes, line 1
1h(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const js=(t,e)=>e&&typeof t=="number"?e.transform(t):t,{schedule:Fs}=Fn(queueMicrotask,!1),Ar={y:!1};function Vr(){return Ar.y}function Os(t,e){const i=Yi(t),s=new AbortController,n={passive:!0,...e,signal:s.signal};return[i,n,()=>s.abort()]}function Cr(t){return!(t.pointerType==="touch"||Vr())}function Mr(t,e,i={}){const[s,n,r]=Os(t,i);return s.forEach(o=>{let a=!1,l=!1,c;const u=()=>{o.removeEventListener("pointerleave",m)},h=p=>{c&&(c(p),c=void 0),u()},f=p=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(p))},d=()=>{a=!0,window.addEventListener("pointerup",f,n),window.addEventListener("pointercancel",f,n)},m=p=>{if(p.pointerType!=="touch"){if(a){l=!0;return}h(p)}},y=p=>{if(!Cr(p))return;l=!1;const v=e(o,p);typeof v=="function"&&(c=v,o.addEventListener("pointerleave",m,n))};o.addEventListener("pointerenter",y,n),o.addEventListener("pointerdown",d,n)}),r}const Is=(t,e)=>e?t===e?!0:Is(t,e.parentElement):!1,Dr=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Er=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Lr(t){return Er.has(t.tagName)||t.isContentEditable===!0}const Mt=new WeakSet;function Ye(t){return e=>{e.key==="Enter"&&t(e)}}function Kt(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Rr=(t,e)=>{const i=t.currentTarget;if(!i)return;const s=Ye(()=>{if(Mt.has(i))return;Kt(i,"down");const n=Ye(()=>{Kt(i,"up")}),r=()=>Kt(i,"cancel");i.addEventListener("keyup",n,e),i.addEventListener("blur",r,e)});i.addEventListener("keydown",s,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),e)};function qe(t){return Dr(t)&&!0}const Ze=new WeakSet;function kr(t,e,i={}){const[s,n,r]=Os(t,i),o=a=>{const l=a.currentTarget;if(!qe(a)||Ze.has(a))return;Mt.add(l),i.stopPropagation&&Ze.add(a);const c=e(l,a),u=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),Mt.has(l)&&Mt.delete(l),qe(d)&&typeof c=="function"&&c(d,{success:m})},h=d=>{u(d,l===window||l===document||i.useGlobalTarget||Is(l,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,n),window.addEventListener("pointercancel",f,n)};return s.forEach(a=>{(i.useGlobalTarget?window:a).addEventListener("pointerdown",o,n),On(a)&&(a.addEventListener("focus",c=>Rr(c,n)),!Lr(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Br(t){return qi(t)&&t.tagName==="svg"}const jr=[...Rs,W,Y],Fr=t=>jr.find(Ls(t)),Qe=()=>({translate:0,scale:1,origin:0,originPoint:0}),ut=()=>({x:Qe(),y:Qe()}),Je=()=>({min:0,max:0}),E=()=>({x:Je(),y:Je()}),Or=new WeakMap;function Le(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function It(t){return typeof t=="string"||Array.isArray(t)}const Ir=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ur=["initial",...Ir];function Us(t){return Le(t.animate)||Ur.some(e=>It(t[e]))}function Nr(t){return!!(Us(t)||t.variants)}function $r(t,e,i){for(const s in e){const n=e[s],r=i[s];if(k(n))t.addValue(s,n);else if(k(r))t.addValue(s,ht(n,{owner:t}));else if(r!==n)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(n):o.hasAnimated||o.set(n)}else{const o=t.getStaticValue(s);t.addValue(s,ht(o!==void 0?o:n,{owner:t}))}}for(const s in i)e[s]===void 0&&t.removeValue(s);return e}const de={current:null},Ns={current:!1},Kr=typeof window<"u";function Gr(){if(Ns.current=!0,!!Kr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>de.current=t.matches;t.addEventListener("change",e),e()}else de.current=!1}const ti=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ei={};class Wr{scrapeMotionValuesFromProps(e,i,s){return{}}constructor({parent:e,props:i,presenceContext:s,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ve,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=H.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,b.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=i.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=i,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Us(i),this.isVariantNode=Nr(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(i,{},this);for(const d in f){const m=f[d];c[d]!==void 0&&k(m)&&m.set(c[d])}}mount(e){if(this.hasBeenMounted)for(const i in this.initialValues)this.values.get(i)?.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=e,Or.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,s)=>this.bindToMotionValue(s,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ns.current||Gr(),this.shouldReduceMotion=de.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const i=this.features[e];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,i){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),i.accelerate&&ws.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:c,duration:u}=i.accelerate,h=new Ss({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:N(u)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=dt.has(e);s&&this.onBindTransform&&this.onBindTransform();const n=i.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&b.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{n(),r&&r(),i.owner&&i.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ei){const i=ei[e];if(!i)continue;const{isEnabled:s,Feature:n}=i;if(!this.features[e]&&n&&s(this.props)&&(this.features[e]=new n(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):E()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let s=0;s<ti.length;s++){const n=ti[s];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r="on"+n,o=e[r];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=$r(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const s=this.values.get(e);i!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&i!==void 0&&(s=ht(i===null?void 0:i,{owner:this}),this.addValue(e,s)),s}readValue(e,i){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(ts(s)||es(s))?s=parseFloat(s):!Fr(s)&&Y.test(i)&&(s=Bs(e,i)),this.setBaseTarget(e,k(s)?s.get():s)),k(s)?s.get():s}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const r=Cs(this.props,i,this.presenceContext?.custom);r&&(s=r[e])}if(i&&s!==void 0)return s;const n=this.getBaseTargetFromProps(this.props,e);return n!==void 0&&!k(n)?n:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new Zi),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}scheduleRenderMicrotask(){Fs.render(this.render)}}class $s extends Wr{constructor(){super(...arguments),this.KeyframeResolver=br}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){const s=e.style;return s?s[i]:void 0}removeValueFromRenderState(e,{vars:i,style:s}){delete i[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;k(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function Ks({top:t,left:e,right:i,bottom:s}){return{x:{min:e,max:i},y:{min:t,max:s}}}function Hr({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function _r(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}function Gt(t){return t===void 0||t===1}function pe({scale:t,scaleX:e,scaleY:i}){return!Gt(t)||!Gt(e)||!Gt(i)}function st(t){return pe(t)||Gs(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Gs(t){return ii(t.x)||ii(t.y)}function ii(t){return t&&t!=="0%"}function Bt(t,e,i){const s=t-i,n=e*s;return i+n}function si(t,e,i,s,n){return n!==void 0&&(t=Bt(t,n,s)),Bt(t,i,s)+e}function me(t,e=0,i=1,s,n){t.min=si(t.min,e,i,s,n),t.max=si(t.max,e,i,s,n)}function Ws(t,{x:e,y:i}){me(t.x,e.translate,e.scale,e.originPoint),me(t.y,i.translate,i.scale,i.originPoint)}const ni=.999999999999,oi=1.0000000000001;function zr(t,e,i,s=!1){const n=i.length;if(!n)return;e.x=e.y=1;let r,o;for(let a=0;a<n;a++){r=i[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(_(t.x,-r.scroll.offset.x),_(t.y,-r.scroll.offset.y)),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Ws(t,o)),s&&st(r.latestValues)&&Dt(t,r.latestValues,r.layout?.layoutBox))}e.x<oi&&e.x>ni&&(e.x=1),e.y<oi&&e.y>ni&&(e.y=1)}function _(t,e){t.min+=e,t.max+=e}function ri(t,e,i,s,n=.5){const r=D(t.min,t.max,n);me(t,e,i,r,s)}function ai(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Dt(t,e,i){const s=i??t;ri(t.x,ai(e.x,s.x),e.scaleX,e.scale,e.originX),ri(t.y,ai(e.y,s.y),e.scaleY,e.scale,e.originY)}function Hs(t,e){return Ks(_r(t.getBoundingClientRect(),e))}function Xr(t,e,i){const s=Hs(t,i),{scroll:n}=e;return n&&(_(s.x,n.offset.x),_(s.y,n.offset.y)),s}const Yr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qr=ft.length;function Zr(t,e,i){let s="",n=!0;for(let r=0;r<qr;r++){const o=ft[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const c=parseFloat(a);l=o.startsWith("scale")?c===1:c===0}if(!l||i){const c=js(a,Ee[o]);if(!l){n=!1;const u=Yr[o]||o;s+=`${u}(${c}) `}i&&(e[o]=c)}}return s=s.trim(),i?s=i(e,n?"":s):n&&(s="none"),s}function Re(t,e,i){const{style:s,vars:n,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const c=e[l];if(dt.has(l)){o=!0;continue}else if(Se(l)){n[l]=c;continue}else{const u=js(c,Ee[l]);l.startsWith("origin")?(a=!0,r[l]=u):s[l]=u}}if(e.transform||(o||i?s.transform=Zr(e,t.transform,i):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=r;s.transformOrigin=`${l} ${c} ${u}`}}function _s(t,{style:e,vars:i},s,n){const r=t.style;let o;for(o in e)r[o]=e[o];n?.applyProjectionStyles(r,s);for(o in i)r.setProperty(o,i[o])}function li(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const z={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(g.test(t))t=parseFloat(t);else return t;const i=li(t,e.target.x),s=li(t,e.target.y);return`${i}% ${s}%`}},zs={correct:(t,{treeScale:e,projectionDelta:i})=>{const s=t,n=Y.parse(t);if(n.length>5)return s;const r=Y.createTransformer(t),o=typeof n[0]!="number"?1:0,a=i.x.scale*e.x,l=i.y.scale*e.y;n[0+o]/=a,n[1+o]/=l;const c=D(a,l,.5);return typeof n[2+o]=="number"&&(n[2+o]/=c),typeof n[3+o]=="number"&&(n[3+o]/=c),r(n)}},Pt={borderRadius:{...z,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomLeftRadius:z,borderBottomRightRadius:z,boxShadow:zs};function Xs(t){for(const e in t)Pt[e]=t[e],Se(e)&&(Pt[e].isCSSVariable=!0)}function Qr(t,{layout:e,layoutId:i}){return dt.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!Pt[t]||t==="opacity")}function Ys(t,e,i){const s=t.style,n=e?.style,r={};if(!s)return r;for(const o in s)(k(s[o])||n&&k(n[o])||Qr(o,t)||i?.getValue(o)?.liveStyle!==void 0)&&(r[o]=s[o]);return r}function Jr(t){return window.getComputedStyle(t)}class ta extends $s{constructor(){super(...arguments),this.type="html",this.renderInstance=_s}readValueFromInstance(e,i){if(dt.has(i))return this.projection?.isProjecting?se(i):Mo(e,i);{const s=Jr(e),n=(Se(i)?s.getPropertyValue(i):s[i])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:i}){return Hs(e,i)}build(e,i,s){Re(e,i,s.transformTemplate)}scrapeMotionValuesFromProps(e,i,s){return Ys(e,i,s)}}const ea={offset:"stroke-dashoffset",array:"stroke-dasharray"},ia={offset:"strokeDashoffset",array:"strokeDasharray"};function sa(t,e,i=1,s=0,n=!0){t.pathLength=1;const r=n?ea:ia;t[r.offset]=`${-s}`,t[r.array]=`${e} ${i}`}const na=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function qs(t,{attrX:e,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:o=0,...a},l,c,u){if(Re(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const d of na)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),i!==void 0&&(h.y=i),s!==void 0&&(h.scale=s),n!==void 0&&sa(h,n,r,o,!1)}const ke=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"]),Zs=t=>typeof t=="string"&&t.toLowerCase()==="svg";function oa(t,e,i,s){_s(t,e,void 0,s);for(const n in e.attrs)t.setAttribute(ke.has(n)?n:De(n),e.attrs[n])}function ra(t,e,i){const s=Ys(t,e,i);for(const n in t)if(k(t[n])||k(e[n])){const r=ft.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;s[r]=t[n]}return s}class aa extends $s{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(dt.has(i)){const s=ks(i);return s&&s.default||0}return i=ke.has(i)?i:De(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,s){return ra(e,i,s)}build(e,i,s){qs(e,i,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,i,s,n){oa(e,i,s,n)}mount(e){this.isSVGTag=Zs(e.tagName),super.mount(e)}}function ye(t,e){t.min=e.min,t.max=e.max}function G(t,e){ye(t.x,e.x),ye(t.y,e.y)}function ui(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Qs=1e-4,la=1-Qs,ua=1+Qs,Js=.01,ca=0-Js,ha=0+Js;function j(t){return t.max-t.min}function fa(t,e,i){return Math.abs(t-e)<=i}function ci(t,e,i,s=.5){t.origin=s,t.originPoint=D(e.min,e.max,t.origin),t.scale=j(i)/j(e),t.translate=D(i.min,i.max,t.origin)-t.originPoint,(t.scale>=la&&t.scale<=ua||isNaN(t.scale))&&(t.scale=1),(t.translate>=ca&&t.translate<=ha||isNaN(t.translate))&&(t.translate=0)}function vt(t,e,i,s){ci(t.x,e.x,i.x,s?s.originX:void 0),ci(t.y,e.y,i.y,s?s.originY:void 0)}function hi(t,e,i,s=0){const n=s?D(i.min,i.max,s):i.min;t.min=n+e.min,t.max=t.min+j(e)}function da(t,e,i,s){hi(t.x,e.x,i.x,s?.x),hi(t.y,e.y,i.y,s?.y)}function fi(t,e,i,s=0){const n=s?D(i.min,i.max,s):i.min;t.min=e.min-n,t.max=t.min+j(e)}function jt(t,e,i,s){fi(t.x,e.x,i.x,s?.x),fi(t.y,e.y,i.y,s?.y)}function di(t,e,i,s,n){return t-=e,t=Bt(t,1/i,s),n!==void 0&&(t=Bt(t,1/n,s)),t}function pa(t,e=0,i=1,s=.5,n,r=t,o=t){if(St.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=D(r.min,r.max,s);t===r&&(a-=e),t.min=di(t.min,e,i,a,n),t.max=di(t.max,e,i,a,n)}function pi(t,e,[i,s,n],r,o){pa(t,e[i],e[s],e[n],e.scale,r,o)}const ma=["x","scaleX","originX"],ya=["y","scaleY","originY"];function mi(t,e,i,s){pi(t.x,e,ma,i?i.x:void 0,s?s.x:void 0),pi(t.y,e,ya,i?i.y:void 0,s?s.y:void 0)}function yi(t){return t.translate===0&&t.scale===1}function tn(t){return yi(t.x)&&yi(t.y)}function gi(t,e){return t.min===e.min&&t.max===e.max}function ga(t,e){return gi(t.x,e.x)&&gi(t.y,e.y)}function vi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function en(t,e){return vi(t.x,e.x)&&vi(t.y,e.y)}function Ti(t){return j(t.x)/j(t.y)}function xi(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function I(t){return[t("x"),t("y")]}function va(t,e,i){let s="";const n=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((n||r||o)&&(s=`translate3d(${n}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:m}=i;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const sn=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Ta=sn.length,Si=t=>typeof t=="string"?parseFloat(t):t,Pi=t=>typeof t=="number"||g.test(t);function xa(t,e,i,s,n,r){n?(t.opacity=D(0,i.opacity??1,Sa(s)),t.opacityExit=D(e.opacity??1,0,Pa(s))):r&&(t.opacity=D(e.opacity??1,i.opacity??1,s));for(let o=0;o<Ta;o++){const a=sn[o];let l=wi(e,a),c=wi(i,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Pi(l)===Pi(c)?(t[a]=Math.max(D(Si(l),Si(c),s),0),(St.test(c)||St.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||i.rotate)&&(t.rotate=D(e.rotate||0,i.rotate||0,s))}function wi(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Sa=nn(0,.5,ls),Pa=nn(.5,.95,X);function nn(t,e,i){return s=>s<t?0:s>e?1:i(Zt(t,e,s))}function wa(t,e,i){const s=k(t)?t:ht(t);return s.start(Me("",s,e,i)),s.animation}function ba(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}const Aa=(t,e)=>t.depth-e.depth;class Va{constructor(){this.children=[],this.isDirty=!1}add(e){Qi(this.children,e),this.isDirty=!0}remove(e){Qt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Aa),this.isDirty=!1,this.children.forEach(e)}}function Ca(t,e){const i=H.now(),s=({timestamp:n})=>{const r=n-i;r>=e&&(tt(s),t(r-e))};return b.setup(s,!0),()=>tt(s)}function Wt(t){return k(t)?t.get():t}class Ma{constructor(){this.members=[]}add(e){Qi(this.members,e);for(let i=this.members.length-1;i>=0;i--){const s=this.members[i];if(s===e||s===this.lead||s===this.prevLead)continue;const n=s.instance;(!n||n.isConnected===!1)&&!s.snapshot&&(Qt(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Qt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){for(let i=this.members.indexOf(e)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,i){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:n}=s.options,{layoutDependency:r}=e.options;(n===void 0||n!==r)&&(e.resumeFrom=s,i&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Et={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Ht=["","X","Y","Z"],Da=1e3;let Ea=0;function _t(t,e,i,s){const{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),s&&(s[t]=0))}function on(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Ds(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:n,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",b,!(n||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&on(s)}function rn({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(o={},a=e?.()){this.id=Ea++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ka),this.nodes.forEach(Ua),this.nodes.forEach(Na),this.nodes.forEach(Ba)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Va)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Zi),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=qi(o)&&!Br(o),this.instance=o;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;b.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=Ca(f,250),Et.hasAnimatedSinceResize&&(Et.hasAnimatedSinceResize=!1,this.nodes.forEach(Vi)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||Ha,{onLayoutAnimationStart:y,onLayoutAnimationComplete:p}=c.getProps(),v=!this.targetLayout||!en(this.targetLayout,d),T=!h&&f;if(this.options.layoutRoot||this.resumeFrom||T||h&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const S={...Ce(m,"layout"),onPlay:y,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S),this.setAnimationOrigin(u,T)}else h||Vi(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tt(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($a),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&on(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,(typeof h.latestValues.x=="string"||typeof h.latestValues.y=="string")&&(h.isLayoutDirty=!0),h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Fa),this.nodes.forEach(bi);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Ai);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Oa),this.nodes.forEach(Ia),this.nodes.forEach(La),this.nodes.forEach(Ra)):this.nodes.forEach(Ai),this.clearAllSnapshots();const a=H.now();B.delta=rt(0,1e3/60,a-B.timestamp),B.timestamp=a,B.isProcessing=!0,Ut.update.process(B),Ut.preRender.process(B),Ut.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ja),this.sharedNodes.forEach(Ka)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,b.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){b.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!j(this.snapshot.measuredBox.x)&&!j(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=E()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!n)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!tn(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;o&&this.instance&&(a||st(this.latestValues)||u)&&(n(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),_a(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:o}=this.options;if(!o)return E();const a=o.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(za))){const{scroll:c}=this.root;c&&(_(a.x,c.offset.x),_(a.y,c.offset.y))}return a}removeElementScroll(o){const a=E();if(G(a,o),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&G(a,o),_(a.x,u.offset.x),_(a.y,u.offset.y))}return a}applyTransform(o,a=!1,l){const c=l||E();G(c,o);for(let u=0;u<this.path.length;u++){const h=this.path[u];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(_(c.x,-h.scroll.offset.x),_(c.y,-h.scroll.offset.y)),st(h.latestValues)&&Dt(c,h.latestValues,h.layout?.layoutBox)}return st(this.latestValues)&&Dt(c,this.latestValues,this.layout?.layoutBox),c}removeTransform(o){const a=E();G(a,o);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!st(c.latestValues))continue;let u;c.instance&&(pe(c.latestValues)&&c.updateSnapshot(),u=E(),G(u,c.measurePageBox())),mi(a,c.latestValues,c.snapshot?.layoutBox,u)}return st(this.latestValues)&&mi(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==B.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=B.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=E(),this.targetWithTransforms=E()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),da(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):G(this.target,this.layout.layoutBox),Ws(this.target,this.targetDelta)):G(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||pe(this.parent.latestValues)||Gs(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E(),this.relativeTargetOrigin=E(),jt(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),G(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===B.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;G(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;zr(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=E());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(ui(this.prevProjectionDelta.x,this.projectionDelta.x),ui(this.prevProjectionDelta.y,this.projectionDelta.y)),vt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!xi(this.projectionDelta.x,this.prevProjectionDelta.x)||!xi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){if(this.options.visualElement?.scheduleRender(),o){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ut(),this.projectionDelta=ut(),this.projectionDeltaWithTransform=ut()}setAnimationOrigin(o,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=ut();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=E(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=d!==m,p=this.getStack(),v=!p||p.members.length<=1,T=!!(y&&!v&&this.options.crossfade===!0&&!this.path.some(Wa));this.animationProgress=0;let S;this.mixTargetDelta=V=>{const P=V/1e3;Ci(h.x,o.x,P),Ci(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ga(this.relativeTarget,this.relativeTargetOrigin,f,P),S&&ga(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=E()),G(S,this.relativeTarget)),y&&(this.animationValues=u,xa(u,c,this.latestValues,P,T,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=b.update(()=>{Et.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ht(0)),this.motionValue.jump(0,!1),this.currentAnimation=wa(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Da),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&an(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||E();const h=j(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=j(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}G(a,l),Dt(a,u),vt(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Ma),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){const{layoutId:o}=this.options;return o?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:o}=this.options;return o?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&_t("z",o,c,this.animationValues);for(let u=0;u<Ht.length;u++)_t(`rotate${Ht[u]}`,o,c,this.animationValues),_t(`skew${Ht[u]}`,o,c,this.animationValues);o.render();for(const u in c)o.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Wt(a?.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Wt(a?.pointerEvents)||""),this.hasProjected&&!st(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=va(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),o.transform=h;const{x:f,y:d}=this.projectionDelta;o.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?o.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:o.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in Pt){if(u[m]===void 0)continue;const{correct:y,applyTo:p,isCSSVariable:v}=Pt[m],T=h==="none"?u[m]:y(u[m],c);if(p){const S=p.length;for(let V=0;V<S;V++)o[p[V]]=T}else v?this.options.visualElement.renderState.vars[m]=T:o[m]=T}this.options.layoutId&&(o.pointerEvents=c===this?Wt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>o.currentAnimation?.stop()),this.root.nodes.forEach(bi),this.root.sharedNodes.clear()}}}function La(t){t.updateLayout()}function Ra(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:n}=t.options,r=e.source!==t.layout.source;if(n==="size")I(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=j(h);h.min=i[u].min,h.max=h.min+f});else if(n==="x"||n==="y"){const u=n==="x"?"y":"x";ye(r?e.measuredBox[u]:e.layoutBox[u],i[u])}else an(n,e.layoutBox,i)&&I(u=>{const h=r?e.measuredBox[u]:e.layoutBox[u],f=j(i[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const o=ut();vt(o,i,e.layoutBox);const a=ut();r?vt(a,t.applyTransform(s,!0),e.measuredBox):vt(a,i,e.layoutBox);const l=!tn(o);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const d=t.options.layoutAnchor||void 0,m=E();jt(m,e.layoutBox,h.layoutBox,d);const y=E();jt(y,i,f.layoutBox,d),en(m,y)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function ka(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Ba(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ja(t){t.clearSnapshot()}function bi(t){t.clearMeasurements()}function Fa(t){t.isLayoutDirty=!0,t.updateLayout()}function Ai(t){t.isLayoutDirty=!1}function Oa(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function Ia(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vi(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ua(t){t.resolveTargetDelta()}function Na(t){t.calcProjection()}function $a(t){t.resetSkewAndRotation()}function Ka(t){t.removeLeadSnapshot()}function Ci(t,e,i){t.translate=D(e.translate,0,i),t.scale=D(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function Mi(t,e,i,s){t.min=D(e.min,i.min,s),t.max=D(e.max,i.max,s)}function Ga(t,e,i,s){Mi(t.x,e.x,i.x,s),Mi(t.y,e.y,i.y,s)}function Wa(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Ha={duration:.45,ease:[.4,0,.1,1]},Di=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ei=Di("applewebkit/")&&!Di("chrome/")?Math.round:X;function Li(t){t.min=Ei(t.min),t.max=Ei(t.max)}function _a(t){Li(t.x),Li(t.y)}function an(t,e,i){return t==="position"||t==="preserve-aspect"&&!fa(Ti(e),Ti(i),.2)}function za(t){return t!==t.root&&t.scroll?.wasRoot}const Xa=rn({attachResizeListener:(t,e)=>ba(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),zt={current:void 0},Ya=rn({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!zt.current){const t=new Xa({});t.mount(window),t.setOptions({layoutScroll:!0}),zt.current=t}return zt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),qa={some:0,all:1};function Za(t,e,{root:i,margin:s,amount:n="some"}={}){const r=Yi(t),o=new WeakMap,a=c=>{c.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?o.set(u.target,f):l.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:i,rootMargin:s,threshold:typeof n=="number"?n:qa[n]});return r.forEach(c=>l.observe(c)),()=>l.disconnect()}const Ri=(t,e)=>Math.abs(t-e);function Qa(t,e){const i=Ri(t.x,e.x),s=Ri(t.y,e.y);return Math.sqrt(i**2+s**2)}function ln({current:t}){return t?t.ownerDocument.defaultView:null}const[Ja,tl]=bt("Motion"),[el]=bt("LayoutGroup"),il={reducedMotion:"never",transition:void 0,nonce:void 0},[sl]=bt("MotionConfig");function nl(){return sl($n(()=>il))}const ol={motionAttribute:"data-ap"},ge=[];function un(t){for(const e of t)e&&!ge.includes(e)&&ge.push(e)}function cn(t,e,i){if(Array.isArray(t))return t.reduce((s,n)=>{const r=cn(n,e,i);return r?{...s,...r}:s},{});if(typeof t=="object")return t;if(t&&e){const s=e[t];return typeof s=="function"?s(i):s}}function rl(t,e,i){const s=cn(t,e,i);if(!s)return;const{transition:n,transitionEnd:r,...o}=s;return{...o,...r}}function al(t,e){const i=(t.initial===void 0&&t.variants?e?.initial:t.initial)===!1?["initial","animate"]:["initial"],s=t.custom??t.presenceContext?.custom;return i.reduce((n,r)=>({...n,...rl(t[r]||e?.[r],t.variants,s)}),{})}function hn(t,e){const i=e?.length;if(i!==t.length)return!1;for(let s=0;s<i;s++)if(e[s]!==t[s])return!1;return!0}var ll=new Set(["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]);function fn(t){return ll.has(t)}const ki=new WeakMap;var ul=class{constructor(t,e){this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.features=new Map,this._context=null,this.options=t,this.parent=e,e?.children?.add(this),this.latestValues=al(t,this.context),this.type=fn(this.options.as)?"svg":"html"}get context(){return this._context||(this._context=new Proxy({},{get:(t,e)=>{const i=this.options[e];return It(i)||e==="initial"&&i===!1?i:this.parent?.context[e]}})),this._context}updateFeatures(){if(this.visualElement)for(const t of ge){this.features.has(t.key)||this.features.set(t.key,new t(this));const e=this.features.get(t.key);
1this.isMounted()&&(e.isMount?e.update():(e.mount(),e.isMount=!0))}}updateOptions(t){this.options=t,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(t){ki.set(t,this),this.element=t,t.setAttribute(ol.motionAttribute,this.options.presenceContext?.presenceId??""),this.visualElement?.mount(t),this.updateFeatures()}beforeUnmount(){this.getSnapshot(this.options,!1)}unmount(){this.parent?.children?.delete(this),ki.delete(this.element),this.features.forEach(t=>t.unmount?.()),this.visualElement?.unmount()}beforeUpdate(){this.getSnapshot(this.options,void 0)}update(){this.updateFeatures(),this.didUpdate()}tryExitComplete(){this.isExiting||this.options?.layoutId&&this.visualElement.projection?.currentAnimation?.state==="running"||this.options.presenceContext?.onMotionExitComplete?.(this.presenceContainer,this)}setActive(t,e){t==="exit"&&e&&(this.isExiting=!0),this.visualElement?.animationState?.setActive(t,e).then(()=>{t==="exit"&&e&&(this.isExiting=!1,this.options?.layoutId?b.postRender(()=>this.tryExitComplete()):this.tryExitComplete())})}isMounted(){return!!this.element}initVisualElement(t){this.visualElement||(this.visualElement=t(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.visualElement.parent?.addChild(this.visualElement),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(t,e){}didUpdate(){}},Z=class{constructor(t){this.state=t}mount(){}unmount(){}update(){}};const dn=["initial","animate","exit","whileHover","whileDrag","whileFocus","whilePress"];var cl=dn.length;function pn(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?pn(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<cl;i++){const s=dn[i],n=t.props[s];(It(n)||n===!1)&&(e[s]=n)}return e}var mn=["animate","whileInView","whileFocus","whileHover","whilePress","whileDrag","exit"],hl=[...mn].reverse(),fl=mn.length;function it(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bi(){return{animate:it(!0),whileInView:it(),whileHover:it(),whilePress:it(),whileDrag:it(),whileFocus:it(),exit:it()}}function dl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!hn(e,t):!1}function ji(t){return Array.isArray(t)}function pl(t){return e=>Promise.all(e.map(({animation:i,options:s})=>dr(t,i,s)))}function ml(t){let e=pl(t),i=Bi(),s=!0;const n=l=>(c,u)=>{const h=ct(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;c={...c,...m,...d}}return c};function r(l){e=l(t)}function o(l){const{props:c}=t,u=pn(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let p=0;p<fl;p++){const v=hl[p],T=i[v],S=c[v]!==void 0?c[v]:u[v],V=It(S),P=v===l?T.isActive:null;P===!1&&(m=p);let L=S===u[v]&&S!==c[v]&&V;if(L&&s&&t.manuallyAnimateOnMount&&(L=!1),T.protectedKeys={...d},!T.isActive&&P===null||!S&&!T.prevProp||Le(S)||typeof S=="boolean")continue;const F=dl(T.prevProp,S);let w=F||v===l&&T.isActive&&!L&&V||p>m&&V,R=!1;const x=Array.isArray(S)?S:[S];let C=x.reduce(n(v),{});P===!1&&(C={});const{prevResolvedValues:$={}}=T,at={...$,...C},K=A=>{w=!0,f.has(A)&&(R=!0,f.delete(A)),T.needsAnimating[A]=!0;const O=t.getValue(A);O&&(O.liveStyle=!1)};for(const A in at){const O=C[A],et=$[A];if(Object.hasOwnProperty.call(d,A))continue;let lt=!1;ji(O)&&ji(et)?lt=!hn(O,et):lt=O!==et,lt?O!=null?K(A):f.add(A):O!==void 0&&f.has(A)?K(A):T.protectedKeys[A]=!0}T.prevProp=S,T.prevResolvedValues=C,T.isActive&&(d={...d,...C}),s&&t.blockInitialAnimation&&(w=!1);const q=L&&F;w&&(!q||R)&&h.push(...x.map(A=>{const O={type:v};if(typeof A=="string"&&s&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:et}=t,lt=ct(et,A);if(et.enteringChildren&<){const{delayChildren:bn}=lt.transition||{};O.delay=bs(et.enteringChildren,t,bn)}}return{animation:A,options:O}}))}
1if(f.size){const p={};if(typeof c.initial!="boolean"){const v=ct(t,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(p.transition=v.transition)}f.forEach(v=>{const T=t.getBaseTarget(v),S=t.getValue(v);S&&(S.liveStyle=!0),p[v]=T??null}),h.push({animation:p})}let y=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,c){if(i[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>{h.animationState?.setActive(l,c)}),i[l].isActive=c;const u=o(l);for(const h in i)i[h].protectedKeys={};return u}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>i,reset:()=>{i=Bi(),s=!0}}}function yn(t){return t.style.display==="none"||t.offsetParent===null&&window.getComputedStyle(t).position!=="fixed"}var yl=class extends Z{static#t=this.key="animation";constructor(t){super(t);const e=t.visualElement;e.animationState||=ml(e)}updateAnimationControlsSubscription(){const{animate:t}=this.state.options;Le(t)&&(this.unmountControls=t.subscribe(this.state.visualElement))}mount(){yn(this.state.element)?this.state.setActive("exit",!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();const{animate:t}=this.state.visualElement.getProps(),{animate:e}=this.state.visualElement.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}};function gl(t,e){return fn(t)?new aa(e):new ta(e)}function Fi(t){return{point:{x:t.pageX,y:t.pageY}}}var vl=class extends Z{static#t=this.key="press";constructor(t){super(t)}isActive(){const{whilePress:t,onPress:e,onPressCancel:i,onPressStart:s}=this.state.options;return!!(t||e||i||s)}register(){const t=this.state.element;!t||!this.isActive()||(this.removePress?.(),this.removePress=kr(t,(e,i)=>{const s=this.state.options;return this.state.setActive("whilePress",!0),s.onPressStart&&b.postRender(()=>s.onPressStart(i,Fi(i))),(n,{success:r})=>{this.state.setActive("whilePress",!1);const o=r?"onPress":"onPressCancel",a=this.state.options[o];a&&b.postRender(()=>a(n,Fi(n)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){const t=this.state.visualElement.prevProps;!(t?.whilePress||t?.whileTap||t?.onPress||t?.onPressCancel||t?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}};function gn(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function wt(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Tl(t){return e=>gn(e)&&t(e,wt(e))}var xl=class extends Z{static#t=this.key="hover";constructor(t){super(t)}isActive(){const{whileHover:t,onHoverStart:e,onHoverEnd:i}=this.state.options;return!!(t||e||i)}register(){const t=this.state.element;!t||!this.isActive()||(this.removeHover?.(),this.removeHover=Mr(t,(e,i)=>{const s=this.state.options;return this.state.setActive("whileHover",!0),s.onHoverStart&&b.postRender(()=>s.onHoverStart(i,wt(i))),n=>{this.state.setActive("whileHover",!1);const r=this.state.options.onHoverEnd;r&&b.postRender(()=>r(n,wt(n)))}}))}mount(){this.register()}update(){const t=this.state.visualElement.prevProps;!(t?.whileHover||t?.onHoverStart||t?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},Sl=class extends Z{static#t=this.key="inView";constructor(t){super(t)}isActive(){const{whileInView:t,onViewportEnter:e,onViewportLeave:i}=this.state.options;return!!(t||e||i)}startObserver(){const t=this.state.element;if(!t||!this.isActive())return;this.removeObserver?.();const{once:e,...i}=this.state.options.inViewOptions||{};this.removeObserver=Za(t,(s,n)=>{const r=this.state.options;if(this.state.setActive("whileInView",!0),r.onViewportEnter&&b.postRender(()=>r.onViewportEnter(n)),!e)return()=>{this.state.setActive("whileInView",!1);const o=this.state.options.onViewportLeave;o&&b.postRender(()=>o(n))}},i)}mount(){this.startObserver()}update(){const{props:t,prevProps:e}=this.state.visualElement;["amount","margin","root"].some(i=>t.inViewOptions?.[i]!==e?.inViewOptions?.[i])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}};function Ft(t,e,i,s={passive:!0}){return t.addEventListener(e,i,s),()=>t.removeEventListener(e,i)}var Pl=class extends Z{static#t=this.key="focus";constructor(t){super(t),this.isFocused=!1}onFocus(){let t=!1;try{t=this.state.element.matches(":focus-visible")}catch{t=!0}t&&(this.state.setActive("whileFocus",!0),this.isFocused=!0)}onBlur(){this.isFocused&&(this.state.setActive("whileFocus",!1),this.isFocused=!1)}mount(){const t=this.state.element;this.removeFocus=Te(Ft(t,"focus",()=>this.onFocus()),Ft(t,"blur",()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function vn(t){if(t)return t.options.allowProjection!==!1?t.projection:vn(t.parent)}const Tn={borderRadius:{...z,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:z,borderTopRightRadius:z,borderBottomLeftRadius:z,borderBottomRightRadius:z,boxShadow:zs};function yt(t){return typeof t=="object"&&t!==null&&"nodeType"in t}var wl=class extends Z{static#t=this.key="projection";
1constructor(t){super(t),Xs(Tn),In||this.initProjection()}initProjection(){const t=this.state.options;this.state.visualElement.projection=new Ya(this.state.visualElement.latestValues,t["data-framer-portal-id"]?void 0:vn(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){const t=this.state.options,{layoutId:e,layout:i,drag:s=!1,dragConstraints:n=!1}=t;this.projection?.setOptions({layout:i,layoutId:e,alwaysMeasureLayout:!!e||!!s||n&&yt(n),visualElement:this.state.visualElement,animationType:typeof t.layout=="string"?t.layout:"both",layoutRoot:t.layoutRoot,layoutScroll:t.layoutScroll,crossfade:t.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.options.presenceContext?.onMotionExitComplete?.(this.state.presenceContainer,this.state)})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function Tt(t,e,i,s){return Ft(t,e,Tl(i),s)}var Oi=new Set(["auto","scroll"]),xn=class{constructor(t,e,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:n=!1,element:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=u=>{this.handleScroll(u.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=Yt(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,f=Qa(u.offset,{x:0,y:0})>=3;if(!h&&!f)return;const{point:d}=u,{timestamp:m}=B;this.history.push({...d,timestamp:m});const{onStart:y,onMove:p}=this.handlers;h||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,u)},this.handlePointerMove=(u,h)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Xt(h,this.transformPagePoint),b.update(this.updatePoint,!0)},this.handlePointerUp=(u,h)=>{this.end();const{onEnd:f,onSessionEnd:d,resumeAnimation:m}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Yt(u.type==="pointercancel"?this.lastMoveEventInfo:Xt(h,this.transformPagePoint),this.history);this.startEvent&&f&&f(u,y),d&&d(u,y)},!gn(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=s||window;const o=Xt(wt(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=B;this.history=[{...a,timestamp:l}];const{onSessionStart:c}=e;c&&c(t,Yt(o,this.history)),this.removeListeners=Te(Tt(this.contextWindow,"pointermove",this.handlePointerMove),Tt(this.contextWindow,"pointerup",this.handlePointerUp),Tt(this.contextWindow,"pointercancel",this.handlePointerUp)),r&&this.startScrollTracking(r)}isScrollable(t){const e=window.getComputedStyle(t);return e.overflow==="auto"||e.overflow==="scroll"||e.overflowX==="auto"||e.overflowX==="scroll"||e.overflowY==="auto"||e.overflowY==="scroll"}startScrollTracking(t){let e=t.parentElement;for(;e;){const i=getComputedStyle(e);(Oi.has(i.overflowX)||Oi.has(i.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const e=this.scrollPositions.get(t);if(!e)return;const i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},n={x:s.x-e.x,y:s.y-e.y};n.x===0&&n.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(t,s),b.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),tt(this.updatePoint)}};function Xt(t,e){return e?{point:e(t.point)}:t}function Ii(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Yt({point:t},e){return{point:t,delta:Ii(t,Sn(e)),offset:Ii(t,bl(e)),velocity:Al(e,.1)}}function bl(t){return t[0]}function Sn(t){return t[t.length-1]}function Al(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,s=null;const n=Sn(t);for(;i>=0&&(s=t[i],!(n.timestamp-s.timestamp>N(e)));)i--;if(!s)return{x:0,y:0};const r=U(n.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(n.x-s.x)/r,y:(n.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Ui(t){return(e,i)=>{t&&b.postRender(()=>t(e,i))}}var Vl=class extends Z{constructor(...t){super(...t),this.removePointerDownListener=X}static#t=this.key="pan";onPointerDown(t){this.session=new xn(t,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:ln(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Ui((t,e)=>{const{onPanSessionStart:i}=this.state.options;i&&i(t,e)}),onStart:Ui((t,e)=>{const{onPanStart:i}=this.state.options;i&&i(t,e)}),onMove:(t,e)=>{const{onPan:i}=this.state.options;i&&i(t,e)},onEnd:(t,e)=>{const{onPanEnd:i}=this.state.options;delete this.session,i&&b.postRender(()=>i(t,e))}}}mount(){this.removePointerDownListener=Tt(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function Pn(t){let e=null;return()=>{const i=()=>{e=null};return e===null?(e=t,i):!1}}var Ni=Pn("dragHorizontal"),$i=Pn("dragVertical");function Cl(t){let e=!1;if(t==="y")e=$i();else if(t==="x")e=Ni();else{const i=Ni(),s=$i();i&&s?e=()=>{i(),s()}:(i&&i(),s&&s())}return e}function Ml(t,{min:e,max:i},s){return e!==void 0&&t<e?t=s?D(e,t,s.min):Math.max(t,e):i!==void 0&&t>i&&(t=s?D(i,t,s.max):Math.min(t,i)),t}const ve=.35;function Dl(t,{top:e,left:i,bottom:s,right:n}){return{x:Ki(t.x,i,n),y:Ki(t.y,e,s)}}
1function Ki(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function El(t=ve){return t===!1?t=0:t===!0&&(t=ve),{x:Gi(t,"left","right"),y:Gi(t,"top","bottom")}}function Gi(t,e,i){return{min:Wi(t,e),max:Wi(t,i)}}function Wi(t,e){return typeof t=="number"?t:t[e]||0}function Ll(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}function Rl(t,e){return{x:Hi(t.x,e.x),y:Hi(t.y,e.y)}}function Hi(t,e){let i=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,s]=[s,i]),{min:i,max:s}}function kl(t,e){let i=.5;const s=j(t),n=j(e);return n>s?i=Zt(e.min,e.max-s,t.min):s>n&&(i=Zt(t.min,t.max-n,e.min)),rt(0,1,i)}const Bl=new WeakMap;var jl=class{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=E(),this.state=t}get visualElement(){return this.state.visualElement}start(t,{snapToCursor:e=!1}={}){const i=l=>{e?this.stopAnimation():this.pauseAnimation(),e&&this.snapToCursor(wt(l,"page").point)},s=(l,c)=>{this.stopAnimation();const{drag:u,dragPropagation:h,onDragStart:f}=this.getProps();u&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Cl(u),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(d=>{let m=this.getAxisMotionValue(d).get()||0;if(St.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const p=y.layout.layoutBox[d];p&&(m=j(p)*(parseFloat(m)/100))}}this.originPoint[d]=m}),f&&b.postRender(()=>f(l,c)),ue(this.visualElement,"transform"),this.state.setActive("whileDrag",!0))},n=(l,c)=>{const{dragPropagation:u,dragDirectionLock:h,onDirectionLock:f,onDrag:d}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:m}=c;if(h&&this.currentDirection===null){this.currentDirection=Fl(m),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",c.point,m),this.updateAxis("y",c.point,m),this.visualElement.render(),d&&d(l,c)},r=(l,c)=>this.stop(l,c),o=()=>I(l=>this.getAnimationState(l)==="paused"&&this.getAxisMotionValue(l).animation?.play()),{dragSnapToOrigin:a}=this.getProps();this.panSession=new xn(t,{onSessionStart:i,onStart:s,onMove:n,onSessionEnd:r,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,contextWindow:ln(this.visualElement),element:this.state.element})}stop(t,e){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=e;this.startAnimation(s);const{onDragEnd:n}=this.getProps();n&&b.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;const{projection:t}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:e}=this.getProps();!e&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive("whileDrag",!1)}updateAxis(t,e,i){const{drag:s}=this.getProps();if(!i||!Ct(t,s,this.currentDirection))return;const n=this.getAxisMotionValue(t);let r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=Ml(r,this.constraints[t],this.elastic[t])),n.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;t&&yt(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=Dl(i.layoutBox,t):this.constraints=!1,this.elastic=El(e),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&I(n=>{this.constraints!==!1&&this.getAxisMotionValue(n)&&(this.constraints[n]=Ll(i.layoutBox[n],this.constraints[n]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!yt(t))return!1;const i=t,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const n=Xr(i,s.root,this.visualElement.getTransformPagePoint());let r=Rl(s.layout.layoutBox,n);if(e){const o=e(Hr(r));this.hasMutatedConstraints=!!o,o&&(r=Ks(o))}return r}startAnimation(t){const{drag:e,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=I(c=>{if(!Ct(c,e,this.currentDirection))return;let u=a&&a[c]||{};r&&(u={min:0,max:0});const h=s?200:1e6,f=s?40:1e7,d={type:"inertia",velocity:i?t[c]:0,bounceStiffness:h,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...n,...u};return this.startAxisValueAnimation(c,d)});return Promise.all(l).then(o)}startAxisValueAnimation(t,e){const i=this.getAxisMotionValue(t);return ue(this.visualElement,t),i.start(Me(t,i,0,e,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&I(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){I(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){I(e=>{const{drag:i}=this.getProps();if(!Ct(e,i,this.currentDirection))return;const{projection:s}=this.visualElement,n=this.getAxisMotionValue(e);if(s&&s.layout){const{min:r,max:o}=s.layout.layoutBox[e];n.set(t[e]-D(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!yt(e)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};I(r=>{const o=this.getAxisMotionValue(r);if(o&&this.constraints!==!1){const a=o.get();s[r]=kl({min:a,max:a},this.constraints[r])}});const{transformTemplate:n}=this.visualElement.getProps();this.state.element.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),I(r=>{if(!Ct(r,t,null))return;const o=this.getAxisMotionValue(r),{min:a,max:l}=this.constraints[r];o.set(D(a,l,s[r]))})}addListeners(){if(!this.state.element)return;Bl.set(this.visualElement,this);const t=this.state.element,e=Tt(t,"pointerdown",a=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),i=()=>{const{dragConstraints:a}=this.getProps();yt(a)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,n=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),b.read(i);const r=Ft(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",(({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(I(c=>{const u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=a[c].translate,u.set(u.get()+a[c].translate))}),this.visualElement.render())}));return()=>{r(),e(),n(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=ve,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:o}}};function Ct(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function Fl(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}var Ol=class extends Z{static#t=this.key="drag";constructor(t){super(t),this.removeGroupControls=X,this.removeListeners=X,this.controls=new jl(t)}mount(){const{dragControls:t}=this.state.options;t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||X}unmount(){this.removeGroupControls(),this.removeListeners()}},pt=!1,Il=class extends Z{static#t=this.key="layout";constructor(t){super(t),this.hasMountSettled=!1,Xs(Tn),t.getSnapshot=this.getSnapshot.bind(this),t.didUpdate=this.didUpdate.bind(this)}updatePrevLead(t){const e=t.getStack();e?.prevLead&&!e.prevLead.snapshot&&(e.prevLead.willUpdate(),pt=!0)}didUpdate(){pt&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(pt=!1,this.state.visualElement.projection?.root?.didUpdate())}mount(){const t=this.state.options,e=this.state.options.layoutGroup;if(t.layout||t.layoutId){const i=this.state.visualElement.projection;if(t.layoutId){const s=!yn(this.state.element);i.isPresent=s,s?i.promote():i.relegate(),this.updatePrevLead(i)}e?.group?.add(i),Et.hasEverUpdated=!0}this.didUpdate(),b.postRender(()=>{this.hasMountSettled=!0})}unmount(){const t=this.state.options.layoutGroup,e=this.state.visualElement.projection;e&&(t?.group&&(this.state.options.layout||this.state.options.layoutId)&&t.group.remove(e),this.state.options.layoutId&&(pt=!0),this.didUpdate())}getSnapshot(t,e){const i=this.state.visualElement.projection,{drag:s,layoutDependency:n,layout:r,layoutId:o}=t;if(!i||!r&&!o&&!s||!this.hasMountSettled)return;pt=!0;const a=this.state.options;(s||a.layoutDependency!==n||n===void 0||Oe(e)&&i.isPresent!==e)&&i.willUpdate(),Oe(e)&&e!==i.isPresent&&(i.isPresent=e,e?(i.promote(),this.updatePrevLead(i)):i.relegate())}};const Ul={renderer:gl,features:[yl,vl,xl,Sl,Pl,wl,Vl,Ol,Il]},[Nl]=bt("LazyMotionContext"),[$l]=bt("AnimatePresenceContext");function Kl(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function wn(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function Gl(){return{...wn(),attrs:{}}}function Wl(t){const e=wn();Re(e,t);const i={...e.style};for(const s in e.vars)i[s]=e.vars[s];return Object.keys(i).length===0?null:i}function Hl(t,e,i){const s=Gl();qs(s,t,Zs(e),void 0,i);const n={};for(const r in s.attrs){const o=ke.has(r)?r:Kl(r);n[o]=s.attrs[r]}
1return{attrs:n,style:{...s.style,...s.vars}}}function _l(t,e){const i=Ja(null),s=el({}),n=nl(),r=$l({}),o=Nl({features:Kn({}),strict:!1}),a=Gn();function l(){return eo(t,{layoutGroup:s,presenceContext:r,config:n.value})}function c(){return{...a,...l()}}const u=new ul(c(),i);tl(u),e&&u.initVisualElement(e),Wn(o.features,d=>{d.features?.length&&un(d.features),d.renderer&&u.initVisualElement(d.renderer),u.updateFeatures()},{immediate:!0,flush:"pre"});function h(){const d=u.type==="svg",m={...a};Object.keys(a).forEach(T=>{k(a[T])&&(m[T]=a[T].get())});const y=u.visualElement?.latestValues||u.latestValues;let p={...t.style,...d?{}:y};for(const T in p)k(p[T])&&(p[T]=p[T].get());if(d){const{attrs:T,style:S}=Hl({...y,...p},u.options.as,t.style);Object.assign(m,T),p=S}t.drag&&t.dragListener!==!1&&Object.assign(p,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const v=Wl(p);return v&&(m.style=v),m}const f=Hn().proxy;return _n(()=>{const d=Fe(f.$el);u.mount(d)}),zn(()=>u.beforeUnmount()),Xn(()=>{Fe(f.$el)?.isConnected||u.unmount()}),Yn(()=>{u.beforeUpdate(),u.updateOptions(c())}),qn(()=>{u.update()}),{getProps:l,getAttrs:h,layoutGroup:s,state:u}}const zl={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};var Xl=new Map,Yl=new Map;function ql(t){if(!Array.isArray(t))return[t];const e=[];for(const i of t)Array.isArray(i)?e.push(...i):e.push(i);return e}var Zl=["area","img","input"];function Ql(t,e,i){if(typeof t=="string"&&Zl.includes(t))return Ji(t,e);if(t==="template"){if(!i.default)return null;const s=ql(i.default()),n=s.findIndex(l=>l.type!==Qn);if(n===-1)return s;const r=s[n];delete r.props?.ref;const o=r.props?Jn(e,r.props):e;e.class&&r.props?.class&&delete r.props.class;const a=to(r,o);for(const l in o)l.startsWith("on")&&(a.props||={},a.props[l]=o[l]);return s.length===1?a:(s[n]=a,s)}return null}function _i(t,e={}){const i=typeof t=="string",s=i?t:t.name||"",n=e.renderer?Xl:Yl;if(i&&n?.has(t))return n.get(t);const r=Zn({inheritAttrs:!1,props:{...zl,as:{type:[String,Object],default:t||"div"}},name:s?`motion.${s}`:"Motion",setup(o,{slots:a}){const{getProps:l,getAttrs:c,state:u}=_l(o,e.renderer);function h(){const f=u.element;if((typeof o.as!="object"||o.asChild)&&f){const{style:d}=c();if(d)for(const[m,y]of Object.entries(d))f.style[m]=y}}return()=>{const f=l(),d=c(),m=o.asChild?"template":o.as,y={...o.forwardMotionProps?f:{},...d,onVnodeUpdated:h}
1,p=Ql(m,y,a);return p!==null?p:Ji(m,{...y},a)}}});return i&&n?.set(t,r),r}function Jl(t){const e=t?.renderer;return un(t?.features||[]),new Proxy({},{get(i,s){return s==="create"?(n,r)=>_i(n,{...r,renderer:e}):_i(s,{renderer:e})}})}const tu=Jl(Ul),ou=tu.create("div");export{ou as M,tu as m};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.