PageSourceSearch

https://nab.gov.bt/assets/proxy-DgE2c-uA.js

js nab.gov.bt collected 2026-09-24 19:23:11 UTC 115,368 bytes, 1 lines download raw bytes

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