PageSourceSearch

https://www.flexcar.com/cdn/cfa/c9cd0935cb1346044d74dcab52f77f3fb8cb7ff9/assets/proxy-BcbcgI1P.js

js flexcar.com collected 2026-09-24 09:45:39 UTC 100,300 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a6326dae-c3aa-5354-bc9c-e4751279b02e")}catch(e){}}();
3import{n as _,b as qn,e as fe,g as v,h as gt,j as $,k as xs,l as Ps,f as b,o as J,q as Ss,t as Ne,u as Zt,x as At,y as U,z as As,A as ot,p as Dt,v as ws,B as rt,C as Vs,d as bs,i as Ds,a as B,c as H,D as me,E as Cs,F as Zn,s as Ms,m as yt,G as M,H as Rs,I as Jn,J as Qn,S as ti,K as _t,r as Es,L as ei}from"./resolve-elements-MpNw6NUP.js";import{r as A,j as Jt}from"./chunk-62JRHF6Z-Cg50Stu2.js";import{P as pe,L as ni,M as ii}from"./MotionConfigContext-By1XHkUp.js";import{a as Ls,i as si,u as Bs}from"./use-constant-1tyEX1cw.js";function ks(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...i)=>t(...i);return new Proxy(n,{get:(i,s)=>s==="create"?t:(e.has(s)||e.set(s,t(s)),e.get(s))})}function kt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Qt=t=>Array.isArray(t);function oi(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function vt(t){return typeof t=="string"||Array.isArray(t)}function _e(t){const e=[{},{}];return t?.values.forEach((n,i)=>{e[0][i]=n.get(),e[1][i]=n.getVelocity()}),e}function ge(t,e,n,i){if(typeof e=="function"){const[s,r]=_e(i);e=e(n!==void 0?n:t.custom,s,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[s,r]=_e(i);e=e(n!==void 0?n:t.custom,s,r)}return e}function jt(t,e,n){const i=t.getProps();return ge(i,e,n!==void 0?n:i.custom,t)}const ye=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ve=["initial",...ye],xt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Q=new Set(xt),W=t=>t*1e3,G=t=>t/1e3,js={type:"spring",stiffness:500,damping:25,restSpeed:10},Fs=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Is={type:"keyframes",duration:.8},Os={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Us=(t,{keyframes:e})=>e.length>2?Is:Q.has(t)?t.startsWith("scale")?Fs(e[1]):js:Os;function Te(t,e){return t?t[e]||t.default||t:void 0}const Ns=t=>t!==null;function Ft(t,{repeat:e,repeatType:n="loop"},i){const s=t.filter(Ns),r=e&&n!=="loop"&&e%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}const ri=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,_s=1e-7,Ks=12;function Ws(t,e,n,i,s){let r,o,a=0;do o=e+(n-e)/2,r=ri(o,i,s)-t,r>0?n=o:e=o;while(Math.abs(r)>_s&&++a<Ks);return o}function Pt(t,e,n,i){if(t===e&&n===i)return _;const s=r=>Ws(r,0,1,t,n);return r=>r===0||r===1?r:ri(s(r),e,i)}const ai=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,li=t=>e=>1-t(1-e),ui=Pt(.33,1.53,.69,.99),xe=li(ui),ci=ai(xe),hi=t=>(t*=2)<1?.5*xe(t):.5*(2-Math.pow(2,-10*(t-1))),Pe=t=>1-Math.sin(Math.acos(t)),di=li(Pe),fi=ai(Pe),mi=t=>/^0[^.\s]+$/u.test(t);function Gs(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||mi(t):!0}const pi=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),$s=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Hs(t){const e=$s.exec(t);if(!e)return[,];const[,n,i,s]=e;return[`--${n??i}`,s]}function gi(t,e,n=1){const[i,s]=Hs(t);if(!i)return;const r=window.getComputedStyle(e).getPropertyValue(i);if(r){const o=r.trim();return pi(o)?parseFloat(o):o}return qn(s)?gi(s,e,n+1):s}const zs=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Ke=t=>t===fe||t===v,We=(t,e)=>parseFloat(t.split(", ")[e]),Ge=(t,e)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;const s=i.match(/^matrix3d\((.+)\)$/u);if(s)return We(s[1],e);{const r=i.match(/^matrix\((.+)\)$/u);return r?We(r[1],t):0}},Xs=new Set(["x","y","z"]),Ys=xt.filter(t=>!Xs.has(t));function qs(t){const e=[];return Ys.forEach(n=>{const i=t.getValue(n);i!==void 0&&(e.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),e}const at={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:Ge(4,13),y:Ge(5,14)};at.translateX=at.x;at.translateY=at.y;const yi=t=>e=>e.test(t),Zs={test:t=>t==="auto",parse:t=>t},vi=[fe,v,gt,$,xs,Ps,Zs],$e=t=>vi.find(yi(t)),Z=new Set;let te=!1,ee=!1;function Ti(){if(ee){const t=Array.from(Z).filter(i=>i.needsMeasurement),e=new Set(t.map(i=>i.element)),n=new Map;e.forEach(i=>
3{const s=qs(i);s.length&&(n.set(i,s),i.render())}),t.forEach(i=>i.measureInitialState()),e.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(i=>i.measureEndState()),t.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ee=!1,te=!1,Z.forEach(t=>t.complete()),Z.clear()}function xi(){Z.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ee=!0)})}function Js(){xi(),Ti()}class Se{constructor(e,n,i,s,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=i,this.motionValue=s,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Z.add(this),te||(te=!0,b.read(xi),b.resolveKeyframes(Ti))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:i,motionValue:s}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=s?.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(i&&n){const l=i.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),s&&o===void 0&&s.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Z.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Z.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Qs=new Set(["brightness","contrast","saturate","opacity"]);function to(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Ss)||[];if(!i)return t;const s=n.replace(i,"");let r=Qs.has(e)?1:0;return i!==n&&(r*=100),e+"("+r+s+")"}const eo=/\b([a-z-]*)\(.*?\)/gu,ne={...J,getAnimatableNone:t=>{const e=t.match(eo);return e?e.map(to).join(" "):t}},no={borderWidth:v,borderTopWidth:v,borderRightWidth:v,borderBottomWidth:v,borderLeftWidth:v,borderRadius:v,radiu
vendor: 93,554 bytes, lines 3-6
3s:v,borderTopLeftRadius:v,borderTopRightRadius:v,borderBottomRightRadius:v,borderBottomLeftRadius:v,width:v,maxWidth:v,height:v,maxHeight:v,top:v,right:v,bottom:v,left:v,padding:v,paddingTop:v,paddingRight:v,paddingBottom:v,paddingLeft:v,margin:v,marginTop:v,marginRight:v,marginBottom:v,marginLeft:v,backgroundPositionX:v,backgroundPositionY:v},io={rotate:$,rotateX:$,rotateY:$,rotateZ:$,scale:At,scaleX:At,scaleY:At,scaleZ:At,skew:$,skewX:$,skewY:$,distance:v,translateX:v,translateY:v,translateZ:v,x:v,y:v,z:v,perspective:v,transformPerspective:v,opacity:Zt,originX:Ne,originY:Ne,originZ:v},He={...fe,transform:Math.round},Ae={...no,...io,zIndex:He,size:v,fillOpacity:Zt,strokeOpacity:Zt,numOctaves:He},so={...Ae,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:ne,WebkitFilter:ne},we=t=>so[t];function Pi(t,e){let n=we(t);return n!==ne&&(n=J),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const oo=new Set(["auto","none","0"]);function ro(t,e,n){let i=0,s;for(;i<t.length&&!s;){const r=t[i];typeof r=="string"&&!oo.has(r)&&As(r).values.length&&(s=t[i]),i++}if(s&&n)for(const r of e)t[r]=Pi(n,s)}class Si extends Se{constructor(e,n,i,s,r){super(e,n,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),qn(u))){const c=gi(u,n.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!zs.has(i)||e.length!==2)return;const[s,r]=e,o=$e(s),a=$e(r);if(o!==a)if(Ke(o)&&Ke(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,i=[];for(let s=0;s<e.length;s++)Gs(e[s])&&i.push(s);i.length&&ro(e,i,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:i}=this;if(!e||!e.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=at[i](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&e.getValue(i,s).jump(s,!1)}measureEndState(){var e;const{element:n,name:i,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const r=n.getValue(i);r&&r.jump(this.measuredOrigin,!1);const o=s.length-1,a=s[o];s[o]=at[i](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Ve(t){return typeof t=="function"}const ze=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function ao(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function lo(t,e,n,i){const s=t[0];if(s===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=ze(s,e),a=ze(r,e);return!o||!a?!1:ao(t)||(n==="spring"||Ve(n))&&i}const uo=40;class Ai{constructor({autoplay:e=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ot.now(),this.options={autoplay:e,delay:n,type:i,repeat:s,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>uo?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Js(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=ot.now(),this.hasAttemptedResolve=!0;const{name:i,type:s,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!lo(e,i,s,r))if(o)this.options.duration=0;else{l?.(Ft(e,this.options,n)),a?.(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const wi=(t,e,n=10)=>{let i="";const s=Math.max(Math.round(e/n),2);for(let r=0;r<s;r++)i+=t(Dt(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`},co=5;function Vi(t,e,n){const i=Math.max(e-co,0);return ws(n-t(i),e-i)}const D={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},Kt=.001;function ho({duration:t=D.duration,bounce:e=D.bounce,velocity:n=D.velocity,mass:i=D.mass}){let s,r,o=1-e;o=rt(D.minDamping,D.maxDamping,o),t=rt(D.minDuration,D.maxDuration,G(t)),o<1?(s=u=>{const c=u*o,h=c*t,d=c-n,f=ie(u,o),m=Math.exp(-h);return Kt-d/f*m},r=u=>{const h=u*o*t,d=h*n+n,f=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-h),p=ie(Math.pow(u,2),o);return(-s(u)+Kt>0?-1:1)*((d-f)*m)/p}):(s=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-Kt+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=mo(s,r,a);if(t=W(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:t}}}const fo=12;function mo(t,e,n){let i=n;for(let s=1;s<fo;s++)i=i-t(i)/e(i);return i}function ie(t,e){return t*Math.sqrt(1-e*e)}const se=2e4;function bi(t){let e=0;const n=50;let i=t.next(e);for(;!i.done&&e<se;)e+=n,i=t.next(e);return e>=se?1/0:e}const po=["duration","bounce"],go=["stiffness","damping","mass"];function Xe(t,e){return e.some(n=>t[n]!==void 0)}function yo(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Xe(t,go)&&Xe(t,po))if(t.visualDuration){const n=t.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*rt(.05,1,1-t.bounce)*Math.sqrt(s);e={...e,mass:D.mass,stiffness:s,damping:r}}else{const n=ho(t);e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function Di(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:f}=yo({...n,velocity:-G(n.velocity||0)}),m=d||0,p=u/(2*Math.sqrt(l*c)),y=o-r,g=G(Math.sqrt(l/c)),x=Math.abs(y)<5;i||(i=x?D.restSpeed.granular:D.restSpeed.default),s||(s=x?D.restDelta.granular:D.restDelta.default);let T;if(p<1){const P=ie(g,p);T=V=>{const R=Math.exp(-p*g*V);return o-R*((m+p*g*y)/P*Math.sin(P*V)+y*Math.cos(P*V))}}else if(p===1)T=P=>o-Math.exp(-g*P)*(y+(m+g*y)*P);else{const P=g*Math.sqrt(p*p-1);T=V=>{const R=Math.exp(-p*g*V),S=Math.min(P*V,300);return o-R*((m+p*g*y)*Math.sinh(S)+P*y*Math.cosh(S))/P}}const w={calculatedDuration:f&&h||null,next:P=>{const V=T(P);if(f)a.done=P>=h;else{let R=0;p<1&&(R=P===0?W(m):Vi(T,P,V));const S=Math.abs(R)<=i,k=Math.abs(o-V)<=s;a.done=S&&k}return a.value=a.done?o:V,a},toString:()=>{const P=Math.min(bi(w),se),V=wi(R=>w.next(P*R).value,P,30);return P+"ms "+V}};return w}function Ye({keyframes:t,velocity:e=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],d={done:!1,value:h},f=S=>a!==void 0&&S<a||l!==void 0&&S>l,m=S=>a===void 0?l:l===void 0||Math.abs(a-S)<Math.abs(l-S)?a:l;let p=n*e;const y=h+p,g=o===void 0?y:o(y);g!==y&&(p=g-h);const x=S=>-p*Math.exp(-S/i),T=S=>g+x(S),w=S=>{const k=x(S),F=T(S);d.done=Math.abs(k)<=u,d.value=d.done?g:F};let P,V;const R=S=>{f(d.value)&&(P=S,V=Di({keyframes:[d.value,m(d.value)],velocity:Vi(T,S,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return R(0),{calculatedDuration:null,next:S=>{let k=!1;return!V&&P===void 0&&(k=!0,w(S),R(S)),P!==void 0&&S>=P?V.next(S-P):(!k&&w(S),d)}}}const vo=Pt(.42,0,1,1),To=Pt(0,0,.58,1),Ci=Pt(.42,0,.58,1),xo=t=>Array.isArray(t)&&typeof t[0]!="number",be=t=>Array.isArray(t)&&typeof t[0]=="number",Po={linear:_,easeIn:vo,easeInOut:Ci,easeOut:To,circIn:Pe,circInOut:fi,circOut:di,backIn:xe,backInOut:ci,backOut:ui,anticipate:hi},qe=t=>{if(be(t)){Vs(t.length===4);const[e,n,i,s]=t;return Pt(e,n,i,s)}else if(typeof t=="string")return Po[t];return t};function So(t,e){return t.map(n=>n*e)}function Ao(t,e){return t.map(()=>e||Ci).splice(0,t.length-1)}function Ct({duration:t=300,keyframes:e,times:n,ease:i="easeInOut"}){const s=xo(i)?i.map(qe):qe(i),r={done:!1,value:e[0]},o=So(n&&n.length===e.length?n:bs(e),t),a=Ds(o,e,{ease:Array.isArray(s)?s:Ao(e,s)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const wo=t=>{const e=({timestamp:n})=>t(n);return{start:()=>b.update(e,!0),stop:()=>H(e),now:()=>B.isProcessing?B.timestamp:ot.now()}},Vo={decay:Ye,inertia:Ye,tween:Ct,keyframes:Ct,spring:Di},bo=t=>t/100;class De extends Ai{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:i,element:s,keyframes:r}=this.options,o=s?.KeyframeResolver||Se,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,i,s),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=this.options,a=Ve(n)?n:Vo[n]||Ct;let l,u;a!==Ct&&typeof e[0]!="number"&&(l=me(bo,Cs(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=bi(c));const{calculatedDuration:h}=c,d=h+s,f=d*(i+1)-s;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:d,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:i}=this;if(!i){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:s,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:h}=i;if(this.startTime===null)return r.next(0);const{delay:d,repeat:f,repeatType:m,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),x=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,w=r;if(f){const S=Math.min(this.currentTime,c)/h;let k=Math.floor(S),F=S%1;!F&&S>=1&&(F=1),F===1&&k--,k=Math.min(k,f+1),k%2&&(m==="reverse"?(F=1-F,p&&(F-=p/h)):m==="mirror"&&(w=o)),T=rt(0,1,F)*h}const P=x?{done:!1,value:l[0]}:w.next(T);a&&(P.value=a(P.value));let{done:V}=P;!x&&u!==null&&(V=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const R=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return R&&s!==void 0&&(P.value=Ft(l,this.options,s)),y&&y(P.value),R&&this.finish(),P}get duration(){const{resolved:e}=this;return e?G(e.calculatedDuration):0}get time(){return G(this.currentTime)}set time(e){e=W(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=G(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=wo,onPlay:n,startTime:i}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const s=this.driver.now();this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=s):this.startTime=i??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Do=new Set(["opacity","clipPath","filter","transform"]),Co={linearEasing:void 0};function Mo(t,e){const n=Zn(t);return()=>{var i;return(i=Co[e])!==null&&i!==void 0?i:n()}}const Mt=Mo(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Mi(t){return!!(typeof t=="function"&&Mt()||!t||typeof t=="string"&&(t in oe||Mt())||be(t)||Array.isArray(t)&&t.every(Mi))}const ct=([t,e,n,i])=>`cubic-bezier(${t}, ${e}, ${n}, ${i})`,oe={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ct([0,.65,.55,1]),circOut:ct([.55,0,1,.45]),backIn:ct([.31,.01,.66,-.59]),backOut:ct([.33,1.53,.69,.99])};function Ri(t,e){if(t)return typeof t=="function"&&Mt()?wi(t,e):be(t)?ct(t):Array.isArray(t)?t.map(n=>Ri(n,e)||oe.easeOut):oe[t]}function Ro(t,e,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Ri(a,s);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}function Ze(t,e){t.timeline=e,t.onfinish=null}const Eo=Zn(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rt=10,Lo=2e4;function Bo(t){return Ve(t.type)||t.type==="spring"||!Mi(t.ease)}function ko(t,e){const n=new De({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let i={done:!1,value:t[0]};const s=[];let r=0;for(;!i.done&&r<Lo;)i=n.sample(r),s.push(i.value),r+=Rt;return{times:void 0,keyframes:s,duration:r-Rt,ease:"linear"}}const Ei={anticipate:hi,backInOut:ci,circInOut:fi};function jo(t){return t in Ei}class Je extends Ai{constructor(e){super(e);const{name:n,motionValue:i,element:s,keyframes:r}=this.options;this.resolver=new Si(r,(o,a)=>this.onKeyframesResolved(o,a),n,i,s),this.resolver.scheduleResolve()}initPlayback(e,n){var i;let{duration:s=300,times:r,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((i=l.owner)===null||i===void 0)&&i.current))return!1;if(typeof o=="string"&&Mt()&&jo(o)&&(o=Ei[o]),Bo(this.options)){const{onComplete:d,onUpdate:f,motionValue:m,element:p,...y}=this.options,g=ko(e,y);e=g.keyframes,e.length===1&&(e[1]=e[0]),s=g.duration,r=g.times,o=g.ease,a="keyframes"}const h=Ro(l.owner.current,u,e,{...this.options,duration:s,times:r,ease:o});return h.startTime=c??this.calcStartTime(),this.pendingTimeline?(Ze(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:d}=this.options;l.set(Ft(e,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:s,times:r,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return G(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return G(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.currentTime=W(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:i}=n;i.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _;const{animation:i}=n;Ze(i,e)}return _}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:i,duration:s,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:h,element:d,...f}=this.options,m=new De({...f,keyframes:i,duration:s,type:r,ease:o,times:a,isGenerator:!0}),p=W(this.time);u.setWithVelocity(m.sample(p-Rt).value,m.sample(p).value,Rt)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:i,repeatDelay:s,repeatType:r,damping:o,type:a}=e;return Eo()&&i&&Do.has(i)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!s&&r!=="mirror"&&o!==0&&a!=="inertia"}}class Fo{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let i=0;i<this.animations.length;i++)this.animations[i][e]=n}attachTimeline(e,n){const i=this.animations.map(s=>Ms()&&s.attachTimeline?s.attachTimeline(e):n(s));return()=>{i.forEach((s,r)=>{s&&s(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Io({when:t,delay:e,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Ce=(t,e,n,i={},s,r)=>o=>{const a=Te(i,t)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-W(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:d=>{e.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:s};Io(a)||(c={...c,...Us(t,c)}),c.duration&&(c.duration=W(c.duration)),c.repeatDelay&&(c.repeatDelay=W(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&e.get()!==void 0){const d=Ft(c.keyframes,a);if(d!==void 0)return b.update(()=>{c.onUpdate(d),c.onComplete()}),new Fo([])}return!r&&Je.supports(c)?new Je(c):new De(c)},Oo=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Uo=t=>Qt(t)?t[t.length-1]||0:t;function No(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,yt(n))}function _o(t,e){const n=jt(t,e);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r){const a=Uo(r[o]);No(t,o,a)}}const Me=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ko="framerAppearId",Li="data-"+Me(Ko);function Bi(t){return t.props[Li]}const E=t=>!!(t&&t.getVelocity);function Wo(t){return!!(E(t)&&t.add)}function re(t,e){const n=t.getValue("willChange");if(Wo(n))return n.add(e)}function Go({protectedKeys:t,needsAnimating:e},n){const i=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,i}function ki(t,e,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;i&&(o=i);const u=[],c=s&&t.animationState&&t.animationState.getState()[s];for(const h in l){const d=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),f=l[h];if(f===void 0||c&&Go(c,h))continue;const m={delay:n,...Te(o||{},h)};let p=!1;if(window.MotionHandoffAnimation){const g=Bi(t);if(g){const x=window.MotionHandoffAnimation(g,h,b);x!==null&&(m.startTime=x,p=!0)}}re(t,h),d.start(Ce(h,d,f,t.shouldReduceMotion&&Q.has(h)?{type:!1}:m,t,p));const y=d.animation;y&&u.push(y)}return a&&Promise.all(u).then(()=>{b.update(()=>{a&&_o(t,a)})}),u}function ae(t,e,n={}){var i;const s=jt(t,e,n.type==="exit"?(i=t.presenceContext)===null||i===void 0?void 0:i.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(r=n.transitionOverride);const o=s?()=>Promise.all(ki(t,s,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:d}=r;return $o(t,e,c+u,h,d,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function $o(t,e,n=0,i=0,s=1,r){const o=[],a=(t.variantChildren.size-1)*i,l=s===1?(u=0)=>u*i:(u=0)=>a-u*i;return Array.from(t.variantChildren).sort(Ho).forEach((u,c)=>{u.notify("AnimationStart",e),o.push(ae(u,e,{...r,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function Ho(t,e){return t.sortNodePosition(e)}function zo(t,e,n={}){t.notify("AnimationStart",e);let i;if(Array.isArray(e)){const s=e.map(r=>ae(t,r,n));i=Promise.all(s)}else if(typeof e=="string")i=ae(t,e,n);else{const s=typeof e=="function"?jt(t,e,n.custom):e;i=Promise.all(ki(t,s,n))}return i.then(()=>{t.notify("AnimationComplete",e)})}const Xo=ve.length;function ji(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?ji(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Xo;n++){const i=ve[n],s=t.props[i];(vt(s)||s===!1)&&(e[i]=s)}return e}const Yo=[...ye].reverse(),qo=ye.length;function Zo(t){return e=>Promise.all(e.map(({animation:n,options:i})=>zo(t,n,i)))}function Jo(t){let e=Zo(t),n=Qe(),i=!0;const s=l=>(u,c)=>{var h;const d=jt(t,c,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(d){const{transition:f,transitionEnd:m,...p}=d;u={...u,...p,...m}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,c=ji(t.parent)||{},h=[],d=new Set;let f={},m=1/0;for(let y=0;y<qo;y++){const g=Yo[y],x=n[g],T=u[g]!==void 0?u[g]:c[g],w=vt(T),P=g===l?x.isActive:null;P===!1&&(m=y);let V=T===c[g]&&T!==u[g]&&w;if(V&&i&&t.manuallyAnimateOnMount&&(V=!1),x.protectedKeys={...f},!x.isActive&&P===null||!T&&!x.prevProp||kt(T)||typeof T=="boolean")continue;const R=Qo(x.prevProp,T);let S=R||g===l&&x.isActive&&!V&&w||y>m&&w,k=!1;const F=Array.isArray(T)?T:[T];let tt=F.reduce(s(g),{});P===!1&&(tt={});const{prevResolvedValues:Oe={}}=x,Ts={...Oe,...tt},Ue=L=>{S=!0,d.has(L)&&(k=!0,d.delete(L)),x.needsAnimating[L]=!0;const K=t.getValue(L);K&&(K.liveStyle=!1)};for(const L in Ts){const K=tt[L],Ut=Oe[L];if(f.hasOwnProperty(L))continue;let Nt=!1;Qt(K)&&Qt(Ut)?Nt=!oi(K,Ut):Nt=K!==Ut,Nt?K!=null?Ue(L):d.add(L):K!==void 0&&d.has(L)?Ue(L):x.protectedKeys[L]=!0}x.prevProp=T,x.prevResolvedValues=tt,x.isActive&&(f={...f,...tt}),i&&t.blockInitialAnimation&&(S=!1),S&&(!(V&&R)||k)&&h.push(...F.map(L=>({animation:L,options:{type:g}})))}if(d.size){const y={};d.forEach(g=>{const x=t.getBaseTarget(g),T=t.getValue(g);T&&(T.liveStyle=!0),y[g]=x??null}),h.push({animation:y})}let p=!!h.length;return i&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(p=!1),i=!1,p?e(h):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=t.variantChildren)===null||c===void 0||c.forEach(d=>{var f;return(f=d.animationState)===null||f===void 0?void 0:f.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Qe(),i=!0}}}function Qo(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!oi(e,t):!1}function X(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qe(){return{animate:X(!0),whileInView:X(),whileHover:X(),whileTap:X(),whileDrag:X(),whileFocus:X(),exit:X()}}class z{constructor(e){this.isMounted=!1,this.node=e}update(){}}class tr extends z{constructor(e){super(e),e.animationState||(e.animationState=Jo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();kt(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let er=0;class nr extends z{constructor(){super(...arguments),this.id=er++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e);n&&!e&&s.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ir={animation:{Feature:tr},exit:{Feature:nr}},N={x:!1,y:!1};function Fi(){return N.x||N.y}function sr(t){return t==="x"||t==="y"?N[t]?null:(N[t]=!0,()=>{N[t]=!1}):N.x||N.y?null:(N.x=N.y=!0,()=>{N.x=N.y=!1})}const Re=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function St(t){return{point:{x:t.pageX,y:t.pageY}}}const or=t=>e=>Re(e)&&t(e,St(e));function Tt(t,e,n,i={passive:!0}){return t.addEventListener(e,n,i),()=>t.removeEventListener(e,n)}function ft(t,e,n,i){return Tt(t,e,or(n),i)}const tn=(t,e)=>Math.abs(t-e);function rr(t,e){const n=tn(t.x,e.x),i=tn(t.y,e.y);return Math.sqrt(n**2+i**2)}class Ii{constructor(e,n,{transformPagePoint:i,contextWindow:s,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=Gt(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,f=rr(h.offset,{x:0,y:0})>=3;if(!d&&!f)return;const{point:m}=h,{timestamp:p}=B;this.history.push({...m,timestamp:p});const{onStart:y,onMove:g}=this.handlers;d||(y&&y(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),g&&g(this.lastMoveEvent,h)},this.handlePointerMove=(h,d)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Wt(d,this.transformPagePoint),b.update(this.updatePoint,!0)},this.handlePointerUp=(h,d)=>{this.end();const{onEnd:f,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=Gt(h.type==="pointercancel"?this.lastMoveEventInfo:Wt(d,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,y),m&&m(h,y)},!Re(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.contextWindow=s||window;const o=St(e),a=Wt(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=B;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(e,Gt(a,this.history)),this.removeListeners=me(ft(this.contextWindow,"pointermove",this.handlePointerMove),ft(this.contextWindow,"pointerup",this.handlePointerUp),ft(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),H(this.updatePoint)}}function Wt(t,e){return e?{point:e(t.point)}:t}function en(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Gt({point:t},e){return{point:t,delta:en(t,Oi(e)),offset:en(t,ar(e)),velocity:lr(e,.1)}}function ar(t){return t[0]}function Oi(t){return t[t.length-1]}function lr(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,i=null;const s=Oi(t);for(;n>=0&&(i=t[n],!(s.timestamp-i.timestamp>W(e)));)n--;if(!i)return{x:0,y:0};const r=G(s.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function et(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}const Ui=1e-4,ur=1-Ui,cr=1+Ui,Ni=.01,hr=0-Ni,dr=0+Ni;function j(t){return t.max-t.min}function fr(t,e,n){return Math.abs(t-e)<=n}function nn(t,e,n,i=.5){t.origin=i,t.originPoint=M(e.min,e.max,t.origin),t.scale=j(n)/j(e),t.translate=M(n.min,n.max,t.origin)-t.originPoint,(t.scale>=ur&&t.scale<=cr||isNaN(t.scale))&&(t.scale=1),(t.translate>=hr&&t.translate<=dr||isNaN(t.translate))&&(t.translate=0)}function mt(t,e,n,i){nn(t.x,e.x,n.x,i?i.originX:void 0),nn(t.y,e.y,n.y,i?i.originY:void 0)}function sn(t,e,n){t.min=n.min+e.min,t.max=t.min+j(e)}function mr(t,e,n){sn(t.x,e.x,n.x),sn(t.y,e.y,n.y)}function on(t,e,n){t.min=e.min-n.min,t.max=t.min+j(e)}function pt(t,e,n){on(t.x,e.x,n.x),on(t.y,e.y,n.y)}function pr(t,{min:e,max:n},i){return e!==void 0&&t<e?t=i?M(e,t,i.min):Math.max(t,e):n!==void 0&&t>n&&(t=i?M(n,t,i.max):Math.min(t,n)),t}function rn(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function gr(t,{top:e,left:n,bottom:i,right:s}){return{x:rn(t.x,n,s),y:rn(t.y,e,i)}}function an(t,e){let n=e.min-t.min,i=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,i]=[i,n]),{min:n,max:i}}function yr(t,e){return{x:an(t.x,e.x),y:an(t.y,e.y)}}function vr(t,e){let n=.5;const i=j(t),s=j(e);return s>i?n=Dt(e.min,e.max-i,t.min):i>s&&(n=Dt(t.min,t.max-s,e.min)),rt(0,1,n)}function Tr(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const le=.35;function xr(t=le){return t===!1?t=0:t===!0&&(t=le),{x:ln(t,"left","right"),y:ln(t,"top","bottom")}}function ln(t,e,n){return{min:un(t,e),max:un(t,n)}}function un(t,e){return typeof t=="number"?t:t[e]||0}const cn=()=>({translate:0,scale:1,origin:0,originPoint:0}),nt=()=>({x:cn(),y:cn()}),hn=()=>({min:0,max:0}),C=()=>({x:hn(),y:hn()});function O(t){return[t("x"),t("y")]}function _i({top:t,left:e,right:n,bottom:i}){return{x:{min:e,max:n},y:{min:t,max:i}}}function Pr({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Sr(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),i=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function $t(t){return t===void 0||t===1}function ue({scale:t,scaleX:e,scaleY:n}){return!$t(t)||!$t(e)||!$t(n)}function Y(t){return ue(t)||Ki(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ki(t){return dn(t.x)||dn(t.y)}function dn(t){return t&&t!=="0%"}function Et(t,e,n){const i=t-n,s=e*i;return n+s}function fn(t,e,n,i,s){return s!==void 0&&(t=Et(t,s,i)),Et(t,n,i)+e}function ce(t,e=0,n=1,i,s){t.min=fn(t.min,e,n,i,s),t.max=fn(t.max,e,n,i,s)}function Wi(t,{x:e,y:n}){ce(t.x,e.translate,e.scale,e.originPoint),ce(t.y,n.translate,n.scale,n.originPoint)}const mn=.999999999999,pn=1.0000000000001;function Ar(t,e,n,i=!1){const s=n.length;if(!s)return;e.x=e.y=1;let r,o;for(let a=0;a<s;a++){r=n[a],o=r.projectionDelta;const{visualElement:l}=r.options;l&&l.props.style&&l.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&st(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,Wi(t,o)),i&&Y(r.latestValues)&&st(t,r.latestValues))}e.x<pn&&e.x>mn&&(e.x=1),e.y<pn&&e.y>mn&&(e.y=1)}function it(t,e){t.min=t.min+e,t.max=t.max+e}function gn(t,e,n,i,s=.5){const r=M(t.min,t.max,s);ce(t,e,n,r,i)}function st(t,e){gn(t.x,e.x,e.scaleX,e.scale,e.originX),gn(t.y,e.y,e.scaleY,e.scale,e.originY)}function Gi(t,e){return _i(Sr(t.getBoundingClientRect(),e))}function wr(t,e,n){const i=Gi(t,n),{scroll:s}=e;return s&&(it(i.x,s.offset.x),it(i.y,s.offset.y)),i}const $i=({current:t})=>t?t.ownerDocument.defaultView:null,Vr=new WeakMap;class br{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=C(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const s=c=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(St(c).point)},r=(c,h)=>{const{drag:d,dragPropagation:f,onDragStart:m}=this.getProps();if(d&&!f&&(this.openDragLock&&this.openDragLock(),this.openDragLock=sr(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),O(y=>{let g=this.getAxisMotionValue(y).get()||0;if(gt.test(g)){const{projection:x}=this.visualElement;if(x&&x.layout){const T=x.layout.layoutBox[y];T&&(g=j(T)*(parseFloat(g)/100))}}this.originPoint[y]=g}),m&&b.postRender(()=>m(c,h)),re(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(c,h)=>{const{dragPropagation:d,dragDirectionLock:f,onDirectionLock:m,onDrag:p}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=h;if(f&&this.currentDirection===null){this.currentDirection=Dr(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),p&&p(c,h)},a=(c,h)=>this.stop(c,h),l=()=>O(c=>{var h;return this.getAnimationState(c)==="paused"&&((h=this.getAxisMotionValue(c).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new Ii(e,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:$i(this.visualElement)})}stop(e,n){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:s}=n;this.startAnimation(s);const{onDragEnd:r}=this.getProps();r&&b.postRender(()=>r(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,i){const{drag:s}=this.getProps();if(!i||!wt(e,s,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(o=pr(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:i}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,r=this.constraints;n&&et(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=gr(s.layoutBox,n):this.constraints=!1,this.elastic=xr(i),r!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&O(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Tr(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!et(e))return!1;const i=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const r=wr(i,s.root,this.visualElement.getTransformPagePoint());let o=yr(s.layout.layoutBox,r);if(n){const a=n(Pr(o));this.hasMutatedConstraints=!!a,a&&(o=_i(a))}return o}startAnimation(e){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=O(c=>{if(!wt(c,n,this.currentDirection))return;let h=l&&l[c]||{};o&&(h={min:0,max:0});const d=s?200:1e6,f=s?40:1e7,m={type:"inertia",velocity:i?e[c]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const i=this.getAxisMotionValue(e);return re(this.visualElement,e),i.start(Ce(e,i,0,n,this.visualElement,!1))}stopAnimation(){O(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){O(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,i=this.visualElement.getProps(),s=i[n];return s||this.visualElement.getValue(e,(i.initial?i.initial[e]:void 0)||0)}snapToCursor(e){O(n=>{const{drag:i}=this.getProps();if(!wt(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n];r.set(e[n]-M(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!et(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};O(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=vr({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),O(o=>{if(!wt(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(M(l,u,s[o]))})}addListeners(){if(!this.visualElement.current)return;Vr.set(this.visualElement,this);const e=this.visualElement.current,n=ft(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),i=()=>{const{dragConstraints:l}=this.getProps();et(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,r=s.addEventListener("measure",i);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),b.read(i);const o=Tt(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(O(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=l[c].translate,h.set(h.get()+l[c].translate))}),this.visualElement.render())}));return()=>{o(),n(),r(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=le,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function wt(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Dr(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Cr extends z{constructor(e){super(e),this.removeGroupControls=_,this.removeListeners=_,this.controls=new br(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_}unmount(){this.removeGroupControls(),this.removeListeners()}}const yn=t=>(e,n)=>{t&&b.postRender(()=>t(e,n))};class Mr extends z{constructor(){super(...arguments),this.removePointerDownListener=_}onPointerDown(e){this.session=new Ii(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:$i(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:yn(e),onStart:yn(n),onMove:i,onEnd:(r,o)=>{delete this.session,s&&b.postRender(()=>s(r,o))}}}mount(){this.removePointerDownListener=ft(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Rr(){const t=A.useContext(pe);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:i}=t,s=A.useId();A.useEffect(()=>i(s),[]);const r=A.useCallback(()=>n&&n(s),[s,n]);return!e&&n?[!1,r]:[!0]}const Hi=A.createContext({}),Vt={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ut={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(v.test(t))t=parseFloat(t);else return t;const n=vn(t,e.target.x),i=vn(t,e.target.y);return`${n}% ${i}%`}},Er={correct:(t,{treeScale:e,projectionDelta:n})=>{const i=t,s=J.parse(t);if(s.length>5)return i;const r=J.createTransformer(t),o=typeof s[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;s[0+o]/=a,s[1+o]/=l;const u=M(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),r(s)}},Lt={};function Lr(t){Object.assign(Lt,t)}const{schedule:Ee}=Rs(queueMicrotask,!1);class Br extends A.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=e;Lr(kr),r&&(n.group&&n.group.add(r),i&&i.register&&s&&i.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Vt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:i,drag:s,isPresent:r}=this.props,o=i.projection;return o&&(o.isPresent=r,s||e.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||b.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ee.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function zi(t){const[e,n]=Rr(),i=A.useContext(ni);return Jt.jsx(Br,{...t,layoutGroup:i,switchLayoutGroup:A.useContext(Hi),isPresent:e,safeToRemove:n})}const kr={borderRadius:{...ut,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ut,borderTopRightRadius:ut,borderBottomLeftRadius:ut,borderBottomRightRadius:ut,boxShadow:Er},Xi=["TopLeft","TopRight","BottomLeft","BottomRight"],jr=Xi.length,Tn=t=>typeof t=="string"?parseFloat(t):t,xn=t=>typeof t=="number"||v.test(t);function Fr(t,e,n,i,s,r){s?(t.opacity=M(0,n.opacity!==void 0?n.opacity:1,Ir(i)),t.opacityExit=M(e.opacity!==void 0?e.opacity:1,0,Or(i))):r&&(t.opacity=M(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,i));for(let o=0;o<jr;o++){const a=`border${Xi[o]}Radius`;let l=Pn(e,a),u=Pn(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||xn(l)===xn(u)?(t[a]=Math.max(M(Tn(l),Tn(u),i),0),(gt.test(u)||gt.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=M(e.rotate||0,n.rotate||0,i))}function Pn(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Ir=Yi(0,.5,di),Or=Yi(.5,.95,_);function Yi(t,e,n){return i=>i<t?0:i>e?1:n(Dt(t,e,i))}function Sn(t,e){t.min=e.min,t.max=e.max}function I(t,e){Sn(t.x,e.x),Sn(t.y,e.y)}function An(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function wn(t,e,n,i,s){return t-=e,t=Et(t,1/n,i),s!==void 0&&(t=Et(t,1/s,i)),t}function Ur(t,e=0,n=1,i=.5,s,r=t,o=t){if(gt.test(e)&&(e=parseFloat(e),e=M(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=M(r.min,r.max,i);t===r&&(a-=e),t.min=wn(t.min,e,n,a,s),t.max=wn(t.max,e,n,a,s)}function Vn(t,e,[n,i,s],r,o){Ur(t,e[n],e[i],e[s],e.scale,r,o)}const Nr=["x","scaleX","originX"],_r=["y","scaleY","originY"];function bn(t,e,n,i){Vn(t.x,e,Nr,n?n.x:void 0,i?i.x:void 0),Vn(t.y,e,_r,n?n.y:void 0,i?i.y:void 0)}function Dn(t){return t.translate===0&&t.scale===1}function qi(t){return Dn(t.x)&&Dn(t.y)}function Cn(t,e){return t.min===e.min&&t.max===e.max}function Kr(t,e){return Cn(t.x,e.x)&&Cn(t.y,e.y)}function Mn(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Zi(t,e){return Mn(t.x,e.x)&&Mn(t.y,e.y)}function Rn(t){return j(t.x)/j(t.y)}function En(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Wr{constructor(){this.members=[]}add(e){Jn(this.members,e),e.scheduleRender()}remove(e){if(Qn(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(s=>e===s);if(n===0)return!1;let i;for(let s=n;s>=0;s--){const r=this.members[s];if(r.isPresent!==!1){i=r;break}}return i?(this.promote(i),!0):!1}promote(e,n){const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,n&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:i}=e;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Gr(t,e,n){let i="";const s=t.x.translate/e.x,r=t.y.translate/e.y,o=n?.z||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(i+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:d,skewX:f,skewY:m}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),h&&(i+=`rotateX(${h}deg) `),d&&(i+=`rotateY(${d}deg) `),f&&(i+=`skewX(${f}deg) `),m&&(i+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const $r=(t,e)=>t.depth-e.depth;class Hr{constructor(){this.children=[],this.isDirty=!1}add(e){Jn(this.children,e),this.isDirty=!0}remove(e){Qn(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort($r),this.isDirty=!1,this.children.forEach(e)}}function bt(t){const e=E(t)?t.get():t;return Oo(e)?e.toValue():e}function zr(t,e){const n=ot.now(),i=({timestamp:s})=>{const r=s-n;r>=e&&(H(i),t(r-e))};return b.read(i,!0),()=>H(i)}function Xr(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Yr(t,e,n){const i=E(t)?t:yt(t);return i.start(Ce("",i,e,n)),i.animation}const q={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ht=typeof window<"u"&&window.MotionDebug!==void 0,Ht=["","X","Y","Z"],qr={visibility:"hidden"},Ln=1e3;let Zr=0;function zt(t,e,n,i){const{latestValues:s}=e;s[t]&&(n[t]=s[t],e.setStaticValue(t,0),i&&(i[t]=0))}function Ji(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Bi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",b,!(s||r))}const{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&Ji(i)}function Qi({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=e?.()){this.id=Zr++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ht&&(q.totalNodes=q.resolvedTargetDeltas=q.recalculatedProjection=0),this.nodes.forEach(ta),this.nodes.forEach(oa),this.nodes.forEach(ra),this.nodes.forEach(ea),ht&&window.MotionDebug.record(q)},this.resolvedRelativeTargetAt=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 Hr)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new ti),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,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Xr(o),this.instance=o;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let h;const d=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=zr(d,250),Vt.hasAnimatedSinceResize&&(Vt.hasAnimatedSinceResize=!1,this.nodes.forEach(kn))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:d,hasRelativeTargetChanged:f,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||ha,{onLayoutAnimationStart:y,onLayoutAnimationComplete:g}=c.getProps(),x=!this.targetLayout||!Zi(this.targetLayout,m)||f,T=!d&&f;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||T||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,T);const w={...Te(p,"layout"),onPlay:y,onComplete:g};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||kn(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}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,H(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(aa),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&&Ji(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const h=this.path[c];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Bn);return}this.isUpdating||this.nodes.forEach(ia),this.isUpdating=!1,this.nodes.forEach(sa),this.nodes.forEach(Jr),this.nodes.forEach(Qr),this.clearAllSnapshots();const a=ot.now();B.delta=rt(0,1e3/60,a-B.timestamp),B.timestamp=a,B.isProcessing=!0,_t.update.process(B),_t.preRender.process(B),_t.render.process(B),B.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ee.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(na),this.sharedNodes.forEach(la)}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())}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.layoutCorrected=C(),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){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!qi(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&(a||Y(this.latestValues)||c)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),da(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return C();const l=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(fa))){const{scroll:c}=this.root;c&&(it(l.x,c.offset.x),it(l.y,c.offset.y))}return l}removeElementScroll(o){var a;const l=C();if(I(l,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:h,options:d}=c;c!==this.root&&h&&d.layoutScroll&&(h.wasRoot&&I(l,o),it(l.x,h.offset.x),it(l.y,h.offset.y))}return l}applyTransform(o,a=!1){const l=C();I(l,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&st(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Y(c.latestValues)&&st(l,c.latestValues)}return Y(this.latestValues)&&st(l,this.latestValues),l}removeTransform(o){const a=C();I(a,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Y(u.latestValues))continue;ue(u.latestValues)&&u.updateSnapshot();const c=C(),h=u.measurePageBox();I(c,h),bn(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Y(this.latestValues)&&bn(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){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(o||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:d}=this.options;if(!(!this.layout||!(h||d))){if(this.resolvedRelativeTargetAt=B.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),pt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),I(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=C(),this.targetWithTransforms=C()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),mr(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):I(this.target,this.layout.layoutBox),Wi(this.target,this.targetDelta)):I(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),pt(this.relativeTargetOrigin,this.target,f.target),I(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ht&&q.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ue(this.parent.latestValues)||Ki(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===B.timestamp&&(u=!1),u)return;const{layout:c,layoutId:h}=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||h))return;I(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Ar(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=C());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(An(this.prevProjectionDelta.x,this.projectionDelta.x),An(this.prevProjectionDelta.y,this.projectionDelta.y)),mt(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!En(this.projectionDelta.x,this.prevProjectionDelta.x)||!En(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),ht&&q.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=nt(),this.projectionDelta=nt(),this.projectionDeltaWithTransform=nt()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},h=nt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=C(),f=l?l.source:void 0,m=this.layout?this.layout.source:void 0,p=f!==m,y=this.getStack(),g=!y||y.members.length<=1,x=!!(p&&!g&&this.options.crossfade===!0&&!this.path.some(ca));this.animationProgress=0;let T;this.mixTargetDelta=w=>{const P=w/1e3;jn(h.x,o.x,P),jn(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pt(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ua(this.relativeTarget,this.relativeTargetOrigin,d,P),T&&Kr(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=C()),I(T,this.relativeTarget)),p&&(this.animationValues=c,Fr(c,u,this.latestValues,P,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(H(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=b.update(()=>{Vt.hasAnimatedSinceResize=!0,this.currentAnimation=Yr(0,Ln,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},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(Ln),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&ts(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||C();const h=j(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const d=j(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}I(a,l),st(a,c),mt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Wr),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.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 u=this.getStack();u&&u.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 u={};l.z&&zt("z",o,u,this.animationValues);for(let c=0;c<Ht.length;c++)zt(`rotate${Ht[c]}`,o,u,this.animationValues),zt(`skew${Ht[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}getProjectionStyles(o){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return qr;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=bt(o?.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=bt(o?.pointerEvents)||""),this.hasProjected&&!Y(this.latestValues)&&(p.transform=c?c({},""):"none",this.hasProjected=!1),p}const d=h.animationValues||h.latestValues;this.applyTransformsToTarget(),u.transform=Gr(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:f,y:m}=this.projectionDelta;u.transformOrigin=`${f.origin*100}% ${m.origin*100}% 0`,h.animationValues?u.opacity=h===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=h===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in Lt){if(d[p]===void 0)continue;const{correct:y,applyTo:g}=Lt[p],x=u.transform==="none"?d[p]:y(d[p],h);if(g){const T=g.length;for(let w=0;w<T;w++)u[g[w]]=x}else u[p]=x}return this.options.layoutId&&(u.pointerEvents=h===this?bt(o?.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Bn),this.root.sharedNodes.clear()}}}function Jr(t){t.updateLayout()}function Qr(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=t.layout,{animationType:r}=t.options,o=n.source!==t.layout.source;r==="size"?O(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=j(d);d.min=i[h].min,d.max=d.min+f}):ts(r,n.layoutBox,i)&&O(h=>{const d=o?n.measuredBox[h]:n.layoutBox[h],f=j(i[h]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const a=nt();mt(a,i,n.layoutBox);const l=nt();o?mt(l,t.applyTransform(s,!0),n.measuredBox):mt(l,i,n.layoutBox);const u=!qi(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:d,layout:f}=h;if(d&&f){const m=C();pt(m,n.layoutBox,d.layoutBox);const p=C();pt(p,i,f.layoutBox),Zi(m,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=m,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(t.isLead()){const{onExitComplete:i}=t.options;i&&i()}t.options.transition=void 0}function ta(t){ht&&q.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ea(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function na(t){t.clearSnapshot()}function Bn(t){t.clearMeasurements()}function ia(t){t.isLayoutDirty=!1}function sa(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function kn(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function oa(t){t.resolveTargetDelta()}function ra(t){t.calcProjection()}function aa(t){t.resetSkewAndRotation()}function la(t){t.removeLeadSnapshot()}function jn(t,e,n){t.translate=M(e.translate,0,n),t.scale=M(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Fn(t,e,n,i){t.min=M(e.min,n.min,i),t.max=M(e.max,n.max,i)}function ua(t,e,n,i){Fn(t.x,e.x,n.x,i),Fn(t.y,e.y,n.y,i)}function ca(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ha={duration:.45,ease:[.4,0,.1,1]},In=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),On=In("applewebkit/")&&!In("chrome/")?Math.round:_;function Un(t){t.min=On(t.min),t.max=On(t.max)}function da(t){Un(t.x),Un(t.y)}function ts(t,e,n){return t==="position"||t==="preserve-aspect"&&!fr(Rn(e),Rn(n),.2)}function fa(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const ma=Qi({attachResizeListener:(t,e)=>Tt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Xt={current:void 0},es=Qi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Xt.current){const t=new ma({});t.mount(window),t.setOptions({layoutScroll:!0}),Xt.current=t}return Xt.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),pa={pan:{Feature:Mr},drag:{Feature:Cr,ProjectionNode:es,MeasureLayout:zi}};function ns(t,e){const n=Es(t),i=new AbortController,s={passive:!0,...e,signal:i.signal};return[n,s,()=>i.abort()]}function Nn(t){return e=>{e.pointerType==="touch"||Fi()||t(e)}}function ga(t,e,n={}){const[i,s,r]=ns(t,n),o=Nn(a=>{const{target:l}=a,u=e(a);if(!u||!l)return;const c=Nn(h=>{u(h),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,s)});return i.forEach(a=>{a.addEventListener("pointerenter",o,s)}),r}function _n(t,e,n){const{props:i}=t;t.animationState&&i.whileHover&&t.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,r=i[s];r&&b.postRender(()=>r(e,St(e)))}class ya extends z{mount(){const{current:e}=this.node;e&&(this.unmount=ga(e,n=>(_n(this.node,n,"Start"),i=>_n(this.node,i,"End"))))}unmount(){}}class va extends z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=me(Tt(this.node.current,"focus",()=>this.onFocus()),Tt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const dt=new WeakSet;function Kn(t){return e=>{e.key==="Enter"&&t(e)}}function Yt(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ta=(t,e)=>{const n=t.currentTarget;if(!n)return;const i=Kn(()=>{if(dt.has(n))return;Yt(n,"down");const s=Kn(()=>{Yt(n,"up")}),r=()=>Yt(n,"cancel");n.addEventListener("keyup",s,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",i,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),e)},xa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pa(t){return xa.has(t.tagName)||t.tabIndex!==-1}const is=(t,e)=>e?t===e?!0:is(t,e.parentElement):!1;function Wn(t){return Re(t)&&!Fi()}function Sa(t,e,n={}){const[i,s,r]=ns(t,n),o=a=>{const l=a.currentTarget;if(!Wn(a)||dt.has(l))return;dt.add(l);const u=e(a),c=(f,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",d),!(!Wn(f)||!dt.has(l))&&(dt.delete(l),u&&u(f,{success:m}))},h=f=>{c(f,n.useGlobalTarget||is(l,f.target))},d=f=>{c(f,!1)};window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",d,s)};return i.forEach(a=>{Pa(a)||(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),a.addEventListener("focus",u=>Ta(u,s),s)}),r}function Gn(t,e,n){const{props:i}=t;t.animationState&&i.whileTap&&t.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),r=i[s];r&&b.postRender(()=>r(e,St(e)))}class Aa extends z{mount(){const{current:e}=this.node;e&&(this.unmount=Sa(e,n=>(Gn(this.node,n,"Start"),(i,{success:s})=>Gn(this.node,i,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const he=new WeakMap,qt=new WeakMap,wa=t=>{const e=he.get(t.target);e&&e(t)},Va=t=>{t.forEach(wa)};function ba({root:t,...e}){const n=t||document;qt.has(n)||qt.set(n,{});const i=qt.get(n),s=JSON.stringify(e);return i[s]||(i[s]=new IntersectionObserver(Va,{root:t,...e})),i[s]}function Da(t,e,n){const i=ba(e);return he.set(t,n),i.observe(t),()=>{he.delete(t),i.unobserve(t)}}const Ca={some:0,all:1};class Ma extends z{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Ca[s]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=u?c:h;d&&d(l)};return Da(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Ra(e,n))&&this.startObserver()}unmount(){}}function Ra({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Ea={inView:{Feature:Ma},tap:{Feature:Aa},focus:{Feature:va},hover:{Feature:ya}},La={layout:{ProjectionNode:es,MeasureLayout:zi}},It=A.createContext({}),ss=A.createContext({strict:!1});function Ba(t,e,n,i,s){var r,o;const{visualElement:a}=A.useContext(It),l=A.useContext(ss),u=A.useContext(pe),c=A.useContext(ii).reducedMotion,h=A.useRef(null);i=i||l.renderer,!h.current&&i&&(h.current=i(t,{visualState:e,parent:a,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=h.current,f=A.useContext(Hi);d&&!d.projection&&s&&(d.type==="html"||d.type==="svg")&&ka(h.current,n,s,f);const m=A.useRef(!1);A.useInsertionEffect(()=>{d&&m.current&&d.update(n,u)});const p=n[Li],y=A.useRef(!!p&&!(!((r=window.MotionHandoffIsComplete)===null||r===void 0)&&r.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return Ls(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),Ee.render(d.render),y.current&&d.animationState&&d.animationState.animateChanges())}),A.useEffect(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var g;(g=window.MotionHandoffMarkAsComplete)===null||g===void 0||g.call(window,p)}),y.current=!1))}),d}function ka(t,e,n,i){const{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:os(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&et(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}function os(t){if(t)return t.options.allowProjection!==!1?t.projection:os(t.parent)}function ja(t,e,n){return A.useCallback(i=>{i&&t.mount&&t.mount(i),e&&(i?e.mount(i):e.unmount()),n&&(typeof n=="function"?n(i):et(n)&&(n.current=i))},[e])}function Ot(t){return kt(t.animate)||ve.some(e=>vt(t[e]))}function rs(t){return!!(Ot(t)||t.variants)}function Fa(t,e){if(Ot(t)){const{initial:n,animate:i}=t;return{initial:n===!1||vt(n)?n:void 0,animate:vt(i)?i:void 0}}return t.inherit!==!1?e:{}}function Ia(t){const{initial:e,animate:n}=Fa(t,A.useContext(It));return A.useMemo(()=>({initial:e,animate:n}),[$n(e),$n(n)])}function $n(t){return Array.isArray(t)?t.join(" "):t}const Hn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},lt={};for(const t in Hn)lt[t]={isEnabled:e=>Hn[t].some(n=>!!e[n])};function Oa(t){for(const e in t)lt[e]={...lt[e],...t[e]}}const Ua=Symbol.for("motionComponentSymbol");function Na({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:i,Component:s}){t&&Oa(t);function r(a,l){let u;const c={...A.useContext(ii),...a,layoutId:_a(a)},{isStatic:h}=c,d=Ia(a),f=i(a,h);if(!h&&si){Ka();const m=Wa(c);u=m.MeasureLayout,d.visualElement=Ba(s,f,c,e,m.ProjectionNode)}return Jt.jsxs(It.Provider,{value:d,children:[u&&d.visualElement?Jt.jsx(u,{visualElement:d.visualElement,...c}):null,n(s,a,ja(f,d.visualElement,l),f,h,d.visualElement)]})}const o=A.forwardRef(r);return o[Ua]=s,o}function _a({layoutId:t}){const e=A.useContext(ni).id;return e&&t!==void 0?e+"-"+t:t}function Ka(t,e){A.useContext(ss).strict}function Wa(t){const{drag:e,layout:n}=lt;if(!e&&!n)return{};const i={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const Ga=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Le(t){return typeof t!="string"||t.includes("-")?!1:!!(Ga.indexOf(t)>-1||/[A-Z]/u.test(t))}function as(t,{style:e,vars:n},i,s){Object.assign(t.style,e,s&&s.getProjectionStyles(i));for(const r in n)t.style.setProperty(r,n[r])}const ls=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"]);function us(t,e,n,i){as(t,e,void 0,i);for(const s in e.attrs)t.setAttribute(ls.has(s)?s:Me(s),e.attrs[s])}function cs(t,{layout:e,layoutId:n}){return Q.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Lt[t]||t==="opacity")}function Be(t,e,n){var i;const{style:s}=t,r={};for(const o in s)(E(s[o])||e.style&&E(e.style[o])||cs(o,t)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function hs(t,e,n){const i=Be(t,e,n);for(const s in t)if(E(t[s])||E(e[s])){const r=xt.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=t[s]}return i}function $a({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},i,s,r){const o={latestValues:Ha(i,s,r,t),renderState:e()};return n&&(o.mount=a=>n(i,a,o)),o}const ds=t=>(e,n)=>{const i=A.useContext(It),s=A.useContext(pe),r=()=>$a(t,e,i,s);return n?r():Bs(r)};function Ha(t,e,n,i){const s={},r=i(t,{});for(const d in r)s[d]=bt(r[d]);let{initial:o,animate:a}=t;const l=Ot(t),u=rs(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!kt(h)){const d=Array.isArray(h)?h:[h];for(let f=0;f<d.length;f++){const m=ge(t,d[f]);if(m){const{transitionEnd:p,transition:y,...g}=m;for(const x in g){let T=g[x];if(Array.isArray(T)){const w=c?T.length-1:0;T=T[w]}T!==null&&(s[x]=T)}for(const x in p)s[x]=p[x]}}}return s}const ke=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),fs=()=>({...ke(),attrs:{}}),ms=(t,e)=>e&&typeof t=="number"?e.transform(t):t,za={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xa=xt.length;function Ya(t,e,n){let i="",s=!0;for(let r=0;r<Xa;r++){const o=xt[r],a=t[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const u=ms(a,Ae[o]);if(!l){s=!1;const c=za[o]||o;i+=`${c}(${u}) `}n&&(e[o]=u)}}return i=i.trim(),n?i=n(e,s?"":i):s&&(i="none"),i}function je(t,e,n){const{style:i,vars:s,transformOrigin:r}=t;let o=!1,a=!1;for(const l in e){const u=e[l];if(Q.has(l)){o=!0;continue}else if(ei(l)){s[l]=u;continue}else{const c=ms(u,Ae[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(e.transform||(o||n?i.transform=Ya(e,t.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function zn(t,e,n){return typeof t=="string"?t:v.transform(e+n*t)}function qa(t,e,n){const i=zn(e,t.x,t.width),s=zn(n,t.y,t.height);return`${i} ${s}`}const Za={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ja={offset:"strokeDashoffset",array:"strokeDasharray"};function Qa(t,e,n=1,i=0,s=!0){t.pathLength=1;const r=s?Za:Ja;t[r.offset]=v.transform(-i);const o=v.transform(e),a=v.transform(n);t[r.array]=`${o} ${a}`}function Fe(t,{attrX:e,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(je(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f,dimensions:m}=t;d.transform&&(m&&(f.transform=d.transform),delete d.transform),m&&(s!==void 0||r!==void 0||f.transform)&&(f.transformOrigin=qa(m,s!==void 0?s:.5,r!==void 0?r:.5)),e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),o!==void 0&&Qa(d,o,a,l,!1)}const Ie=t=>typeof t=="string"&&t.toLowerCase()==="svg",tl={useVisualState:ds({scrapeMotionValuesFromProps:hs,createRenderState:fs,onMount:(t,e,{renderState:n,latestValues:i})=>{b.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),b.render(()=>{Fe(n,i,Ie(e.tagName),t.transformTemplate),us(e,n)})}})},el={useVisualState:ds({scrapeMotionValuesFromProps:Be,createRenderState:ke})};function ps(t,e,n){for(const i in e)!E(e[i])&&!cs(i,n)&&(t[i]=e[i])}function nl({transformTemplate:t},e){return A.useMemo(()=>{const n=ke();return je(n,e,t),Object.assign({},n.vars,n.style)},[e])}function il(t,e){const n=t.style||{},i={};return ps(i,n,t),Object.assign(i,nl(t,e)),i}function sl(t,e){const n={},i=il(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const ol=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Bt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||ol.has(t)}let gs=t=>!Bt(t);function rl(t){t&&(gs=e=>e.startsWith("on")?!Bt(e):t(e))}try{rl(require("@emotion/is-prop-valid").default)}catch{}function al(t,e,n){const i={};for(const s in t)s==="values"&&typeof t.values=="object"||(gs(s)||n===!0&&Bt(s)||!e&&!Bt(s)||t.draggable&&s.startsWith("onDrag"))&&(i[s]=t[s]);return i}function ll(t,e,n,i){const s=A.useMemo(()=>{const r=fs();return Fe(r,e,Ie(i),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};ps(r,t.style,t),s.style={...r,...s.style}}return s}function ul(t=!1){return(n,i,s,{latestValues:r},o)=>{const l=(Le(n)?ll:sl)(i,r,o,n),u=al(i,typeof n=="string",t),c=n!==A.Fragment?{...u,...l,ref:s}:{},{children:h}=i,d=A.useMemo(()=>E(h)?h.get():h,[h]);return A.createElement(n,{...c,children:d})}}function cl(t,e){return function(i,{forwardMotionProps:s}={forwardMotionProps:!1}){const o={...Le(i)?tl:el,preloadedFeatures:t,useRender:ul(s),createVisualElement:e,Component:i};return Na(o)}}const de={current:null},ys={current:!1};function hl(){if(ys.current=!0,!!si)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>de.current=t.matches;t.addListener(e),e()}else de.current=!1}function dl(t,e,n){for(const i in e){const s=e[i],r=n[i];if(E(s))t.addValue(i,s);else if(E(r))t.addValue(i,yt(s,{owner:t}));else if(r!==s)if(t.hasValue(i)){const o=t.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=t.getStaticValue(i);t.addValue(i,yt(o!==void 0?o:s,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const Xn=new WeakMap,fl=[...vi,U,J],ml=t=>fl.find(yi(t)),Yn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pl{scrapeMotionValuesFromProps(e,n,i){return{}}constructor({parent:e,props:n,presenceContext:i,reducedMotionConfig:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Se,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=ot.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,b.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=Ot(n),this.isVariantNode=rs(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const f=h[d];l[d]!==void 0&&E(f)&&f.set(l[d],!1)}}mount(e){this.current=e,Xn.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((n,i)=>this.bindToMotionValue(i,n)),ys.current||hl(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:de.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Xn.delete(this.current),this.projection&&this.projection.unmount(),H(this.notifyUpdate),H(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const i=Q.has(e),s=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&b.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{s(),r(),o&&o(),n.owner&&n.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 lt){const n=lt[e];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(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):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Yn.length;i++){const s=Yn[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,o=e[r];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=dl(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 n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const i=this.values.get(e);n!==i&&(i&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let i=this.values.get(e);return i===void 0&&n!==void 0&&(i=yt(n===null?void 0:n,{owner:this}),this.addValue(e,i)),i}readValue(e,n){var i;let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(i=this.getBaseTargetFromProps(this.props,e))!==null&&i!==void 0?i:this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(pi(s)||mi(s))?s=parseFloat(s):!ml(s)&&J.test(n)&&(s=Pi(e,n)),this.setBaseTarget(e,E(s)?s.get():s)),E(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:i}=this.props;let s;if(typeof i=="string"||typeof i=="object"){const o=ge(this.props,i,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(s=o[e])}if(i&&s!==void 0)return s;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!E(r)?r:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ti),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class vs extends pl{constructor(){super(...arguments),this.KeyframeResolver=Si}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:i}){delete n[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;E(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function gl(t){return window.getComputedStyle(t)}class yl extends vs{constructor(){super(...arguments),this.type="html",this.renderInstance=as}readValueFromInstance(e,n){if(Q.has(n)){const i=we(n);return i&&i.default||0}else{const i=gl(e),s=(ei(n)?i.getPropertyValue(n):i[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Gi(e,n)}build(e,n,i){je(e,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,n,i){return Be(e,n,i)}}class vl extends vs{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Q.has(n)){const i=we(n);return i&&i.default||0}return n=ls.has(n)?n:Me(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,i){return hs(e,n,i)}build(e,n,i){Fe(e,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,i,s){us(e,n,i,s)}mount(e){this.isSVGTag=Ie(e.tagName),super.mount(e)}}const Tl=(t,e)=>Le(t)?new vl(e):new yl(e,{allowProjection:t!==A.Fragment}),xl=cl({...ir,...Ea,...pa,...La},Tl),Cl=ks(xl);export{zo as a,ys as h,hl as i,rl as l,Cl as m,de as p,_o as s};
4//# sourceMappingURL=proxy-BcbcgI1P.js.map
5
6//# debugId=a6326dae-c3aa-5354-bc9c-e4751279b02e

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.