1import{c as Er,r as S,j as h,L as wt,a as Dr,N as Rr,F as Nr,A as en,C as Lr,P as Br}from"./index-D8Nc8E2w.js";import{D as Ir}from"./DashboardMockup-UvZwNi8N.js";import{S as Fr,a as Or,B as Ur,U as Wr,R as Kr}from"./ResidentialCommercialCompare-CliWJX6w.js";import{N as Hr}from"./newspaper-an5bn28U.js";import{A as Mn}from"./arrow-up-right-BpUV7KNt.js";import{S as $r}from"./sparkles-BxY_IcOG.js";import{H as Gr}from"./house-BVCNZ0wW.js";import{B as _r}from"./briefcase-HG6Sx990.js";import{G as zr}from"./graduation-cap-BLFN71pr.js";import{S as Yr}from"./star-CJFOC-JM.js";import"./users-DyhYGLtA.js";import"./calendar-DKNOVbUE.js";import"./megaphone-DTggSggc.js";import"./chart-column-DmCehf9i.js";import"./dollar-sign-ea6UOBZc.js";import"./chevron-left-3rv8lkVu.js";import"./trending-up-BFnO41Ar.js";import"./send-DX78eBZZ.js";import"./file-text-B-TfictF.js";import"./message-square-Ds1Kp52d.js";import"./clock-CLp_8B-8.js";import"./building-2--w6MKXqB.js";const Xr=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],qr=Er("play",Xr),_s=S.createContext({});function Zr(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const Qr=typeof window<"u",Jr=Qr?S.useLayoutEffect:S.useEffect,nn=S.createContext(null);function sn(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 rn=()=>{};const rt={},zs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Ys=t=>typeof t=="object"&&t!==null,Xs=t=>/^0[^.\s]+$/u.test(t);function qs(t){let e;return()=>(e===void 0&&(e=t()),e)}const G=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 sn(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 o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const K=t=>t*1e3,$=t=>t/1e3,Zs=(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,to=1e-7,eo=12;function no(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=Qs(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>to&&++a<eo);return r}function Ft(t,e,n,s){if(t===e&&n===s)return G;const i=o=>no(o,0,1,t,n);return o=>o===0||o===1?o:Qs(i(o),e,s)}const Js=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ti=t=>e=>1-t(1-e),ei=Ft(.33,1.53,.69,.99),an=ti(ei),ni=Js(an),si=t=>t>=1?1:(t*=2)<1?.5*an(t):.5*(2-Math.pow(2,-10*(t-1))),ln=t=>1-Math.sin(Math.acos(t)),ii=ti(ln),ri=Js(ln),so=Ft(.42,0,1,1),io=Ft(0,0,.58,1),oi=Ft(.42,0,.58,1),ro=t=>Array.isArray(t)&&typeof t[0]!="number",ai=t=>Array.isArray(t)&&typeof t[0]=="number",oo={linear:G,easeIn:so,easeInOut:oi,easeOut:io,circIn:ln,circInOut:ri,circOut:ii,backIn:an,backInOut:ni,backOut:ei,anticipate:si},ao=t=>typeof t=="string",En=t=>{if(ai(t)){rn(t.length===4);const[e,n,s,i]=t;return Ft(e,n,s,i)}else if(ao(t))return oo[t];return t},Wt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function lo(t){let e=new Set,n=new Set,s=!1,i=!1;const o=new WeakSet;let r={delta:0,timestamp:0,isProcessing:!1};function a(l){o.has(l)&&(c.schedule(l),t()),l(r)}const c={schedule:(l,u=!1,d=!1)=>{const p=d&&s?e:n;return u&&o.add(l),p.add(l),l},cancel:l=>{n.delete(l),o.delete(l)},process:l=>{if(r=l,s){i=!0;return}s=!0;const u=e;e=n,n=u,e.forEach(a),e.clear(),s=!1,i&&(i=!1,c.process(l))}};return c}const co=40;function li(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=Wt.reduce((v,T)=>(v[T]=lo(o),v),{}),{setup:a,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=r,g=()=>{const v=rt.useManualTiming,T=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,co),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(g))},y=()=>{n=!0,s=!0,i.isProcessing||t(g)};return{schedule:Wt.reduce((v,T)=>{const V=r[T];return v[T]=(M,C=!1,A=!1)=>(n||y(),V.schedule(M,C,A)),v},{}),cancel:v=>{for(let T=0;T<Wt.length;T++)r[Wt[T]].cancel(v)},state:i,steps:r}}const{schedule:j,cancel:ot,state:I,steps:fe}=li(typeof requestAnimationFrame<"u"?requestAnimationFrame:G,!0);let Gt;function uo(){Gt=void 0}
vendor: 120,145 bytes, line 1
1const O={now:()=>(Gt===void 0&&O.set(I.isProcessing||rt.useManualTiming?I.timestamp:performance.now()),Gt),set:t=>{Gt=t,queueMicrotask(uo)}},ci=t=>e=>typeof e=="string"&&e.startsWith(t),ui=ci("--"),ho=ci("var(--"),cn=t=>ho(t)?fo.test(t.split("/*")[0].trim()):!1,fo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Dn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Pt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Nt={...Pt,transform:t=>tt(0,1,t)},Kt={...Pt,default:1},jt=t=>Math.round(t*1e5)/1e5,un=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mo(t){return t==null}const po=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,dn=(t,e)=>n=>!!(typeof n=="string"&&po.test(n)&&n.startsWith(t)||e&&!mo(n)&&Object.prototype.hasOwnProperty.call(n,e)),di=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(un);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},go=t=>tt(0,255,t),me={...Pt,transform:t=>Math.round(go(t))},ht={test:dn("rgb","red"),parse:di("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+me.transform(t)+", "+me.transform(e)+", "+me.transform(n)+", "+jt(Nt.transform(s))+")"};function yo(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 Me={test:dn("#"),parse:yo,transform:ht.transform},Ot=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=Ot("deg"),J=Ot("%"),w=Ot("px"),xo=Ot("vh"),vo=Ot("vw"),Rn={...J,parse:t=>J.parse(t)/100,transform:t=>J.transform(t*100)},xt={test:dn("hsl","hue"),parse:di("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+J.transform(jt(e))+", "+J.transform(jt(n))+", "+jt(Nt.transform(s))+")"},R={test:t=>ht.test(t)||Me.test(t)||xt.test(t),parse:t=>ht.test(t)?ht.parse(t):xt.test(t)?xt.parse(t):Me.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):xt.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},bo=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wo(t){return isNaN(t)&&typeof t=="string"&&(t.match(un)?.length||0)+(t.match(bo)?.length||0)>0}const hi="number",fi="color",To="var",So="var(",Nn="${}",Po=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Tt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Po,c=>(R.test(c)?(s.color.push(o),i.push(fi),n.push(R.parse(c))):c.startsWith(So)?(s.var.push(o),i.push(To),n.push(c)):(s.number.push(o),i.push(hi),n.push(parseFloat(c))),++o,Nn)).split(Nn);return{values:n,split:a,indexes:s,types:i}}function Ao(t){return Tt(t).values}function mi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===hi?i+=jt(s[o]):r===fi?i+=R.transform(s[o]):i+=s[o]}return i}}function Vo(t){return mi(Tt(t))}const Co=t=>typeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t,ko=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Co(t);function jo(t){const e=Tt(t);return mi(e)(e.values.map((s,i)=>ko(s,e.split[i])))}const Y={test:wo,parse:Ao,createTransformer:Vo,getAnimatableNone:jo};function pe(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 Mo({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=pe(c,a,t+1/3),o=pe(c,a,t),r=pe(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function te(t,e){return n=>n>0?e:t}const k=(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)},Eo=[Me,ht,xt],Do=t=>Eo.find(e=>e.test(t));function Ln(t){const e=Do(t);if(!e)return!1;let n=e.parse(t);return e===xt&&(n=Mo(n)),n}const Bn=(t,e)=>{const n=Ln(t),s=Ln(e);if(!n||!s)return te(t,e);const i={...n};return o=>(i.red=ge(n.red,s.red,o),i.green=ge(n.green,s.green,o),i.blue=ge(n.blue,s.blue,o),i.alpha=k(n.alpha,s.alpha,o),ht.transform(i))},Ee=new Set(["none","hidden"]);function Ro(t,e){return Ee.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function No(t,e){return n=>k(t,e,n)}function hn(t){return typeof t=="number"?No:typeof t=="string"?cn(t)?te:R.test(t)?Bn:Io:Array.isArray(t)?pi:typeof t=="object"?R.test(t)?Bn:Lo:te}function pi(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>hn(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Lo(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 o in s)n[o]=s[o](i);return n}}function Bo(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Io=(t,e)=>{const n=Y.createTransformer(e),s=Tt(t),i=Tt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ee.has(t)&&!i.values.length||Ee.has(e)&&!s.values.length?Ro(t,e):It(pi(Bo(s,i),i.values),n):te(t,e)};function gi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?k(t,e,n):hn(t)(t,e)}const Fo=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>j.update(e,n),stop:()=>ot(e),now:()=>I.isProcessing?I.timestamp:O.now()}},yi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},ee=2e4;function fn(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<ee;)e+=n,s=t.next(e);return e>=ee?1/0:e}function Oo(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(fn(s),ee);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:$(i)}}const E={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 De(t,e){return t*Math.sqrt(1-e*e)}const Uo=12;function Wo(t,e,n){let s=n;for(let i=1;i<Uo;i++)s=s-t(s)/e(s);return s}const ye=.001;function Ko({duration:t=E.duration,bounce:e=E.bounce,velocity:n=E.velocity,mass:s=E.mass}){let i,o,r=1-e;r=tt(E.minDamping,E.maxDamping,r),t=tt(E.minDuration,E.maxDuration,$(t)),r<1?(i=l=>{const u=l*r,d=u*t,f=u-n,p=De(l,r),m=Math.exp(-d);return ye-f/p*m},o=l=>{const d=l*r*t,f=d*n+n,p=Math.pow(r,2)*Math.pow(l,2)*t,m=Math.exp(-d),g=De(Math.pow(l,2),r);return(-i(l)+ye>0?-1:1)*((f-p)*m)/g}):(i=l=>{const u=Math.exp(-l*t),d=(l-n)*t+1;return-ye+u*d},o=l=>{const u=Math.exp(-l*t),d=(n-l)*(t*t);return u*d});const a=5/t,c=Wo(i,o,a);if(t=K(t),isNaN(c))return{stiffness:E.stiffness,damping:E.damping,duration:t};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:r*2*Math.sqrt(s*l),duration:t}}}const Ho=["duration","bounce"],$o=["stiffness","damping","mass"];function In(t,e){return e.some(n=>t[n]!==void 0)}function Go(t){let e={velocity:E.velocity,stiffness:E.stiffness,damping:E.damping,mass:E.mass,isResolvedFromDuration:!1,...t};if(!In(t,$o)&&In(t,Ho))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*tt(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:E.mass,stiffness:i,damping:o}}else{const n=Ko({...t,velocity:0});e={...e,...n,mass:E.mass},e.isResolvedFromDuration=!0}return e}function ne(t=E.visualDuration,e=E.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Go({...n,velocity:-$(n.velocity||0)}),m=f||0,g=l/(2*Math.sqrt(c*u)),y=r-o,x=$(Math.sqrt(c/u)),b=Math.abs(y)<5;s||(s=b?E.restSpeed.granular:E.restSpeed.default),i||(i=b?E.restDelta.granular:E.restDelta.default);let v,T,V,M,C,A;if(g<1)V=De(x,g),M=(m+g*x*y)/V,v=P=>{const D=Math.exp(-g*x*P);return r-D*(M*Math.sin(V*P)+y*Math.cos(V*P))},C=g*x*M+y*V,A=g*x*y-M*V,T=P=>Math.exp(-g*x*P)*(C*Math.sin(V*P)+A*Math.cos(V*P));else if(g===1){v=D=>r-Math.exp(-x*D)*(y+(m+x*y)*D);const P=m+x*y;T=D=>Math.exp(-x*D)*(x*P*D-m)}else{const P=x*Math.sqrt(g*g-1);v=X=>{const et=Math.exp(-g*x*X),q=Math.min(P*X,300);return r-et*((m+g*x*y)*Math.sinh(q)+P*y*Math.cosh(q))/P};const D=(m+g*x*y)/P,W=g*x*D-y*P,lt=g*x*y-D*P;T=X=>{const et=Math.exp(-g*x*X),q=Math.min(P*X,300);return et*(W*Math.sinh(q)+lt*Math.cosh(q))}}const L={calculatedDuration:p&&d||null,velocity:P=>K(T(P)),next:P=>{if(!p&&g<1){const W=Math.exp(-g*x*P),lt=Math.sin(V*P),X=Math.cos(V*P),et=r-W*(M*lt+y*X),q=K(W*(C*lt+A*X));return a.done=Math.abs(q)<=s&&Math.abs(r-et)<=i,a.value=a.done?r:et,a}const D=v(P);if(p)a.done=P>=d;else{const W=K(T(P));a.done=Math.abs(W)<=s&&Math.abs(r-D)<=i}return a.value=a.done?r:D,a},toString:()=>{const P=Math.min(fn(L),ee),D=yi(W=>L.next(P*W).value,P,30);return P+"ms "+D},toTransition:()=>{}};return L}ne.applyToOptions=t=>{const e=Oo(t,100,ne);return t.ease=e.ease,t.duration=K(e.duration),t.type="keyframes",t};const _o=5;function xi(t,e,n){const s=Math.max(e-_o,0);return Zs(n-t(s),e-s)}function Re({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=t[0],f={done:!1,value:d},p=A=>a!==void 0&&A<a||c!==void 0&&A>c,m=A=>a===void 0?c:c===void 0||Math.abs(a-A)<Math.abs(c-A)?a:c;let g=n*e;const y=d+g,x=r===void 0?y:r(y);x!==y&&(g=x-d);const b=A=>-g*Math.exp(-A/s),v=A=>x+b(A),T=A=>{const L=b(A),P=v(A);f.done=Math.abs(L)<=l,f.value=f.done?x:P};let V,M;const C=A=>{p(f.value)&&(V=A,M=ne({keyframes:[f.value,m(f.value)],velocity:xi(v,A,f.value),damping:i,stiffness:o,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:A=>{let L=!1;return!M&&V===void 0&&(L=!0,T(A),C(A)),V!==void 0&&A>=V?M.next(A-V):(!L&&T(A),f)}}}function zo(t,e,n){const s=[],i=n||rt.mix||gi,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||G:e;a=It(c,a)}s.push(a)}return s}function Yo(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(rn(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=zo(e,s,i),c=a.length,l=u=>{if(r&&u<t[0])return e[0];let d=0;if(c>1)for(;d<t.length-2&&!(u<t[d+1]);d++);const f=Rt(t[d],t[d+1],u);return a[d](f)};return n?u=>l(tt(t[0],t[o-1],u)):l}function Xo(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Rt(0,e,s);t.push(k(n,1,i))}}function qo(t){const e=[0];return Xo(e,t.length-1),e}function Zo(t,e){return t.map(n=>n*e)}function Qo(t,e){return t.map(()=>e||oi).splice(0,t.length-1)}function Mt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ro(s)?s.map(En):En(s),o={done:!1,value:e[0]},r=Zo(n&&n.length===e.length?n:qo(e),t),a=Yo(r,e,{ease:Array.isArray(i)?i:Qo(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const Jo=t=>t!==null;function ce(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(Jo),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const ta={decay:Re,inertia:Re,tween:Mt,keyframes:Mt,spring:ne};function vi(t){typeof t.type=="string"&&(t.type=ta[t.type])}class mn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const ea=t=>t/100;class se extends mn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==O.now()&&this.tick(O.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;vi(e);const{type:n=Mt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||Mt;c!==Mt&&typeof a[0]!="number"&&(this.mixKeyframes=It(ea,gi(a[0],a[1])),a=[0,100]);const l=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),l.calculatedDuration===null&&(l.calculatedDuration=fn(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=l}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:g,finalKeyframe:y}=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 x=this.currentTime-l*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?x<0:x>i;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,T=s;if(d){const A=Math.min(this.currentTime,i)/a;let L=Math.floor(A),P=A%1;!P&&A>=1&&(P=1),P===1&&L--,L=Math.min(L,d+1),L%2&&(f==="reverse"?(P=1-P,p&&(P-=p/a)):f==="mirror"&&(T=r)),v=tt(0,1,P)*a}let V;b?(this.delayState.value=u[0],V=this.delayState):V=T.next(v),o&&!b&&(V.value=o(V.value));let{done:M}=V;!b&&c!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return C&&m!==Re&&(V.value=ce(u,this.options,y,this.speed)),g&&g(V.value),C&&this.finish(),V}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 xi(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(){if(this.isStopped)return;const{driver:e=Fo,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(O.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function na(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const ft=t=>t*180/Math.PI,Ne=t=>{const e=ft(Math.atan2(t[1],t[0]));return Le(e)},sa={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ne,rotateZ:Ne,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Le=t=>(t=t%360,t<0&&(t+=360),t),Fn=Ne,On=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Un=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ia={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:On,scaleY:Un,scale:t=>(On(t)+Un(t))/2,rotateX:t=>Le(ft(Math.atan2(t[6],t[5]))),rotateY:t=>Le(ft(Math.atan2(-t[2],t[0]))),rotateZ:Fn,rotate:Fn,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(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=ia,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=sa,i=a}if(!i)return Be(e);const o=s[e],r=i[1].split(",").map(oa);return typeof o=="function"?o(r):r[o]}const ra=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Ie(n,e)};function oa(t){return parseFloat(t.trim())}const At=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Vt=new Set([...At,"pathRotation"]),Wn=t=>t===Pt||t===w,aa=new Set(["x","y","z"]),la=At.filter(t=>!aa.has(t));function ca(t){const e=[];return la.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 mt=new Set;let Fe=!1,Oe=!1,Ue=!1;function bi(){if(Oe){const t=Array.from(mt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=ca(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Oe=!1,Fe=!1,mt.forEach(t=>t.complete(Ue)),mt.clear()}function wi(){mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Oe=!0)})}function ua(){Ue=!0,wi(),bi(),Ue=!1}class pn{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(mt.add(this),Fe||(Fe=!0,j.read(wi),j.resolveKeyframes(bi))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}na(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),mt.delete(this)}cancel(){this.state==="scheduled"&&(mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const da=t=>t.startsWith("--");function Ti(t,e,n){da(e)?t.style.setProperty(e,n):t.style[e]=n}const ha={};function Si(t,e){const n=qs(t);return()=>ha[e]??n()}const fa=Si(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Pi=Si(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),kt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Kn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kt([0,.65,.55,1]),circOut:kt([.55,0,1,.45]),backIn:kt([.31,.01,.66,-.59]),backOut:kt([.33,1.53,.69,.99])};function Ai(t,e){if(t)return typeof t=="function"?Pi()?yi(t,e):"ease-out":ai(t)?kt(t):Array.isArray(t)?t.map(n=>Ai(n,e)||Kn.easeOut):Kn[t]}function ma(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},l=void 0){const u={[e]:n};c&&(u.offset=c);const d=Ai(a,i);Array.isArray(d)&&(u.easing=d);const f={delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return l&&(f.pseudoElement=l),t.animate(u,f)}function Vi(t){return typeof t=="function"&&"applyToOptions"in t}function pa({type:t,...e}){return Vi(t)&&Pi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Ci extends mn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,rn(typeof e.type!="string");const l=pa(e);this.animation=ma(n,s,i,l,o),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const u=ce(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(u),Ti(n,s,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return $(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}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&fa()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),G):i(this)}}const ki={anticipate:si,backInOut:ni,circInOut:ri};function ga(t){return t in ki}function ya(t){typeof t.ease=="string"&&ga(t.ease)&&(t.ease=ki[t.ease])}const xe=10;class xa extends Ci{constructor(e){ya(e),vi(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:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new se({...r,autoplay:!1}),c=Math.max(xe,O.now()-this.startTime),l=tt(0,xe,c-xe),u=a.sample(c).value,{name:d}=this.options;o&&d&&Ti(o,d,u),n.setWithVelocity(a.sample(Math.max(0,c-l)).value,u,l),a.stop()}}const Hn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Y.test(t)||t==="0")&&!t.startsWith("url("));function va(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 ba(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Hn(i,e),a=Hn(o,e);return!r||!a?!1:va(t)||(n==="spring"||Vi(n))&&s}function We(t){t.duration=0,t.type="keyframes"}const ji=new Set(["opacity","clipPath","filter","transform"]),wa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Ta(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&wa.test(t[e]))return!0;return!1}const Sa=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Pa=qs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Aa(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=e.owner.getProps();return Pa()&&n&&(ji.has(n)||Sa.has(n)&&Ta(a))&&(n!=="transform"||!u)&&!l&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Va=40;class Ca extends mn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:l,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=O.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:l,element:u,...d},p=u?.KeyframeResolver||pn;this.keyframeResolver=new p(a,(m,g,y)=>this.onKeyframesResolved(m,g,f,!y),c,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:l,onUpdate:u}=s;this.resolvedAt=O.now();let d=!0;ba(e,o,r,a)||(d=!1,(rt.instantAnimations||!c)&&u?.(ce(e,s,n)),e[0]=e[e.length-1],We(s),s.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Va?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=d&&!l&&Aa(p),g=p.motionValue?.owner?.current;let y;if(m)try{y=new xa({...p,element:g})}catch{y=new se(p)}else y=new se(p);y.finished.then(()=>{this.notifyFinished()}).catch(G),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ua()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function Mi(t,e,n,s=0,i=1){const o=Array.from(t).sort((l,u)=>l.sortNodePosition(u)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const $n=30,ka=t=>!isNaN(parseFloat(t));class ja{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=O.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=O.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ka(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(),j.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=O.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$n)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$n);return Zs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function St(t,e){return new ja(t,e)}function Ei(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function gn(t,e){const n=t?.[e]??t?.default??t;return n!==t?Ei(n,t):n}const Ma={type:"spring",stiffness:500,damping:25,restSpeed:10},Ea=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Da={type:"keyframes",duration:.8},Ra={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Na=(t,{keyframes:e})=>e.length>2?Da:Vt.has(t)?t.startsWith("scale")?Ea(e[1]):Ma:Ra,La=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Ba(t){for(const e in t)if(!La.has(e))return!0;return!1}const yn=(t,e,n,s={},i,o)=>r=>{const a=gn(s,t)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-K(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Ba(a)||Object.assign(u,Na(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 d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(We(u),u.delay===0&&(d=!0)),(rt.instantAnimations||rt.skipAnimations||i?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,We(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!o&&e.get()!==void 0){const f=ce(u.keyframes,a);if(f!==void 0){j.update(()=>{u.onUpdate(f),u.onComplete()});return}}return a.isSync?new se(u):new Ca(u)},Ia=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Fa(t){const e=Ia.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function Di(t,e,n=1){const[s,i]=Fa(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return zs(r)?parseFloat(r):r}return cn(i)?Di(i,e,n+1):i}function Gn(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function xn(t,e,n,s){if(typeof e=="function"){const[i,o]=Gn(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Gn(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function pt(t,e,n){const s=t.getProps();return xn(s,e,n!==void 0?n:s.custom,t)}const Ri=new Set(["width","height","top","left","right","bottom",...At]),Ke=t=>Array.isArray(t);function Oa(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,St(n))}function Ua(t){return Ke(t)?t[t.length-1]||0:t}function Wa(t,e){const n=pt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ua(o[r]);Oa(t,r,a)}}const F=t=>!!(t&&t.getVelocity);function Ka(t){return!!(F(t)&&t.add)}function He(t,e){const n=t.getValue("willChange");if(Ka(n))return n.add(e);if(!n&&rt.WillChange){const s=new rt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function vn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Ha="framerAppearId",Ni="data-"+vn(Ha);function Li(t){return t.props[Ni]}function $a({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Bi(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?Ei(o,c):c;const l=o?.reduceMotion,u=o?.skipAnimations;s&&(o=s);const d=[],f=i&&t.animationState&&t.animationState.getState()[i],p=o?.path;p&&p.animateVisualElement(t,a,o,n,d);for(const m in a){const g=t.getValue(m,t.latestValues[m]??null),y=a[m];if(y===void 0||f&&$a(f,m))continue;const x={delay:n,...gn(o||{},m)};u&&(x.skipAnimations=!0);const b=g.get();if(b!==void 0&&!g.isAnimating()&&!Array.isArray(y)&&y===b&&!x.velocity){j.update(()=>g.set(y));continue}let v=!1;if(window.MotionHandoffAnimation){const M=Li(t);if(M){const C=window.MotionHandoffAnimation(M,m,j);C!==null&&(x.startTime=C,v=!0)}}He(t,m);const T=l??t.shouldReduceMotion;g.start(yn(m,g,y,T&&Ri.has(m)?{type:!1}:x,t,v));const V=g.animation;V&&d.push(V)}if(r){const m=()=>j.update(()=>{r&&Wa(t,r)});d.length?Promise.all(d).then(m):m()}return d}function $e(t,e,n={}){const s=pt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(Bi(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:d}=i;return Ga(t,e,c,l,u,d,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,l]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>l())}else return Promise.all([o(),r(n.delay)])}function Ga(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push($e(c,e,{...r,delay:n+(typeof s=="function"?0:s)+Mi(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function _a(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>$e(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=$e(t,e,n);else{const i=typeof e=="function"?pt(t,e,n.custom):e;s=Promise.all(Bi(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const za={test:t=>t==="auto",parse:t=>t},Ii=t=>e=>e.test(t),Fi=[Pt,w,J,nt,vo,xo,za],_n=t=>Fi.find(Ii(t));function Ya(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Xs(t):!0}const Xa=new Set(["brightness","contrast","saturate","opacity"]);function qa(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(un)||[];if(!s)return t;const i=n.replace(s,"");let o=Xa.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const Za=/\b([a-z-]*)\(.*?\)/gu,Ge={...Y,getAnimatableNone:t=>{const e=t.match(Za);return e?e.map(qa).join(" "):t}},_e={...Y,getAnimatableNone:t=>{const e=Y.parse(t);return Y.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},zn={...Pt,transform:Math.round},Qa={rotate:nt,pathRotation:nt,rotateX:nt,rotateY:nt,rotateZ:nt,scale:Kt,scaleX:Kt,scaleY:Kt,scaleZ:Kt,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:Nt,originX:Rn,originY:Rn,originZ:w},ie={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,...Qa,zIndex:zn,fillOpacity:Nt,strokeOpacity:Nt,numOctaves:zn},Ja={...ie,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:Ge,WebkitFilter:Ge,mask:_e,WebkitMask:_e},Oi=t=>Ja[t],tl=new Set([Ge,_e]);function Ui(t,e){let n=Oi(t);return tl.has(n)||(n=Y),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const el=new Set(["auto","none","0"]);function nl(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!el.has(o)&&Tt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Ui(n,i)}class sl extends pn{constructor(e,n,s,i,o){super(e,n,s,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let u=0;u<e.length;u++){let d=e[u];if(typeof d=="string"&&(d=d.trim(),cn(d))){const f=Di(d,n.current);f!==void 0&&(e[u]=f),u===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!Ri.has(s)||e.length!==2)return;const[i,o]=e,r=_n(i),a=_n(o),c=Dn(i),l=Dn(o);if(c!==l&&it[s]){this.needsMeasurement=!0;return}if(r!==a)if(Wn(r)&&Wn(a))for(let u=0;u<e.length;u++){const d=e[u];typeof d=="string"&&(e[u]=parseFloat(d))}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||Ya(e[i]))&&s.push(i);s.length&&nl(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(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=it[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}const bn=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Wi(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const ze=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function il(t){return Ys(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:wn}=li(queueMicrotask,!1),z={x:!1,y:!1};function Ki(){return z.x||z.y}function rl(t){return t==="x"||t==="y"?z[t]?null:(z[t]=!0,()=>{z[t]=!1}):z.x||z.y?null:(z.x=z.y=!0,()=>{z.x=z.y=!1})}function Hi(t,e){const n=Wi(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function ol(t){return!(t.pointerType==="touch"||Ki())}function al(t,e,n={}){const[s,i,o]=Hi(t,n);return s.forEach(r=>{let a=!1,c=!1,l;const u=()=>{r.removeEventListener("pointerleave",m)},d=y=>{l&&(l(y),l=void 0),u()},f=y=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),c&&(c=!1,d(y))},p=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},m=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}d(y)}},g=y=>{if(!ol(y))return;c=!1;const x=e(r,y);typeof x=="function"&&(l=x,r.addEventListener("pointerleave",m,i))};r.addEventListener("pointerenter",g,i),r.addEventListener("pointerdown",p,i)}),o}const $i=(t,e)=>e?t===e?!0:$i(t,e.parentElement):!1,Tn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,ll=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function cl(t){return ll.has(t.tagName)||t.isContentEditable===!0}const ul=new Set(["INPUT","SELECT","TEXTAREA"]);function dl(t){return ul.has(t.tagName)||t.isContentEditable===!0}const _t=new WeakSet;function Yn(t){return e=>{e.key==="Enter"&&t(e)}}function ve(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const hl=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Yn(()=>{if(_t.has(n))return;ve(n,"down");const i=Yn(()=>{ve(n,"up")}),o=()=>ve(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Xn(t){return Tn(t)&&!Ki()}const qn=new WeakSet;function fl(t,e,n={}){const[s,i,o]=Hi(t,n),r=a=>{const c=a.currentTarget;if(!Xn(a)||qn.has(a))return;_t.add(c),n.stopPropagation&&qn.add(a);const l=e(c,a),u={...i,capture:!0},d=(m,g)=>{window.removeEventListener("pointerup",f,u),window.removeEventListener("pointercancel",p,u),_t.has(c)&&_t.delete(c),Xn(m)&&typeof l=="function"&&l(m,{success:g})},f=m=>{d(m,c===window||c===document||n.useGlobalTarget||$i(c,m.target))},p=m=>{d(m,!1)};window.addEventListener("pointerup",f,u),window.addEventListener("pointercancel",p,u)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),il(a)&&(a.addEventListener("focus",l=>hl(l,i)),!cl(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function Sn(t){return Ys(t)&&"ownerSVGElement"in t}const zt=new WeakMap;let Yt;const Gi=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Sn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],ml=Gi("inline","width","offsetWidth"),pl=Gi("block","height","offsetHeight");function gl({target:t,borderBoxSize:e}){zt.get(t)?.forEach(n=>{n(t,{get width(){return ml(t,e)},get height(){return pl(t,e)}})})}function yl(t){t.forEach(gl)}function xl(){typeof ResizeObserver>"u"||(Yt=new ResizeObserver(yl))}function vl(t,e){Yt||xl();const n=Wi(t);return n.forEach(s=>{let i=zt.get(s);i||(i=new Set,zt.set(s,i)),i.add(e),Yt?.observe(s)}),()=>{n.forEach(s=>{const i=zt.get(s);i?.delete(e),i?.size||Yt?.unobserve(s)})}}const Xt=new Set;let vt;function bl(){vt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Xt.forEach(e=>e(t))},window.addEventListener("resize",vt)}function wl(t){return Xt.add(t),vt||bl(),()=>{Xt.delete(t),!Xt.size&&typeof vt=="function"&&(window.removeEventListener("resize",vt),vt=void 0)}}function Zn(t,e){return typeof t=="function"?wl(t):vl(t,e)}function Tl(t){return Sn(t)&&t.tagName==="svg"}const Sl=[...Fi,R,Y],Pl=t=>Sl.find(Ii(t)),Qn=()=>({translate:0,scale:1,origin:0,originPoint:0}),bt=()=>({x:Qn(),y:Qn()}),Jn=()=>({min:0,max:0}),N=()=>({x:Jn(),y:Jn()}),Al=new WeakMap;function ue(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Lt(t){return typeof t=="string"||Array.isArray(t)}const Pn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],An=["initial",...Pn];function de(t){return ue(t.animate)||An.some(e=>Lt(t[e]))}function _i(t){return!!(de(t)||t.variants)}function Vl(t,e,n){for(const s in e){const i=e[s],o=n[s];if(F(i))t.addValue(s,i);else if(F(o))t.addValue(s,St(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,St(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Ye={current:null},zi={current:!1},Cl=typeof window<"u";function kl(){if(zi.current=!0,!!Cl)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Ye.current=t.matches;t.addEventListener("change",e),e()}else Ye.current=!1}const ts=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let re={};function Yi(t){re=t}function jl(){return re}class Ml{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){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 p=O.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,j.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=de(n),this.isVariantNode=_i(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const m=f[p];l[p]!==void 0&&F(m)&&m.set(l[p])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Al.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(zi.current||kl(),this.shouldReduceMotion=Ye.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),ot(this.notifyUpdate),ot(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&ji.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:l,duration:u}=n.accelerate,d=new Ci({element:this.current,name:e,keyframes:a,times:c,ease:l,duration:K(u)}),f=r(d);this.valueSubscriptions.set(e,()=>{f(),d.cancel()});return}const s=Vt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&j.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o&&o()})}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 re){const n=re[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):N()}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<ts.length;s++){const i=ts[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Vl(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=St(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"&&(zs(s)||Xs(s))?s=parseFloat(s):!Pl(s)&&Y.test(n)&&(s=Ui(e,n)),this.setBaseTarget(e,F(s)?s.get():s)),F(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=xn(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!F(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new on),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){wn.render(this.render)}}class Xi extends Ml{constructor(){super(...arguments),this.KeyframeResolver=sl}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;F(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class at{constructor(e){this.isMounted=!1,this.node=e}update(){}}function qi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function El({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Dl(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 be(t){return t===void 0||t===1}function Xe({scale:t,scaleX:e,scaleY:n}){return!be(t)||!be(e)||!be(n)}function dt(t){return Xe(t)||Zi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Zi(t){return es(t.x)||es(t.y)}function es(t){return t&&t!=="0%"}function oe(t,e,n){const s=t-n,i=e*s;return n+i}function ns(t,e,n,s,i){return i!==void 0&&(t=oe(t,i,s)),oe(t,n,s)+e}function qe(t,e=0,n=1,s,i){t.min=ns(t.min,e,n,s,i),t.max=ns(t.max,e,n,s,i)}function Qi(t,{x:e,y:n}){qe(t.x,e.translate,e.scale,e.originPoint),qe(t.y,n.translate,n.scale,n.originPoint)}const ss=.999999999999,is=1.0000000000001;function Rl(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(Q(t.x,-o.scroll.offset.x),Q(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Qi(t,r)),s&&dt(o.latestValues)&&qt(t,o.latestValues,o.layout?.layoutBox))}e.x<is&&e.x>ss&&(e.x=1),e.y<is&&e.y>ss&&(e.y=1)}function Q(t,e){t.min+=e,t.max+=e}function rs(t,e,n,s,i=.5){const o=k(t.min,t.max,i);qe(t,e,n,o,s)}function os(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function qt(t,e,n){const s=n??t;rs(t.x,os(e.x,s.x),e.scaleX,e.scale,e.originX),rs(t.y,os(e.y,s.y),e.scaleY,e.scale,e.originY)}function Ji(t,e){return qi(Dl(t.getBoundingClientRect(),e))}function Nl(t,e,n){const s=Ji(t,n),{scroll:i}=e;return i&&(Q(s.x,i.offset.x),Q(s.y,i.offset.y)),s}const Ll={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bl=At.length;function Il(t,e,n){let s="",i=!0;for(let r=0;r<Bl;r++){const a=At[r],c=t[a];if(c===void 0)continue;let l=!0;if(typeof c=="number")l=c===(a.startsWith("scale")?1:0);else{const u=parseFloat(c);l=a.startsWith("scale")?u===1:u===0}if(!l||n){const u=ze(c,ie[a]);if(!l){i=!1;const d=Ll[a]||a;s+=`${d}(${u}) `}n&&(e[a]=u)}}const o=t.pathRotation;return o&&(i=!1,s+=`rotate(${ze(o,ie.pathRotation)}) `),s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Vn(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const l=e[c];if(Vt.has(c)){r=!0;continue}else if(ui(c)){i[c]=l;continue}else{const u=ze(l,ie[c]);c.startsWith("origin")?(a=!0,o[c]=u):s[c]=u}}if(e.transform||(r||n?s.transform=Il(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=o;s.transformOrigin=`${c} ${l} ${u}`}}function tr(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function as(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Ct={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=as(t,e.target.x),s=as(t,e.target.y);return`${n}% ${s}%`}},Fl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=Y.parse(t);if(i.length>5)return s;const o=Y.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const l=k(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=l),typeof i[3+r]=="number"&&(i[3+r]/=l),o(i)}},Ze={borderRadius:{...Ct,applyTo:[...bn]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:Fl};function er(t,{layout:e,layoutId:n}){return Vt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ze[t]||t==="opacity")}function Cn(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(F(s[r])||i&&F(i[r])||er(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Ol(t){return window.getComputedStyle(t)}class Ul extends Xi{constructor(){super(...arguments),this.type="html",this.renderInstance=tr}readValueFromInstance(e,n){if(Vt.has(n))return this.projection?.isProjecting?Be(n):ra(e,n);{const s=Ol(e),i=(ui(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Ji(e,n)}build(e,n,s){Vn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Cn(e,n,s)}}const Wl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Kl={offset:"strokeDashoffset",array:"strokeDasharray"};function Hl(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?Wl:Kl;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const $l=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function nr(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,l,u){if(Vn(t,a,l),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:f}=t;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const p of $l)d[p]!==void 0&&(f[p]=d[p],delete d[p]);e!==void 0&&(d.x=e),n!==void 0&&(d.y=n),s!==void 0&&(d.scale=s),i!==void 0&&Hl(d,i,o,r,!1)}const sr=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"]),ir=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Gl(t,e,n,s){tr(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(sr.has(i)?i:vn(i),e.attrs[i])}function rr(t,e,n){const s=Cn(t,e,n);for(const i in t)if(F(t[i])||F(e[i])){const o=At.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class _l extends Xi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=N}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Vt.has(n)){const s=Oi(n);return s&&s.default||0}return n=sr.has(n)?n:vn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return rr(e,n,s)}build(e,n,s){nr(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Gl(e,n,s,i)}mount(e){this.isSVGTag=ir(e.tagName),super.mount(e)}}const zl=An.length;function or(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?or(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<zl;n++){const s=An[n],i=t.props[s];(Lt(i)||i===!1)&&(e[s]=i)}return e}function ar(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 Yl=[...Pn].reverse(),Xl=Pn.length;function ql(t){return e=>Promise.all(e.map(({animation:n,options:s})=>_a(t,n,s)))}function Zl(t){let e=ql(t),n=ls(),s=!0,i=!1;const o=l=>(u,d)=>{const f=pt(t,d,l==="exit"?t.presenceContext?.custom:void 0);if(f){const{transition:p,transitionEnd:m,...g}=f;u={...u,...g,...m}}return u};function r(l){e=l(t)}function a(l){const{props:u}=t,d=or(t.parent)||{},f=[],p=new Set;let m={},g=1/0;for(let x=0;x<Xl;x++){const b=Yl[x],v=n[b],T=u[b]!==void 0?u[b]:d[b],V=Lt(T),M=b===l?v.isActive:null;M===!1&&(g=x);let C=T===d[b]&&T!==u[b]&&V;if(C&&(s||i)&&t.manuallyAnimateOnMount&&(C=!1),v.protectedKeys={...m},!v.isActive&&M===null||!T&&!v.prevProp||ue(T)||typeof T=="boolean")continue;if(b==="exit"&&v.isActive&&M!==!0){v.prevResolvedValues&&(m={...m,...v.prevResolvedValues});continue}const A=Ql(v.prevProp,T);let L=A||b===l&&v.isActive&&!C&&V||x>g&&V,P=!1;const D=Array.isArray(T)?T:[T];let W=D.reduce(o(b),{});M===!1&&(W={});const{prevResolvedValues:lt={}}=v,X={...lt,...W},et=B=>{L=!0,p.has(B)&&(P=!0,p.delete(B)),v.needsAnimating[B]=!0;const H=t.getValue(B);H&&(H.liveStyle=!1)};for(const B in X){const H=W[B],ct=lt[B];if(m.hasOwnProperty(B))continue;let gt=!1;Ke(H)&&Ke(ct)?gt=!ar(H,ct)||A:gt=H!==ct,gt?H!=null?et(B):p.add(B):H!==void 0&&p.has(B)?et(B):v.protectedKeys[B]=!0}v.prevProp=T,v.prevResolvedValues=W,v.isActive&&(m={...m,...W}),(s||i)&&t.blockInitialAnimation&&(L=!1);const q=C&&A;L&&(!q||P)&&f.push(...D.map(B=>{const H={type:b};if(typeof B=="string"&&(s||i)&&!q&&t.manuallyAnimateOnMount&&t.parent){const{parent:ct}=t,gt=pt(ct,B);if(ct.enteringChildren&>){const{delayChildren:Mr}=gt.transition||{};H.delay=Mi(ct.enteringChildren,t,Mr)}}return{animation:B,options:H}}))}if(p.size){const x={};if(typeof u.initial!="boolean"){const b=pt(t,Array.isArray(u.initial)?u.initial[0]:u.initial);b&&b.transition&&(x.transition=b.transition)}p.forEach(b=>{const v=t.getBaseTarget(b),T=t.getValue(b);T&&(T.liveStyle=!0),x[b]=v??null}),f.push({animation:x})}let y=!!f.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,i=!1,y?e(f):Promise.resolve()}function c(l,u){if(n[l].isActive===u)return Promise.resolve();t.variantChildren?.forEach(f=>f.animationState?.setActive(l,u)),n[l].isActive=u;const d=a(l);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=ls(),i=!0}}}function Ql(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!ar(e,t):!1}function ut(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ls(){return{animate:ut(!0),whileInView:ut(),whileHover:ut(),whileTap:ut(),whileDrag:ut(),whileFocus:ut(),exit:ut()}}function Qe(t,e){t.min=e.min,t.max=e.max}function _(t,e){Qe(t.x,e.x),Qe(t.y,e.y)}function cs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const lr=1e-4,Jl=1-lr,tc=1+lr,cr=.01,ec=0-cr,nc=0+cr;function U(t){return t.max-t.min}function sc(t,e,n){return Math.abs(t-e)<=n}function us(t,e,n,s=.5){t.origin=s,t.originPoint=k(e.min,e.max,t.origin),t.scale=U(n)/U(e),t.translate=k(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Jl&&t.scale<=tc||isNaN(t.scale))&&(t.scale=1),(t.translate>=ec&&t.translate<=nc||isNaN(t.translate))&&(t.translate=0)}function Et(t,e,n,s){us(t.x,e.x,n.x,s?s.originX:void 0),us(t.y,e.y,n.y,s?s.originY:void 0)}function ds(t,e,n,s=0){const i=s?k(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+U(e)}function ic(t,e,n,s){ds(t.x,e.x,n.x,s?.x),ds(t.y,e.y,n.y,s?.y)}function hs(t,e,n,s=0){const i=s?k(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+U(e)}function ae(t,e,n,s){hs(t.x,e.x,n.x,s?.x),hs(t.y,e.y,n.y,s?.y)}function fs(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 rc(t,e=0,n=1,s=.5,i,o=t,r=t){if(J.test(e)&&(e=parseFloat(e),e=k(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=k(o.min,o.max,s);t===o&&(a-=e),t.min=fs(t.min,e,n,a,i),t.max=fs(t.max,e,n,a,i)}function ms(t,e,[n,s,i],o,r){rc(t,e[n],e[s],e[i],e.scale,o,r)}const oc=["x","scaleX","originX"],ac=["y","scaleY","originY"];function ps(t,e,n,s){ms(t.x,e,oc,n?n.x:void 0,s?s.x:void 0),ms(t.y,e,ac,n?n.y:void 0,s?s.y:void 0)}function gs(t){return t.translate===0&&t.scale===1}function ur(t){return gs(t.x)&&gs(t.y)}function ys(t,e){return t.min===e.min&&t.max===e.max}function lc(t,e){return ys(t.x,e.x)&&ys(t.y,e.y)}function xs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function dr(t,e){return xs(t.x,e.x)&&xs(t.y,e.y)}function vs(t){return U(t.x)/U(t.y)}function bs(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function Z(t){return[t("x"),t("y")]}function cc(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:l,rotate:u,pathRotation:d,rotateX:f,rotateY:p,skewX:m,skewY:g}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotate(${d}deg) `),f&&(s+=`rotateX(${f}deg) `),p&&(s+=`rotateY(${p}deg) `),m&&(s+=`skewX(${m}deg) `),g&&(s+=`skewY(${g}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const uc=bn.length,ws=t=>typeof t=="string"?parseFloat(t):t,Ts=t=>typeof t=="number"||w.test(t);function dc(t,e,n,s,i,o){i?(t.opacity=k(0,n.opacity??1,hc(s)),t.opacityExit=k(e.opacity??1,0,fc(s))):o&&(t.opacity=k(e.opacity??1,n.opacity??1,s));for(let r=0;r<uc;r++){const a=bn[r];let c=Ss(e,a),l=Ss(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Ts(c)===Ts(l)?(t[a]=Math.max(k(ws(c),ws(l),s),0),(J.test(l)||J.test(c))&&(t[a]+="%")):t[a]=l}(e.rotate||n.rotate)&&(t.rotate=k(e.rotate||0,n.rotate||0,s))}function Ss(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const hc=hr(0,.5,ii),fc=hr(.5,.95,G);function hr(t,e,n){return s=>s<t?0:s>e?1:n(Rt(t,e,s))}function mc(t,e,n){const s=F(t)?t:St(t);return s.start(yn("",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 pc=(t,e)=>t.depth-e.depth;class gc{constructor(){this.children=[],this.isDirty=!1}add(e){sn(this.children,e),this.isDirty=!0}remove(e){Jt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(pc),this.isDirty=!1,this.children.forEach(e)}}function yc(t,e){const n=O.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(ot(s),t(o-e))};return j.setup(s,!0),()=>ot(s)}function Zt(t){return F(t)?t.get():t}class xc{constructor(){this.members=[]}add(e){sn(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){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Qt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},we=["","X","Y","Z"],vc=1e3;let bc=0;function Te(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function fr(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:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",j,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&fr(s)}function mr({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=bc++,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(Sc),this.nodes.forEach(jc),this.nodes.forEach(Mc),this.nodes.forEach(Pc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new gc)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new on),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Sn(r)&&!Tl(r),this.instance=r;const{layoutId:a,layout:c,visualElement:l}=this.options;if(l&&!l.current&&l.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let u,d=0;const f=()=>this.root.updateBlockedByResize=!1;j.read(()=>{d=window.innerWidth}),t(r,()=>{const p=window.innerWidth;p!==d&&(d=p,this.root.updateBlockedByResize=!0,u&&u(),u=yc(f,250),Qt.hasAnimatedSinceResize&&(Qt.hasAnimatedSinceResize=!1,this.nodes.forEach(Vs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&l&&(a||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||l.getDefaultTransition()||Lc,{onLayoutAnimationStart:g,onLayoutAnimationComplete:y}=l.getProps(),x=!this.targetLayout||!dr(this.targetLayout,p),b=!d&&f;if(this.options.layoutRoot||this.resumeFrom||b||d&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...gn(m,"layout"),onPlay:g,onComplete:y};(l.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(u,b,v.path)}else d||Vs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ot(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(Ec),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&fr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,(typeof d.latestValues.x=="string"||typeof d.latestValues.y=="string")&&(d.isLayoutDirty=!0),d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Vc),this.nodes.forEach(Ps);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(As);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Cc),this.nodes.forEach(kc),this.nodes.forEach(wc),this.nodes.forEach(Tc)):this.nodes.forEach(As),this.clearAllSnapshots();const a=O.now();I.delta=tt(0,1e3/60,a-I.timestamp),I.timestamp=a,I.isProcessing=!0,fe.update.process(I),fe.preRender.process(I),fe.render.process(I),I.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ac),this.sharedNodes.forEach(Dc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,j.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){j.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!U(this.snapshot.measuredBox.x)&&!U(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 c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=N()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!ur(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;r&&this.instance&&(a||dt(this.latestValues)||u)&&(i(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Bc(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return N();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Ic))){const{scroll:l}=this.root;l&&(Q(a.x,l.offset.x),Q(a.y,l.offset.y))}return a}removeElementScroll(r){const a=N();if(_(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const l=this.path[c],{scroll:u,options:d}=l;l!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&_(a,r),Q(a.x,u.offset.x),Q(a.y,u.offset.y))}return a}applyTransform(r,a=!1,c){const l=c||N();_(l,r);for(let u=0;u<this.path.length;u++){const d=this.path[u];!a&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(Q(l.x,-d.scroll.offset.x),Q(l.y,-d.scroll.offset.y)),dt(d.latestValues)&&qt(l,d.latestValues,d.layout?.layoutBox)}return dt(this.latestValues)&&qt(l,this.latestValues,this.layout?.layoutBox),l}removeTransform(r){const a=N();_(a,r);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!dt(l.latestValues))continue;let u;l.instance&&(Xe(l.latestValues)&&l.updateSnapshot(),u=N(),_(u,l.measurePageBox())),ps(a,l.latestValues,l.snapshot?.layoutBox,u)}return dt(this.latestValues)&&ps(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==I.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:d}=this.options;if(!this.layout||!(u||d))return;this.resolvedRelativeTargetAt=I.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=N(),this.targetWithTransforms=N()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ic(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):_(this.target,this.layout.layoutBox),Qi(this.target,this.targetDelta)):_(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)||Zi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=N(),this.relativeTargetOrigin=N(),ae(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),_(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===I.timestamp&&(c=!1),c)return;const{layout:l,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||!(l||u))return;_(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;Rl(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=N());const{target:p}=r;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cs(this.prevProjectionDelta.x,this.projectionDelta.x),cs(this.prevProjectionDelta.y,this.projectionDelta.y)),Et(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!bs(this.projectionDelta.x,this.prevProjectionDelta.x)||!bs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bt(),this.projectionDelta=bt(),this.projectionDeltaWithTransform=bt()}setAnimationOrigin(r,a=!1,c){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=bt();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=N(),m=l?l.source:void 0,g=this.layout?this.layout.source:void 0,y=m!==g,x=this.getStack(),b=!x||x.members.length<=1,v=!!(y&&!b&&this.options.crossfade===!0&&!this.path.some(Nc));this.animationProgress=0;let T;const V=c?.interpolateProjection(r);this.mixTargetDelta=M=>{const C=M/1e3,A=V?.(C);A?(f.x.translate=A.x,f.x.scale=k(r.x.scale,1,C),f.x.origin=r.x.origin,f.x.originPoint=r.x.originPoint,f.y.translate=A.y,f.y.scale=k(r.y.scale,1,C),f.y.origin=r.y.origin,f.y.originPoint=r.y.originPoint):(Cs(f.x,r.x,C),Cs(f.y,r.y,C)),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ae(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Rc(this.relativeTarget,this.relativeTargetOrigin,p,C),T&&lc(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=N()),_(T,this.relativeTarget)),y&&(this.animationValues=d,dc(d,u,this.latestValues,C,v,b)),A&&A.rotate!==void 0&&(this.animationValues||(this.animationValues=d),this.animationValues.pathRotation=A.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=j.update(()=>{Qt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=St(0)),this.motionValue.jump(0,!1),this.currentAnimation=mc(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(vc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=r;if(!(!a||!c||!l)){if(this!==r&&this.layout&&l&&pr(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||N();const d=U(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+d;const f=U(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+f}_(a,c),qt(a,u),Et(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new xc),this.sharedNodes.get(r).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Te("z",r,l,this.animationValues);for(let u=0;u<we.length;u++)Te(`rotate${we[u]}`,r,l,this.animationValues),Te(`skew${we[u]}`,r,l,this.animationValues);r.render();for(const u in l)r.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Zt(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Zt(a?.pointerEvents)||""),this.hasProjected&&!dt(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=l.animationValues||l.latestValues;this.applyTransformsToTarget();let d=cc(this.projectionDeltaWithTransform,this.treeScale,u);c&&(d=c(u,d)),r.transform=d;const{x:f,y:p}=this.projectionDelta;r.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,l.animationValues?r.opacity=l===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=l===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const m in Ze){if(u[m]===void 0)continue;const{correct:g,applyTo:y,isCSSVariable:x}=Ze[m],b=d==="none"?u[m]:g(u[m],l);if(y){const v=y.length;for(let T=0;T<v;T++)r[y[T]]=b}else x?this.options.visualElement.renderState.vars[m]=b:r[m]=b}this.options.layoutId&&(r.pointerEvents=l===this?Zt(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ps),this.root.sharedNodes.clear()}}}function wc(t){t.updateLayout()}function Tc(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;if(i==="size")Z(u=>{const d=o?e.measuredBox[u]:e.layoutBox[u],f=U(d);d.min=n[u].min,d.max=d.min+f});else if(i==="x"||i==="y"){const u=i==="x"?"y":"x";Qe(o?e.measuredBox[u]:e.layoutBox[u],n[u])}else pr(i,e.layoutBox,n)&&Z(u=>{const d=o?e.measuredBox[u]:e.layoutBox[u],f=U(n[u]);d.max=d.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+f)});const r=bt();Et(r,n,e.layoutBox);const a=bt();o?Et(a,t.applyTransform(s,!0),e.measuredBox):Et(a,n,e.layoutBox);const c=!ur(r);let l=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:f}=u;if(d&&f){const p=t.options.layoutAnchor||void 0,m=N();ae(m,e.layoutBox,d.layoutBox,p);const g=N();ae(g,n,f.layoutBox,p),dr(m,g)||(l=!0),u.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Sc(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 Pc(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Ac(t){t.clearSnapshot()}function Ps(t){t.clearMeasurements()}function Vc(t){t.isLayoutDirty=!0,t.updateLayout()}function As(t){t.isLayoutDirty=!1}function Cc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function kc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function jc(t){t.resolveTargetDelta()}function Mc(t){t.calcProjection()}function Ec(t){t.resetSkewAndRotation()}function Dc(t){t.removeLeadSnapshot()}function Cs(t,e,n){t.translate=k(e.translate,0,n),t.scale=k(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ks(t,e,n,s){t.min=k(e.min,n.min,s),t.max=k(e.max,n.max,s)}function Rc(t,e,n,s){ks(t.x,e.x,n.x,s),ks(t.y,e.y,n.y,s)}function Nc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Lc={duration:.45,ease:[.4,0,.1,1]},js=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Ms=js("applewebkit/")&&!js("chrome/")?Math.round:G;function Es(t){t.min=Ms(t.min),t.max=Ms(t.max)}function Bc(t){Es(t.x),Es(t.y)}function pr(t,e,n){return t==="position"||t==="preserve-aspect"&&!sc(vs(e),vs(n),.2)}function Ic(t){return t!==t.root&&t.scroll?.wasRoot}const Fc=mr({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Se={current:void 0},gr=mr({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Se.current){const t=new Fc({});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"}),yr=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Oc(t=!0){const e=S.useContext(nn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=S.useId();S.useEffect(()=>{if(t)return i(o)},[t]);const r=S.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const xr=S.createContext({strict:!1}),Ds={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 Rs=!1;function Uc(){if(Rs)return;const t={};for(const e in Ds)t[e]={isEnabled:n=>Ds[e].some(s=>!!n[s])};Yi(t),Rs=!0}function vr(){return Uc(),jl()}function Wc(t){const e=vr();for(const n in t)e[n]={...e[n],...t[n]};Yi(e)}const Kc=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 le(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Kc.has(t)}let br=t=>!le(t);function Hc(t){typeof t=="function"&&(br=e=>e.startsWith("on")?!le(e):t(e))}try{Hc(require("@emotion/is-prop-valid").default)}catch{}function $c(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||F(t[i])||(br(i)||n===!0&&le(i)||!e&&!le(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const he=S.createContext({});function Gc(t,e){if(de(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Lt(n)?n:void 0,animate:Lt(s)?s:void 0}}return t.inherit!==!1?e:{}}function _c(t){const{initial:e,animate:n}=Gc(t,S.useContext(he));return S.useMemo(()=>({initial:e,animate:n}),[Ns(e),Ns(n)])}function Ns(t){return Array.isArray(t)?t.join(" "):t}const kn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wr(t,e,n){for(const s in e)!F(e[s])&&!er(s,n)&&(t[s]=e[s])}function zc({transformTemplate:t},e){return S.useMemo(()=>{const n=kn();return Vn(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Yc(t,e){const n=t.style||{},s={};return wr(s,n,t),Object.assign(s,zc(t,e)),s}function Xc(t,e){const n={},s=Yc(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 Tr=()=>({...kn(),attrs:{}});function qc(t,e,n,s){const i=S.useMemo(()=>{const o=Tr();return nr(o,e,ir(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};wr(o,t.style,t),i.style={...o,...i.style}}return i}const Zc=["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 jn(t){return typeof t!="string"||t.includes("-")?!1:!!(Zc.indexOf(t)>-1||/[A-Z]/u.test(t))}function Qc(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??jn(t)?qc:Xc)(e,s,i,t),l=$c(e,typeof t=="string",o),u=t!==S.Fragment?{...l,...c,ref:n}:{},{children:d}=e,f=S.useMemo(()=>F(d)?d.get():d,[d]);return S.createElement(t,{...u,children:f})}function Jc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:tu(n,s,i,t),renderState:e()}}function tu(t,e,n,s){const i={},o=s(t,{});for(const f in o)i[f]=Zt(o[f]);let{initial:r,animate:a}=t;const c=de(t),l=_i(t);e&&l&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let u=n?n.initial===!1:!1;u=u||r===!1;const d=u?a:r;if(d&&typeof d!="boolean"&&!ue(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=xn(t,f[p]);if(m){const{transitionEnd:g,transition:y,...x}=m;for(const b in x){let v=x[b];if(Array.isArray(v)){const T=u?v.length-1:0;v=v[T]}v!==null&&(i[b]=v)}for(const b in g)i[b]=g[b]}}}return i}const Sr=t=>(e,n)=>{const s=S.useContext(he),i=S.useContext(nn),o=()=>Jc(t,e,s,i);return n?o():Zr(o)},eu=Sr({scrapeMotionValuesFromProps:Cn,createRenderState:kn}),nu=Sr({scrapeMotionValuesFromProps:rr,createRenderState:Tr}),su=Symbol.for("motionComponentSymbol");function iu(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(o=>{o&&t.onMount?.(o),e&&(o?e.mount(o):e.unmount());const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o)},[e])}const Pr=S.createContext({});function yt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function ru(t,e,n,s,i,o){const{visualElement:r}=S.useContext(he),a=S.useContext(xr),c=S.useContext(nn),l=S.useContext(yr),u=l.reducedMotion,d=l.skipAnimations,f=S.useRef(null),p=S.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:o}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,g=S.useContext(Pr);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&ou(f.current,n,i,g);const y=S.useRef(!1);S.useInsertionEffect(()=>{m&&y.current&&m.update(n,c)});const x=n[Ni],b=S.useRef(!!x&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return Jr(()=>{p.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),b.current=!1),m.enteringChildren=void 0)}),m}function ou(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Ar(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&yt(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Ar(t){if(t)return t.options.allowProjection!==!1?t.projection:Ar(t.parent)}function Pe(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&Wc(s);const o=n?n==="svg":jn(t),r=o?nu:eu;function a(l,u){let d;const f={...S.useContext(yr),...l,layoutId:au(l)},{isStatic:p}=f,m=_c(l),g=r(l,p);if(!p&&typeof window<"u"){lu();const y=cu(f);d=y.MeasureLayout,m.visualElement=ru(t,g,f,i,y.ProjectionNode,o)}return h.jsxs(he.Provider,{value:m,children:[d&&m.visualElement?h.jsx(d,{visualElement:m.visualElement,...f}):null,Qc(t,l,iu(g,m.visualElement,u),g,p,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=S.forwardRef(a);return c[su]=t,c}function au({layoutId:t}){const e=S.useContext(_s).id;return e&&t!==void 0?e+"-"+t:t}function lu(t,e){S.useContext(xr).strict}function cu(t){const e=vr(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function uu(t,e){if(typeof Proxy>"u")return Pe;const n=new Map,s=(o,r)=>Pe(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,Pe(r,void 0,t,e)),n.get(r))})}const du=(t,e)=>e.isSVG??jn(t)?new _l(e):new Ul(e,{allowProjection:t!==S.Fragment});class hu extends at{constructor(e){super(e),e.animationState||(e.animationState=Zl(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(){this.node.animationState.reset(),this.unmountControls?.()}}let fu=0;class mu extends at{constructor(){super(...arguments),this.id=fu++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:o,custom:r}=this.node.getProps();if(typeof o=="string"||typeof o=="object"&&o!==null&&!Array.isArray(o)){const a=pt(this.node,o,r);if(a){const{transition:c,transitionEnd:l,...u}=a;for(const d in u)this.node.getValue(d)?.jump(u[d])}}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 pu={animation:{Feature:hu},exit:{Feature:mu}};function Ut(t){return{point:{x:t.pageX,y:t.pageY}}}const gu=t=>e=>Tn(e)&&t(e,Ut(e));function Dt(t,e,n,s){return Bt(t,e,gu(n),s)}const Vr=({current:t})=>t?t.ownerDocument.defaultView:null,Ls=(t,e)=>Math.abs(t-e);function yu(t,e){const n=Ls(t.x,e.x),s=Ls(t.y,e.y);return Math.sqrt(n**2+s**2)}const Bs=new Set(["auto","scroll"]);class Cr{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=m=>{this.handleScroll(m.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Ht(this.lastRawMoveEventInfo,this.transformPagePoint));const m=Ae(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,y=yu(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!y)return;const{point:x}=m,{timestamp:b}=I;this.history.push({...x,timestamp:b});const{onStart:v,onMove:T}=this.handlers;g||(v&&v(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,m)},this.handlePointerMove=(m,g)=>{this.lastMoveEvent=m,this.lastRawMoveEventInfo=g,this.lastMoveEventInfo=Ht(g,this.transformPagePoint),j.update(this.updatePoint,!0)},this.handlePointerUp=(m,g)=>{this.end();const{onEnd:y,onSessionEnd:x,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Ae(m.type==="pointercancel"?this.lastMoveEventInfo:Ht(g,this.transformPagePoint),this.history);this.startEvent&&y&&y(m,v),x&&x(m,v)},!Tn(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=Ut(e),l=Ht(c,this.transformPagePoint),{point:u}=l,{timestamp:d}=I;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(e,Ae(l,this.history));const p={passive:!0,capture:!0};this.removeListeners=It(Dt(this.contextWindow,"pointermove",this.handlePointerMove,p),Dt(this.contextWindow,"pointerup",this.handlePointerUp,p),Dt(this.contextWindow,"pointercancel",this.handlePointerUp,p)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Bs.has(s.overflowX)||Bs.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),j.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ot(this.updatePoint)}}function Ht(t,e){return e?{point:e(t.point)}:t}function Is(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ae({point:t},e){return{point:t,delta:Is(t,kr(e)),offset:Is(t,xu(e)),velocity:vu(e,.1)}}function xu(t){return t[0]}function kr(t){return t[t.length-1]}function vu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=kr(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 o=$(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function bu(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?k(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?k(n,t,s.max):Math.min(t,n)),t}function Fs(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 wu(t,{top:e,left:n,bottom:s,right:i}){return{x:Fs(t.x,n,i),y:Fs(t.y,e,s)}}function Os(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 Tu(t,e){return{x:Os(t.x,e.x),y:Os(t.y,e.y)}}function Su(t,e){let n=.5;const s=U(t),i=U(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 Pu(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 Au(t=Je){return t===!1?t=0:t===!0&&(t=Je),{x:Us(t,"left","right"),y:Us(t,"top","bottom")}}function Us(t,e,n){return{min:Ws(t,e),max:Ws(t,n)}}function Ws(t,e){return typeof t=="number"?t:t[e]||0}const Vu=new WeakMap;class Cu{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=N(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=d=>{n&&this.snapToCursor(Ut(d).point),this.stopAnimation()},r=(d,f)=>{const{drag:p,dragPropagation:m,onDragStart:g}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rl(p),!this.openDragLock))return;this.latestPointerEvent=d,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(x=>{let b=this.getAxisMotionValue(x).get()||0;if(J.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[x];T&&(b=U(T)*(parseFloat(b)/100))}}this.originPoint[x]=b}),g&&j.update(()=>g(d,f),!1,!0),He(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:g,onDrag:y}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:x}=f;if(m&&this.currentDirection===null){this.currentDirection=ju(x),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,x),this.updateAxis("y",f.point,x),this.visualElement.render(),y&&j.update(()=>y(d,f),!1,!0)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{const{dragSnapToOrigin:d}=this.getProps();(d||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();this.panSession=new Cr(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:s,contextWindow:Vr(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&j.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||!$t(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=bu(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&yt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=wu(s.layoutBox,e):this.constraints=!1,this.elastic=Au(n),i!==this.constraints&&!yt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Z(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Pu(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 o=Nl(s,i.root,this.visualElement.getTransformPagePoint());let r=Tu(i.layout.layoutBox,o);if(n){const a=n(El(r));this.hasMutatedConstraints=!!a,a&&(r=qi(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=Z(u=>{if(!$t(u,n,this.currentDirection))return;let d=c&&c[u]||{};(r===!0||r===u)&&(d={min:0,max:0});const f=i?200:1e6,p=i?40:1e7,m={type:"inertia",velocity:s?e[u]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return He(this.visualElement,e),s.start(yn(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(!$t(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-k(r,a,.5)+c)}})}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(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=Su({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Z(r=>{if(!$t(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:l}=this.constraints[r];a.set(k(c,l,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Vu.set(this.visualElement,this);const e=this.visualElement.current,n=Dt(e,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps(),f=l.target,p=f!==e&&dl(f);u&&d&&!p&&this.start(l)});let s;const i=()=>{const{dragConstraints:l}=this.getProps();yt(l)&&l.current&&(this.constraints=this.resolveRefConstraints(),s||(s=ku(e,l.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),j.read(i);const a=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Z(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Je,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Ks(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ku(t,e,n){const s=Zn(t,Ks(n)),i=Zn(e,Ks(n));return()=>{s(),i()}}function $t(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function ju(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Mu extends at{constructor(e){super(e),this.removeGroupControls=G,this.removeListeners=G,this.controls=new Cu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||G}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&&j.update(()=>t(e,n),!1,!0)};class Eu extends at{constructor(){super(...arguments),this.removePointerDownListener=G}onPointerDown(e){this.session=new Cr(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Vr(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:(o,r)=>{delete this.session,i&&j.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Dt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ce=!1;class Du extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),Ce&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Qt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),Ce=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||j.postRender(()=>{const a=r.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(),wn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ce=!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 jr(t){const[e,n]=Oc(),s=S.useContext(_s);return h.jsx(Du,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Pr),isPresent:e,safeToRemove:n})}const Ru={pan:{Feature:Eu},drag:{Feature:Mu,ProjectionNode:gr,MeasureLayout:jr}};function Hs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&j.postRender(()=>o(e,Ut(e)))}class Nu extends at{mount(){const{current:e}=this.node;e&&(this.unmount=al(e,(n,s)=>(Hs(this.node,s,"Start"),i=>Hs(this.node,i,"End"))))}unmount(){}}class Lu 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 $s(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=s[i];o&&j.postRender(()=>o(e,Ut(e)))}class Bu extends at{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=fl(e,(i,o)=>($s(this.node,o,"Start"),(r,{success:a})=>$s(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const tn=new WeakMap,ke=new WeakMap,Iu=t=>{const e=tn.get(t.target);e&&e(t)},Fu=t=>{t.forEach(Iu)};function Ou({root:t,...e}){const n=t||document;ke.has(n)||ke.set(n,{});const s=ke.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Fu,{root:t,...e})),s[i]}function Uu(t,e,n){const s=Ou(e);return tn.set(t,n),s.observe(t),()=>{tn.delete(t),s.unobserve(t)}}const Wu={some:0,all:1};class Ku extends at{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:Wu[i]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,o&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};this.stopObserver=Uu(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Hu(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function Hu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const $u={inView:{Feature:Ku},tap:{Feature:Bu},focus:{Feature:Lu},hover:{Feature:Nu}},Gu={layout:{ProjectionNode:gr,MeasureLayout:jr}},_u={...pu,...$u,...Ru,...Gu},zu=uu(_u,du),st=zu;function Yu(){return h.jsxs("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-32 md:px-8","aria-labelledby":"press-heading",children:[h.jsxs("div",{className:"flex flex-col gap-5 md:flex-row md:items-end md:justify-between",children:[h.jsxs("div",{className:"max-w-3xl",children:[h.jsxs("div",{className:"inline-flex items-center gap-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:[h.jsx(Hr,{className:"h-4 w-4"}),"Press coverage"]}),h.jsx("h2",{id:"press-heading",className:"mt-4 text-[36px] font-extrabold leading-none text-foreground md:text-[54px]",children:"CleanBucks in the News"}),h.jsx("p",{className:"mt-5 max-w-2xl text-base leading-relaxed text-muted-foreground md:text-lg",children:"CleanBucks continues to expand its national presence as more entrepreneurs look for practical ways to enter the residential and commercial cleaning industry."})]}),h.jsxs(wt,{to:"/press",className:"inline-flex items-center gap-2 self
1-start text-sm font-semibold text-foreground transition-colors hover:text-primary md:self-auto",children:["View all press ",h.jsx(Mn,{className:"h-4 w-4"})]})]}),h.jsx("div",{className:"mt-10 grid gap-5 md:grid-cols-2",children:Dr.map(t=>h.jsxs("article",{className:"flex h-full flex-col rounded-2xl border border-border/70 bg-card p-6 shadow-soft md:p-8",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 text-xs font-semibold uppercase tracking-[0.12em]",children:[h.jsx("span",{className:"text-primary",children:t.outlet}),h.jsx("span",{className:"text-muted-foreground","aria-hidden":"true",children:"·"}),h.jsx("span",{className:"text-muted-foreground",children:t.published})]}),h.jsx("h3",{className:"mt-4 text-xl font-bold leading-snug text-foreground md:text-2xl",children:t.headline}),h.jsx("p",{className:"mt-4 text-sm leading-relaxed text-muted-foreground md:text-base",children:t.summary}),h.jsxs("div",{className:"mt-6 flex flex-wrap items-center justify-between gap-4 border-t border-border/60 pt-5",children:[h.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:t.kind}),h.jsxs("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 rounded-full bg-foreground px-5 py-2.5 text-sm font-semibold text-background transition-transform hover:-translate-y-0.5",children:["Read Article ",h.jsx(Mn,{className:"h-4 w-4"})]})]})]},`${t.outlet}-${t.headline}`))})]})}const Xu="/__l5e/assets-v1/9ab116ae-d9e3-443f-916b-4df802c6e20c/10bucksaroom-overview.mp4",qu={url:Xu};function Id(){return h.jsxs("div",{className:"min-h-screen bg-background pt-20",children:[h.jsx(Rr,{}),h.jsxs("main",{children:[h.jsx(Ju,{}),h.jsx(ed,{}),h.jsx(Qu,{}),h.jsx(nd,{}),h.jsx(id,{}),h.jsx(od,{}),h.jsx(ld,{}),h.jsx(ud,{}),h.jsx(dd,{}),h.jsx(Yu,{}),h.jsx(hd,{})]}),h.jsx(Nr,{})]})}const Zu=[{icon:Gr,label:"Homes and apartments"},{icon:_r,label:"Offices"},{icon:Fr,label:"Retail locations"},{icon:Or,label:"Medical and professional facilities"},{icon:Ur,label:"Property managers and apartment turnovers"},{icon:zr,label:"Schools and childcare facilities"},{icon:Wr,label:"Restaurants and hospitality"}];function Qu(){return h.jsxs("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-32 md:px-8",children:[h.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[h.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:"Residential roots. Commercial reach."}),h.jsxs("h2",{className:"mt-4 text-balance text-[36px] font-extrabold leading-[1] tracking-[-0.03em] text-foreground md:text-[56px]",children:["From living rooms",h.jsx("br",{}),h.jsx("span",{className:"text-primary",children:"to conference rooms."})]}),h.jsx("p",{className:"mx-auto mt-5 max-w-xl text-[15px] leading-relaxed text-muted-foreground md:text-base",children:"Start with homes. Grow into commercial. Build the mix that works for you. Your territory includes more than front doors."})]}),h.jsx("ul",{className:"mt-10 flex flex-wrap justify-center gap-2.5",children:Zu.map(t=>h.jsxs("li",{className:"inline-flex items-center gap-2 rounded-full bg-white px-4 py-2.5 text-[13px] font-medium text-foreground shadow-soft ring-1 ring-black/5",children:[h.jsx(t.icon,{className:"h-4 w-4 text-primary","aria-hidden":!0}),t.label]},t.label))}),h.jsx("div",{className:"mt-12",children:h.jsx(Kr,{variant:"compact"})}),h.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-center text-[13px] leading-relaxed text-muted-foreground",children:"Operators decide their own service mix. Account availability varies by territory, and CleanBucks does not guarantee leads, contracts, customers or financial results."}),h.jsx("div",{className:"mt-8 text-center",children:h.jsxs(wt,{to:"/commercial-cleaning-business",className:"inline-flex items-center gap-2 rounded-full bg-foreground px-8 py-4 text-[15px] font-semibold text-background shadow-lift transition-transform hover:-translate-y-0.5",children:["Build a commercial cleaning business",h.jsx(en,{className:"h-4 w-4"})]})})]})}function Ju(){const[t,e]=S.useState(!1);return h.jsxs("section",{className:"mx-auto max-w-6xl px-5 pb-6 pt-8 md:px-8 md:pt-16",children:[h.jsxs(st.div,{initial:{opacity:0,y:12}
1,animate:{opacity:1,y:0},transition:{duration:.6,ease:[.22,1,.36,1]},className:"text-center",children:[h.jsxs("div",{className:"mx-auto inline-flex items-center gap-2 rounded-full border border-black/10 bg-white/70 px-3 py-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-foreground/70 backdrop-blur",children:[h.jsx($r,{className:"h-3.5 w-3.5 text-primary"}),"The CleanBucks License Opportunity"]}),h.jsxs("h1",{className:"mx-auto mt-6 max-w-4xl text-balance text-[42px] font-extrabold leading-[0.98] tracking-[-0.04em] text-foreground sm:text-[64px] md:text-[84px]",children:["Build a residential and"," ",h.jsx("span",{className:"text-primary",children:"commercial cleaning business."})]}),h.jsx("p",{className:"mx-auto mt-6 max-w-2xl text-balance text-[17px] leading-relaxed text-muted-foreground md:text-lg",children:"CleanBucks gives independent operators the brand, technology, territory and business system to pursue residential customers, commercial accounts or a combination of both."}),h.jsxs("p",{className:"mx-auto mt-5 max-w-2xl rounded-2xl bg-white/70 px-5 py-4 text-[15px] font-semibold leading-relaxed text-foreground shadow-soft ring-1 ring-black/5 backdrop-blur md:text-base",children:["We built our foundation in residential cleaning. Commercial cleaning can become your bread and butter."," ",h.jsx(wt,{to:"/commercial-cleaning-business",className:"font-bold text-primary underline-offset-4 hover:underline",children:"Explore commercial cleaning"})]}),h.jsx("div",{className:"mx-auto mt-8 grid max-w-2xl grid-cols-1 gap-3 sm:grid-cols-3",children:[{v:"$1,000",l:"To Start"},{v:"$500",l:"Per Month"},{v:"0%",l:"Percentage Royalties"}].map(n=>h.jsxs("div",{className:"rounded-2xl bg-white p-4 shadow-soft ring-1 ring-black/5",children:[h.jsx("div",{className:"text-[28px] font-extrabold leading-none tracking-[-0.03em] text-foreground md:text-[34px]",children:n.v}),h.jsx("div",{className:"mt-1.5 text-[11px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:n.l})]},n.l))}),h.jsx("p",{className:"mx-auto mt-4 max-w-xl text-[14px] leading-relaxed text-muted-foreground",children:"You keep the revenue your business generates. CleanBucks charges a flat monthly fee rather than taking a percentage of your sales."}),h.jsxs("div",{className:"mt-8 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[h.jsxs(wt,{to:"/contact",className:"group inline-flex items-center gap-2 rounded-full bg-foreground px-7 py-4 text-[15px] font-semibold text-background shadow-lift transition-transform hover:-translate-y-0.5",children:["Book Discovery Call",h.jsx(en,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]}),h.jsxs("button",{type:"button",onClick:()=>e(!0),className:"group relative inline-flex items-center gap-3 overflow-hidden rounded-full bg-gradient-to-r from-primary to-[oklch(0.55_0.24_340)] px-8 py-4 text-[15px] font-bold text-white shadow-glow transition-all hover:shadow-[0_20px_50px_-12px_oklch(0.63_0.26_350/0.45)] hover:-translate-y-0.5",children:[h.jsxs("span",{className:"relative flex h-9 w-9 items-center justify-center rounded-full bg-white/20 ring-1 ring-white/40",children:[h.jsx(qr,{className:"h-4 w-4 fill-white text-white"}),h.jsx("span",{className:"absolute inset-0 animate-ping rounded-full bg-white/30"})]}),h.jsx("span",{className:"relative",children:"Watch 2-min overview"}),h.jsx("span",{className:"absolute -right-1 -top-1 flex h-5 w-5 items-center justify-center rounded-full bg-gold text-[9px] font-extrabold text-ink shadow-sm",children:"â¶"})]})]})]}),t&&h.jsx("div",{role:"dialog","aria-modal":"true",onClick:()=>e(!1),className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/80 p-4 backdrop-blur-sm",children:h.jsxs("div",{onClick:n=>n.stopPropagation(),className:"relative w-full max-w-4xl overflow-hidden rounded-2xl bg-foreground shadow-2xl",children:[h.jsx("button",{type:"button",onClick:()=>e(!1),"aria-label":"Close video",className:"absolute right-3 top-3 z-10 inline-flex h-9 w-9 items-center justify-center rounded-full bg-white/10 text-background backdrop-blur hover:bg-white/20",children:"â"}
1),h.jsx("video",{src:qu.url,controls:!0,autoPlay:!0,playsInline:!0,className:"aspect-video w-full bg-black"})]})}),h.jsxs("div",{className:"mx-auto mt-12 max-w-6xl px-5 text-center md:px-8",children:[h.jsx("div",{className:"text-[13px] font-semibold text-foreground",children:"CleanBucks Platform Demo"}),h.jsx("div",{className:"mt-1 text-[12px] text-muted-foreground",children:"Sample information shown for demonstration purposes."})]}),h.jsx(st.div,{initial:{opacity:0,y:40,scale:.98},animate:{opacity:1,y:0,scale:1},transition:{duration:.9,delay:.15,ease:[.22,1,.36,1]},className:"mx-auto mt-3 md:mt-4",children:h.jsxs("div",{className:"relative",children:[h.jsx("div",{"aria-hidden":!0,className:"absolute inset-x-6 -bottom-6 h-24 rounded-full blur-3xl",style:{background:"radial-gradient(50% 100% at 50% 50%, oklch(0.63 0.26 350 / 0.35), transparent)"}}),h.jsx(Ir,{chrome:"full"})]})})]})}function Gs({to:t,suffix:e="",prefix:n=""}){const[s,i]=S.useState(0),o=S.useRef(null);return S.useEffect(()=>{const r=o.current;if(!r)return;const a=new IntersectionObserver(c=>{for(const l of c)if(l.isIntersecting){const u=performance.now(),d=1400,f=p=>{const m=Math.min(1,(p-u)/d),g=1-Math.pow(1-m,3);i(t*g),m<1&&requestAnimationFrame(f)};requestAnimationFrame(f),a.disconnect()}},{threshold:.4});return a.observe(r),()=>a.disconnect()},[t]),h.jsxs("span",{ref:o,children:[n,Math.round(s).toLocaleString(),e]})}const td=[{value:h.jsx(h.Fragment,{children:h.jsx(Gs,{to:14,suffix:"+"})}),label:"Years of Cleaning Experience"},{value:h.jsx(h.Fragment,{children:h.jsx(Gs,{to:35e4,suffix:"+"})}),label:"Rooms Cleaned"},{value:h.jsx(h.Fragment,{children:"$1,000"}),label:"To Start"},{value:h.jsx(h.Fragment,{children:"$500"}),label:"Per Month"},{value:h.jsx(h.Fragment,{children:"0%"}),label:"Percentage Royalties"},{value:h.jsx(h.Fragment,{children:"Protected"}),label:"Local Territory"}];function ed(){return h.jsx("section",{className:"mx-auto mt-20 max-w-6xl px-5 md:mt-32 md:px-8",children:h.jsx("div",{className:"grid grid-cols-2 gap-3 md:grid-cols-3",children:td.map((t,e)=>h.jsxs(st.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,delay:e*.05,ease:[.22,1,.36,1]},className:"rounded-3xl bg-white p-5 shadow-soft ring-1 ring-black/5 md:p-7",children:[h.jsx("div",{className:"text-[32px] font-extrabold leading-none tracking-[-0.03em] text-foreground md:text-[44px]",children:t.value}),h.jsx("div",{className:"mt-2 text-[11px] font-medium uppercase tracking-[0.14em] text-muted-foreground md:text-xs",children:t.label})]},e))})})}function nd(){return h.jsx("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-40 md:px-8",children:h.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[h.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:"Built-In Platform"}),h.jsxs("h2",{className:"mt-4 text-balance text-[36px] font-extrabold leading-[1] tracking-[-0.03em] text-foreground md:text-[56px]",children:[h.jsx("span",{className:"text-primary",children:"One system"}),h.jsx("br",{}),"to run your whole business."]}),h.jsx("p",{className:"mx-auto mt-5 max-w-lg text-[15px] leading-relaxed text-muted-foreground md:text-base",children:"Customers, scheduling, invoicing and payments, reviews, and marketing â all in one place, ready to use from day one, all from your phone."})]})})}const sd=["Heather, the built-in AI assistant â ask for any customer, job, or quote and get it instantly","Every customer, every job, every note â one screen","Quotes, invoices, and payment reminders sent for you","Text and email your customers from inside the system","Simple drag-and-drop scheduling and smarter driving routes","Review requests sent automatically after every job","See your customers, jobs, and repeat bookings at a glance","Team hours, tips, and pay tracking","Runs on your phone â manage the business from the driveway"];function id(){return h.jsx("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-40 md:px-8",children:h.jsx("div",{className:"overflow-hidden rounded-[32px] bg-foreground p-8 text-background shadow-lift md:p-16",children:h.jsxs("div",{className:"grid grid-cols-1 gap-10 md:grid-cols-2 md:gap-16",children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:"Built for cleaning businesses"}),h.jsxs("h2",{className:"mt-4 text-balance text-[36px] font-extrabold leading-[1] tracking-[-0.03em] md:text-[56px]",children:["One place to run",h.jsx("br",{}),h.jsx("span",{className:"text-background/60",children:"your whole business."})]}),h.jsx("p",{className:"mt-6 max-w-md text-[15px] leading-relaxed text-background/70 md:text-base",children:"Most new cleaning businesses end up juggling separate tools for scheduling, customers, payments, and marketing. CleanBucks gives you one system that handles all of it, built from real cleaning-business experience."}),h.jsx("p",{className:"mt-4 max-w-md text-[15px] leading-relaxed text-background/70 md:text-base",children:"It is included with your license â no extra fees per person, no locked features. You get the same system every CleanBucks operator uses from day one."}),h.jsx("p",{className:"mt-4 max-w-md text-[15px] leading-relaxed text-background/70 md:text-base",children:"Heather, the built-in AI assistant, lives inside it. Ask her for a customer, a job, or a quote and she pulls it up on the spot."})]}),h.jsx("ul",{className:"grid grid-cols-1 gap-3 self-center",children:sd.map((t,e)=>h.jsxs(st.li,{initial:{opacity:0,x:12},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.5,delay:e*.04,ease:[.22,1,.36,1]},className:"flex items-start gap-3 rounded-2xl bg-white/[0.04] px-4 py-3 ring-1 ring-white/10",children:[h.jsx("span",{className:"mt-0.5 inline-flex h-5 w-5 flex-none items-center justify-center rounded-full bg-primary text-[11px] font-bold text-primary-foreground",children:"â"}),h.jsx("span",{className:"text-[14px] leading-snug text-background/90 md:text-[15px]",children:t})]},t))})]})})})}const rd=[{title:"You run your own business.",body:"You own and operate the local business, serve your customers, and manage your team. CleanBucks charges a flat monthly fee instead of taking a percentage of your sales."},{title:"A brand customers recognize.",body:"You market under 10BucksARoom â a consumer-facing cleaning brand with a simple, memorable offer â instead of starting from a name nobody knows."},{title:"Real support from real operators.",body:"Training, written operating procedures, and people who have actually run cleaning jobs â plus a network of operators using the same system."}];function od(){return h.jsxs("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-40 md:px-8",children:[h.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[h.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:"Why CleanBucks"}),h.jsx("h2",{className:"mt-4 text-balance text-[36px] font-extrabold leading-[1] tracking-[-0.03em] text-foreground md:text-[56px]",children:"Two things working together."}),h.jsx("p",{className:"mx-auto mt-5 max-w-xl text-[15px] leading-relaxed text-muted-foreground md:text-base",children:"Access to the 10BucksARoom brand, and the CleanBucks business system built from more than 14 years of hands-on cleaning-business experience."})]}),h.jsx("div",{className:"mt-12 grid grid-cols-1 gap-4 md:grid-cols-3",children:rd.map((t,e)=>h.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,delay:e*.08,ease:[.22,1,.36,1]},className:"rounded-3xl bg-white p-7 shadow-soft ring-1 ring-black/5 md:p-9",children:[h.jsx("div",{className:"text-[22px] font-bold leading-tight tracking-[-0.02em] text-foreground md:text-[26px]",children:t.title}),h.jsx("p",{className:"mt-3 text-[15px] leading-relaxed text-muted-foreground",children:t.body})]},t.title))})]})}const ad=[{title:"Get found and get inquiries",body:"A website presence under the 10BucksARoom brand, marketing materials, and vehicle wrap designs so people in your area know who to call."},{title:"Quote, book, and get paid",body:"Send quotes, schedule jobs, take payments, and send reminders from one system on your phone."},{title:"Keep customers coming back",body:"Recurring bookings, automatic review requests, and customer texting and email built in."},{title:"Handle add-on services",body:"Training and scripts for offering extras like inside the oven, inside the fridge, or interior windows while you are already on the job."},{title:"Manage a team when you're ready",body:"Add crew members, assign jobs, and track hours, tips, and pay as your business grows."},{title:"Learn the business",body:"A full training manual and written operating procedures covering how to answer inquiries, quote work, and run a clean, professional job."}];function ld(){return h.jsxs("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-40 md:px-8",children:[h.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[h.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:"What's included"}),h.jsxs("h2",{className:"mt-4 text-balance text-[36px] font-extrabold leading-[1] tracking-[-0.03em] text-foreground md:text-[56px]",children:["Built to help you",h.jsx("br",{}),h.jsx("span",{className:"text-primary",children:"run the business."})]})]}),h.jsx("div",{className:"mt-12 grid grid-cols-1 gap-4 md:grid-cols-3",children:ad.map((t,e)=>h.jsxs(st.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.6,delay:e*.06,ease:[.22,1,.36,1]},className:"rounded-3xl bg-white p-7 shadow-soft ring-1 ring-black/5 md:p-8",children:[h.jsx("div",{className:"flex gap-0.5 text-primary",children:h.jsx(Yr,{className:"h-4 w-4 fill-current"})}),h.jsx("div",{className:"mt-4 text-[19px] font-bold leading-tight tracking-[-0.02em] text-foreground md:text-[21px]",children:t.title}),h.jsx("p",{className:"mt-2 text-[15px] leading-relaxed text-muted-foreground",children:t.body})]},t.title))})]})}
1const cd=[{n:"1",title:"Choose your territory",body:"We check availability in your area and confirm a protected local territory for your business."},{n:"2",title:"Get set up",body:"You get brand access, your website presence, the CleanBucks system, marketing materials, and training."},{n:"3",title:"Start serving customers",body:"Market your business locally, answer inquiries, book jobs, and run everything from your phone."}];function ud(){return h.jsxs("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-40 md:px-8",children:[h.jsxs("div",{className:"mx-auto max-w-2xl text-center",children:[h.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:"How it works"}),h.jsx("h2",{className:"mt-4 text-balance text-[36px] font-extrabold leading-[1] tracking-[-0.03em] text-foreground md:text-[56px]",children:"Three steps to get started."})]}),h.jsx("div",{className:"mt-12 grid grid-cols-1 gap-4 md:grid-cols-3",children:cd.map(t=>h.jsxs("div",{className:"rounded-3xl bg-white p-7 shadow-soft ring-1 ring-black/5 md:p-9",children:[h.jsx("span",{className:"inline-flex h-9 w-9 items-center justify-center rounded-full bg-primary text-[15px] font-bold text-primary-foreground",children:t.n}),h.jsx("div",{className:"mt-4 text-[21px] font-bold leading-tight tracking-[-0.02em] text-foreground md:text-[24px]",children:t.title}),h.jsx("p",{className:"mt-3 text-[15px] leading-relaxed text-muted-foreground",children:t.body})]},t.n))}),h.jsx("div",{className:"mt-10 text-center",children:h.jsxs(wt,{to:"/apply",className:"inline-flex items-center gap-2 rounded-full bg-foreground px-8 py-4 text-[15px] font-semibold text-background shadow-lift transition-transform hover:-translate-y-0.5",children:["Check Territory Availability",h.jsx(en,{className:"h-4 w-4"})]})})]})}const je=["Remember to always spot your vehicle.","Always upsell â turn small jobs into large ones.","Answer first â first response wins the job."];function dd(){const[t,e]=S.useState(0);return S.useEffect(()=>{const n=setInterval(()=>e(s=>(s+1)%je.length),5e3);return()=>clearInterval(n)},[]),h.jsx("section",{className:"mx-auto mt-24 max-w-6xl px-5 md:mt-40 md:px-8",children:h.jsx(st.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"overflow-hidden rounded-4xl bg-foreground px-6 py-14 text-background shadow-lift md:px-16 md:py-20",children:h.jsxs("div",{className:"mx-auto max-w-3xl text-center",children:[h.jsx("div",{className:"text-[11px] font-semibold uppercase tracking-[0.18em] text-primary",children:"The Founder"}),h.jsxs(st.p,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.5,ease:[.22,1,.36,1]},className:"mt-6 text-balance text-[24px] font-medium leading-snug tracking-[-0.02em] text-background/95 md:text-[34px]",children:['"',je[t],'"']},t),h.jsxs("div",{className:"mt-8",children:[h.jsx("div",{className:"text-[15px] font-semibold text-background",children:"Maany Silva"}),h.jsx("div",{className:"text-[13px] text-background/60",children:"Founder, CleanBucks"})]}),h.jsx("div",{className:"mt-6 flex justify-center gap-2",children:je.map((n,s)=>h.jsx("button",{type:"button","aria-label":`Quote ${s+1}`,onClick:()=>e(s),className:`h-1.5 rounded-full transition-all ${s===t?"w-6 bg-primary":"w-1.5 bg-white/30"}`},s))})]})})})}function hd(){return h.jsx("section",{className:"mx-auto mt-24 max-w-6xl px-5 pb-20 md:mt-40 md:px-8",children:h.jsxs(st.div,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.7,ease:[.22,1,.36,1]},className:"relative overflow-hidden rounded-4xl px-6 py-16 text-center shadow-lift md:px-16 md:py-24",style:{background:"linear-gradient(160deg, oklch(0.98 0.02 84) 0%, oklch(0.94 0.05 350) 100%)"},children:[h.jsxs("h2",{className:"mx-auto max-w-3xl text-balance text-[38px] font-extrabold leading-[1] tracking-[-0.035em] text-foreground md:text-[68px]",children:["Ready to start your own ",h.jsx("span",{className:"text-primary",children:"cleaning business?"})]}),h.jsx("p",{className:"mx-auto mt-5 max-w-lg text-[15px] leading-relaxed text-muted-foreground md:text-lg",children:"A 20-minute call. No pressure. We'll walk you through what's included, what it costs, whether your territory is available, and whether this is right for you."}),h.jsxs("div",{className:"mt-10 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[h.jsxs(wt,{to:"/apply",className:"group inline-flex items-center gap-2 rounded-full bg-foreground px-8 py-4 text-[15px] font-semibold text-background shadow-lift transition-transform hover:-translate-y-0.5",children:["Check Territory Availability",h.jsx(Lr,{className:"h-4 w-4 transition-transform group-hover:translate-x-0.5"})]}),h.jsx(Br,{prefix:"Call",className:"inline-flex items-center gap-2 rounded-full border border-black/15 bg-white/80 px-8 py-4 text-[15px] font-semibold text-foreground backdrop-blur transition-colors hover:bg-white"})]})]})})}export{Id as component};
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.