vendor: 2,748 bytes, line 1
1import{j as K}from"./vendor-query-DvnPdOMX.js";import{r as p}from"./vendor-react-woJBpfBI.js";const Bt=p.createContext({});function et(t){const e=p.useRef(null);return e.current===null&&(e.current=t()),e.current}const fn=typeof window<"u",zt=fn?p.useLayoutEffect:p.useEffect,ve=p.createContext(null);function dn(t,e){t.indexOf(e)===-1&&t.push(e)}function xe(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function So([...t],e,n){const s=e<0?t.length+e:e;if(s>=0&&s<t.length){const i=n<0?t.length+n:n,[o]=t.splice(e,1);t.splice(i,0,o)}return t}const J=(t,e,n)=>n>e?e:n<t?t:n;let Ot=()=>{};const tt={},Ci=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Mi(t){return typeof t=="object"&&t!==null}const Di=t=>/^0[^.\s]+$/u.test(t);function mn(t){let e;return()=>(e===void 0&&(e=t()),e)}const U=t=>t,wo=(t,e)=>n=>e(t(n)),Gt=(...t)=>t.reduce(wo),ht=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class pn{constructor(){this.subscriptions=[]}add(e){return dn(this.subscriptions,e),()=>xe(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 X=t=>t*1e3,H=t=>t/1e3;function gn(t,e){return e?t*(1e3/e):0}const Po=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},Ei=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Ao=1e-7,bo=12;function Vo(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Ei(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>Ao&&++a<bo);return r}function _t(t,e,n,s){if(t===e&&n===s)return U;const i=o=>Vo(o,0,1,t,n);return o=>o===0||o===1?o:Ei(i(o),e,s)}const Ri=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Li=t=>e=>1-t(1-e),Ii=_t(.33,1.53,.69,.99),yn=Li(Ii),ki=Ri(yn),Fi=t=>(t*=2)<1?.5*yn(t):.5*(2-Math.pow(2,-10*(t-1))),vn=t=>1-Math.sin(Math.acos(t)),Bi=Li(vn),Oi=Ri(vn),Co=_t(.42,0,1,1),Mo=_t(0,0,.58,1),ji=_t(.42,0,.58,1),Ni=t=>Array.isArray(t)&&typeof t[0]!="number";function Wi(t,e){return Ni(t)?t[Po(0,t.length,e)]:t}const Ui=t=>Array.isArray(t)&&typeof t[0]=="number",Do={linear:U,easeIn:Co,easeInOut:ji,easeOut:Mo,circIn:vn,circInOut:Oi,circOut:Bi,backIn:yn,backInOut:ki,backOut:Ii,anticipate:Fi},Eo=t=>typeof t=="string",Qn=t=>{if(Ui(t)){Ot(t.length===4);const[e,n,s,i]=t;return _t(e,n,s,i)}else if(Eo(t))return Do[t];return t},te=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Ro(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}
vendor: 24,928 bytes, line 1
1i=!0,[n,s]=[s,n],n.forEach(l),n.clear(),i=!1,o&&(o=!1,c.process(u))}};return c}const Lo=40;function Ki(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=te.reduce((T,A)=>(T[A]=Ro(o),T),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:h,preRender:f,render:d,postRender:m}=r,y=()=>{const T=tt.useManualTiming?i.timestamp:performance.now();n=!1,tt.useManualTiming||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,Lo),1)),i.timestamp=T,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(y))},v=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:te.reduce((T,A)=>{const S=r[A];return T[A]=(b,V=!1,w=!1)=>(n||v(),S.schedule(b,V,w)),T},{}),cancel:T=>{for(let A=0;A<te.length;A++)r[te[A]].cancel(T)},state:i,steps:r}}const{schedule:M,cancel:Y,state:j,steps:Me}=Ki(typeof requestAnimationFrame<"u"?requestAnimationFrame:U,!0);let re;function Io(){re=void 0}const W={now:()=>(re===void 0&&W.set(j.isProcessing||tt.useManualTiming?j.timestamp:performance.now()),re),set:t=>{re=t,queueMicrotask(Io)}},$i=t=>e=>typeof e=="string"&&e.startsWith(t),xn=$i("--"),ko=$i("var(--"),Tn=t=>ko(t)?Fo.test(t.split("/*")[0].trim()):!1,Fo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},jt={...wt,transform:t=>J(0,1,t)},ee={...wt,default:1},Rt=t=>Math.round(t*1e5)/1e5,Sn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bo(t){return t==null}const Oo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wn=(t,e)=>n=>!!(typeof n=="string"&&Oo.test(n)&&n.startsWith(t)||e&&!Bo(n)&&Object.prototype.hasOwnProperty.call(n,e)),Hi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(Sn);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},jo=t=>J(0,255,t),De={...wt,transform:t=>Math.round(jo(t))},at={test:wn("rgb","red"),parse:Hi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+De.transform(t)+", "+De.transform(e)+", "+De.transform(n)+", "+Rt(jt.transform(s))+")"};function No(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 He={test:wn("#"),parse:No,transform:at.transform},Xt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=Xt("deg"),Z=Xt("%"),P=Xt("px"),Wo=Xt("vh"),Uo=Xt("vw"),ts={...Z,parse:t=>Z.parse(t)/100,transform:t=>Z.transform(t*100)},mt={test:wn("hsl","hue"),parse:Hi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+Z.transform(Rt(e))+", "+Z.transform(Rt(n))+", "+Rt(jt.transform(s))+")"},F={test:t=>at.test(t)||He.test(t)||mt.test(t),parse:t=>at.test(t)?at.parse(t):mt.test(t)?mt.parse(t):He.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?at.transform(t):mt.transform(t),getAnimatableNone:t=>{const e=F.parse(t);return e.alpha=0,F.transform(e)}},Ko=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $o(t){return isNaN(t)&&typeof t=="string"&&(t.match(Sn)?.length||0)+(t.match(Ko)?.length||0)>0}const zi="number",Gi="color",Ho="var",zo="var(",es="${}",Go=/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 Nt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Go,l=>(F.test(l)?(s.color.push(o),i.push(Gi),n.push(F.parse(l))):l.startsWith(zo)?(s.var.push(o),i.push(Ho),n.push(l)):(s.number.push(o),i.push(zi),n.push(parseFloat(l))),++o,es)).split(es);return{values:n,split:a,indexes:s,types:i}}function _i(t){return Nt(t).values}function Xi(t){const{split:e,types:n}=Nt(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===zi?o+=Rt(i[r]):a===Gi?o+=F.transform(i[r]):o+=i[r]}return o}}const _o=t=>typeof t=="number"?0:F.test(t)?F.getAnimatableNone(t):t;function Xo(t){const e=_i(t);return Xi(t)(e.map(_o))}const st={test:$o,parse:_i,createTransformer:Xi,getAnimatableNone:Xo};function Ee(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 Yo({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=Ee(l,a,t+1/3),o=Ee(l,a,t),r=Ee(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function fe(t,e){return n=>n>0?e:t}const E=(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)},qo=[He,at,mt],Zo=t=>qo.find(e=>e.test(t));function ns(t){const e=Zo(t);if(!e)return!1;let n=e.parse(t);return e===mt&&(n=Yo(n)),n}const ss=(t,e)=>{const n=ns(t),s=ns(e);if(!n||!s)return fe(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=E(n.alpha,s.alpha,o),at.transform(i))},ze=new Set(["none","hidden"]);function Jo(t,e){return ze.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Qo(t,e){return n=>E(t,e,n)}function Pn(t){return typeof t=="number"?Qo:typeof t=="string"?Tn(t)?fe:F.test(t)?ss:na:Array.isArray(t)?Yi:typeof t=="object"?F.test(t)?ss:ta:fe}function Yi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>Pn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function ta(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=Pn(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function ea(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 na=(t,e)=>{const n=st.createTransformer(e),s=Nt(t),i=Nt(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?ze.has(t)&&!i.values.length||ze.has(e)&&!s.values.length?Jo(t,e):Gt(Yi(ea(s,i),i.values),n):fe(t,e)};function qi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?E(t,e,n):Pn(t)(t,e)}const sa=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>M.update(e,n),stop:()=>Y(e),now:()=>j.isProcessing?j.timestamp:W.now()}},Zi=(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)})`},de=2e4;function An(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<de;)e+=n,s=t.next(e);return e>=de?1/0:e}function Ji(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(An(s),de);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:H(i)}}const ia=5;function Qi(t,e,n){const s=Math.max(e-ia,0);return gn(n-t(s),e-s)}const L={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},Le=.001;function ra({duration:t=L.duration,bounce:e=L.bounce,velocity:n=L.velocity,mass:s=L.mass}){let i,o,r=1-e;r=J(L.minDamping,L.maxDamping,r),t=J(L.minDuration,L.maxDuration,H(t)),r<1?(i=c=>{const u=c*r,h=u*t,f=u-n,d=Ge(c,r),m=Math.exp(-h);return Le-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),y=Ge(Math.pow(c,2),r);return(-i(c)+Le>0?-1:1)*((f-d)*m)/y}):(i=c=>{const u=Math.exp(-c*t),h=(c-n)*t+1;return-Le+u*h},o=c=>{const u=Math.exp(-c*t),h=(n-c)*(t*t);return u*h});const a=5/t,l=aa(i,o,a);if(t=X(t),isNaN(l))return{stiffness:L.stiffness,damping:L.damping,duration:t};{const c=Math.pow(l,2)*s;return{stiffness:c,damping:r*2*Math.sqrt(s*c),duration:t}}}const oa=12;function aa(t,e,n){let s=n;for(let i=1;i<oa;i++)s=s-t(s)/e(s);return s}function Ge(t,e){return t*Math.sqrt(1-e*e)}const la=["duration","bounce"],ua=["stiffness","damping","mass"];function is(t,e){return e.some(n=>t[n]!==void 0)}function ca(t){let e={velocity:L.velocity,stiffness:L.stiffness,damping:L.damping,mass:L.mass,isResolvedFromDuration:!1,...t};if(!is(t,ua)&&is(t,la))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*J(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:L.mass,stiffness:i,damping:o}}else{const n=ra(t);e={...e,...n,mass:L.mass},e.isResolvedFromDuration=!0}return e}function Wt(t=L.visualDuration,e=L.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}=ca({...n,velocity:-H(n.velocity||0)}),m=f||0,y=c/(2*Math.sqrt(l*u)),v=r-o,g=H(Math.sqrt(l/u)),x=Math.abs(v)<5;s||(s=x?L.restSpeed.granular:L.restSpeed.default),i||(i=x?L.restDelta.granular:L.restDelta.default);let T;if(y<1){const S=Ge(g,y);T=b=>{const V=Math.exp(-y*g*b);return r-V*((m+y*g*v)/S*Math.sin(S*b)+v*Math.cos(S*b))}}else if(y===1)T=S=>r-Math.exp(-g*S)*(v+(m+g*v)*S);else{const S=g*Math.sqrt(y*y-1);T=b=>{const V=Math.exp(-y*g*b),w=Math.min(S*b,300);return r-V*((m+y*g*v)*Math.sinh(w)+S*v*Math.cosh(w))/S}}const A={calculatedDuration:d&&h||null,next:S=>{const b=T(S);if(d)a.done=S>=h;else{let V=S===0?m:0;y<1&&(V=S===0?X(m):Qi(T,S,b));const w=Math.abs(V)<=s,C=Math.abs(r-b)<=i;a.done=w&&C}return a.value=a.done?r:b,a},toString:()=>{const S=Math.min(An(A),de),b=Zi(V=>A.next(S*V).value,S,30);return S+"ms "+b},toTransition:()=>{}};return A}Wt.applyToOptions=t=>{const e=Ji(t,100,Wt);return t.ease=e.ease,t.duration=X(e.duration),t.type="keyframes",t};function _e({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=w=>a!==void 0&&w<a||l!==void 0&&w>l,m=w=>a===void 0?l:l===void 0||Math.abs(a-w)<Math.abs(l-w)?a:l;let y=n*e;const v=h+y,g=r===void 0?v:r(v);g!==v&&(y=g-h);const x=w=>-y*Math.exp(-w/s),T=w=>g+x(w),A=w=>{const C=x(w),B=T(w);f.done=Math.abs(C)<=c,f.value=f.done?g:B};let S,b;const V=w=>{d(f.value)&&(S=w,b=Wt({keyframes:[f.value,m(f.value)],velocity:Qi(T,w,f.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return V(0),{calculatedDuration:null,next:w=>{let C=!1;return!b&&S===void 0&&(C=!0,A(w),V(w)),S!==void 0&&w>=S?b.next(w-S):(!C&&A(w),f)}}}function ha(t,e,n){const s=[],i=n||tt.mix||qi,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]||U:e;a=Gt(l,a)}s.push(a)}return s}function bn(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(Ot(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=ha(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=ht(t[h],t[h+1],u);return a[h](f)};return n?u=>c(J(t[0],t[o-1],u)):c}function tr(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=ht(0,e,s);t.push(E(n,1,i))}}function Vn(t){const e=[0];return tr(e,t.length-1),e}function fa(t,e){return t.map(n=>n*e)}function da(t,e){return t.map(()=>e||ji).splice(0,t.length-1)}function Lt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ni(s)?s.map(Qn):Qn(s),o={done:!1,value:e[0]},r=fa(n&&n.length===e.length?n:Vn(e),t),a=bn(r,e,{ease:Array.isArray(i)?i:da(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const ma=t=>t!==null;function Cn(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(ma),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const pa={decay:_e,inertia:_e,tween:Lt,keyframes:Lt,spring:Wt};function er(t){typeof t.type=="string"&&(t.type=pa[t.type])}class Mn{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 ga=t=>t/100;class Te extends Mn{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!==W.now()&&this.tick(W.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;er(e);const{type:n=Lt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const l=n||Lt;l!==Lt&&typeof a[0]!="number"&&(this.mixKeyframes=Gt(ga,qi(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=An(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:y,finalKeyframe:v}=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 g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let T=this.currentTime,A=s;if(h){const w=Math.min(this.currentTime,i)/a;let C=Math.floor(w),B=w%1;!B&&w>=1&&(B=1),B===1&&C--,C=Math.min(C,h+1),C%2&&(f==="reverse"?(B=1-B,d&&(B-=d/a)):f==="mirror"&&(A=r)),T=J(0,1,B)*a}const S=x?{done:!1,value:u[0]}:A.next(T);o&&(S.value=o(S.value));let{done:b}=S;!x&&l!==null&&(b=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&b);return V&&m!==_e&&(S.value=Cn(u,this.options,v,this.speed)),y&&y(S.value),V&&this.finish(),S}then(e,n){return this.finished.then(e,n)}get duration(){return H(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+H(e)}get time(){return H(this.currentTime)}set time(e){e=X(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?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(W.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=H(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=sa,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(W.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 ya(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const lt=t=>t*180/Math.PI,Xe=t=>{const e=lt(Math.atan2(t[1],t[0]));return Ye(e)},va={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Xe,rotateZ:Xe,skewX:t=>lt(Math.atan(t[1])),skewY:t=>lt(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ye=t=>(t=t%360,t<0&&(t+=360),t),rs=Xe,os=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),as=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),xa={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:os,scaleY:as,scale:t=>(os(t)+as(t))/2,rotateX:t=>Ye(lt(Math.atan2(t[6],t[5]))),rotateY:t=>Ye(lt(Math.atan2(-t[2],t[0]))),rotateZ:rs,rotate:rs,skewX:t=>lt(Math.atan(t[4])),skewY:t=>lt(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function qe(t){return t.includes("scale")?1:0}function Ze(t,e){if(!t||t==="none")return qe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=xa,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=va,i=a}if(!i)return qe(e);const o=s[e],r=i[1].split(",").map(Sa);return typeof o=="function"?o(r):r[o]}const Ta=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ze(n,e)};function Sa(t){return parseFloat(t.trim())}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],At=new Set(Pt),ls=t=>t===wt||t===P,wa=new Set(["x","y","z"]),Pa=Pt.filter(t=>!wa.has(t));function Aa(t){const e=[];return Pa.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const ut={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})=>Ze(e,"x"),y:(t,{transform:e})=>Ze(e,"y")};ut.translateX=ut.x;ut.translateY=ut.y;const ct=new Set;let Je=!1,Qe=!1,tn=!1;function nr(){if(Qe){const t=Array.from(ct).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Aa(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)})}Qe=!1,Je=!1,ct.forEach(t=>t.complete(tn)),ct.clear()}function sr(){ct.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Qe=!0)})}function ba(){tn=!0,sr(),nr(),tn=!1}class Dn{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?(ct.add(this),Je||(Je=!0,M.read(sr),M.resolveKeyframes(nr))):(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])}ya(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ct.delete(this)}cancel(){this.state==="scheduled"&&(ct.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Va=t=>t.startsWith("--");function Ca(t,e,n){Va(e)?t.style.setProperty(e,n):t.style[e]=n}const ir=mn(()=>window.ScrollTimeline!==void 0),Ma={};function Da(t,e){const n=mn(t);return()=>Ma[e]??n()}const rr=Da(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Et=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,us={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Et([0,.65,.55,1]),circOut:Et([.55,0,1,.45]),backIn:Et([.31,.01,.66,-.59]),backOut:Et([.33,1.53,.69,.99])};function or(t,e){if(t)return typeof t=="function"?rr()?Zi(t,e):"ease-out":Ui(t)?Et(t):Array.isArray(t)?t.map(n=>or(n,e)||us.easeOut):us[t]}function Ea(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=or(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 En(t){return typeof t=="function"&&"applyToOptions"in t}function Ra({type:t,...e}){return En(t)&&rr()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class La extends Mn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!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,Ot(typeof e.type!="string");const c=Ra(e);this.animation=Ea(n,s,i,c,o),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=Cn(i,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):Ca(n,s,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(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(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return H(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+H(e)}get time(){return H(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=X(e)}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 Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ir()?(this.animation.timeline=e,U):n(this)}}const ar={anticipate:Fi,backInOut:ki,circInOut:Oi};function Ia(t){return t in ar}function ka(t){typeof t.ease=="string"&&Ia(t.ease)&&(t.ease=ar[t.ease])}const cs=10;class Fa extends La{constructor(e){ka(e),er(e),super(e),e.startTime&&(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 Te({...r,autoplay:!1}),l=X(this.finishedTime??this.time);n.setWithVelocity(a.sample(l-cs).value,a.sample(l).value,cs),a.stop()}}const hs=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(st.test(t)||t==="0")&&!t.startsWith("url("));function Ba(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 Oa(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=hs(i,e),a=hs(o,e);return!r||!a?!1:Ba(t)||(n==="spring"||En(n))&&s}function en(t){t.duration=0,t.type="keyframes"}const ja=new Set(["opacity","clipPath","filter","transform"]),Na=mn(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Wa(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 Na()&&n&&ja.has(n)&&(n!=="transform"||!c)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Ua=40;class Ka extends Mn{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=W.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||Dn;this.keyframeResolver=new d(a,(m,y,v)=>this.onKeyframesResolved(m,y,f,!v),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=W.now(),Oa(e,o,r,a)||((tt.instantAnimations||!l)&&u?.(Cn(e,s,n)),e[0]=e[e.length-1],en(s),s.repeat=0);const f={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Ua?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},d=!c&&Wa(f)?new Fa({...f,element:f.motionValue.owner.current}):new Te(f);d.finished.then(()=>this.notifyFinished()).catch(U),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}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(),ba()),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()}}class $a{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e){const n=this.animations.map(s=>s.attachTimeline(e));return()=>{n.forEach((s,i)=>{s&&s(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return fs(this.animations,"duration")}get iterationDuration(){return fs(this.animations,"iterationDuration")}runAll(e){this.animations.forEach(n=>n[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function fs(t,e){let n=0;for(let s=0;s<t.length;s++){const i=t[s][e];i!==null&&i>n&&(n=i)}return n}class Ha extends $a{then(e,n){return this.finished.finally(e).then(()=>{})}}const za=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ga(t){const e=za.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function lr(t,e,n=1){const[s,i]=Ga(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Ci(r)?parseFloat(r):r}return Tn(i)?lr(i,e,n+1):i}function Rn(t,e){return t?.[e]??t?.default??t}const ur=new Set(["width","height","top","left","right","bottom",...Pt]),_a={test:t=>t==="auto",parse:t=>t},cr=t=>e=>e.test(t),hr=[wt,P,Z,nt,Uo,Wo,_a],ds=t=>hr.find(cr(t));function Xa(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Di(t):!0}const Ya=new Set(["brightness","contrast","saturate","opacity"]);function qa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Sn)||[];if(!s)return t;const i=n.replace(s,"");let o=Ya.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Za=/\b([a-z-]*)\(.*?\)/gu,nn={...st,getAnimatableNone:t=>{const e=t.match(Za);return e?e.map(qa).join(" "):t}},ms={...wt,transform:Math.round},Ja={rotate:nt,rotateX:nt,rotateY:nt,rotateZ:nt,scale:ee,scaleX:ee,scaleY:ee,scaleZ:ee,skew:nt,skewX:nt,skewY:nt,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:jt,originX:ts,originY:ts,originZ:P},Ln={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,backgroundPositionX:P,backgroundPositionY:P,...Ja,zIndex:ms,fillOpacity:jt,strokeOpacity:jt,numOctaves:ms},Qa={...Ln,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:nn,WebkitFilter:nn},fr=t=>Qa[t];function dr(t,e){let n=fr(t);return n!==nn&&(n=st),n.getAnimatableNone?n.getAnimatableNone(e):void 0}
vendor: 1,634 bytes, line 1
1const tl=new Set(["auto","none","0"]);function el(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!tl.has(o)&&Nt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=dr(n,i)}class nl extends Dn{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 l=0;l<e.length;l++){let c=e[l];if(typeof c=="string"&&(c=c.trim(),Tn(c))){const u=lr(c,n.current);u!==void 0&&(e[l]=u),l===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!ur.has(s)||e.length!==2)return;const[i,o]=e,r=ds(i),a=ds(o);if(r!==a)if(ls(r)&&ls(a))for(let l=0;l<e.length;l++){const c=e[l];typeof c=="string"&&(e[l]=parseFloat(c))}else ut[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||Xa(e[i]))&&s.push(i);s.length&&el(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=ut[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]=ut[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
vendor: 4,034 bytes, line 1
1h(([a,l])=>{e.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function Se(t,e,n){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)}const mr=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function In(t){return Mi(t)&&"offsetHeight"in t}const ps=30,sl=t=>!isNaN(parseFloat(t)),It={current:void 0};class il{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=W.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=W.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=sl(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 pn);const s=this.events[e].add(n);return e==="change"?()=>{s(),M.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 It.current&&It.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=W.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ps)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ps);return gn(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 _(t,e){return new il(t,e)}const{schedule:kn}=Ki(queueMicrotask,!1),G={x:!1,y:!1};function pr(){return G.x||G.y}function rl(t){return t==="x"||t==="y"?G[t]?null:(G[t]=!0,()=>{G[t]=!1}):G.x||G.y?null:(G.x=G.y=!0,()=>{G.x=G.y=!1})}function gr(t,e){const n=Se(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function gs(t){return!(t.pointerType==="touch"||pr())}function ol(t,e,n={}){const[s,i,o]=gr(t,n),r=a=>{if(!gs(a))return;const{target:l}=a,c=e(l,a);if(typeof c!="function"||!l)return;const u=h=>{gs(h)&&(c(h),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,i)};return s.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}const yr=(t,e)=>e?t===e?!0:yr(t,e.parentElement):!1,Fn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,al=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ll(t){return al.has(t.tagName)||t.tabIndex!==-1}const oe=new WeakSet;function ys(t){return e=>{e.key==="Enter"&&t(e)}}function Ie(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ul=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ys(()=>
1{if(oe.has(n))return;Ie(n,"down");const i=ys(()=>{Ie(n,"up")}),o=()=>Ie(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 vs(t){return Fn(t)&&!pr()}function cl(t,e,n={}){const[s,i,o]=gr(t,n),r=a=>{const l=a.currentTarget;if(!vs(a))return;oe.add(l);const c=e(l,a),u=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),oe.has(l)&&oe.delete(l),vs(d)&&typeof c=="function"&&c(d,{success:m})},h=d=>{u(d,l===window||l===document||n.useGlobalTarget||yr(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),In(a)&&(a.addEventListener("focus",c=>ul(c,i)),!ll(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function we(t){return Mi(t)&&"ownerSVGElement"in t}const ae=new WeakMap;let le;const vr=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:we(s)&&"getBBox"in s?s.getBBox()[e]:s[n],hl=vr("inline","width","offsetWidth"),fl=vr("block","height","offsetHeight");function dl({target:t,borderBoxSize:e}){ae.get(t)?.forEach(n=>{n(t,{get width(){return hl(t,e)},get height(){return fl(t,e)}})})}function ml(t){t.forEach(dl)}function pl(){typeof ResizeObserver>"u"||(le=new ResizeObserver(ml))}function gl(t,e){le||pl();const n=Se(t);return n.forEach(s=>{let i=ae.get(s);i||(i=new Set,ae.set(s,i)),i.add(e),le?.observe(s)}),()=>{n.forEach(s=>{const i=ae.get(s);i?.delete(e),i?.size||le?.unobserve(s)})}}const ue=new Set;let pt;function yl(){pt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ue.forEach(e=>e(t))},window.addEventListener("resize",pt)}function vl(t){return ue.add(t),pt||yl(),()=>{ue.delete(t),!ue.size&&typeof pt=="function"&&(window.removeEventListener("resize",pt),pt=void 0)}}function xl(t,e){return typeof t=="function"?vl(t):gl(t,e)}function xr(t,e){let n;const s=()=>{const{currentTime:i}=e,r=(i===null?0:i.value)/100;n!==r&&t(r),n=r};return M.preUpdate(s,!0),()=>Y(s)}function Tr(t){return we(t)&&t.tagName==="svg"}function Tl(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],o=t[2+n],r=t[3+n],a=bn(i,o,r);return e?a(s):a}const I=t=>!!(t&&t.getVelocity);function Sl(t,e,n){const s=t.get();let i=null,o=s,r;const a=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,l=()=>{i&&(i.stop(),i=null)},c=()=>{l(),i=new Te({keyframes:[Ts(t.get()),Ts(o)],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:r})};if(t.attach((u,h)=>{o=u,r=f=>h(xs(f,a)),M.postRender(c)},l),I(e)){const u=e.on("change",f=>t.set(xs(f,a))),h=t.on("destroy",u);return()=>{u(),h()}}return l}function xs(t,e){return e?t+e:t}function Ts(t){return typeof t=="number"?t:parseFloat(t)}const wl=[...hr,F,st],Pl=t=>wl.find(cr(t)),Yt=p.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Ss(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Al(...t){return e=>{let n=!1;const s=t.map(i=>{const o=Ss(i,e);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<s.length;i++){const o=s[i];typeof o=="function"?o():Ss(t[i],null)}}}}function bl(...t){return p.useCallback(Al(...t),t)}class Vl extends p.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,i=In(s)&&s.offsetWidth||0,o=this.props.sizeRef.current;o.height=n.offsetHeight||0,o.width=n.offsetWidth||0,o.top=n.offsetTop,o.left=n.offsetLeft,o.right=i-o.width-o.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Cl({children:t,isPresent:e,anchorX:n,root:s}){const i=p.useId(),o=p.useRef(null),r=p.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=p.useContext(Yt),l=bl(o,t?.ref);return p.useInsertionEffect(()=>{const{width:c,height:u,top:h,left:f,right:d}=r.current;if(e||!o.current||!c||!u)return;const m=n==="left"?`left: ${f}`:`right: ${d}`;o.current.dataset.motionPopId=i;const y=document.createElement("style");a&&(y.nonce=a);const v=s??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${i}"] { 3 position: absolute !important; 4 width: ${c}px !important; 5 height: ${u}px !important; 6 ${m}px !important; 7 top: ${h}px !important; 8 } 9 `),()=>{v.contains(y)&&v.removeChild(y)}},[e]),K.jsx(Vl,{isPresent:e,childRef:o,sizeRef:r,children:p.cloneElement(t,{ref:l})})}const Ml=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:i,presenceAffectsLayout:o,mode:r,anchorX:a,root:l})=>{const c=et(Dl),u=p.useId();let h=!0,f=p.useMemo(()=>(h=!1,{id:u,initial:e,isPresent:n,custom:i,onExitComplete:d=>{c.set(d,!0);for(const m of c.values())if(!m)return;s&&s()},register:d=>(c.set(d,!1),()=>
9c.delete(d))}),[n,c,s]);return o&&h&&(f={...f}),p.useMemo(()=>{c.forEach((d,m)=>c.set(m,!1))},[n]),p.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),r==="popLayout"&&(t=K.jsx(Cl,{isPresent:n,anchorX:a,root:l,children:t})),K.jsx(ve.Provider,{value:f,children:t})};function Dl(){return new Map}function Sr(t=!0){const e=p.useContext(ve);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=p.useId();p.useEffect(()=>{if(t)return i(o)},[t]);const r=p.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const ne=t=>t.key||"";function ws(t){const e=[];return p.Children.forEach(t,n=>{p.isValidElement(n)&&e.push(n)}),e}const sf=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:i=!0,mode:o="sync",propagate:r=!1,anchorX:a="left",root:l})=>{const[c,u]=Sr(r),h=p.useMemo(()=>ws(t),[t]),f=r&&!c?[]:h.map(ne),d=p.useRef(!0),m=p.useRef(h),y=et(()=>new Map),[v,g]=p.useState(h),[x,T]=p.useState(h);zt(()=>{d.current=!1,m.current=h;for(let b=0;b<x.length;b++){const V=ne(x[b]);f.includes(V)?y.delete(V):y.get(V)!==!0&&y.set(V,!1)}},[x,f.length,f.join("-")]);const A=[];if(h!==v){let b=[...h];for(let V=0;V<x.length;V++){const w=x[V],C=ne(w);f.includes(C)||(b.splice(V,0,w),A.push(w))}return o==="wait"&&A.length&&(b=A),T(ws(b)),g(h),null}const{forceRender:S}=p.useContext(Bt);return K.jsx(K.Fragment,{children:x.map(b=>{const V=ne(b),w=r&&!c?!1:h===x||f.includes(V),C=()=>{if(y.has(V))y.set(V,!0);else return;let B=!0;y.forEach(O=>{O||(B=!1)}),B&&(S?.(),T(m.current),r&&u?.(),s&&s())};return K.jsx(Ml,{isPresent:w,initial:!d.current||n?void 0:!1,custom:e,presenceAffectsLayout:i,mode:o,root:l,onExitComplete:w?void 0:C,anchorX:a,children:b},V)})})},El=p.createContext(null);function Rl(){const t=p.useRef(!1);return zt(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function Ll(){const t=Rl(),[e,n]=p.useState(0),s=p.useCallback(()=>{t.current&&n(e+1)},[e]);return[p.useCallback(()=>M.postRender(s),[s]),e]}const Il=t=>!t.isLayoutDirty&&t.willUpdate(!1);function Ps(){const t=new Set,e=new WeakMap,n=()=>t.forEach(Il);return{add:s=>{t.add(s),e.set(s,s.addEventListener("willUpdate",n))},remove:s=>{t.delete(s);const i=e.get(s);i&&(i(),e.delete(s)),n()},dirty:n}}const wr=t=>t===!0,kl=t=>wr(t===!0)||t==="id",rf=({children:t,id:e,inherit:n=!0})=>{const s=p.useContext(Bt),i=p.useContext(El),[o,r]=Ll(),a=p.useRef(null),l=s.id||i;a.current===null&&(kl(n)&&l&&(e=e?l+"-"+e:l),a.current={id:e,group:wr(n)&&s.group||Ps()});const c=p.useMemo(()=>({...a.current,forceRender:o}),[r]);return K.jsx(Bt.Provider,{value:c,children:t})},Pr=p.createContext({strict:!1}),As={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"]},St={};for(const t in As)St[t]={isEnabled:e=>As[t].some(n=>!!e[n])};function Fl(t){for(const e in t)St[e]={...St[e],...t[e]}}const Bl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function me(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Bl.has(t)}let Ar=t=>!me(t);function Ol(t){typeof t=="function"&&(Ar=e=>e.startsWith("on")?!me(e):t(e))}try{Ol(require("@emotion/is-prop-valid").default)}catch{}function jl(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||(Ar(i)||n===!0&&me(i)||!e&&!me(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Pe=p.createContext({});function Ae(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ut(t){return typeof t=="string"||Array.isArray(t)}const Bn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],On=["initial",...Bn];function be(t){return Ae(t.animate)||On.some(e=>Ut(t[e]))}function br(t){return!!(be(t)||t.variants)}function Nl(t,e){if(be(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ut(n)?n:void 0,animate:Ut(s)?s:void 0}}return t.inherit!==!1?e:{}}function Wl(t){const{initial:e,animate:n}=Nl(t,p.useContext(Pe));return p.useMemo(()=>({initial:e,animate:n}),[bs(e),bs(n)])}function bs(t){return Array.isArray(t)?t.join(" "):t}const Kt={};function Ul(t){for(const e in t)Kt[e]=t[e],xn(e)&&(Kt[e].isCSSVariable=!0)}function Vr(t,{layout:e,layoutId:n}){return At.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Kt[t]||t==="opacity")}const Kl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$l=Pt.length;function Hl(t,e,n){let s="",i=!0;for(let o=0;o<$l;o++){const r=Pt[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){const c=mr(a,Ln[r]);if(!l){i=!1;const u=Kl[r]||r;s+=`${u}(${c}) `}n&&(e[r]=c)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function jn(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];
vendor: 5,173 bytes, line 9
9if(At.has(l)){r=!0;continue}else if(xn(l)){i[l]=c;continue}else{const u=mr(c,Ln[l]);l.startsWith("origin")?(a=!0,o[l]=u):s[l]=u}}if(e.transform||(r||n?s.transform=Hl(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}`}}const Nn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Cr(t,e,n){for(const s in e)!I(e[s])&&!Vr(s,n)&&(t[s]=e[s])}function zl({transformTemplate:t},e){return p.useMemo(()=>{const n=Nn();return jn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Gl(t,e){const n=t.style||{},s={};return Cr(s,n,t),Object.assign(s,zl(t,e)),s}function _l(t,e){const n={},s=Gl(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 Xl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Yl={offset:"strokeDashoffset",array:"strokeDasharray"};function ql(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Xl:Yl;t[o.offset]=P.transform(-s);const r=P.transform(e),a=P.transform(n);t[o.array]=`${r} ${a}`}function Mr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},l,c,u){if(jn(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),e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&ql(h,i,o,r,!1)}const Dr=()=>({...Nn(),attrs:{}}),Er=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Zl(t,e,n,s){const i=p.useMemo(()=>{const o=Dr();return Mr(o,e,Er(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};Cr(o,t.style,t),i.style={...o,...i.style}}return i}const Jl=["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 Wn(t){return typeof t!="string"||t.includes("-")?!1:!!(Jl.indexOf(t)>-1||/[A-Z]/u.test(t))}function Ql(t,e,n,{latestValues:s},i,o=!1){const a=(Wn(t)?Zl:_l)(e,s,i,t),l=jl(e,typeof t=="string",o),c=t!==p.Fragment?{...l,...a,ref:n}:{},{children:u}=e,h=p.useMemo(()=>I(u)?u.get():u,[u]);return p.createElement(t,{...c,children:h})}function Vs(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Un(t,e,n,s){if(typeof e=="function"){const[i,o]=Vs(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]=Vs(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function ce(t){return I(t)?t.get():t}function tu({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:eu(n,s,i,t),renderState:e()}}function eu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=ce(o[f]);let{initial:r,animate:a}=t;const l=be(t),c=br(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"&&!Ae(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d<f.length;d++){const m=Un(t,f[d]);if(m){const{transitionEnd:y,transition:v,...g}=m;for(const x in g){let T=g[x];if(Array.isArray(T)){const A=u?T.length-1:0;T=T[A]}T!==null&&(i[x]=T)}for(const x in y)i[x]=y[x]}}}return i}const Rr=t=>(e,n)=>{const s=p.useContext(Pe),i=p.useContext(ve),o=()=>tu(t,e,s,i);return n?o():et(o)};function Kn(t,e,n){const{style:s}=t,i={};for(const o in s)(I(s[o])||e.style&&I(e.style[o])||Vr(o,t)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=s[o]);return i}const nu=Rr({scrapeMotionValuesFromProps:Kn,createRenderState:Nn});function Lr(t,e,n){const s=Kn(t,e,n);for(const i in t)if(I(t[i])||I(e[i])){const o=Pt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}const su=Rr({scrapeMotionValuesFromProps:Lr,createRenderState:Dr}),iu=Symbol.for("motionComponentSymbol");function gt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ru(t,e,n){return p.useCallback(s=>{s&&t.onMount&&t.onMount(s),e&&(s?e.mount(s):e.unmount()),n&&(typeof n=="function"?n(s):gt(n)&&(n.current=s))},[e])}const $n=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ou="framerAppearId",Ir="data-"+$n(ou),kr=p.createContext({});function au(t,e,n,s,i){const{visualElement:o}=p.useContext(Pe),r=p.useContext(Pr),a=p.useContext(ve),l=p.useContext(Yt).reducedMotion,c=p.useRef(null);s=s||r.renderer,!c.current&&s&&(c.current=s(t,{visualState:e,parent:o,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,h=p.useContext(kr);u&&!u.projection&&i&&(u.type==="html"||u.type==="svg")&&lu(c.current,n,i,h);const f=p.useRef(!1);p.useInsertionEffect(()=>{u&&f.current&&u.update(n,a)});
vendor: 36,387 bytes, line 9
9const d=n[Ir],m=p.useRef(!!d&&!window.MotionHandoffIsComplete?.(d)&&window.MotionHasOptimisedAnimation?.(d));return zt(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),m.current&&u.animationState&&u.animationState.animateChanges())}),p.useEffect(()=>{u&&(!m.current&&u.animationState&&u.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(d)}),m.current=!1),u.enteringChildren=void 0)}),u}function lu(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:Fr(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&>(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:u,layoutScroll:l,layoutRoot:c})}function Fr(t){if(t)return t.options.allowProjection!==!1?t.projection:Fr(t.parent)}function ke(t,{forwardMotionProps:e=!1}={},n,s){n&&Fl(n);const i=Wn(t)?su:nu;function o(a,l){let c;const u={...p.useContext(Yt),...a,layoutId:uu(a)},{isStatic:h}=u,f=Wl(a),d=i(a,h);if(!h&&fn){cu();const m=hu(u);c=m.MeasureLayout,f.visualElement=au(t,d,u,s,m.ProjectionNode)}return K.jsxs(Pe.Provider,{value:f,children:[c&&f.visualElement?K.jsx(c,{visualElement:f.visualElement,...u}):null,Ql(t,a,ru(d,f.visualElement,l),d,h,e)]})}o.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const r=p.forwardRef(o);return r[iu]=t,r}function uu({layoutId:t}){const e=p.useContext(Bt).id;return e&&t!==void 0?e+"-"+t:t}function cu(t,e){p.useContext(Pr).strict}function hu(t){const{drag:e,layout:n}=St;if(!e&&!n)return{};const s={...e,...n};return{MeasureLayout:e?.isEnabled(t)||n?.isEnabled(t)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function fu(t,e){if(typeof Proxy>"u")return ke;const n=new Map,s=(o,r)=>ke(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,ke(r,void 0,t,e)),n.get(r))})}function Br({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function du({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function mu(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 Fe(t){return t===void 0||t===1}function sn({scale:t,scaleX:e,scaleY:n}){return!Fe(t)||!Fe(e)||!Fe(n)}function ot(t){return sn(t)||Or(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Or(t){return Cs(t.x)||Cs(t.y)}function Cs(t){return t&&t!=="0%"}function pe(t,e,n){const s=t-n,i=e*s;return n+i}function Ms(t,e,n,s,i){return i!==void 0&&(t=pe(t,i,s)),pe(t,n,s)+e}function rn(t,e=0,n=1,s,i){t.min=Ms(t.min,e,n,s,i),t.max=Ms(t.max,e,n,s,i)}function jr(t,{x:e,y:n}){rn(t.x,e.translate,e.scale,e.originPoint),rn(t.y,n.translate,n.scale,n.originPoint)}const Ds=.999999999999,Es=1.0000000000001;function pu(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&&vt(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,jr(t,r)),s&&ot(o.latestValues)&&vt(t,o.latestValues))}e.x<Es&&e.x>Ds&&(e.x=1),e.y<Es&&e.y>Ds&&(e.y=1)}function yt(t,e){t.min=t.min+e,t.max=t.max+e}function Rs(t,e,n,s,i=.5){const o=E(t.min,t.max,i);rn(t,e,n,o,s)}function vt(t,e){Rs(t.x,e.x,e.scaleX,e.scale,e.originX),Rs(t.y,e.y,e.scaleY,e.scale,e.originY)}function Nr(t,e){return Br(mu(t.getBoundingClientRect(),e))}function gu(t,e,n){const s=Nr(t,n),{scroll:i}=e;return i&&(yt(s.x,i.offset.x),yt(s.y,i.offset.y)),s}const Ls=()=>({translate:0,scale:1,origin:0,originPoint:0}),xt=()=>({x:Ls(),y:Ls()}),Is=()=>({min:0,max:0}),k=()=>({x:Is(),y:Is()}),ge={current:null},Hn={current:!1};function Wr(){if(Hn.current=!0,!!fn)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ge.current=t.matches;t.addEventListener("change",e),e()}else ge.current=!1}const $t=new WeakMap;function yu(t,e,n){for(const s in e){const i=e[s],o=n[s];if(I(i))t.addValue(s,i);else if(I(o))t.addValue(s,_(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,_(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const ks=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ur{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Dn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=W.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,M.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=r;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=be(n),this.isVariantNode=br(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in h){const d=h[f];l[f]!==void 0&&I(d)&&d.set(l[f])}}mount(e){this.current=e,$t.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)),Hn.current||Wr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ge.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Y(this.notifyUpdate),Y(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){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=At.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&M.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;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 St){const n=St[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):k()}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<ks.length;s++){const i=ks[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=yu(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=_(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"&&(Ci(s)||Di(s))?s=parseFloat(s):!Pl(s)&&st.test(n)&&(s=dr(e,n)),this.setBaseTarget(e,I(s)?s.get():s)),I(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=Un(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&&!I(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 pn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){kn.render(this.render)}}class Kr extends Ur{constructor(){super(...arguments),this.KeyframeResolver=nl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;I(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function $r(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 vu(t){return window.getComputedStyle(t)}class Hr extends Kr{constructor(){super(...arguments),this.type="html",this.renderInstance=$r}readValueFromInstance(e,n){if(At.has(n))return this.projection?.isProjecting?qe(n):Ta(e,n);{const s=vu(e),i=(xn(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Nr(e,n)}build(e,n,s){jn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Kn(e,n,s)}}const zr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function xu(t,e,n,s){$r(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(zr.has(i)?i:$n(i),e.attrs[i])}class Gr extends Kr{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=k}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(At.has(n)){const s=fr(n);return s&&s.default||0}return n=zr.has(n)?n:$n(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Lr(e,n,s)}build(e,n,s){Mr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){xu(e,n,s,i)}mount(e){this.isSVGTag=Er(e.tagName),super.mount(e)}}const Tu=(t,e)=>Wn(t)?new Gr(e):new Hr(e,{allowProjection:t!==p.Fragment});function Tt(t,e,n){const s=t.getProps();return Un(s,e,n!==void 0?n:s.custom,t)}const on=t=>Array.isArray(t);function Su(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,_(n))}function wu(t){return on(t)?t[t.length-1]||0:t}function Pu(t,e){const n=Tt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=wu(o[r]);Su(t,r,a)}}function Au(t){return!!(I(t)&&t.add)}function an(t,e){const n=t.getValue("willChange");if(Au(n))return n.add(e);if(!n&&tt.WillChange){const s=new tt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function _r(t){return t.props[Ir]}const bu=t=>t!==null;function Vu(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(bu),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return i[o]}const Cu={type:"spring",stiffness:500,damping:25,restSpeed:10},Mu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Du={type:"keyframes",duration:.8},Eu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ru=(t,{keyframes:e})=>e.length>2?Du:At.has(t)?t.startsWith("scale")?Mu(e[1]):Cu:Eu;function Lu({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 zn=(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-X(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};Lu(a)||Object.assign(u,Ru(t,u)),u.duration&&(u.duration=X(u.duration)),u.repeatDelay&&(u.repeatDelay=X(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(en(u),u.delay===0&&(h=!0)),(tt.instantAnimations||tt.skipAnimations)&&(h=!0,en(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!o&&e.get()!==void 0){const f=Vu(u.keyframes,a);if(f!==void 0){M.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new Te(u):new Ka(u)};function Iu({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Gn(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:r,...a}=e;s&&(o=s);const l=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const u in a){const h=t.getValue(u,t.latestValues[u]??null),f=a[u];if(f===void 0||c&&Iu(c,u))continue;const d={delay:n,...Rn(o||{},u)},m=h.get();if(m!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===m&&!d.velocity)continue;let y=!1;if(window.MotionHandoffAnimation){const g=_r(t);if(g){const x=window.MotionHandoffAnimation(g,u,M);x!==null&&(d.startTime=x,y=!0)}}an(t,u),h.start(zn(u,h,f,t.shouldReduceMotion&&ur.has(u)?{type:!1}:d,t,y));const v=h.animation;v&&l.push(v)}return r&&Promise.all(l).then(()=>{M.update(()=>{r&&Pu(t,r)})}),l}function Xr(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}function ln(t,e,n={}){const s=Tt(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(Gn(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:h}=i;return ku(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 ku(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(ln(l,e,{...r,delay:n+(typeof s=="function"?0:s)+Xr(t.variantChildren,l,s,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Fu(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>ln(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=ln(t,e,n);else{const i=typeof e=="function"?Tt(t,e,n.custom):e;s=Promise.all(Gn(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Yr(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 Bu=On.length;function qr(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?qr(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Bu;n++){const s=On[n],i=t.props[s];(Ut(i)||i===!1)&&(e[s]=i)}return e}const Ou=[...Bn].reverse(),ju=Bn.length;function Nu(t){return e=>Promise.all(e.map(({animation:n,options:s})=>Fu(t,n,s)))}function Wu(t){let e=Nu(t),n=Fs(),s=!0;const i=l=>(c,u)=>{const h=Tt(t,u,l==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:d,...m}=h;c={...c,...m,...d}}return c};function o(l){e=l(t)}function r(l){const{props:c}=t,u=qr(t.parent)||{},h=[],f=new Set;let d={},m=1/0;for(let v=0;v<ju;v++){const g=Ou[v],x=n[g],T=c[g]!==void 0?c[g]:u[g],A=Ut(T),S=g===l?x.isActive:null;S===!1&&(m=v);let b=T===u[g]&&T!==c[g]&&A;if(b&&s&&t.manuallyAnimateOnMount&&(b=!1),x.protectedKeys={...d},!x.isActive&&S===null||!T&&!x.prevProp||Ae(T)||typeof T=="boolean")continue;const V=Uu(x.prevProp,T);let w=V||g===l&&x.isActive&&!b&&A||v>m&&A,C=!1;const B=Array.isArray(T)?T:[T];let O=B.reduce(i(g),{});S===!1&&(O={});const{prevResolvedValues:ft={}}=x,dt={...ft,...O},Ve=D=>{w=!0,f.has(D)&&(C=!0,f.delete(D)),x.needsAnimating[D]=!0;const R=t.getValue(D);R&&(R.liveStyle=!1)};for(const D in dt){const R=O[D],q=ft[D];if(d.hasOwnProperty(D))continue;let Q=!1;on(R)&&on(q)?Q=!Yr(R,q):Q=R!==q,Q?R!=null?Ve(D):f.add(D):R!==void 0&&f.has(D)?Ve(D):x.protectedKeys[D]=!0}x.prevProp=T,x.prevResolvedValues=O,x.isActive&&(d={...d,...O}),s&&t.blockInitialAnimation&&(w=!1);const Ce=b&&V;w&&(!Ce||C)&&h.push(...B.map(D=>{const R={type:g};if(typeof D=="string"&&s&&!Ce&&t.manuallyAnimateOnMount&&t.parent){const{parent:q}=t,Q=Tt(q,D);if(q.enteringChildren&&Q){const{delayChildren:Zt}=Q.transition||{};R.delay=Xr(q.enteringChildren,t,Zt)}}return{animation:D,options:R}}))}if(f.size){const v={};if(typeof c.initial!="boolean"){const g=Tt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);g&&g.transition&&(v.transition=g.transition)}f.forEach(g=>{const x=t.getBaseTarget(g),T=t.getValue(g);T&&(T.liveStyle=!0),v[g]=x??null}),h.push({animation:v})}let y=!!h.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,y?e(h):Promise.resolve()}function a(l,c){if(n[l].isActive===c)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(l,c)),n[l].isActive=c;const u=r(l);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:r,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Fs()}}}function Uu(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Yr(e,t):!1}function rt(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Fs(){return{animate:rt(!0),whileInView:rt(),whileHover:rt(),whileTap:rt(),whileDrag:rt(),whileFocus:rt(),exit:rt()}}class it{constructor(e){this.isMounted=!1,this.node=e}update(){}}class Ku extends it{constructor(e){super(e),e.animationState||(e.animationState=Wu(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Ae(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 $u=0;class Hu extends it{constructor(){super(...arguments),this.id=$u++}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 zu={animation:{Feature:Ku},exit:{Feature:Hu}};function Ht(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function qt(t){return{point:{x:t.pageX,y:t.pageY}}}const Gu=t=>e=>Fn(e)&&t(e,qt(e));function kt(t,e,n,s){return Ht(t,e,Gu(n),s)}const Zr=1e-4,_u=1-Zr,Xu=1+Zr,Jr=.01,Yu=0-Jr,qu=0+Jr;function N(t){return t.max-t.min}function Zu(t,e,n){return Math.abs(t-e)<=n}function Bs(t,e,n,s=.5){t.origin=s,t.originPoint=E(e.min,e.max,t.origin),t.scale=N(n)/N(e),t.translate=E(n.min,n.max,t.origin)-t.originPoint,(t.scale>=_u&&t.scale<=Xu||isNaN(t.scale))&&(t.scale=1),(t.translate>=Yu&&t.translate<=qu||isNaN(t.translate))&&(t.translate=0)}function Ft(t,e,n,s){Bs(t.x,e.x,n.x,s?s.originX:void 0),Bs(t.y,e.y,n.y,s?s.originY:void 0)}function Os(t,e,n){t.min=n.min+e.min,t.max=t.min+N(e)}function Ju(t,e,n){Os(t.x,e.x,n.x),Os(t.y,e.y,n.y)}function js(t,e,n){t.min=e.min-n.min,t.max=t.min+N(e)}function ye(t,e,n){js(t.x,e.x,n.x),js(t.y,e.y,n.y)}function $(t){return[t("x"),t("y")]}const Qr=({current:t})=>t?t.ownerDocument.defaultView:null,Ns=(t,e)=>Math.abs(t-e);function Qu(t,e){const n=Ns(t.x,e.x),s=Ns(t.y,e.y);return Math.sqrt(n**2+s**2)}class to{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Oe(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,m=Qu(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!d&&!m)return;const{point:y}=f,{timestamp:v}=j;this.history.push({...y,timestamp:v});const{onStart:g,onMove:x}=this.handlers;d||(g&&g(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Be(d,this.transformPagePoint),M.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const g=Oe(f.type==="pointercancel"?this.lastMoveEventInfo:Be(d,this.transformPagePoint),this.history);this.startEvent&&m&&m(f,g),y&&y(f,g)},!Fn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const a=qt(e),l=Be(a,this.transformPagePoint),{point:c}=l,{timestamp:u}=j;this.history=[{...c,timestamp:u}];const{onSessionStart:h}=n;h&&h(e,Oe(l,this.history)),this.removeListeners=Gt(kt(this.contextWindow,"pointermove",this.handlePointerMove),kt(this.contextWindow,"pointerup",this.handlePointerUp),kt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Y(this.updatePoint)}}function Be(t,e){return e?{point:e(t.point)}:t}function Ws(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Oe({point:t},e){return{point:t,delta:Ws(t,eo(e)),offset:Ws(t,tc(e)),velocity:ec(e,.1)}}function tc(t){return t[0]}function eo(t){return t[t.length-1]}function ec(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=eo(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>X(e)));)n--;if(!s)return{x:0,y:0};const o=H(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 nc(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?E(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?E(n,t,s.max):Math.min(t,n)),t}function Us(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 sc(t,{top:e,left:n,bottom:s,right:i}){return{x:Us(t.x,n,i),y:Us(t.y,e,s)}}function Ks(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 ic(t,e){return{x:Ks(t.x,e.x),y:Ks(t.y,e.y)}}function rc(t,e){let n=.5;const s=N(t),i=N(e);return i>s?n=ht(e.min,e.max-s,t.min):s>i&&(n=ht(t.min,t.max-i,e.min)),J(0,1,n)}function oc(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 un=.35;function ac(t=un){return t===!1?t=0:t===!0&&(t=un),{x:$s(t,"left","right"),y:$s(t,"top","bottom")}}function $s(t,e,n){return{min:Hs(t,e),max:Hs(t,n)}}function Hs(t,e){return typeof t=="number"?t:t[e]||0}const lc=new WeakMap;class uc{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=k(),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=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qt(h).point)},r=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rl(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),$(g=>{let x=this.getAxisMotionValue(g).get()||0;if(Z.test(x)){const{projection:T}=this.visualElement;if(T&&T.layout){const A=T.layout.layoutBox[g];A&&(x=N(A)*(parseFloat(x)/100))}}this.originPoint[g]=x}),y&&M.postRender(()=>y(h,f)),an(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:v}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(m&&this.currentDirection===null){this.currentDirection=cc(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),v&&v(h,f)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>$(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new to(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:l,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Qr(this.visualElement)})}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&&M.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!se(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=nc(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&>(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=sc(s.layoutBox,e):this.constraints=!1,this.elastic=ac(n),i!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&$(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=oc(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!gt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=gu(s,i.root,this.visualElement.getTransformPagePoint());let r=ic(i.layout.layoutBox,o);if(n){const a=n(du(r));this.hasMutatedConstraints=!!a,a&&(r=Br(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=$(u=>{if(!se(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 an(this.visualElement,e),s.start(zn(e,s,0,n,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){$(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}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){$(n=>{const{drag:s}=this.getProps();if(!se(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];o.set(e[n]-E(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!gt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=rc({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.resolveConstraints(),$(r=>{if(!se(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:c}=this.constraints[r];a.set(E(l,c,i[r]))})}addListeners(){if(!this.visualElement.current)return;lc.set(this.visualElement,this);const e=this.visualElement.current,n=kt(e,"pointerdown",l=>{const{drag:c,dragListener:u=!0}=this.getProps();c&&u&&this.start(l)}),s=()=>{const{dragConstraints:l}=this.getProps();gt(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",s);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),M.read(s);const r=Ht(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&($(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=l[u].translate,h.set(h.get()+l[u].translate))}),this.visualElement.render())}));return()=>{r(),n(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=un,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function se(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function cc(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class hc extends it{constructor(e){super(e),this.removeGroupControls=U,this.removeListeners=U,this.controls=new uc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||U}unmount(){this.removeGroupControls(),this.removeListeners()}}const zs=t=>(e,n)=>{t&&M.postRender(()=>t(e,n))};class fc extends it{constructor(){super(...arguments),this.removePointerDownListener=U}onPointerDown(e){this.session=new to(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Qr(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:zs(e),onStart:zs(n),onMove:s,onEnd:(o,r)=>{delete this.session,i&&M.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=kt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const he={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gs(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Mt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(P.test(t))t=parseFloat(t);else return t;const n=Gs(t,e.target.x),s=Gs(t,e.target.y);return`${n}% ${s}%`}},dc={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=st.parse(t);if(i.length>5)return s;const o=st.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=E(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=c),typeof i[3+r]=="number"&&(i[3+r]/=c),o(i)}};let je=!1;class mc extends p.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;Ul(pc),o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),je&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),he.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,je=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||M.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),kn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;je=!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 no(t){const[e,n]=Sr(),s=p.useContext(Bt);return K.jsx(mc,{...t,layoutGroup:s,switchLayoutGroup:p.useContext(kr),isPresent:e,safeToRemove:n})}const pc={borderRadius:{...Mt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mt,borderTopRightRadius:Mt,borderBottomLeftRadius:Mt,borderBottomRightRadius:Mt,boxShadow:dc};function so(t,e,n){const s=I(t)?t:_(t);return s.start(zn("",s,e,n)),s.animation}const gc=(t,e)=>t.depth-e.depth;class yc{constructor(){this.children=[],this.isDirty=!1}add(e){dn(this.children,e),this.isDirty=!0}remove(e){xe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(gc),this.isDirty=!1,this.children.forEac
vendor: 5,074 bytes, line 9
9h(e)}}function vc(t,e){const n=W.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Y(s),t(o-e))};return M.setup(s,!0),()=>Y(s)}const io=["TopLeft","TopRight","BottomLeft","BottomRight"],xc=io.length,_s=t=>typeof t=="string"?parseFloat(t):t,Xs=t=>typeof t=="number"||P.test(t);function Tc(t,e,n,s,i,o){i?(t.opacity=E(0,n.opacity??1,Sc(s)),t.opacityExit=E(e.opacity??1,0,wc(s))):o&&(t.opacity=E(e.opacity??1,n.opacity??1,s));for(let r=0;r<xc;r++){const a=`border${io[r]}Radius`;let l=Ys(e,a),c=Ys(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||Xs(l)===Xs(c)?(t[a]=Math.max(E(_s(l),_s(c),s),0),(Z.test(c)||Z.test(l))&&(t[a]+="%")):t[a]=c}(e.rotate||n.rotate)&&(t.rotate=E(e.rotate||0,n.rotate||0,s))}function Ys(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Sc=ro(0,.5,Bi),wc=ro(.5,.95,U);function ro(t,e,n){return s=>s<t?0:s>e?1:n(ht(t,e,s))}function qs(t,e){t.min=e.min,t.max=e.max}function z(t,e){qs(t.x,e.x),qs(t.y,e.y)}function Zs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Js(t,e,n,s,i){return t-=e,t=pe(t,1/n,s),i!==void 0&&(t=pe(t,1/i,s)),t}function Pc(t,e=0,n=1,s=.5,i,o=t,r=t){if(Z.test(e)&&(e=parseFloat(e),e=E(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=E(o.min,o.max,s);t===o&&(a-=e),t.min=Js(t.min,e,n,a,i),t.max=Js(t.max,e,n,a,i)}function Qs(t,e,[n,s,i],o,r){Pc(t,e[n],e[s],e[i],e.scale,o,r)}const Ac=["x","scaleX","originX"],bc=["y","scaleY","originY"];function ti(t,e,n,s){Qs(t.x,e,Ac,n?n.x:void 0,s?s.x:void 0),Qs(t.y,e,bc,n?n.y:void 0,s?s.y:void 0)}function ei(t){return t.translate===0&&t.scale===1}function oo(t){return ei(t.x)&&ei(t.y)}function ni(t,e){return t.min===e.min&&t.max===e.max}function Vc(t,e){return ni(t.x,e.x)&&ni(t.y,e.y)}function si(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function ao(t,e){return si(t.x,e.x)&&si(t.y,e.y)}function ii(t){return N(t.x)/N(t.y)}function ri(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Cc{constructor(){this.members=[]}add(e){dn(this.members,e),e.scheduleRender()}remove(e){if(xe(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let s;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){s=o;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Mc(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 Ne=["","X","Y","Z"],Dc=1e3;let Ec=0;function We(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function lo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=_r(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",M,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&lo(s)}function uo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=Ec++,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=()=>
vendor: 22,861 bytes, line 9
9{this.projectionUpdateScheduled=!1,this.nodes.forEach(Ic),this.nodes.forEach(Oc),this.nodes.forEach(jc),this.nodes.forEach(kc)},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 yc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new pn),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=we(r)&&!Tr(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;M.read(()=>{h=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,u&&u(),u=vc(f,250),he.hasAnimatedSinceResize&&(he.hasAnimatedSinceResize=!1,this.nodes.forEach(li)))})}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()||$c,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=c.getProps(),g=!this.targetLayout||!ao(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Rn(m,"layout"),onPlay:y,onComplete:v};(c.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(u,x)}else h||li(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(),Y(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(Nc),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&&lo(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(oi);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ai);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bc),this.nodes.forEach(Rc),this.nodes.forEach(Lc)):this.nodes.forEach(ai),this.clearAllSnapshots();const a=W.now();j.delta=J(0,1e3/60,a-j.timestamp),j.timestamp=a,j.isProcessing=!0,Me.update.process(j),Me.preRender.process(j),Me.render.process(j),j.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,kn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fc),this.sharedNodes.forEach(Wc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,M.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){M.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!N(this.snapshot.measuredBox.x)&&!N(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=k(),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&&!oo(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;r&&this.instance&&(a||ot(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)),Hc(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return k();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(zc))){const{scroll:c}=this.root;c&&(yt(a.x,c.offset.x),yt(a.y,c.offset.y))}return a}removeElementScroll(r){const a=k();if(z(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&&z(a,r),yt(a.x,u.offset.x),yt(a.y,u.offset.y))}return a}applyTransform(r,a=!1){const l=k();z(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&&vt(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),ot(u.latestValues)&&vt(l,u.latestValues)}return ot(this.latestValues)&&vt(l,this.latestValues),l}removeTransform(r){const a=k();z(a,r);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!ot(c.latestValues))continue;sn(c.latestValues)&&c.updateSnapshot();const u=k(),h=c.measurePageBox();z(u,h),ti(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return ot(this.latestValues)&&ti(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!==j.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=j.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=k(),this.targetWithTransforms=k()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ju(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):z(this.target,this.layout.layoutBox),jr(this.target,this.targetDelta)):z(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||sn(this.parent.latestValues)||Or(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=k(),this.relativeTargetOrigin=k(),ye(this.relativeTargetOrigin,a,l),z(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===j.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;z(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,f=this.treeScale.y;pu(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=k());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Zs(this.prevProjectionDelta.x,this.projectionDelta.x),Zs(this.prevProjectionDelta.y,this.projectionDelta.y)),Ft(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==f||!ri(this.projectionDelta.x,this.prevProjectionDelta.x)||!ri(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=xt(),this.projectionDelta=xt(),this.projectionDeltaWithTransform=xt()}setAnimationOrigin(r,a=!1){const l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},h=xt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=k(),d=l?l.source:void 0,m=this.layout?this.layout.source:void 0,y=d!==m,v=this.getStack(),g=!v||v.members.length<=1,x=!!(y&&!g&&this.options.crossfade===!0&&!this.path.some(Kc));this.animationProgress=0;let T;this.mixTargetDelta=A=>{const S=A/1e3;ui(h.x,r.x,S),ui(h.y,r.y,S),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ye(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Uc(this.relativeTarget,this.relativeTargetOrigin,f,S),T&&Vc(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=k()),z(T,this.relativeTarget)),y&&(this.animationValues=u,Tc(u,c,this.latestValues,S,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Y(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=M.update(()=>{he.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=_(0)),this.currentAnimation=so(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(Dc),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&&co(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||k();const h=N(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+h;const f=N(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+f}z(a,l),vt(a,u),Ft(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Cc),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&&We("z",r,c,this.animationValues);for(let u=0;u<Ne.length;u++)We(`rotate${Ne[u]}`,r,c,this.animationValues),We(`skew${Ne[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=ce(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=ce(a?.pointerEvents)||""),this.hasProjected&&!ot(this.latestValues)&&(r.transform=l?l({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let h=Mc(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 Kt){if(u[m]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:g}=Kt[m],x=h==="none"?u[m]:y(u[m],c);if(v){const T=v.length;for(let A=0;A<T;A++)r[v[A]]=x}else g?this.options.visualElement.renderState.vars[m]=x:r[m]=x}this.options.layoutId&&(r.pointerEvents=c===this?ce(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(oi),this.root.sharedNodes.clear()}}}function Rc(t){t.updateLayout()}function Lc(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"?$(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=N(h);h.min=n[u].min,h.max=h.min+f}):co(i,e.layoutBox,n)&&$(u=>{const h=o?e.measuredBox[u]:e.layoutBox[u],f=N(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=xt();Ft(r,n,e.layoutBox);const a=xt();o?Ft(a,t.applyTransform(s,!0),e.measuredBox):Ft(a,n,e.layoutBox);const l=!oo(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=k();ye(d,e.layoutBox,h.layoutBox);const m=k();ye(m,n,f.layoutBox),ao(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 Ic(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 kc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Fc(t){t.clearSnapshot()}function oi(t){t.clearMeasurements()}function ai(t){t.isLayoutDirty=!1}function Bc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function li(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Oc(t){t.resolveTargetDelta()}function jc(t){t.calcProjection()}function Nc(t){t.resetSkewAndRotation()}function Wc(t){t.removeLeadSnapshot()}function ui(t,e,n){t.translate=E(e.translate,0,n),t.scale=E(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ci(t,e,n,s){t.min=E(e.min,n.min,s),t.max=E(e.max,n.max,s)}function Uc(t,e,n,s){ci(t.x,e.x,n.x,s),ci(t.y,e.y,n.y,s)}function Kc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const $c={duration:.45,ease:[.4,0,.1,1]},hi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),fi=hi("applewebkit/")&&!hi("chrome/")?Math.round:U;function di(t){t.min=fi(t.min),t.max=fi(t.max)}function Hc(t){di(t.x),di(t.y)}function co(t,e,n){return t==="position"||t==="preserve-aspect"&&!Zu(ii(e),ii(n),.2)}function zc(t){return t!==t.root&&t.scroll?.wasRoot}const Gc=uo({attachResizeListener:(t,e)=>Ht(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ue={current:void 0},ho=uo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ue.current){const t=new Gc({});t.mount(window),t.setOptions({layoutScroll:!0}),Ue.current=t}return Ue.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),_c={pan:{Feature:fc},drag:{Feature:hc,ProjectionNode:ho,MeasureLayout:no}};function mi(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&&M.postRender(()=>o(e,qt(e)))}class Xc extends it{mount(){const{current:e}=this.node;e&&(this.unmount=ol(e,(n,s)=>(mi(this.node,s,"Start"),i=>mi(this.node,i,"End"))))}unmount(){}}class Yc extends it{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=Gt(Ht(this.node.current,"focus",()=>this.onFocus()),Ht(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pi(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&&M.postRender(()=>o(e,qt(e)))}class qc extends it{mount(){const{current:e}=this.node;e&&(this.unmount=cl(e,(n,s)=>(pi(this.node,s,"Start"),(i,{success:o})=>pi(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const cn=new WeakMap,Ke=new WeakMap,Zc=t=>{const e=cn.get(t.target);e&&e(t)},Jc=t=>{t.forEach(Zc)};function Qc({root:t,...e}){const n=t||document;Ke.has(n)||Ke.set(n,{});const s=Ke.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Jc,{root:t,...e})),s[i]}function th(t,e,n){const s=Qc(e);return cn.set(t,n),s.observe(t),()=>{cn.delete(t),s.unobserve(t)}}const eh={some:0,all:1};
9class nh extends it{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:eh[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 th(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(sh(e,n))&&this.startObserver()}unmount(){}}function sh({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ih={inView:{Feature:nh},tap:{Feature:qc},focus:{Feature:Yc},hover:{Feature:Xc}},rh={layout:{ProjectionNode:ho,MeasureLayout:no}},oh={...zu,...ih,..._c,...rh},fo=fu(oh,Tu),ah=50,gi=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),lh=()=>({time:0,x:gi(),y:gi()}),uh={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function yi(t,e,n,s){const i=n[e],{length:o,position:r}=uh[e],a=i.current,l=n.time;i.current=t[`scroll${r}`],i.scrollLength=t[`scroll${o}`]-t[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=ht(0,i.scrollLength,i.current);const c=s-l;i.velocity=c>ah?0:gn(i.current-a,c)}function ch(t,e,n){yi(t,"x",e,n),yi(t,"y",e,n),e.time=n}function hh(t,e){const n={x:0,y:0};let s=t;for(;s&&s!==e;)if(In(s))n.x+=s.offsetLeft,n.y+=s.offsetTop,s=s.offsetParent;else if(s.tagName==="svg"){const i=s.getBoundingClientRect();s=s.parentElement;const o=s.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(s instanceof SVGGraphicsElement){const{x:i,y:o}=s.getBBox();n.x+=i,n.y+=o;let r=null,a=s.parentNode;for(;!r;)a.tagName==="svg"&&(r=a),a=s.parentNode;s=r}else break;return n}const hn={start:0,center:.5,end:1};function vi(t,e,n=0){let s=0;if(t in hn&&(t=hn[t]),typeof t=="string"){const i=parseFloat(t);t.endsWith("px")?s=i:t.endsWith("%")?t=i/100:t.endsWith("vw")?s=i/100*document.documentElement.clientWidth:t.endsWith("vh")?s=i/100*document.documentElement.clientHeight:t=i}return typeof t=="number"&&(s=e*t),n+s}const fh=[0,0];function dh(t,e,n,s){let i=Array.isArray(t)?t:fh,o=0,r=0;return typeof t=="number"?i=[t,t]:typeof t=="string"&&(t=t.trim(),t.includes(" ")?i=t.split(" "):i=[t,hn[t]?t:"0"]),o=vi(i[0],n,s),r=vi(i[1],e),o-r}const mh={All:[[0,0],[1,1]]},ph={x:0,y:0};function gh(t){return"getBBox"in t&&t.tagName!=="svg"?t.getBBox():{width:t.clientWidth,height:t.clientHeight}}function yh(t,e,n){const{offset:s=mh.All}=n,{target:i=t,axis:o="y"}=n,r=o==="y"?"height":"width",a=i!==t?hh(i,t):ph,l=i===t?{width:t.scrollWidth,height:t.scrollHeight}:gh(i),c={width:t.clientWidth,height:t.clientHeight};e[o].offset.length=0;let u=!e[o].interpolate;const h=s.length;for(let f=0;f<h;f++){const d=dh(s[f],c[r],l[r],a[o]);!u&&d!==e[o].interpolatorOffsets[f]&&(u=!0),e[o].offset[f]=d}u&&(e[o].interpolate=bn(e[o].offset,Vn(s),{clamp:!1}),e[o].interpolatorOffsets=[...e[o].offset]),e[o].progress=J(0,1,e[o].interpolate(e[o].current))}function vh(t,e=t,n){if(n.x.targetOffset=0,n.y.targetOffset=0,e!==t){let s=e;for(;s&&s!==t;)n.x.targetOffset+=s.offsetLeft,n.y.targetOffset+=s.offsetTop,s=s.offsetParent}n.x.targetLength=e===t?e.scrollWidth:e.clientWidth,n.y.targetLength=e===t?e.scrollHeight:e.clientHeight,n.x.containerLength=t.clientWidth,n.y.containerLength=t.clientHeight}function xh(t,e,n,s={}){return{measure:i=>{vh(t,s.target,n),ch(t,n,i),(s.offset||s.target)&&yh(t,n,s)},notify:()=>e(n)}}const Dt=new WeakMap,xi=new WeakMap,$e=new WeakMap,Ti=t=>t===document.scrollingElement?window:t;function mo(t,{container:e=document.scrollingElement,...n}={}){if(!e)return U;let s=$e.get(e);s||(s=new Set,$e.set(e,s));const i=lh(),o=xh(e,t,i,n);if(s.add(o),!Dt.has(e)){const a=()=>{for(const h of s)h.measure(j.timestamp);M.preUpdate(l)},l=()=>{for(const h of s)h.notify()},c=()=>M.read(a);Dt.set(e,c);const u=Ti(e);window.addEventListener("resize",c,{passive:!0}),e!==document.documentElement&&xi.set(e,xl(e,c)),u.addEventListener("scroll",c,{passive:!0}),c()}const r=Dt.get(e);return M.read(r,!1,!0),()=>{Y(r);const a=$e.get(e);if(!a||(a.delete(o),a.size))return;const l=Dt.get(e);Dt.delete(e),l&&(Ti(e).removeEventListener("scroll",l),xi.get(e)?.(),window.removeEventListener("resize",l))}}const Si=new Map;function Th(t){const e={value:0},n=mo(s=>{e.value=s[t.axis].progress*100},t);return{currentTime:e,cancel:n}}function po({source:t,container:e,...n}){const{axis:s}=n;t&&(e=t);const i=Si.get(e)??new Map;Si.set(e,i);const o=n.target??"self",r=i.get(o)??{},a=s+(n.offset??[]).join(",");return r[a]||(r[a]=!n.target&&ir()?new ScrollTimeline({source:e,axis:s}):Th({container:e,...n})),r[a]}function Sh(t,e){const n=po(e);return t.attachTimeline({timeline:e.target?void 0:n,observe:s=>(s.pause(),xr(i=>{s.time=s.iterationDuration*i},n))})}function wh(t){return t.length===2}function Ph(t,e){return wh(t)?mo(n=>{t(n[e.axis].progress,n)},e):xr(t,po(e))}function Ah(t,{axis:e="y",container:n=document.scrollingElement,...s}={}){if(!n)return U;const i={axis:e,container:n,...s};return typeof t=="function"?Ph(t,i):Sh(t,i)}const bh=()=>({scrollX:_(0),scrollY:_(0),scrollXProgress:_(0),scrollYProgress:_(0)}),ie=t=>t?!t.current:!1;function af({container:t,target:e,...n}={}){const s=et(bh),i=p.useRef(null),o=p.useRef(!1),r=p.useCallback(()=>(i.current=Ah((a,{x:l,y:c})=>{s.scrollX.set(l.current),s.scrollXProgress.set(l.progress),s.scrollY.set(c.current),s.scrollYProgress.set(c.progress)}
vendor: 4,544 bytes, line 9
9,{...n,container:t?.current||void 0,target:e?.current||void 0}),()=>{i.current?.()}),[t,e,JSON.stringify(n.offset)]);return zt(()=>{if(o.current=!1,ie(t)||ie(e)){o.current=!0;return}else return r()},[r]),p.useEffect(()=>{if(o.current)return Ot(!ie(t)),Ot(!ie(e)),r()},[r]),s}function _n(t){const e=et(()=>_(t)),{isStatic:n}=p.useContext(Yt);if(n){const[,s]=p.useState(t);p.useEffect(()=>e.on("change",s),[])}return e}function go(t,e){const n=_n(e()),s=()=>n.set(e());return s(),zt(()=>{const i=()=>M.preRender(s,!1,!0),o=t.map(r=>r.on("change",i));return()=>{o.forEach(r=>r()),Y(s)}}),n}function Vh(t){It.current=[],t();const e=go(It.current,t);return It.current=void 0,e}function yo(t,e,n,s){if(typeof t=="function")return Vh(t);const i=typeof e=="function"?e:Tl(e,n,s);return Array.isArray(t)?wi(t,i):wi([t],([o])=>i(o))}function wi(t,e){const n=et(()=>[]);return go(t,()=>{n.length=0;const s=t.length;for(let i=0;i<s;i++)n[i]=t[i].get();return e(n)})}function lf(t,e={}){const{isStatic:n}=p.useContext(Yt),s=()=>I(t)?t.get():t;if(n)return yo(s);const i=_n(s());return p.useInsertionEffect(()=>Sl(i,t,e),[i,JSON.stringify(e)]),i}function uf(){!Hn.current&&Wr();const[t]=p.useState(ge.current);return t}function Xn(t){return typeof t=="object"&&!Array.isArray(t)}function vo(t,e,n,s){return typeof t=="string"&&Xn(e)?Se(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Ch(t,e,n){return t*(e+1)}function Pi(t,e,n,s){return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:e.startsWith("<")?Math.max(0,n+parseFloat(e.slice(1))):s.get(e)??t}function Mh(t,e,n){for(let s=0;s<t.length;s++){const i=t[s];i.at>e&&i.at<n&&(xe(t,i),s--)}}function Dh(t,e,n,s,i,o){Mh(t,i,o);for(let r=0;r<e.length;r++)t.push({value:e[r],at:E(i,o,s[r]),easing:Wi(n,r)})}function Eh(t,e){for(let n=0;n<t.length;n++)t[n]=t[n]/(e+1)}function Rh(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const Lh="easeInOut";function Ih(t,{defaultTransition:e={},...n}={},s,i){const o=e.duration||.3,r=new Map,a=new Map,l={},c=new Map;let u=0,h=0,f=0;for(let d=0;d<t.length;d++){const m=t[d];if(typeof m=="string"){c.set(m,h);continue}else if(!Array.isArray(m)){c.set(m.name,Pi(h,m.at,u,c));continue}let[y,v,g={}]=m;g.at!==void 0&&(h=Pi(h,g.at,u,c));let x=0;const T=(A,S,b,V=0,w=0)=>{const C=kh(A),{delay:B=0,times:O=Vn(C),type:ft="keyframes",repeat:dt,repeatType:Ve,repeatDelay:Ce=0,...Yn}=S;let{ease:D=e.ease||"easeOut",duration:R}=S;const q=typeof B=="function"?B(V,w):B,Q=C.length,Zt=En(ft)?ft:i?.[ft||"keyframes"];if(Q<=2&&Zt){let bt=100;if(Q===2&&Oh(C)){const Vt=C[1]-C[0];bt=Math.abs(Vt)}const Jt={...Yn};R!==void 0&&(Jt.duration=X(R));const Qt=Ji(Jt,bt,Zt);D=Qt.ease,R=Qt.duration}R??(R=o);const qn=h+q;O.length===1&&O[0]===0&&(O[1]=1);const Zn=O.length-C.length;if(Zn>0&&tr(O,Zn),C.length===1&&C.unshift(null),dt){R=Ch(R,dt);const bt=[...C],Jt=[...O];D=Array.isArray(D)?[...D]:[D];const Qt=[...D];for(let Vt=0;Vt<dt;Vt++){C.push(...bt);for(let Ct=0;Ct<bt.length;Ct++)O.push(Jt[Ct]+(Vt+1)),D.push(Ct===0?"linear":Wi(Qt,Ct-1))}Eh(O,dt)}const Jn=qn+R;Dh(b,C,D,O,qn,Jn),x=Math.max(q+R,x),f=Math.max(Jn,f)};if(I(y)){const A=Ai(y,a);T(v,g,bi("default",A))}else{const A=vo(y,v,s,l),S=A.length;for(let b=0;b<S;b++){v=v,g=g;const V=A[b],w=Ai(V,a);for(const C in v)T(v[C],Fh(g,C),bi(C,w),b,S)}}u=h,h+=x}return a.forEach((d,m)=>{for(const y in d){const v=d[y];v.sort(Rh);const g=[],x=[],T=[];for(let S=0;S<v.length;S++){const{at:b,value:V,easing:w}=v[S];g.push(V),x.push(ht(0,f,b)),T.push(w||"easeOut")}x[0]!==0&&(x.unshift(0),g.unshift(g[0]),T.unshift(Lh)),x[x.length-1]!==1&&(x.push(1),g.push(null)),r.has(m)||r.set(m,{keyframes:{},transition:{}});const A=r.get(m);A.keyframes[y]=g,A.transition[y]={...e,duration:f,ease:T,times:x,...n}}}),r}function Ai(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function bi(t,e){return e[t]||(e[t]=[]),e[t]}function kh(t){return Array.isArray(t)?t:[t]}function Fh(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const Bh=t=>typeof t=="number",Oh=t=>t.every(Bh);function jh(t,e){return t in e}class Nh extends Ur{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(jh(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return k()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Wh(t){const e={presenceContext:null,props:{}
9,visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=we(t)&&!Tr(t)?new Gr(e):new Hr(e);n.mount(t),$t.set(t,n)}function Uh(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Nh(e);n.mount(t),$t.set(t,n)}function Kh(t,e){return I(t)||typeof t=="number"||typeof t=="string"&&!Xn(e)}function xo(t,e,n,s){const i=[];if(Kh(t,e))i.push(so(t,Xn(e)&&e.default||e,n&&(n.default||n)));else{const o=vo(t,e,s),r=o.length;for(let a=0;a<r;a++){const l=o[a],c=l instanceof Element?Wh:Uh;$t.has(l)||c(l);const u=$t.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,r)),i.push(...Gn(u,{...e,transition:h},{}))}}return i}function $h(t,e,n){const s=[];return Ih(t,e,n,{spring:Wt}).forEach(({keyframes:o,transition:r},a)=>{s.push(...xo(a,o,r))}),s}function Hh(t){return Array.isArray(t)&&t.some(Array.isArray)}function zh(t){function e(n,s,i){let o=[],r;if(Hh(n))o=$h(n,s,t);else{const{onComplete:l,...c}=i||{};typeof l=="function"&&(r=l),o=xo(n,s,c,t)}const a=new Ha(o);return r&&a.finished.then(r),a}return e}const cf=zh();class Gh{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,n){this.componentControls.forEach(s=>{s.start(e.nativeEvent||e,n)})}cancel(){this.componentControls.forEach(e=>{e.cancel()})}stop(){this.componentControls.forEach(e=>{e.stop()})}}const _h=()=>new Gh;function hf(){return et(_h)}const Xh={some:0,all:1};function Yh(t,e,{root:n,margin:s,amount:i="some"}={}){const o=Se(t),r=new WeakMap,a=c=>{c.forEach(u=>{const h=r.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const f=e(u.target,u);typeof f=="function"?r.set(u.target,f):l.unobserve(u.target)}else typeof h=="function"&&(h(u),r.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:Xh[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function ff(t,{root:e,margin:n,amount:s,once:i=!1,initial:o=!1}={}){const[r,a]=p.useState(o);return p.useEffect(()=>{if(!t.current||i&&r)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),c={root:e&&e.current||void 0,margin:n,amount:s};return Yh(t.current,l,c)},[e,t,n,i,s]),r}const To=p.createContext(null);function qh(t,e,n,s){if(!s)return t;const i=t.findIndex(u=>u.value===e);if(i===-1)return t;const o=s>0?1:-1,r=t[i+o];if(!r)return t;const a=t[i],l=r.layout,c=E(l.min,l.max,.5);return o===1&&a.layout.max+n>c||o===-1&&a.layout.min+n<c?So(t,i,i+o):t}function Zh({children:t,as:e="ul",axis:n="y",onReorder:s,values:i,...o},r){const a=et(()=>fo[e]),l=[],c=p.useRef(!1),u={axis:n,registerItem:(h,f)=>{const d=l.findIndex(m=>h===m.value);d!==-1?l[d].layout=f[n]:l.push({value:h,layout:f[n]}),l.sort(Qh)},updateOrder:(h,f,d)=>{if(c.current)return;const m=qh(l,h,f,d);l!==m&&(c.current=!0,s(m.map(Jh).filter(y=>i.indexOf(y)!==-1)))}};return p.useEffect(()=>{c.current=!1}),K.jsx(a,{...o,ref:r,ignoreStrict:!0,children:K.jsx(To.Provider,{value:u,children:t})})}const df=p.forwardRef(Zh);function Jh(t){return t.value}function Qh(t,e){return t.layout.min-e.layout.min}function Vi(t,e=0){return I(t)?t:_n(e)}function tf({children:t,style:e={},value:n,as:s="li",onDrag:i,layout:o=!0,...r},a){const l=et(()=>fo[s]),c=p.useContext(To),u={x:Vi(e.x),y:Vi(e.y)},h=yo([u.x,u.y],([y,v])=>y||v?1:"unset"),{axis:f,registerItem:d,updateOrder:m}=c;return K.jsx(l,{drag:f,...r,dragSnapToOrigin:!0,style:{...e,x:u.x,y:u.y,zIndex:h},layout:o,onDrag:(y,v)=>{const{velocity:g}=v;g[f]&&m(n,u[f].get(),g[f]),i&&i(y,v)},onLayoutMeasure:y=>d(n,y),ref:a,ignoreStrict:!0,children:t})}const mf=p.forwardRef(tf);export{sf as A,rf as L,df as R,cf as a,ff as b,af as c,lf as d,hf as e,mf as f,fo as m,uf 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.