PageSourceSearch

https://strite.ai/assets/proxy-Cjx5t8I4.js

js strite.ai collected 2026-10-05 13:37:18 UTC 119,068 bytes, 1 lines download raw bytes

vendor: 15,477 bytes, line 1
1import{r as S,e as Te}from"./vendor-react-BsIZDGja.js";const Os=S.createContext({});function Ar(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const Vr=typeof window<"u",Cr=Vr?S.useLayoutEffect:S.useEffect,He=S.createContext(null);function $e(t,e){t.indexOf(e)===-1&&t.push(e)}function $t(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const X=(t,e,n)=>n>e?e:n<t?t:n;let Ge=()=>{};const Y={},js=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ns(t){return typeof t=="object"&&t!==null}const Us=t=>/^0[^.\s]+$/u.test(t);function Ws(t){let e;return()=>(e===void 0&&(e=t()),e)}const W=t=>t,Mr=(t,e)=>n=>e(t(n)),Et=(...t)=>t.reduce(Mr),At=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class ze{constructor(){this.subscriptions=[]}add(e){return $e(this.subscriptions,e),()=>$t(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const $=t=>t*1e3,U=t=>t/1e3;function Ks(t,e){return e?t*(1e3/e):0}const Hs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Dr=1e-7,Er=12;function Rr(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Hs(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Dr&&++a<Er);return r}function Rt(t,e,n,s){if(t===e&&n===s)return W;const i=o=>Rr(o,0,1,t,n);return o=>o===0||o===1?o:Hs(i(o),e,s)}const $s=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Gs=t=>e=>1-t(1-e),zs=Rt(.33,1.53,.69,.99),_e=Gs(zs),_s=$s(_e),Xs=t=>(t*=2)<1?.5*_e(t):.5*(2-Math.pow(2,-10*(t-1))),Xe=t=>1-Math.sin(Math.acos(t)),Ys=Gs(Xe),qs=$s(Xe),Lr=Rt(.42,0,1,1),kr=Rt(0,0,.58,1),Zs=Rt(.42,0,.58,1),Fr=t=>Array.isArray(t)&&typeof t[0]!="number",Js=t=>Array.isArray(t)&&typeof t[0]=="number",Br={linear:W,easeIn:Lr,easeInOut:Zs,easeOut:kr,circIn:Xe,circInOut:qs,circOut:Ys,backIn:_e,backInOut:_s,backOut:zs,anticipate:Xs},Ir=t=>typeof t=="string",Pn=t=>{if(Js(t)){Ge(t.length===4);const[e,n,s,i]=t;return Rt(e,n,s,i)}else if(Ir(t))return Br[t];return t},Ft=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Or(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){r.has(u)&&(c.schedule(u),t()),u(a)}const c={schedule:(u,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&r.add(u),m.has(u)||m.add(u),u},cancel:u=>{s.delete(u),r.delete(u)},process:u=>{if(a=u,i){o=!0;return}i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const jr=40;function Qs(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Ft.reduce((p,P)=>(p[P]=Or(o),p),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:m}=r,g=()=>{const p=Y.useManualTiming?i.timestamp:performance.now();n=!1,Y.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(p-i.timestamp,jr),1)),i.timestamp=p,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},x=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Ft.reduce((p,P)=>{const w=r[P];return p[P]=(A,D=!1,b=!1)=>(n||x(),w.schedule(A,D,b)),p},{}),cancel:p=>{for(let P=0;P<Ft.length;P++)r[Ft[P]].cancel(p)},state:i,steps:r}}const{schedule:V,cancel:J,state:k,steps:ne}=Qs(typeof requestAnimationFrame<"u"?requestAnimationFrame:W,!0);let Ot;function Nr(){Ot=void 0}const I={now:()=>(Ot===void 0&&I.set(k.isProcessing||Y.useManualTiming?k.timestamp:performance.now()),Ot),set:t=>{Ot=t,queueMicrotask(Nr)}},ti=t=>e=>typeof e=="string"&&e.startsWith(t),ei=ti("--"),Ur=ti("var(--"),Ye=t=>Ur(t)?Wr.test(t.split("/*")[0].trim()):!1,Wr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Sn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Vt={...pt,transform:t=>X(0,1,t)},Bt={...pt,default:1},wt=t=>Math.round(t*1e5)/1e5,qe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Kr(t){return t==null}const Hr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ze=(t,e)=>n=>!!(typeof n=="string"&&Hr.test(n)&&n.startsWith(t)||e&&!Kr(n)&&Object.prototype.hasOwnProperty.call(n,e)),ni=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(qe);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},$r=t=>X(0,255,t),se={...pt,transform:t=>Math.round($r(t))},st={test:Ze("rgb","red"),parse:ni("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+se.transform(t)+", "+se.transform(e)+", "+se.transform(n)+", "+wt(Vt.transform(s))+")"};function Gr(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const xe={test:Ze("#"),parse:Gr,transform:st.transform},Lt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),q=Lt("deg"),_=Lt("%"),y=Lt("px"),zr=Lt("vh"),_r=Lt("vw"),bn={..._,parse:t=>_.parse(t)/100,transform:t=>_.transform(t*100)},lt={test:Ze("hsl","hue"),parse:ni("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+_.transform(wt(e))+", "+_.transform(wt(n))+", "+wt(Vt.transform(s))+")"},E={test:t=>st.test(t)||xe.test(t)||lt.test(t),parse:t=>st.test(t)?st.parse(t):lt.test(t)?lt.parse(t):xe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?st.transform(t):lt.transform(t),getAnimatableNone:t=>{const e=E.parse(t);return e.alpha=0,E.transform(e)}},Xr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Yr(t){return isNaN(t)&&typeof t=="string"&&(t.match(qe)?.length||0)+(t.match(Xr)?.length||0)>0}const si="number",ii="color",qr="var",Zr="var(",An="${}",Jr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ct(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Jr,l=>(E.test(l)?(s.color.push(o),i.push(ii),n.push(E.parse(l))):l.startsWith(Zr)?(s.var.push(o),i.push(qr),n.push(l)):(s.number.push(o),i.push(si),n.push(parseFloat(l))),++o,An)).split(An);return{values:n,split:a,indexes:s,types:i}}function ri(t){return Ct(t).values}function oi(t){const{split:e,types:n}=Ct(t),s=e.length;return i=>{let o="";for(let r=0;r<s;r++)if(o+=e[r],i[r]!==void 0){const a=n[r];a===si?o+=wt(i[r]):a===ii?o+=E.transform(i[r]):o+=i[r]}return o}}const Qr=t=>typeof t=="number"?0:E.test(t)?E.getAnimatableNone(t):t;function to(t){const e=ri(t);return oi(t)(e.map(Qr))}const G={test:Yr,parse:ri,createTransformer:oi,getAnimatableNone:to};function ie(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function eo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=ie(l,a,t+1/3),o=ie(l,a,t),r=ie(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Gt(t,e){return n=>n>0?e:t}const C=(t,e,n)=>t+(e-t)*n,re=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},no=[xe,st,lt],so=t=>no.find(e=>e.test(t));function Vn(t){const e=so(t);if(!e)return!1;let n=e.parse(t);return e===lt&&(n=eo(n)),n}const Cn=(t,e)=>{const n=Vn(t),s=Vn(e);if(!n||!s)return Gt(t,e);const i={...n};return o=>(i.red=re(n.red,s.red,o),i.green=re(n.green,s.green,o),i.blue=re(n.blue,s.blue,o),i.alpha=C(n.alpha,s.alpha,o),st.transform(i))},we=new Set(["none","hidden"]);function io(t,e){return we.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ro(t,e){return n=>C(t,e,n)}function Je(t){return typeof t=="number"?ro:typeof t=="string"?Ye(t)?Gt:E.test(t)?Cn:lo:Array.isArray(t)?ai:typeof t=="object"?E.test(t)?Cn:oo:Gt}function ai(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Je(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function oo(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Je(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function ao(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const lo=(t,e)=>{const n=G.createTransformer(e),s=Ct(t),i=Ct(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?we.has(t)&&!i.values.length||we.has(e)&&!s.values.length?io(t,e):Et(ai(ao(s,i),i.values),n):Gt(t,e)};function li(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):Je(t)(t,e)}const uo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>V.update(e,n),stop:()=>J(e),now:()=>k.isProcessing?k.timestamp:I.now()}},ui=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},zt=2e4;function Qe(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<zt;)e+=n,s=t.next(e);return e>=zt?1/0:e}function co(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(Qe(s),zt);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:U(i)}}const ho=5;function ci(t,e,n){const s=Math.max(e-ho,0);return Ks(n-t(s),e-s)}const M={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},oe=.001;function fo({duration:t=M.duration,bounce:e=M.bounce,velocity:n=M.velocity,mass:s=M.mass}){let i,o,r=1-e;r=X(M.minDamping,M.maxDamping,r),t=X(M.minDuration,M.maxDuration,U(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=Pe(c,r),m=Math.exp(-h);return oe-f/d*m},o=c=>{const h=c*r*t,f=h*n+n,d=Math.pow(r,2)*Math.pow(c,2)*t,m=Math.exp(-h),g=Pe(Math.pow(c,2),r);return(-i(c)+oe>0?-1:1)*((f-d)*m)/g}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-oe+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=po(i,o,a);if(t=$(t),isNaN(l))return{stiffness:M.stiffness,damping:M.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const mo=12;function po(t,e,n){let s=n;for(let i=1;i<mo;i++)s=s-t(s)/e(s);return s}function Pe(t,e){return t*Math.sqrt(1-e*e)}const go=["duration","bounce"],yo=["stiffness","damping","mass"];function Mn(t,e){return e.some(n=>t[n]!==void 0)}function vo(t){let e={velocity:M.velocity,stiffness:M.stiffness,damping:M.damping,mass:M.mass,isResolvedFromDuration:!1,...t};if(!Mn(t,yo)&&Mn(t,go))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:M.mass,stiffness:i,damping:o}}else{const n=fo({...t,velocity:0});e={...e,...n,mass:M.mass},e.isResolvedFromDuration=!0}return e}function _t(t=M.visualDuration,e=M.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:h,velocity:f,isResolvedFromDuration:d}=vo({...n,velocity:-U(n.velocity||0)}),m=f||0,g=c/(2*Math.sqrt(l*u)),x=r-o,T=U(Math.sqrt(l/u)),v=Math.abs(x)<5;s||(s=v?M.restSpeed.granular:M.restSpeed.default),i||(i=v?M.restDelta.granular:M.restDelta.default);let p;if(g<1){const w=Pe(T,g);p=A=>{const D=Math.exp(-g*T*A);return r-D*((m+g*T*x)/w*Math.sin(w*A)+x*Math.cos(w*A))}}else if(g===1)p=w=>r-Math.exp(-T*w)*(x+(m+T*x)*w);else{const w=T*Math.sqrt(g*g-1);p=A=>{const D=Math.exp(-g*T*A),b=Math.min(w*A,300);return r-D*((m+g*T*x)*Math.sinh(b)+w*x*Math.cosh(b))/w}}const P={calculatedDuration:d&&h||null,next:w=>{const A=p(w);if(d)a.done=w>=h;else{let D=w===0?m:0;g<1&&(D=w===0?$(m):ci(p,w,A));const b=Math.abs(D)<=s,B=Math.abs(r-A)<=i;a.done=b&&B}return a.value=a.done?r:A,a},toString:()=>{const w=Math.min(Qe(P),zt),A=ui(D=>P.next(w*D).value,w,30);return w+"ms "+A},toTransition:()=>{}};return P}_t.applyToOptions=t=>{const e=co(t,100,_t);return t.ease=e.ease,t.duration=$(e.duration),t.type="keyframes",t};function Se({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:c=.5,restSpeed:u}){const h=t[0],f={done:!1,value:h},d=b=>a!==void 0&&b<a||l!==void 0&&b>l,m=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let g=n*e;const x=h+g,T=r===void 0?x:r(x);T!==x&&(g=T-h);const v=b=>-g*Math.exp(-b/s),p=b=>T+v(b),P=b=>{const B=v(b),j=p(b);f.done=Math.abs(B)<=c,f.value=f.done?T:j};let w,A;const D=b=>{d(f.value)&&(w=b,A=_t({keyframes:[f.value,m(f.value)],velocity:ci(p,b,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:b=>{let B=!1;return!A&&w===void 0&&(B=!0,P(b),D(b)),w!==void 0&&b>=w?A.next(b-w):(!B&&P(b),f)}}}function To(t,e,n){const s=[],i=n||Y.mix||li,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||W:e;a=Et(l,a)}s.push(a)}return s}function xo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ge(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=To(e,s,i),l=a.length,c=u=>{if(r&&u<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const f=At(t[h],t[h+1],u);return a[h](f)};return n?u=>c(X(t[0],t[o-1],u)):c}function wo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=At(0,e,s);t.push(C(n,1,i))}}function Po(t){const e=[0];return wo(e,t.length-1),e}function So(t,e){return t.map(n=>n*e)}function bo(t,e){return t.map(()=>e||Zs).splice(0,t.length-1)}function Pt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Fr(s)?s.map(Pn):Pn(s),o={done:!1,value:e[0]},r=So(n&&n.length===e.length?n:Po(e),t),a=xo(r,e,{ease:Array.isArray(i)?i:bo(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const Ao=t=>t!==null;function tn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Ao),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const Vo={decay:Se,inertia:Se,tween:Pt,keyframes:Pt,spring:_t};function hi(t){typeof t.type=="string"&&(t.type=Vo[t.type])}class en{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Co=t=>t/100;class nn extends en{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==I.now()&&this.tick(I.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;hi(e);
vendor: 5,260 bytes, line 1
1const{type:n=Pt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Pt;l!==Pt&&typeof a[0]!="number"&&(this.mixKeyframes=Et(Co,li(a[0],a[1])),a=[0,100]);const c=l({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Qe(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=c}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:c=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const T=this.currentTime-c*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?T<0:T>i;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let p=this.currentTime,P=s;if(h){const b=Math.min(this.currentTime,i)/a;let B=Math.floor(b),j=b%1;!j&&b>=1&&(j=1),j===1&&B--,B=Math.min(B,h+1),B%2&&(f==="reverse"?(j=1-j,d&&(j-=d/a)):f==="mirror"&&(P=r)),p=X(0,1,j)*a}const w=v?{done:!1,value:u[0]}:P.next(p);o&&!v&&(w.value=o(w.value));let{done:A}=w;!v&&l!==null&&(A=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return D&&m!==Se&&(w.value=tn(u,this.options,x,this.speed)),g&&g(w.value),D&&this.finish(),w}then(e,n){return this.finished.then(e,n)}get duration(){return U(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(this.currentTime)}set time(e){e=$(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(I.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=U(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=uo,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(I.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function Mo(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const it=t=>t*180/Math.PI,be=t=>{const e=it(Math.atan2(t[1],t[0]));return Ae(e)},Do={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:be,rotateZ:be,skewX:t=>it(Math.atan(t[1])),skewY:t=>it(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ae=t=>(t=t%360,t<0&&(t+=360),t),Dn=be,En=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Rn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Eo={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:En,scaleY:Rn,scale:t=>(En(t)+Rn(t))/2,rotateX:t=>Ae(it(Math.atan2(t[6],t[5]))),rotateY:t=>Ae(it(Math.atan2(-t[2],t[0]))),rotateZ:Dn,rotate:Dn,skewX:t=>it(Math.atan(t[4])),skewY:t=>it(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ve(t){return t.includes("scale")?1:0}function Ce(t,e){if(!t||t==="none")return Ve(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Eo,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Do,i=a}if(!i)return Ve(e);const o=s[e],r=i[1].split(",").map(Lo);return typeof o=="function"?o(r):r[o]}const Ro=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ce(n,e)};function Lo(t){return parseFloat(t.trim())}const gt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],yt=new Set(gt),Ln=t=>t===pt||t===y,ko=new Set(["x","y","z"]),Fo=gt.filter(t=>!ko.has(t));function Bo(t){const e=[];
vendor: 2,452 bytes, line 1
1return Fo.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Z={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:(t,{transform:e})=>Ce(e,"x"),y:(t,{transform:e})=>Ce(e,"y")};Z.translateX=Z.x;Z.translateY=Z.y;const rt=new Set;let Me=!1,De=!1,Ee=!1;function fi(){if(De){const t=Array.from(rt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Bo(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}De=!1,Me=!1,rt.forEach(t=>t.complete(Ee)),rt.clear()}function di(){rt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(De=!0)})}function Io(){Ee=!0,di(),fi(),Ee=!1}class sn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(rt.add(this),Me||(Me=!0,V.read(di),V.resolveKeyframes(fi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}Mo(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),rt.delete(this)}cancel(){this.state==="scheduled"&&(rt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Oo=t=>t.startsWith("--");function mi(t,e,n){Oo(e)?t.style.setProperty(e,n):t.style[e]=n}const jo={};function pi(t,e){const n=Ws(t);return()=>jo[e]??n()}const No=pi(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),gi=pi(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 4,830 bytes, line 1
1,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),xt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xt([0,.65,.55,1]),circOut:xt([.55,0,1,.45]),backIn:xt([.31,.01,.66,-.59]),backOut:xt([.33,1.53,.69,.99])};function yi(t,e){if(t)return typeof t=="function"?gi()?ui(t,e):"ease-out":Js(t)?xt(t):Array.isArray(t)?t.map(n=>yi(n,e)||kn.easeOut):kn[t]}function Uo(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[e]:n};l&&(u.offset=l);const h=yi(a,i);Array.isArray(h)&&(u.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return c&&(f.pseudoElement=c),t.animate(u,f)}function vi(t){return typeof t=="function"&&"applyToOptions"in t}function Wo({type:t,...e}){return vi(t)&&gi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ti extends en{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,Ge(typeof e.type!="string");const c=Wo(e);this.animation=Uo(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=tn(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),mi(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return U(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+U(e)}get time(){return U(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=$(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&No()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),W):i(this)}}const xi={anticipate:Xs,backInOut:_s,circInOut:qs};function Ko(t){return t in xi}function Ho(t){typeof t.ease=="string"&&Ko(t.ease)&&(t.ease=xi[t.ease])}const ae=10;class $o extends Ti{constructor(e){Ho(e),hi(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new nn({...r,autoplay:!1}),l=Math.max(ae,I.now()-this.startTime),c=X(0,ae,l-ae),u=a.sample(l).value,{name:h}=this.options;o&&h&&mi(o,h,u),n.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}const Fn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(G.test(t)||t==="0")&&!t.startsWith("url("));function Go(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 zo(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Fn(i,e),a=Fn(o,e);return!r||!a?!1:Go(t)||(n==="spring"||vi(n))&&s}function Re(t){t.duration=0,t.type="keyframes"}const _o=new Set(["opacity","clipPath","filter","transform"]),Xo=Ws(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Yo(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=e.owner.getProps();return Xo()&&n&&_o.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const qo=40;class Zo extends en{constructor({autoplay:e=!0,delay:n=0,type:s="
1keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:l,motionValue:c,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=I.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:l,motionValue:c,element:u,...h},d=u?.KeyframeResolver||sn;this.keyframeResolver=new d(a,(m,g,x)=>this.onKeyframesResolved(m,g,f,!x),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:l,isHandoff:c,onUpdate:u}=s;this.resolvedAt=I.now(),zo(e,o,r,a)||((Y.instantAnimations||!l)&&u?.(tn(e,s,n)),e[0]=e[e.length-1],Re(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>qo?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!c&&Yo(f),m=f.motionValue?.owner?.current,g=d?new $o({...f,element:m}):new nn(f);g.finished.then(()=>{this.notifyFinished()}).catch(W),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Io()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function wi(t,e,n,s=0,i=1){const o=Array.from(t).sort((c,u)=>c.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const Jo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Qo(t){const e=Jo.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Pi(t,e,n=1){const[s,i]=Qo(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return js(r)?parseFloat(r):r}return Ye(i)?Pi(i,e,n+1):i}const ta={type:"spring",stiffness:500,damping:25,restSpeed:10},ea=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),na={type:"keyframes",duration:.8},sa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ia=(t,{keyframes:e})=>e.length>2?na:yt.has(t)?t.startsWith("scale")?ea(e[1]):ta:sa,ra=t=>t!==null;function oa(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(ra),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}function Si(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function rn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Si(n,t):n}function aa({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const on=(t,e,n,s={},i,o)=>r=>{const a=rn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:c=0}=s;c=c-$(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-c,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};aa(a)||Object.assign(u,ia(t,u)),u.duration&&(u.duration=$(u.duration)),u.repeatDelay&&(u.repeatDelay=$(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Re(u),u.delay===0&&(h=!0)),(Y.instantAnimations||Y.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,Re(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=oa(u.keyframes,a);if(f!==void 0){V.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new nn(u):new Zo(u)};function Bn(t){const e=[{},{}];
vendor: 23,093 bytes, line 1
1return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function an(t,e,n,s){if(typeof e=="function"){const[i,o]=Bn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Bn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function dt(t,e,n){const s=t.getProps();return an(s,e,n!==void 0?n:s.custom,t)}const bi=new Set(["width","height","top","left","right","bottom",...gt]),In=30,la=t=>!isNaN(parseFloat(t));class ua{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=I.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=I.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=la(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new ze);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=I.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>In)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,In);return Ks(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mt(t,e){return new ua(t,e)}const Le=t=>Array.isArray(t);function ca(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,mt(n))}function ha(t){return Le(t)?t[t.length-1]||0:t}function fa(t,e){const n=dt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=ha(o[r]);ca(t,r,a)}}const F=t=>!!(t&&t.getVelocity);function da(t){return!!(F(t)&&t.add)}function ke(t,e){const n=t.getValue("willChange");if(da(n))return n.add(e);if(!n&&Y.WillChange){const s=new Y.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function ln(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const ma="framerAppearId",Ai="data-"+ln(ma);function Vi(t){return t.props[Ai]}function pa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Ci(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const l=t.getDefaultTransition();o=o?Si(o,l):l;const c=o?.reduceMotion;s&&(o=s);const u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const d=t.getValue(f,t.latestValues[f]??null),m=a[f];if(m===void 0||h&&pa(h,f))continue;const g={delay:n,...rn(o||{},f)},x=d.get();if(x!==void 0&&!d.isAnimating&&!Array.isArray(m)&&m===x&&!g.velocity)continue;let T=!1;if(window.MotionHandoffAnimation){const P=Vi(t);if(P){const w=window.MotionHandoffAnimation(P,f,V);w!==null&&(g.startTime=w,T=!0)}}ke(t,f);const v=c??t.shouldReduceMotion;d.start(on(f,d,m,v&&bi.has(f)?{type:!1}:g,t,T));const p=d.animation;p&&u.push(p)}if(r){const f=()=>V.update(()=>{r&&fa(t,r)});u.length?Promise.all(u).then(f):f()}return u}function Fe(t,e,n={}){const s=dt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Ci(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return ga(t,e,l,c,u,h,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[o,r]:[r,o];return l().then(()=>c())}else return Promise.all([o(),r(n.delay)])}function ga(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Fe(l,e,{...r,delay:n+(typeof s=="function"?0:s)+wi(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function ya(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>Fe(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=Fe(t,e,n);else{const i=typeof e=="function"?dt(t,e,n.custom):e;s=Promise.all(Ci(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const va={test:t=>t==="auto",parse:t=>t},Mi=t=>e=>e.test(t),Di=[pt,y,_,q,_r,zr,va],On=t=>Di.find(Mi(t));function Ta(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Us(t):!0}const xa=new Set(["brightness","contrast","saturate","opacity"]);function wa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(qe)||[];if(!s)return t;const i=n.replace(s,"");let o=xa.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Pa=/\b([a-z-]*)\(.*?\)/gu,Be={...G,getAnimatableNone:t=>{const e=t.match(Pa);return e?e.map(wa).join(" "):t}},Ie={...G,getAnimatableNone:t=>{const e=G.parse(t);return G.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},jn={...pt,transform:Math.round},Sa={rotate:q,rotateX:q,rotateY:q,rotateZ:q,scale:Bt,scaleX:Bt,scaleY:Bt,scaleZ:Bt,skew:q,skewX:q,skewY:q,distance:y,translateX:y,translateY:y,translateZ:y,x:y,y,z:y,perspective:y,transformPerspective:y,opacity:Vt,originX:bn,originY:bn,originZ:y},un={borderWidth:y,borderTopWidth:y,borderRightWidth:y,borderBottomWidth:y,borderLeftWidth:y,borderRadius:y,borderTopLeftRadius:y,borderTopRightRadius:y,borderBottomRightRadius:y,borderBottomLeftRadius:y,width:y,maxWidth:y,height:y,maxHeight:y,top:y,right:y,bottom:y,left:y,inset:y,insetBlock:y,insetBlockStart:y,insetBlockEnd:y,insetInline:y,insetInlineStart:y,insetInlineEnd:y,padding:y,paddingTop:y,paddingRight:y,paddingBottom:y,paddingLeft:y,paddingBlock:y,paddingBlockStart:y,paddingBlockEnd:y,paddingInline:y,paddingInlineStart:y,paddingInlineEnd:y,margin:y,marginTop:y,marginRight:y,marginBottom:y,marginLeft:y,marginBlock:y,marginBlockStart:y,marginBlockEnd:y,marginInline:y,marginInlineStart:y,marginInlineEnd:y,fontSize:y,backgroundPositionX:y,backgroundPositionY:y,...Sa,zIndex:jn,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:jn},ba={...un,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:Be,WebkitFilter:Be,mask:Ie,WebkitMask:Ie},Ei=t=>ba[t],Aa=new Set([Be,Ie]);function Ri(t,e){let n=Ei(t);return Aa.has(n)||(n=G),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Va=new Set(["auto","none","0"]);function Ca(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!Va.has(o)&&Ct(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Ri(n,i)}class Ma extends sn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let h=e[u];if(typeof h=="string"&&(h=h.trim(),Ye(h))){const f=Pi(h,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!bi.has(s)||e.length!==2)return;const[i,o]=e,r=On(i),a=On(o),l=Sn(i),c=Sn(o);if(l!==c&&Z[s]){this.needsMeasurement=!0;return}if(r!==a)if(Ln(r)&&Ln(a))for(let u=0;u<e.length;u++){const h=e[u];typeof h=="string"&&(e[u]=parseFloat(h))}else Z[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Ta(e[i]))&&s.push(i);s.length&&Ca(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Z[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=Z[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}const Da=new Set(["opacity","clipPath","filter","transform"]);function Li(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const ki=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Ea(t){return Ns(t)&&"offsetHeight"in t}const{schedule:cn}=Qs(queueMicrotask,!1),H={x:!1,y:!1};function Fi(){return H.x||H.y}function Ra(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function Bi(t,e){const n=Li(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function La(t){return!(t.pointerType==="touch"||Fi())}function ka(t,e,n={}){const[s,i,o]=Bi(t,n);return s.forEach(r=>{let a=!1,l=!1,c;const u=()=>{r.removeEventListener("pointerleave",m)},h=x=>{c&&(c(x),c=void 0),u()},f=x=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(x))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},m=x=>{if(x.pointerType!=="touch"){if(a){l=!0;return}h(x)}},g=x=>{if(!La(x))return;l=!1;const T=e(r,x);typeof T=="function"&&(c=T,r.addEventListener("pointerleave",m,i))};r.addEventListener("pointerenter",g,i),r.addEventListener("pointerdown",d,i)}),o}const Ii=(t,e)=>e?t===e?!0:Ii(t,e.parentElement):!1,hn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Fa=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ba(t){return Fa.has(t.tagName)||t.isContentEditable===!0}const Ia=new Set(["INPUT","SELECT","TEXTAREA"]);function Oa(t){return Ia.has(t.tagName)||t.isContentEditable===!0}const jt=new WeakSet;function Nn(t){return e=>{e.key==="Enter"&&t(e)}}function le(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ja=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Nn(()=>{if(jt.has(n))return;le(n,"down");const i=Nn(()=>{le(n,"up")}),o=()=>le(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Un(t){return hn(t)&&!Fi()}const Wn=new WeakSet;function Na(t,e,n={}){const[s,i,o]=Bi(t,n),r=a=>{const l=a.currentTarget;if(!Un(a)||Wn.has(a))return;jt.add(l),n.stopPropagation&&Wn.add(a);const c=e(l,a),u=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),jt.has(l)&&jt.delete(l),Un(d)&&typeof c=="function"&&c(d,{success:m})},h=d=>{u(d,l===window||l===document||n.useGlobalTarget||Ii(l,d.target))},f=d=>{u(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),Ea(a)&&(a.addEventListener("focus",c=>ja(c,i)),!Ba(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function fn(t){return Ns(t)&&"ownerSVGElement"in t}const Nt=new WeakMap;let Ut;const Oi=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:fn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Ua=Oi("inline","width","offsetWidth"),Wa=Oi("block","height","offsetHeight");function Ka({target:t,borderBoxSize:e}){Nt.get(t)?.forEach(n=>{n(t,{get width(){return Ua(t,e)},get height(){return Wa(t,e)}})})}function Ha(t){t.forEach(Ka)}function $a(){typeof ResizeObserver>"u"||(Ut=new ResizeObserver(Ha))}function Ga(t,e){Ut||$a();const n=Li(t);return n.forEach(s=>{let i=Nt.get(s);i||(i=new Set,Nt.set(s,i)),i.add(e),Ut?.observe(s)}),()=>{n.forEach(s=>{const i=Nt.get(s);i?.delete(e),i?.size||Ut?.unobserve(s)})}}const Wt=new Set;let ut;function za(){ut=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Wt.forEach(e=>e(t))},window.addEventListener("resize",ut)}function _a(t){return Wt.add(t),ut||za(),()=>{Wt.delete(t),!Wt.size&&typeof ut=="function"&&(window.removeEventListener("resize",ut),ut=void 0)}}function Kn(t,e){return typeof t=="function"?_a(t):Ga(t,e)}function Xa(t){return fn(t)&&t.tagName==="svg"}const Ya=[...Di,E,G],qa=t=>Ya.find(Mi(t)),Hn=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:Hn(),y:Hn()}),$n=()=>({min:0,max:0}),R=()=>({x:$n(),y:$n()}),Za=new WeakMap;function Jt(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Mt(t){return typeof t=="string"||Array.isArray(t)}const dn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],mn=["initial",...dn];function Qt(t){return Jt(t.animate)||mn.some(e=>Mt(t[e]))}function ji(t){return!!(Qt(t)||t.variants)}function Ja(t,e,n){for(const s in e){const i=e[s],o=n[s];if(F(i))t.addValue(s,i);else if(F(o))t.addValue(s,mt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,mt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Oe={current:null},Ni={current:!1},Qa=typeof window<"u";function tl(){if(Ni.current=!0,!!Qa)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Oe.current=t.matches;t.addEventListener("change",e),e()}else Oe.current=!1}const Gn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Xt={};function Ui(t){Xt=t}function el(){return Xt}class nl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=sn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=I.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,V.render(this.render,!1,!0))};const{latestValues:c,renderState:u}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=Qt(n),this.isVariantNode=ji(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in f){const m=f[d];c[d]!==void 0&&F(m)&&m.set(c[d])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Za.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,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Ni.current||tl(),this.shouldReduceMotion=Oe.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),J(this.notifyUpdate),J(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Da.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:l,ease:c,duration:u}=n.accelerate,h=new Ti({element:this.current,name:e,keyframes:a,times:l,ease:c,duration:$(u)}),f=r(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=yt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),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 Xt){const n=Xt[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):R()}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 s=0;s<Gn.length;s++){const i=Gn[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Ja(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 s=this.values.get(e);n!==s&&(s&&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 s=this.values.get(e);return s===void 0&&n!==void 0&&(s=mt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(js(s)||Us(s))?s=parseFloat(s):!qa(s)&&G.test(n)&&(s=Ri(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=an(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new ze),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){cn.render(this.render)}}class Wi extends nl{constructor(){super(...arguments),this.KeyframeResolver=Ma}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Q{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ki({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function sl({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function il(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ue(t){return t===void 0||t===1}function je({scale:t,scaleX:e,scaleY:n}){return!ue(t)||!ue(e)||!ue(n)}function nt(t){return je(t)||Hi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Hi(t){return zn(t.x)||zn(t.y)}function zn(t){return t&&t!=="0%"}function Yt(t,e,n){const s=t-n,i=e*s;return n+i}
vendor: 4,187 bytes, line 1
1function _n(t,e,n,s,i){return i!==void 0&&(t=Yt(t,i,s)),Yt(t,n,s)+e}function Ne(t,e=0,n=1,s,i){t.min=_n(t.min,e,n,s,i),t.max=_n(t.max,e,n,s,i)}function $i(t,{x:e,y:n}){Ne(t.x,e.translate,e.scale,e.originPoint),Ne(t.y,n.translate,n.scale,n.originPoint)}const Xn=.999999999999,Yn=1.0000000000001;function rl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ft(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,$i(t,r)),s&&nt(o.latestValues)&&ft(t,o.latestValues))}e.x<Yn&&e.x>Xn&&(e.x=1),e.y<Yn&&e.y>Xn&&(e.y=1)}function ht(t,e){t.min=t.min+e,t.max=t.max+e}function qn(t,e,n,s,i=.5){const o=C(t.min,t.max,i);Ne(t,e,n,o,s)}function Zn(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function ft(t,e){qn(t.x,Zn(e.x,t.x),e.scaleX,e.scale,e.originX),qn(t.y,Zn(e.y,t.y),e.scaleY,e.scale,e.originY)}function Gi(t,e){return Ki(il(t.getBoundingClientRect(),e))}function ol(t,e,n){const s=Gi(t,n),{scroll:i}=e;return i&&(ht(s.x,i.offset.x),ht(s.y,i.offset.y)),s}const al={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ll=gt.length;function ul(t,e,n){let s="",i=!0;for(let o=0;o<ll;o++){const r=gt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(r.startsWith("scale")?1:0);else{const c=parseFloat(a);l=r.startsWith("scale")?c===1:c===0}if(!l||n){const c=ki(a,un[r]);if(!l){i=!1;const u=al[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function pn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const c=e[l];if(yt.has(l)){r=!0;continue}else if(ei(l)){i[l]=c;continue}else{const u=ki(c,un[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=ul(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=o;s.transformOrigin=`${l} ${c} ${u}`}}function zi(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Jn(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Tt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(y.test(t))t=parseFloat(t);else return t;const n=Jn(t,e.target.x),s=Jn(t,e.target.y);return`${n}% ${s}%`}},cl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=G.parse(t);if(i.length>5)return s;const o=G.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const c=C(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}},Ue={borderRadius:{...Tt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Tt,borderTopRightRadius:Tt,borderBottomLeftRadius:Tt,borderBottomRightRadius:Tt,boxShadow:cl};function _i(t,{layout:e,layoutId:n}){return yt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ue[t]||t==="opacity")}function gn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(F(s[r])||i&&F(i[r])||_i(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function hl(t){return window.getComputedStyle(t)}class fl extends Wi{constructor(){super(...arguments),this.type="html",this.renderInstance=zi}readValueFromInstance(e,n){if(yt.has(n))return this.projection?.isProjecting?Ve(n):Ro(e,n);{const s=hl(e),i=(ei(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Gi(e,n)}build(e,n,s){pn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return gn(e,n,s)}}const dl={offset:"stroke-dashoffset",array:"stroke-dasharray"},ml={offset:"strokeDashoffset",array:"strokeDasharray"};function pl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?dl:ml;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const gl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xi(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a}
vendor: 4,244 bytes, line 1
1,l,c,u){if(pn(t,a,c),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const d of gl)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&pl(h,i,o,r,!1)}const Yi=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"]),qi=t=>typeof t=="string"&&t.toLowerCase()==="svg";function yl(t,e,n,s){zi(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(Yi.has(i)?i:ln(i),e.attrs[i])}function Zi(t,e,n){const s=gn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const o=gt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class vl extends Wi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=R}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(yt.has(n)){const s=Ei(n);return s&&s.default||0}return n=Yi.has(n)?n:ln(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Zi(e,n,s)}build(e,n,s){Xi(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){yl(e,n,s,i)}mount(e){this.isSVGTag=qi(e.tagName),super.mount(e)}}const Tl=mn.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<Tl;n++){const s=mn[n],i=t.props[s];(Mt(i)||i===!1)&&(e[s]=i)}return e}function Qi(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const xl=[...dn].reverse(),wl=dn.length;function Pl(t){return e=>Promise.all(e.map(({animation:n,options:s})=>ya(t,n,s)))}function Sl(t){let e=Pl(t),n=Qn(),s=!0,i=!1;const o=c=>(u,h)=>{const f=dt(t,h,c==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:d,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function r(c){e=c(t)}function a(c){const{props:u}=t,h=Ji(t.parent)||{},f=[],d=new Set;let m={},g=1/0;for(let T=0;T<wl;T++){const v=xl[T],p=n[v],P=u[v]!==void 0?u[v]:h[v],w=Mt(P),A=v===c?p.isActive:null;A===!1&&(g=T);let D=P===h[v]&&P!==u[v]&&w;if(D&&(s||i)&&t.manuallyAnimateOnMount&&(D=!1),p.protectedKeys={...m},!p.isActive&&A===null||!P&&!p.prevProp||Jt(P)||typeof P=="boolean")continue;if(v==="exit"&&p.isActive&&A!==!0){p.prevResolvedValues&&(m={...m,...p.prevResolvedValues});continue}const b=bl(p.prevProp,P);let B=b||v===c&&p.isActive&&!D&&w||T>g&&w,j=!1;const ee=Array.isArray(P)?P:[P];let vt=ee.reduce(o(v),{});A===!1&&(vt={});const{prevResolvedValues:Tn={}}=p,Sr={...Tn,...vt},xn=L=>{B=!0,d.has(L)&&(j=!0,d.delete(L)),p.needsAnimating[L]=!0;const N=t.getValue(L);N&&(N.liveStyle=!1)};for(const L in Sr){const N=vt[L],tt=Tn[L];if(m.hasOwnProperty(L))continue;let ot=!1;Le(N)&&Le(tt)?ot=!Qi(N,tt):ot=N!==tt,ot?N!=null?xn(L):d.add(L):N!==void 0&&d.has(L)?xn(L):p.protectedKeys[L]=!0}p.prevProp=P,p.prevResolvedValues=vt,p.isActive&&(m={...m,...vt}),(s||i)&&t.blockInitialAnimation&&(B=!1);const wn=D&&b;B&&(!wn||j)&&f.push(...ee.map(L=>{const N={type:v};if(typeof L=="string"&&(s||i)&&!wn&&t.manuallyAnimateOnMount&&t.parent){const{parent:tt}=t,ot=dt(tt,L);if(tt.enteringChildren&&ot){const{delayChildren:br}=ot.transition||{};N.delay=wi(tt.enteringChildren,t,br)}}return{animation:L,options:N}}))}if(d.size){const T={};if(typeof u.initial!="boolean"){const v=dt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);v&&v.transition&&(T.transition=v.transition)}d.forEach(v=>{const p=t.getBaseTarget(v),P=t.getValue(v);P&&(P.liveStyle=!0),T[v]=p??null}),f.push({animation:T})}let x=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(x=!1),s=!1,i=!1,x?e(f):Prom
vendor: 4,243 bytes, line 1
1ise.resolve()}function l(c,u){if(n[c].isActive===u)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(c,u)),n[c].isActive=u;const h=a(c);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Qn(),i=!0}}}function bl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Qi(e,t):!1}function et(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Qn(){return{animate:et(!0),whileInView:et(),whileHover:et(),whileTap:et(),whileDrag:et(),whileFocus:et(),exit:et()}}function ts(t,e){t.min=e.min,t.max=e.max}function K(t,e){ts(t.x,e.x),ts(t.y,e.y)}function es(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const tr=1e-4,Al=1-tr,Vl=1+tr,er=.01,Cl=0-er,Ml=0+er;function O(t){return t.max-t.min}function Dl(t,e,n){return Math.abs(t-e)<=n}function ns(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=O(n)/O(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Al&&t.scale<=Vl||isNaN(t.scale))&&(t.scale=1),(t.translate>=Cl&&t.translate<=Ml||isNaN(t.translate))&&(t.translate=0)}function St(t,e,n,s){ns(t.x,e.x,n.x,s?s.originX:void 0),ns(t.y,e.y,n.y,s?s.originY:void 0)}function ss(t,e,n){t.min=n.min+e.min,t.max=t.min+O(e)}function El(t,e,n){ss(t.x,e.x,n.x),ss(t.y,e.y,n.y)}function is(t,e,n){t.min=e.min-n.min,t.max=t.min+O(e)}function qt(t,e,n){is(t.x,e.x,n.x),is(t.y,e.y,n.y)}function rs(t,e,n,s,i){return t-=e,t=Yt(t,1/n,s),i!==void 0&&(t=Yt(t,1/i,s)),t}function Rl(t,e=0,n=1,s=.5,i,o=t,r=t){if(_.test(e)&&(e=parseFloat(e),e=C(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=C(o.min,o.max,s);t===o&&(a-=e),t.min=rs(t.min,e,n,a,i),t.max=rs(t.max,e,n,a,i)}function os(t,e,[n,s,i],o,r){Rl(t,e[n],e[s],e[i],e.scale,o,r)}const Ll=["x","scaleX","originX"],kl=["y","scaleY","originY"];function as(t,e,n,s){os(t.x,e,Ll,n?n.x:void 0,s?s.x:void 0),os(t.y,e,kl,n?n.y:void 0,s?s.y:void 0)}function ls(t){return t.translate===0&&t.scale===1}function nr(t){return ls(t.x)&&ls(t.y)}function us(t,e){return t.min===e.min&&t.max===e.max}function Fl(t,e){return us(t.x,e.x)&&us(t.y,e.y)}function cs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sr(t,e){return cs(t.x,e.x)&&cs(t.y,e.y)}function hs(t){return O(t.x)/O(t.y)}function fs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function z(t){return[t("x"),t("y")]}function Bl(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:c,rotate:u,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;c&&(s=`perspective(${c}px) ${s}`),u&&(s+=`rotate(${u}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const ir=["TopLeft","TopRight","BottomLeft","BottomRight"],Il=ir.length,ds=t=>typeof t=="string"?parseFloat(t):t,ms=t=>typeof t=="number"||y.test(t);function Ol(t,e,n,s,i,o){i?(t.opacity=C(0,n.opacity??1,jl(s)),t.opacityExit=C(e.opacity??1,0,Nl(s))):o&&(t.opacity=C(e.opacity??1,n.opacity??1,s));for(let r=0;r<Il;r++){const a=`border${ir[r]}Radius`;let l=ps(e,a),c=ps(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||ms(l)===ms(c)?(t[a]=Math.max(C(ds(l),ds(c),s),0),(_.test(c)||_.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=C(e.rotate||0,n.rotate||0,s))}function ps(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const jl=rr(0,.5,Ys),Nl=rr(.5,.95,W);function rr(t,e,n){return s=>s<t?0:s>e?1:n(At(t,e,s))}function Ul(t,e,n){const s=F(t)?t:mt(t);return s.start(on("",s,e,n)),s.animation}function Dt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Wl=(t,e)=>t.depth-e.depth;class Kl{constructor(){this.children=[],this.isDirty=!1}add(e){$e(this.children,e),this.isDirty=!0}remove(e){$t(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Wl),this.isDirty=!1,this.children.forEac
vendor: 4,178 bytes, line 1
1h(e)}}function Hl(t,e){const n=I.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(J(s),t(o-e))};return V.setup(s,!0),()=>J(s)}function Kt(t){return F(t)?t.get():t}class $l{constructor(){this.members=[]}add(e){$e(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&($t(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if($t(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){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Ht={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ce=["","X","Y","Z"],Gl=1e3;let zl=0;function he(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function or(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Vi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&or(s)}function ar({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=zl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Yl),this.nodes.forEach(Ql),this.nodes.forEach(tu),this.nodes.forEach(ql)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,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 Kl)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new ze),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=fn(r)&&!Xa(r),this.instance=r;const{layoutId:a,layout:l,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),t){let u,h=0;const f=()=>this.root.updateBlockedByResize=!1;V.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=Hl(f,250),Ht.hasAnimatedSinceResize&&(Ht.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 24,149 bytes, line 1
1h(vs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||l)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||c.getDefaultTransition()||ru,{onLayoutAnimationStart:g,onLayoutAnimationComplete:x}=c.getProps(),T=!this.targetLayout||!sr(this.targetLayout,d),v=!h&&f;if(this.options.layoutRoot||this.resumeFrom||v||h&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const p={...rn(m,"layout"),onPlay:g,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(p.delay=0,p.type=!1),this.startAnimation(p),this.setAnimationOrigin(u,v)}else h||vs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),J(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(eu),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&or(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(gs);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ys);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Jl),this.nodes.forEach(_l),this.nodes.forEach(Xl)):this.nodes.forEach(ys),this.clearAllSnapshots();const a=I.now();k.delta=X(0,1e3/60,a-k.timestamp),k.timestamp=a,k.isProcessing=!0,ne.update.process(k),ne.preRender.process(k),ne.render.process(k),k.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Zl),this.sharedNodes.forEach(nu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!O(this.snapshot.measuredBox.x)&&!O(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=R(),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,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const l=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!nr(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||nt(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),ou(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return R();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(au))){const{scroll:c}=this.root;c&&(ht(a.x,c.offset.x),ht(a.y,c.offset.y))}return a}removeElementScroll(r){const a=R();if(K(a,r),this.scroll?.wasRoot)return a;for(let l=0;l<this.path.length;l++){const c=this.path[l],{scroll:u,options:h}=c;c!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&K(a,r),ht(a.x,u.offset.x),ht(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=R();K(l,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ft(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),nt(u.latestValues)&&ft(l,u.latestValues)}return nt(this.latestValues)&&ft(l,this.latestValues),l}removeTransform(r){const a=R();K(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!nt(c.latestValues))continue;je(c.latestValues)&&c.updateSnapshot();const u=R(),h=c.measurePageBox();K(u,h),as(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return nt(this.latestValues)&&as(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.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!==k.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(r||l&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=k.timestamp;const f=this.getClosestProjectingParent();f&&this.linkedParentVersion!==f.layoutVersion&&!f.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(f&&f.layout?this.createRelativeTarget(f,this.layout.layoutBox,f.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=R(),this.targetWithTransforms=R()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),El(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):K(this.target,this.layout.layoutBox),$i(this.target,this.targetDelta)):K(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?this.createRelativeTarget(f,this.target,f.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||je(this.parent.latestValues)||Hi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,l){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=R(),this.relativeTargetOrigin=R(),qt(this.relativeTargetOrigin,a,l),K(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let l=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===k.timestamp&&(l=!1),l)return;const{layout:c,layoutId:u}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||u))return;K(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;rl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=R());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(es(this.prevProjectionDelta.x,this.projectionDelta.x),es(this.prevProjectionDelta.y,this.projectionDelta.y)),St(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!fs(this.projectionDelta.x,this.prevProjectionDelta.x)||!fs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=R(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=d!==m,x=this.getStack(),T=!x||x.members.length<=1,v=!!(g&&!T&&this.options.crossfade===!0&&!this.path.some(iu));this.animationProgress=0;let p;this.mixTargetDelta=P=>{const w=P/1e3;Ts(h.x,r.x,w),Ts(h.y,r.y,w),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qt(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),su(this.relativeTarget,this.relativeTargetOrigin,f,w),p&&Fl(this.relativeTarget,p)&&(this.isProjectionDirty=!1),p||(p=R()),K(p,this.relativeTarget)),g&&(this.animationValues=u,Ol(u,c,this.latestValues,w,v,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=w},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(J(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{Ht.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Ul(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.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 r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:u}=r;if(!(!a||!l||!c)){if(this!==r&&this.layout&&c&&lr(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||R();const h=O(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=O(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}K(a,l),ft(a,u),St(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new $l),this.sharedNodes.get(r).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const c={};l.z&&he("z",r,c,this.animationValues);for(let u=0;u<ce.length;u++)he(`rotate${ce[u]}`,r,c,this.animationValues),he(`skew${ce[u]}`,r,c,this.animationValues);r.render();for(const u in c)r.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Kt(a?.pointerEvents)||"",r.transform=l?l(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Kt(a?.pointerEvents)||""),this.hasProjected&&!nt(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Bl(this.projectionDeltaWithTransform,this.treeScale,u);l&&(h=l(u,h)),r.transform=h;const{x:f,y:d}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${d.origin*100}% 0`,c.animationValues?r.opacity=c===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=c===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in Ue){if(u[m]===void 0)continue;const{correct:g,applyTo:x,isCSSVariable:T}=Ue[m],v=h==="none"?u[m]:g(u[m],c);if(x){const p=x.length;for(let P=0;P<p;P++)r[x[P]]=v}else T?this.options.visualElement.renderState.vars[m]=v:r[m]=v}this.options.layoutId&&(r.pointerEvents=c===this?Kt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(gs),this.root.sharedNodes.clear()}}}function _l(t){t.updateLayout()}function Xl(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;i==="size"?z(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=O(h);h.min=n[u].min,h.max=h.min+f}):lr(i,e.layoutBox,n)&&z(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=O(n[u]);h.max=h.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const r=ct();St(r,n,e.layoutBox);const a=ct();o?St(a,t.applyTransform(s,!0),e.measuredBox):St(a,n,e.layoutBox);const l=!nr(r);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const d=R();qt(d,e.layoutBox,h.layoutBox);const m=R();qt(m,n,f.layoutBox),sr(d,m)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=d,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Yl(t){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 ql(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Zl(t){t.clearSnapshot()}function gs(t){t.clearMeasurements()}function ys(t){t.isLayoutDirty=!1}function Jl(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function vs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Ql(t){t.resolveTargetDelta()}function tu(t){t.calcProjection()}function eu(t){t.resetSkewAndRotation()}function nu(t){t.removeLeadSnapshot()}function Ts(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function xs(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function su(t,e,n,s){xs(t.x,e.x,n.x,s),xs(t.y,e.y,n.y,s)}function iu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const ru={duration:.45,ease:[.4,0,.1,1]},ws=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ps=ws("applewebkit/")&&!ws("chrome/")?Math.round:W;function Ss(t){t.min=Ps(t.min),t.max=Ps(t.max)}function ou(t){Ss(t.x),Ss(t.y)}function lr(t,e,n){return t==="position"||t==="preserve-aspect"&&!Dl(hs(e),hs(n),.2)}function au(t){return t!==t.root&&t.scroll?.wasRoot}const lu=ar({attachResizeListener:(t,e)=>Dt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),fe={current:void 0},ur=ar({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!fe.current){const t=new lu({});t.mount(window),t.setOptions({layoutScroll:!0}),fe.current=t}return fe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),cr=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function uu(t=!0){const e=S.useContext(He);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=S.useId();S.useEffect(()=>{if(t)return i(o)},[t]);const r=S.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const hr=S.createContext({strict:!1}),bs={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"]};let As=!1;function cu(){if(As)return;const t={};for(const e in bs)t[e]={isEnabled:n=>bs[e].some(s=>!!n[s])};Ui(t),As=!0}function fr(){return cu(),el()}function hu(t){const e=fr();for(const n in t)e[n]={...e[n],...t[n]};Ui(e)}const fu=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","propagate","ignoreStrict","viewport"]);function Zt(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||fu.has(t)}let dr=t=>!Zt(t);function du(t){typeof t=="function"&&(dr=e=>e.startsWith("on")?!Zt(e):t(e))}try{du(require("@emotion/is-prop-valid").default)}catch{}function mu(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(dr(i)||n===!0&&Zt(i)||!e&&!Zt(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const te=S.createContext({});function pu(t,e){if(Qt(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Mt(n)?n:void 0,animate:Mt(s)?s:void 0}}return t.inherit!==!1?e:{}}function gu(t){const{initial:e,animate:n}=pu(t,S.useContext(te));return S.useMemo(()=>({initial:e,animate:n}),[Vs(e),Vs(n)])}function Vs(t){return Array.isArray(t)?t.join(" "):t}const yn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mr(t,e,n){for(const s in e)!F(e[s])&&!_i(s,n)&&(t[s]=e[s])}function yu({transformTemplate:t},e){return S.useMemo(()=>{const n=yn();return pn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function vu(t,e){const n=t.style||{},s={};return mr(s,n,t),Object.assign(s,yu(t,e)),s}function Tu(t,e){const n={},s=vu(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.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=s,n}const pr=()=>({...yn(),attrs:{}});function xu(t,e,n,s){const i=S.useMemo(()=>{const o=pr();return Xi(o,e,qi(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};mr(o,t.style,t),i.style={...o,...i.style}}return i}const wu=["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 vn(t){return typeof t!="string"||t.includes("-")?!1:!!(wu.indexOf(t)>-1||/[A-Z]/u.test(t))}function Pu(t,e,n,{latestValues:s},i,o=!1,r){const l=(r??vn(t)?xu:Tu)(e,s,i,t),c=mu(e,typeof t=="string",o),u=t!==S.Fragment?{...c,...l,ref:n}:{},{children:h}=e,f=S.useMemo(()=>F(h)?h.get():h,[h]);return S.createElement(t,{...u,children:f})}function Su({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:bu(n,s,i,t),renderState:e()}}function bu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Kt(o[f]);let{initial:r,animate:a}=t;const l=Qt(t),c=ji(t);e&&c&&!l&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const h=u?a:r;if(h&&typeof h!="boolean"&&!Jt(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=an(t,f[d]);if(m){const{transitionEnd:g,transition:x,...T}=m;for(const v in T){let p=T[v];
vendor: 22,632 bytes, line 1
1if(Array.isArray(p)){const P=u?p.length-1:0;p=p[P]}p!==null&&(i[v]=p)}for(const v in g)i[v]=g[v]}}}return i}const gr=t=>(e,n)=>{const s=S.useContext(te),i=S.useContext(He),o=()=>Su(t,e,s,i);return n?o():Ar(o)},Au=gr({scrapeMotionValuesFromProps:gn,createRenderState:yn}),Vu=gr({scrapeMotionValuesFromProps:Zi,createRenderState:pr}),Cu=Symbol.for("motionComponentSymbol");function Mu(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(o=>{o&&t.onMount?.(o);const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const yr=S.createContext({});function at(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Du(t,e,n,s,i,o){const{visualElement:r}=S.useContext(te),a=S.useContext(hr),l=S.useContext(He),c=S.useContext(cr),u=c.reducedMotion,h=c.skipAnimations,f=S.useRef(null),d=S.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:r,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u,skipAnimations:h,isSVG:o}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,g=S.useContext(yr);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Eu(f.current,n,i,g);const x=S.useRef(!1);S.useInsertionEffect(()=>{m&&x.current&&m.update(n,l)});const T=n[Ai],v=S.useRef(!!T&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return Cr(()=>{d.current=!0,m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),v.current=!1),m.enteringChildren=void 0)}),m}function Eu(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:vr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&at(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function vr(t){if(t)return t.options.allowProjection!==!1?t.projection:vr(t.parent)}function de(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&hu(s);const o=n?n==="svg":vn(t),r=o?Vu:Au;function a(c,u){let h;const f={...S.useContext(cr),...c,layoutId:Ru(c)},{isStatic:d}=f,m=gu(c),g=r(c,d);if(!d&&typeof window<"u"){Lu();const x=ku(f);h=x.MeasureLayout,m.visualElement=Du(t,g,f,i,x.ProjectionNode,o)}return Te.jsxs(te.Provider,{value:m,children:[h&&m.visualElement?Te.jsx(h,{visualElement:m.visualElement,...f}):null,Pu(t,c,Mu(g,m.visualElement,u),g,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=S.forwardRef(a);return l[Cu]=t,l}function Ru({layoutId:t}){const e=S.useContext(Os).id;return e&&t!==void 0?e+"-"+t:t}function Lu(t,e){S.useContext(hr).strict}function ku(t){const e=fr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Fu(t,e){if(typeof Proxy>"u")return de;const n=new Map,s=(o,r)=>de(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,de(r,void 0,t,e)),n.get(r))})}const Bu=(t,e)=>e.isSVG??vn(t)?new vl(e):new fl(e,{allowProjection:t!==S.Fragment});class Iu extends Q{constructor(e){super(e),e.animationState||(e.animationState=Sl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Jt(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Ou=0;class ju extends Q{constructor(){super(...arguments),this.id=Ou++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Nu={animation:{Feature:Iu},exit:{Feature:ju}};function kt(t){return{point:{x:t.pageX,y:t.pageY}}}const Uu=t=>e=>hn(e)&&t(e,kt(e));function bt(t,e,n,s){return Dt(t,e,Uu(n),s)}const Tr=({current:t})=>t?t.ownerDocument.defaultView:null,Cs=(t,e)=>Math.abs(t-e);function Wu(t,e){const n=Cs(t.x,e.x),s=Cs(t.y,e.y);return Math.sqrt(n**2+s**2)}const Ms=new Set(["auto","scroll"]);class xr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=pe(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Wu(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!g)return;const{point:x}=d,{timestamp:T}=k;this.history.push({...x,timestamp:T});const{onStart:v,onMove:p}=this.handlers;m||(v&&v(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=me(m,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:g,onSessionEnd:x,resumeAnimation:T}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=pe(d.type==="pointercancel"?this.lastMoveEventInfo:me(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,v),x&&x(d,v)},!hn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const l=kt(e),c=me(l,this.transformPagePoint),{point:u}=c,{timestamp:h}=k;this.history=[{...u,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,pe(c,this.history)),this.removeListeners=Et(bt(this.contextWindow,"pointermove",this.handlePointerMove),bt(this.contextWindow,"pointerup",this.handlePointerUp),bt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Ms.has(s.overflowX)||Ms.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),J(this.updatePoint)}}function me(t,e){return e?{point:e(t.point)}:t}function Ds(t,e){return{x:t.x-e.x,y:t.y-e.y}}function pe({point:t},e){return{point:t,delta:Ds(t,wr(e)),offset:Ds(t,Ku(e)),velocity:Hu(e,.1)}}function Ku(t){return t[0]}function wr(t){return t[t.length-1]}function Hu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=wr(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>$(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>$(e)*2&&(s=t[1]);const o=U(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function $u(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?C(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function Es(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 Gu(t,{top:e,left:n,bottom:s,right:i}){return{x:Es(t.x,n,i),y:Es(t.y,e,s)}}function Rs(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function zu(t,e){return{x:Rs(t.x,e.x),y:Rs(t.y,e.y)}}function _u(t,e){let n=.5;const s=O(t),i=O(e);return i>s?n=At(e.min,e.max-s,t.min):s>i&&(n=At(t.min,t.max-i,e.min)),X(0,1,n)}function Xu(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 We=.35;function Yu(t=We){return t===!1?t=0:t===!0&&(t=We),{x:Ls(t,"left","right"),y:Ls(t,"top","bottom")}}function Ls(t,e,n){return{min:ks(t,e),max:ks(t,n)}}function ks(t,e){return typeof t=="number"?t:t[e]||0}const qu=new WeakMap;class Zu{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=R(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=h=>{n&&this.snapToCursor(kt(h).point),this.stopAnimation()},r=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:g}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ra(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),z(T=>{let v=this.getAxisMotionValue(T).get()||0;if(_.test(v)){const{projection:p}=this.visualElement;if(p&&p.layout){const P=p.layout.layoutBox[T];P&&(v=O(P)*(parseFloat(v)/100))}}this.originPoint[T]=v}),g&&V.update(()=>g(h,f),!1,!0),ke(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:g,onDrag:x}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:T}=f;if(m&&this.currentDirection===null){this.currentDirection=Qu(T),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),x&&V.update(()=>x(h,f),!1,!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new xr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Tr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&V.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!It(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=$u(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&at(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Gu(s.layoutBox,e):this.constraints=!1,this.elastic=Yu(n),i!==this.constraints&&!at(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&z(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Xu(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!at(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=ol(s,i.root,this.visualElement.getTransformPagePoint());let r=zu(i.layout.layoutBox,o);if(n){const a=n(sl(r));this.hasMutatedConstraints=!!a,a&&(r=Ki(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=z(u=>{if(!It(u,n,this.currentDirection))return;let h=l&&l[u]||{};r&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(u,m)});return Promise.all(c).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return ke(this.visualElement,e),s.start(on(e,s,0,n,this.visualElement,!1))}stopAnimation(){z(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){z(n=>{const{drag:s}=this.getProps();if(!It(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],l=o.get()||0;o.set(e[n]-C(r,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!at(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};z(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=_u({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),z(r=>{if(!It(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(C(l,c,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;qu.set(this.visualElement,this);const e=this.visualElement.current,n=bt(e,"pointerdown",c=>{const{drag:u,dragListener:h=!0}=this.getProps(),f=c.target,d=f!==e&&Oa(f);u&&h&&!d&&this.start(c)});let s;const i=()=>{const{dragConstraints:c}=this.getProps();at(c)&&c.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Ju(e,c.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),V.read(i);const a=Dt(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(z(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=We,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Fs(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function Ju(t,e,n){const s=Kn(t,Fs(n)),i=Kn(e,Fs(n));return()=>{s(),i()}}function It(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Qu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class tc extends Q{constructor(e){super(e),this.removeGroupControls=W,this.removeListeners=W,this.controls=new Zu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||W}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ge=t=>(e,n)=>{t&&V.update(()=>t(e,n),!1,!0)};class ec extends Q{constructor(){super(...arguments),this.removePointerDownListener=W}onPointerDown(e){this.session=new xr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Tr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:ge(e),onStart:ge(n),onMove:ge(s),onEnd:(o,r)=>{delete this.session,i&&V.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=bt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ye=!1;class nc extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),ye&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Ht.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),ye=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||V.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),cn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;ye=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Pr(t){const[e,n]=uu(),s=S.useContext(Os);return Te.jsx(nc,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(yr),isPresent:e,safeToRemove:n})}const sc={pan:{Feature:ec},drag:{Feature:tc,ProjectionNode:ur,MeasureLayout:Pr}};function Bs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&V.postRender(()=>o(e,kt(e)))}class ic extends Q{mount(){const{current:e}=this.node;e&&(this.unmount=ka(e,(n,s)=>(Bs(this.node,s,"Start"),i=>Bs(this.node,i,"End"))))}unmount(){}}class rc extends Q{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=Et(Dt(this.node.current,"focus",()=>this.onFocus()),Dt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Is(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&V.postRender(()=>o(e,kt(e)))}class oc extends Q{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Na(e,(i,o)=>(Is(this.node,o,"Start"),(r,{success:a})=>Is(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const Ke=new WeakMap,ve=new WeakMap,ac=t=>{const e=Ke.get(t.target);e&&e(t)},lc=t=>{t.forEach(ac)};function uc({root:t,...e}){const n=t||document;ve.has(n)||ve.set(n,{});const s=ve.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(lc,{root:t,...e})),s[i]}function cc(t,e,n){const s=uc(e);return Ke.set(t,n),s.observe(t),()=>{Ke.delete(t),s.unobserve(t)}}const hc={some:0,all:1};class fc extends Q{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:hc[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,o&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=c?u:h;f&&f(l)};return cc(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(dc(e,n))&&this.startObserver()}unmount(){}}function dc({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const mc={inView:{Feature:fc},tap:{Feature:oc},focus:{Feature:rc},hover:{Feature:ic}},pc={layout:{ProjectionNode:ur,MeasureLayout:Pr}},gc={...Nu,...mc,...sc,...pc}
1,xc=Fu(gc,Bu);export{Os as L,cr as M,He as P,uu as a,Cr as b,Ea as i,xc as m,Ar as u};

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.