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