import{r as C,j as zt}from"./vendor-react-DgEFbQIi.js";const On=C.createContext({});function qt(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wf=typeof window<"u",fn=Wf?C.useLayoutEffect:C.useEffect,$i=C.createContext(null);function wr(e,t){e.indexOf(t)===-1&&e.push(t)}function en(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Wt=(e,t,n)=>n>t?t:n<e?e:n;let br=()=>{};const pe={},Ll=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ol=e=>typeof e=="object"&&e!==null,Il=e=>/^0[^.\s]+$/u.test(e);function Fl(e){let t;return()=>(t===void 0&&(t=e()),t)}const gt=e=>e,qn=(...e)=>e.reduce((t,n)=>i=>n(t(i))),Fe=(e,t,n)=>{const i=t-e;return i?(n-e)/i:1};class Sr{constructor(){this.subscriptions=[]}add(t){return wr(this.subscriptions,t),()=>en(this.subscriptions,t)}notify(t,n,i){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](t,n,i);else for(let r=0;r<s;r++){const o=this.subscriptions[r];o&&o(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const yt=e=>e*1e3,Vt=e=>e/1e3,Pr=(e,t)=>t?e*(1e3/t):0,$f=(e,t,n)=>{const i=t-e;return((n-e)%i+i)%i+e},Bl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Gf=1e-7,Yf=12;function Xf(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=Bl(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>Gf&&++a<Yf);return o}function Zn(e,t,n,i){if(e===t&&n===i)return gt;const s=r=>Xf(r,0,1,e,n);return r=>r===0||r===1?r:Bl(s(r),t,i)}const Nl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ar=e=>t=>1-e(1-t),jl=Zn(.33,1.53,.69,.99),Cr=Ar(jl),zl=Nl(Cr),Ul=e=>e>=1?1:(e*=2)<1?.5*Cr(e):.5*(2-Math.pow(2,-10*(e-1))),Mr=e=>1-Math.sin(Math.acos(e)),Wl=Ar(Mr),$l=Nl(Mr),Kf=Zn(.42,0,1,1),Hf=Zn(0,0,.58,1),Gl=Zn(.42,0,.58,1),Yl=e=>Array.isArray(e)&&typeof e[0]!="number";function Xl(e,t){return Yl(e)?e[$f(0,e.length,t)]:e}const Kl=e=>Array.isArray(e)&&typeof e[0]=="number",qf={linear:gt,easeIn:Kf,easeInOut:Gl,easeOut:Hf,circIn:Mr,circInOut:$l,circOut:Wl,backIn:Cr,backInOut:zl,backOut:jl,anticipate:Ul},Zf=e=>typeof e=="string",Do=e=>{if(Kl(e)){br(e.length===4);const[t,n,i,s]=e;return Zn(t,n,i,s)}else if(Zf(e))return qf[e];return e},ni=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Qf(e,t){let n=new Set,i=new Set,s=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,h=!1)=>{const m=h&&s?n:i;return f&&o.add(c),m.add(c),c},cancel:c=>{i.delete(c),o.delete(c)},process:c=>{if(a=c,s){r=!0;return}s=!0;const f=n;n=i,i=f,n.forEach(l),n.clear(),s=!1,r&&(r=!1,u.process(c))}};return u}const Jf=40;function Hl(e,t){let n=!1,i=!0;const s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=ni.reduce((v,x)=>(v[x]=Qf(r),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:h,render:d,postRender:m}=o,p=()=>{const v=pe.useManualTiming,x=v?s.timestamp:performance.now();n=!1,v||(s.delta=i?1e3/60:Math.max(Math.min(x-s.timestamp,Jf),1)),s.timestamp=x,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),f.process(s),h.process(s),d.process(s),m.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(p))},g=()=>{n=!0,i=!0,s.isProcessing||e(p)};return{schedule:ni.reduce((v,x)=>{const T=o[x];return v[x]=(P,S=!1,b=!1)=>(n||g(),T.schedule(P,S,b)),v},{}),cancel:v=>{for(let x=0;x<ni.length;x++)o[ni[x]].cancel(v)},state:s,steps:o}}const{schedule:B,cancel:Ft,state:st,steps:es}=Hl(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0);let fi;function th(){fi=void 0}const dt={now:()=>(fi===void 0&&dt.set(st.isProcessing||pe.useManualTiming?st.timestamp:performance.now()),fi),set:e=>{fi=e,queueMicrotask(th)}},ql=e=>t=>typeof t=="string"&&t.startsWith(e),Zl=ql("--"),eh=ql("var(--"),Dr=e=>eh(e)?nh.test(e.split("/*")[0].trim()):!1,nh=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Eo(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const hn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},In={...hn,transform:e=>Wt(0,1,e)},ii={...hn,default:1},Pn=e=>Math.round(e*1e5)/1e5,Er=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ih(e){return e==null}const sh=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rr=(e,t)=>n=>!!(typeof n=="string"&&sh.test(n)&&n.startsWith(e)||t&&!ih(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ql=(e,t,n)=>i=>{if(typeof i!="string")return i;const[s,r,o,a]=i.match(Er);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},rh=e=>Wt(0,255,e),ns={...hn,transform:e=>Math.round(rh(e))},Ae={test:Rr("rgb","red"),parse:Ql("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ns.transform(e)+", "+ns.transform(t)+", "+ns.transform(n)+", "+Pn(In.transform(i))+")"};function oh(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}const Ds={test:Rr("#"),parse:oh,transform:Ae.transform},Qn=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Qt=Qn("deg"),Ht=Qn("%"),D=Qn("px"),ah=Qn("vh"),lh=Qn("vw"),Ro={...Ht,parse:e=>Ht.parse(e)/100,transform:e=>Ht.transform(e*100)},$e={test:Rr("hsl","hue"),parse:Ql("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Ht.transform(Pn(t))+", "+Ht.transform(Pn(n))+", "+Pn(In.transform(i))+")"},J={test:e=>Ae.test(e)||Ds.test(e)||$e.test(e),parse:e=>Ae.test(e)?Ae.parse(e):$e.test(e)?$e.parse(e):Ds.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ae.transform(e):$e.transform(e),getAnimatableNone:e=>{const t=J.parse(e);return t.alpha=0,J.transform(t)}},uh=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ch(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Er))==null?void 0:t.length)||0)+(((n=e.match(uh))==null?void 0:n.length)||0)>0}const Jl="number",tu="color",fh="var",hh="var(",Vo="${}",dh=/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 nn(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[];let r=0;const a=t.replace(dh,l=>(J.test(l)?(i.color.push(r),s.push(tu),n.push(J.parse(l))):l.startsWith(hh)?(i.var.push(r),s.push(fh),n.push(l)):(i.number.push(r),s.push(Jl),n.push(parseFloat(l))),++r,Vo)).split(Vo);return{values:n,split:a,indexes:i,types:s}}function ph(e){return nn(e).values}function eu({split:e,types:t}){const n=e.length;return i=>{let s="";for(let r=0;r<n;r++)if(s+=e[r],i[r]!==void 0){const o=t[r];o===Jl?s+=Pn(i[r]):o===tu?s+=J.transform(i[r]):s+=i[r]}return s}}function mh(e){return eu(nn(e))}const gh=e=>typeof e=="number"?0:J.test(e)?J.getAnimatableNone(e):e,yh=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:gh(e);function _h(e){const t=nn(e);return eu(t)(t.values.map((i,s)=>yh(i,t.split[s])))}const Ut={test:ch,parse:ph,createTransformer:mh,getAnimatableNone:_h};function is(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function vh({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,r=0,o=0;if(!t)s=r=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=is(l,a,e+1/3),r=is(l,a,e),o=is(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function bi(e,t){return n=>n>0?t:e}const j=(e,t,n)=>e+(t-e)*n,ss=(e,t,n)=>{const i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},xh=[Ds,Ae,$e],Th=e=>xh.find(t=>t.test(e));function ko(e){const t=Th(e);if(!t)return!1;let n=t.parse(e);return t===$e&&(n=vh(n)),n}const Lo=(e,t)=>{const n=ko(e),i=ko(t);if(!n||!i)return bi(e,t);const s={...n};return r=>(s.red=ss(n.red,i.red,r),s.green=ss(n.green,i.green,r),s.blue=ss(n.blue,i.blue,r),s.alpha=j(n.alpha,i.alpha,r),Ae.transform(s))},Es=new Set(["none","hidden"]);function wh(e,t){return Es.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function bh(e,t){return n=>j(e,t,n)}function Vr(e){return typeof e=="number"?bh:typeof e=="string"?Dr(e)?bi:J.test(e)?Lo:Ah:Array.isArray(e)?nu:typeof e=="object"?J.test(e)?Lo:Sh:bi}function nu(e,t){const n=[...e],i=n.length,s=e.map((r,o)=>Vr(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function Sh(e,t){const n={...e,...t},i={};for(const s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=Vr(e[s])(e[s],t[s]));return s=>{for(const r in i)n[r]=i[r](s);return n}}function Ph(e,t){const n=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const r=t.types[s],o=e.indexes[r][i[r]],a=e.values[o]??0;n[s]=a,i[r]++}return n}const Ah=(e,t)=>{const n=Ut.createTransformer(t),i=nn(e),s=nn(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?Es.has(e)&&!s.values.length||Es.has(t)&&!i.values.length?wh(e,t):qn(nu(Ph(i,s),s.values),n):bi(e,t)};function iu(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?j(e,t,n):Vr(e)(e,t)}const Ch=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>B.update(t,n),stop:()=>Ft(t),now:()=>st.isProcessing?st.timestamp:dt.now()}},su=(e,t,n=10)=>{let i="";const s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=Math.round(e(r/(s-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},Si=2e4;function kr(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Si;)t+=n,i=e.next(t);return t>=Si?1/0:t}function ru(e,t=100,n){const i=n({...e,keyframes:[0,t]}),s=Math.min(kr(i),Si);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:Vt(s)}}const H={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 Rs(e,t){return e*Math.sqrt(1-t*t)}const Mh=12;function Dh(e,t,n){let i=n;for(let s=1;s<Mh;s++)i=i-e(i)/t(i);return i}const rs=.001;function Eh({duration:e=H.duration,bounce:t=H.bounce,velocity:n=H.velocity,mass:i=H.mass}){let s,r,o=1-t;o=Wt(H.minDamping,H.maxDamping,o),e=Wt(H.minDuration,H.maxDuration,Vt(e)),o<1?(s=u=>{const c=u*o,f=c*e,h=c-n,d=Rs(u,o),m=Math.exp(-f);return rs-h/d*m},r=u=>{const f=u*o*e,h=f*n+n,d=Math.pow(o,2)*Math.pow(u,2)*e,m=Math.exp(-f),p=Rs(Math.pow(u,2),o);return(-s(u)+rs>0?-1:1)*((h-d)*m)/p}):(s=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-rs+c*f},r=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=Dh(s,r,a);if(e=yt(e),isNaN(l))return{stiffness:H.stiffness,damping:H.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}const Rh=["duration","bounce"],Vh=["stiffness","damping","mass"];function Oo(e,t){return t.some(n=>e[n]!==void 0)}function kh(e){let t={velocity:H.velocity,stiffness:H.stiffness,damping:H.damping,mass:H.mass,isResolvedFromDuration:!1,...e};if(!Oo(e,Vh)&&Oo(e,Rh))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*Wt(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:H.mass,stiffness:s,damping:r}}else{const n=Eh({...e,velocity:0});t={...t,...n,mass:H.mass},t.isResolvedFromDuration=!0}return t}function Fn(e=H.visualDuration,t=H.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:s}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:d}=kh({...n,velocity:-Vt(n.velocity||0)}),m=h||0,p=u/(2*Math.sqrt(l*c)),g=o-r,y=Vt(Math.sqrt(l/c)),_=Math.abs(g)<5;i||(i=_?H.restSpeed.granular:H.restSpeed.default),s||(s=_?H.restDelta.granular:H.restDelta.default);let v,x,T,P,S,b;if(p<1)T=Rs(y,p),P=(m+p*y*g)/T,v=A=>{const M=Math.exp(-p*y*A);return o-M*(P*Math.sin(T*A)+g*Math.cos(T*A))},S=p*y*P+g*T,b=p*y*g-P*T,x=A=>Math.exp(-p*y*A)*(S*Math.sin(T*A)+b*Math.cos(T*A));else if(p===1){v=M=>o-Math.exp(-y*M)*(g+(m+y*g)*M);const A=m+y*g;x=M=>Math.exp(-y*M)*(y*A*M-m)}else{const A=y*Math.sqrt(p*p-1);v=k=>{const O=Math.exp(-p*y*k),L=Math.min(A*k,300);return o-O*((m+p*y*g)*Math.sinh(L)+A*g*Math.cosh(L))/A};const M=(m+p*y*g)/A,E=p*y*M-g*A,R=p*y*g-M*A;x=k=>{const O=Math.exp(-p*y*k),L=Math.min(A*k,300);return O*(E*Math.sinh(L)+R*Math.cosh(L))}}const w={calculatedDuration:d&&f||null,velocity:A=>yt(x(A)),next:A=>{if(!d&&p<1){const E=Math.exp(-p*y*A),R=Math.sin(T*A),k=Math.cos(T*A),O=o-E*(P*R+g*k),L=yt(E*(S*R+b*k));return a.done=Math.abs(L)<=i&&Math.abs(o-O)<=s,a.value=a.done?o:O,a}const M=v(A);if(d)a.done=A>=f;else{const E=yt(x(A));a.done=Math.abs(E)<=i&&Math.abs(o-M)<=s}return a.value=a.done?o:M,a},toString:()=>{const A=Math.min(kr(w),Si),M=su(E=>w.next(A*E).value,A,30);return A+"ms "+M},toTransition:()=>{}};return w}Fn.applyToOptions=e=>{const t=ru(e,100,Fn);return e.ease=t.ease,e.duration=yt(t.duration),e.type="keyframes",e};const Lh=5;function ou(e,t,n){const i=Math.max(t-Lh,0);return Pr(n-e(i),t-i)}function Vs({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],h={done:!1,value:f},d=b=>a!==void 0&&b<a||l!==void 0&&b>l,m=b=>a===void 0?l:l===void 0||Math.abs(a-b)<Math.abs(l-b)?a:l;let p=n*t;const g=f+p,y=o===void 0?g:o(g);y!==g&&(p=y-f);const _=b=>-p*Math.exp(-b/i),v=b=>y+_(b),x=b=>{const w=_(b),A=v(b);h.done=Math.abs(w)<=u,h.value=h.done?y:A};let T,P;const S=b=>{d(h.value)&&(T=b,P=Fn({keyframes:[h.value,m(h.value)],velocity:ou(v,b,h.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:b=>{let w=!1;return!P&&T===void 0&&(w=!0,x(b),S(b)),T!==void 0&&b>=T?P.next(b-T):(!w&&x(b),h)}}}function Oh(e,t,n){const i=[],s=n||pe.mix||iu,r=e.length-1;for(let o=0;o<r;o++){let a=s(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||gt:t;a=qn(l,a)}i.push(a)}return i}function Lr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){const r=e.length;if(br(r===t.length),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Oh(t,i,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const h=Fe(e[f],e[f+1],c);return a[f](h)};return n?c=>u(Wt(e[0],e[r-1],c)):u}function au(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const s=Fe(0,t,i);e.push(j(n,1,s))}}function Or(e){const t=[0];return au(t,e.length-1),t}function Ih(e,t){return e.map(n=>n*t)}function Fh(e,t){return e.map(()=>t||Gl).splice(0,e.length-1)}function An({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const s=Yl(i)?i.map(Do):Do(i),r={done:!1,value:t[0]},o=Ih(n&&n.length===t.length?n:Or(t),e),a=Lr(o,t,{ease:Array.isArray(s)?s:Fh(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}const Bh=e=>e!==null;function Gi(e,{repeat:t,repeatType:n="loop"},i,s=1){const r=e.filter(Bh),a=s<0||t&&n!=="loop"&&t%2===1?0:r.length-1;return!a||i===void 0?r[a]:i}const Nh={decay:Vs,inertia:Vs,tween:An,keyframes:An,spring:Fn};function lu(e){typeof e.type=="string"&&(e.type=Nh[e.type])}class Ir{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const jh=e=>e/100;class Pi extends Ir{constructor(t){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=()=>{var i,s;const{motionValue:n}=this.options;n&&n.updatedAt!==dt.now()&&this.tick(dt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(s=(i=this.options).onStop)==null||s.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;lu(t);const{type:n=An,repeat:i=0,repeatDelay:s=0,repeatType:r,velocity:o=0}=t;let{keyframes:a}=t;const l=n||An;l!==An&&typeof a[0]!="number"&&(this.mixKeyframes=qn(jh,iu(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=kr(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:h,repeatDelay:d,type:m,onUpdate:p,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?y<0:y>s;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=s);let v=this.currentTime,x=i;if(f){const b=Math.min(this.currentTime,s)/a;let w=Math.floor(b),A=b%1;!A&&b>=1&&(A=1),A===1&&w--,w=Math.min(w,f+1),!!(w%2)&&(h==="reverse"?(A=1-A,d&&(A-=d/a)):h==="mirror"&&(x=o)),v=Wt(0,1,A)*a}let T;_?(this.delayState.value=c[0],T=this.delayState):T=x.next(v),r&&!_&&(T.value=r(T.value));let{done:P}=T;!_&&l!==null&&(P=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return S&&m!==Vs&&(T.value=Gi(c,this.options,g,this.speed)),p&&p(T.value),S&&this.finish(),T}then(t,n){return this.finished.then(t,n)}get duration(){return Vt(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vt(t)}get time(){return Vt(this.currentTime)}set time(t){t=yt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return ou(i=>this.generator.next(i).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(dt.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Vt(this.currentTime))}play(){var s,r;if(this.isStopped)return;const{driver:t=Ch,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(r=(s=this.options).onPlay)==null||r.call(s);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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(dt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function zh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ce=e=>e*180/Math.PI,ks=e=>{const t=Ce(Math.atan2(e[1],e[0]));return Ls(t)},Uh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ks,rotateZ:ks,skewX:e=>Ce(Math.atan(e[1])),skewY:e=>Ce(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Ls=e=>(e=e%360,e<0&&(e+=360),e),Io=ks,Fo=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bo=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Wh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fo,scaleY:Bo,scale:e=>(Fo(e)+Bo(e))/2,rotateX:e=>Ls(Ce(Math.atan2(e[6],e[5]))),rotateY:e=>Ls(Ce(Math.atan2(-e[2],e[0]))),rotateZ:Io,rotate:Io,skewX:e=>Ce(Math.atan(e[4])),skewY:e=>Ce(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Os(e){return e.includes("scale")?1:0}function Is(e,t){if(!e||e==="none")return Os(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,s;if(n)i=Wh,s=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Uh,s=a}if(!s)return Os(t);const r=i[t],o=s[1].split(",").map(Gh);return typeof r=="function"?r(o):o[r]}const $h=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Is(n,t)};function Gh(e){return parseFloat(e.trim())}const dn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pn=new Set([...dn,"pathRotation"]),No=e=>e===hn||e===D,Yh=new Set(["x","y","z"]),Xh=dn.filter(e=>!Yh.has(e));function Kh(e){const t=[];return Xh.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const le={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{const s=e.max-e.min;return i==="border-box"?s:s-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Is(t,"x"),y:(e,{transform:t})=>Is(t,"y")};le.translateX=le.x;le.translateY=le.y;const De=new Set;let Fs=!1,Bs=!1,Ns=!1;function uu(){if(Bs){const e=Array.from(De).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const s=Kh(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))==null||a.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Bs=!1,Fs=!1,De.forEach(e=>e.complete(Ns)),De.clear()}function cu(){De.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Bs=!0)})}function Hh(){Ns=!0,cu(),uu(),Ns=!1}class Fr{constructor(t,n,i,s,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=s,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(De.add(this),Fs||(Fs=!0,B.read(cu),B.resolveKeyframes(uu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:s}=this;if(t[0]===null){const r=s==null?void 0:s.get(),o=t[t.length-1];if(r!==void 0)t[0]=r;else if(i&&n){const a=i.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),s&&r===void 0&&s.set(t[0])}zh(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),De.delete(this)}cancel(){this.state==="scheduled"&&(De.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const qh=e=>e.startsWith("--");function fu(e,t,n){qh(t)?e.style.setProperty(t,n):e.style[t]=n}const Zh={};function Br(e,t){const n=Fl(e);return()=>Zh[t]??n()}const Nr=Br(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),hu=Br(()=>window.ViewTimeline!==void 0,"viewTimeline"),du=Br(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vn=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,jo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vn([0,.65,.55,1]),circOut:vn([.55,0,1,.45]),backIn:vn([.31,.01,.66,-.59]),backOut:vn([.33,1.53,.69,.99])};function pu(e,t){if(e)return typeof e=="function"?du()?su(e,t):"ease-out":Kl(e)?vn(e):Array.isArray(e)?e.map(n=>pu(n,t)||jo.easeOut):jo[e]}function Qh(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=pu(a,s);Array.isArray(f)&&(c.easing=f);const h={delay:i,duration:s,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(c,h)}function jr(e){return typeof e=="function"&&"applyToOptions"in e}function Jh({type:e,...t}){return jr(e)&&du()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class mu extends Ir{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:i,keyframes:s,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=t,br(typeof t.type!="string");const u=Jh(t);this.animation=Qh(n,i,s,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=Gi(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),fu(n,i,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,i,s;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((s=(i=this.animation).commitStyles)==null||s.call(i))}get duration(){var n,i;const t=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return Vt(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Vt(t)}get time(){return Vt(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:i,observe:s}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Nr()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),gt):s(this)}}const gu={anticipate:Ul,backInOut:zl,circInOut:$l};function td(e){return e in gu}function ed(e){typeof e.ease=="string"&&td(e.ease)&&(e.ease=gu[e.ease])}const os=10;class nd extends mu{constructor(t){ed(t),lu(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:s,element:r,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new Pi({...o,autoplay:!1}),l=Math.max(os,dt.now()-this.startTime),u=Wt(0,os,l-os),c=a.sample(l).value,{name:f}=this.options;r&&f&&fu(r,f,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const zo=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ut.test(e)||e==="0")&&!e.startsWith("url("));function id(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function sd(e,t,n,i){const s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;const r=e[e.length-1],o=zo(s,t),a=zo(r,t);return!o||!a?!1:id(e)||(n==="spring"||jr(n))&&i}function js(e){e.duration=0,e.type="keyframes"}const yu=new Set(["opacity","clipPath","filter","transform"]),rd=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function od(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&rd.test(e[t]))return!0;return!1}const ad=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),ld=Fl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ud(e){var f;const{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:r,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return ld()&&n&&(yu.has(n)||ad.has(n)&&od(a))&&(n!=="transform"||!c)&&!u&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}const cd=40;class fd extends Ir{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var m;super(),this.stop=()=>{var p,g;this._animation&&(this._animation.stop(),(p=this.stopTimeline)==null||p.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=dt.now();const h={autoplay:t,delay:n,type:i,repeat:s,repeatDelay:r,repeatType:o,name:l,motionValue:u,element:c,...f},d=(c==null?void 0:c.KeyframeResolver)||Fr;this.keyframeResolver=new d(a,(p,g,y)=>this.onKeyframesResolved(p,g,h,!y),l,u,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(t,n,i,s){var y,_;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=dt.now();let f=!0;sd(t,r,o,a)||(f=!1,(pe.instantAnimations||!l)&&(c==null||c(Gi(t,i,n))),t[0]=t[t.length-1],js(i),i.repeat=0);const d={startTime:s?this.resolvedAt?this.resolvedAt-this.createdAt>cd?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},m=f&&!u&&ud(d),p=(_=(y=d.motionValue)==null?void 0:y.owner)==null?void 0:_.current;let g;if(m)try{g=new nd({...d,element:p})}catch{g=new Pi(d)}else g=new Pi(d);g.finished.then(()=>{this.notifyFinished()}).catch(gt),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Hh()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}class hd{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>t.finished))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=n}attachTimeline(t){const n=this.animations.map(i=>i.attachTimeline(t));return()=>{n.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return Uo(this.animations,"duration")}get iterationDuration(){return Uo(this.animations,"iterationDuration")}runAll(t){this.animations.forEach(n=>n[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function Uo(e,t){let n=0;for(let i=0;i<e.length;i++){const s=e[i][t];s!==null&&s>n&&(n=s)}return n}class dd extends hd{then(t,n){return this.finished.finally(t).then(()=>{})}}function _u(e,t,n,i=0,s=1){const r=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*i;return typeof n=="function"?n(r,o):s===1?r*i:a-r*i}const Wo=30,pd=e=>!isNaN(parseFloat(e)),Cn={current:void 0};class md{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var r;const s=dt.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=dt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pd(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Sr);const i=this.events[t].add(n);return t==="change"?()=>{i(),B.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Cn.current&&Cn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=dt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wo)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wo);return Pr(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kt(e,t){return new md(e,t)}function zr(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...i}=e;return{...t,...i}}return e}function Ur(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?zr(n,e):n}const gd={type:"spring",stiffness:500,damping:25,restSpeed:10},yd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_d={type:"keyframes",duration:.8},vd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xd=(e,{keyframes:t})=>t.length>2?_d:pn.has(e)?e.startsWith("scale")?yd(t[1]):gd:vd,Td=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function wd(e){for(const t in e)if(!Td.has(t))return!0;return!1}const Wr=(e,t,n,i={},s,r)=>o=>{const a=Ur(i,e)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-yt(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:s};wd(a)||Object.assign(c,xd(e,c)),c.duration&&(c.duration=yt(c.duration)),c.repeatDelay&&(c.repeatDelay=yt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(js(c),c.delay===0&&(f=!0)),(pe.instantAnimations||pe.skipAnimations||s!=null&&s.shouldSkipAnimations||a.skipAnimations)&&(f=!0,js(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!r&&t.get()!==void 0){const h=Gi(c.keyframes,a);if(h!==void 0){B.update(()=>{c.onUpdate(h),c.onComplete()});return}}return a.isSync?new Pi(c):new fd(c)},bd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sd(e){const t=bd.exec(e);if(!t)return[,];const[,n,i,s]=t;return[`--${n??i}`,s]}function vu(e,t,n=1){const[i,s]=Sd(e);if(!i)return;const r=window.getComputedStyle(t).getPropertyValue(i);if(r){const o=r.trim();return Ll(o)?parseFloat(o):o}return Dr(s)?vu(s,t,n+1):s}function $o(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function $r(e,t,n,i){if(typeof t=="function"){const[s,r]=$o(i);t=t(n!==void 0?n:e.custom,s,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[s,r]=$o(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function Ee(e,t,n){const i=e.getProps();return $r(i,t,n!==void 0?n:i.custom,e)}const xu=new Set(["width","height","top","left","right","bottom",...dn]),zs=e=>Array.isArray(e);function Pd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kt(n))}function Ad(e){return zs(e)?e[e.length-1]||0:e}function Gr(e,t){const n=Ee(e,t);let{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(const o in r){const a=Ad(r[o]);Pd(e,o,a)}}const it=e=>!!(e&&e.getVelocity);function Cd(e){return!!(it(e)&&e.add)}function Us(e,t){const n=e.getValue("willChange");if(Cd(n))return n.add(t);if(!n&&pe.WillChange){const i=new pe.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function Yr(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Md="framerAppearId",Tu="data-"+Yr(Md);function wu(e){return e.props[Tu]}function Dd({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Xr(e,t,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:r,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();r=r?zr(r,l):l;const u=r==null?void 0:r.reduceMotion,c=r==null?void 0:r.skipAnimations;i&&(r=i);const f=[],h=s&&e.animationState&&e.animationState.getState()[s],d=r==null?void 0:r.path;d&&d.animateVisualElement(e,a,r,n,f);for(const m in a){const p=e.getValue(m,e.latestValues[m]??null),g=a[m];if(g===void 0||h&&Dd(h,m))continue;const y={delay:n,...Ur(r||{},m)};c&&(y.skipAnimations=!0);const _=p.get();if(_!==void 0&&!p.isAnimating()&&!Array.isArray(g)&&g===_&&!y.velocity){B.update(()=>p.set(g));continue}let v=!1;if(window.MotionHandoffAnimation){const P=wu(e);if(P){const S=window.MotionHandoffAnimation(P,m,B);S!==null&&(y.startTime=S,v=!0)}}Us(e,m);const x=u??e.shouldReduceMotion;p.start(Wr(m,p,g,x&&xu.has(m)?{type:!1}:y,e,v));const T=p.animation;T&&f.push(T)}if(o){const m=()=>B.update(()=>{o&&Gr(e,o)});f.length?Promise.all(f).then(m):m()}return f}function Ws(e,t,n={}){var l;const i=Ee(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const r=i?()=>Promise.all(Xr(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:h}=s;return Ed(e,t,u,c,f,h,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Ed(e,t,n=0,i=0,s=0,r=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(Ws(l,t,{...o,delay:n+(typeof i=="function"?0:i)+_u(e.variantChildren,l,i,s,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function bu(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const s=t.map(r=>Ws(e,r,n));i=Promise.all(s)}else if(typeof t=="string")i=Ws(e,t,n);else{const s=typeof t=="function"?Ee(e,t,n.custom):t;i=Promise.all(Xr(e,s,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const Rd={test:e=>e==="auto",parse:e=>e},Su=e=>t=>t.test(e),Pu=[hn,D,Ht,Qt,lh,ah,Rd],Go=e=>Pu.find(Su(e));function Vd(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Il(e):!0}const kd=new Set(["brightness","contrast","saturate","opacity"]);function Ld(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Er)||[];if(!i)return e;const s=n.replace(i,"");let r=kd.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}const Od=/\b([a-z-]*)\(.*?\)/gu,$s={...Ut,getAnimatableNone:e=>{const t=e.match(Od);return t?t.map(Ld).join(" "):e}},Gs={...Ut,getAnimatableNone:e=>{const t=Ut.parse(e);return Ut.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},Yo={...hn,transform:Math.round},Id={rotate:Qt,pathRotation:Qt,rotateX:Qt,rotateY:Qt,rotateZ:Qt,scale:ii,scaleX:ii,scaleY:ii,scaleZ:ii,skew:Qt,skewX:Qt,skewY:Qt,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:In,originX:Ro,originY:Ro,originZ:D},Ai={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,top:D,right:D,bottom:D,left:D,inset:D,insetBlock:D,insetBlockStart:D,insetBlockEnd:D,insetInline:D,insetInlineStart:D,insetInlineEnd:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,paddingBlock:D,paddingBlockStart:D,paddingBlockEnd:D,paddingInline:D,paddingInlineStart:D,paddingInlineEnd:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,marginBlock:D,marginBlockStart:D,marginBlockEnd:D,marginInline:D,marginInlineStart:D,marginInlineEnd:D,fontSize:D,backgroundPositionX:D,backgroundPositionY:D,...Id,zIndex:Yo,fillOpacity:In,strokeOpacity:In,numOctaves:Yo},Fd={...Ai,color:J,backgroundColor:J,outlineColor:J,fill:J,stroke:J,borderColor:J,borderTopColor:J,borderRightColor:J,borderBottomColor:J,borderLeftColor:J,filter:$s,WebkitFilter:$s,mask:Gs,WebkitMask:Gs},Au=e=>Fd[e],Bd=new Set([$s,Gs]);function Cu(e,t){let n=Au(e);return Bd.has(n)||(n=Ut),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Nd=new Set(["auto","none","0"]);function jd(e,t,n){let i=0,s;for(;i<e.length&&!s;){const r=e[i];typeof r=="string"&&!Nd.has(r)&&nn(r).values.length&&(s=e[i]),i++}if(s&&n)for(const r of t)e[r]=Cu(n,s)}class zd extends Fr{constructor(t,n,i,s,r){super(t,n,i,s,r,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),Dr(f))){const h=vu(f,n.current);h!==void 0&&(t[c]=h),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!xu.has(i)||t.length!==2)return;const[s,r]=t,o=Go(s),a=Go(r),l=Eo(s),u=Eo(r);if(l!==u&&le[i]){this.needsMeasurement=!0;return}if(o!==a)if(No(o)&&No(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else le[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let s=0;s<t.length;s++)(t[s]===null||Vd(t[s]))&&i.push(s);i.length&&jd(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=le[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const s=n[n.length-1];s!==void 0&&t.getValue(i,s).jump(s,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);const r=i.length-1,o=i[r];i[r]=le[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Yi(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;t&&(i=t.current);const s=(n==null?void 0:n[e])??i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e).filter(i=>i!=null)}const Ys=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Mn(e){return Ol(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:sn,cancel:Mu}=Hl(queueMicrotask,!1),Nt={x:!1,y:!1};function Du(){return Nt.x||Nt.y}function Ud(e){return e==="x"||e==="y"?Nt[e]?null:(Nt[e]=!0,()=>{Nt[e]=!1}):Nt.x||Nt.y?null:(Nt.x=Nt.y=!0,()=>{Nt.x=Nt.y=!1})}function Eu(e,t){const n=Yi(e),i=new AbortController,s={passive:!0,...t,signal:i.signal};return[n,s,()=>i.abort()]}function Wd(e){return!(e.pointerType==="touch"||Du())}function $d(e,t,n={}){const[i,s,r]=Eu(e,n);return i.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",m)},f=g=>{u&&(u(g),u=void 0),c()},h=g=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,f(g))},d=()=>{a=!0,window.addEventListener("pointerup",h,s),window.addEventListener("pointercancel",h,s)},m=g=>{if(g.pointerType!=="touch"){if(a){l=!0;return}f(g)}},p=g=>{if(!Wd(g))return;l=!1;const y=t(o,g);typeof y=="function"&&(u=y,o.addEventListener("pointerleave",m,s))};o.addEventListener("pointerenter",p,s),o.addEventListener("pointerdown",d,s)}),r}const Ru=(e,t)=>t?e===t?!0:Ru(e,t.parentElement):!1,Kr=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Gd=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Yd(e){return Gd.has(e.tagName)||e.isContentEditable===!0}const Xd=new Set(["INPUT","SELECT","TEXTAREA"]);function Kd(e){return Xd.has(e.tagName)||e.isContentEditable===!0}const hi=new WeakSet;function Xo(e){return t=>{t.key==="Enter"&&e(t)}}function as(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Hd=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=Xo(()=>{if(hi.has(n))return;as(n,"down");const s=Xo(()=>{as(n,"up")}),r=()=>as(n,"cancel");n.addEventListener("keyup",s,t),n.addEventListener("blur",r,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function Ko(e){return Kr(e)&&!Du()}const Ho=new WeakSet;function qd(e,t,n={}){const[i,s,r]=Eu(e,n),o=a=>{const l=a.currentTarget;if(!Ko(a)||Ho.has(a))return;hi.add(l),n.stopPropagation&&Ho.add(a);const u=t(l,a),c=(d,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),hi.has(l)&&hi.delete(l),Ko(d)&&typeof u=="function"&&u(d,{success:m})},f=d=>{c(d,l===window||l===document||n.useGlobalTarget||Ru(l,d.target))},h=d=>{c(d,!1)};window.addEventListener("pointerup",f,s),window.addEventListener("pointercancel",h,s)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,s),Mn(a)&&(a.addEventListener("focus",u=>Hd(u,s)),!Yd(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Xi(e){return Ol(e)&&"ownerSVGElement"in e}const di=new WeakMap;let ae;const Vu=(e,t,n)=>(i,s)=>s&&s[0]?s[0][e+"Size"]:Xi(i)&&"getBBox"in i?i.getBBox()[t]:i[n],Zd=Vu("inline","width","offsetWidth"),Qd=Vu("block","height","offsetHeight");function Jd({target:e,borderBoxSize:t}){var n;(n=di.get(e))==null||n.forEach(i=>{i(e,{get width(){return Zd(e,t)},get height(){return Qd(e,t)}})})}function tp(e){e.forEach(Jd)}function ep(){typeof ResizeObserver>"u"||(ae=new ResizeObserver(tp))}function np(e,t){ae||ep();const n=Yi(e);return n.forEach(i=>{let s=di.get(i);s||(s=new Set,di.set(i,s)),s.add(t),ae==null||ae.observe(i)}),()=>{n.forEach(i=>{const s=di.get(i);s==null||s.delete(t),s!=null&&s.size||ae==null||ae.unobserve(i)})}}const pi=new Set;let Ge;function ip(){Ge=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};pi.forEach(t=>t(e))},window.addEventListener("resize",Ge)}function sp(e){return pi.add(e),Ge||ip(),()=>{pi.delete(e),!pi.size&&typeof Ge=="function"&&(window.removeEventListener("resize",Ge),Ge=void 0)}}function Xs(e,t){return typeof e=="function"?sp(e):np(e,t)}function ku(e,t){let n;const i=()=>{const{currentTime:s}=t,o=(s===null?0:s.value)/100;n!==o&&e(o),n=o};return B.preUpdate(i,!0),()=>Ft(i)}function Lu(e){return Xi(e)&&e.tagName==="svg"}function rp(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],s=e[1+n],r=e[2+n],o=e[3+n],a=Lr(s,r,o);return t?a(i):a}const op=[...Pu,J,Ut],ap=e=>op.find(Su(e)),qo=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ye=()=>({x:qo(),y:qo()}),Zo=()=>({min:0,max:0}),Q=()=>({x:Zo(),y:Zo()}),Bn=new WeakMap;function Ki(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Nn(e){return typeof e=="string"||Array.isArray(e)}const Hr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],qr=["initial",...Hr];function Hi(e){return Ki(e.animate)||qr.some(t=>Nn(e[t]))}function Ou(e){return!!(Hi(e)||e.variants)}function lp(e,t,n){for(const i in t){const s=t[i],r=n[i];if(it(s))e.addValue(i,s);else if(it(r))e.addValue(i,kt(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){const o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{const o=e.getStaticValue(i);e.addValue(i,kt(o!==void 0?o:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Ci={current:null},Zr={current:!1},up=typeof window<"u";function Iu(){if(Zr.current=!0,!!up)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ci.current=e.matches;e.addEventListener("change",t),t()}else Ci.current=!1}const Qo=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Mi={};function Fu(e){Mi=e}function cp(){return Mi}class Bu{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:s,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Fr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=dt.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,B.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=r,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Hi(n),this.isVariantNode=Ou(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const m=h[d];u[d]!==void 0&&it(m)&&m.set(u[d])}}mount(t){var n,i;if(this.hasBeenMounted)for(const s in this.initialValues)(n=this.values.get(s))==null||n.jump(this.initialValues[s]),this.latestValues[s]=this.initialValues[s];this.current=t,Bn.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,r)=>this.bindToMotionValue(r,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Zr.current||Iu(),this.shouldReduceMotion=Ci.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Ft(this.notifyUpdate),Ft(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&yu.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,f=new mu({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:yt(c)}),h=o(f);this.valueSubscriptions.set(t,()=>{h(),f.cancel()});return}const i=pn.has(t);i&&this.onBindTransform&&this.onBindTransform();const s=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&B.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{s(),r&&r()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Mi){const n=Mi[t];if(!n)continue;const{isEnabled:i,Feature:s}=n;if(!this.features[t]&&s&&i(this.props)&&(this.features[t]=new s(this)),this.features[t]){const r=this.features[t];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):Q()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Qo.length;i++){const s=Qo[i];this.propEventSubscriptions[s]&&(this.propEventSubscriptions[s](),delete this.propEventSubscriptions[s]);const r="on"+s,o=t[r];o&&(this.propEventSubscriptions[s]=this.on(s,o))}this.prevMotionValues=lp(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=kt(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Ll(i)||Il(i))?i=parseFloat(i):!ap(i)&&Ut.test(n)&&(i=Cu(t,n)),this.setBaseTarget(t,it(i)?i.get():i)),it(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var r;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=$r(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(i=o[t])}if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!it(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Sr),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){sn.render(this.render)}}class Nu extends Bu{constructor(){super(...arguments),this.KeyframeResolver=zd}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const i=t.style;return i?i[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;it(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class _e{constructor(t){this.isMounted=!1,this.node=t}update(){}}function ju({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function fp({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function hp(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function ls(e){return e===void 0||e===1}function Ks({scale:e,scaleX:t,scaleY:n}){return!ls(e)||!ls(t)||!ls(n)}function Se(e){return Ks(e)||zu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function zu(e){return Jo(e.x)||Jo(e.y)}function Jo(e){return e&&e!=="0%"}function Di(e,t,n){const i=e-n,s=t*i;return n+s}function ta(e,t,n,i,s){return s!==void 0&&(e=Di(e,s,i)),Di(e,n,i)+t}function Hs(e,t=0,n=1,i,s){e.min=ta(e.min,t,n,i,s),e.max=ta(e.max,t,n,i,s)}function Uu(e,{x:t,y:n}){Hs(e.x,t.translate,t.scale,t.originPoint),Hs(e.y,n.translate,n.scale,n.originPoint)}const ea=.999999999999,na=1.0000000000001;function dp(e,t,n,i=!1){var a;const s=n.length;if(!s)return;t.x=t.y=1;let r,o;for(let l=0;l<s;l++){r=n[l],o=r.projectionDelta;const{visualElement:u}=r.options;u&&u.props.style&&u.props.style.display==="contents"||(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&(Yt(e.x,-r.scroll.offset.x),Yt(e.y,-r.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Uu(e,o)),i&&Se(r.latestValues)&&mi(e,r.latestValues,(a=r.layout)==null?void 0:a.layoutBox))}t.x<na&&t.x>ea&&(t.x=1),t.y<na&&t.y>ea&&(t.y=1)}function Yt(e,t){e.min+=t,e.max+=t}function ia(e,t,n,i,s=.5){const r=j(e.min,e.max,s);Hs(e,t,n,r,i)}function sa(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function mi(e,t,n){const i=n??e;ia(e.x,sa(t.x,i.x),t.scaleX,t.scale,t.originX),ia(e.y,sa(t.y,i.y),t.scaleY,t.scale,t.originY)}function Wu(e,t){return ju(hp(e.getBoundingClientRect(),t))}function pp(e,t,n){const i=Wu(e,n),{scroll:s}=t;return s&&(Yt(i.x,s.offset.x),Yt(i.y,s.offset.y)),i}const mp={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},gp=dn.length;function yp(e,t,n){let i="",s=!0;for(let o=0;o<gp;o++){const a=dn[o],l=e[a];if(l===void 0)continue;let u=!0;if(typeof l=="number")u=l===(a.startsWith("scale")?1:0);else{const c=parseFloat(l);u=a.startsWith("scale")?c===1:c===0}if(!u||n){const c=Ys(l,Ai[a]);if(!u){s=!1;const f=mp[a]||a;i+=`${f}(${c}) `}n&&(t[a]=c)}}const r=e.pathRotation;return r&&(s=!1,i+=`rotate(${Ys(r,Ai.pathRotation)}) `),i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function Qr(e,t,n){const{style:i,vars:s,transformOrigin:r}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(pn.has(l)){o=!0;continue}else if(Zl(l)){s[l]=u;continue}else{const c=Ys(u,Ai[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=yp(t,e.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function $u(e,{style:t,vars:n},i,s){const r=e.style;let o;for(o in t)r[o]=t[o];s==null||s.applyProjectionStyles(r,i);for(o in n)r.setProperty(o,n[o])}function ra(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gn={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=ra(e,t.target.x),i=ra(e,t.target.y);return`${n}% ${i}%`}},_p={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,s=Ut.parse(e);if(s.length>5)return i;const r=Ut.createTransformer(e),o=typeof s[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;s[0+o]/=a,s[1+o]/=l;const u=j(a,l,.5);return typeof s[2+o]=="number"&&(s[2+o]/=u),typeof s[3+o]=="number"&&(s[3+o]/=u),r(s)}},qs={borderRadius:{...gn,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gn,borderTopRightRadius:gn,borderBottomLeftRadius:gn,borderBottomRightRadius:gn,boxShadow:_p};function Gu(e,{layout:t,layoutId:n}){return pn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!qs[e]||e==="opacity")}function Jr(e,t,n){var o;const i=e.style,s=t==null?void 0:t.style,r={};if(!i)return r;for(const a in i)(it(i[a])||s&&it(s[a])||Gu(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=i[a]);return r}function vp(e){return window.getComputedStyle(e)}class Yu extends Nu{constructor(){super(...arguments),this.type="html",this.renderInstance=$u}readValueFromInstance(t,n){var i;if(pn.has(n))return(i=this.projection)!=null&&i.isProjecting?Os(n):$h(t,n);{const s=vp(t),r=(Zl(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Wu(t,n)}build(t,n,i){Qr(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Jr(t,n,i)}}function xp(e,t){return e in t}class Tp extends Bu{constructor(){super(...arguments),this.type="object"}readValueFromInstance(t,n){if(xp(n,t)){const i=t[n];if(typeof i=="string"||typeof i=="number")return i}}getBaseTargetFromProps(){}removeValueFromRenderState(t,n){delete n.output[t]}measureInstanceViewportBox(){return Q()}build(t,n){Object.assign(t.output,n)}renderInstance(t,{output:n}){Object.assign(t,n)}sortInstanceNodePosition(){return 0}}const wp={offset:"stroke-dashoffset",array:"stroke-dasharray"},bp={offset:"strokeDashoffset",array:"strokeDasharray"};function Sp(e,t,n=1,i=0,s=!0){e.pathLength=1;const r=s?wp:bp;e[r.offset]=`${-i}`,e[r.array]=`${t} ${n}`}const Pp=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Xu(e,{attrX:t,attrY:n,attrScale:i,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,u,c){if(Qr(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:h}=e;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const d of Pp)f[d]!==void 0&&(h[d]=f[d],delete f[d]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),s!==void 0&&Sp(f,s,r,o,!1)}const Ku=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"]),Hu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ap(e,t,n,i){$u(e,t,void 0,i);for(const s in t.attrs)e.setAttribute(Ku.has(s)?s:Yr(s),t.attrs[s])}function qu(e,t,n){const i=Jr(e,t,n);for(const s in e)if(it(e[s])||it(t[s])){const r=dn.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}class Zu extends Nu{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Q}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(pn.has(n)){const i=Au(n);return i&&i.default||0}return n=Ku.has(n)?n:Yr(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return qu(t,n,i)}build(t,n,i){Xu(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,s){Ap(t,n,i,s)}mount(t){this.isSVGTag=Hu(t.tagName),super.mount(t)}}const Cp=qr.length;function Qu(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Qu(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Cp;n++){const i=qr[n],s=e.props[i];(Nn(s)||s===!1)&&(t[i]=s)}return t}function Ju(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const Mp=[...Hr].reverse(),Dp=Hr.length;function Ep(e){return t=>Promise.all(t.map(({animation:n,options:i})=>bu(e,n,i)))}function Rp(e){let t=Ep(e),n=oa(),i=!0,s=!1;const r=u=>(c,f)=>{var d;const h=Ee(e,f,u==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:m,transitionEnd:p,...g}=h;c={...c,...g,...p}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,f=Qu(e.parent)||{},h=[],d=new Set;let m={},p=1/0;for(let y=0;y<Dp;y++){const _=Mp[y],v=n[_],x=c[_]!==void 0?c[_]:f[_],T=Nn(x),P=_===u?v.isActive:null;P===!1&&(p=y);let S=x===f[_]&&x!==c[_]&&T;if(S&&(i||s)&&e.manuallyAnimateOnMount&&(S=!1),v.protectedKeys={...m},!v.isActive&&P===null||!x&&!v.prevProp||Ki(x)||typeof x=="boolean")continue;if(_==="exit"&&v.isActive&&P!==!0){v.prevResolvedValues&&(m={...m,...v.prevResolvedValues});continue}const b=Vp(v.prevProp,x);let w=b||_===u&&v.isActive&&!S&&T||y>p&&T,A=!1;const M=Array.isArray(x)?x:[x];let E=M.reduce(r(_),{});P===!1&&(E={});const{prevResolvedValues:R={}}=v,k={...R,...E},O=V=>{w=!0,d.has(V)&&(A=!0,d.delete(V)),v.needsAnimating[V]=!0;const W=e.getValue(V);W&&(W.liveStyle=!1)};for(const V in k){const W=E[V],et=R[V];if(m.hasOwnProperty(V))continue;let $=!1;zs(W)&&zs(et)?$=!Ju(W,et)||b:$=W!==et,$?W!=null?O(V):d.add(V):W!==void 0&&d.has(V)?O(V):v.protectedKeys[V]=!0}v.prevProp=x,v.prevResolvedValues=E,v.isActive&&(m={...m,...E}),(i||s)&&e.blockInitialAnimation&&(w=!1);const L=S&&b;w&&(!L||A)&&h.push(...M.map(V=>{const W={type:_};if(typeof V=="string"&&(i||s)&&!L&&e.manuallyAnimateOnMount&&e.parent){const{parent:et}=e,$=Ee(et,V);if(et.enteringChildren&&$){const{delayChildren:ft}=$.transition||{};W.delay=_u(et.enteringChildren,e,ft)}}return{animation:V,options:W}}))}if(d.size){const y={};if(typeof c.initial!="boolean"){const _=Ee(e,Array.isArray(c.initial)?c.initial[0]:c.initial);_&&_.transition&&(y.transition=_.transition)}d.forEach(_=>{const v=e.getBaseTarget(_),x=e.getValue(_);x&&(x.liveStyle=!0),y[_]=v??null}),h.push({animation:y})}let g=!!h.length;return i&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),i=!1,s=!1,g?t(h):Promise.resolve()}function l(u,c){var h;if(n[u].isActive===c)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(d=>{var m;return(m=d.animationState)==null?void 0:m.setActive(u,c)}),n[u].isActive=c;const f=a(u);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=oa(),s=!0}}}function Vp(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ju(t,e):!1}function Te(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oa(){return{animate:Te(!0),whileInView:Te(),whileHover:Te(),whileTap:Te(),whileDrag:Te(),whileFocus:Te(),exit:Te()}}function Zs(e,t){e.min=t.min,e.max=t.max}function Bt(e,t){Zs(e.x,t.x),Zs(e.y,t.y)}function aa(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const tc=1e-4,kp=1-tc,Lp=1+tc,ec=.01,Op=0-ec,Ip=0+ec;function pt(e){return e.max-e.min}function Fp(e,t,n){return Math.abs(e-t)<=n}function la(e,t,n,i=.5){e.origin=i,e.originPoint=j(t.min,t.max,e.origin),e.scale=pt(n)/pt(t),e.translate=j(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kp&&e.scale<=Lp||isNaN(e.scale))&&(e.scale=1),(e.translate>=Op&&e.translate<=Ip||isNaN(e.translate))&&(e.translate=0)}function Dn(e,t,n,i){la(e.x,t.x,n.x,i?i.originX:void 0),la(e.y,t.y,n.y,i?i.originY:void 0)}function ua(e,t,n,i=0){const s=i?j(n.min,n.max,i):n.min;e.min=s+t.min,e.max=e.min+pt(t)}function Bp(e,t,n,i){ua(e.x,t.x,n.x,i==null?void 0:i.x),ua(e.y,t.y,n.y,i==null?void 0:i.y)}function ca(e,t,n,i=0){const s=i?j(n.min,n.max,i):n.min;e.min=t.min-s,e.max=e.min+pt(t)}function Ei(e,t,n,i){ca(e.x,t.x,n.x,i==null?void 0:i.x),ca(e.y,t.y,n.y,i==null?void 0:i.y)}function fa(e,t,n,i,s){return e-=t,e=Di(e,1/n,i),s!==void 0&&(e=Di(e,1/s,i)),e}function Np(e,t=0,n=1,i=.5,s,r=e,o=e){if(Ht.test(t)&&(t=parseFloat(t),t=j(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=j(r.min,r.max,i);e===r&&(a-=t),e.min=fa(e.min,t,n,a,s),e.max=fa(e.max,t,n,a,s)}function ha(e,t,[n,i,s],r,o){Np(e,t[n],t[i],t[s],t.scale,r,o)}const jp=["x","scaleX","originX"],zp=["y","scaleY","originY"];function da(e,t,n,i){ha(e.x,t,jp,n?n.x:void 0,i?i.x:void 0),ha(e.y,t,zp,n?n.y:void 0,i?i.y:void 0)}function pa(e){return e.translate===0&&e.scale===1}function nc(e){return pa(e.x)&&pa(e.y)}function ma(e,t){return e.min===t.min&&e.max===t.max}function Up(e,t){return ma(e.x,t.x)&&ma(e.y,t.y)}function ga(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ic(e,t){return ga(e.x,t.x)&&ga(e.y,t.y)}function ya(e){return pt(e.x)/pt(e.y)}function _a(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $t(e){return[e("x"),e("y")]}function Wp(e,t,n){let i="";const s=e.x.translate/t.x,r=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((s||r||o)&&(i=`translate3d(${s}px, ${r}px, ${o}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,pathRotation:f,rotateX:h,rotateY:d,skewX:m,skewY:p}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotate(${f}deg) `),h&&(i+=`rotateX(${h}deg) `),d&&(i+=`rotateY(${d}deg) `),m&&(i+=`skewX(${m}deg) `),p&&(i+=`skewY(${p}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const sc=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],$p=sc.length,va=e=>typeof e=="string"?parseFloat(e):e,xa=e=>typeof e=="number"||D.test(e);function Gp(e,t,n,i,s,r){s?(e.opacity=j(0,n.opacity??1,Yp(i)),e.opacityExit=j(t.opacity??1,0,Xp(i))):r&&(e.opacity=j(t.opacity??1,n.opacity??1,i));for(let o=0;o<$p;o++){const a=sc[o];let l=Ta(t,a),u=Ta(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||xa(l)===xa(u)?(e[a]=Math.max(j(va(l),va(u),i),0),(Ht.test(u)||Ht.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=j(t.rotate||0,n.rotate||0,i))}function Ta(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Yp=rc(0,.5,Wl),Xp=rc(.5,.95,gt);function rc(e,t,n){return i=>i<e?0:i>t?1:n(Fe(e,t,i))}function oc(e,t,n){const i=it(e)?e:kt(e);return i.start(Wr("",i,t,n)),i.animation}function jn(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const Kp=(e,t)=>e.depth-t.depth;class Hp{constructor(){this.children=[],this.isDirty=!1}add(t){wr(this.children,t),this.isDirty=!0}remove(t){en(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Kp),this.isDirty=!1,this.children.forEach(t)}}function qp(e,t){const n=dt.now(),i=({timestamp:s})=>{const r=s-n;r>=t&&(Ft(i),e(r-t))};return B.setup(i,!0),()=>Ft(i)}function gi(e){return it(e)?e.get():e}class Zp{constructor(){this.members=[]}add(t){wr(this.members,t);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===t||i===this.lead||i===this.prevLead)continue;const s=i.instance;(!s||s.isConnected===!1)&&!i.snapshot&&(en(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(en(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let i=this.members.indexOf(t)-1;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1&&((n=s.instance)==null?void 0:n.isConnected)!==!1)return this.promote(s),!0}return!1}promote(t,n){var s;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:r}=i.options,{layoutDependency:o}=t.options;(r===void 0||r!==o)&&(t.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(s=t.root)!=null&&s.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,s,r,o;(i=(n=t.options).onExitComplete)==null||i.call(n),(o=(s=t.resumingFrom)==null?void 0:(r=s.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const yi={hasAnimatedSinceResize:!0,hasEverUpdated:!1},us=["","X","Y","Z"],Qp=1e3;let Jp=0;function cs(e,t,n,i){const{latestValues:s}=t;s[e]&&(n[e]=s[e],t.setStaticValue(e,0),i&&(i[e]=0))}function ac(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wu(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:s,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",B,!(s||r))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&ac(i)}function lc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Jp++,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(nm),this.nodes.forEach(lm),this.nodes.forEach(um),this.nodes.forEach(im)},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 Hp)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Sr),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=Xi(o)&&!Lu(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),e){let c,f=0;const h=()=>this.root.updateBlockedByResize=!1;B.read(()=>{f=window.innerWidth}),e(o,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,c&&c(),c=qp(h,250),yi.hasAnimatedSinceResize&&(yi.hasAnimatedSinceResize=!1,this.nodes.forEach(Sa)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||pm,{onLayoutAnimationStart:p,onLayoutAnimationComplete:g}=u.getProps(),y=!this.targetLayout||!ic(this.targetLayout,d),_=!f&&h;if(this.options.layoutRoot||this.resumeFrom||_||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Ur(m,"layout"),onPlay:p,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,_,v.path)}else f||Sa(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(),Ft(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(cm),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&&ac(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.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()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(rm),this.nodes.forEach(wa);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ba);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(om),this.nodes.forEach(am),this.nodes.forEach(tm),this.nodes.forEach(em)):this.nodes.forEach(ba),this.clearAllSnapshots();const a=dt.now();st.delta=Wt(0,1e3/60,a-st.timestamp),st.timestamp=a,st.isProcessing=!0,es.update.process(st),es.preRender.process(st),es.render.process(st),st.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,sn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sm),this.sharedNodes.forEach(fm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,B.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){B.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pt(this.snapshot.measuredBox.x)&&!pt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Q()),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=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!s)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!nc(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Se(this.latestValues)||c)&&(s(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),mm(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return Q();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(gm))){const{scroll:c}=this.root;c&&(Yt(a.x,c.offset.x),Yt(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=Q();if(Bt(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:h}=c;c!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&Bt(a,o),Yt(a.x,f.offset.x),Yt(a.y,f.offset.y))}return a}applyTransform(o,a=!1,l){var c,f;const u=l||Q();Bt(u,o);for(let h=0;h<this.path.length;h++){const d=this.path[h];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Yt(u.x,-d.scroll.offset.x),Yt(u.y,-d.scroll.offset.y)),Se(d.latestValues)&&mi(u,d.latestValues,(c=d.layout)==null?void 0:c.layoutBox)}return Se(this.latestValues)&&mi(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(o){var l;const a=Q();Bt(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Se(c.latestValues))continue;let f;c.instance&&(Ks(c.latestValues)&&c.updateSnapshot(),f=Q(),Bt(f,c.measurePageBox())),da(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,f)}return Se(this.latestValues)&&da(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!==st.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var d;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||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=st.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Q(),this.targetWithTransforms=Q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Bp(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Bt(this.target,this.layout.layoutBox),Uu(this.target,this.targetDelta)):Bt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ks(this.parent.latestValues)||zu(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=Q(),this.relativeTargetOrigin=Q(),Ei(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Bt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var m;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===st.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;Bt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;dp(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=Q());const{target:d}=o;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(aa(this.prevProjectionDelta.x,this.projectionDelta.x),aa(this.prevProjectionDelta.y,this.projectionDelta.y)),Dn(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!_a(this.projectionDelta.x,this.prevProjectionDelta.x)||!_a(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){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ye(),this.projectionDelta=Ye(),this.projectionDeltaWithTransform=Ye()}setAnimationOrigin(o,a=!1,l){const u=this.snapshot,c=u?u.latestValues:{},f={...this.latestValues},h=Ye();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const d=Q(),m=u?u.source:void 0,p=this.layout?this.layout.source:void 0,g=m!==p,y=this.getStack(),_=!y||y.members.length<=1,v=!!(g&&!_&&this.options.crossfade===!0&&!this.path.some(dm));this.animationProgress=0;let x;const T=l==null?void 0:l.interpolateProjection(o);this.mixTargetDelta=P=>{const S=P/1e3,b=T==null?void 0:T(S);b?(h.x.translate=b.x,h.x.scale=j(o.x.scale,1,S),h.x.origin=o.x.origin,h.x.originPoint=o.x.originPoint,h.y.translate=b.y,h.y.scale=j(o.y.scale,1,S),h.y.origin=o.y.origin,h.y.originPoint=o.y.originPoint):(Pa(h.x,o.x,S),Pa(h.y,o.y,S)),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ei(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hm(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&Up(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Q()),Bt(x,this.relativeTarget)),g&&(this.animationValues=f,Gp(f,c,this.latestValues,S,v,_)),b&&b.rotate!==void 0&&(this.animationValues||(this.animationValues=f),this.animationValues.pathRotation=b.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ft(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=B.update(()=>{yi.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=kt(0)),this.motionValue.jump(0,!1),this.currentAnimation=oc(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},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(Qp),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&&uc(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Q();const f=pt(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const h=pt(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Bt(a,l),mi(a,c),Dn(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Zp),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.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&&cs("z",o,u,this.animationValues);for(let c=0;c<us.length;c++)cs(`rotate${us[c]}`,o,u,this.animationValues),cs(`skew${us[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=gi(a==null?void 0: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=gi(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Se(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=Wp(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:h,y:d}=this.projectionDelta;o.transformOrigin=`${h.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 m in qs){if(c[m]===void 0)continue;const{correct:p,applyTo:g,isCSSVariable:y}=qs[m],_=f==="none"?c[m]:p(c[m],u);if(g){const v=g.length;for(let x=0;x<v;x++)o[g[x]]=_}else y?this.options.visualElement.renderState.vars[m]=_:o[m]=_}this.options.layoutId&&(o.pointerEvents=u===this?gi(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(wa),this.root.sharedNodes.clear()}}}function tm(e){e.updateLayout()}function em(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:s}=e.layout,{animationType:r}=e.options,o=t.source!==e.layout.source;if(r==="size")$t(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],d=pt(h);h.min=i[f].min,h.max=h.min+d});else if(r==="x"||r==="y"){const f=r==="x"?"y":"x";Zs(o?t.measuredBox[f]:t.layoutBox[f],i[f])}else uc(r,t.layoutBox,i)&&$t(f=>{const h=o?t.measuredBox[f]:t.layoutBox[f],d=pt(i[f]);h.max=h.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+d)});const a=Ye();Dn(a,i,t.layoutBox);const l=Ye();o?Dn(l,e.applyTransform(s,!0),t.measuredBox):Dn(l,i,t.layoutBox);const u=!nc(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:d}=f;if(h&&d){const m=e.options.layoutAnchor||void 0,p=Q();Ei(p,t.layoutBox,h.layoutBox,m);const g=Q();Ei(g,i,d.layoutBox,m),ic(p,g)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function nm(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function im(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sm(e){e.clearSnapshot()}function wa(e){e.clearMeasurements()}function rm(e){e.isLayoutDirty=!0,e.updateLayout()}function ba(e){e.isLayoutDirty=!1}function om(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function am(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lm(e){e.resolveTargetDelta()}function um(e){e.calcProjection()}function cm(e){e.resetSkewAndRotation()}function fm(e){e.removeLeadSnapshot()}function Pa(e,t,n){e.translate=j(t.translate,0,n),e.scale=j(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Aa(e,t,n,i){e.min=j(t.min,n.min,i),e.max=j(t.max,n.max,i)}function hm(e,t,n,i){Aa(e.x,t.x,n.x,i),Aa(e.y,t.y,n.y,i)}function dm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pm={duration:.45,ease:[.4,0,.1,1]},Ca=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ma=Ca("applewebkit/")&&!Ca("chrome/")?Math.round:gt;function Da(e){e.min=Ma(e.min),e.max=Ma(e.max)}function mm(e){Da(e.x),Da(e.y)}function uc(e,t,n){return e==="position"||e==="preserve-aspect"&&!Fp(ya(t),ya(n),.2)}function gm(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const ym=lc({attachResizeListener:(e,t)=>jn(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),_m=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Ea(){const e=new Set,t=new WeakMap,n=()=>e.forEach(_m);return{add:i=>{e.add(i),t.set(i,i.addEventListener("willUpdate",n))},remove:i=>{e.delete(i);const s=t.get(i);s&&(s(),t.delete(i)),n()},dirty:n}}const fs={current:void 0},cc=lc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fs.current){const e=new ym({});e.mount(window),e.setOptions({layoutScroll:!0}),fs.current=e}return fs.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rn=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ra(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vm(...e){return t=>{let n=!1;const i=e.map(s=>{const r=Ra(s,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let s=0;s<i.length;s++){const r=i[s];typeof r=="function"?r():Ra(e[s],null)}}}}function xm(...e){return C.useCallback(vm(...e),e)}class Tm extends C.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Mn(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const i=n.offsetParent,s=Mn(i)&&i.offsetWidth||0,r=Mn(i)&&i.offsetHeight||0,o=getComputedStyle(n),a=this.props.sizeRef.current;a.height=parseFloat(o.height),a.width=parseFloat(o.width),a.top=n.offsetTop,a.left=n.offsetLeft,a.right=s-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=o.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function wm({children:e,isPresent:t,anchorX:n,anchorY:i,root:s,pop:r}){var h;const o=C.useId(),a=C.useRef(null),l=C.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:u}=C.useContext(rn),c=((h=e.props)==null?void 0:h.ref)??(e==null?void 0:e.ref),f=xm(a,c);return C.useInsertionEffect(()=>{const{width:d,height:m,top:p,left:g,right:y,bottom:_,direction:v}=l.current;if(t||r===!1||!a.current||!d||!m)return;const x=v==="rtl",T=n==="left"?x?`right: ${y}`:`left: ${g}`:x?`left: ${g}`:`right: ${y}`,P=i==="bottom"?`bottom: ${_}`:`top: ${p}`;a.current.dataset.motionPopId=o;const S=document.createElement("style");u&&(S.nonce=u);const b=s??document.head;return b.appendChild(S),S.sheet&&S.sheet.insertRule(`
[data-motion-pop-id="${o}"] {
position: absolute !important;
width: ${d}px !important;
height: ${m}px !important;
${T}px !important;
${P}px !important;
}
`),()=>{var w;(w=a.current)==null||w.removeAttribute("data-motion-pop-id"),b.contains(S)&&b.removeChild(S)}},[t]),zt.jsx(Tm,{isPresent:t,childRef:a,sizeRef:l,pop:r,children:r===!1?e:C.cloneElement(e,{ref:f})})}const bm=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:s,presenceAffectsLayout:r,mode:o,anchorX:a,anchorY:l,root:u})=>{const c=qt(Sm),f=C.useId();let h=!0,d=C.useMemo(()=>(h=!1,{id:f,initial:t,isPresent:n,custom:s,onExitComplete:m=>{c.set(m,!0);for(const p of c.values())if(!p)return;i&&i()},register:m=>(c.set(m,!1),()=>c.delete(m))}),[n,c,i]);return r&&h&&(d={...d}),C.useMemo(()=>{c.forEach((m,p)=>c.set(p,!1))},[n]),C.useEffect(()=>{!n&&!c.size&&i&&i()},[n]),e=zt.jsx(wm,{pop:o==="popLayout",isPresent:n,anchorX:a,anchorY:l,root:u,children:e}),zt.jsx($i.Provider,{value:d,children:e})};function Sm(){return new Map}function fc(e=!0){const t=C.useContext($i);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:s}=t,r=C.useId();C.useEffect(()=>{if(e)return s(r)},[e]);const o=C.useCallback(()=>e&&i&&i(r),[r,i,e]);return!n&&i?[!1,o]:[!0]}const si=e=>e.key||"";function Va(e){const t=[];return C.Children.forEach(e,n=>{C.isValidElement(n)&&t.push(n)}),t}const O_=({children:e,custom:t,initial:n=!0,onExitComplete:i,presenceAffectsLayout:s=!0,mode:r="sync",propagate:o=!1,anchorX:a="left",anchorY:l="top",root:u})=>{const[c,f]=fc(o),h=C.useMemo(()=>Va(e),[e]),d=o&&!c?[]:h.map(si),m=C.useRef(!0),p=C.useRef(h),g=qt(()=>new Map),y=C.useRef(new Set),[_,v]=C.useState(h),[x,T]=C.useState(h);fn(()=>{m.current=!1,p.current=h;for(let b=0;b<x.length;b++){const w=si(x[b]);d.includes(w)?(g.delete(w),y.current.delete(w)):g.get(w)!==!0&&g.set(w,!1)}},[x,d.length,d.join("-")]);const P=[];if(h!==_){let b=[...h];for(let w=0;w<x.length;w++){const A=x[w],M=si(A);d.includes(M)||(b.splice(w,0,A),P.push(A))}return r==="wait"&&P.length&&(b=P),T(Va(b)),v(h),null}const{forceRender:S}=C.useContext(On);return zt.jsx(zt.Fragment,{children:x.map(b=>{const w=si(b),A=o&&!c?!1:h===x||d.includes(w),M=()=>{if(y.current.has(w))return;if(g.has(w))y.current.add(w),g.set(w,!0);else return;let E=!0;g.forEach(R=>{R||(E=!1)}),E&&(S==null||S(),T(p.current),o&&(f==null||f()),i&&i())};return zt.jsx(bm,{isPresent:A,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:s,mode:r,root:u,onExitComplete:A?void 0:M,anchorX:a,anchorY:l,children:b},w)})})},Pm=C.createContext(null);function Am(){const e=C.useRef(!1);return fn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Cm(){const e=Am(),[t,n]=C.useState(0),i=C.useCallback(()=>{e.current&&n(t+1)},[t]);return[C.useCallback(()=>B.postRender(i),[i]),t]}const hc=e=>e===!0,Mm=e=>hc(e===!0)||e==="id",I_=({children:e,id:t,inherit:n=!0})=>{const i=C.useContext(On),s=C.useContext(Pm),[r,o]=Cm(),a=C.useRef(null),l=i.id||s;a.current===null&&(Mm(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:hc(n)&&i.group||Ea()});const u=C.useMemo(()=>({...a.current,forceRender:r}),[o]);return zt.jsx(On.Provider,{value:u,children:e})},dc=C.createContext({strict:!1}),ka={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let La=!1;function Dm(){if(La)return;const e={};for(const t in ka)e[t]={isEnabled:n=>ka[t].some(i=>!!n[i])};Fu(e),La=!0}function pc(){return Dm(),cp()}function Em(e){const t=pc();for(const n in e)t[n]={...t[n],...e[n]};Fu(t)}const Rm=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Ri(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Rm.has(e)}let mc=e=>!Ri(e);function gc(e){typeof e=="function"&&(mc=t=>t.startsWith("on")?!Ri(t):e(t))}try{gc(require("@emotion/is-prop-valid").default)}catch{}function Vm(e,t,n){const i={};for(const s in e)s==="values"&&typeof e.values=="object"||it(e[s])||(mc(s)||n===!0&&Ri(s)||!t&&!Ri(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}function F_({children:e,isValidProp:t,...n}){t&&gc(t);const i=C.useContext(rn);n={...i,...n},n.transition=zr(n.transition,i.transition),n.isStatic=qt(()=>n.isStatic);const s=C.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return zt.jsx(rn.Provider,{value:s,children:e})}const qi=C.createContext({});function km(e,t){if(Hi(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Nn(n)?n:void 0,animate:Nn(i)?i:void 0}}return e.inherit!==!1?t:{}}function Lm(e){const{initial:t,animate:n}=km(e,C.useContext(qi));return C.useMemo(()=>({initial:t,animate:n}),[Oa(t),Oa(n)])}function Oa(e){return Array.isArray(e)?e.join(" "):e}const to=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yc(e,t,n){for(const i in t)!it(t[i])&&!Gu(i,n)&&(e[i]=t[i])}function Om({transformTemplate:e},t){return C.useMemo(()=>{const n=to();return Qr(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Im(e,t){const n=e.style||{},i={};return yc(i,n,e),Object.assign(i,Om(e,t)),i}function Fm(e,t){const n={},i=Im(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}const _c=()=>({...to(),attrs:{}});function Bm(e,t,n,i){const s=C.useMemo(()=>{const r=_c();return Xu(r,t,Hu(i),e.transformTemplate,e.style),{...r.attrs,style:{...r.style}}},[t]);if(e.style){const r={};yc(r,e.style,e),s.style={...r,...s.style}}return s}const Nm=["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 eo(e){return typeof e!="string"||e.includes("-")?!1:!!(Nm.indexOf(e)>-1||/[A-Z]/u.test(e))}function jm(e,t,n,{latestValues:i},s,r=!1,o){const l=(o??eo(e)?Bm:Fm)(t,i,s,e),u=Vm(t,typeof e=="string",r),c=e!==C.Fragment?{...u,...l,ref:n}:{},{children:f}=t,h=C.useMemo(()=>it(f)?f.get():f,[f]);return C.createElement(e,{...c,children:h})}function zm({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,s){return{latestValues:Um(n,i,s,e),renderState:t()}}function Um(e,t,n,i){const s={},r=i(e,{});for(const h in r)s[h]=gi(r[h]);let{initial:o,animate:a}=e;const l=Hi(e),u=Ou(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const f=c?a:o;if(f&&typeof f!="boolean"&&!Ki(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const m=$r(e,h[d]);if(m){const{transitionEnd:p,transition:g,...y}=m;for(const _ in y){let v=y[_];if(Array.isArray(v)){const x=c?v.length-1:0;v=v[x]}v!==null&&(s[_]=v)}for(const _ in p)s[_]=p[_]}}}return s}const vc=e=>(t,n)=>{const i=C.useContext(qi),s=C.useContext($i),r=()=>zm(e,t,i,s);return n?r():qt(r)},Wm=vc({scrapeMotionValuesFromProps:Jr,createRenderState:to}),$m=vc({scrapeMotionValuesFromProps:qu,createRenderState:_c}),Gm=Symbol.for("motionComponentSymbol");function Ym(e,t,n){const i=C.useRef(n);C.useInsertionEffect(()=>{i.current=n});const s=C.useRef(null);return C.useCallback(r=>{var a;r&&((a=e.onMount)==null||a.call(e,r)),t&&(r?t.mount(r):t.unmount());const o=i.current;if(typeof o=="function")if(r){const l=o(r);typeof l=="function"&&(s.current=l)}else s.current?(s.current(),s.current=null):o(r);else o&&(o.current=r)},[t])}const xc=C.createContext({});function Ue(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Xm(e,t,n,i,s,r){var v,x;const{visualElement:o}=C.useContext(qi),a=C.useContext(dc),l=C.useContext($i),u=C.useContext(rn),c=u.reducedMotion,f=u.skipAnimations,h=C.useRef(null),d=C.useRef(!1);i=i||a.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:f,isSVG:r}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const m=h.current,p=C.useContext(xc);m&&!m.projection&&s&&(m.type==="html"||m.type==="svg")&&Km(h.current,n,s,p);const g=C.useRef(!1);C.useInsertionEffect(()=>{m&&g.current&&m.update(n,l)});const y=n[Tu],_=C.useRef(!!y&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,y))&&((x=window.MotionHasOptimisedAnimation)==null?void 0:x.call(window,y)));return fn(()=>{d.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),_.current&&m.animationState&&m.animationState.animateChanges())}),C.useEffect(()=>{m&&(!_.current&&m.animationState&&m.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,y)}),_.current=!1),m.enteringChildren=void 0)}),m}function Km(e,t,n,i){const{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Tc(e.parent)),e.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!o||a&&Ue(a),visualElement:e,animationType:typeof r=="string"?r:"both",initialPromotionConfig:i,crossfade:f,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function Tc(e){if(e)return e.options.allowProjection!==!1?e.projection:Tc(e.parent)}function hs(e,{forwardMotionProps:t=!1,type:n}={},i,s){i&&Em(i);const r=n?n==="svg":eo(e),o=r?$m:Wm;function a(u,c){let f;const h={...C.useContext(rn),...u,layoutId:Hm(u)},{isStatic:d}=h,m=Lm(u),p=o(u,d);if(!d&&typeof window<"u"){qm();const g=Zm(h);f=g.MeasureLayout,m.visualElement=Xm(e,p,h,s,g.ProjectionNode,r)}return zt.jsxs(qi.Provider,{value:m,children:[f&&m.visualElement?zt.jsx(f,{visualElement:m.visualElement,...h}):null,jm(e,u,Ym(p,m.visualElement,c),p,d,t,r)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=C.forwardRef(a);return l[Gm]=e,l}function Hm({layoutId:e}){const t=C.useContext(On).id;return t&&e!==void 0?t+"-"+e:e}function qm(e,t){C.useContext(dc).strict}function Zm(e){const t=pc(),{drag:n,layout:i}=t;if(!n&&!i)return{};const s={...n,...i};return{MeasureLayout:n!=null&&n.isEnabled(e)||i!=null&&i.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function Qm(e,t){if(typeof Proxy>"u")return hs;const n=new Map,i=(r,o)=>hs(r,o,e,t),s=(r,o)=>i(r,o);return new Proxy(s,{get:(r,o)=>o==="create"?i:(n.has(o)||n.set(o,hs(o,void 0,e,t)),n.get(o))})}const Jm=(e,t)=>t.isSVG??eo(e)?new Zu(t):new Yu(t,{allowProjection:e!==C.Fragment});class tg extends _e{constructor(t){super(t),t.animationState||(t.animationState=Rp(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ki(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let eg=0;class ng extends _e{constructor(){super(...arguments),this.id=eg++,this.isExitComplete=!1}update(){var r;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&i===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=Ee(this.node,o,a);if(l){const{transition:u,transitionEnd:c,...f}=l;for(const h in f)(r=this.node.getValue(h))==null||r.jump(f[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const s=this.node.animationState.setActive("exit",!t);n&&!t&&s.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ig={animation:{Feature:tg},exit:{Feature:ng}};function Jn(e){return{point:{x:e.pageX,y:e.pageY}}}const sg=e=>t=>Kr(t)&&e(t,Jn(t));function En(e,t,n,i){return jn(e,t,sg(n),i)}const wc=({current:e})=>e?e.ownerDocument.defaultView:null,Ia=(e,t)=>Math.abs(e-t);function rg(e,t){const n=Ia(e.x,t.x),i=Ia(e.y,t.y);return Math.sqrt(n**2+i**2)}const Fa=new Set(["auto","scroll"]);class bc{constructor(t,n,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ri(this.lastRawMoveEventInfo,this.transformPagePoint));const d=ds(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,p=rg(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!p)return;const{point:g}=d,{timestamp:y}=st;this.history.push({...g,timestamp:y});const{onStart:_,onMove:v}=this.handlers;m||(_&&_(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=ri(m,this.transformPagePoint),B.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:p,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=ds(d.type==="pointercancel"?this.lastMoveEventInfo:ri(m,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,_),g&&g(d,_)},!Kr(t))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=o,this.contextWindow=s||window;const l=Jn(t),u=ri(l,this.transformPagePoint),{point:c}=u,{timestamp:f}=st;this.history=[{...c,timestamp:f}];const{onSessionStart:h}=n;h&&h(t,ds(u,this.history)),this.removeListeners=qn(En(this.contextWindow,"pointermove",this.handlePointerMove),En(this.contextWindow,"pointerup",this.handlePointerUp),En(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let n=t.parentElement;for(;n;){const i=getComputedStyle(n);(Fa.has(i.overflowX)||Fa.has(i.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const i=t===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},r={x:s.x-n.x,y:s.y-n.y};r.x===0&&r.y===0||(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,s),B.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ft(this.updatePoint)}}function ri(e,t){return t?{point:t(e.point)}:e}function Ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ds({point:e},t){return{point:e,delta:Ba(e,Sc(t)),offset:Ba(e,og(t)),velocity:ag(t,.1)}}function og(e){return e[0]}function Sc(e){return e[e.length-1]}function ag(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const s=Sc(e);for(;n>=0&&(i=e[n],!(s.timestamp-i.timestamp>yt(t)));)n--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>yt(t)*2&&(i=e[1]);const r=Vt(s.timestamp-i.timestamp);if(r===0)return{x:0,y:0};const o={x:(s.x-i.x)/r,y:(s.y-i.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function lg(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?j(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?j(n,e,i.max):Math.min(e,n)),e}function Na(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function ug(e,{top:t,left:n,bottom:i,right:s}){return{x:Na(e.x,n,s),y:Na(e.y,t,i)}}function ja(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function cg(e,t){return{x:ja(e.x,t.x),y:ja(e.y,t.y)}}function fg(e,t){let n=.5;const i=pt(e),s=pt(t);return s>i?n=Fe(t.min,t.max-i,e.min):i>s&&(n=Fe(e.min,e.max-s,t.min)),Wt(0,1,n)}function hg(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Qs=.35;function dg(e=Qs){return e===!1?e=0:e===!0&&(e=Qs),{x:za(e,"left","right"),y:za(e,"top","bottom")}}function za(e,t,n){return{min:Ua(e,t),max:Ua(e,n)}}function Ua(e,t){return typeof e=="number"?e:e[t]||0}const pg=new WeakMap;class mg{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Q(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=f=>{n&&this.snapToCursor(Jn(f).point),this.stopAnimation()},o=(f,h)=>{const{drag:d,dragPropagation:m,onDragStart:p}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ud(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$t(y=>{let _=this.getAxisMotionValue(y).get()||0;if(Ht.test(_)){const{projection:v}=this.visualElement;if(v&&v.layout){const x=v.layout.layoutBox[y];x&&(_=pt(x)*(parseFloat(_)/100))}}this.originPoint[y]=_}),p&&B.update(()=>p(f,h),!1,!0),Us(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:p,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=h;if(m&&this.currentDirection===null){this.currentDirection=yg(y),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&B.update(()=>g(f,h),!1,!0)},l=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new bc(t,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:wc(this.visualElement),element:this.visualElement.current})}stop(t,n){const i=t||this.latestPointerEvent,s=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!s||!i)return;const{velocity:o}=s;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&B.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,i){const{drag:s}=this.getProps();if(!i||!oi(t,s,this.currentDirection))return;const r=this.getAxisMotionValue(t);let o=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(o=lg(o,this.constraints[t],this.elastic[t])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,s=this.constraints;t&&Ue(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=ug(i.layoutBox,t):this.constraints=!1,this.elastic=dg(n),s!==this.constraints&&!Ue(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&$t(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=hg(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ue(t))return!1;const i=t.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());const r=pp(i,s.root,this.visualElement.getTransformPagePoint());let o=cg(s.layout.layoutBox,r);if(n){const a=n(fp(o));this.hasMutatedConstraints=!!a,a&&(o=ju(a))}return o}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:s,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=$t(c=>{if(!oi(c,n,this.currentDirection))return;let f=l&&l[c]||{};(o===!0||o===c)&&(f={min:0,max:0});const h=s?200:1e6,d=s?40:1e7,m={type:"inertia",velocity:i?t[c]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...f};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Us(this.visualElement,t),i.start(Wr(t,i,0,n,this.visualElement,!1))}stopAnimation(){$t(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps()[n];return s||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){$t(n=>{const{drag:i}=this.getProps();if(!oi(n,i,this.currentDirection))return;const{projection:s}=this.visualElement,r=this.getAxisMotionValue(n);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[n],l=r.get()||0;r.set(t[n]-j(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!Ue(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};$t(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();s[o]=fg({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),$t(o=>{if(!oi(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(j(l,u,s[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;pg.set(this.visualElement,this);const t=this.visualElement.current,n=En(t,"pointerdown",u=>{const{drag:c,dragListener:f=!0}=this.getProps(),h=u.target,d=h!==t&&Kd(h);c&&f&&!d&&this.start(u)});let i;const s=()=>{const{dragConstraints:u}=this.getProps();Ue(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),i||(i=gg(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),B.read(s);const a=jn(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&($t(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:r=!1,dragElastic:o=Qs,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:s,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Wa(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function gg(e,t,n){const i=Xs(e,Wa(n)),s=Xs(t,Wa(n));return()=>{i(),s()}}function oi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yg(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class _g extends _e{constructor(t){super(t),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new mg(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ps=e=>(t,n)=>{e&&B.update(()=>e(t,n),!1,!0)};class vg extends _e{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(t){this.session=new bc(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:wc(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:ps(t),onStart:ps(n),onMove:ps(i),onEnd:(r,o)=>{delete this.session,s&&B.postRender(()=>s(r,o))}}}mount(){this.removePointerDownListener=En(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ms=!1;class xg extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:s}=this.props,{projection:r}=t;r&&(n.group&&n.group.add(r),i&&i.register&&s&&i.register(r),ms&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),yi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:s,isPresent:r}=this.props,{projection:o}=i;return o&&(o.isPresent=r,t.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),ms=!0,s||t.layoutDependency!==n||n===void 0||t.isPresent!==r?o.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?o.promote():o.relegate()||B.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=n,i.root.didUpdate(),sn.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:s}=t;ms=!0,s&&(s.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Pc(e){const[t,n]=fc(),i=C.useContext(On);return zt.jsx(xg,{...e,layoutGroup:i,switchLayoutGroup:C.useContext(xc),isPresent:t,safeToRemove:n})}const Tg={pan:{Feature:vg},drag:{Feature:_g,ProjectionNode:cc,MeasureLayout:Pc}};function $a(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const s="onHover"+n,r=i[s];r&&B.postRender(()=>r(t,Jn(t)))}class wg extends _e{mount(){const{current:t}=this.node;t&&(this.unmount=$d(t,(n,i)=>($a(this.node,i,"Start"),s=>$a(this.node,s,"End"))))}unmount(){}}class bg extends _e{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=qn(jn(this.node.current,"focus",()=>this.onFocus()),jn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ga(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const s="onTap"+(n==="End"?"":n),r=i[s];r&&B.postRender(()=>r(t,Jn(t)))}class Sg extends _e{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:i}=this.node.props;this.unmount=qd(t,(s,r)=>(Ga(this.node,r,"Start"),(o,{success:a})=>Ga(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(i==null?void 0:i.tap)===!1})}unmount(){}}const Js=new WeakMap,gs=new WeakMap,Pg=e=>{const t=Js.get(e.target);t&&t(e)},Ag=e=>{e.forEach(Pg)};function Cg({root:e,...t}){const n=e||document;gs.has(n)||gs.set(n,{});const i=gs.get(n),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(Ag,{root:e,...t})),i[s]}function Mg(e,t,n){const i=Cg(t);return Js.set(e,n),i.observe(e),()=>{Js.delete(e),i.unobserve(e)}}const Dg={some:0,all:1};class Eg extends _e{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:s="some",once:r}=t,o={root:n?n.current:void 0,rootMargin:i,threshold:typeof s=="number"?s:Dg[s]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),d=c?f:h;d&&d(u)};this.stopObserver=Mg(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Rg(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Rg({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Vg={inView:{Feature:Eg},tap:{Feature:Sg},focus:{Feature:bg},hover:{Feature:wg}},kg={layout:{ProjectionNode:cc,MeasureLayout:Pc}},Lg={...ig,...Vg,...Tg,...kg},B_=Qm(Lg,Jm);function N_(e,t,n){C.useInsertionEffect(()=>e.on(t,n),[e,t,n])}function Vi(e){return typeof window>"u"?!1:e?hu():Nr()}const Og=50,Ya=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),Ig=()=>({time:0,x:Ya(),y:Ya()}),Fg={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Xa(e,t,n,i){const s=n[t],{length:r,position:o}=Fg[t],a=s.current,l=n.time;s.current=Math.abs(e[`scroll${o}`]),s.scrollLength=e[`scroll${r}`]-e[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=Fe(0,s.scrollLength,s.current);const u=i-l;s.velocity=u>Og?0:Pr(s.current-a,u)}function Bg(e,t,n){Xa(e,"x",t,n),Xa(e,"y",t,n),t.time=n}function Ng(e,t){const n={x:0,y:0};let i=e;for(;i&&i!==t;)if(Mn(i))n.x+=i.offsetLeft,n.y+=i.offsetTop,i=i.offsetParent;else if(i.tagName==="svg"){const s=i.getBoundingClientRect();i=i.parentElement;const r=i.getBoundingClientRect();n.x+=s.left-r.left,n.y+=s.top-r.top}else if(i instanceof SVGGraphicsElement){const{x:s,y:r}=i.getBBox();n.x+=s,n.y+=r;let o=null,a=i.parentNode;for(;!o;)a.tagName==="svg"&&(o=a),a=i.parentNode;i=o}else break;return n}const tr={start:0,center:.5,end:1};function Ka(e,t,n=0){let i=0;if(e in tr&&(e=tr[e]),typeof e=="string"){const s=parseFloat(e);e.endsWith("px")?i=s:e.endsWith("%")?e=s/100:e.endsWith("vw")?i=s/100*document.documentElement.clientWidth:e.endsWith("vh")?i=s/100*document.documentElement.clientHeight:e=s}return typeof e=="number"&&(i=t*e),n+i}const jg=[0,0];function zg(e,t,n,i){let s=Array.isArray(e)?e:jg,r=0,o=0;return typeof e=="number"?s=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?s=e.split(" "):s=[e,tr[e]?e:"0"]),r=Ka(s[0],n,i),o=Ka(s[1],t),r-o}const xn={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Ug={x:0,y:0};function Wg(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function $g(e,t,n){const{offset:i=xn.All}=n,{target:s=e,axis:r="y"}=n,o=r==="y"?"height":"width",a=s!==e?Ng(s,e):Ug,l=s===e?{width:e.scrollWidth,height:e.scrollHeight}:Wg(s),u={width:e.clientWidth,height:e.clientHeight};t[r].offset.length=0;let c=!t[r].interpolate;const f=i.length;for(let h=0;h<f;h++){const d=zg(i[h],u[o],l[o],a[r]);!c&&d!==t[r].interpolatorOffsets[h]&&(c=!0),t[r].offset[h]=d}c&&(t[r].interpolate=Lr(t[r].offset,Or(i),{clamp:!1}),t[r].interpolatorOffsets=[...t[r].offset]),t[r].progress=Wt(0,1,t[r].interpolate(t[r].current))}function Gg(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let i=t;for(;i&&i!==e;)n.x.targetOffset+=i.offsetLeft,n.y.targetOffset+=i.offsetTop,i=i.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Yg(e,t,n,i={}){return{measure:s=>{Gg(e,i.target,n),Bg(e,n,s),(i.offset||i.target)&&$g(e,n,i)},notify:()=>t(n)}}const je=new WeakMap,Ha=new WeakMap,ys=new WeakMap,qa=new WeakMap,ai=new WeakMap,Za=e=>e===document.scrollingElement?window:e;function Ac(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...i}={}){if(!t)return gt;let s=ys.get(t);s||(s=new Set,ys.set(t,s));const r=Ig(),o=Yg(t,e,r,i);if(s.add(o),!je.has(t)){const l=()=>{for(const h of s)h.measure(st.timestamp);B.preUpdate(u)},u=()=>{for(const h of s)h.notify()},c=()=>B.read(l);je.set(t,c);const f=Za(t);window.addEventListener("resize",c),t!==document.documentElement&&Ha.set(t,Xs(t,c)),f.addEventListener("scroll",c),c()}if(n&&!ai.has(t)){const l=je.get(t),u={width:t.scrollWidth,height:t.scrollHeight};qa.set(t,u);const c=()=>{const h=t.scrollWidth,d=t.scrollHeight;(u.width!==h||u.height!==d)&&(l(),u.width=h,u.height=d)},f=B.read(c,!0);ai.set(t,f)}const a=je.get(t);return B.read(a,!1,!0),()=>{var f;Ft(a);const l=ys.get(t);if(!l||(l.delete(o),l.size))return;const u=je.get(t);je.delete(t),u&&(Za(t).removeEventListener("scroll",u),(f=Ha.get(t))==null||f(),window.removeEventListener("resize",u));const c=ai.get(t);c&&(Ft(c),ai.delete(t)),qa.delete(t)}}const Xg=[[xn.Enter,"entry"],[xn.Exit,"exit"],[xn.Any,"cover"],[xn.All,"contain"]],Qa={start:0,end:1};function Kg(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const n=Qa[t[0]],i=Qa[t[1]];if(!(n===void 0||i===void 0))return[n,i]}function Hg(e){if(e.length!==2)return;const t=[];for(const n of e)if(Array.isArray(n))t.push(n);else if(typeof n=="string"){const i=Kg(n);if(!i)return;t.push(i)}else return;return t}function qg(e,t){const n=Hg(e);if(!n)return!1;for(let i=0;i<2;i++){const s=n[i],r=t[i];if(s[0]!==r[0]||s[1]!==r[1])return!1}return!0}function no(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,n]of Xg)if(qg(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}const Ja=new Map;function tl(e){const t={value:0},n=Ac(i=>{t.value=i[e.axis].progress*100},e);return{currentTime:t,cancel:n}}function Cc({source:e,container:t,...n}){const{axis:i}=n;e&&(t=e);let s=Ja.get(t);s||(s=new Map,Ja.set(t,s));const r=n.target??"self";let o=s.get(r);o||(o={},s.set(r,o));const a=i+(n.offset??[]).join(",");return o[a]||(n.target&&Vi(n.target)?no(n.offset)?o[a]=new ViewTimeline({subject:n.target,axis:i}):o[a]=tl({container:t,...n}):Vi()?o[a]=new ScrollTimeline({source:t,axis:i}):o[a]=tl({container:t,...n})),o[a]}function Zg(e,t){const n=Cc(t),i=t.target?no(t.offset):void 0,s=t.target?Vi(t.target)&&!!i:Vi();return e.attachTimeline({timeline:s?n:void 0,...i&&s&&{rangeStart:i.rangeStart,rangeEnd:i.rangeEnd},observe:r=>(r.pause(),ku(o=>{r.time=r.iterationDuration*o},n))})}function Qg(e){return e&&(e.target||e.offset)}function Jg(e){return e.length===2}function t0(e,t){return Jg(e)||Qg(t)?Ac(n=>{e(n[t.axis].progress,n)},t):ku(e,Cc(t))}function Mc(e,{axis:t="y",container:n=document.scrollingElement,...i}={}){if(!n)return gt;const s={axis:t,container:n,...i};return typeof e=="function"?t0(e,s):Zg(e,s)}const e0=()=>({scrollX:kt(0),scrollY:kt(0),scrollXProgress:kt(0),scrollYProgress:kt(0)}),Xe=e=>e?!e.current:!1;function el(e,t,n,i){return{factory:s=>{let r;const o=()=>{if(Xe(n)||Xe(i)){sn.read(o);return}r=Mc(s,{...t,axis:e,container:(n==null?void 0:n.current)||void 0,target:(i==null?void 0:i.current)||void 0})};return sn.read(o),()=>{Mu(o),r==null||r()}},times:[0,1],keyframes:[0,1],ease:s=>s,duration:1}}function n0(e,t){return typeof window>"u"?!1:e?hu()&&!!no(t):Nr()}function j_({container:e,target:t,...n}={}){const i=qt(e0);n0(t,n.offset)&&(i.scrollXProgress.accelerate=el("x",n,e,t),i.scrollYProgress.accelerate=el("y",n,e,t));const s=C.useRef(null),r=C.useRef(!1),o=C.useCallback(()=>(s.current=Mc((a,{x:l,y:u})=>{i.scrollX.set(l.current),i.scrollXProgress.set(l.progress),i.scrollY.set(u.current),i.scrollYProgress.set(u.progress)},{...n,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var a;(a=s.current)==null||a.call(s)}),[e,t,JSON.stringify(n.offset)]);return fn(()=>{if(r.current=!1,Xe(e)||Xe(t)){r.current=!0;return}else return o()},[o]),C.useEffect(()=>{if(!r.current)return;let a;const l=()=>{const u=Xe(e),c=Xe(t);!u&&!c&&(a=o())};return sn.read(l),()=>{Mu(l),a==null||a()}},[o]),i}function i0(e){const t=qt(()=>kt(e)),{isStatic:n}=C.useContext(rn);if(n){const[,i]=C.useState(e);C.useEffect(()=>t.on("change",i),[])}return t}function Dc(e,t){const n=i0(t()),i=()=>n.set(t());return i(),fn(()=>{const s=()=>B.preRender(i,!1,!0),r=e.map(o=>o.on("change",s));return()=>{r.forEach(o=>o()),Ft(i)}}),n}function s0(e){Cn.current=[],e();const t=Dc(Cn.current,e);return Cn.current=void 0,t}function r0(e,t,n,i){if(typeof e=="function")return s0(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!="function")return o0(e,t,n,i);const o=typeof t=="function"?t:rp(t,n,i),a=Array.isArray(e)?nl(e,o):nl([e],([u])=>o(u)),l=Array.isArray(e)?void 0:e.accelerate;return l&&!l.isTransformed&&typeof t!="function"&&Array.isArray(n)&&(i==null?void 0:i.clamp)!==!1&&(a.accelerate={...l,times:t,keyframes:n,isTransformed:!0}),a}function nl(e,t){const n=qt(()=>[]);return Dc(e,()=>{n.length=0;const i=e.length;for(let s=0;s<i;s++)n[s]=e[s].get();return t(n)})}function o0(e,t,n,i){const s=qt(()=>Object.keys(n)),r=qt(()=>({}));for(const o of s)r[o]=r0(e,t,n[o],i);return r}function z_(){!Zr.current&&Iu();const[e]=C.useState(Ci.current);return e}function a0(e){e.values.forEach(t=>t.stop())}function er(e,t){[...t].reverse().forEach(i=>{const s=e.getVariant(i);s&&Gr(e,s),e.variantChildren&&e.variantChildren.forEach(r=>{er(r,t)})})}function l0(e,t){if(Array.isArray(t))return er(e,t);if(typeof t=="string")return er(e,[t]);Gr(e,t)}function u0(){const e=new Set,t={subscribe(n){return e.add(n),()=>void e.delete(n)},start(n,i){const s=[];return e.forEach(r=>{s.push(bu(r,n,{transitionOverride:i}))}),Promise.all(s)},set(n){return e.forEach(i=>{l0(i,n)})},stop(){e.forEach(n=>{a0(n)})},mount(){return()=>{t.stop()}}};return t}function io(e){return typeof e=="object"&&!Array.isArray(e)}function Ec(e,t,n,i){return e==null?[]:typeof e=="string"&&io(t)?Yi(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(s=>s!=null):[e]}function c0(e,t,n){return e*(t+1)+n*t}function il(e,t,n,i){return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:t.startsWith("<")?Math.max(0,n+parseFloat(t.slice(1))):i.get(t)??e}function f0(e,t,n){for(let i=0;i<e.length;i++){const s=e[i];s.at>t&&s.at<n&&(en(e,s),i--)}}function h0(e,t,n,i,s,r){f0(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:j(s,r,i[o]),easing:Xl(n,o)})}function d0(e,t,n=0){const i=t+1+t*n;for(let s=0;s<e.length;s++)e[s]=e[s]/i}function p0(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}const m0="easeInOut",g0=20;function y0(e,{defaultTransition:t={},...n}={},i,s){const r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map;let c=0,f=0,h=0;for(let d=0;d<e.length;d++){const m=e[d];if(typeof m=="string"){u.set(m,f);continue}else if(!Array.isArray(m)){u.set(m.name,il(f,m.at,c,u));continue}let[p,g,y={}]=m;y.at!==void 0&&(f=il(f,y.at,c,u));let _=0;const v=(x,T,P,S=0,b=0)=>{const w=_0(x),{delay:A=0,times:M=Or(w),type:E=t.type||"keyframes",repeat:R,repeatType:k,repeatDelay:O=0,...L}=T;let{ease:I=t.ease||"easeOut",duration:V}=T;const W=typeof A=="function"?A(S,b):A,et=w.length,$=jr(E)?E:s==null?void 0:s[E||"keyframes"];if(et<=2&&$){let nt=100;if(et===2&&T0(w)){const xe=w[1]-w[0];nt=Math.abs(xe)}const re={...t,...L};V!==void 0&&(re.duration=yt(V));const Ne=ru(re,nt,$);I=Ne.ease,V=Ne.duration}V??(V=r);const ft=f+W;M.length===1&&M[0]===0&&(M[1]=1);const ht=M.length-w.length;if(ht>0&&au(M,ht),w.length===1&&w.unshift(null),R&&R<g0){const nt=V>0?O/V:0;V=c0(V,R,O);const re=[...w],Ne=[...M];I=Array.isArray(I)?[...I]:[I];const xe=[...I],ei=k==="reverse"||k==="mirror";let lt=re,Po=xe;ei&&(lt=[...re].reverse(),k==="reverse"&&(Po=[...xe].reverse().map(oe=>typeof oe=="function"?Ar(oe):oe)));for(let oe=0;oe<R;oe++){const Ao=ei&&oe%2===0,Co=Ao?lt:re,Uf=Ao?Po:xe,Mo=(oe+1)*(1+nt);nt>0&&(w.push(w[w.length-1]),M.push(Mo),I.push("linear")),w.push(...Co);for(let mn=0;mn<Co.length;mn++)M.push(Ne[mn]+Mo),I.push(mn===0?"linear":Xl(Uf,mn-1))}d0(M,R,nt)}const ot=ft+V;h0(P,w,I,M,ft,ot),_=Math.max(W+V,_),h=Math.max(ot,h)};if(it(p)){const x=sl(p,a);v(g,y,rl("default",x))}else{const x=Ec(p,g,i,l),T=x.length;for(let P=0;P<T;P++){g=g,y=y;const S=x[P],b=sl(S,a);for(const w in g)v(g[w],v0(y,w),rl(w,b),P,T)}}c=f,f+=_}return a.forEach((d,m)=>{for(const p in d){const g=d[p];g.sort(p0);const y=[],_=[],v=[];for(let S=0;S<g.length;S++){const{at:b,value:w,easing:A}=g[S];y.push(w),_.push(Fe(0,h,b)),v.push(A||"easeOut")}_[0]!==0&&(_.unshift(0),y.unshift(y[0]),v.unshift(m0)),_[_.length-1]!==1&&(_.push(1),y.push(null)),o.has(m)||o.set(m,{keyframes:{},transition:{}});const x=o.get(m);x.keyframes[p]=y;const{type:T,...P}=t;x.transition[p]={...P,duration:h,ease:v,times:_,...n}}}),o}function sl(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function rl(e,t){return t[e]||(t[e]=[]),t[e]}function _0(e){return Array.isArray(e)?e:[e]}function v0(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}const x0=e=>typeof e=="number",T0=e=>e.every(x0);function w0(e){const t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Xi(e)&&!Lu(e)?new Zu(t):new Yu(t);n.mount(e),Bn.set(e,n)}function b0(e){const t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Tp(t);n.mount(e),Bn.set(e,n)}function S0(e,t){return it(e)||typeof e=="number"||typeof e=="string"&&!io(t)}function Rc(e,t,n,i){const s=[];if(S0(e,t))s.push(oc(e,io(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return s;const r=Ec(e,t,i),o=r.length;for(let a=0;a<o;a++){const l=r[a],u=l instanceof Element?w0:b0;Bn.has(l)||u(l);const c=Bn.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,o)),s.push(...Xr(c,{...t,transition:f},{}))}}return s}function P0(e,t,n){const i=[],s=e.map(o=>{if(Array.isArray(o)&&typeof o[0]=="function"){const a=o[0],l=kt(0);return l.on("change",a),o.length===1?[l,[0,1]]:o.length===2?[l,[0,1],o[1]]:[l,o[1],o[2]]}return o});return y0(s,t,n,{spring:Fn}).forEach(({keyframes:o,transition:a},l)=>{i.push(...Rc(l,o,a))}),i}function A0(e){return Array.isArray(e)&&e.some(Array.isArray)}function C0(e={}){const{scope:t,reduceMotion:n,skipAnimations:i}=e;function s(r,o,a){let l=[],u;const c={};if(n!==void 0&&(c.reduceMotion=n),i!==void 0&&(c.skipAnimations=i),A0(r)){const{onComplete:h,...d}=o||{};typeof h=="function"&&(u=h),l=P0(r,{...c,...d},t)}else{const{onComplete:h,...d}=a||{};typeof h=="function"&&(u=h),l=Rc(r,o,{...c,...d},t)}const f=new dd(l);return u&&f.finished.then(u),t&&(t.animations.push(f),f.finished.then(()=>{en(t.animations,f)})),f}return s}const U_=C0();function M0(){const e=qt(u0);return fn(e.mount,[]),e}const W_=M0,D0={some:0,all:1};function E0(e,t,{root:n,margin:i,amount:s="some"}={}){const r=Yi(e),o=new WeakMap,a=u=>{u.forEach(c=>{const f=o.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const h=t(c.target,c);typeof h=="function"?o.set(c.target,h):l.unobserve(c.target)}else typeof f=="function"&&(f(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:D0[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function $_(e,{root:t,margin:n,amount:i,once:s=!1,initial:r=!1}={}){const[o,a]=C.useState(r);return C.useEffect(()=>{if(!e.current||s&&o)return;const l=()=>(a(!0),s?void 0:()=>a(!1)),u={root:t&&t.current||void 0,margin:n,amount:i};return E0(e.current,l,u)},[t,e,n,s,i]),o}function Jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
* GSAP 3.15.0
* https://gsap.com
*
* @license Copyright 2008-2026, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var Ct={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},zn={duration:.5,overwrite:!1,delay:0},so,at,G,Lt=1e8,U=1/Lt,nr=Math.PI*2,R0=nr/4,V0=0,kc=Math.sqrt,k0=Math.cos,L0=Math.sin,rt=function(t){return typeof t=="string"},q=function(t){return typeof t=="function"},ie=function(t){return typeof t=="number"},ro=function(t){return typeof t>"u"},Zt=function(t){return typeof t=="object"},_t=function(t){return t!==!1},oo=function(){return typeof window<"u"},li=function(t){return q(t)||rt(t)},Lc=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},ct=Array.isArray,O0=/random\([^)]+\)/g,I0=/,\s*/g,ol=/(?:-?\.?\d|\.)+/gi,Oc=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ke=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,_s=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Ic=/[+-]=-?[.\d]+/,F0=/[^,'"\[\]\s]+/gi,B0=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,X,Gt,ir,ao,Mt={},ki={},Fc,Bc=function(t){return(ki=on(t,Mt))&&wt},lo=function(t,n){return console.warn("Invalid property",t,"set to",n,"Missing plugin? gsap.registerPlugin()")},Un=function(t,n){return!n&&console.warn(t)},Nc=function(t,n){return t&&(Mt[t]=n)&&ki&&(ki[t]=n)||Mt},Wn=function(){return 0},N0={suppressEvents:!0,isStart:!0,kill:!1},_i={suppressEvents:!0,kill:!1},j0={suppressEvents:!0},uo={},he=[],sr={},jc,bt={},vs={},al=30,vi=[],co="",fo=function(t){var n=t[0],i,s;if(Zt(n)||q(n)||(t=[t]),!(i=(n._gsap||{}).harness)){for(s=vi.length;s--&&!vi[s].targetTest(n););i=vi[s]}for(s=t.length;s--;)t[s]&&(t[s]._gsap||(t[s]._gsap=new uf(t[s],i)))||t.splice(s,1);return t},Re=function(t){return t._gsap||fo(Ot(t))[0]._gsap},zc=function(t,n,i){return(i=t[n])&&q(i)?t[n]():ro(i)&&t.getAttribute&&t.getAttribute(n)||i},vt=function(t,n){return(t=t.split(",")).forEach(n)||t},Z=function(t){return Math.round(t*1e5)/1e5||0},Y=function(t){return Math.round(t*1e7)/1e7||0},Ze=function(t,n){var i=n.charAt(0),s=parseFloat(n.substr(2));return t=parseFloat(t),i==="+"?t+s:i==="-"?t-s:i==="*"?t*s:t/s},z0=function(t,n){for(var i=n.length,s=0;t.indexOf(n[s])<0&&++s<i;);return s<i},Li=function(){var t=he.length,n=he.slice(0),i,s;for(sr={},he.length=0,i=0;i<t;i++)s=n[i],s&&s._lazy&&(s.render(s._lazy[0],s._lazy[1],!0)._lazy=0)},ho=function(t){return!!(t._initted||t._startAt||t.add)},Uc=function(t,n,i,s){he.length&&!at&&Li(),t.render(n,i,!!(at&&n<0&&ho(t))),he.length&&!at&&Li()},Wc=function(t){var n=parseFloat(t);return(n||n===0)&&(t+"").match(F0).length<2?n:rt(t)?t.trim():t},$c=function(t){return t},Dt=function(t,n){for(var i in n)i in t||(t[i]=n[i]);return t},U0=function(t){return function(n,i){for(var s in i)s in n||s==="duration"&&t||s==="ease"||(n[s]=i[s])}},on=function(t,n){for(var i in n)t[i]=n[i];return t},ll=function e(t,n){for(var i in n)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(t[i]=Zt(n[i])?e(t[i]||(t[i]={}),n[i]):n[i]);return t},Oi=function(t,n){var i={},s;for(s in t)s in n||(i[s]=t[s]);return i},Rn=function(t){var n=t.parent||X,i=t.keyframes?U0(ct(t.keyframes)):Dt;if(_t(t.inherit))for(;n;)i(t,n.vars.defaults),n=n.parent||n._dp;return t},W0=function(t,n){for(var i=t.length,s=i===n.length;s&&i--&&t[i]===n[i];);return i<0},Gc=function(t,n,i,s,r){var o=t[s],a;if(r)for(a=n[r];o&&o[r]>a;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=t[i],t[i]=n),n._next?n._next._prev=n:t[s]=n,n._prev=o,n.parent=n._dp=t,n},Zi=function(t,n,i,s){i===void 0&&(i="_first"),s===void 0&&(s="_last");var r=n._prev,o=n._next;r?r._next=o:t[i]===n&&(t[i]=o),o?o._prev=r:t[s]===n&&(t[s]=r),n._next=n._prev=n.parent=null},me=function(t,n){t.parent&&(!n||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ve=function(t,n){if(t&&(!n||n._end>t._dur||n._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},$0=function(t){for(var n=t.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return t},rr=function(t,n,i,s){return t._startAt&&(at?t._startAt.revert(_i):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(n,!0,s))},G0=function e(t){return!t||t._ts&&e(t.parent)},ul=function(t){return t._repeat?an(t._tTime,t=t.duration()+t._rDelay)*t:0},an=function(t,n){var i=Math.floor(t=Y(t/n));return t&&i===t?i-1:i},Ii=function(t,n){return(t-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Qi=function(t){return t._end=Y(t._start+(t._tDur/Math.abs(t._ts||t._rts||U)||0))},Ji=function(t,n){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=Y(i._time-(t._ts>0?n/t._ts:((t._dirty?t.totalDuration():t._tDur)-n)/-t._ts)),Qi(t),i._dirty||Ve(i,t)),t},Yc=function(t,n){var i;if((n._time||!n._dur&&n._initted||n._start<t._time&&(n._dur||!n.add))&&(i=Ii(t.rawTime(),n),(!n._dur||ti(0,n.totalDuration(),i)-n._tTime>U)&&n.render(i,!0)),Ve(t,n)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-U}},Xt=function(t,n,i,s){return n.parent&&me(n),n._start=Y((ie(i)?i:i||t!==X?Et(t,i,n):t._time)+n._delay),n._end=Y(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),Gc(t,n,"_first","_last",t._sort?"_start":0),or(n)||(t._recent=n),s||Yc(t,n),t._ts<0&&Ji(t,t._tTime),t},Xc=function(t,n){return(Mt.ScrollTrigger||lo("scrollTrigger",n))&&Mt.ScrollTrigger.create(n,t)},Kc=function(t,n,i,s,r){if(mo(t,n,r),!t._initted)return 1;if(!i&&t._pt&&!at&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&jc!==St.frame)return he.push(t),t._lazy=[r,s],1},Y0=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},or=function(t){var n=t.data;return n==="isFromStart"||n==="isStart"},X0=function(t,n,i,s){var r=t.ratio,o=n<0||!n&&(!t._start&&Y0(t)&&!(!t._initted&&or(t))||(t._ts<0||t._dp._ts<0)&&!or(t))?0:1,a=t._rDelay,l=0,u,c,f;if(a&&t._repeat&&(l=ti(0,t._tDur,n),c=an(l,a),t._yoyo&&c&1&&(o=1-o),c!==an(t._tTime,a)&&(r=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==r||at||s||t._zTime===U||!n&&t._zTime){if(!t._initted&&Kc(t,n,s,i,l))return;for(f=t._zTime,t._zTime=n||(i?U:0),i||(i=n&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;n<0&&rr(t,n,i,!0),t._onUpdate&&!i&&Pt(t,"onUpdate"),l&&t._repeat&&!i&&t.parent&&Pt(t,"onRepeat"),(n>=t._tDur||n<0)&&t.ratio===o&&(o&&me(t,1),!i&&!at&&(Pt(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=n)},K0=function(t,n,i){var s;if(i>n)for(s=t._first;s&&s._start<=i;){if(s.data==="isPause"&&s._start>n)return s;s=s._next}else for(s=t._last;s&&s._start>=i;){if(s.data==="isPause"&&s._start<n)return s;s=s._prev}},ln=function(t,n,i,s){var r=t._repeat,o=Y(n)||0,a=t._tTime/t._tDur;return a&&!s&&(t._time*=o/t._dur),t._dur=o,t._tDur=r?r<0?1e10:Y(o*(r+1)+t._rDelay*r):o,a>0&&!s&&Ji(t,t._tTime=t._tDur*a),t.parent&&Qi(t),i||Ve(t.parent,t),t},cl=function(t){return t instanceof mt?Ve(t):ln(t,t._dur)},H0={_start:0,endTime:Wn,totalDuration:Wn},Et=function e(t,n,i){var s=t.labels,r=t._recent||H0,o=t.duration()>=Lt?r.endTime(!1):t._dur,a,l,u;return rt(n)&&(isNaN(n)||n in s)?(l=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?r._start:r.endTime(r._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?r:i).totalDuration()/100:1)):a<0?(n in s||(s[n]=o),s[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&i&&(l=l/100*(ct(i)?i[0]:i).totalDuration()),a>1?e(t,n.substr(0,a-1),i)+l:o+l)):n==null?o:+n},Vn=function(t,n,i){var s=ie(n[1]),r=(s?2:1)+(t<2?0:1),o=n[r],a,l;if(s&&(o.duration=n[1]),o.parent=i,t){for(a=o,l=i;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=_t(l.vars.inherit)&&l.parent;o.immediateRender=_t(a.immediateRender),t<2?o.runBackwards=1:o.startAt=n[r-1]}return new tt(n[0],o,n[r+1])},ve=function(t,n){return t||t===0?n(t):n},ti=function(t,n,i){return i<t?t:i>n?n:i},ut=function(t,n){return!rt(t)||!(n=B0.exec(t))?"":n[1]},q0=function(t,n,i){return ve(i,function(s){return ti(t,n,s)})},ar=[].slice,Hc=function(t,n){return t&&Zt(t)&&"length"in t&&(!n&&!t.length||t.length-1 in t&&Zt(t[0]))&&!t.nodeType&&t!==Gt},Z0=function(t,n,i){return i===void 0&&(i=[]),t.forEach(function(s){var r;return rt(s)&&!n||Hc(s,1)?(r=i).push.apply(r,Ot(s)):i.push(s)})||i},Ot=function(t,n,i){return G&&!n&&G.selector?G.selector(t):rt(t)&&!i&&(ir||!un())?ar.call((n||ao).querySelectorAll(t),0):ct(t)?Z0(t,i):Hc(t)?ar.call(t,0):t?[t]:[]},lr=function(t){return t=Ot(t)[0]||Un("Invalid scope")||{},function(n){var i=t.current||t.nativeElement||t;return Ot(n,i.querySelectorAll?i:i===t?Un("Invalid scope")||ao.createElement("div"):t)}},qc=function(t){return t.sort(function(){return .5-Math.random()})},Zc=function(t){if(q(t))return t;var n=Zt(t)?t:{each:t},i=ke(n.ease),s=n.from||0,r=parseFloat(n.base)||0,o={},a=s>0&&s<1,l=isNaN(s)||a,u=n.axis,c=s,f=s;return rt(s)?c=f={center:.5,edges:.5,end:1}[s]||0:!a&&l&&(c=s[0],f=s[1]),function(h,d,m){var p=(m||n).length,g=o[p],y,_,v,x,T,P,S,b,w;if(!g){if(w=n.grid==="auto"?0:(n.grid||[1,Lt])[1],!w){for(S=-Lt;S<(S=m[w++].getBoundingClientRect().left)&&w<p;);w<p&&w--}for(g=o[p]=[],y=l?Math.min(w,p)*c-.5:s%w,_=w===Lt?0:l?p*f/w-.5:s/w|0,S=0,b=Lt,P=0;P<p;P++)v=P%w-y,x=_-(P/w|0),g[P]=T=u?Math.abs(u==="y"?x:v):kc(v*v+x*x),T>S&&(S=T),T<b&&(b=T);s==="random"&&qc(g),g.max=S-b,g.min=b,g.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(w>p?p-1:u?u==="y"?p/w:w:Math.max(w,p/w))||0)*(s==="edges"?-1:1),g.b=p<0?r-p:r,g.u=ut(n.amount||n.each)||0,i=i&&p<0?cy(i):i}return p=(g[h]-g.min)/g.max||0,Y(g.b+(i?i(p):p)*g.v)+g.u}},ur=function(t){var n=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var s=Y(Math.round(parseFloat(i)/t)*t*n);return(s-s%1)/n+(ie(i)?0:ut(i))}},Qc=function(t,n){var i=ct(t),s,r;return!i&&Zt(t)&&(s=i=t.radius||Lt,t.values?(t=Ot(t.values),(r=!ie(t[0]))&&(s*=s)):t=ur(t.increment)),ve(n,i?q(t)?function(o){return r=t(o),Math.abs(r-o)<=s?r:o}:function(o){for(var a=parseFloat(r?o.x:o),l=parseFloat(r?o.y:0),u=Lt,c=0,f=t.length,h,d;f--;)r?(h=t[f].x-a,d=t[f].y-l,h=h*h+d*d):h=Math.abs(t[f]-a),h<u&&(u=h,c=f);return c=!s||u<=s?t[c]:o,r||c===o||ie(o)?c:c+ut(o)}:ur(t))},Jc=function(t,n,i,s){return ve(ct(t)?!n:i===!0?!!(i=0):!s,function(){return ct(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(s=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(n-t+i*.99))/i)*i*s)/s})},Q0=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(s){return n.reduce(function(r,o){return o(r)},s)}},J0=function(t,n){return function(i){return t(parseFloat(i))+(n||ut(i))}},ty=function(t,n,i){return ef(t,n,0,1,i)},tf=function(t,n,i){return ve(i,function(s){return t[~~n(s)]})},ey=function e(t,n,i){var s=n-t;return ct(t)?tf(t,e(0,t.length),n):ve(i,function(r){return(s+(r-t)%s)%s+t})},ny=function e(t,n,i){var s=n-t,r=s*2;return ct(t)?tf(t,e(0,t.length-1),n):ve(i,function(o){return o=(r+(o-t)%r)%r||0,t+(o>s?r-o:o)})},$n=function(t){return t.replace(O0,function(n){var i=n.indexOf("[")+1,s=n.substring(i||7,i?n.indexOf("]"):n.length-1).split(I0);return Jc(i?s:+s[0],i?0:+s[1],+s[2]||1e-5)})},ef=function(t,n,i,s,r){var o=n-t,a=s-i;return ve(r,function(l){return i+((l-t)/o*a||0)})},iy=function e(t,n,i,s){var r=isNaN(t+n)?0:function(d){return(1-d)*t+d*n};if(!r){var o=rt(t),a={},l,u,c,f,h;if(i===!0&&(s=1)&&(i=null),o)t={p:t},n={p:n};else if(ct(t)&&!ct(n)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(e(t[u-1],t[u]));f--,r=function(m){m*=f;var p=Math.min(h,~~m);return c[p](m-p)},i=n}else s||(t=on(ct(t)?[]:{},t));if(!c){for(l in n)po.call(a,t,l,"get",n[l]);r=function(m){return _o(m,a)||(o?t.p:t)}}}return ve(i,r)},fl=function(t,n,i){var s=t.labels,r=Lt,o,a,l;for(o in s)a=s[o]-n,a<0==!!i&&a&&r>(a=Math.abs(a))&&(l=o,r=a);return l},Pt=function(t,n,i){var s=t.vars,r=s[n],o=G,a=t._ctx,l,u,c;if(r)return l=s[n+"Params"],u=s.callbackScope||t,i&&he.length&&Li(),a&&(G=a),c=l?r.apply(u,l):r.call(u),G=o,c},Tn=function(t){return me(t),t.scrollTrigger&&t.scrollTrigger.kill(!!at),t.progress()<1&&Pt(t,"onInterrupt"),t},He,nf=[],sf=function(t){if(t)if(t=!t.name&&t.default||t,oo()||t.headless){var n=t.name,i=q(t),s=n&&!i&&t.init?function(){this._props=[]}:t,r={init:Wn,render:_o,add:po,kill:xy,modifier:vy,rawVars:0},o={targetTest:0,get:0,getSetter:yo,aliases:{},register:0};if(un(),t!==s){if(bt[n])return;Dt(s,Dt(Oi(t,r),o)),on(s.prototype,on(r,Oi(t,o))),bt[s.prop=n]=s,t.targetTest&&(vi.push(s),uo[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Nc(n,s),t.register&&t.register(wt,s,xt)}else nf.push(t)},z=255,wn={aqua:[0,z,z],lime:[0,z,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,z],navy:[0,0,128],white:[z,z,z],olive:[128,128,0],yellow:[z,z,0],orange:[z,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[z,0,0],pink:[z,192,203],cyan:[0,z,z],transparent:[z,z,z,0]},xs=function(t,n,i){return t+=t<0?1:t>1?-1:0,(t*6<1?n+(i-n)*t*6:t<.5?i:t*3<2?n+(i-n)*(2/3-t)*6:n)*z+.5|0},rf=function(t,n,i){var s=t?ie(t)?[t>>16,t>>8&z,t&z]:0:wn.black,r,o,a,l,u,c,f,h,d,m;if(!s){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),wn[t])s=wn[t];else if(t.charAt(0)==="#"){if(t.length<6&&(r=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+r+r+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return s=parseInt(t.substr(1,6),16),[s>>16,s>>8&z,s&z,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),s=[t>>16,t>>8&z,t&z]}else if(t.substr(0,3)==="hsl"){if(s=m=t.match(ol),!n)l=+s[0]%360/360,u=+s[1]/100,c=+s[2]/100,o=c<=.5?c*(u+1):c+u-c*u,r=c*2-o,s.length>3&&(s[3]*=1),s[0]=xs(l+1/3,r,o),s[1]=xs(l,r,o),s[2]=xs(l-1/3,r,o);else if(~t.indexOf("="))return s=t.match(Oc),i&&s.length<4&&(s[3]=1),s}else s=t.match(ol)||wn.transparent;s=s.map(Number)}return n&&!m&&(r=s[0]/z,o=s[1]/z,a=s[2]/z,f=Math.max(r,o,a),h=Math.min(r,o,a),c=(f+h)/2,f===h?l=u=0:(d=f-h,u=c>.5?d/(2-f-h):d/(f+h),l=f===r?(o-a)/d+(o<a?6:0):f===o?(a-r)/d+2:(r-o)/d+4,l*=60),s[0]=~~(l+.5),s[1]=~~(u*100+.5),s[2]=~~(c*100+.5)),i&&s.length<4&&(s[3]=1),s},of=function(t){var n=[],i=[],s=-1;return t.split(de).forEach(function(r){var o=r.match(Ke)||[];n.push.apply(n,o),i.push(s+=o.length+1)}),n.c=i,n},hl=function(t,n,i){var s="",r=(t+s).match(de),o=n?"hsla(":"rgba(",a=0,l,u,c,f;if(!r)return t;if(r=r.map(function(h){return(h=rf(h,n,1))&&o+(n?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),i&&(c=of(t),l=i.c,l.join(s)!==c.c.join(s)))for(u=t.replace(de,"1").split(Ke),f=u.length-1;a<f;a++)s+=u[a]+(~l.indexOf(a)?r.shift()||o+"0,0,0,0)":(c.length?c:r.length?r:i).shift());if(!u)for(u=t.split(de),f=u.length-1;a<f;a++)s+=u[a]+r[a];return s+u[f]},de=function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in wn)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),sy=/hsl[a]?\(/,af=function(t){var n=t.join(" "),i;if(de.lastIndex=0,de.test(n))return i=sy.test(n),t[1]=hl(t[1],i),t[0]=hl(t[0],i,of(t[1])),!0},Gn,St=function(){var e=Date.now,t=500,n=33,i=e(),s=i,r=1e3/240,o=r,a=[],l,u,c,f,h,d,m=function p(g){var y=e()-s,_=g===!0,v,x,T,P;if((y>t||y<0)&&(i+=y-n),s+=y,T=s-i,v=T-o,(v>0||_)&&(P=++f.frame,h=T-f.time*1e3,f.time=T=T/1e3,o+=v+(v>=r?4:r-v),x=1),_||(l=u(p)),x)for(d=0;d<a.length;d++)a[d](T,h,P,g)};return f={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(g){return h/(1e3/(g||60))},wake:function(){Fc&&(!ir&&oo()&&(Gt=ir=window,ao=Gt.document||{},Mt.gsap=wt,(Gt.gsapVersions||(Gt.gsapVersions=[])).push(wt.version),Bc(ki||Gt.GreenSockGlobals||!Gt.gsap&&Gt||{}),nf.forEach(sf)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(g){return setTimeout(g,o-f.time*1e3+1|0)},Gn=1,m(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Gn=0,u=Wn},lagSmoothing:function(g,y){t=g||1/0,n=Math.min(y||33,t)},fps:function(g){r=1e3/(g||240),o=f.time*1e3+r},add:function(g,y,_){var v=y?function(x,T,P,S){g(x,T,P,S),f.remove(v)}:g;return f.remove(g),a[_?"unshift":"push"](v),un(),v},remove:function(g,y){~(y=a.indexOf(g))&&a.splice(y,1)&&d>=y&&d--},_listeners:a},f}(),un=function(){return!Gn&&St.wake()},F={},ry=/^[\d.\-M][\d.\-,\s]/,oy=/["']/g,ay=function(t){for(var n={},i=t.substr(1,t.length-3).split(":"),s=i[0],r=1,o=i.length,a,l,u;r<o;r++)l=i[r],a=r!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,a),n[s]=isNaN(u)?u.replace(oy,"").trim():+u,s=l.substr(a+1).trim();return n},ly=function(t){var n=t.indexOf("(")+1,i=t.indexOf(")"),s=t.indexOf("(",n);return t.substring(n,~s&&s<i?t.indexOf(")",i+1):i)},uy=function(t){var n=(t+"").split("("),i=F[n[0]];return i&&n.length>1&&i.config?i.config.apply(null,~t.indexOf("{")?[ay(n[1])]:ly(t).split(",").map(Wc)):F._CE&&ry.test(t)?F._CE("",t):i},cy=function(t){return function(n){return 1-t(1-n)}},ke=function(t,n){return t&&(q(t)?t:F[t]||uy(t))||n},Be=function(t,n,i,s){i===void 0&&(i=function(l){return 1-n(1-l)}),s===void 0&&(s=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var r={easeIn:n,easeOut:i,easeInOut:s},o;return vt(t,function(a){F[a]=Mt[a]=r,F[o=a.toLowerCase()]=i;for(var l in r)F[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=F[a+"."+l]=r[l]}),r},lf=function(t){return function(n){return n<.5?(1-t(1-n*2))/2:.5+t((n-.5)*2)/2}},Ts=function e(t,n,i){var s=n>=1?n:1,r=(i||(t?.3:.45))/(n<1?n:1),o=r/nr*(Math.asin(1/s)||0),a=function(c){return c===1?1:s*Math.pow(2,-10*c)*L0((c-o)*r)+1},l=t==="out"?a:t==="in"?function(u){return 1-a(1-u)}:lf(a);return r=nr/r,l.config=function(u,c){return e(t,u,c)},l},ws=function e(t,n){n===void 0&&(n=1.70158);var i=function(o){return o?--o*o*((n+1)*o+n)+1:0},s=t==="out"?i:t==="in"?function(r){return 1-i(1-r)}:lf(i);return s.config=function(r){return e(t,r)},s};vt("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Be(e+",Power"+(n-1),t?function(i){return Math.pow(i,n)}:function(i){return i},function(i){return 1-Math.pow(1-i,n)},function(i){return i<.5?Math.pow(i*2,n)/2:1-Math.pow((1-i)*2,n)/2})});F.Linear.easeNone=F.none=F.Linear.easeIn;Be("Elastic",Ts("in"),Ts("out"),Ts());(function(e,t){var n=1/t,i=2*n,s=2.5*n,r=function(a){return a<n?e*a*a:a<i?e*Math.pow(a-1.5/t,2)+.75:a<s?e*(a-=2.25/t)*a+.9375:e*Math.pow(a-2.625/t,2)+.984375};Be("Bounce",function(o){return 1-r(1-o)},r)})(7.5625,2.75);Be("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});Be("Circ",function(e){return-(kc(1-e*e)-1)});Be("Sine",function(e){return e===1?1:-k0(e*R0)+1});Be("Back",ws("in"),ws("out"),ws());F.SteppedEase=F.steps=Mt.SteppedEase={config:function(t,n){t===void 0&&(t=1);var i=1/t,s=t+(n?0:1),r=n?1:0,o=1-U;return function(a){return((s*ti(0,o,a)|0)+r)*i}}};zn.ease=F["quad.out"];vt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return co+=e+","+e+"Params,"});var uf=function(t,n){this.id=V0++,t._gsap=this,this.target=t,this.harness=n,this.get=n?n.get:zc,this.set=n?n.getSetter:yo},Yn=function(){function e(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,ln(this,+n.duration,1,1),this.data=n.data,G&&(this._ctx=G,G.data.push(this)),Gn||St.wake()}var t=e.prototype;return t.delay=function(i){return i||i===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+i-this._delay),this._delay=i,this):this._delay},t.duration=function(i){return arguments.length?this.totalDuration(this._repeat>0?i+(i+this._rDelay)*this._repeat:i):this.totalDuration()&&this._dur},t.totalDuration=function(i){return arguments.length?(this._dirty=0,ln(this,this._repeat<0?i:(i-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(i,s){if(un(),!arguments.length)return this._tTime;var r=this._dp;if(r&&r.smoothChildTiming&&this._ts){for(Ji(this,i),!r._dp||r.parent||Yc(r,this);r&&r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&i<this._tDur||this._ts<0&&i>0||!this._tDur&&!i)&&Xt(this._dp,this,this._start-this._delay)}return(this._tTime!==i||!this._dur&&!s||this._initted&&Math.abs(this._zTime)===U||!this._initted&&this._dur&&i||!i&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=i),Uc(this,i,s)),this},t.time=function(i,s){return arguments.length?this.totalTime(Math.min(this.totalDuration(),i+ul(this))%(this._dur+this._rDelay)||(i?this._dur:0),s):this._time},t.totalProgress=function(i,s){return arguments.length?this.totalTime(this.totalDuration()*i,s):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(i,s){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-i:i)+ul(this),s):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(i,s){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(i-1)*r,s):this._repeat?an(this._tTime,r)+1:1},t.timeScale=function(i,s){if(!arguments.length)return this._rts===-U?0:this._rts;if(this._rts===i)return this;var r=this.parent&&this._ts?Ii(this.parent._time,this):this._tTime;return this._rts=+i||0,this._ts=this._ps||i===-U?0:this._rts,this.totalTime(ti(-Math.abs(this._delay),this.totalDuration(),r),s!==!1),Qi(this),$0(this)},t.paused=function(i){return arguments.length?(this._ps!==i&&(this._ps=i,i?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(un(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==U&&(this._tTime-=U)))),this):this._ps},t.startTime=function(i){if(arguments.length){this._start=Y(i);var s=this.parent||this._dp;return s&&(s._sort||!this.parent)&&Xt(s,this,this._start-this._delay),this}return this._start},t.endTime=function(i){return this._start+(_t(i)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(i){var s=this.parent||this._dp;return s?i&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ii(s.rawTime(i),this):this._tTime:this._tTime},t.revert=function(i){i===void 0&&(i=j0);var s=at;return at=i,ho(this)&&(this.timeline&&this.timeline.revert(i),this.totalTime(-.01,i.suppressEvents)),this.data!=="nested"&&i.kill!==!1&&this.kill(),at=s,this},t.globalTime=function(i){for(var s=this,r=arguments.length?i:s.rawTime();s;)r=s._start+r/(Math.abs(s._ts)||1),s=s._dp;return!this.parent&&this._sat?this._sat.globalTime(i):r},t.repeat=function(i){return arguments.length?(this._repeat=i===1/0?-2:i,cl(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(i){if(arguments.length){var s=this._time;return this._rDelay=i,cl(this),s?this.time(s):this}return this._rDelay},t.yoyo=function(i){return arguments.length?(this._yoyo=i,this):this._yoyo},t.seek=function(i,s){return this.totalTime(Et(this,i),_t(s))},t.restart=function(i,s){return this.play().totalTime(i?-this._delay:0,_t(s)),this._dur||(this._zTime=-U),this},t.play=function(i,s){return i!=null&&this.seek(i,s),this.reversed(!1).paused(!1)},t.reverse=function(i,s){return i!=null&&this.seek(i||this.totalDuration(),s),this.reversed(!0).paused(!1)},t.pause=function(i,s){return i!=null&&this.seek(i,s),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(i){return arguments.length?(!!i!==this.reversed()&&this.timeScale(-this._rts||(i?-U:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-U,this},t.isActive=function(){var i=this.parent||this._dp,s=this._start,r;return!!(!i||this._ts&&this._initted&&i.isActive()&&(r=i.rawTime(!0))>=s&&r<this.endTime(!0)-U)},t.eventCallback=function(i,s,r){var o=this.vars;return arguments.length>1?(s?(o[i]=s,r&&(o[i+"Params"]=r),i==="onUpdate"&&(this._onUpdate=s)):delete o[i],this):o[i]},t.then=function(i){var s=this,r=s._prom;return new Promise(function(o){var a=q(i)?i:$c,l=function(){var c=s.then;s.then=null,r&&r(),q(a)&&(a=a(s))&&(a.then||a===s)&&(s.then=c),o(a),s.then=c};s._initted&&s.totalProgress()===1&&s._ts>=0||!s._tTime&&s._ts<0?l():s._prom=l})},t.kill=function(){Tn(this)},e}();Dt(Yn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-U,_prom:0,_ps:!1,_rts:1});var mt=function(e){Vc(t,e);function t(i,s){var r;return i===void 0&&(i={}),r=e.call(this,i)||this,r.labels={},r.smoothChildTiming=!!i.smoothChildTiming,r.autoRemoveChildren=!!i.autoRemoveChildren,r._sort=_t(i.sortChildren),X&&Xt(i.parent||X,Jt(r),s),i.reversed&&r.reverse(),i.paused&&r.paused(!0),i.scrollTrigger&&Xc(Jt(r),i.scrollTrigger),r}var n=t.prototype;return n.to=function(s,r,o){return Vn(0,arguments,this),this},n.from=function(s,r,o){return Vn(1,arguments,this),this},n.fromTo=function(s,r,o,a){return Vn(2,arguments,this),this},n.set=function(s,r,o){return r.duration=0,r.parent=this,Rn(r).repeatDelay||(r.repeat=0),r.immediateRender=!!r.immediateRender,new tt(s,r,Et(this,o),1),this},n.call=function(s,r,o){return Xt(this,tt.delayedCall(0,s,r),o)},n.staggerTo=function(s,r,o,a,l,u,c){return o.duration=r,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new tt(s,o,Et(this,l)),this},n.staggerFrom=function(s,r,o,a,l,u,c){return o.runBackwards=1,Rn(o).immediateRender=_t(o.immediateRender),this.staggerTo(s,r,o,a,l,u,c)},n.staggerFromTo=function(s,r,o,a,l,u,c,f){return a.startAt=o,Rn(a).immediateRender=_t(a.immediateRender),this.staggerTo(s,r,a,l,u,c,f)},n.render=function(s,r,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=s<=0?0:Y(s),f=this._zTime<0!=s<0&&(this._initted||!u),h,d,m,p,g,y,_,v,x,T,P,S;if(this!==X&&c>l&&s>=0&&(c=l),c!==this._tTime||o||f){if(a!==this._time&&u&&(c+=this._time-a,s+=this._time-a),h=c,x=this._start,v=this._ts,y=!v,f&&(u||(a=this._zTime),(s||!r)&&(this._zTime=s)),this._repeat){if(P=this._yoyo,g=u+this._rDelay,this._repeat<-1&&s<0)return this.totalTime(g*100+s,r,o);if(h=Y(c%g),c===l?(p=this._repeat,h=u):(T=Y(c/g),p=~~T,p&&p===T&&(h=u,p--),h>u&&(h=u)),T=an(this._tTime,g),!a&&this._tTime&&T!==p&&this._tTime-T*g-this._dur<=0&&(T=p),P&&p&1&&(h=u-h,S=1),p!==T&&!this._lock){var b=P&&T&1,w=b===(P&&p&1);if(p<T&&(b=!b),a=b?0:c%u?u:c,this._lock=1,this.render(a||(S?0:Y(p*g)),r,!u)._lock=0,this._tTime=c,!r&&this.parent&&Pt(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1,T=p),a&&a!==this._time||y!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,w&&(this._lock=2,a=b?u:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!y)return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=K0(this,Y(a),Y(h)),_&&(c-=h-(h=_._start))),this._tTime=c,this._time=h,this._act=!!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=s,a=0),!a&&c&&u&&!r&&!T&&(Pt(this,"onStart"),this._tTime!==c))return this;if(h>=a&&s>=0)for(d=this._first;d;){if(m=d._next,(d._act||h>=d._start)&&d._ts&&_!==d){if(d.parent!==this)return this.render(s,r,o);if(d.render(d._ts>0?(h-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(h-d._start)*d._ts,r,o),h!==this._time||!this._ts&&!y){_=0,m&&(c+=this._zTime=-U);break}}d=m}else{d=this._last;for(var A=s<0?s:h;d;){if(m=d._prev,(d._act||A<=d._end)&&d._ts&&_!==d){if(d.parent!==this)return this.render(s,r,o);if(d.render(d._ts>0?(A-d._start)*d._ts:(d._dirty?d.totalDuration():d._tDur)+(A-d._start)*d._ts,r,o||at&&ho(d)),h!==this._time||!this._ts&&!y){_=0,m&&(c+=this._zTime=A?-U:U);break}}d=m}}if(_&&!r&&(this.pause(),_.render(h>=a?0:-U)._zTime=h>=a?1:-1,this._ts))return this._start=x,Qi(this),this.render(s,r,o);this._onUpdate&&!r&&Pt(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&a)&&(x===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((s||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&me(this,1),!r&&!(s<0&&!a)&&(c||a||!l)&&(Pt(this,c===l&&s>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(s,r){var o=this;if(ie(r)||(r=Et(this,r,s)),!(s instanceof Yn)){if(ct(s))return s.forEach(function(a){return o.add(a,r)}),this;if(rt(s))return this.addLabel(s,r);if(q(s))s=tt.delayedCall(0,s);else return this}return this!==s?Xt(this,s,r):this},n.getChildren=function(s,r,o,a){s===void 0&&(s=!0),r===void 0&&(r=!0),o===void 0&&(o=!0),a===void 0&&(a=-Lt);for(var l=[],u=this._first;u;)u._start>=a&&(u instanceof tt?r&&l.push(u):(o&&l.push(u),s&&l.push.apply(l,u.getChildren(!0,r,o)))),u=u._next;return l},n.getById=function(s){for(var r=this.getChildren(1,1,1),o=r.length;o--;)if(r[o].vars.id===s)return r[o]},n.remove=function(s){return rt(s)?this.removeLabel(s):q(s)?this.killTweensOf(s):(s.parent===this&&Zi(this,s),s===this._recent&&(this._recent=this._last),Ve(this))},n.totalTime=function(s,r){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Y(St.time-(this._ts>0?s/this._ts:(this.totalDuration()-s)/-this._ts))),e.prototype.totalTime.call(this,s,r),this._forcing=0,this):this._tTime},n.addLabel=function(s,r){return this.labels[s]=Et(this,r),this},n.removeLabel=function(s){return delete this.labels[s],this},n.addPause=function(s,r,o){var a=tt.delayedCall(0,r||Wn,o);return a.data="isPause",this._hasPause=1,Xt(this,a,Et(this,s))},n.removePause=function(s){var r=this._first;for(s=Et(this,s);r;)r._start===s&&r.data==="isPause"&&me(r),r=r._next},n.killTweensOf=function(s,r,o){for(var a=this.getTweensOf(s,o),l=a.length;l--;)ue!==a[l]&&a[l].kill(s,r);return this},n.getTweensOf=function(s,r){for(var o=[],a=Ot(s),l=this._first,u=ie(r),c;l;)l instanceof tt?z0(l._targets,a)&&(u?(!ue||l._initted&&l._ts)&&l.globalTime(0)<=r&&l.globalTime(l.totalDuration())>r:!r||l.isActive())&&o.push(l):(c=l.getTweensOf(a,r)).length&&o.push.apply(o,c),l=l._next;return o},n.tweenTo=function(s,r){r=r||{};var o=this,a=Et(o,s),l=r,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,d,m=tt.to(o,Dt({ease:r.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:r.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||U,onStart:function(){if(o.pause(),!d){var g=r.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());m._dur!==g&&ln(m,g,0,1).render(m._time,!0,!0),d=1}c&&c.apply(m,f||[])}},r));return h?m.render(0):m},n.tweenFromTo=function(s,r,o){return this.tweenTo(r,Dt({startAt:{time:Et(this,s)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(s){return s===void 0&&(s=this._time),fl(this,Et(this,s))},n.previousLabel=function(s){return s===void 0&&(s=this._time),fl(this,Et(this,s),1)},n.currentLabel=function(s){return arguments.length?this.seek(s,!0):this.previousLabel(this._time+U)},n.shiftChildren=function(s,r,o){o===void 0&&(o=0);var a=this._first,l=this.labels,u;for(s=Y(s);a;)a._start>=o&&(a._start+=s,a._end+=s),a=a._next;if(r)for(u in l)l[u]>=o&&(l[u]+=s);return Ve(this)},n.invalidate=function(s){var r=this._first;for(this._lock=0;r;)r.invalidate(s),r=r._next;return e.prototype.invalidate.call(this,s)},n.clear=function(s){s===void 0&&(s=!0);for(var r=this._first,o;r;)o=r._next,this.remove(r),r=o;return this._dp&&(this._time=this._tTime=this._pTime=0),s&&(this.labels={}),Ve(this)},n.totalDuration=function(s){var r=0,o=this,a=o._last,l=Lt,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-s:s));if(o._dirty){for(f=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),c=a._start,c>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Xt(o,a,c-a._delay,1)._lock=0):l=c,c<0&&a._ts&&(r-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=Y(c/o._ts),o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),a._end>r&&a._ts&&(r=a._end),a=u;ln(o,o===X&&o._time>r?o._time:r,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(s){if(X._ts&&(Uc(X,Ii(s,X)),jc=St.frame),St.frame>=al){al+=Ct.autoSleep||120;var r=X._first;if((!r||!r._ts)&&Ct.autoSleep&&St._listeners.length<2){for(;r&&!r._ts;)r=r._next;r||St.sleep()}}},t}(Yn);Dt(mt.prototype,{_lock:0,_hasPause:0,_forcing:0});var fy=function(t,n,i,s,r,o,a){var l=new xt(this._pt,t,n,0,1,mf,null,r),u=0,c=0,f,h,d,m,p,g,y,_;for(l.b=i,l.e=s,i+="",s+="",(y=~s.indexOf("random("))&&(s=$n(s)),o&&(_=[i,s],o(_,t,n),i=_[0],s=_[1]),h=i.match(_s)||[];f=_s.exec(s);)m=f[0],p=s.substring(u,f.index),d?d=(d+1)%5:p.substr(-5)==="rgba("&&(d=1),m!==h[c++]&&(g=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:p||c===1?p:",",s:g,c:m.charAt(1)==="="?Ze(g,m)-g:parseFloat(m)-g,m:d&&d<4?Math.round:0},u=_s.lastIndex);return l.c=u<s.length?s.substring(u,s.length):"",l.fp=a,(Ic.test(s)||y)&&(l.e=0),this._pt=l,l},po=function(t,n,i,s,r,o,a,l,u,c){q(s)&&(s=s(r||0,t,o));var f=t[n],h=i!=="get"?i:q(f)?u?t[n.indexOf("set")||!q(t["get"+n.substr(3)])?n:"get"+n.substr(3)](u):t[n]():f,d=q(f)?u?gy:df:go,m;if(rt(s)&&(~s.indexOf("random(")&&(s=$n(s)),s.charAt(1)==="="&&(m=Ze(h,s)+(ut(h)||0),(m||m===0)&&(s=m))),!c||h!==s||cr)return!isNaN(h*s)&&s!==""?(m=new xt(this._pt,t,n,+h||0,s-(h||0),typeof f=="boolean"?_y:pf,0,d),u&&(m.fp=u),a&&m.modifier(a,this,t),this._pt=m):(!f&&!(n in t)&&lo(n,s),fy.call(this,t,n,h,s,d,l||Ct.stringFilter,u))},hy=function(t,n,i,s,r){if(q(t)&&(t=kn(t,r,n,i,s)),!Zt(t)||t.style&&t.nodeType||ct(t)||Lc(t))return rt(t)?kn(t,r,n,i,s):t;var o={},a;for(a in t)o[a]=kn(t[a],r,n,i,s);return o},cf=function(t,n,i,s,r,o){var a,l,u,c;if(bt[t]&&(a=new bt[t]).init(r,a.rawVars?n[t]:hy(n[t],s,r,o,i),i,s,o)!==!1&&(i._pt=l=new xt(i._pt,r,t,0,1,a.render,a,0,a.priority),i!==He))for(u=i._ptLookup[i._targets.indexOf(r)],c=a._props.length;c--;)u[a._props[c]]=l;return a},ue,cr,mo=function e(t,n,i){var s=t.vars,r=s.ease,o=s.startAt,a=s.immediateRender,l=s.lazy,u=s.onUpdate,c=s.runBackwards,f=s.yoyoEase,h=s.keyframes,d=s.autoRevert,m=t._dur,p=t._startAt,g=t._targets,y=t.parent,_=y&&y.data==="nested"?y.vars.targets:g,v=t._overwrite==="auto"&&!so,x=t.timeline,T=s.easeReverse||f,P,S,b,w,A,M,E,R,k,O,L,I,V;if(x&&(!h||!r)&&(r="none"),t._ease=ke(r,zn.ease),t._rEase=T&&(ke(T)||t._ease),t._from=!x&&!!s.runBackwards,t._from&&(t.ratio=1),!x||h&&!s.stagger){if(R=g[0]?Re(g[0]).harness:0,I=R&&s[R.prop],P=Oi(s,uo),p&&(p._zTime<0&&p.progress(1),n<0&&c&&a&&!d?p.render(-1,!0):p.revert(c&&m?_i:N0),p._lazy=0),o){if(me(t._startAt=tt.set(g,Dt({data:"isStart",overwrite:!1,parent:y,immediateRender:!0,lazy:!p&&_t(l),startAt:null,delay:0,onUpdate:u&&function(){return Pt(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(at||!a&&!d)&&t._startAt.revert(_i),a&&m&&n<=0&&i<=0){n&&(t._zTime=n);return}}else if(c&&m&&!p){if(n&&(a=!1),b=Dt({overwrite:!1,data:"isFromStart",lazy:a&&!p&&_t(l),immediateRender:a,stagger:0,parent:y},P),I&&(b[R.prop]=I),me(t._startAt=tt.set(g,b)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(at?t._startAt.revert(_i):t._startAt.render(-1,!0)),t._zTime=n,!a)e(t._startAt,U,U);else if(!n)return}for(t._pt=t._ptCache=0,l=m&&_t(l)||l&&!m,S=0;S<g.length;S++){if(A=g[S],E=A._gsap||fo(g)[S]._gsap,t._ptLookup[S]=O={},sr[E.id]&&he.length&&Li(),L=_===g?S:_.indexOf(A),R&&(k=new R).init(A,I||P,t,L,_)!==!1&&(t._pt=w=new xt(t._pt,A,k.name,0,1,k.render,k,0,k.priority),k._props.forEach(function(W){O[W]=w}),k.priority&&(M=1)),!R||I)for(b in P)bt[b]&&(k=cf(b,P,t,L,A,_))?k.priority&&(M=1):O[b]=w=po.call(t,A,b,"get",P[b],L,_,0,s.stringFilter);t._op&&t._op[S]&&t.kill(A,t._op[S]),v&&t._pt&&(ue=t,X.killTweensOf(A,O,t.globalTime(n)),V=!t.parent,ue=0),t._pt&&l&&(sr[E.id]=1)}M&&gf(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!V,h&&n<=0&&x.render(Lt,!0,!0)},dy=function(t,n,i,s,r,o,a,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[n],c,f,h,d;if(!u)for(u=t._ptCache[n]=[],h=t._ptLookup,d=t._targets.length;d--;){if(c=h[d][n],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==n&&c.fp!==n;)c=c._next;if(!c)return cr=1,t.vars[n]="+=0",mo(t,a),cr=0,l?Un(n+" not eligible for reset. Try splitting into individual properties"):1;u.push(c)}for(d=u.length;d--;)f=u[d],c=f._pt||f,c.s=(s||s===0)&&!r?s:c.s+(s||0)+o*c.c,c.c=i-c.s,f.e&&(f.e=Z(i)+ut(f.e)),f.b&&(f.b=c.s+ut(f.b))},py=function(t,n){var i=t[0]?Re(t[0]).harness:0,s=i&&i.aliases,r,o,a,l;if(!s)return n;r=on({},n);for(o in s)if(o in r)for(l=s[o].split(","),a=l.length;a--;)r[l[a]]=r[o];return r},my=function(t,n,i,s){var r=n.ease||s||"power1.inOut",o,a;if(ct(n))a=i[t]||(i[t]=[]),n.forEach(function(l,u){return a.push({t:u/(n.length-1)*100,v:l,e:r})});else for(o in n)a=i[o]||(i[o]=[]),o==="ease"||a.push({t:parseFloat(t),v:n[o],e:r})},kn=function(t,n,i,s,r){return q(t)?t.call(n,i,s,r):rt(t)&&~t.indexOf("random(")?$n(t):t},ff=co+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert",hf={};vt(ff+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return hf[e]=1});var tt=function(e){Vc(t,e);function t(i,s,r,o){var a;typeof s=="number"&&(r.duration=s,s=r,r=null),a=e.call(this,o?s:Rn(s))||this;var l=a.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,d=l.overwrite,m=l.keyframes,p=l.defaults,g=l.scrollTrigger,y=s.parent||X,_=(ct(i)||Lc(i)?ie(i[0]):"length"in s)?[i]:Ot(i),v,x,T,P,S,b,w,A;if(a._targets=_.length?fo(_):Un("GSAP target "+i+" not found. https://gsap.com",!Ct.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,m||h||li(u)||li(c)){s=a.vars;var M=s.easeReverse||s.yoyoEase;if(v=a.timeline=new mt({data:"nested",defaults:p||{},targets:y&&y.data==="nested"?y.vars.targets:_}),v.kill(),v.parent=v._dp=Jt(a),v._start=0,h||li(u)||li(c)){if(P=_.length,w=h&&Zc(h),Zt(h))for(S in h)~ff.indexOf(S)&&(A||(A={}),A[S]=h[S]);for(x=0;x<P;x++)T=Oi(s,hf),T.stagger=0,M&&(T.easeReverse=M),A&&on(T,A),b=_[x],T.duration=+kn(u,Jt(a),x,b,_),T.delay=(+kn(c,Jt(a),x,b,_)||0)-a._delay,!h&&P===1&&T.delay&&(a._delay=c=T.delay,a._start+=c,T.delay=0),v.to(b,T,w?w(x,b,_):0),v._ease=F.none;v.duration()?u=c=0:a.timeline=0}else if(m){Rn(Dt(v.vars.defaults,{ease:"none"})),v._ease=ke(m.ease||s.ease||"none");var E=0,R,k,O;if(ct(m))m.forEach(function(L){return v.to(_,L,">")}),v.duration();else{T={};for(S in m)S==="ease"||S==="easeEach"||my(S,m[S],T,m.easeEach);for(S in T)for(R=T[S].sort(function(L,I){return L.t-I.t}),E=0,x=0;x<R.length;x++)k=R[x],O={ease:k.e,duration:(k.t-(x?R[x-1].t:0))/100*u},O[S]=k.v,v.to(_,O,E),E+=O.duration;v.duration()<u&&v.to({},{duration:u-v.duration()})}}u||a.duration(u=v.duration())}else a.timeline=0;return d===!0&&!so&&(ue=Jt(a),X.killTweensOf(_),ue=0),Xt(y,Jt(a),r),s.reversed&&a.reverse(),s.paused&&a.paused(!0),(f||!u&&!m&&a._start===Y(y._time)&&_t(f)&&G0(Jt(a))&&y.data!=="nested")&&(a._tTime=-U,a.render(Math.max(0,-c)||0)),g&&Xc(Jt(a),g),a}var n=t.prototype;return n.render=function(s,r,o){var a=this._time,l=this._tDur,u=this._dur,c=s<0,f=s>l-U&&!c?l:s<U?0:s,h,d,m,p,g,y,_,v;if(!u)X0(this,s,r,o);else if(f!==this._tTime||!s||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,v=this.timeline,this._repeat){if(p=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(p*100+s,r,o);if(h=Y(f%p),f===l?(m=this._repeat,h=u):(g=Y(f/p),m=~~g,m&&m===g?(h=u,m--):h>u&&(h=u)),y=this._yoyo&&m&1,y&&(h=u-h),g=an(this._tTime,p),h===a&&!o&&this._initted&&m===g)return this._tTime=f,this;m!==g&&this.vars.repeatRefresh&&!y&&!this._lock&&h!==p&&this._initted&&(this._lock=o=1,this.render(Y(p*m),!0).invalidate()._lock=0)}if(!this._initted){if(Kc(this,c?s:h,o,r,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==g))return this;if(u!==this._dur)return this.render(s,r,o)}if(this._rEase){var x=h<a;if(x!==this._inv){var T=x?a:u-a;this._inv=x,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=a,this._invRecip=T?(x?-1:1)/T:0,this._invScale=x?-this.ratio:1-this.ratio,this._invEase=x?this._rEase:this._ease}this.ratio=_=this._invRatio+this._invScale*this._invEase((h-this._invTime)*this._invRecip)}else this.ratio=_=this._ease(h/u);if(this._from&&(this.ratio=_=1-_),this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),!a&&f&&!r&&!g&&(Pt(this,"onStart"),this._tTime!==f))return this;for(d=this._pt;d;)d.r(_,d.d),d=d._next;v&&v.render(s<0?s:v._dur*v._ease(h/this._dur),r,o)||this._startAt&&(this._zTime=s),this._onUpdate&&!r&&(c&&rr(this,s,r,o),Pt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!r&&this.parent&&Pt(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&rr(this,s,!0,!0),(s||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&me(this,1),!r&&!(c&&!a)&&(f||a||y)&&(Pt(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(s){return(!s||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(s),e.prototype.invalidate.call(this,s)},n.resetTo=function(s,r,o,a,l){Gn||St.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||mo(this,u),c=this._ease(u/this._dur),dy(this,s,r,o,a,c,u,l)?this.resetTo(s,r,o,a,1):(Ji(this,0),this.parent||Gc(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(s,r){if(r===void 0&&(r="all"),!s&&(!r||r==="all"))return this._lazy=this._pt=0,this.parent?Tn(this):this.scrollTrigger&&this.scrollTrigger.kill(!!at),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(s,r,ue&&ue.vars.overwrite!==!0)._first||Tn(this),this.parent&&o!==this.timeline.totalDuration()&&ln(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=s?Ot(s):a,u=this._ptLookup,c=this._pt,f,h,d,m,p,g,y;if((!r||r==="all")&&W0(a,l))return r==="all"&&(this._pt=0),Tn(this);for(f=this._op=this._op||[],r!=="all"&&(rt(r)&&(p={},vt(r,function(_){return p[_]=1}),r=p),r=py(a,r)),y=a.length;y--;)if(~l.indexOf(a[y])){h=u[y],r==="all"?(f[y]=r,m=h,d={}):(d=f[y]=f[y]||{},m=r);for(p in m)g=h&&h[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&Zi(this,g,"_pt"),delete h[p]),d!=="all"&&(d[p]=1)}return this._initted&&!this._pt&&c&&Tn(this),this},t.to=function(s,r){return new t(s,r,arguments[2])},t.from=function(s,r){return Vn(1,arguments)},t.delayedCall=function(s,r,o,a){return new t(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:s,onComplete:r,onReverseComplete:r,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(s,r,o){return Vn(2,arguments)},t.set=function(s,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new t(s,r)},t.killTweensOf=function(s,r,o){return X.killTweensOf(s,r,o)},t}(Yn);Dt(tt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});vt("staggerTo,staggerFrom,staggerFromTo",function(e){tt[e]=function(){var t=new mt,n=ar.call(arguments,0);return n.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,n)}});var go=function(t,n,i){return t[n]=i},df=function(t,n,i){return t[n](i)},gy=function(t,n,i,s){return t[n](s.fp,i)},yy=function(t,n,i){return t.setAttribute(n,i)},yo=function(t,n){return q(t[n])?df:ro(t[n])&&t.setAttribute?yy:go},pf=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e6)/1e6,n)},_y=function(t,n){return n.set(n.t,n.p,!!(n.s+n.c*t),n)},mf=function(t,n){var i=n._pt,s="";if(!t&&n.b)s=n.b;else if(t===1&&n.e)s=n.e;else{for(;i;)s=i.p+(i.m?i.m(i.s+i.c*t):Math.round((i.s+i.c*t)*1e4)/1e4)+s,i=i._next;s+=n.c}n.set(n.t,n.p,s,n)},_o=function(t,n){for(var i=n._pt;i;)i.r(t,i.d),i=i._next},vy=function(t,n,i,s){for(var r=this._pt,o;r;)o=r._next,r.p===s&&r.modifier(t,n,i),r=o},xy=function(t){for(var n=this._pt,i,s;n;)s=n._next,n.p===t&&!n.op||n.op===t?Zi(this,n,"_pt"):n.dep||(i=1),n=s;return!i},Ty=function(t,n,i,s){s.mSet(t,n,s.m.call(s.tween,i,s.mt),s)},gf=function(t){for(var n=t._pt,i,s,r,o;n;){for(i=n._next,s=r;s&&s.pr>n.pr;)s=s._next;(n._prev=s?s._prev:o)?n._prev._next=n:r=n,(n._next=s)?s._prev=n:o=n,n=i}t._pt=r},xt=function(){function e(n,i,s,r,o,a,l,u,c){this.t=i,this.s=r,this.c=o,this.p=s,this.r=a||pf,this.d=l||this,this.set=u||go,this.pr=c||0,this._next=n,n&&(n._prev=this)}var t=e.prototype;return t.modifier=function(i,s,r){this.mSet=this.mSet||this.set,this.set=Ty,this.m=i,this.mt=r,this.tween=s},e}();vt(co+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse",function(e){return uo[e]=1});Mt.TweenMax=Mt.TweenLite=tt;Mt.TimelineLite=Mt.TimelineMax=mt;X=new mt({sortChildren:!1,defaults:zn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ct.stringFilter=af;var Le=[],xi={},wy=[],dl=0,by=0,bs=function(t){return(xi[t]||wy).map(function(n){return n()})},fr=function(){var t=Date.now(),n=[];t-dl>2&&(bs("matchMediaInit"),Le.forEach(function(i){var s=i.queries,r=i.conditions,o,a,l,u;for(a in s)o=Gt.matchMedia(s[a]).matches,o&&(l=1),o!==r[a]&&(r[a]=o,u=1);u&&(i.revert(),l&&n.push(i))}),bs("matchMediaRevert"),n.forEach(function(i){return i.onMatch(i,function(s){return i.add(null,s)})}),dl=t,bs("matchMedia"))},yf=function(){function e(n,i){this.selector=i&&lr(i),this.data=[],this._r=[],this.isReverted=!1,this.id=by++,n&&this.add(n)}var t=e.prototype;return t.add=function(i,s,r){q(i)&&(r=s,s=i,i=q);var o=this,a=function(){var u=G,c=o.selector,f;return u&&u!==o&&u.data.push(o),r&&(o.selector=lr(r)),G=o,f=s.apply(o,arguments),q(f)&&o._r.push(f),G=u,o.selector=c,o.isReverted=!1,f};return o.last=a,i===q?a(o,function(l){return o.add(null,l)}):i?o[i]=a:a},t.ignore=function(i){var s=G;G=null,i(this),G=s},t.getTweens=function(){var i=[];return this.data.forEach(function(s){return s instanceof e?i.push.apply(i,s.getTweens()):s instanceof tt&&!(s.parent&&s.parent.data==="nested")&&i.push(s)}),i},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(i,s){var r=this;if(i?function(){for(var a=r.getTweens(),l=r.data.length,u;l--;)u=r.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return a.splice(a.indexOf(c),1)}));for(a.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(i)}),l=r.data.length;l--;)u=r.data[l],u instanceof mt?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof tt)&&u.revert&&u.revert(i);r._r.forEach(function(c){return c(i,r)}),r.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),s)for(var o=Le.length;o--;)Le[o].id===this.id&&Le.splice(o,1)},t.revert=function(i){this.kill(i||{})},e}(),Sy=function(){function e(n){this.contexts=[],this.scope=n,G&&G.data.push(this)}var t=e.prototype;return t.add=function(i,s,r){Zt(i)||(i={matches:i});var o=new yf(0,r||this.scope),a=o.conditions={},l,u,c;G&&!o.selector&&(o.selector=G.selector),this.contexts.push(o),s=o.add("onMatch",s),o.queries=i;for(u in i)u==="all"?c=1:(l=Gt.matchMedia(i[u]),l&&(Le.indexOf(o)<0&&Le.push(o),(a[u]=l.matches)&&(c=1),l.addListener?l.addListener(fr):l.addEventListener("change",fr)));return c&&s(o,function(f){return o.add(null,f)}),this},t.revert=function(i){this.kill(i||{})},t.kill=function(i){this.contexts.forEach(function(s){return s.kill(i,!0)})},e}(),Fi={registerPlugin:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];n.forEach(function(s){return sf(s)})},timeline:function(t){return new mt(t)},getTweensOf:function(t,n){return X.getTweensOf(t,n)},getProperty:function(t,n,i,s){rt(t)&&(t=Ot(t)[0]);var r=Re(t||{}).get,o=i?$c:Wc;return i==="native"&&(i=""),t&&(n?o((bt[n]&&bt[n].get||r)(t,n,i,s)):function(a,l,u){return o((bt[a]&&bt[a].get||r)(t,a,l,u))})},quickSetter:function(t,n,i){if(t=Ot(t),t.length>1){var s=t.map(function(c){return wt.quickSetter(c,n,i)}),r=s.length;return function(c){for(var f=r;f--;)s[f](c)}}t=t[0]||{};var o=bt[n],a=Re(t),l=a.harness&&(a.harness.aliases||{})[n]||n,u=o?function(c){var f=new o;He._pt=0,f.init(t,i?c+i:c,He,0,[t]),f.render(1,f),He._pt&&_o(1,He)}:a.set(t,l);return o?u:function(c){return u(t,l,i?c+i:c,a,1)}},quickTo:function(t,n,i){var s,r=wt.to(t,Dt((s={},s[n]="+=0.1",s.paused=!0,s.stagger=0,s),i||{})),o=function(l,u,c){return r.resetTo(n,l,u,c)};return o.tween=r,o},isTweening:function(t){return X.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ke(t.ease,zn.ease)),ll(zn,t||{})},config:function(t){return ll(Ct,t||{})},registerEffect:function(t){var n=t.name,i=t.effect,s=t.plugins,r=t.defaults,o=t.extendTimeline;(s||"").split(",").forEach(function(a){return a&&!bt[a]&&!Mt[a]&&Un(n+" effect requires "+a+" plugin.")}),vs[n]=function(a,l,u){return i(Ot(a),Dt(l||{},r),u)},o&&(mt.prototype[n]=function(a,l,u){return this.add(vs[n](a,Zt(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,n){F[t]=ke(n)},parseEase:function(t,n){return arguments.length?ke(t,n):F},getById:function(t){return X.getById(t)},exportRoot:function(t,n){t===void 0&&(t={});var i=new mt(t),s,r;for(i.smoothChildTiming=_t(t.smoothChildTiming),X.remove(i),i._dp=0,i._time=i._tTime=X._time,s=X._first;s;)r=s._next,(n||!(!s._dur&&s instanceof tt&&s.vars.onComplete===s._targets[0]))&&Xt(i,s,s._start-s._delay),s=r;return Xt(X,i,0),i},context:function(t,n){return t?new yf(t,n):G},matchMedia:function(t){return new Sy(t)},matchMediaRefresh:function(){return Le.forEach(function(t){var n=t.conditions,i,s;for(s in n)n[s]&&(n[s]=!1,i=1);i&&t.revert()})||fr()},addEventListener:function(t,n){var i=xi[t]||(xi[t]=[]);~i.indexOf(n)||i.push(n)},removeEventListener:function(t,n){var i=xi[t],s=i&&i.indexOf(n);s>=0&&i.splice(s,1)},utils:{wrap:ey,wrapYoyo:ny,distribute:Zc,random:Jc,snap:Qc,normalize:ty,getUnit:ut,clamp:q0,splitColor:rf,toArray:Ot,selector:lr,mapRange:ef,pipe:Q0,unitize:J0,interpolate:iy,shuffle:qc},install:Bc,effects:vs,ticker:St,updateRoot:mt.updateRoot,plugins:bt,globalTimeline:X,core:{PropTween:xt,globals:Nc,Tween:tt,Timeline:mt,Animation:Yn,getCache:Re,_removeLinkedListItem:Zi,reverting:function(){return at},context:function(t){return t&&G&&(G.data.push(t),t._ctx=G),G},suppressOverwrites:function(t){return so=t}}};vt("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Fi[e]=tt[e]});St.add(mt.updateRoot);He=Fi.to({},{duration:0});var Py=function(t,n){for(var i=t._pt;i&&i.p!==n&&i.op!==n&&i.fp!==n;)i=i._next;return i},Ay=function(t,n){var i=t._targets,s,r,o;for(s in n)for(r=i.length;r--;)o=t._ptLookup[r][s],o&&(o=o.d)&&(o._pt&&(o=Py(o,s)),o&&o.modifier&&o.modifier(n[s],t,i[r],s))},Ss=function(t,n){return{name:t,headless:1,rawVars:1,init:function(s,r,o){o._onInit=function(a){var l,u;if(rt(r)&&(l={},vt(r,function(c){return l[c]=1}),r=l),n){l={};for(u in r)l[u]=n(r[u]);r=l}Ay(a,r)}}}},wt=Fi.registerPlugin({name:"attr",init:function(t,n,i,s,r){var o,a,l;this.tween=i;for(o in n)l=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(l||0)+"",n[o],s,r,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(t,n){for(var i=n._pt;i;)at?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",headless:1,init:function(t,n){for(var i=n.length;i--;)this.add(t,i,t[i]||0,n[i],0,0,0,0,0,1)}},Ss("roundProps",ur),Ss("modifiers"),Ss("snap",Qc))||Fi;tt.version=mt.version=wt.version="3.15.0";Fc=1;oo()&&un();F.Power0;F.Power1;F.Power2;F.Power3;F.Power4;F.Linear;F.Quad;F.Cubic;F.Quart;F.Quint;F.Strong;F.Elastic;F.Back;F.SteppedEase;F.Bounce;F.Sine;F.Expo;F.Circ;/*!
* CSSPlugin 3.15.0
* https://gsap.com
*
* Copyright 2008-2026, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var pl,ce,Qe,vo,Me,ml,xo,Cy=function(){return typeof window<"u"},se={},Pe=180/Math.PI,Je=Math.PI/180,ze=Math.atan2,gl=1e8,To=/([A-Z])/g,My=/(left|right|width|margin|padding|x)/i,Dy=/[\s,\(]\S/,Kt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},hr=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},Ey=function(t,n){return n.set(n.t,n.p,t===1?n.e:Math.round((n.s+n.c*t)*1e4)/1e4+n.u,n)},Ry=function(t,n){return n.set(n.t,n.p,t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},Vy=function(t,n){return n.set(n.t,n.p,t===1?n.e:t?Math.round((n.s+n.c*t)*1e4)/1e4+n.u:n.b,n)},ky=function(t,n){var i=n.s+n.c*t;n.set(n.t,n.p,~~(i+(i<0?-.5:.5))+n.u,n)},_f=function(t,n){return n.set(n.t,n.p,t?n.e:n.b,n)},vf=function(t,n){return n.set(n.t,n.p,t!==1?n.b:n.e,n)},Ly=function(t,n,i){return t.style[n]=i},Oy=function(t,n,i){return t.style.setProperty(n,i)},Iy=function(t,n,i){return t._gsap[n]=i},Fy=function(t,n,i){return t._gsap.scaleX=t._gsap.scaleY=i},By=function(t,n,i,s,r){var o=t._gsap;o.scaleX=o.scaleY=i,o.renderTransform(r,o)},Ny=function(t,n,i,s,r){var o=t._gsap;o[n]=i,o.renderTransform(r,o)},K="transform",Tt=K+"Origin",jy=function e(t,n){var i=this,s=this.target,r=s.style,o=s._gsap;if(t in se&&r){if(this.tfm=this.tfm||{},t!=="transform")t=Kt[t]||t,~t.indexOf(",")?t.split(",").forEach(function(a){return i.tfm[a]=te(s,a)}):this.tfm[t]=o.x?o[t]:te(s,t),t===Tt&&(this.tfm.zOrigin=o.zOrigin);else return Kt.transform.split(",").forEach(function(a){return e.call(i,a,n)});if(this.props.indexOf(K)>=0)return;o.svg&&(this.svgo=s.getAttribute("data-svg-origin"),this.props.push(Tt,n,"")),t=K}(r||n)&&this.props.push(t,n,r[t])},xf=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},zy=function(){var t=this.props,n=this.target,i=n.style,s=n._gsap,r,o;for(r=0;r<t.length;r+=3)t[r+1]?t[r+1]===2?n[t[r]](t[r+2]):n[t[r]]=t[r+2]:t[r+2]?i[t[r]]=t[r+2]:i.removeProperty(t[r].substr(0,2)==="--"?t[r]:t[r].replace(To,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)s[o]=this.tfm[o];s.svg&&(s.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),r=xo(),(!r||!r.isStart)&&!i[K]&&(xf(i),s.zOrigin&&i[Tt]&&(i[Tt]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Tf=function(t,n){var i={target:t,props:[],revert:zy,save:jy};return t._gsap||wt.core.getCache(t),n&&t.style&&t.nodeType&&n.split(",").forEach(function(s){return i.save(s)}),i},wf,dr=function(t,n){var i=ce.createElementNS?ce.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ce.createElement(t);return i&&i.style?i:ce.createElement(t)},At=function e(t,n,i){var s=getComputedStyle(t);return s[n]||s.getPropertyValue(n.replace(To,"-$1").toLowerCase())||s.getPropertyValue(n)||!i&&e(t,cn(n)||n,1)||""},yl="O,Moz,ms,Ms,Webkit".split(","),cn=function(t,n,i){var s=n||Me,r=s.style,o=5;if(t in r&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(yl[o]+t in r););return o<0?null:(o===3?"ms":o>=0?yl[o]:"")+t},pr=function(){Cy()&&window.document&&(pl=window,ce=pl.document,Qe=ce.documentElement,Me=dr("div")||{style:{}},dr("div"),K=cn(K),Tt=K+"Origin",Me.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",wf=!!cn("perspective"),xo=wt.core.reverting,vo=1)},_l=function(t){var n=t.ownerSVGElement,i=dr("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=t.cloneNode(!0),r;s.style.display="block",i.appendChild(s),Qe.appendChild(i);try{r=s.getBBox()}catch{}return i.removeChild(s),Qe.removeChild(i),r},vl=function(t,n){for(var i=n.length;i--;)if(t.hasAttribute(n[i]))return t.getAttribute(n[i])},bf=function(t){var n,i;try{n=t.getBBox()}catch{n=_l(t),i=1}return n&&(n.width||n.height)||i||(n=_l(t)),n&&!n.width&&!n.x&&!n.y?{x:+vl(t,["x","cx","x1"])||0,y:+vl(t,["y","cy","y1"])||0,width:0,height:0}:n},Sf=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&bf(t))},ge=function(t,n){if(n){var i=t.style,s;n in se&&n!==Tt&&(n=K),i.removeProperty?(s=n.substr(0,2),(s==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),i.removeProperty(s==="--"?n:n.replace(To,"-$1").toLowerCase())):i.removeAttribute(n)}},fe=function(t,n,i,s,r,o){var a=new xt(t._pt,n,i,0,1,o?vf:_f);return t._pt=a,a.b=s,a.e=r,t._props.push(i),a},xl={deg:1,rad:1,turn:1},Uy={grid:1,flex:1},ye=function e(t,n,i,s){var r=parseFloat(i)||0,o=(i+"").trim().substr((r+"").length)||"px",a=Me.style,l=My.test(n),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=s==="px",d=s==="%",m,p,g,y;if(s===o||!r||xl[s]||xl[o])return r;if(o!=="px"&&!h&&(r=e(t,n,i,"px")),y=t.getCTM&&Sf(t),(d||o==="%")&&(se[n]||~n.indexOf("adius")))return m=y?t.getBBox()[l?"width":"height"]:t[c],Z(d?r/m*f:r/100*m);if(a[l?"width":"height"]=f+(h?o:s),p=s!=="rem"&&~n.indexOf("adius")||s==="em"&&t.appendChild&&!u?t:t.parentNode,y&&(p=(t.ownerSVGElement||{}).parentNode),(!p||p===ce||!p.appendChild)&&(p=ce.body),g=p._gsap,g&&d&&g.width&&l&&g.time===St.time&&!g.uncache)return Z(r/g.width*f);if(d&&(n==="height"||n==="width")){var _=t.style[n];t.style[n]=f+s,m=t[c],_?t.style[n]=_:ge(t,n)}else(d||o==="%")&&!Uy[At(p,"display")]&&(a.position=At(t,"position")),p===t&&(a.position="static"),p.appendChild(Me),m=Me[c],p.removeChild(Me),a.position="absolute";return l&&d&&(g=Re(p),g.time=St.time,g.width=p[c]),Z(h?m*r/f:m&&r?f/m*r:0)},te=function(t,n,i,s){var r;return vo||pr(),n in Kt&&n!=="transform"&&(n=Kt[n],~n.indexOf(",")&&(n=n.split(",")[0])),se[n]&&n!=="transform"?(r=Kn(t,s),r=n!=="transformOrigin"?r[n]:r.svg?r.origin:Ni(At(t,Tt))+" "+r.zOrigin+"px"):(r=t.style[n],(!r||r==="auto"||s||~(r+"").indexOf("calc("))&&(r=Bi[n]&&Bi[n](t,n,i)||At(t,n)||zc(t,n)||(n==="opacity"?1:0))),i&&!~(r+"").trim().indexOf(" ")?ye(t,n,r,i)+i:r},Wy=function(t,n,i,s){if(!i||i==="none"){var r=cn(n,t,1),o=r&&At(t,r,1);o&&o!==i?(n=r,i=o):n==="borderColor"&&(i=At(t,"borderTopColor"))}var a=new xt(this._pt,t.style,n,0,1,mf),l=0,u=0,c,f,h,d,m,p,g,y,_,v,x,T;if(a.b=i,a.e=s,i+="",s+="",s.substring(0,6)==="var(--"&&(s=At(t,s.substring(4,s.indexOf(")")))),s==="auto"&&(p=t.style[n],t.style[n]=s,s=At(t,n)||s,p?t.style[n]=p:ge(t,n)),c=[i,s],af(c),i=c[0],s=c[1],h=i.match(Ke)||[],T=s.match(Ke)||[],T.length){for(;f=Ke.exec(s);)g=f[0],_=s.substring(l,f.index),m?m=(m+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(m=1),g!==(p=h[u++]||"")&&(d=parseFloat(p)||0,x=p.substr((d+"").length),g.charAt(1)==="="&&(g=Ze(d,g)+x),y=parseFloat(g),v=g.substr((y+"").length),l=Ke.lastIndex-v.length,v||(v=v||Ct.units[n]||x,l===s.length&&(s+=v,a.e+=v)),x!==v&&(d=ye(t,n,p,v)||0),a._pt={_next:a._pt,p:_||u===1?_:",",s:d,c:y-d,m:m&&m<4||n==="zIndex"?Math.round:0});a.c=l<s.length?s.substring(l,s.length):""}else a.r=n==="display"&&s==="none"?vf:_f;return Ic.test(s)&&(a.e=0),this._pt=a,a},Tl={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},$y=function(t){var n=t.split(" "),i=n[0],s=n[1]||"50%";return(i==="top"||i==="bottom"||s==="left"||s==="right")&&(t=i,i=s,s=t),n[0]=Tl[i]||i,n[1]=Tl[s]||s,n.join(" ")},Gy=function(t,n){if(n.tween&&n.tween._time===n.tween._dur){var i=n.t,s=i.style,r=n.u,o=i._gsap,a,l,u;if(r==="all"||r===!0)s.cssText="",l=1;else for(r=r.split(","),u=r.length;--u>-1;)a=r[u],se[a]&&(l=1,a=a==="transformOrigin"?Tt:K),ge(i,a);l&&(ge(i,K),o&&(o.svg&&i.removeAttribute("transform"),s.scale=s.rotate=s.translate="none",Kn(i,1),o.uncache=1,xf(s)))}},Bi={clearProps:function(t,n,i,s,r){if(r.data!=="isFromStart"){var o=t._pt=new xt(t._pt,n,i,0,0,Gy);return o.u=s,o.pr=-10,o.tween=r,t._props.push(i),1}}},Xn=[1,0,0,1,0,0],Pf={},Af=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},wl=function(t){var n=At(t,K);return Af(n)?Xn:n.substr(7).match(Oc).map(Z)},wo=function(t,n){var i=t._gsap||Re(t),s=t.style,r=wl(t),o,a,l,u;return i.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,r=[l.a,l.b,l.c,l.d,l.e,l.f],r.join(",")==="1,0,0,1,0,0"?Xn:r):(r===Xn&&!t.offsetParent&&t!==Qe&&!i.svg&&(l=s.display,s.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,a=t.nextElementSibling,Qe.appendChild(t)),r=wl(t),l?s.display=l:ge(t,"display"),u&&(a?o.insertBefore(t,a):o?o.appendChild(t):Qe.removeChild(t))),n&&r.length>6?[r[0],r[1],r[4],r[5],r[12],r[13]]:r)},mr=function(t,n,i,s,r,o){var a=t._gsap,l=r||wo(t,!0),u=a.xOrigin||0,c=a.yOrigin||0,f=a.xOffset||0,h=a.yOffset||0,d=l[0],m=l[1],p=l[2],g=l[3],y=l[4],_=l[5],v=n.split(" "),x=parseFloat(v[0])||0,T=parseFloat(v[1])||0,P,S,b,w;i?l!==Xn&&(S=d*g-m*p)&&(b=x*(g/S)+T*(-p/S)+(p*_-g*y)/S,w=x*(-m/S)+T*(d/S)-(d*_-m*y)/S,x=b,T=w):(P=bf(t),x=P.x+(~v[0].indexOf("%")?x/100*P.width:x),T=P.y+(~(v[1]||v[0]).indexOf("%")?T/100*P.height:T)),s||s!==!1&&a.smooth?(y=x-u,_=T-c,a.xOffset=f+(y*d+_*p)-y,a.yOffset=h+(y*m+_*g)-_):a.xOffset=a.yOffset=0,a.xOrigin=x,a.yOrigin=T,a.smooth=!!s,a.origin=n,a.originIsAbsolute=!!i,t.style[Tt]="0px 0px",o&&(fe(o,a,"xOrigin",u,x),fe(o,a,"yOrigin",c,T),fe(o,a,"xOffset",f,a.xOffset),fe(o,a,"yOffset",h,a.yOffset)),t.setAttribute("data-svg-origin",x+" "+T)},Kn=function(t,n){var i=t._gsap||new uf(t);if("x"in i&&!n&&!i.uncache)return i;var s=t.style,r=i.scaleX<0,o="px",a="deg",l=getComputedStyle(t),u=At(t,Tt)||"0",c,f,h,d,m,p,g,y,_,v,x,T,P,S,b,w,A,M,E,R,k,O,L,I,V,W,et,$,ft,ht,ot,nt;return c=f=h=p=g=y=_=v=x=0,d=m=1,i.svg=!!(t.getCTM&&Sf(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(s[K]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[K]!=="none"?l[K]:"")),s.scale=s.rotate=s.translate="none"),S=wo(t,i.svg),i.svg&&(i.uncache?(V=t.getBBox(),u=i.xOrigin-V.x+"px "+(i.yOrigin-V.y)+"px",I=""):I=!n&&t.getAttribute("data-svg-origin"),mr(t,I||u,!!I||i.originIsAbsolute,i.smooth!==!1,S)),T=i.xOrigin||0,P=i.yOrigin||0,S!==Xn&&(M=S[0],E=S[1],R=S[2],k=S[3],c=O=S[4],f=L=S[5],S.length===6?(d=Math.sqrt(M*M+E*E),m=Math.sqrt(k*k+R*R),p=M||E?ze(E,M)*Pe:0,_=R||k?ze(R,k)*Pe+p:0,_&&(m*=Math.abs(Math.cos(_*Je))),i.svg&&(c-=T-(T*M+P*R),f-=P-(T*E+P*k))):(nt=S[6],ht=S[7],et=S[8],$=S[9],ft=S[10],ot=S[11],c=S[12],f=S[13],h=S[14],b=ze(nt,ft),g=b*Pe,b&&(w=Math.cos(-b),A=Math.sin(-b),I=O*w+et*A,V=L*w+$*A,W=nt*w+ft*A,et=O*-A+et*w,$=L*-A+$*w,ft=nt*-A+ft*w,ot=ht*-A+ot*w,O=I,L=V,nt=W),b=ze(-R,ft),y=b*Pe,b&&(w=Math.cos(-b),A=Math.sin(-b),I=M*w-et*A,V=E*w-$*A,W=R*w-ft*A,ot=k*A+ot*w,M=I,E=V,R=W),b=ze(E,M),p=b*Pe,b&&(w=Math.cos(b),A=Math.sin(b),I=M*w+E*A,V=O*w+L*A,E=E*w-M*A,L=L*w-O*A,M=I,O=V),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,y=180-y),d=Z(Math.sqrt(M*M+E*E+R*R)),m=Z(Math.sqrt(L*L+nt*nt)),b=ze(O,L),_=Math.abs(b)>2e-4?b*Pe:0,x=ot?1/(ot<0?-ot:ot):0),i.svg&&(I=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!Af(At(t,K)),I&&t.setAttribute("transform",I))),Math.abs(_)>90&&Math.abs(_)<270&&(r?(d*=-1,_+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,_+=_<=0?180:-180)),n=n||i.uncache,i.x=c-((i.xPercent=c&&(!n&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+o,i.y=f-((i.yPercent=f&&(!n&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+o,i.z=h+o,i.scaleX=Z(d),i.scaleY=Z(m),i.rotation=Z(p)+a,i.rotationX=Z(g)+a,i.rotationY=Z(y)+a,i.skewX=_+a,i.skewY=v+a,i.transformPerspective=x+o,(i.zOrigin=parseFloat(u.split(" ")[2])||!n&&i.zOrigin||0)&&(s[Tt]=Ni(u)),i.xOffset=i.yOffset=0,i.force3D=Ct.force3D,i.renderTransform=i.svg?Xy:wf?Cf:Yy,i.uncache=0,i},Ni=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ps=function(t,n,i){var s=ut(n);return Z(parseFloat(n)+parseFloat(ye(t,"x",i+"px",s)))+s},Yy=function(t,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Cf(t,n)},we="0deg",yn="0px",be=") ",Cf=function(t,n){var i=n||this,s=i.xPercent,r=i.yPercent,o=i.x,a=i.y,l=i.z,u=i.rotation,c=i.rotationY,f=i.rotationX,h=i.skewX,d=i.skewY,m=i.scaleX,p=i.scaleY,g=i.transformPerspective,y=i.force3D,_=i.target,v=i.zOrigin,x="",T=y==="auto"&&t&&t!==1||y===!0;if(v&&(f!==we||c!==we)){var P=parseFloat(c)*Je,S=Math.sin(P),b=Math.cos(P),w;P=parseFloat(f)*Je,w=Math.cos(P),o=Ps(_,o,S*w*-v),a=Ps(_,a,-Math.sin(P)*-v),l=Ps(_,l,b*w*-v+v)}g!==yn&&(x+="perspective("+g+be),(s||r)&&(x+="translate("+s+"%, "+r+"%) "),(T||o!==yn||a!==yn||l!==yn)&&(x+=l!==yn||T?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+be),u!==we&&(x+="rotate("+u+be),c!==we&&(x+="rotateY("+c+be),f!==we&&(x+="rotateX("+f+be),(h!==we||d!==we)&&(x+="skew("+h+", "+d+be),(m!==1||p!==1)&&(x+="scale("+m+", "+p+be),_.style[K]=x||"translate(0, 0)"},Xy=function(t,n){var i=n||this,s=i.xPercent,r=i.yPercent,o=i.x,a=i.y,l=i.rotation,u=i.skewX,c=i.skewY,f=i.scaleX,h=i.scaleY,d=i.target,m=i.xOrigin,p=i.yOrigin,g=i.xOffset,y=i.yOffset,_=i.forceCSS,v=parseFloat(o),x=parseFloat(a),T,P,S,b,w;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Je,u*=Je,T=Math.cos(l)*f,P=Math.sin(l)*f,S=Math.sin(l-u)*-h,b=Math.cos(l-u)*h,u&&(c*=Je,w=Math.tan(u-c),w=Math.sqrt(1+w*w),S*=w,b*=w,c&&(w=Math.tan(c),w=Math.sqrt(1+w*w),T*=w,P*=w)),T=Z(T),P=Z(P),S=Z(S),b=Z(b)):(T=f,b=h,P=S=0),(v&&!~(o+"").indexOf("px")||x&&!~(a+"").indexOf("px"))&&(v=ye(d,"x",o,"px"),x=ye(d,"y",a,"px")),(m||p||g||y)&&(v=Z(v+m-(m*T+p*S)+g),x=Z(x+p-(m*P+p*b)+y)),(s||r)&&(w=d.getBBox(),v=Z(v+s/100*w.width),x=Z(x+r/100*w.height)),w="matrix("+T+","+P+","+S+","+b+","+v+","+x+")",d.setAttribute("transform",w),_&&(d.style[K]=w)},Ky=function(t,n,i,s,r){var o=360,a=rt(r),l=parseFloat(r)*(a&&~r.indexOf("rad")?Pe:1),u=l-s,c=s+u+"deg",f,h;return a&&(f=r.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*gl)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*gl)%o-~~(u/o)*o)),t._pt=h=new xt(t._pt,n,i,s,u,Ey),h.e=c,h.u="deg",t._props.push(i),h},bl=function(t,n){for(var i in n)t[i]=n[i];return t},Hy=function(t,n,i){var s=bl({},i._gsap),r="perspective,force3D,transformOrigin,svgOrigin",o=i.style,a,l,u,c,f,h,d,m;s.svg?(u=i.getAttribute("transform"),i.setAttribute("transform",""),o[K]=n,a=Kn(i,1),ge(i,K),i.setAttribute("transform",u)):(u=getComputedStyle(i)[K],o[K]=n,a=Kn(i,1),o[K]=u);for(l in se)u=s[l],c=a[l],u!==c&&r.indexOf(l)<0&&(d=ut(u),m=ut(c),f=d!==m?ye(i,l,u,m):parseFloat(u),h=parseFloat(c),t._pt=new xt(t._pt,a,l,f,h-f,hr),t._pt.u=m||0,t._props.push(l));bl(a,s)};vt("padding,margin,Width,Radius",function(e,t){var n="Top",i="Right",s="Bottom",r="Left",o=(t<3?[n,i,s,r]:[n+r,n+i,s+i,s+r]).map(function(a){return t<2?e+a:"border"+a+e});Bi[t>1?"border"+e:e]=function(a,l,u,c,f){var h,d;if(arguments.length<4)return h=o.map(function(m){return te(a,m,u)}),d=h.join(" "),d.split(h[0]).length===5?h[0]:d;h=(c+"").split(" "),d={},o.forEach(function(m,p){return d[m]=h[p]=h[p]||h[(p-1)/2|0]}),a.init(l,d,f)}});var Mf={name:"css",register:pr,targetTest:function(t){return t.style&&t.nodeType},init:function(t,n,i,s,r){var o=this._props,a=t.style,l=i.vars.startAt,u,c,f,h,d,m,p,g,y,_,v,x,T,P,S,b,w;vo||pr(),this.styles=this.styles||Tf(t),b=this.styles.props,this.tween=i;for(p in n)if(p!=="autoRound"&&(c=n[p],!(bt[p]&&cf(p,n,i,s,t,r)))){if(d=typeof c,m=Bi[p],d==="function"&&(c=c.call(i,s,t,r),d=typeof c),d==="string"&&~c.indexOf("random(")&&(c=$n(c)),m)m(this,t,p,c,i)&&(S=1);else if(p.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(p)+"").trim(),c+="",de.lastIndex=0,de.test(u)||(g=ut(u),y=ut(c),y?g!==y&&(u=ye(t,p,u,y)+y):g&&(c+=g)),this.add(a,"setProperty",u,c,s,r,0,0,p),o.push(p),b.push(p,0,a[p]);else if(d!=="undefined"){if(l&&p in l?(u=typeof l[p]=="function"?l[p].call(i,s,t,r):l[p],rt(u)&&~u.indexOf("random(")&&(u=$n(u)),ut(u+"")||u==="auto"||(u+=Ct.units[p]||ut(te(t,p))||""),(u+"").charAt(1)==="="&&(u=te(t,p))):u=te(t,p),h=parseFloat(u),_=d==="string"&&c.charAt(1)==="="&&c.substr(0,2),_&&(c=c.substr(2)),f=parseFloat(c),p in Kt&&(p==="autoAlpha"&&(h===1&&te(t,"visibility")==="hidden"&&f&&(h=0),b.push("visibility",0,a.visibility),fe(this,a,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Kt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),v=p in se,v){if(this.styles.save(p),w=c,d==="string"&&c.substring(0,6)==="var(--"){if(c=At(t,c.substring(4,c.indexOf(")"))),c.substring(0,5)==="calc("){var A=t.style.perspective;t.style.perspective=c,c=At(t,"perspective"),A?t.style.perspective=A:ge(t,"perspective")}f=parseFloat(c)}if(x||(T=t._gsap,T.renderTransform&&!n.parseTransform||Kn(t,n.parseTransform),P=n.smoothOrigin!==!1&&T.smooth,x=this._pt=new xt(this._pt,a,K,0,1,T.renderTransform,T,0,-1),x.dep=1),p==="scale")this._pt=new xt(this._pt,T,"scaleY",T.scaleY,(_?Ze(T.scaleY,_+f):f)-T.scaleY||0,hr),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){b.push(Tt,0,a[Tt]),c=$y(c),T.svg?mr(t,c,0,P,0,this):(y=parseFloat(c.split(" ")[2])||0,y!==T.zOrigin&&fe(this,T,"zOrigin",T.zOrigin,y),fe(this,a,p,Ni(u),Ni(c)));continue}else if(p==="svgOrigin"){mr(t,c,1,P,0,this);continue}else if(p in Pf){Ky(this,T,p,h,_?Ze(h,_+c):c);continue}else if(p==="smoothOrigin"){fe(this,T,"smooth",T.smooth,c);continue}else if(p==="force3D"){T[p]=c;continue}else if(p==="transform"){Hy(this,c,t);continue}}else p in a||(p=cn(p)||p);if(v||(f||f===0)&&(h||h===0)&&!Dy.test(c)&&p in a)g=(u+"").substr((h+"").length),f||(f=0),y=ut(c)||(p in Ct.units?Ct.units[p]:g),g!==y&&(h=ye(t,p,u,y)),this._pt=new xt(this._pt,v?T:a,p,h,(_?Ze(h,_+f):f)-h,!v&&(y==="px"||p==="zIndex")&&n.autoRound!==!1?ky:hr),this._pt.u=y||0,v&&w!==c?(this._pt.b=u,this._pt.e=w,this._pt.r=Vy):g!==y&&y!=="%"&&(this._pt.b=u,this._pt.r=Ry);else if(p in a)Wy.call(this,t,p,u,_?_+c:c);else if(p in t)this.add(t,p,u||t[p],_?_+c:c,s,r);else if(p!=="parseTransform"){lo(p,c);continue}v||(p in a?b.push(p,0,a[p]):typeof t[p]=="function"?b.push(p,2,t[p]()):b.push(p,1,u||t[p])),o.push(p)}}S&&gf(this)},render:function(t,n){if(n.tween._time||!xo())for(var i=n._pt;i;)i.r(t,i.d),i=i._next;else n.styles.revert()},get:te,aliases:Kt,getSetter:function(t,n,i){var s=Kt[n];return s&&s.indexOf(",")<0&&(n=s),n in se&&n!==Tt&&(t._gsap.x||te(t,"x"))?i&&ml===i?n==="scale"?Fy:Iy:(ml=i||{})&&(n==="scale"?By:Ny):t.style&&!ro(t.style[n])?Ly:~n.indexOf("-")?Oy:yo(t,n)},core:{_removeProperty:ge,_getMatrix:wo}};wt.utils.checkPrefix=cn;wt.core.getStyleSaver=Tf;(function(e,t,n,i){var s=vt(e+","+t+","+n,function(r){se[r]=1});vt(t,function(r){Ct.units[r]="deg",Pf[r]=1}),Kt[s[13]]=e+","+t,vt(i,function(r){var o=r.split(":");Kt[o[1]]=s[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");vt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Ct.units[e]="px"});wt.registerPlugin(Mf);var qy=wt.registerPlugin(Mf)||wt;qy.core.Tween;/*!
* paths 3.15.0
* https://gsap.com
*
* Copyright 2008-2026, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var Zy=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,Qy=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig,Jy=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/ig,t_=/(^[#\.][a-z]|[a-y][a-z])/i,e_=Math.PI/180,n_=180/Math.PI,ui=Math.sin,ci=Math.cos,It=Math.abs,ee=Math.sqrt,i_=Math.atan2,gr=1e8,Sl=function(t){return typeof t=="string"},Df=function(t){return typeof t=="number"},s_=function(t){return typeof t>"u"},r_={},o_={},ji=1e5,Ef=function(t){return Math.round((t+gr)%1*ji)/ji||(t<0?0:1)},N=function(t){return Math.round(t*ji)/ji||0},Pl=function(t){return Math.round(t*1e10)/1e10||0},Al=function(t){return t.closed=Math.abs(t[0]-t[t.length-2])<.001&&Math.abs(t[1]-t[t.length-1])<.001},Cl=function(t,n,i,s){var r=t[n],o=s===1?6:yr(r,i,s);if((o||!s)&&o+i+2<r.length)return t.splice(n,0,r.slice(0,i+o+2)),r.splice(0,i+o),1},Rf=function(t,n,i){var s=t.length,r=~~(i*s);if(t[r]>n){for(;--r&&t[r]>n;);r<0&&(r=0)}else for(;t[++r]<n&&r<s;);return r<s?r:s-1},a_=function(t,n){var i=t.length;for(t.reverse();i--;)t[i].reversed||c_(t[i])},Ml=function(t,n){return n.totalLength=t.totalLength,t.samples?(n.samples=t.samples.slice(0),n.lookup=t.lookup.slice(0),n.minLength=t.minLength,n.resolution=t.resolution):t.totalPoints&&(n.totalPoints=t.totalPoints),n},l_=function(t,n){var i=t.length,s=t[i-1]||[],r=s.length;i&&n[0]===s[r-2]&&n[1]===s[r-1]&&(n=s.concat(n.slice(2)),i--),t[i]=n};function Ti(e){e=Sl(e)&&t_.test(e)&&document.querySelector(e)||e;var t=e.getAttribute?e:0,n;return t&&(e=e.getAttribute("d"))?(t._gsPath||(t._gsPath={}),n=t._gsPath[e],n&&!n._dirty?n:t._gsPath[e]=zi(e)):e?Sl(e)?zi(e):Df(e[0])?[e]:e:console.warn("Expecting a <path> element or an SVG path data string")}function u_(e){for(var t=[],n=0;n<e.length;n++)t[n]=Ml(e[n],e[n].slice(0));return Ml(e,t)}function c_(e){var t=0,n;for(e.reverse();t<e.length;t+=2)n=e[t],e[t]=e[t+1],e[t+1]=n;e.reversed=!e.reversed}var f_=function(t,n){var i=document.createElementNS("http://www.w3.org/2000/svg","path"),s=[].slice.call(t.attributes),r=s.length,o;for(n=","+n+",";--r>-1;)o=s[r].nodeName.toLowerCase(),n.indexOf(","+o+",")<0&&i.setAttributeNS(null,o,s[r].nodeValue);return i},h_={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},d_=function(t,n){for(var i=n?n.split(","):[],s={},r=i.length;--r>-1;)s[i[r]]=+t.getAttribute(i[r])||0;return s};function p_(e,t){var n=e.tagName.toLowerCase(),i=.552284749831,s,r,o,a,l,u,c,f,h,d,m,p,g,y,_,v,x,T,P,S,b,w;return n==="path"||!e.getBBox?e:(u=f_(e,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),w=d_(e,h_[n]),n==="rect"?(a=w.rx,l=w.ry||a,r=w.x,o=w.y,d=w.width-a*2,m=w.height-l*2,a||l?(p=r+a*(1-i),g=r+a,y=g+d,_=y+a*i,v=y+a,x=o+l*(1-i),T=o+l,P=T+m,S=P+l*i,b=P+l,s="M"+v+","+T+" V"+P+" C"+[v,S,_,b,y,b,y-(y-g)/3,b,g+(y-g)/3,b,g,b,p,b,r,S,r,P,r,P-(P-T)/3,r,T+(P-T)/3,r,T,r,x,p,o,g,o,g+(y-g)/3,o,y-(y-g)/3,o,y,o,_,o,v,x,v,T].join(",")+"z"):s="M"+(r+d)+","+o+" v"+m+" h"+-d+" v"+-m+" h"+d+"z"):n==="circle"||n==="ellipse"?(n==="circle"?(a=l=w.r,f=a*i):(a=w.rx,l=w.ry,f=l*i),r=w.cx,o=w.cy,c=a*i,s="M"+(r+a)+","+o+" C"+[r+a,o+f,r+c,o+l,r,o+l,r-c,o+l,r-a,o+f,r-a,o,r-a,o-f,r-c,o-l,r,o-l,r+c,o-l,r+a,o-f,r+a,o].join(",")+"z"):n==="line"?s="M"+w.x1+","+w.y1+" L"+w.x2+","+w.y2:(n==="polyline"||n==="polygon")&&(h=(e.getAttribute("points")+"").match(Qy)||[],r=h.shift(),o=h.shift(),s="M"+r+","+o+" L"+h.join(","),n==="polygon"&&(s+=","+r+","+o+"z")),u.setAttribute("d",Lf(u._gsRawPath=zi(s))),t&&e.parentNode&&(e.parentNode.insertBefore(u,e),e.parentNode.removeChild(e)),u)}function Vf(e,t,n){var i=e[t],s=e[t+2],r=e[t+4],o;return i+=(s-i)*n,s+=(r-s)*n,i+=(s-i)*n,o=s+(r+(e[t+6]-r)*n-s)*n-i,i=e[t+1],s=e[t+3],r=e[t+5],i+=(s-i)*n,s+=(r-s)*n,i+=(s-i)*n,N(i_(s+(r+(e[t+7]-r)*n-s)*n-i,o)*n_)}function kf(e,t,n){n=s_(n)?1:Pl(n)||0,t=Pl(t)||0;var i=Math.max(0,~~(It(n-t)-1e-8)),s=u_(e);if(t>n&&(t=1-t,n=1-n,a_(s),s.totalLength=0),t<0||n<0){var r=Math.abs(~~Math.min(t,n))+1;t+=r,n+=r}s.totalLength||Oe(s);var o=n>1,a=Dl(s,t,r_,!0),l=Dl(s,n,o_),u=l.segment,c=a.segment,f=l.segIndex,h=a.segIndex,d=l.i,m=a.i,p=h===f,g=d===m&&p,y,_,v,x,T,P,S,b;if(o||i){for(y=f<h||p&&d<m||g&&l.t<a.t,Cl(s,h,m,a.t)&&(h++,y||(f++,g?(l.t=(l.t-a.t)/(1-a.t),d=0):p&&(d-=m))),Math.abs(1-(n-t))<1e-5?f=h-1:!l.t&&f?f--:Cl(s,f,d,l.t)&&y&&h++,a.t===1&&(h=(h+1)%s.length),T=[],P=s.length,S=1+P*i,b=h,S+=(P-h+f)%P,x=0;x<S;x++)l_(T,s[b++%P]);s=T}else if(v=l.t===1?6:yr(u,d,l.t),t!==n)for(_=yr(c,m,g?a.t/l.t:a.t),p&&(v+=_),u.splice(d+v+2),(_||m)&&c.splice(0,m+_),x=s.length;x--;)(x<h||x>f)&&s.splice(x,1);else u.angle=Vf(u,d+v,0),d+=v,a=u[d],l=u[d+1],u.length=u.totalLength=0,u.totalPoints=s.totalPoints=8,u.push(a,l,a,l,a,l,a,l);return s.totalLength=0,s}function m_(e,t,n){t=t||0,e.samples||(e.samples=[],e.lookup=[]);var i=~~e.resolution||12,s=1/i,r=e.length,o=e[t],a=e[t+1],l=t?t/6*i:0,u=e.samples,c=e.lookup,f=(t?e.minLength:gr)||gr,h=u[l+n*i-1],d=t?u[l-1]:0,m,p,g,y,_,v,x,T,P,S,b,w,A,M,E,R,k;for(u.length=c.length=0,p=t+2;p<r;p+=6){if(g=e[p+4]-o,y=e[p+2]-o,_=e[p]-o,T=e[p+5]-a,P=e[p+3]-a,S=e[p+1]-a,v=x=b=w=0,It(g)<.01&&It(T)<.01&&It(_)+It(S)<.01)e.length>8&&(e.splice(p,6),p-=6,r-=6);else for(m=1;m<=i;m++)M=s*m,A=1-M,v=x-(x=(M*M*g+3*A*(M*y+A*_))*M),b=w-(w=(M*M*T+3*A*(M*P+A*S))*M),R=ee(b*b+v*v),R<f&&(f=R),d+=R,u[l++]=d;o+=g,a+=T}if(h)for(h-=d;l<u.length;l++)u[l]+=h;if(u.length&&f){if(e.totalLength=k=u[u.length-1]||0,e.minLength=f,k/f<9999)for(R=E=0,m=0;m<k;m+=f)c[R++]=u[E]<m?++E:E}else e.totalLength=u[0]=0;return t?d-u[t/2-1]:d}function Oe(e,t){var n,i,s;for(s=n=i=0;s<e.length;s++)e[s].resolution=~~t||12,n+=m_(e[s]),i+=e[s].length;return e.totalPoints=i,e.totalLength=n,e}function yr(e,t,n){if(n<=0||n>=1)return 0;var i=e[t],s=e[t+1],r=e[t+2],o=e[t+3],a=e[t+4],l=e[t+5],u=e[t+6],c=e[t+7],f=i+(r-i)*n,h=r+(a-r)*n,d=s+(o-s)*n,m=o+(l-o)*n,p=f+(h-f)*n,g=d+(m-d)*n,y=a+(u-a)*n,_=l+(c-l)*n;return h+=(y-h)*n,m+=(_-m)*n,e.splice(t+2,4,N(f),N(d),N(p),N(g),N(p+(h-p)*n),N(g+(m-g)*n),N(h),N(m),N(y),N(_)),e.samples&&e.samples.splice(t/6*e.resolution|0,0,0,0,0,0,0,0),6}function Dl(e,t,n,i){n=n||{},e.totalLength||Oe(e),(t<0||t>1)&&(t=Ef(t));var s=0,r=e[0],o,a,l,u,c,f,h;if(!t)h=f=s=0,r=e[0];else if(t===1)h=1,s=e.length-1,r=e[s],f=r.length-8;else{if(e.length>1){for(l=e.totalLength*t,c=f=0;(c+=e[f++].totalLength)<l;)s=f;r=e[s],u=c-r.totalLength,t=(l-u)/(c-u)||0}o=r.samples,a=r.resolution,l=r.totalLength*t,f=r.lookup.length?r.lookup[~~(l/r.minLength)]||0:Rf(o,l,t),u=f?o[f-1]:0,c=o[f],c<l&&(u=c,c=o[++f]),h=1/a*((l-u)/(c-u)+f%a),f=~~(f/a)*6,i&&h===1&&(f+6<r.length?(f+=6,h=0):s+1<e.length&&(f=h=0,r=e[++s]))}return n.t=h,n.i=f,n.path=e,n.segment=r,n.segIndex=s,n}function El(e,t,n,i){var s=e[0],r=i||{},o,a,l,u,c,f,h,d,m;if((t<0||t>1)&&(t=Ef(t)),s.lookup||Oe(e),e.length>1){for(l=e.totalLength*t,c=f=0;(c+=e[f++].totalLength)<l;)s=e[f];u=c-s.totalLength,t=(l-u)/(c-u)||0}return o=s.samples,a=s.resolution,l=s.totalLength*t,f=s.lookup.length?s.lookup[t<1?~~(l/s.minLength):s.lookup.length-1]||0:Rf(o,l,t),u=f?o[f-1]:0,c=o[f],c<l&&(u=c,c=o[++f]),h=1/a*((l-u)/(c-u)+f%a)||0,m=1-h,f=~~(f/a)*6,d=s[f],r.x=N((h*h*(s[f+6]-d)+3*m*(h*(s[f+4]-d)+m*(s[f+2]-d)))*h+d),r.y=N((h*h*(s[f+7]-(d=s[f+1]))+3*m*(h*(s[f+5]-d)+m*(s[f+3]-d)))*h+d),n&&(r.angle=s.totalLength?Vf(s,f,h>=1?1-1e-9:h||1e-9):s.angle||0),r}function bn(e,t,n,i,s,r,o){for(var a=e.length,l,u,c,f,h;--a>-1;)for(l=e[a],u=l.length,c=0;c<u;c+=2)f=l[c],h=l[c+1],l[c]=f*t+h*i+r,l[c+1]=f*n+h*s+o;return e._dirty=1,e}function g_(e,t,n,i,s,r,o,a,l){if(!(e===a&&t===l)){n=It(n),i=It(i);var u=s%360*e_,c=ci(u),f=ui(u),h=Math.PI,d=h*2,m=(e-a)/2,p=(t-l)/2,g=c*m+f*p,y=-f*m+c*p,_=g*g,v=y*y,x=_/(n*n)+v/(i*i);x>1&&(n=ee(x)*n,i=ee(x)*i);var T=n*n,P=i*i,S=(T*P-T*v-P*_)/(T*v+P*_);S<0&&(S=0);var b=(r===o?-1:1)*ee(S),w=b*(n*y/i),A=b*-(i*g/n),M=(e+a)/2,E=(t+l)/2,R=M+(c*w-f*A),k=E+(f*w+c*A),O=(g-w)/n,L=(y-A)/i,I=(-g-w)/n,V=(-y-A)/i,W=O*O+L*L,et=(L<0?-1:1)*Math.acos(O/ee(W)),$=(O*V-L*I<0?-1:1)*Math.acos((O*I+L*V)/ee(W*(I*I+V*V)));isNaN($)&&($=h),!o&&$>0?$-=d:o&&$<0&&($+=d),et%=d,$%=d;var ft=Math.ceil(It($)/(d/4)),ht=[],ot=$/ft,nt=4/3*ui(ot/2)/(1+ci(ot/2)),re=c*n,Ne=f*n,xe=f*-i,ei=c*i,lt;for(lt=0;lt<ft;lt++)s=et+lt*ot,g=ci(s),y=ui(s),O=ci(s+=ot),L=ui(s),ht.push(g-nt*y,y+nt*g,O+nt*L,L-nt*O,O,L);for(lt=0;lt<ht.length;lt+=2)g=ht[lt],y=ht[lt+1],ht[lt]=g*re+y*xe+R,ht[lt+1]=g*Ne+y*ei+k;return ht[lt-2]=a,ht[lt-1]=l,ht}}function zi(e){var t=(e+"").replace(Jy,function(w){var A=+w;return A<1e-4&&A>-1e-4?0:A}).match(Zy)||[],n=[],i=0,s=0,r=2/3,o=t.length,a=0,l="ERROR: malformed path: "+e,u,c,f,h,d,m,p,g,y,_,v,x,T,P,S,b=function(A,M,E,R){_=(E-A)/3,v=(R-M)/3,p.push(A+_,M+v,E-_,R-v,E,R)};if(!e||!isNaN(t[0])||isNaN(t[1]))return console.log(l),n;for(u=0;u<o;u++)if(T=d,isNaN(t[u])?(d=t[u].toUpperCase(),m=d!==t[u]):u--,f=+t[u+1],h=+t[u+2],m&&(f+=i,h+=s),u||(g=f,y=h),d==="M")p&&(p.length<8?n.length-=1:a+=p.length,Al(p)),i=g=f,s=y=h,p=[f,h],n.push(p),u+=2,d="L";else if(d==="C")p||(p=[0,0]),m||(i=s=0),p.push(f,h,i+t[u+3]*1,s+t[u+4]*1,i+=t[u+5]*1,s+=t[u+6]*1),u+=6;else if(d==="S")_=i,v=s,(T==="C"||T==="S")&&(_+=i-p[p.length-4],v+=s-p[p.length-3]),m||(i=s=0),p.push(_,v,f,h,i+=t[u+3]*1,s+=t[u+4]*1),u+=4;else if(d==="Q")_=i+(f-i)*r,v=s+(h-s)*r,m||(i=s=0),i+=t[u+3]*1,s+=t[u+4]*1,p.push(_,v,i+(f-i)*r,s+(h-s)*r,i,s),u+=4;else if(d==="T")_=i-p[p.length-4],v=s-p[p.length-3],p.push(i+_,s+v,f+(i+_*1.5-f)*r,h+(s+v*1.5-h)*r,i=f,s=h),u+=2;else if(d==="H")b(i,s,i=f,s),u+=1;else if(d==="V")b(i,s,i,s=f+(m?s-i:0)),u+=1;else if(d==="L"||d==="Z")d==="Z"&&(f=g,h=y,p.closed=!0),(d==="L"||It(i-f)>.5||It(s-h)>.5)&&(b(i,s,f,h),d==="L"&&(u+=2)),i=f,s=h;else if(d==="A"){if(P=t[u+4],S=t[u+5],_=t[u+6],v=t[u+7],c=7,P.length>1&&(P.length<3?(v=_,_=S,c--):(v=S,_=P.substr(2),c-=2),S=P.charAt(1),P=P.charAt(0)),x=g_(i,s,+t[u+1],+t[u+2],+t[u+3],+P,+S,(m?i:0)+_*1,(m?s:0)+v*1),u+=c,x)for(c=0;c<x.length;c++)p.push(x[c]);i=p[p.length-2],s=p[p.length-1]}else console.log(l);return u=p.length,u<6?(n.pop(),u=0):Al(p),n.totalPoints=a+u,n}function y_(e,t){t===void 0&&(t=1);for(var n=e[0],i=0,s=[n,i],r=2;r<e.length;r+=2)s.push(n,i,e[r],i=(e[r]-n)*t/2,n=e[r],-i);return s}function _r(e,t){It(e[0]-e[2])<1e-4&&It(e[1]-e[3])<1e-4&&(e=e.slice(2));var n=e.length-2,i=+e[0],s=+e[1],r=+e[2],o=+e[3],a=[i,s,i,s],l=r-i,u=o-s,c=e.nonSmooth||[],f=Math.abs(e[n]-i)<.001&&Math.abs(e[n+1]-s)<.001,h,d,m,p,g,y,_,v,x,T,P,S,b,w,A;if(!n)return[i,s,i,s,i,s,i,s];for(f&&(e.push(r,o),r=i,o=s,i=e[n-2],s=e[n-1],e.unshift(i,s),n+=4,c=[0,0].concat(c)),t=t||t===0?+t:1,m=2;m<n;m+=2)if(h=i,d=s,i=r,s=o,r=+e[m+2],o=+e[m+3],!(i===r&&s===o)){if(p=l,g=u,l=r-i,u=o-s,c[m]){a.push(i-(i-h)/4,s-(s-d)/4,i,s,i+(r-i)/4,s+(o-s)/4);continue}y=ee(p*p+g*g),_=ee(l*l+u*u),v=ee(Math.pow(l/_+p/y,2)+Math.pow(u/_+g/y,2)),x=(y+_)*t*.25/v,T=i-(i-h)*(y?x/y:0),P=i+(r-i)*(_?x/_:0),S=i-(T+((P-T)*(y*3/(y+_)+.5)/4||0)),b=s-(s-d)*(y?x/y:0),w=s+(o-s)*(_?x/_:0),A=s-(b+((w-b)*(y*3/(y+_)+.5)/4||0)),a.push(N(T+S),N(b+A),N(i),N(s),N(P+S),N(w+A))}return i!==r||s!==o||a.length<4?a.push(N(r),N(o),N(r),N(o)):a.length-=2,a.length===2?a.push(i,s,i,s,i,s):f&&(a.splice(0,6),a.length-=6),a.closed=f,a}function Lf(e){Df(e[0])&&(e=[e]);var t="",n=e.length,i,s,r,o;for(s=0;s<n;s++){for(o=e[s],t+="M"+N(o[0])+","+N(o[1])+" C",i=o.length,r=2;r<i;r++)t+=N(o[r++])+","+N(o[r++])+" "+N(o[r++])+","+N(o[r++])+" "+N(o[r++])+","+N(o[r])+" ";o.closed&&(t+="z")}return t}/*!
* matrix 3.15.0
* https://gsap.com
*
* Copyright 2008-2026, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var ne,Ie,bo,ts,Sn,wi,Ui,Ln,jt="transform",vr=jt+"Origin",Of,If=function(t){var n=t.ownerDocument||t;for(!(jt in t.style)&&("msTransform"in t.style)&&(jt="msTransform",vr=jt+"Origin");n.parentNode&&(n=n.parentNode););if(Ie=window,Ui=new Hn,n){ne=n,bo=n.documentElement,ts=n.body,Ln=ne.createElementNS("http://www.w3.org/2000/svg","g"),Ln.style.transform="none";var i=n.createElement("div"),s=n.createElement("div"),r=n&&(n.body||n.firstElementChild);r&&r.appendChild&&(r.appendChild(i),i.appendChild(s),i.style.position="static",i.style.transform="translate3d(0,0,1px)",Of=s.offsetParent!==i,r.removeChild(i))}return n},__=function(t){for(var n,i;t&&t!==ts;)i=t._gsap,i&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),n?n.push(i):n=[i]),t=t.parentNode;return n},Ff=[],Bf=[],v_=function(){return Ie.pageYOffset||ne.scrollTop||bo.scrollTop||ts.scrollTop||0},x_=function(){return Ie.pageXOffset||ne.scrollLeft||bo.scrollLeft||ts.scrollLeft||0},So=function(t){return t.ownerSVGElement||((t.tagName+"").toLowerCase()==="svg"?t:null)},T_=function e(t){if(Ie.getComputedStyle(t).position==="fixed")return!0;if(t=t.parentNode,t&&t.nodeType===1)return e(t)},As=function e(t,n){if(t.parentNode&&(ne||If(t))){var i=So(t),s=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",r=i?n?"rect":"g":"div",o=n!==2?0:100,a=n===3?100:0,l={position:"absolute",display:"block",pointerEvents:"none",margin:"0",padding:"0"},u=ne.createElementNS?ne.createElementNS(s.replace(/^https/,"http"),r):ne.createElement(r);return n&&(i?(wi||(wi=e(t)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+o+","+a+")"),u.setAttribute("fill","transparent"),wi.appendChild(u)):(Sn||(Sn=e(t),Object.assign(Sn.style,l)),Object.assign(u.style,l,{width:"0.1px",height:"0.1px",top:a+"px",left:o+"px"}),Sn.appendChild(u))),u}throw"Need document and parent."},w_=function(t){for(var n=new Hn,i=0;i<t.numberOfItems;i++)n.multiply(t.getItem(i).matrix);return n},b_=function(t){var n=t.getCTM(),i;return n||(i=t.style[jt],t.style[jt]="none",t.appendChild(Ln),n=Ln.getCTM(),t.removeChild(Ln),i?t.style[jt]=i:t.style.removeProperty(jt.replace(/([A-Z])/g,"-$1").toLowerCase())),n||Ui.clone()},S_=function(t,n){var i=So(t),s=t===i,r=i?Ff:Bf,o=t.parentNode,a=o&&!i&&o.shadowRoot&&o.shadowRoot.appendChild?o.shadowRoot:o,l,u,c,f,h,d;if(t===Ie)return t;if(r.length||r.push(As(t,1),As(t,2),As(t,3)),l=i?wi:Sn,i)s?(c=b_(t),f=-c.e/c.a,h=-c.f/c.d,u=Ui):t.getBBox?(c=t.getBBox(),u=t.transform?t.transform.baseVal:{},u=u.numberOfItems?u.numberOfItems>1?w_(u):u.getItem(0).matrix:Ui,f=u.a*c.x+u.c*c.y,h=u.b*c.x+u.d*c.y):(u=new Hn,f=h=0),n&&t.tagName.toLowerCase()==="g"&&(f=h=0),(s||!t.getBoundingClientRect().width?i:o).appendChild(l),l.setAttribute("transform","matrix("+u.a+","+u.b+","+u.c+","+u.d+","+(u.e+f)+","+(u.f+h)+")");else{if(f=h=0,Of)for(u=t.offsetParent,c=t;c&&(c=c.parentNode)&&c!==u&&c.parentNode;)(Ie.getComputedStyle(c)[jt]+"").length>4&&(f=c.offsetLeft,h=c.offsetTop,c=0);if(d=Ie.getComputedStyle(t),d.position!=="absolute"&&d.position!=="fixed")for(u=t.offsetParent;o&&o!==u;)f+=o.scrollLeft||0,h+=o.scrollTop||0,o=o.parentNode;c=l.style,c.top=t.offsetTop-h+"px",c.left=t.offsetLeft-f+"px",c[jt]=d[jt],c[vr]=d[vr],c.position=d.position==="fixed"?"fixed":"absolute",a.appendChild(l)}return l},Cs=function(t,n,i,s,r,o,a){return t.a=n,t.b=i,t.c=s,t.d=r,t.e=o,t.f=a,t},Hn=function(){function e(n,i,s,r,o,a){n===void 0&&(n=1),i===void 0&&(i=0),s===void 0&&(s=0),r===void 0&&(r=1),o===void 0&&(o=0),a===void 0&&(a=0),Cs(this,n,i,s,r,o,a)}var t=e.prototype;return t.inverse=function(){var i=this.a,s=this.b,r=this.c,o=this.d,a=this.e,l=this.f,u=i*o-s*r||1e-10;return Cs(this,o/u,-s/u,-r/u,i/u,(r*l-o*a)/u,-(i*l-s*a)/u)},t.multiply=function(i){var s=this.a,r=this.b,o=this.c,a=this.d,l=this.e,u=this.f,c=i.a,f=i.c,h=i.b,d=i.d,m=i.e,p=i.f;return Cs(this,c*s+h*o,c*r+h*a,f*s+d*o,f*r+d*a,l+m*s+p*o,u+m*r+p*a)},t.clone=function(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)},t.equals=function(i){var s=this.a,r=this.b,o=this.c,a=this.d,l=this.e,u=this.f;return s===i.a&&r===i.b&&o===i.c&&a===i.d&&l===i.e&&u===i.f},t.apply=function(i,s){s===void 0&&(s={});var r=i.x,o=i.y,a=this.a,l=this.b,u=this.c,c=this.d,f=this.e,h=this.f;return s.x=r*a+o*u+f||0,s.y=r*l+o*c+h||0,s},e}();function tn(e,t,n,i){if(!e||!e.parentNode||(ne||If(e)).documentElement===e)return new Hn;var s=__(e),r=So(e),o=r?Ff:Bf,a=S_(e,n),l=o[0].getBoundingClientRect(),u=o[1].getBoundingClientRect(),c=o[2].getBoundingClientRect(),f=a.parentNode,h=!i&&T_(e),d=new Hn((u.left-l.left)/100,(u.top-l.top)/100,(c.left-l.left)/100,(c.top-l.top)/100,l.left+(h?0:x_()),l.top+(h?0:v_()));if(f.removeChild(a),s)for(l=s.length;l--;)u=s[l],u.scaleX=u.scaleY=0,u.renderTransform(1,u);return t?d.inverse():d}/*!
* MotionPathPlugin 3.15.0
* https://gsap.com
*
* @license Copyright 2008-2026, GreenSock. All rights reserved.
* Subject to the terms at https://gsap.com/standard-license
* @author: Jack Doyle, jack@greensock.com
*/var P_="x,translateX,left,marginLeft,xPercent".split(","),A_="y,translateY,top,marginTop,yPercent".split(","),C_=Math.PI/180,Rt,Nf,We,xr,Ms,Rl,M_=function(){return Rt||typeof window<"u"&&(Rt=window.gsap)&&Rt.registerPlugin&&Rt},_n=function(t,n,i,s){for(var r=n.length,o=s===2?0:s,a=0;a<r;a++)t[o]=parseFloat(n[a][i]),s===2&&(t[o+1]=0),o+=2;return t},qe=function(t,n,i){return parseFloat(t._gsap.get(t,n,i||"px"))||0},jf=function(t){var n=t[0],i=t[1],s;for(s=2;s<t.length;s+=2)n=t[s]+=n,i=t[s+1]+=i},Vl=function(t,n,i,s,r,o,a,l,u){if(a.type==="cubic")n=[n];else{a.fromCurrent!==!1&&n.unshift(qe(i,s,l),r?qe(i,r,u):0),a.relative&&jf(n);var c=r?_r:y_;n=[c(n,a.curviness)]}return n=o(zf(n,i,a)),Wi(t,i,s,n,"x",l),r&&Wi(t,i,r,n,"y",u),Oe(n,a.resolution||(a.curviness===0?20:12))},D_=function(t){return t},E_=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,kl=function(t,n,i){var s=tn(t),r=0,o=0,a;return(t.tagName+"").toLowerCase()==="svg"?(a=t.viewBox.baseVal,a.width||(a={width:+t.getAttribute("width"),height:+t.getAttribute("height")})):a=n&&t.getBBox&&t.getBBox(),n&&n!=="auto"&&(r=n.push?n[0]*(a?a.width:t.offsetWidth||0):n.x,o=n.push?n[1]*(a?a.height:t.offsetHeight||0):n.y),i.apply(r||o?s.apply({x:r,y:o}):{x:s.e,y:s.f})},Tr=function(t,n,i,s){var r=tn(t.parentNode,!0,!0),o=r.clone().multiply(tn(n)),a=kl(t,i,r),l=kl(n,s,r),u=l.x,c=l.y,f;return o.e=o.f=0,s==="auto"&&n.getTotalLength&&n.tagName.toLowerCase()==="path"&&(f=n.getAttribute("d").match(E_)||[],f=o.apply({x:+f[0],y:+f[1]}),u+=f.x,c+=f.y),f&&(f=o.apply(n.getBBox()),u-=f.x,c-=f.y),o.e=u-a.x,o.f=c-a.y,o},zf=function(t,n,i){var s=i.align,r=i.matrix,o=i.offsetX,a=i.offsetY,l=i.alignOrigin,u=t[0][0],c=t[0][1],f=qe(n,"x"),h=qe(n,"y"),d,m,p;return!t||!t.length?Ti("M0,0L0,0"):(s&&(s==="self"||(d=xr(s)[0]||n)===n?bn(t,1,0,0,1,f-u,h-c):(l&&l[2]!==!1?Rt.set(n,{transformOrigin:l[0]*100+"% "+l[1]*100+"%"}):l=[qe(n,"xPercent")/-100,qe(n,"yPercent")/-100],m=Tr(n,d,l,"auto"),p=m.apply({x:u,y:c}),bn(t,m.a,m.b,m.c,m.d,f+m.e-(p.x-m.e),h+m.f-(p.y-m.f)))),r?bn(t,r.a,r.b,r.c,r.d,r.e,r.f):(o||a)&&bn(t,1,0,0,1,o||0,a||0),t)},Wi=function(t,n,i,s,r,o){var a=n._gsap,l=a.harness,u=l&&l.aliases&&l.aliases[i],c=u&&u.indexOf(",")<0?u:i,f=t._pt=new Nf(t._pt,n,c,0,0,D_,0,a.set(n,c,t));f.u=We(a.get(n,c,o))||0,f.path=s,f.pp=r,t._props.push(c)},R_=function(t,n){return function(i){return t||n!==1?kf(i,t,n):i}},V_={version:"3.15.0",name:"motionPath",register:function(t,n,i){Rt=t,We=Rt.utils.getUnit,xr=Rt.utils.toArray,Ms=Rt.core.getStyleSaver,Rl=Rt.core.reverting||function(){},Nf=i},init:function(t,n,i){if(!Rt)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;(!(typeof n=="object"&&!n.style)||!n.path)&&(n={path:n});var s=[],r=n,o=r.path,a=r.autoRotate,l=r.unitX,u=r.unitY,c=r.x,f=r.y,h=o[0],d=R_(n.start,"end"in n?n.end:1),m,p;if(this.rawPaths=s,this.target=t,this.tween=i,this.styles=Ms&&Ms(t,"transform"),(this.rotate=a||a===0)&&(this.rOffset=parseFloat(a)||0,this.radians=!!n.useRadians,this.rProp=n.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=We(t._gsap.get(t,this.rProp))||0),Array.isArray(o)&&!("closed"in o)&&typeof h!="number"){for(p in h)!c&&~P_.indexOf(p)?c=p:!f&&~A_.indexOf(p)&&(f=p);c&&f?s.push(Vl(this,_n(_n([],o,c,0),o,f,1),t,c,f,d,n,l||We(o[0][c]),u||We(o[0][f]))):c=f=0;for(p in h)p!==c&&p!==f&&s.push(Vl(this,_n([],o,p,2),t,p,0,d,n,We(o[0][p])))}else m=d(zf(Ti(n.path),t,n)),Oe(m,n.resolution),s.push(m),Wi(this,t,n.x||"x",m,"x",n.unitX||"px"),Wi(this,t,n.y||"y",m,"y",n.unitY||"px");i.vars.immediateRender&&this.render(i.progress(),this)},render:function(t,n){var i=n.rawPaths,s=i.length,r=n._pt;if(n.tween._time||!Rl()){for(t>1?t=1:t<0&&(t=0);s--;)El(i[s],t,!s&&n.rotate,i[s]);for(;r;)r.set(r.t,r.p,r.path[r.pp]+r.u,r.d,t),r=r._next;n.rotate&&n.rSet(n.target,n.rProp,i[0].angle*(n.radians?C_:1)+n.rOffset+n.ru,n,t)}else n.styles.revert()},getLength:function(t){return Oe(Ti(t)).totalLength},sliceRawPath:kf,getRawPath:Ti,pointsToSegment:_r,stringToRawPath:zi,rawPathToString:Lf,transformRawPath:bn,getGlobalMatrix:tn,getPositionOnPath:El,cacheRawPathMeasurements:Oe,convertToPath:function(t,n){return xr(t).map(function(i){return p_(i,n!==!1)})},convertCoordinates:function(t,n,i){var s=tn(n,!0,!0).multiply(tn(t));return i?s.apply(i):s},getAlignMatrix:Tr,getRelativePosition:function(t,n,i,s){var r=Tr(t,n,i,s);return{x:r.e,y:r.f}},arrayToRawPath:function(t,n){n=n||{};var i=_n(_n([],t,n.x||"x",0),t,n.y||"y",1);return n.relative&&jf(i),[n.type==="cubic"?i:_r(i,n.curviness)]}};M_()&&Rt.registerPlugin(V_);export{O_ as A,I_ as L,V_ as M,r0 as a,U_ as b,z_ as c,W_ as d,$_ as e,F_ as f,qy as g,j_ as h,N_ as i,B_ as m,i0 as u};