import{c as va,r as p,j as o,a as ba,u as ke,A as Re,b as Le,d as Ie,e as Be,C as Ni,S as Ke,f as ki,g as wa,M as yt,P as ja,T as Xt,h as He,i as _e,k as Ge,l as ws,t as ee,m as vt,I as bt,n as re,B as xe,o as Ye,L as Ta,p as Sa,q as Pa,s as Ca,v as Na,w as ka,x as at,y as nn,z as Va,D as Aa,F as Ma,E as rn,G as Da,H as Ea,J as Ra,K as La,N as Ia,O as Ba,Q as Fa}from"./index-4soFh7YW.js";import{H as Oa}from"./HeroDark-BXCs7Ci3.js";import{S as $a}from"./SheetSection-Brmhb7ns.js";import{W as Ka}from"./wrench-BMz5hVse.js";import{C as Zt}from"./calendar-8NynaHRY.js";import{E as Ua}from"./eye-WWEysKrK.js";import{M as js}from"./minus-B4j9lBk6.js";import{P as Ts}from"./plus-Cjx4EtmN.js";import{u as Wa}from"./use-mobile-BD6NYpF3.js";import{O as qa}from"./OperatorStory-DtgzOYoY.js";import{C as za}from"./chevron-up-rz0gXHgw.js";import"./analytics-Bu8LxldC.js";import"./arrow-left-Yt4w9K-z.js";import"./can-koseoglu-Cz57oiKr.js";import"./ali-ozaltin-C0P_dp-c.js";/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vi=va("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),Ss=p.createContext({});function Ps(e){const t=p.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ai=typeof window<"u",Mi=Ai?p.useLayoutEffect:p.useEffect,kt=p.createContext(null);function Cs(e,t){e.indexOf(t)===-1&&e.push(t)}function Ns(e,t){const s=e.indexOf(t);s>-1&&e.splice(s,1)}const ne=(e,t,s)=>s>t?t:s<e?e:s;let Vt=()=>{},Ce=()=>{};const ae={},Di=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Ei(e){return typeof e=="object"&&e!==null}const Ri=e=>/^0[^.\s]+$/u.test(e);function ks(e){let t;return()=>(t===void 0&&(t=e()),t)}const X=e=>e,Ha=(e,t)=>s=>t(e(s)),st=(...e)=>e.reduce(Ha),Xe=(e,t,s)=>{const n=t-e;return n===0?1:(s-e)/n};class Vs{constructor(){this.subscriptions=[]}add(t){return Cs(this.subscriptions,t),()=>Ns(this.subscriptions,t)}notify(t,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,s,n);else for(let a=0;a<i;a++){const r=this.subscriptions[a];r&&r(t,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const te=e=>e*1e3,Y=e=>e/1e3;function Li(e,t){return t?e*(1e3/t):0}const Ii=(e,t,s)=>(((1-3*s+3*t)*e+(3*s-6*t))*e+3*t)*e,_a=1e-7,Ga=12;function Ya(e,t,s,n,i){let a,r,l=0;do r=t+(s-t)/2,a=Ii(r,n,i)-e,a>0?s=r:t=r;while(Math.abs(a)>_a&&++l<Ga);return r}function nt(e,t,s,n){if(e===t&&s===n)return X;const i=a=>Ya(a,0,1,e,s);return a=>a===0||a===1?a:Ii(i(a),t,n)}const Bi=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fi=e=>t=>1-e(1-t),Oi=nt(.33,1.53,.69,.99),As=Fi(Oi),$i=Bi(As),Ki=e=>(e*=2)<1?.5*As(e):.5*(2-Math.pow(2,-10*(e-1))),Ms=e=>1-Math.sin(Math.acos(e)),Ui=Fi(Ms),Wi=Bi(Ms),Xa=nt(.42,0,1,1),Za=nt(0,0,.58,1),qi=nt(.42,0,.58,1),Qa=e=>Array.isArray(e)&&typeof e[0]!="number",zi=e=>Array.isArray(e)&&typeof e[0]=="number",an={linear:X,easeIn:Xa,easeInOut:qi,easeOut:Za,circIn:Ms,circInOut:Wi,circOut:Ui,backIn:As,backInOut:$i,backOut:Oi,anticipate:Ki},Ja=e=>typeof e=="string",on=e=>{if(zi(e)){Ce(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,s,n,i]=e;return nt(t,s,n,i)}else if(Ja(e))return Ce(an[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),an[e];return e},ot=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],ln={value:null,addProjectionMetrics:null};function eo(e,t){let s=new Set,n=new Set,i=!1,a=!1;const r=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1},c=0;function d(h){r.has(h)&&(u.schedule(h),e()),c++,h(l)}const u={schedule:(h,m=!1,f=!1)=>{const g=f&&i?s:n;return m&&r.add(h),g.has(h)||g.add(h),h},cancel:h=>{n.delete(h),r.delete(h)},process:h=>{if(l=h,i){a=!0;return}i=!0,[s,n]=[n,s],s.forEach(d),t&&ln.value&&ln.value.frameloop[t].push(c),c=0,s.clear(),i=!1,a&&(a=!1,u.process(h))}};return u}const to=40;function Hi(e,t){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>s=!0,r=ot.reduce((y,P)=>(y[P]=eo(a,t?P:void 0),y),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:h,preRender:m,render:f,postRender:x}=r,g=()=>{const y=ae.useManualTiming?i.timestamp:performance.now();s=!1,ae.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,to),1)),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),m.process(i),f.process(i),x.process(i),i.isProcessing=!1,s&&t&&(n=!1,e(g))},v=()=>{s=!0,n=!0,i.isProcessing||e(g)};return{schedule:ot.reduce((y,P)=>{const j=r[P];return y[P]=(N,V=!1,C=!1)=>(s||v(),j.schedule(N,V,C)),y},{}),cancel:y=>{for(let P=0;P<ot.length;P++)r[ot[P]].cancel(y)},state:i,steps:r}}const{schedule:D,cancel:ce,state:U,steps:Et}=Hi(typeof requestAnimationFrame<"u"?requestAnimationFrame:X,!0);let ft;function so(){ft=void 0}const z={now:()=>(ft===void 0&&z.set(U.isProcessing||ae.useManualTiming?U.timestamp:performance.now()),ft),set:e=>{ft=e,queueMicrotask(so)}},_i=e=>t=>typeof t=="string"&&t.startsWith(e),Gi=_i("--"),no=_i("var(--"),Ds=e=>no(e)?io.test(e.split("/*")[0].trim()):!1,io=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function cn(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ve={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ze={...Ve,transform:e=>ne(0,1,e)},lt={...Ve,default:1},Ue=e=>Math.round(e*1e5)/1e5,Es=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ro(e){return e==null}const ao=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rs=(e,t)=>s=>!!(typeof s=="string"&&ao.test(s)&&s.startsWith(e)||t&&!ro(s)&&Object.prototype.hasOwnProperty.call(s,t)),Yi=(e,t,s)=>n=>{if(typeof n!="string")return n;const[i,a,r,l]=n.match(Es);return{[e]:parseFloat(i),[t]:parseFloat(a),[s]:parseFloat(r),alpha:l!==void 0?parseFloat(l):1}},oo=e=>ne(0,255,e),Rt={...Ve,transform:e=>Math.round(oo(e))},ge={test:Rs("rgb","red"),parse:Yi("red","green","blue"),transform:({red:e,green:t,blue:s,alpha:n=1})=>"rgba("+Rt.transform(e)+", "+Rt.transform(t)+", "+Rt.transform(s)+", "+Ue(Ze.transform(n))+")"};function lo(e){let t="",s="",n="",i="";return e.length>5?(t=e.substring(1,3),s=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),s=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,s+=s,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const Qt={test:Rs("#"),parse:lo,transform:ge.transform},it=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oe=it("deg"),se=it("%"),S=it("px"),co=it("vh"),uo=it("vw"),un={...se,parse:e=>se.parse(e)/100,transform:e=>se.transform(e*100)},we={test:Rs("hsl","hue"),parse:Yi("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:s,alpha:n=1})=>"hsla("+Math.round(e)+", "+se.transform(Ue(t))+", "+se.transform(Ue(s))+", "+Ue(Ze.transform(n))+")"},F={test:e=>ge.test(e)||Qt.test(e)||we.test(e),parse:e=>ge.test(e)?ge.parse(e):we.test(e)?we.parse(e):Qt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ge.transform(e):we.transform(e),getAnimatableNone:e=>{const t=F.parse(e);return t.alpha=0,F.transform(t)}},ho=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function mo(e){return isNaN(e)&&typeof e=="string"&&(e.match(Es)?.length||0)+(e.match(ho)?.length||0)>0}const Xi="number",Zi="color",fo="var",po="var(",dn="${}",xo=/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 Qe(e){const t=e.toString(),s=[],n={color:[],number:[],var:[]},i=[];let a=0;const l=t.replace(xo,c=>(F.test(c)?(n.color.push(a),i.push(Zi),s.push(F.parse(c))):c.startsWith(po)?(n.var.push(a),i.push(fo),s.push(c)):(n.number.push(a),i.push(Xi),s.push(parseFloat(c))),++a,dn)).split(dn);return{values:s,split:l,indexes:n,types:i}}function Qi(e){return Qe(e).values}function Ji(e){const{split:t,types:s}=Qe(e),n=t.length;return i=>{let a="";for(let r=0;r<n;r++)if(a+=t[r],i[r]!==void 0){const l=s[r];l===Xi?a+=Ue(i[r]):l===Zi?a+=F.transform(i[r]):a+=i[r]}return a}}const go=e=>typeof e=="number"?0:F.test(e)?F.getAnimatableNone(e):e;function yo(e){const t=Qi(e);return Ji(e)(t.map(go))}const ue={test:mo,parse:Qi,createTransformer:Ji,getAnimatableNone:yo};function Lt(e,t,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?e+(t-e)*6*s:s<1/2?t:s<2/3?e+(t-e)*(2/3-s)*6:e}function vo({hue:e,saturation:t,lightness:s,alpha:n}){e/=360,t/=100,s/=100;let i=0,a=0,r=0;if(!t)i=a=r=s;else{const l=s<.5?s*(1+t):s+t-s*t,c=2*s-l;i=Lt(c,l,e+1/3),a=Lt(c,l,e),r=Lt(c,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(r*255),alpha:n}}function wt(e,t){return s=>s>0?t:e}const L=(e,t,s)=>e+(t-e)*s,It=(e,t,s)=>{const n=e*e,i=s*(t*t-n)+n;return i<0?0:Math.sqrt(i)},bo=[Qt,ge,we],wo=e=>bo.find(t=>t.test(e));function hn(e){const t=wo(e);if(Vt(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let s=t.parse(e);return t===we&&(s=vo(s)),s}const mn=(e,t)=>{const s=hn(e),n=hn(t);if(!s||!n)return wt(e,t);const i={...s};return a=>(i.red=It(s.red,n.red,a),i.green=It(s.green,n.green,a),i.blue=It(s.blue,n.blue,a),i.alpha=L(s.alpha,n.alpha,a),ge.transform(i))},Jt=new Set(["none","hidden"]);function jo(e,t){return Jt.has(e)?s=>s<=0?e:t:s=>s>=1?t:e}function To(e,t){return s=>L(e,t,s)}function Ls(e){return typeof e=="number"?To:typeof e=="string"?Ds(e)?wt:F.test(e)?mn:Co:Array.isArray(e)?er:typeof e=="object"?F.test(e)?mn:So:wt}function er(e,t){const s=[...e],n=s.length,i=e.map((a,r)=>Ls(a)(a,t[r]));return a=>{for(let r=0;r<n;r++)s[r]=i[r](a);return s}}function So(e,t){const s={...e,...t},n={};for(const i in s)e[i]!==void 0&&t[i]!==void 0&&(n[i]=Ls(e[i])(e[i],t[i]));return i=>{for(const a in n)s[a]=n[a](i);return s}}function Po(e,t){const s=[],n={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],r=e.indexes[a][n[a]],l=e.values[r]??0;s[i]=l,n[a]++}return s}const Co=(e,t)=>{const s=ue.createTransformer(t),n=Qe(e),i=Qe(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Jt.has(e)&&!i.values.length||Jt.has(t)&&!n.values.length?jo(e,t):st(er(Po(n,i),i.values),s):(Vt(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),wt(e,t))};function tr(e,t,s){return typeof e=="number"&&typeof t=="number"&&typeof s=="number"?L(e,t,s):Ls(e)(e,t)}const No=e=>{const t=({timestamp:s})=>e(s);return{start:(s=!0)=>D.update(t,s),stop:()=>ce(t),now:()=>U.isProcessing?U.timestamp:z.now()}},sr=(e,t,s=10)=>{let n="";const i=Math.max(Math.round(t/s),2);for(let a=0;a<i;a++)n+=Math.round(e(a/(i-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},jt=2e4;function Is(e){let t=0;const s=50;let n=e.next(t);for(;!n.done&&t<jt;)t+=s,n=e.next(t);return t>=jt?1/0:t}function ko(e,t=100,s){const n=s({...e,keyframes:[0,t]}),i=Math.min(Is(n),jt);return{type:"keyframes",ease:a=>n.next(i*a).value/t,duration:Y(i)}}const Vo=5;function nr(e,t,s){const n=Math.max(t-Vo,0);return Li(s-e(n),t-n)}const R={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},Bt=.001;function Ao({duration:e=R.duration,bounce:t=R.bounce,velocity:s=R.velocity,mass:n=R.mass}){let i,a;Vt(e<=te(R.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let r=1-t;r=ne(R.minDamping,R.maxDamping,r),e=ne(R.minDuration,R.maxDuration,Y(e)),r<1?(i=d=>{const u=d*r,h=u*e,m=u-s,f=es(d,r),x=Math.exp(-h);return Bt-m/f*x},a=d=>{const h=d*r*e,m=h*s+s,f=Math.pow(r,2)*Math.pow(d,2)*e,x=Math.exp(-h),g=es(Math.pow(d,2),r);return(-i(d)+Bt>0?-1:1)*((m-f)*x)/g}):(i=d=>{const u=Math.exp(-d*e),h=(d-s)*e+1;return-Bt+u*h},a=d=>{const u=Math.exp(-d*e),h=(s-d)*(e*e);return u*h});const l=5/e,c=Do(i,a,l);if(e=te(e),isNaN(c))return{stiffness:R.stiffness,damping:R.damping,duration:e};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:r*2*Math.sqrt(n*d),duration:e}}}const Mo=12;function Do(e,t,s){let n=s;for(let i=1;i<Mo;i++)n=n-e(n)/t(n);return n}function es(e,t){return e*Math.sqrt(1-t*t)}const Eo=["duration","bounce"],Ro=["stiffness","damping","mass"];function fn(e,t){return t.some(s=>e[s]!==void 0)}function Lo(e){let t={velocity:R.velocity,stiffness:R.stiffness,damping:R.damping,mass:R.mass,isResolvedFromDuration:!1,...e};if(!fn(e,Ro)&&fn(e,Eo))if(e.visualDuration){const s=e.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,a=2*ne(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:R.mass,stiffness:i,damping:a}}else{const s=Ao(e);t={...t,...s,mass:R.mass},t.isResolvedFromDuration=!0}return t}function Tt(e=R.visualDuration,t=R.bounce){const s=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:i}=s;const a=s.keyframes[0],r=s.keyframes[s.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:d,mass:u,duration:h,velocity:m,isResolvedFromDuration:f}=Lo({...s,velocity:-Y(s.velocity||0)}),x=m||0,g=d/(2*Math.sqrt(c*u)),v=r-a,b=Y(Math.sqrt(c/u)),w=Math.abs(v)<5;n||(n=w?R.restSpeed.granular:R.restSpeed.default),i||(i=w?R.restDelta.granular:R.restDelta.default);let y;if(g<1){const j=es(b,g);y=N=>{const V=Math.exp(-g*b*N);return r-V*((x+g*b*v)/j*Math.sin(j*N)+v*Math.cos(j*N))}}else if(g===1)y=j=>r-Math.exp(-b*j)*(v+(x+b*v)*j);else{const j=b*Math.sqrt(g*g-1);y=N=>{const V=Math.exp(-g*b*N),C=Math.min(j*N,300);return r-V*((x+g*b*v)*Math.sinh(C)+j*v*Math.cosh(C))/j}}const P={calculatedDuration:f&&h||null,next:j=>{const N=y(j);if(f)l.done=j>=h;else{let V=j===0?x:0;g<1&&(V=j===0?te(x):nr(y,j,N));const C=Math.abs(V)<=n,k=Math.abs(r-N)<=i;l.done=C&&k}return l.value=l.done?r:N,l},toString:()=>{const j=Math.min(Is(P),jt),N=sr(V=>P.next(j*V).value,j,30);return j+"ms "+N},toTransition:()=>{}};return P}Tt.applyToOptions=e=>{const t=ko(e,100,Tt);return e.ease=t.ease,e.duration=te(t.duration),e.type="keyframes",e};function ts({keyframes:e,velocity:t=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:r,min:l,max:c,restDelta:d=.5,restSpeed:u}){const h=e[0],m={done:!1,value:h},f=C=>l!==void 0&&C<l||c!==void 0&&C>c,x=C=>l===void 0?c:c===void 0||Math.abs(l-C)<Math.abs(c-C)?l:c;let g=s*t;const v=h+g,b=r===void 0?v:r(v);b!==v&&(g=b-h);const w=C=>-g*Math.exp(-C/n),y=C=>b+w(C),P=C=>{const k=w(C),E=y(C);m.done=Math.abs(k)<=d,m.value=m.done?b:E};let j,N;const V=C=>{f(m.value)&&(j=C,N=Tt({keyframes:[m.value,x(m.value)],velocity:nr(y,C,m.value),damping:i,stiffness:a,restDelta:d,restSpeed:u}))};return V(0),{calculatedDuration:null,next:C=>{let k=!1;return!N&&j===void 0&&(k=!0,P(C),V(C)),j!==void 0&&C>=j?N.next(C-j):(!k&&P(C),m)}}}function Io(e,t,s){const n=[],i=s||ae.mix||tr,a=e.length-1;for(let r=0;r<a;r++){let l=i(e[r],e[r+1]);if(t){const c=Array.isArray(t)?t[r]||X:t;l=st(c,l)}n.push(l)}return n}function Bo(e,t,{clamp:s=!0,ease:n,mixer:i}={}){const a=e.length;if(Ce(a===t.length,"Both input and output ranges must be the same length","range-length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const r=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=Io(t,n,i),c=l.length,d=u=>{if(r&&u<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(u<e[h+1]);h++);const m=Xe(e[h],e[h+1],u);return l[h](m)};return s?u=>d(ne(e[0],e[a-1],u)):d}function Fo(e,t){const s=e[e.length-1];for(let n=1;n<=t;n++){const i=Xe(0,t,n);e.push(L(s,1,i))}}function Oo(e){const t=[0];return Fo(t,e.length-1),t}function $o(e,t){return e.map(s=>s*t)}function Ko(e,t){return e.map(()=>t||qi).splice(0,e.length-1)}function We({duration:e=300,keyframes:t,times:s,ease:n="easeInOut"}){const i=Qa(n)?n.map(on):on(n),a={done:!1,value:t[0]},r=$o(s&&s.length===t.length?s:Oo(t),e),l=Bo(r,t,{ease:Array.isArray(i)?i:Ko(t,i)});return{calculatedDuration:e,next:c=>(a.value=l(c),a.done=c>=e,a)}}const Uo=e=>e!==null;function Bs(e,{repeat:t,repeatType:s="loop"},n,i=1){const a=e.filter(Uo),l=i<0||t&&s!=="loop"&&t%2===1?0:a.length-1;return!l||n===void 0?a[l]:n}const Wo={decay:ts,inertia:ts,tween:We,keyframes:We,spring:Tt};function ir(e){typeof e.type=="string"&&(e.type=Wo[e.type])}class Fs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,s){return this.finished.then(t,s)}}const qo=e=>e/100;class Os extends Fs{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:s}=this.options;s&&s.updatedAt!==z.now()&&this.tick(z.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ir(t);const{type:s=We,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:r=0}=t;let{keyframes:l}=t;const c=s||We;c!==We&&typeof l[0]!="number"&&(this.mixKeyframes=st(qo,tr(l[0],l[1])),l=[0,100]);const d=c({...t,keyframes:l});a==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...l].reverse(),velocity:-r})),d.calculatedDuration===null&&(d.calculatedDuration=Is(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=d}updateTime(t){const s=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=s}tick(t,s=!1){const{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:r,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);const{delay:d=0,keyframes:u,repeat:h,repeatType:m,repeatDelay:f,type:x,onUpdate:g,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),s?this.currentTime=t:this.updateTime(t);const b=this.currentTime-d*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?b<0:b>i;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let y=this.currentTime,P=n;if(h){const C=Math.min(this.currentTime,i)/l;let k=Math.floor(C),E=C%1;!E&&C>=1&&(E=1),E===1&&k--,k=Math.min(k,h+1),!!(k%2)&&(m==="reverse"?(E=1-E,f&&(E-=f/l)):m==="mirror"&&(P=r)),y=ne(0,1,E)*l}const j=w?{done:!1,value:u[0]}:P.next(y);a&&(j.value=a(j.value));let{done:N}=j;!w&&c!==null&&(N=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return V&&x!==ts&&(j.value=Bs(u,this.options,v,this.speed)),g&&g(j.value),V&&this.finish(),j}then(t,s){return this.finished.then(t,s)}get duration(){return Y(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Y(t)}get time(){return Y(this.currentTime)}set time(t){t=te(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(z.now());const s=this.playbackSpeed!==t;this.playbackSpeed=t,s&&(this.time=Y(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=No,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=s??n),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(z.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(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function zo(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ye=e=>e*180/Math.PI,ss=e=>{const t=ye(Math.atan2(e[1],e[0]));return ns(t)},Ho={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ss,rotateZ:ss,skewX:e=>ye(Math.atan(e[1])),skewY:e=>ye(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ns=e=>(e=e%360,e<0&&(e+=360),e),pn=ss,xn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),gn=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),_o={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xn,scaleY:gn,scale:e=>(xn(e)+gn(e))/2,rotateX:e=>ns(ye(Math.atan2(e[6],e[5]))),rotateY:e=>ns(ye(Math.atan2(-e[2],e[0]))),rotateZ:pn,rotate:pn,skewX:e=>ye(Math.atan(e[4])),skewY:e=>ye(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function is(e){return e.includes("scale")?1:0}function rs(e,t){if(!e||e==="none")return is(t);const s=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=_o,i=s;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Ho,i=l}if(!i)return is(t);const a=n[t],r=i[1].split(",").map(Yo);return typeof a=="function"?a(r):r[a]}const Go=(e,t)=>{const{transform:s="none"}=getComputedStyle(e);return rs(s,t)};function Yo(e){return parseFloat(e.trim())}const Ae=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Me=new Set(Ae),yn=e=>e===Ve||e===S,Xo=new Set(["x","y","z"]),Zo=Ae.filter(e=>!Xo.has(e));function Qo(e){const t=[];return Zo.forEach(s=>{const n=e.getValue(s);n!==void 0&&(t.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),t}const le={width:({x:e},{paddingLeft:t="0",paddingRight:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),height:({y:e},{paddingTop:t="0",paddingBottom:s="0"})=>e.max-e.min-parseFloat(t)-parseFloat(s),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rs(t,"x"),y:(e,{transform:t})=>rs(t,"y")};le.translateX=le.x;le.translateY=le.y;const ve=new Set;let as=!1,os=!1,ls=!1;function rr(){if(os){const e=Array.from(ve).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),s=new Map;t.forEach(n=>{const i=Qo(n);i.length&&(s.set(n,i),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([a,r])=>{n.getValue(a)?.set(r)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}os=!1,as=!1,ve.forEach(e=>e.complete(ls)),ve.clear()}function ar(){ve.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(os=!0)})}function Jo(){ls=!0,ar(),rr(),ls=!1}class $s{constructor(t,s,n,i,a,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=s,this.name=n,this.motionValue=i,this.element=a,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(ve.add(this),as||(as=!0,D.read(ar),D.resolveKeyframes(rr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:s,element:n,motionValue:i}=this;if(t[0]===null){const a=i?.get(),r=t[t.length-1];if(a!==void 0)t[0]=a;else if(n&&s){const l=n.readValue(s,r);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=r),i&&a===void 0&&i.set(t[0])}zo(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ve.delete(this)}cancel(){this.state==="scheduled"&&(ve.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const el=e=>e.startsWith("--");function tl(e,t,s){el(t)?e.style.setProperty(t,s):e.style[t]=s}const sl=ks(()=>window.ScrollTimeline!==void 0),nl={};function il(e,t){const s=ks(e);return()=>nl[t]??s()}const or=il(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Fe=([e,t,s,n])=>`cubic-bezier(${e}, ${t}, ${s}, ${n})`,vn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Fe([0,.65,.55,1]),circOut:Fe([.55,0,1,.45]),backIn:Fe([.31,.01,.66,-.59]),backOut:Fe([.33,1.53,.69,.99])};function lr(e,t){if(e)return typeof e=="function"?or()?sr(e,t):"ease-out":zi(e)?Fe(e):Array.isArray(e)?e.map(s=>lr(s,t)||vn.easeOut):vn[e]}function rl(e,t,s,{delay:n=0,duration:i=300,repeat:a=0,repeatType:r="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[t]:s};c&&(u.offset=c);const h=lr(l,i);Array.isArray(h)&&(u.easing=h);const m={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:a+1,direction:r==="reverse"?"alternate":"normal"};return d&&(m.pseudoElement=d),e.animate(u,m)}function cr(e){return typeof e=="function"&&"applyToOptions"in e}function al({type:e,...t}){return cr(e)&&or()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ol extends Fs{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:s,name:n,keyframes:i,pseudoElement:a,allowFlatten:r=!1,finalKeyframe:l,onComplete:c}=t;this.isPseudoElement=!!a,this.allowFlatten=r,this.options=t,Ce(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const d=al(t);this.animation=rl(s,n,i,d,a),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const u=Bs(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(u):tl(s,n,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:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Y(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Y(t)}get time(){return Y(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=te(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:s}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&sl()?(this.animation.timeline=t,X):s(this)}}const ur={anticipate:Ki,backInOut:$i,circInOut:Wi};function ll(e){return e in ur}function cl(e){typeof e.ease=="string"&&ll(e.ease)&&(e.ease=ur[e.ease])}const Ft=10;class ul extends ol{constructor(t){cl(t),ir(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:s,onUpdate:n,onComplete:i,element:a,...r}=this.options;if(!s)return;if(t!==void 0){s.set(t);return}const l=new Os({...r,autoplay:!1}),c=Math.max(Ft,z.now()-this.startTime),d=ne(0,Ft,c-Ft);s.setWithVelocity(l.sample(Math.max(0,c-d)).value,l.sample(c).value,d),l.stop()}}const bn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ue.test(e)||e==="0")&&!e.startsWith("url("));function dl(e){const t=e[0];if(e.length===1)return!0;for(let s=0;s<e.length;s++)if(e[s]!==t)return!0}function hl(e,t,s,n){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],r=bn(i,t),l=bn(a,t);return Vt(r===l,`You are trying to animate ${t} from "${i}" to "${a}". "${r?a:i}" is not an animatable value.`,"value-not-animatable"),!r||!l?!1:dl(e)||(s==="spring"||cr(s))&&n}function cs(e){e.duration=0,e.type="keyframes"}const ml=new Set(["opacity","clipPath","filter","transform"]),fl=ks(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function pl(e){const{motionValue:t,name:s,repeatDelay:n,repeatType:i,damping:a,type:r}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=t.owner.getProps();return fl()&&s&&ml.has(s)&&(s!=="transform"||!d)&&!c&&!n&&i!=="mirror"&&a!==0&&r!=="inertia"}const xl=40;class gl extends Fs{constructor({autoplay:t=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:r="loop",keyframes:l,name:c,motionValue:d,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=z.now();const m={autoplay:t,delay:s,type:n,repeat:i,repeatDelay:a,repeatType:r,name:c,motionValue:d,element:u,...h},f=u?.KeyframeResolver||$s;this.keyframeResolver=new f(l,(x,g,v)=>this.onKeyframesResolved(x,g,m,!v),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,s,n,i){this.keyframeResolver=void 0;const{name:a,type:r,velocity:l,delay:c,isHandoff:d,onUpdate:u}=n;this.resolvedAt=z.now(),hl(t,a,r,l)||((ae.instantAnimations||!c)&&u?.(Bs(t,n,s)),t[0]=t[t.length-1],cs(n),n.repeat=0);const m={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>xl?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:s,...n,keyframes:t},f=!d&&pl(m),x=m.motionValue?.owner?.current,g=f?new ul({...m,element:x}):new Os(m);g.finished.then(()=>{this.notifyFinished()}).catch(X),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,s){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Jo()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function dr(e,t,s,n=0,i=1){const a=Array.from(e).sort((d,u)=>d.sortNodePosition(u)).indexOf(t),r=e.size,l=(r-1)*n;return typeof s=="function"?s(a,r):i===1?a*n:l-a*n}const yl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vl(e){const t=yl.exec(e);if(!t)return[,];const[,s,n,i]=t;return[`--${s??n}`,i]}const bl=4;function hr(e,t,s=1){Ce(s<=bl,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,i]=vl(e);if(!n)return;const a=window.getComputedStyle(t).getPropertyValue(n);if(a){const r=a.trim();return Di(r)?parseFloat(r):r}return Ds(i)?hr(i,t,s+1):i}const wl={type:"spring",stiffness:500,damping:25,restSpeed:10},jl=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Tl={type:"keyframes",duration:.8},Sl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pl=(e,{keyframes:t})=>t.length>2?Tl:Me.has(e)?e.startsWith("scale")?jl(t[1]):wl:Sl,Cl=e=>e!==null;function Nl(e,{repeat:t,repeatType:s="loop"},n){const i=e.filter(Cl),a=t&&s!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}function Ks(e,t){return e?.[t]??e?.default??e}function kl({when:e,delay:t,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:r,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const Us=(e,t,s,n={},i,a)=>r=>{const l=Ks(n,e)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-te(c);const u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-d,onUpdate:m=>{t.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{r(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:a?void 0:i};kl(l)||Object.assign(u,Pl(e,u)),u.duration&&(u.duration=te(u.duration)),u.repeatDelay&&(u.repeatDelay=te(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(cs(u),u.delay===0&&(h=!0)),(ae.instantAnimations||ae.skipAnimations)&&(h=!0,cs(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,h&&!a&&t.get()!==void 0){const m=Nl(u.keyframes,l);if(m!==void 0){D.update(()=>{u.onUpdate(m),u.onComplete()});return}}return l.isSync?new Os(u):new gl(u)};function wn(e){const t=[{},{}];return e?.values.forEach((s,n)=>{t[0][n]=s.get(),t[1][n]=s.getVelocity()}),t}function Ws(e,t,s,n){if(typeof t=="function"){const[i,a]=wn(n);t=t(s!==void 0?s:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=wn(n);t=t(s!==void 0?s:e.custom,i,a)}return t}function Pe(e,t,s){const n=e.getProps();return Ws(n,t,s!==void 0?s:n.custom,e)}const mr=new Set(["width","height","top","left","right","bottom",...Ae]),jn=30,Vl=e=>!isNaN(parseFloat(e));class Al{constructor(t,s={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const i=z.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=s.owner}setCurrent(t){this.current=t,this.updatedAt=z.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Vl(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,s){this.events[t]||(this.events[t]=new Vs);const n=this.events[t].add(s);return t==="change"?()=>{n(),D.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,s){this.passiveEffect=t,this.stopPassiveEffect=s}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,s=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jn)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,jn);return Li(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(t){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=t(s),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 Ne(e,t){return new Al(e,t)}const us=e=>Array.isArray(e);function Ml(e,t,s){e.hasValue(t)?e.getValue(t).set(s):e.addValue(t,Ne(s))}function Dl(e){return us(e)?e[e.length-1]||0:e}function El(e,t){const s=Pe(e,t);let{transitionEnd:n={},transition:i={},...a}=s||{};a={...a,...n};for(const r in a){const l=Dl(a[r]);Ml(e,r,l)}}const W=e=>!!(e&&e.getVelocity);function Rl(e){return!!(W(e)&&e.add)}function ds(e,t){const s=e.getValue("willChange");if(Rl(s))return s.add(t);if(!s&&ae.WillChange){const n=new ae.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function qs(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const Ll="framerAppearId",fr="data-"+qs(Ll);function pr(e){return e.props[fr]}function Il({protectedKeys:e,needsAnimating:t},s){const n=e.hasOwnProperty(s)&&t[s]!==!0;return t[s]=!1,n}function xr(e,t,{delay:s=0,transitionOverride:n,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:r,...l}=t;n&&(a=n);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const u in l){const h=e.getValue(u,e.latestValues[u]??null),m=l[u];if(m===void 0||d&&Il(d,u))continue;const f={delay:s,...Ks(a||{},u)},x=h.get();if(x!==void 0&&!h.isAnimating&&!Array.isArray(m)&&m===x&&!f.velocity)continue;let g=!1;if(window.MotionHandoffAnimation){const b=pr(e);if(b){const w=window.MotionHandoffAnimation(b,u,D);w!==null&&(f.startTime=w,g=!0)}}ds(e,u),h.start(Us(u,h,m,e.shouldReduceMotion&&mr.has(u)?{type:!1}:f,e,g));const v=h.animation;v&&c.push(v)}return r&&Promise.all(c).then(()=>{D.update(()=>{r&&El(e,r)})}),c}function hs(e,t,s={}){const n=Pe(e,t,s.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=n||{};s.transitionOverride&&(i=s.transitionOverride);const a=n?()=>Promise.all(xr(e,n,s)):()=>Promise.resolve(),r=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:h}=i;return Bl(e,t,c,d,u,h,s)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[a,r]:[r,a];return c().then(()=>d())}else return Promise.all([a(),r(s.delay)])}function Bl(e,t,s=0,n=0,i=0,a=1,r){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),l.push(hs(c,t,{...r,delay:s+(typeof n=="function"?0:n)+dr(e.variantChildren,c,n,i,a)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(l)}function Fl(e,t,s={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const i=t.map(a=>hs(e,a,s));n=Promise.all(i)}else if(typeof t=="string")n=hs(e,t,s);else{const i=typeof t=="function"?Pe(e,t,s.custom):t;n=Promise.all(xr(e,i,s))}return n.then(()=>{e.notify("AnimationComplete",t)})}const Ol={test:e=>e==="auto",parse:e=>e},gr=e=>t=>t.test(e),yr=[Ve,S,se,oe,uo,co,Ol],Tn=e=>yr.find(gr(e));function $l(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ri(e):!0}const Kl=new Set(["brightness","contrast","saturate","opacity"]);function Ul(e){const[t,s]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=s.match(Es)||[];if(!n)return e;const i=s.replace(n,"");let a=Kl.has(t)?1:0;return n!==s&&(a*=100),t+"("+a+i+")"}const Wl=/\b([a-z-]*)\(.*?\)/gu,ms={...ue,getAnimatableNone:e=>{const t=e.match(Wl);return t?t.map(Ul).join(" "):e}},Sn={...Ve,transform:Math.round},ql={rotate:oe,rotateX:oe,rotateY:oe,rotateZ:oe,scale:lt,scaleX:lt,scaleY:lt,scaleZ:lt,skew:oe,skewX:oe,skewY:oe,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:Ze,originX:un,originY:un,originZ:S},zs={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,...ql,zIndex:Sn,fillOpacity:Ze,strokeOpacity:Ze,numOctaves:Sn},zl={...zs,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:ms,WebkitFilter:ms},vr=e=>zl[e];function br(e,t){let s=vr(e);return s!==ms&&(s=ue),s.getAnimatableNone?s.getAnimatableNone(t):void 0}const Hl=new Set(["auto","none","0"]);function _l(e,t,s){let n=0,i;for(;n<e.length&&!i;){const a=e[n];typeof a=="string"&&!Hl.has(a)&&Qe(a).values.length&&(i=e[n]),n++}if(i&&s)for(const a of t)e[a]=br(s,i)}class Gl extends $s{constructor(t,s,n,i,a){super(t,s,n,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let u=0;u<t.length;u++){let h=t[u];if(typeof h=="string"&&(h=h.trim(),Ds(h))){const m=hr(h,s.current);m!==void 0&&(t[u]=m),u===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!mr.has(n)||t.length!==2)return;const[i,a]=t,r=Tn(i),l=Tn(a),c=cn(i),d=cn(a);if(c!==d&&le[n]){this.needsMeasurement=!0;return}if(r!==l)if(yn(r)&&yn(l))for(let u=0;u<t.length;u++){const h=t[u];typeof h=="string"&&(t[u]=parseFloat(h))}else le[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:s}=this,n=[];for(let i=0;i<t.length;i++)(t[i]===null||$l(t[i]))&&n.push(i);n.length&&_l(t,n,s)}measureInitialState(){const{element:t,unresolvedKeyframes:s,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=le[n](t.measureViewportBox(),window.getComputedStyle(t.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&t.getValue(n,i).jump(i,!1)}measureEndState(){const{element:t,name:s,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const i=t.getValue(s);i&&i.jump(this.measuredOrigin,!1);const a=n.length-1,r=n[a];n[a]=le[s](t.measureViewportBox(),window.getComputedStyle(t.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([l,c])=>{t.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function Yl(e,t,s){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const i=document.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(n=>n!=null)}const wr=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function fs(e){return Ei(e)&&"offsetHeight"in e}const{schedule:Hs,cancel:rh}=Hi(queueMicrotask,!1),Q={x:!1,y:!1};function jr(){return Q.x||Q.y}function Xl(e){return e==="x"||e==="y"?Q[e]?null:(Q[e]=!0,()=>{Q[e]=!1}):Q.x||Q.y?null:(Q.x=Q.y=!0,()=>{Q.x=Q.y=!1})}function Tr(e,t){const s=Yl(e),n=new AbortController,i={passive:!0,...t,signal:n.signal};return[s,i,()=>n.abort()]}function Pn(e){return!(e.pointerType==="touch"||jr())}function Zl(e,t,s={}){const[n,i,a]=Tr(e,s),r=l=>{if(!Pn(l))return;const{target:c}=l,d=t(c,l);if(typeof d!="function"||!c)return;const u=h=>{Pn(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return n.forEach(l=>{l.addEventListener("pointerenter",r,i)}),a}const Sr=(e,t)=>t?e===t?!0:Sr(e,t.parentElement):!1,_s=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Ql=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Pr(e){return Ql.has(e.tagName)||e.isContentEditable===!0}const pt=new WeakSet;function Cn(e){return t=>{t.key==="Enter"&&e(t)}}function Ot(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Jl=(e,t)=>{const s=e.currentTarget;if(!s)return;const n=Cn(()=>{if(pt.has(s))return;Ot(s,"down");const i=Cn(()=>{Ot(s,"up")}),a=()=>Ot(s,"cancel");s.addEventListener("keyup",i,t),s.addEventListener("blur",a,t)});s.addEventListener("keydown",n,t),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),t)};function Nn(e){return _s(e)&&!jr()}function ec(e,t,s={}){const[n,i,a]=Tr(e,s),r=l=>{const c=l.currentTarget;if(!Nn(l))return;pt.add(c);const d=t(c,l),u=(f,x)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),pt.has(c)&&pt.delete(c),Nn(f)&&typeof d=="function"&&d(f,{success:x})},h=f=>{u(f,c===window||c===document||s.useGlobalTarget||Sr(c,f.target))},m=f=>{u(f,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return n.forEach(l=>{(s.useGlobalTarget?window:l).addEventListener("pointerdown",r,i),fs(l)&&(l.addEventListener("focus",d=>Jl(d,i)),!Pr(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),a}function Cr(e){return Ei(e)&&"ownerSVGElement"in e}function tc(e){return Cr(e)&&e.tagName==="svg"}const sc=[...yr,F,ue],nc=e=>sc.find(gr(e)),kn=()=>({translate:0,scale:1,origin:0,originPoint:0}),je=()=>({x:kn(),y:kn()}),Vn=()=>({min:0,max:0}),O=()=>({x:Vn(),y:Vn()}),ps={current:null},Nr={current:!1},ic=typeof window<"u";function rc(){if(Nr.current=!0,!!ic)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ps.current=e.matches;e.addEventListener("change",t),t()}else ps.current=!1}const ac=new WeakMap;function At(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Je(e){return typeof e=="string"||Array.isArray(e)}const Gs=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ys=["initial",...Gs];function Mt(e){return At(e.animate)||Ys.some(t=>Je(e[t]))}function kr(e){return!!(Mt(e)||e.variants)}function oc(e,t,s){for(const n in t){const i=t[n],a=s[n];if(W(i))e.addValue(n,i);else if(W(a))e.addValue(n,Ne(i,{owner:e}));else if(a!==i)if(e.hasValue(n)){const r=e.getValue(n);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=e.getStaticValue(n);e.addValue(n,Ne(r!==void 0?r:i,{owner:e}))}}for(const n in s)t[n]===void 0&&e.removeValue(n);return t}const An=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let St={};function Vr(e){St=e}function lc(){return St}class cc{scrapeMotionValuesFromProps(t,s,n){return{}}constructor({parent:t,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:a,visualState:r},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=$s,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=z.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,D.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=r;this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=s,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=Mt(s),this.isVariantNode=kr(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...h}=this.scrapeMotionValuesFromProps(s,{},this);for(const m in h){const f=h[m];c[m]!==void 0&&W(f)&&f.set(c[m])}}mount(t){this.current=t,ac.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Nr.current||rc(),this.shouldReduceMotion=ps.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ce(this.notifyUpdate),ce(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,s){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=Me.has(t);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",r=>{this.latestValues[t]=r,this.props.onUpdate&&D.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;typeof window<"u"&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,s)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),s.owner&&s.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in St){const s=St[t];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[t]&&i&&n(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):O()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,s){this.latestValues[t]=s}update(t,s){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<An.length;n++){const i=An[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,r=t[a];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=oc(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(t),()=>s.variantChildren.delete(t)}addValue(t,s){const n=this.values.get(t);s!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,s),this.values.set(t,s),this.latestValues[t]=s.get())}removeValue(t){this.values.delete(t);const s=this.valueSubscriptions.get(t);s&&(s(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,s){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&s!==void 0&&(n=Ne(s===null?void 0:s,{owner:this}),this.addValue(t,n)),n}readValue(t,s){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Di(n)||Ri(n))?n=parseFloat(n):!nc(n)&&ue.test(s)&&(n=br(t,s)),this.setBaseTarget(t,W(n)?n.get():n)),W(n)?n.get():n}setBaseTarget(t,s){this.baseTarget[t]=s}getBaseTarget(t){const{initial:s}=this.props;let n;if(typeof s=="string"||typeof s=="object"){const a=Ws(this.props,s,this.presenceContext?.custom);a&&(n=a[t])}if(s&&n!==void 0)return n;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!W(i)?i:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,s){return this.events[t]||(this.events[t]=new Vs),this.events[t].add(s)}notify(t,...s){this.events[t]&&this.events[t].notify(...s)}scheduleRenderMicrotask(){Hs.render(this.render)}}class Ar extends cc{constructor(){super(...arguments),this.KeyframeResolver=Gl}sortInstanceNodePosition(t,s){return t.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(t,s){const n=t.style;return n?n[s]:void 0}removeValueFromRenderState(t,{vars:s,style:n}){delete s[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;W(t)&&(this.childSubscription=t.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}class de{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Mr({top:e,left:t,right:s,bottom:n}){return{x:{min:t,max:s},y:{min:e,max:n}}}function uc({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function dc(e,t){if(!t)return e;const s=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function $t(e){return e===void 0||e===1}function xs({scale:e,scaleX:t,scaleY:s}){return!$t(e)||!$t(t)||!$t(s)}function pe(e){return xs(e)||Dr(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Dr(e){return Mn(e.x)||Mn(e.y)}function Mn(e){return e&&e!=="0%"}function Pt(e,t,s){const n=e-s,i=t*n;return s+i}function Dn(e,t,s,n,i){return i!==void 0&&(e=Pt(e,i,n)),Pt(e,s,n)+t}function gs(e,t=0,s=1,n,i){e.min=Dn(e.min,t,s,n,i),e.max=Dn(e.max,t,s,n,i)}function Er(e,{x:t,y:s}){gs(e.x,t.translate,t.scale,t.originPoint),gs(e.y,s.translate,s.scale,s.originPoint)}const En=.999999999999,Rn=1.0000000000001;function hc(e,t,s,n=!1){const i=s.length;if(!i)return;t.x=t.y=1;let a,r;for(let l=0;l<i;l++){a=s[l],r=a.projectionDelta;const{visualElement:c}=a.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Se(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),r&&(t.x*=r.x.scale,t.y*=r.y.scale,Er(e,r)),n&&pe(a.latestValues)&&Se(e,a.latestValues))}t.x<Rn&&t.x>En&&(t.x=1),t.y<Rn&&t.y>En&&(t.y=1)}function Te(e,t){e.min=e.min+t,e.max=e.max+t}function Ln(e,t,s,n,i=.5){const a=L(e.min,e.max,i);gs(e,t,s,a,n)}function Se(e,t){Ln(e.x,t.x,t.scaleX,t.scale,t.originX),Ln(e.y,t.y,t.scaleY,t.scale,t.originY)}function Rr(e,t){return Mr(dc(e.getBoundingClientRect(),t))}function mc(e,t,s){const n=Rr(e,s),{scroll:i}=t;return i&&(Te(n.x,i.offset.x),Te(n.y,i.offset.y)),n}const fc={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},pc=Ae.length;function xc(e,t,s){let n="",i=!0;for(let a=0;a<pc;a++){const r=Ae[a],l=e[r];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(r.startsWith("scale")?1:0);else{const d=parseFloat(l);c=r.startsWith("scale")?d===1:d===0}if(!c||s){const d=wr(l,zs[r]);if(!c){i=!1;const u=fc[r]||r;n+=`${u}(${d}) `}s&&(t[r]=d)}}return n=n.trim(),s?n=s(t,i?"":n):i&&(n="none"),n}function Xs(e,t,s){const{style:n,vars:i,transformOrigin:a}=e;let r=!1,l=!1;for(const c in t){const d=t[c];if(Me.has(c)){r=!0;continue}else if(Gi(c)){i[c]=d;continue}else{const u=wr(d,zs[c]);c.startsWith("origin")?(l=!0,a[c]=u):n[c]=u}}if(t.transform||(r||s?n.transform=xc(t,e.transform,s):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=a;n.transformOrigin=`${c} ${d} ${u}`}}function Lr(e,{style:t,vars:s},n,i){const a=e.style;let r;for(r in t)a[r]=t[r];i?.applyProjectionStyles(a,n);for(r in s)a.setProperty(r,s[r])}function In(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ee={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(S.test(e))e=parseFloat(e);else return e;const s=In(e,t.target.x),n=In(e,t.target.y);return`${s}% ${n}%`}},gc={correct:(e,{treeScale:t,projectionDelta:s})=>{const n=e,i=ue.parse(e);if(i.length>5)return n;const a=ue.createTransformer(e),r=typeof i[0]!="number"?1:0,l=s.x.scale*t.x,c=s.y.scale*t.y;i[0+r]/=l,i[1+r]/=c;const d=L(l,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=d),typeof i[3+r]=="number"&&(i[3+r]/=d),a(i)}},ys={borderRadius:{...Ee,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomLeftRadius:Ee,borderBottomRightRadius:Ee,boxShadow:gc};function Ir(e,{layout:t,layoutId:s}){return Me.has(e)||e.startsWith("origin")||(t||s!==void 0)&&(!!ys[e]||e==="opacity")}function Zs(e,t,s){const n=e.style,i=t?.style,a={};if(!n)return a;for(const r in n)(W(n[r])||i&&W(i[r])||Ir(r,e)||s?.getValue(r)?.liveStyle!==void 0)&&(a[r]=n[r]);return a}function yc(e){return window.getComputedStyle(e)}class vc extends Ar{constructor(){super(...arguments),this.type="html",this.renderInstance=Lr}readValueFromInstance(t,s){if(Me.has(s))return this.projection?.isProjecting?is(s):Go(t,s);{const n=yc(t),i=(Gi(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:s}){return Rr(t,s)}build(t,s,n){Xs(t,s,n.transformTemplate)}scrapeMotionValuesFromProps(t,s,n){return Zs(t,s,n)}}const bc={offset:"stroke-dashoffset",array:"stroke-dasharray"},wc={offset:"strokeDashoffset",array:"strokeDasharray"};function jc(e,t,s=1,n=0,i=!0){e.pathLength=1;const a=i?bc:wc;e[a.offset]=`${-n}`,e[a.array]=`${t} ${s}`}const Tc=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Br(e,{attrX:t,attrY:s,attrScale:n,pathLength:i,pathSpacing:a=1,pathOffset:r=0,...l},c,d,u){if(Xs(e,l,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:m}=e;h.transform&&(m.transform=h.transform,delete h.transform),(m.transform||h.transformOrigin)&&(m.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),m.transform&&(m.transformBox=u?.transformBox??"fill-box",delete h.transformBox);for(const f of Tc)h[f]!==void 0&&(m[f]=h[f],delete h[f]);t!==void 0&&(h.x=t),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),i!==void 0&&jc(h,i,a,r,!1)}const Fr=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"]),Or=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Sc(e,t,s,n){Lr(e,t,void 0,n);for(const i in t.attrs)e.setAttribute(Fr.has(i)?i:qs(i),t.attrs[i])}function $r(e,t,s){const n=Zs(e,t,s);for(const i in e)if(W(e[i])||W(t[i])){const a=Ae.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[a]=e[i]}return n}class Pc extends Ar{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=O}getBaseTargetFromProps(t,s){return t[s]}readValueFromInstance(t,s){if(Me.has(s)){const n=vr(s);return n&&n.default||0}return s=Fr.has(s)?s:qs(s),t.getAttribute(s)}scrapeMotionValuesFromProps(t,s,n){return $r(t,s,n)}build(t,s,n){Br(t,s,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,s,n,i){Sc(t,s,n,i)}mount(t){this.isSVGTag=Or(t.tagName),super.mount(t)}}const Cc=Ys.length;function Kr(e){if(!e)return;if(!e.isControllingVariants){const s=e.parent?Kr(e.parent)||{}:{};return e.props.initial!==void 0&&(s.initial=e.props.initial),s}const t={};for(let s=0;s<Cc;s++){const n=Ys[s],i=e.props[n];(Je(i)||i===!1)&&(t[n]=i)}return t}function Ur(e,t){if(!Array.isArray(t))return!1;const s=t.length;if(s!==e.length)return!1;for(let n=0;n<s;n++)if(t[n]!==e[n])return!1;return!0}const Nc=[...Gs].reverse(),kc=Gs.length;function Vc(e){return t=>Promise.all(t.map(({animation:s,options:n})=>Fl(e,s,n)))}function Ac(e){let t=Vc(e),s=Bn(),n=!0;const i=c=>(d,u)=>{const h=Pe(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:m,transitionEnd:f,...x}=h;d={...d,...x,...f}}return d};function a(c){t=c(e)}function r(c){const{props:d}=e,u=Kr(e.parent)||{},h=[],m=new Set;let f={},x=1/0;for(let v=0;v<kc;v++){const b=Nc[v],w=s[b],y=d[b]!==void 0?d[b]:u[b],P=Je(y),j=b===c?w.isActive:null;j===!1&&(x=v);let N=y===u[b]&&y!==d[b]&&P;if(N&&n&&e.manuallyAnimateOnMount&&(N=!1),w.protectedKeys={...f},!w.isActive&&j===null||!y&&!w.prevProp||At(y)||typeof y=="boolean")continue;const V=Mc(w.prevProp,y);let C=V||b===c&&w.isActive&&!N&&P||v>x&&P,k=!1;const E=Array.isArray(y)?y:[y];let A=E.reduce(i(b),{});j===!1&&(A={});const{prevResolvedValues:B={}}=w,_={...B,...A},he=I=>{C=!0,m.has(I)&&(k=!0,m.delete(I)),w.needsAnimating[I]=!0;const K=e.getValue(I);K&&(K.liveStyle=!1)};for(const I in _){const K=A[I],q=B[I];if(f.hasOwnProperty(I))continue;let T=!1;us(K)&&us(q)?T=!Ur(K,q):T=K!==q,T?K!=null?he(I):m.add(I):K!==void 0&&m.has(I)?he(I):w.protectedKeys[I]=!0}w.prevProp=y,w.prevResolvedValues=A,w.isActive&&(f={...f,...A}),n&&e.blockInitialAnimation&&(C=!1);const me=N&&V;C&&(!me||k)&&h.push(...E.map(I=>{const K={type:b};if(typeof I=="string"&&n&&!me&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,T=Pe(q,I);if(q.enteringChildren&&T){const{delayChildren:M}=T.transition||{};K.delay=dr(q.enteringChildren,e,M)}}return{animation:I,options:K}}))}if(m.size){const v={};if(typeof d.initial!="boolean"){const b=Pe(e,Array.isArray(d.initial)?d.initial[0]:d.initial);b&&b.transition&&(v.transition=b.transition)}m.forEach(b=>{const w=e.getBaseTarget(b),y=e.getValue(b);y&&(y.liveStyle=!0),v[b]=w??null}),h.push({animation:v})}let g=!!h.length;return n&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(g=!1),n=!1,g?t(h):Promise.resolve()}function l(c,d){if(s[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,d)),s[c].isActive=d;const u=r(c);for(const h in s)s[h].protectedKeys={};return u}return{animateChanges:r,setActive:l,setAnimateFunction:a,getState:()=>s,reset:()=>{s=Bn()}}}function Mc(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Ur(t,e):!1}function fe(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Bn(){return{animate:fe(!0),whileInView:fe(),whileHover:fe(),whileTap:fe(),whileDrag:fe(),whileFocus:fe(),exit:fe()}}function Fn(e,t){e.min=t.min,e.max=t.max}function Z(e,t){Fn(e.x,t.x),Fn(e.y,t.y)}function On(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Wr=1e-4,Dc=1-Wr,Ec=1+Wr,qr=.01,Rc=0-qr,Lc=0+qr;function H(e){return e.max-e.min}function Ic(e,t,s){return Math.abs(e-t)<=s}function $n(e,t,s,n=.5){e.origin=n,e.originPoint=L(t.min,t.max,e.origin),e.scale=H(s)/H(t),e.translate=L(s.min,s.max,e.origin)-e.originPoint,(e.scale>=Dc&&e.scale<=Ec||isNaN(e.scale))&&(e.scale=1),(e.translate>=Rc&&e.translate<=Lc||isNaN(e.translate))&&(e.translate=0)}function qe(e,t,s,n){$n(e.x,t.x,s.x,n?n.originX:void 0),$n(e.y,t.y,s.y,n?n.originY:void 0)}function Kn(e,t,s){e.min=s.min+t.min,e.max=e.min+H(t)}function Bc(e,t,s){Kn(e.x,t.x,s.x),Kn(e.y,t.y,s.y)}function Un(e,t,s){e.min=t.min-s.min,e.max=e.min+H(t)}function Ct(e,t,s){Un(e.x,t.x,s.x),Un(e.y,t.y,s.y)}function Wn(e,t,s,n,i){return e-=t,e=Pt(e,1/s,n),i!==void 0&&(e=Pt(e,1/i,n)),e}function Fc(e,t=0,s=1,n=.5,i,a=e,r=e){if(se.test(t)&&(t=parseFloat(t),t=L(r.min,r.max,t/100)-r.min),typeof t!="number")return;let l=L(a.min,a.max,n);e===a&&(l-=t),e.min=Wn(e.min,t,s,l,i),e.max=Wn(e.max,t,s,l,i)}function qn(e,t,[s,n,i],a,r){Fc(e,t[s],t[n],t[i],t.scale,a,r)}const Oc=["x","scaleX","originX"],$c=["y","scaleY","originY"];function zn(e,t,s,n){qn(e.x,t,Oc,s?s.x:void 0,n?n.x:void 0),qn(e.y,t,$c,s?s.y:void 0,n?n.y:void 0)}function Hn(e){return e.translate===0&&e.scale===1}function zr(e){return Hn(e.x)&&Hn(e.y)}function _n(e,t){return e.min===t.min&&e.max===t.max}function Kc(e,t){return _n(e.x,t.x)&&_n(e.y,t.y)}function Gn(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Hr(e,t){return Gn(e.x,t.x)&&Gn(e.y,t.y)}function Yn(e){return H(e.x)/H(e.y)}function Xn(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function G(e){return[e("x"),e("y")]}function Uc(e,t,s){let n="";const i=e.x.translate/t.x,a=e.y.translate/t.y,r=s?.z||0;if((i||a||r)&&(n=`translate3d(${i}px, ${a}px, ${r}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),s){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:m,skewX:f,skewY:x}=s;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),m&&(n+=`rotateY(${m}deg) `),f&&(n+=`skewX(${f}deg) `),x&&(n+=`skewY(${x}deg) `)}const l=e.x.scale*t.x,c=e.y.scale*t.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}const _r=["TopLeft","TopRight","BottomLeft","BottomRight"],Wc=_r.length,Zn=e=>typeof e=="string"?parseFloat(e):e,Qn=e=>typeof e=="number"||S.test(e);function qc(e,t,s,n,i,a){i?(e.opacity=L(0,s.opacity??1,zc(n)),e.opacityExit=L(t.opacity??1,0,Hc(n))):a&&(e.opacity=L(t.opacity??1,s.opacity??1,n));for(let r=0;r<Wc;r++){const l=`border${_r[r]}Radius`;let c=Jn(t,l),d=Jn(s,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||Qn(c)===Qn(d)?(e[l]=Math.max(L(Zn(c),Zn(d),n),0),(se.test(d)||se.test(c))&&(e[l]+="%")):e[l]=d}(t.rotate||s.rotate)&&(e.rotate=L(t.rotate||0,s.rotate||0,n))}function Jn(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zc=Gr(0,.5,Ui),Hc=Gr(.5,.95,X);function Gr(e,t,s){return n=>n<e?0:n>t?1:s(Xe(e,t,n))}function _c(e,t,s){const n=W(e)?e:Ne(e);return n.start(Us("",n,t,s)),n.animation}function et(e,t,s,n={passive:!0}){return e.addEventListener(t,s,n),()=>e.removeEventListener(t,s)}const Gc=(e,t)=>e.depth-t.depth;class Yc{constructor(){this.children=[],this.isDirty=!1}add(t){Cs(this.children,t),this.isDirty=!0}remove(t){Ns(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Gc),this.isDirty=!1,this.children.forEach(t)}}function Xc(e,t){const s=z.now(),n=({timestamp:i})=>{const a=i-s;a>=t&&(ce(n),e(a-t))};return D.setup(n,!0),()=>ce(n)}function xt(e){return W(e)?e.get():e}class Zc{constructor(){this.members=[]}add(t){Cs(this.members,t),t.scheduleRender()}remove(t){if(Ns(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(t){const s=this.members.findIndex(i=>t===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){n=a;break}}return n?(this.promote(n),!0):!1}promote(t,s){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender();const i=n.options.layoutDependency,a=t.options.layoutDependency;i!==void 0&&a!==void 0&&i===a||(t.resumeFrom=n,s&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:l}=t.options;l===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:s,resumingFrom:n}=t;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const gt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Kt=["","X","Y","Z"],Qc=1e3;let Jc=0;function Ut(e,t,s,n){const{latestValues:i}=t;i[e]&&(s[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Yr(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const s=pr(t);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(s,"transform",D,!(i||a))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Yr(n)}function Xr({attachResizeListener:e,defaultParent:t,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(r={},l=t?.()){this.id=Jc++,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(su),this.nodes.forEach(au),this.nodes.forEach(ou),this.nodes.forEach(nu)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yc)}addEventListener(r,l){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new Vs),this.eventHandlers.get(r).add(l)}notifyListeners(r,...l){const c=this.eventHandlers.get(r);c&&c.notify(...l)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=Cr(r)&&!tc(r),this.instance=r;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let u,h=0;const m=()=>this.root.updateBlockedByResize=!1;D.read(()=>{h=window.innerWidth}),e(r,()=>{const f=window.innerWidth;f!==h&&(h=f,this.root.updateBlockedByResize=!0,u&&u(),u=Xc(m,250),gt.hasAnimatedSinceResize&&(gt.hasAnimatedSinceResize=!1,this.nodes.forEach(si)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:m,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const x=this.options.transition||d.getDefaultTransition()||hu,{onLayoutAnimationStart:g,onLayoutAnimationComplete:v}=d.getProps(),b=!this.targetLayout||!Hr(this.targetLayout,f),w=!h&&m;if(this.options.layoutRoot||this.resumeFrom||w||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const y={...Ks(x,"layout"),onPlay:g,onComplete:v};(d.shouldReduceMotion||this.options.layoutRoot)&&(y.delay=0,y.type=!1),this.startAnimation(y),this.setAnimationOrigin(u,w)}else h||si(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}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(),ce(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(lu),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&&Yr(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ei);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ti);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ru),this.nodes.forEach(eu),this.nodes.forEach(tu)):this.nodes.forEach(ti),this.clearAllSnapshots();const l=z.now();U.delta=ne(0,1e3/60,l-U.timestamp),U.timestamp=l,U.isProcessing=!0,Et.update.process(U),Et.preRender.process(U),Et.render.process(U),U.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iu),this.sharedNodes.forEach(cu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,D.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){D.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!H(this.snapshot.measuredBox.x)&&!H(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=O(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(l=!1),l&&this.instance){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!zr(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;r&&this.instance&&(l||pe(this.latestValues)||u)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return r&&(c=this.removeTransform(c)),mu(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return O();const l=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(fu))){const{scroll:d}=this.root;d&&(Te(l.x,d.offset.x),Te(l.y,d.offset.y))}return l}removeElementScroll(r){const l=O();if(Z(l,r),this.scroll?.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:u,options:h}=d;d!==this.root&&u&&h.layoutScroll&&(u.wasRoot&&Z(l,r),Te(l.x,u.offset.x),Te(l.y,u.offset.y))}return l}applyTransform(r,l=!1){const c=O();Z(c,r);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Se(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),pe(u.latestValues)&&Se(c,u.latestValues)}return pe(this.latestValues)&&Se(c,this.latestValues),c}removeTransform(r){const l=O();Z(l,r);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!pe(d.latestValues))continue;xs(d.latestValues)&&d.updateSnapshot();const u=O(),h=d.measurePageBox();Z(u,h),zn(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return pe(this.latestValues)&&zn(l,this.latestValues),l}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!==U.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:u,layoutId:h}=this.options;if(!this.layout||!(u||h))return;this.resolvedRelativeTargetAt=U.timestamp;const m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=O(),this.targetWithTransforms=O()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Bc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Z(this.target,this.layout.layoutBox),Er(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||xs(this.parent.latestValues)||Dr(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,l,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=O(),this.relativeTargetOrigin=O(),Ct(this.relativeTargetOrigin,l,c),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),l=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===U.timestamp&&(c=!1),c)return;const{layout:d,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||!(d||u))return;Z(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,m=this.treeScale.y;hc(this.layoutCorrected,this.treeScale,this.path,l),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=O());const{target:f}=r;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(On(this.prevProjectionDelta.x,this.projectionDelta.x),On(this.prevProjectionDelta.y,this.projectionDelta.y)),qe(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==m||!Xn(this.projectionDelta.x,this.prevProjectionDelta.x)||!Xn(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",f))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=je(),this.projectionDelta=je(),this.projectionDeltaWithTransform=je()}setAnimationOrigin(r,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=je();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=O(),f=c?c.source:void 0,x=this.layout?this.layout.source:void 0,g=f!==x,v=this.getStack(),b=!v||v.members.length<=1,w=!!(g&&!b&&this.options.crossfade===!0&&!this.path.some(du));this.animationProgress=0;let y;this.mixTargetDelta=P=>{const j=P/1e3;ni(h.x,r.x,j),ni(h.y,r.y,j),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ct(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),uu(this.relativeTarget,this.relativeTargetOrigin,m,j),y&&Kc(this.relativeTarget,y)&&(this.isProjectionDirty=!1),y||(y=O()),Z(y,this.relativeTarget)),g&&(this.animationValues=u,qc(u,d,this.latestValues,j,w,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=j},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ce(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=D.update(()=>{gt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ne(0)),this.currentAnimation=_c(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),r.onUpdate&&r.onUpdate(l)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Qc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=r;if(!(!l||!c||!d)){if(this!==r&&this.layout&&d&&Zr(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||O();const h=H(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+h;const m=H(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+m}Z(l,c),Se(l,u),qe(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(r,l){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Zc),this.sharedNodes.get(r).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):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:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let l=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Ut("z",r,d,this.animationValues);for(let u=0;u<Kt.length;u++)Ut(`rotate${Kt[u]}`,r,d,this.animationValues),Ut(`skew${Kt[u]}`,r,d,this.animationValues);r.render();for(const u in d)r.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);r.scheduleRender()}applyProjectionStyles(r,l){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=xt(l?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=xt(l?.pointerEvents)||""),this.hasProjected&&!pe(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const u=d.animationValues||d.latestValues;this.applyTransformsToTarget();let h=Uc(this.projectionDeltaWithTransform,this.treeScale,u);c&&(h=c(u,h)),r.transform=h;const{x:m,y:f}=this.projectionDelta;r.transformOrigin=`${m.origin*100}% ${f.origin*100}% 0`,d.animationValues?r.opacity=d===this?u.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:r.opacity=d===this?u.opacity!==void 0?u.opacity:"":u.opacityExit!==void 0?u.opacityExit:0;for(const x in ys){if(u[x]===void 0)continue;const{correct:g,applyTo:v,isCSSVariable:b}=ys[x],w=h==="none"?u[x]:g(u[x],d);if(v){const y=v.length;for(let P=0;P<y;P++)r[v[P]]=w}else b?this.options.visualElement.renderState.vars[x]=w:r[x]=w}this.options.layoutId&&(r.pointerEvents=d===this?xt(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(ei),this.root.sharedNodes.clear()}}}function eu(e){e.updateLayout()}function tu(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:n}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?G(u=>{const h=a?t.measuredBox[u]:t.layoutBox[u],m=H(h);h.min=s[u].min,h.max=h.min+m}):Zr(i,t.layoutBox,s)&&G(u=>{const h=a?t.measuredBox[u]:t.layoutBox[u],m=H(s[u]);h.max=h.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+m)});const r=je();qe(r,s,t.layoutBox);const l=je();a?qe(l,e.applyTransform(n,!0),t.measuredBox):qe(l,s,t.layoutBox);const c=!zr(r);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:m}=u;if(h&&m){const f=O();Ct(f,t.layoutBox,h.layoutBox);const x=O();Ct(x,s,m.layoutBox),Hr(f,x)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=f,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:l,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function su(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function nu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iu(e){e.clearSnapshot()}function ei(e){e.clearMeasurements()}function ti(e){e.isLayoutDirty=!1}function ru(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function si(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function au(e){e.resolveTargetDelta()}function ou(e){e.calcProjection()}function lu(e){e.resetSkewAndRotation()}function cu(e){e.removeLeadSnapshot()}function ni(e,t,s){e.translate=L(t.translate,0,s),e.scale=L(t.scale,1,s),e.origin=t.origin,e.originPoint=t.originPoint}function ii(e,t,s,n){e.min=L(t.min,s.min,n),e.max=L(t.max,s.max,n)}function uu(e,t,s,n){ii(e.x,t.x,s.x,n),ii(e.y,t.y,s.y,n)}function du(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hu={duration:.45,ease:[.4,0,.1,1]},ri=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ai=ri("applewebkit/")&&!ri("chrome/")?Math.round:X;function oi(e){e.min=ai(e.min),e.max=ai(e.max)}function mu(e){oi(e.x),oi(e.y)}function Zr(e,t,s){return e==="position"||e==="preserve-aspect"&&!Ic(Yn(t),Yn(s),.2)}function fu(e){return e!==e.root&&e.scroll?.wasRoot}const pu=Xr({attachResizeListener:(e,t)=>et(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Wt={current:void 0},Qr=Xr({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wt.current){const e=new pu({});e.mount(window),e.setOptions({layoutScroll:!0}),Wt.current=e}return Wt.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Qs=p.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function li(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function xu(...e){return t=>{let s=!1;const n=e.map(i=>{const a=li(i,t);return!s&&typeof a=="function"&&(s=!0),a});if(s)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():li(e[i],null)}}}}function gu(...e){return p.useCallback(xu(...e),e)}class yu extends p.Component{getSnapshotBeforeUpdate(t){const s=this.props.childRef.current;if(s&&t.isPresent&&!this.props.isPresent){const n=s.offsetParent,i=fs(n)&&n.offsetWidth||0,a=fs(n)&&n.offsetHeight||0,r=this.props.sizeRef.current;r.height=s.offsetHeight||0,r.width=s.offsetWidth||0,r.top=s.offsetTop,r.left=s.offsetLeft,r.right=i-r.width-r.left,r.bottom=a-r.height-r.top}return null}componentDidUpdate(){}render(){return this.props.children}}function vu({children:e,isPresent:t,anchorX:s,anchorY:n,root:i}){const a=p.useId(),r=p.useRef(null),l=p.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:c}=p.useContext(Qs),d=e.props?.ref??e?.ref,u=gu(r,d);return p.useInsertionEffect(()=>{const{width:h,height:m,top:f,left:x,right:g,bottom:v}=l.current;if(t||!r.current||!h||!m)return;const b=s==="left"?`left: ${x}`:`right: ${g}`,w=n==="bottom"?`bottom: ${v}`:`top: ${f}`;r.current.dataset.motionPopId=a;const y=document.createElement("style");c&&(y.nonce=c);const P=i??document.head;return P.appendChild(y),y.sheet&&y.sheet.insertRule(`
[data-motion-pop-id="${a}"] {
position: absolute !important;
width: ${h}px !important;
height: ${m}px !important;
${b}px !important;
${w}px !important;
}
`),()=>{P.contains(y)&&P.removeChild(y)}},[t]),o.jsx(yu,{isPresent:t,childRef:r,sizeRef:l,children:p.cloneElement(e,{ref:u})})}const bu=({children:e,initial:t,isPresent:s,onExitComplete:n,custom:i,presenceAffectsLayout:a,mode:r,anchorX:l,anchorY:c,root:d})=>{const u=Ps(wu),h=p.useId();let m=!0,f=p.useMemo(()=>(m=!1,{id:h,initial:t,isPresent:s,custom:i,onExitComplete:x=>{u.set(x,!0);for(const g of u.values())if(!g)return;n&&n()},register:x=>(u.set(x,!1),()=>u.delete(x))}),[s,u,n]);return a&&m&&(f={...f}),p.useMemo(()=>{u.forEach((x,g)=>u.set(g,!1))},[s]),p.useEffect(()=>{!s&&!u.size&&n&&n()},[s]),r==="popLayout"&&(e=o.jsx(vu,{isPresent:s,anchorX:l,anchorY:c,root:d,children:e})),o.jsx(kt.Provider,{value:f,children:e})};function wu(){return new Map}function Jr(e=!0){const t=p.useContext(kt);if(t===null)return[!0,null];const{isPresent:s,onExitComplete:n,register:i}=t,a=p.useId();p.useEffect(()=>{if(e)return i(a)},[e]);const r=p.useCallback(()=>e&&n&&n(a),[a,n,e]);return!s&&n?[!1,r]:[!0]}const ct=e=>e.key||"";function ci(e){const t=[];return p.Children.forEach(e,s=>{p.isValidElement(s)&&t.push(s)}),t}const tt=({children:e,custom:t,initial:s=!0,onExitComplete:n,presenceAffectsLayout:i=!0,mode:a="sync",propagate:r=!1,anchorX:l="left",anchorY:c="top",root:d})=>{const[u,h]=Jr(r),m=p.useMemo(()=>ci(e),[e]),f=r&&!u?[]:m.map(ct),x=p.useRef(!0),g=p.useRef(m),v=Ps(()=>new Map),b=p.useRef(new Set),[w,y]=p.useState(m),[P,j]=p.useState(m);Mi(()=>{x.current=!1,g.current=m;for(let C=0;C<P.length;C++){const k=ct(P[C]);f.includes(k)?(v.delete(k),b.current.delete(k)):v.get(k)!==!0&&v.set(k,!1)}},[P,f.length,f.join("-")]);const N=[];if(m!==w){let C=[...m];for(let k=0;k<P.length;k++){const E=P[k],A=ct(E);f.includes(A)||(C.splice(k,0,E),N.push(E))}return a==="wait"&&N.length&&(C=N),j(ci(C)),y(m),null}const{forceRender:V}=p.useContext(Ss);return o.jsx(o.Fragment,{children:P.map(C=>{const k=ct(C),E=r&&!u?!1:m===P||f.includes(k),A=()=>{if(b.current.has(k))return;if(b.current.add(k),v.has(k))v.set(k,!0);else return;let B=!0;v.forEach(_=>{_||(B=!1)}),B&&(V?.(),j(g.current),r&&h?.(),n&&n())};return o.jsx(bu,{isPresent:E,initial:!x.current||s?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:d,onExitComplete:E?void 0:A,anchorX:l,anchorY:c,children:C},k)})})},ea=p.createContext({strict:!1}),ui={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 di=!1;function ju(){if(di)return;const e={};for(const t in ui)e[t]={isEnabled:s=>ui[t].some(n=>!!s[n])};Vr(e),di=!0}function ta(){return ju(),lc()}function Tu(e){const t=ta();for(const s in e)t[s]={...t[s],...e[s]};Vr(t)}const Su=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Nt(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Su.has(e)}let sa=e=>!Nt(e);function Pu(e){typeof e=="function"&&(sa=t=>t.startsWith("on")?!Nt(t):e(t))}try{Pu(require("@emotion/is-prop-valid").default)}catch{}function Cu(e,t,s){const n={};for(const i in e)i==="values"&&typeof e.values=="object"||(sa(i)||s===!0&&Nt(i)||!t&&!Nt(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}const Dt=p.createContext({});function Nu(e,t){if(Mt(e)){const{initial:s,animate:n}=e;return{initial:s===!1||Je(s)?s:void 0,animate:Je(n)?n:void 0}}return e.inherit!==!1?t:{}}function ku(e){const{initial:t,animate:s}=Nu(e,p.useContext(Dt));return p.useMemo(()=>({initial:t,animate:s}),[hi(t),hi(s)])}function hi(e){return Array.isArray(e)?e.join(" "):e}const Js=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function na(e,t,s){for(const n in t)!W(t[n])&&!Ir(n,s)&&(e[n]=t[n])}function Vu({transformTemplate:e},t){return p.useMemo(()=>{const s=Js();return Xs(s,t,e),Object.assign({},s.vars,s.style)},[t])}function Au(e,t){const s=e.style||{},n={};return na(n,s,e),Object.assign(n,Vu(e,t)),n}function Mu(e,t){const s={},n=Au(e,t);return e.drag&&e.dragListener!==!1&&(s.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(s.tabIndex=0),s.style=n,s}const ia=()=>({...Js(),attrs:{}});function Du(e,t,s,n){const i=p.useMemo(()=>{const a=ia();return Br(a,t,Or(n),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};na(a,e.style,e),i.style={...a,...i.style}}return i}const Eu=["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 en(e){return typeof e!="string"||e.includes("-")?!1:!!(Eu.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ru(e,t,s,{latestValues:n},i,a=!1,r){const c=(r??en(e)?Du:Mu)(t,n,i,e),d=Cu(t,typeof e=="string",a),u=e!==p.Fragment?{...d,...c,ref:s}:{},{children:h}=t,m=p.useMemo(()=>W(h)?h.get():h,[h]);return p.createElement(e,{...u,children:m})}function Lu({scrapeMotionValuesFromProps:e,createRenderState:t},s,n,i){return{latestValues:Iu(s,n,i,e),renderState:t()}}function Iu(e,t,s,n){const i={},a=n(e,{});for(const m in a)i[m]=xt(a[m]);let{initial:r,animate:l}=e;const c=Mt(e),d=kr(e);t&&d&&!c&&e.inherit!==!1&&(r===void 0&&(r=t.initial),l===void 0&&(l=t.animate));let u=s?s.initial===!1:!1;u=u||r===!1;const h=u?l:r;if(h&&typeof h!="boolean"&&!At(h)){const m=Array.isArray(h)?h:[h];for(let f=0;f<m.length;f++){const x=Ws(e,m[f]);if(x){const{transitionEnd:g,transition:v,...b}=x;for(const w in b){let y=b[w];if(Array.isArray(y)){const P=u?y.length-1:0;y=y[P]}y!==null&&(i[w]=y)}for(const w in g)i[w]=g[w]}}}return i}const ra=e=>(t,s)=>{const n=p.useContext(Dt),i=p.useContext(kt),a=()=>Lu(e,t,n,i);return s?a():Ps(a)},Bu=ra({scrapeMotionValuesFromProps:Zs,createRenderState:Js}),Fu=ra({scrapeMotionValuesFromProps:$r,createRenderState:ia}),Ou=Symbol.for("motionComponentSymbol");function $u(e,t,s){const n=p.useRef(s);p.useInsertionEffect(()=>{n.current=s});const i=p.useRef(null);return p.useCallback(a=>{a&&e.onMount?.(a),t&&(a?t.mount(a):t.unmount());const r=n.current;if(typeof r=="function")if(a){const l=r(a);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):r(a);else r&&(r.current=a)},[t])}const aa=p.createContext({});function Oe(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ku(e,t,s,n,i,a){const{visualElement:r}=p.useContext(Dt),l=p.useContext(ea),c=p.useContext(kt),d=p.useContext(Qs).reducedMotion,u=p.useRef(null),h=p.useRef(!1);n=n||l.renderer,!u.current&&n&&(u.current=n(e,{visualState:t,parent:r,props:s,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,isSVG:a}),h.current&&u.current&&(u.current.manuallyAnimateOnMount=!0));const m=u.current,f=p.useContext(aa);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Uu(u.current,s,i,f);const x=p.useRef(!1);p.useInsertionEffect(()=>{m&&x.current&&m.update(s,c)});const g=s[fr],v=p.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return Mi(()=>{h.current=!0,m&&(x.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),p.useEffect(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),m.enteringChildren=void 0)}),m}function Uu(e,t,s,n){const{layoutId:i,layout:a,drag:r,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=t;e.projection=new s(e.latestValues,t["data-framer-portal-id"]?void 0:oa(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!r||l&&Oe(l),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:c,layoutRoot:d})}function oa(e){if(e)return e.options.allowProjection!==!1?e.projection:oa(e.parent)}function qt(e,{forwardMotionProps:t=!1,type:s}={},n,i){n&&Tu(n);const a=s?s==="svg":en(e),r=a?Fu:Bu;function l(d,u){let h;const m={...p.useContext(Qs),...d,layoutId:Wu(d)},{isStatic:f}=m,x=ku(d),g=r(d,f);if(!f&&Ai){qu();const v=zu(m);h=v.MeasureLayout,x.visualElement=Ku(e,g,m,i,v.ProjectionNode,a)}return o.jsxs(Dt.Provider,{value:x,children:[h&&x.visualElement?o.jsx(h,{visualElement:x.visualElement,...m}):null,Ru(e,d,$u(g,x.visualElement,u),g,f,t,a)]})}l.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=p.forwardRef(l);return c[Ou]=e,c}function Wu({layoutId:e}){const t=p.useContext(Ss).id;return t&&e!==void 0?t+"-"+e:e}function qu(e,t){p.useContext(ea).strict}function zu(e){const t=ta(),{drag:s,layout:n}=t;if(!s&&!n)return{};const i={...s,...n};return{MeasureLayout:s?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Hu(e,t){if(typeof Proxy>"u")return qt;const s=new Map,n=(a,r)=>qt(a,r,e,t),i=(a,r)=>n(a,r);return new Proxy(i,{get:(a,r)=>r==="create"?n:(s.has(r)||s.set(r,qt(r,void 0,e,t)),s.get(r))})}const _u=(e,t)=>t.isSVG??en(e)?new Pc(t):new vc(t,{allowProjection:e!==p.Fragment});class Gu extends de{constructor(t){super(t),t.animationState||(t.animationState=Ac(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();At(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:s}=this.node.prevProps||{};t!==s&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Yu=0;class Xu extends de{constructor(){super(...arguments),this.id=Yu++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:s}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const i=this.node.animationState.setActive("exit",!t);s&&!t&&i.then(()=>{s(this.id)})}mount(){const{register:t,onExitComplete:s}=this.node.presenceContext||{};s&&s(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Zu={animation:{Feature:Gu},exit:{Feature:Xu}};function rt(e){return{point:{x:e.pageX,y:e.pageY}}}const Qu=e=>t=>_s(t)&&e(t,rt(t));function ze(e,t,s,n){return et(e,t,Qu(s),n)}const la=({current:e})=>e?e.ownerDocument.defaultView:null,mi=(e,t)=>Math.abs(e-t);function Ju(e,t){const s=mi(e.x,t.x),n=mi(e.y,t.y);return Math.sqrt(s**2+n**2)}const fi=new Set(["auto","scroll"]);class ca{constructor(t,s,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:r=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=f=>{this.handleScroll(f.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Ht(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,g=Ju(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!g)return;const{point:v}=f,{timestamp:b}=U;this.history.push({...v,timestamp:b});const{onStart:w,onMove:y}=this.handlers;x||(w&&w(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,x)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=zt(x,this.transformPagePoint),D.update(this.updatePoint,!0)},this.handlePointerUp=(f,x)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:b}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Ht(f.type==="pointercancel"?this.lastMoveEventInfo:zt(x,this.transformPagePoint),this.history);this.startEvent&&g&&g(f,w),v&&v(f,w)},!_s(t))return;this.dragSnapToOrigin=a,this.handlers=s,this.transformPagePoint=n,this.distanceThreshold=r,this.contextWindow=i||window;const c=rt(t),d=zt(c,this.transformPagePoint),{point:u}=d,{timestamp:h}=U;this.history=[{...u,timestamp:h}];const{onSessionStart:m}=s;m&&m(t,Ht(d,this.history)),this.removeListeners=st(ze(this.contextWindow,"pointermove",this.handlePointerMove),ze(this.contextWindow,"pointerup",this.handlePointerUp),ze(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(t){let s=t.parentElement;for(;s;){const n=getComputedStyle(s);(fi.has(n.overflowX)||fi.has(n.overflowY))&&this.scrollPositions.set(s,{x:s.scrollLeft,y:s.scrollTop}),s=s.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const s=this.scrollPositions.get(t);if(!s)return;const n=t===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},a={x:i.x-s.x,y:i.y-s.y};a.x===0&&a.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(t,i),D.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ce(this.updatePoint)}}function zt(e,t){return t?{point:t(e.point)}:e}function pi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ht({point:e},t){return{point:e,delta:pi(e,ua(t)),offset:pi(e,ed(t)),velocity:td(t,.1)}}function ed(e){return e[0]}function ua(e){return e[e.length-1]}function td(e,t){if(e.length<2)return{x:0,y:0};let s=e.length-1,n=null;const i=ua(e);for(;s>=0&&(n=e[s],!(i.timestamp-n.timestamp>te(t)));)s--;if(!n)return{x:0,y:0};const a=Y(i.timestamp-n.timestamp);if(a===0)return{x:0,y:0};const r={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function sd(e,{min:t,max:s},n){return t!==void 0&&e<t?e=n?L(t,e,n.min):Math.max(e,t):s!==void 0&&e>s&&(e=n?L(s,e,n.max):Math.min(e,s)),e}function xi(e,t,s){return{min:t!==void 0?e.min+t:void 0,max:s!==void 0?e.max+s-(e.max-e.min):void 0}}function nd(e,{top:t,left:s,bottom:n,right:i}){return{x:xi(e.x,s,i),y:xi(e.y,t,n)}}function gi(e,t){let s=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([s,n]=[n,s]),{min:s,max:n}}function id(e,t){return{x:gi(e.x,t.x),y:gi(e.y,t.y)}}function rd(e,t){let s=.5;const n=H(e),i=H(t);return i>n?s=Xe(t.min,t.max-n,e.min):n>i&&(s=Xe(e.min,e.max-i,t.min)),ne(0,1,s)}function ad(e,t){const s={};return t.min!==void 0&&(s.min=t.min-e.min),t.max!==void 0&&(s.max=t.max-e.min),s}const vs=.35;function od(e=vs){return e===!1?e=0:e===!0&&(e=vs),{x:yi(e,"left","right"),y:yi(e,"top","bottom")}}function yi(e,t,s){return{min:vi(e,t),max:vi(e,s)}}function vi(e,t){return typeof e=="number"?e:e[t]||0}const ld=new WeakMap;class cd{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=O(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:s=!1,distanceThreshold:n}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=h=>{s?(this.stopAnimation(),this.snapToCursor(rt(h).point)):this.pauseAnimation()},r=(h,m)=>{this.stopAnimation();const{drag:f,dragPropagation:x,onDragStart:g}=this.getProps();if(f&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Xl(f),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),G(b=>{let w=this.getAxisMotionValue(b).get()||0;if(se.test(w)){const{projection:y}=this.visualElement;if(y&&y.layout){const P=y.layout.layoutBox[b];P&&(w=H(P)*(parseFloat(w)/100))}}this.originPoint[b]=w}),g&&D.postRender(()=>g(h,m)),ds(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},l=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m;const{dragPropagation:f,dragDirectionLock:x,onDirectionLock:g,onDrag:v}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:b}=m;if(x&&this.currentDirection===null){this.currentDirection=ud(b),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",m.point,b),this.updateAxis("y",m.point,b),this.visualElement.render(),v&&v(h,m)},c=(h,m)=>{this.latestPointerEvent=h,this.latestPanInfo=m,this.stop(h,m),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>G(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new ca(t,{onSessionStart:a,onStart:r,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:la(this.visualElement),element:this.visualElement.current})}stop(t,s){const n=t||this.latestPointerEvent,i=s||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:l}=this.getProps();l&&D.postRender(()=>l(n,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:s}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),s&&s.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,s,n){const{drag:i}=this.getProps();if(!n||!ut(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let r=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(r=sd(r,this.constraints[t],this.elastic[t])),a.set(r)}resolveConstraints(){const{dragConstraints:t,dragElastic:s}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&Oe(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=nd(n.layoutBox,t):this.constraints=!1,this.elastic=od(s),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&G(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ad(n.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:s}=this.getProps();if(!t||!Oe(t))return!1;const n=t.current;Ce(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=mc(n,i.root,this.visualElement.getTransformPagePoint());let r=id(i.layout.layoutBox,a);if(s){const l=s(uc(r));this.hasMutatedConstraints=!!l,l&&(r=Mr(l))}return r}startAnimation(t){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:r,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=G(u=>{if(!ut(u,s,this.currentDirection))return;let h=c&&c[u]||{};r&&(h={min:0,max:0});const m=i?200:1e6,f=i?40:1e7,x={type:"inertia",velocity:n?t[u]:0,bounceStiffness:m,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(u,x)});return Promise.all(d).then(l)}startAxisValueAnimation(t,s){const n=this.getAxisMotionValue(t);return ds(this.visualElement,t),n.start(Us(t,n,0,s,this.visualElement,!1))}stopAnimation(){G(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){G(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const s=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),i=n[s];return i||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){G(s=>{const{drag:n}=this.getProps();if(!ut(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(s);if(i&&i.layout){const{min:r,max:l}=i.layout.layoutBox[s],c=a.get()||0;a.set(t[s]-L(r,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Oe(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};G(r=>{const l=this.getAxisMotionValue(r);if(l&&this.constraints!==!1){const c=l.get();i[r]=rd({min:c,max:c},this.constraints[r])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),G(r=>{if(!ut(r,t,null))return;const l=this.getAxisMotionValue(r),{min:c,max:d}=this.constraints[r];l.set(L(c,d,i[r]))})}addListeners(){if(!this.visualElement.current)return;ld.set(this.visualElement,this);const t=this.visualElement.current,s=ze(t,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps(),h=c.target,m=h!==t&&Pr(h);d&&u&&!m&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();Oe(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),D.read(n);const r=et(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(G(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())});return()=>{r(),s(),a(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:r=vs,dragMomentum:l=!0}=t;return{...t,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:r,dragMomentum:l}}}function ut(e,t,s){return(t===!0||t===e)&&(s===null||s===e)}function ud(e,t=10){let s=null;return Math.abs(e.y)>t?s="y":Math.abs(e.x)>t&&(s="x"),s}class dd extends de{constructor(t){super(t),this.removeGroupControls=X,this.removeListeners=X,this.controls=new cd(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||X}update(){const{dragControls:t}=this.node.getProps(),{dragControls:s}=this.node.prevProps||{};t!==s&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const bi=e=>(t,s)=>{e&&D.postRender(()=>e(t,s))};class hd extends de{constructor(){super(...arguments),this.removePointerDownListener=X}onPointerDown(t){this.session=new ca(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:la(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:s,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:bi(t),onStart:bi(s),onMove:n,onEnd:(a,r)=>{delete this.session,i&&D.postRender(()=>i(a,r))}}}mount(){this.removePointerDownListener=ze(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let _t=!1;class md extends p.Component{componentDidMount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=t;a&&(s.group&&s.group.add(a),n&&n.register&&i&&n.register(a),_t&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),gt.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:s,visualElement:n,drag:i,isPresent:a}=this.props,{projection:r}=n;return r&&(r.isPresent=a,t.layoutDependency!==s&&r.setOptions({...r.options,layoutDependency:s}),_t=!0,i||t.layoutDependency!==s||s===void 0||t.isPresent!==a?r.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?r.promote():r.relegate()||D.postRender(()=>{const l=r.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hs.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:s,switchLayoutGroup:n}=this.props,{projection:i}=t;_t=!0,i&&(i.scheduleCheckAfterUnmount(),s&&s.group&&s.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function da(e){const[t,s]=Jr(),n=p.useContext(Ss);return o.jsx(md,{...e,layoutGroup:n,switchLayoutGroup:p.useContext(aa),isPresent:t,safeToRemove:s})}const fd={pan:{Feature:hd},drag:{Feature:dd,ProjectionNode:Qr,MeasureLayout:da}};function wi(e,t,s){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",s==="Start");const i="onHover"+s,a=n[i];a&&D.postRender(()=>a(t,rt(t)))}class pd extends de{mount(){const{current:t}=this.node;t&&(this.unmount=Zl(t,(s,n)=>(wi(this.node,n,"Start"),i=>wi(this.node,i,"End"))))}unmount(){}}class xd extends de{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=st(et(this.node.current,"focus",()=>this.onFocus()),et(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ji(e,t,s){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",s==="Start");const i="onTap"+(s==="End"?"":s),a=n[i];a&&D.postRender(()=>a(t,rt(t)))}class gd extends de{mount(){const{current:t}=this.node;t&&(this.unmount=ec(t,(s,n)=>(ji(this.node,n,"Start"),(i,{success:a})=>ji(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bs=new WeakMap,Gt=new WeakMap,yd=e=>{const t=bs.get(e.target);t&&t(e)},vd=e=>{e.forEach(yd)};function bd({root:e,...t}){const s=e||document;Gt.has(s)||Gt.set(s,{});const n=Gt.get(s),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(vd,{root:e,...t})),n[i]}function wd(e,t,s){const n=bd(t);return bs.set(e,s),n.observe(e),()=>{bs.delete(e),n.unobserve(e)}}const jd={some:0,all:1};class Td extends de{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:s,margin:n,amount:i="some",once:a}=t,r={root:s?s.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:jd[i]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,a&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),m=d?u:h;m&&m(c)};return wd(this.node.current,r,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:s}=this.node;["amount","margin","root"].some(Sd(t,s))&&this.startObserver()}unmount(){}}function Sd({viewport:e={}},{viewport:t={}}={}){return s=>e[s]!==t[s]}const Pd={inView:{Feature:Td},tap:{Feature:gd},focus:{Feature:xd},hover:{Feature:pd}},Cd={layout:{ProjectionNode:Qr,MeasureLayout:da}},Nd={...Zu,...Pd,...fd,...Cd},$=Hu(Nd,_u),ha=p.forwardRef(({className:e,value:t,onValueChange:s,min:n=0,max:i=100,step:a=1,filledColor:r,unfilledColor:l,variant:c="default",...d},u)=>{const h=(t-n)/(i-n)*100,m=r||(c==="hero"?"hsl(30 70% 55%)":"hsl(var(--accent-500))"),f=l||(c==="hero"?"hsla(0 0% 100% / 0.2)":"hsl(var(--muted))"),g={"--range-p":h,"--range-filled":m,"--range-unfilled":f,"--range-thumb-border":c==="hero"?"hsl(30 70% 55%)":"hsl(var(--accent-500))",background:`linear-gradient(to right, ${m} 0%, ${m} ${h}%, ${f} ${h}%, ${f} 100%)`};return o.jsx("input",{ref:u,type:"range",min:n,max:i,step:a,value:t,onChange:v=>s(Number(v.target.value)),className:ba("range-slider",e),style:g,...d})});ha.displayName="RangeSlider";const Yt=[{periodKey:"training.day1.period",price:10,youProvideKeys:["training.day1.youProvide.pms","training.day1.youProvide.houseRules","training.day1.youProvide.faq"],cendraHandlesKeys:["training.day1.cendra.simple","training.day1.cendra.checkIn","training.day1.cendra.wifi"]},{periodKey:"training.week1.period",price:19,youProvideKeys:["training.week1.youProvide.booking","training.week1.youProvide.cancellation","training.week1.youProvide.tone"],cendraHandlesKeys:["training.week1.cendra.booking","training.week1.cendra.policy","training.week1.cendra.multiLang"]},{periodKey:"training.week4.period",price:29,youProvideKeys:["training.week4.youProvide.edge","training.week4.youProvide.maintenance","training.week4.youProvide.vendor"],cendraHandlesKeys:["training.week4.cendra.complex","training.week4.cendra.triage","training.week4.cendra.review"]},{periodKey:"training.week12.period",price:39,youProvideKeys:["training.week12.youProvide.refinements","training.week12.youProvide.strategic","training.week12.youProvide.coaching"],cendraHandlesKeys:["training.week12.cendra.total","training.week12.cendra.upsells","training.week12.cendra.insights"]}];function kd(){const{t:e}=ke("pricing");return o.jsx("section",{className:"pt-24 pb-12 md:pt-28 md:pb-16 px-4",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsx("div",{className:"text-center mb-10 md:mb-12",children:o.jsx("p",{className:"text-base md:text-lg text-neutral-600 leading-relaxed max-w-2xl mx-auto",children:e("simple.journeyExplainer",{defaultValue:"Cendra starts at $10/unit. As you train her and she learns your operations, automation grows — and so does her price. Most operators reach 75%+ automation within 12 weeks."})})}),o.jsx("div",{className:"hidden md:block mb-10",children:o.jsxs("div",{className:"relative flex items-center justify-between",children:[o.jsx("div",{className:"absolute top-6 left-[12.5%] right-[12.5%] h-0.5 rounded-full",style:{background:"linear-gradient(to right, hsl(345 69% 55% / 0.3), hsl(345 69% 55% / 0.6), hsl(345 69% 55% / 0.3))"}}),Yt.map((t,s)=>o.jsxs("div",{className:"relative flex flex-col items-center z-10 w-1/4",children:[o.jsxs("div",{className:"w-12 h-12 rounded-full flex items-center justify-center text-sm font-bold shadow-lg",style:{background:"linear-gradient(135deg, hsl(345 69% 55%), hsl(345 69% 45%))",color:"white",boxShadow:"0 4px 14px -2px hsl(345 69% 55% / 0.4)"},children:["$",t.price]}),o.jsx("p",{className:"text-sm font-medium text-[#0B1120] mt-3",children:e(t.periodKey)})]},s))]})}),o.jsx("div",{className:"md:hidden mb-10",children:o.jsxs("div",{className:"relative flex justify-between items-start px-2",children:[o.jsx("div",{className:"absolute top-5 left-[8%] right-[8%] h-0.5 rounded-full",style:{background:"linear-gradient(to right, hsl(345 69% 55% / 0.3), hsl(345 69% 55% / 0.6), hsl(345 69% 55% / 0.3))"}}),Yt.map((t,s)=>o.jsxs("div",{className:"relative flex flex-col items-center z-10",children:[o.jsxs("div",{className:"w-10 h-10 rounded-full flex items-center justify-center text-xs font-bold shadow-md",style:{background:"linear-gradient(135deg, hsl(345 69% 55%), hsl(345 69% 45%))",color:"white",boxShadow:"0 3px 10px -2px hsl(345 69% 55% / 0.4)"},children:["$",t.price]}),o.jsx("p",{className:"text-xs font-medium text-[#0B1120] text-center whitespace-nowrap mt-2",children:e(t.periodKey)})]},s))]})}),o.jsx(Re,{type:"single",collapsible:!0,className:"bg-white rounded-2xl overflow-hidden shadow-lg shadow-neutral-200/50",children:o.jsxs(Le,{value:"details",className:"border-none",children:[o.jsx(Ie,{className:"px-6 py-5 hover:bg-neutral-50 transition-colors [&[data-state=open]>svg]:rotate-180",children:o.jsx("span",{className:"text-sm font-medium text-neutral-500",children:e("simple.seeWhatsInvolved",{defaultValue:"See what's involved at each stage"})})}),o.jsx(Be,{className:"px-6 pb-6",children:o.jsx("div",{className:"space-y-8",children:Yt.map((t,s)=>o.jsxs("div",{className:"border-b border-neutral-100 pb-6 last:border-none last:pb-0",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[o.jsxs("div",{className:"w-9 h-9 rounded-full flex items-center justify-center text-xs font-bold",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.15), hsl(345 69% 55% / 0.08))",color:"hsl(345 69% 45%)"},children:["$",t.price]}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:e(t.periodKey)})]}),o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[o.jsxs("div",{className:"bg-neutral-50 rounded-xl p-5",children:[o.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium text-neutral-500 mb-3",children:[o.jsx(Vi,{className:"w-4 h-4"}),e("training.youProvide")]}),o.jsx("ul",{className:"space-y-2",children:t.youProvideKeys.map((n,i)=>o.jsxs("li",{className:"text-sm text-[#0B1120] flex items-start gap-2",children:[o.jsx("span",{className:"text-neutral-400 mt-0.5",children:"•"}),e(n)]},i))})]}),o.jsxs("div",{className:"rounded-xl p-5",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.06), hsl(345 69% 55% / 0.02))"},children:[o.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium mb-3",style:{color:"hsl(345 69% 45%)"},children:[o.jsx(Ni,{className:"w-4 h-4"}),e("training.cendraHandles")]}),o.jsx("ul",{className:"space-y-2",children:t.cendraHandlesKeys.map((n,i)=>o.jsxs("li",{className:"text-sm text-[#0B1120] flex items-start gap-2",children:[o.jsx("span",{style:{color:"hsl(345 69% 55%)"},className:"mt-0.5",children:"✓"}),e(n)]},i))})]})]})]},s))})})]})})]})})}const Ti=[{tier:1,guestKey:"simulator.tier1.guest",cendraKey:"simulator.tier1.cendra",workflowKey:"simulator.tier1.workflow"},{tier:2,guestKey:"simulator.tier2.guest",cendraKey:"simulator.tier2.cendra",workflowKey:"simulator.tier2.workflow"},{tier:3,guestKey:"simulator.tier3.guest",cendraKey:"simulator.tier3.cendra",workflowKey:"simulator.tier3.workflow"},{tier:4,guestKey:"simulator.tier4.guest",cendraKey:"simulator.tier4.cendra",workflowKey:"simulator.tier4.workflow"}],Vd={understand:yt,lookup:Ka,call:ja,schedule:Zt,confirm:ki,check:Zt,respond:yt,stripe:Ke},Si=(e,t=25,s,n)=>{const[i,a]=p.useState(e),[r,l]=p.useState(!0);return p.useEffect(()=>{if(!n){a(e),l(!0);return}a(""),l(!1);let c=0;const d=setInterval(()=>{c<e.length?(a(e.slice(0,c+1)),c++):(l(!0),clearInterval(d))},t);return()=>clearInterval(d)},[e,t,s,n]),{displayedText:i,isComplete:r}},Ad=(e,t,s,n)=>{const[i,a]=p.useState([]),[r,l]=p.useState(!1),c=p.useRef(null),d=p.useRef(e);return p.useEffect(()=>{d.current=e},[e]),p.useEffect(()=>{if(c.current&&clearTimeout(c.current),!s||!n||e.length===0){a(e.map(f=>({key:f,status:"pending"}))),l(!1);return}a(e.map(f=>({key:f,status:"pending"}))),l(!1);let u=0;const h=400,m=()=>{const f=d.current;u<f.length?(a(f.map((x,g)=>({key:x,status:g<u?"complete":g===u?"active":"pending"}))),u++,c.current=setTimeout(m,h)):(a(f.map(x=>({key:x,status:"complete"}))),l(!0))};return c.current=setTimeout(m,50),()=>{c.current&&clearTimeout(c.current)}},[t,s,n,e.length]),{workflowSteps:i,isComplete:r}},Md=({currentTierLevel:e,isActive:t})=>{const{t:s}=ke("pricing"),[n,i]=p.useState(0),[a,r]=p.useState(!1),l=p.useRef(!1),c=p.useMemo(()=>Ti.find(j=>j.tier===e)||Ti[0],[e]),d=s(c.guestKey),u=s(c.cendraKey),h=s(c.workflowKey,{returnObjects:!0}),m=p.useMemo(()=>Array.isArray(h)?h:[],[e]);p.useEffect(()=>{t&&!l.current&&(l.current=!0,r(!0),queueMicrotask(()=>{i(1)}))},[t]),p.useEffect(()=>{l.current&&a&&i(j=>j+1)},[e,a]);const{displayedText:f,isComplete:x}=Si(d,12,n,a),{workflowSteps:g,isComplete:v}=Ad(m,n,a,x),{displayedText:b,isComplete:w}=Si(u,10,v?n:-1,a&&v),y=j=>s(`simulator.steps.${j}`,{defaultValue:j}),P=j=>Vd[j]||yt;return o.jsxs($.div,{className:"w-full rounded-2xl overflow-hidden",initial:{opacity:.8},animate:{opacity:t?1:.8},transition:{type:"spring",stiffness:300,damping:30},style:{background:"rgba(255, 255, 255, 0.04)",border:"1px solid rgba(255, 255, 255, 0.12)"},children:[o.jsx("div",{className:"flex items-center justify-center gap-2 py-2 border-b border-white/10",children:o.jsxs($.div,{className:"flex items-center gap-2",animate:{filter:t?"drop-shadow(0 0 8px hsla(var(--accent), 0.5))":"none"},transition:{duration:.3},children:[o.jsx(Ke,{className:`h-3 w-3 transition-colors duration-300 ${t?"text-accent-400":"text-white/40"}`}),o.jsx("span",{className:`text-[10px] sm:text-[11px] uppercase tracking-widest font-semibold transition-colors duration-300 ${t?"text-white/70":"text-white/50"}`,children:s("simulator.label",{defaultValue:"Live Scenario Preview"})}),o.jsx(Ke,{className:`h-3 w-3 transition-colors duration-300 ${t?"text-accent-400":"text-white/40"}`})]})}),o.jsx("div",{className:"px-3 sm:px-4 py-3 sm:py-4",children:o.jsx(tt,{mode:"wait",children:o.jsxs($.div,{initial:a?{opacity:0}:{opacity:1},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"space-y-3 sm:space-y-4",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4",children:[o.jsxs("div",{className:"flex-1 flex gap-2 sm:gap-3",children:[o.jsx("div",{className:"flex-shrink-0 w-7 h-7 sm:w-8 sm:h-8 rounded-full bg-white/10 border border-white/20 flex items-center justify-center",children:o.jsx(Vi,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4 text-white/60"})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("span",{className:"text-[10px] sm:text-[11px] uppercase tracking-wide text-white/40 font-medium mb-1 block",children:s("simulator.guestLabel",{defaultValue:"Guest"})}),o.jsx("div",{className:"rounded-xl rounded-tl-sm px-3 py-2 sm:px-4 sm:py-2.5 min-h-[48px] sm:min-h-[52px]",style:{background:"rgba(255, 255, 255, 0.08)",border:"1px solid rgba(255, 255, 255, 0.12)"},children:o.jsxs("p",{className:"text-white/90 text-sm sm:text-[15px] leading-relaxed",children:['"',f,'"',a&&!x&&o.jsx($.span,{animate:{opacity:[1,0]},transition:{repeat:1/0,duration:.5},className:"inline-block w-0.5 h-4 bg-white/60 ml-0.5 align-middle"})]})})]})]}),o.jsxs("div",{className:"flex-1 flex gap-2 sm:gap-3",children:[o.jsx("div",{className:"flex-shrink-0 w-7 h-7 sm:w-8 sm:h-8 rounded-full flex items-center justify-center",style:{background:"linear-gradient(135deg, hsl(var(--primary-600)) 0%, hsl(var(--primary-700)) 100%)",border:"1px solid rgba(255, 255, 255, 0.25)"},children:o.jsx("span",{className:"text-white font-bold text-xs sm:text-sm",children:"C"})}),o.jsxs("div",{className:"flex-1",children:[o.jsx("span",{className:"text-[10px] sm:text-[11px] uppercase tracking-wide text-accent-400/80 font-medium mb-1 block",children:"Cendra"}),o.jsx("div",{className:"rounded-xl rounded-tl-sm px-3 py-2 sm:px-4 sm:py-2.5 min-h-[48px] sm:min-h-[52px]",style:{background:"linear-gradient(135deg, hsla(var(--primary-600), 0.25) 0%, hsla(var(--primary-700), 0.15) 100%)",border:"1px solid hsla(var(--primary-500), 0.3)"},children:o.jsx("p",{className:"text-white/95 text-sm sm:text-[15px] leading-relaxed",children:a&&!v?o.jsx("span",{className:"text-white/40 italic text-sm",children:s("simulator.thinking",{defaultValue:"Working on it..."})}):o.jsxs(o.Fragment,{children:['"',b,'"',a&&v&&!w&&o.jsx($.span,{animate:{opacity:[1,0]},transition:{repeat:1/0,duration:.5},className:"inline-block w-0.5 h-4 bg-accent-400 ml-0.5 align-middle"})]})})})]})]})]}),a&&x&&m.length>0&&o.jsx($.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},transition:{duration:.3},className:"px-2 sm:px-4",children:o.jsxs("div",{className:"rounded-lg px-3 py-2.5 sm:px-4 sm:py-3",style:{background:"rgba(255, 255, 255, 0.03)",border:"1px solid rgba(255, 255, 255, 0.08)"},children:[o.jsxs("div",{className:"flex items-center gap-1.5 mb-2",children:[o.jsx(Ke,{className:"h-3 w-3 text-accent-400/70"}),o.jsx("span",{className:"text-[10px] uppercase tracking-wide text-white/40 font-medium",children:s("simulator.workflowLabel",{defaultValue:"Cendra is working..."})})]}),o.jsx("div",{className:"flex flex-wrap gap-2",children:g.map((j,N)=>{const V=P(j.key);return o.jsxs($.div,{initial:{opacity:0,scale:.8},animate:{opacity:j.status==="pending"?.4:1,scale:j.status==="active"?1.05:1},transition:{duration:.2},className:`
flex items-center gap-1.5 px-2.5 py-1.5 rounded-full text-xs font-medium
transition-all duration-200
${j.status==="complete"?"bg-success/20 text-success border border-success/30":j.status==="active"?"bg-accent-400/20 text-accent-400 border border-accent-400/40":"bg-white/5 text-white/40 border border-white/10"}
`,children:[j.status==="complete"?o.jsx(ki,{className:"h-3 w-3"}):j.status==="active"?o.jsx($.div,{animate:{rotate:360},transition:{repeat:1/0,duration:1,ease:"linear"},children:o.jsx(wa,{className:"h-3 w-3"})}):o.jsx(V,{className:"h-3 w-3"}),o.jsx("span",{children:y(j.key)})]},j.key)})})]})})]},`scenario-${e}`)})})]})},Dd=({tier:e,isActive:t,onClick:s})=>{const{t:n}=ke("pricing"),[i,a]=p.useState(!1);return o.jsx(Xt,{children:o.jsxs(He,{children:[o.jsx(_e,{asChild:!0,children:o.jsxs("button",{onClick:s,onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),className:`flex-1 min-w-[calc(50%-0.25rem)] sm:min-w-0 pt-4 pb-1.5 sm:pt-4 sm:pb-1.5 px-1.5 sm:px-2 rounded-xl text-center transition-all duration-200 cursor-pointer relative ${t?"bg-accent-500 border border-accent-400 shadow-lg shadow-accent-500/30":i?"bg-white/10 border border-accent-500/50":"bg-white/6 border border-white/18 hover:bg-white/10"}`,"aria-label":`${e.title}: ${e.label}`,children:[e.inviteOnly&&o.jsx("span",{className:"absolute top-1 left-1/2 -translate-x-1/2 text-white text-[8px] sm:text-[9px] font-semibold px-1.5 py-0.5 rounded-full uppercase tracking-wide whitespace-nowrap bg-accent-400 z-10",children:n("widget.inviteOnly",{defaultValue:"Invite only"})}),o.jsx("span",{className:`block text-[9px] sm:text-[10px] font-semibold uppercase tracking-wide ${t?"text-white/90":"text-white/70"} ${e.inviteOnly?"mt-2":""}`,children:e.title}),o.jsxs("span",{className:`block text-sm sm:text-base font-bold ${t?"text-white":"text-white/90"}`,children:["$",e.price]}),o.jsx("span",{className:`block text-[9px] sm:text-[11px] leading-tight font-medium ${t?"text-white/85":"text-white/60"}`,children:n(`widget.tierCaption.${e.level}`,{defaultValue:e.caption})}),o.jsx(tt,{children:i&&!t&&o.jsx($.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.15,ease:"easeOut"},className:"absolute -bottom-2.5 left-1/2 -translate-x-1/2 z-10",children:o.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full bg-white text-primary-900 text-[10px] font-bold whitespace-nowrap shadow-lg shadow-black/25",children:[o.jsx(Ua,{className:"h-3 w-3"}),n("widget.previewScenario",{defaultValue:"Preview"})]})})})]})}),e.inviteOnly&&o.jsx(Ge,{side:"bottom",align:"start",className:"bg-neutral-900 text-white border-white/10 max-w-xs text-sm",children:n("widget.inviteOnlyTooltip",{defaultValue:"Advanced workflows are currently invite-only. Pricing remains automation-based."})})]})})},ie=20,Ed=(e,t)=>{if(!t)return{main:"rgba(25, 25, 30, 0.7)",glow:"rgba(60, 55, 65, 0.15)",rim:"rgba(80, 75, 85, 0.2)",bloom:"transparent"};const s=e/100,n=70-s*40,i=65+Math.sin(s*Math.PI)*25,a=355-s*10,r=.9-s*.4,l=.5-s*.3;return{main:`linear-gradient(180deg,
hsl(${a}, ${i}%, ${n+8}%) 0%,
hsl(${a-5}, ${i-5}%, ${n-5}%) 50%,
hsl(${a}, ${i}%, ${n+3}%) 100%
)`,glow:`hsla(${a}, ${i+10}%, ${n+15}%, ${r})`,rim:`hsla(${a+5}, ${i}%, ${n+25}%, 0.5)`,bloom:`hsla(${a}, ${i}%, ${n}%, ${l})`}},Rd=e=>{const t=e/100,s=70-t*35,n=70+Math.sin(t*Math.PI)*20,i=355-t*10;return{text:`hsl(${i}, ${n}%, ${Math.min(s+20,85)}%)`,border:`hsla(${i}, ${n}%, ${s+15}%, 0.55)`,glow:`hsla(${i}, ${n}%, ${s}%, 0.35)`,bg:"rgba(30, 20, 25, 0.92)"}},Ld=({value:e,isAnimating:t,className:s=""})=>{const n=p.useMemo(()=>Array.from({length:ie},(l,c)=>{const d=c/ie*100,u=(c+1)/ie*100,h=(d+u)/2,m=e>=u||e>d&&e<u,f=m&&(e<u||c===ie-1&&e>=100);return{index:c,isActive:m,isLeadingEdge:f&&e>d,segmentMid:h,colors:Ed(h,m)}}),[e]),i=p.useMemo(()=>{for(let l=ie-1;l>=0;l--){const c=l/ie*100;if(e>c)return l}return 0},[e]),a=p.useMemo(()=>Rd(e),[e]),r=p.useMemo(()=>(i+.5)/ie*100,[i]);return o.jsxs("div",{className:`relative w-full ${s}`,children:[o.jsx($.div,{className:"absolute -top-6 z-20 pointer-events-none",initial:!1,animate:{left:`${r}%`,x:"-50%"},transition:{duration:t?.2:.35,ease:[.4,0,.2,1]},children:o.jsxs($.div,{className:"px-2 py-0.5 rounded-full font-mono text-xs font-bold tracking-wider",style:{background:a.bg,color:a.text,border:`1px solid ${a.border}`,boxShadow:`0 0 12px ${a.glow}, 0 2px 8px rgba(0,0,0,0.4)`,backdropFilter:"blur(8px)"},children:[e,"%"]})}),o.jsxs("div",{className:"relative h-3 rounded-full overflow-visible",style:{background:`
linear-gradient(180deg,
rgba(20, 18, 22, 1) 0%,
rgba(12, 10, 15, 1) 40%,
rgba(15, 13, 18, 1) 60%,
rgba(20, 18, 22, 1) 100%
)
`,boxShadow:`
inset 0 1px 3px rgba(0, 0, 0, 0.6),
inset 0 -1px 2px rgba(0, 0, 0, 0.4),
0 1px 0 rgba(255, 255, 255, 0.02)
`},children:[o.jsx("div",{className:"absolute -top-px left-1 right-1 h-px rounded-full",style:{background:"linear-gradient(90deg, transparent 0%, rgba(180, 120, 140, 0.15) 20%, rgba(180, 120, 140, 0.2) 50%, rgba(180, 120, 140, 0.15) 80%, transparent 100%)"}}),o.jsx("div",{className:"absolute -bottom-px left-1 right-1 h-px rounded-full",style:{background:"linear-gradient(90deg, transparent 0%, rgba(150, 100, 120, 0.12) 20%, rgba(150, 100, 120, 0.15) 50%, rgba(150, 100, 120, 0.12) 80%, transparent 100%)"}}),o.jsx("div",{className:"absolute inset-0 rounded-full overflow-hidden",children:n.map(l=>l.isActive&&o.jsx($.div,{className:"absolute top-0 bottom-0",style:{left:`${l.index/ie*100}%`,width:`${100/ie+2}%`},initial:!1,animate:{opacity:l.isActive?1:0,background:`radial-gradient(ellipse 120% 200% at 50% 50%, ${l.colors.bloom} 0%, transparent 70%)`},transition:{duration:.2,delay:t?l.index*.015:0}},`bloom-${l.index}`))}),o.jsx("div",{className:"absolute inset-0 flex gap-[2px] px-[3px] py-[2px]",children:n.map(l=>o.jsxs($.div,{className:"flex-1 rounded-[2px] relative overflow-hidden",initial:!1,animate:{opacity:l.isActive?1:.5},transition:{duration:t?.08:.2,delay:t?l.index*.015:0},children:[o.jsx("div",{className:"absolute inset-0 rounded-[2px]",style:{background:(l.isActive,l.colors.main),boxShadow:l.isActive?`
inset 0 1px 1px rgba(255,255,255,0.3),
inset 0 -1px 1px rgba(0,0,0,0.3),
0 0 6px ${l.colors.bloom}
`:`
inset 0 1px 1px rgba(255,255,255,0.05),
inset 0 -1px 1px rgba(0,0,0,0.3),
inset 0 0 4px rgba(0,0,0,0.4)
`}}),o.jsx("div",{className:"absolute inset-x-0 top-0 h-[1px] rounded-t-[2px]",style:{background:`linear-gradient(90deg, transparent 10%, ${l.colors.rim} 50%, transparent 90%)`}}),l.isActive&&o.jsx($.div,{className:"absolute inset-0 rounded-[2px]",initial:!1,animate:{opacity:l.isLeadingEdge?[.65,1,.65]:.8},transition:{duration:l.isLeadingEdge?2:.2,repeat:l.isLeadingEdge?1/0:0,ease:"easeInOut"},style:{background:`radial-gradient(ellipse 80% 120% at 50% 30%, ${l.colors.glow} 0%, transparent 60%)`}}),o.jsx("div",{className:"absolute inset-x-[15%] top-[2px] h-[3px] rounded-full opacity-40",style:{background:l.isActive?"linear-gradient(180deg, rgba(255,255,255,0.45) 0%, transparent 100%)":"linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%)"}})]},l.index))}),o.jsx("div",{className:"absolute inset-0 pointer-events-none rounded-full",style:{background:"linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 30%, rgba(0,0,0,0.08) 100%)"}})]}),o.jsx("div",{className:"absolute left-3 right-3 h-px top-[14px] rounded-full opacity-50",style:{background:"linear-gradient(90deg, transparent 0%, rgba(150, 100, 120, 0.1) 30%, rgba(150, 100, 120, 0.15) 50%, rgba(150, 100, 120, 0.1) 70%, transparent 100%)"}})]})},$e=[{level:1,price:10,minAuto:0,maxAuto:25,label:"0-25%",title:"Associate",caption:"Learning Mode",representativeValue:25,inviteOnly:!1},{level:2,price:19,minAuto:26,maxAuto:50,label:"26-50%",title:"Specialist",caption:"Building Confidence",representativeValue:50,inviteOnly:!1},{level:3,price:29,minAuto:51,maxAuto:75,label:"51-75%",title:"Manager",caption:"Guardrails Active",representativeValue:75,inviteOnly:!1},{level:4,price:39,minAuto:76,maxAuto:100,label:"76-100%",title:"Director",caption:"Advanced Workflows",representativeValue:100,inviteOnly:!0}],Id=e=>e<=25?$e[0]:e<=50?$e[1]:e<=75?$e[2]:$e[3],Bd=({automationLevel:e,onAutomationChange:t,properties:s,onPropertiesChange:n}={})=>{const{t:i}=ke("pricing"),a=ws(),[r,l]=p.useState(20),[c,d]=p.useState(50),[u,h]=p.useState(!1),[m,f]=p.useState(!0),x=p.useRef(null),g=e??r,v=s??c,b=p.useCallback(A=>{t?t(A):l(A)},[t]),w=p.useCallback(A=>{n?n(A):d(A)},[n]),y=p.useMemo(()=>Id(g),[g]),P=v===""?0:Math.max(v,0),j=y.price*P,N=p.useCallback(A=>{const B=A.target.value;if(B===""){w("");return}const _=parseInt(B,10);!isNaN(_)&&_>=0&&(w(Math.min(_,9999)),_>0&&ee("properties_widget",_))},[]),V=p.useCallback(()=>{const B=Math.min((v===""?0:v)+1,9999);w(B),ee("properties_widget",B)},[v,w]),C=p.useCallback(()=>{const B=Math.max((v===""?0:v)-1,0);w(B),B>0&&ee("properties_widget",B)},[v,w]),k=p.useCallback(A=>{f(!0);const B=A.representativeValue,_=g,he=200,me=performance.now();x.current&&cancelAnimationFrame(x.current),h(!0);const De=I=>{const K=I-me,q=Math.min(K/he,1),T=1-Math.pow(1-q,3),M=Math.round(_+(B-_)*T);b(M),q<1?x.current=requestAnimationFrame(De):(h(!1),x.current=null)};x.current=requestAnimationFrame(De),ee("tier_click",A.level)},[g,b]),E=p.useCallback(()=>{vt("widget_hire_me","pricing"),a("/get-started")},[a]);return o.jsx("div",{className:"w-full max-w-3xl mx-auto px-4 sm:px-0",children:o.jsxs("div",{className:"bg-primary-900/85 backdrop-blur-xl rounded-2xl overflow-hidden shadow-2xl",style:{boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5)",border:"1px solid rgba(255, 255, 255, 0.25)"},children:[o.jsx("div",{className:"px-4 sm:px-5 lg:px-6 pt-4 sm:pt-5 pb-3",children:o.jsx("p",{className:"text-white/85 text-[15px] sm:text-base text-center max-w-xl mx-auto leading-relaxed",children:i("widget.subtitle",{defaultValue:"Pay for results. Your tier updates monthly based on the % of tasks Cendra automates."})})}),o.jsx("div",{className:"mx-4 sm:mx-5 lg:mx-6 border-t border-white/15"}),o.jsxs("div",{className:"px-4 sm:px-5 lg:px-6 py-2.5 sm:py-3",children:[o.jsxs("div",{className:"flex items-center justify-between gap-3 mb-2",children:[o.jsx("span",{className:"text-[13px] sm:text-sm text-white/75 font-medium",children:i("widget.sliderLabel",{defaultValue:"Automation estimate"})}),o.jsx(Xt,{delayDuration:0,children:o.jsxs(He,{children:[o.jsx(_e,{asChild:!0,children:o.jsx("button",{className:"text-white/50 hover:text-white/80 transition-colors",children:o.jsx(bt,{className:"h-3.5 w-3.5"})})}),o.jsx(Ge,{side:"bottom",align:"end",sideOffset:8,className:"bg-neutral-900 text-white border-white/10 max-w-[200px] text-sm z-[60]",children:i("widget.meterTooltip",{defaultValue:"Click the tier cards below to see how pricing scales."})})]})})]}),o.jsx(Ld,{value:g,isAnimating:u})]}),o.jsx("div",{className:"px-4 sm:px-5 lg:px-6 pt-2 pb-2",children:o.jsx("div",{className:"flex flex-wrap sm:flex-nowrap gap-1.5 sm:gap-2",children:$e.map(A=>o.jsx(Dd,{tier:A,isActive:y.level===A.level,onClick:()=>k(A)},A.level))})}),o.jsxs("div",{className:"px-4 sm:px-5 lg:px-6 pb-3",children:[o.jsx(Md,{currentTierLevel:y.level,isActive:m}),o.jsx("p",{className:"text-[11px] sm:text-xs text-white/50 text-center mt-2.5 leading-relaxed max-w-sm mx-auto",children:i("widget.reassuranceShort",{defaultValue:"We only upgrade your tier when we successfully automate tasks."})})]}),o.jsx("div",{className:"px-4 sm:px-6 py-4 sm:py-5",style:{background:"rgba(255, 255, 255, 0.05)",borderTop:"1px solid rgba(255, 255, 255, 0.15)"},children:o.jsxs("div",{className:"flex flex-wrap md:flex-nowrap items-center gap-4 md:gap-4",children:[o.jsx("div",{className:"flex-shrink-0 w-[calc(50%-0.5rem)] md:w-auto",children:o.jsx("p",{className:"text-white font-bold leading-none",style:{fontSize:"clamp(24px, 4vw, 32px)"},children:i("widget.pricePerUnit",{price:y.price,defaultValue:`$${y.price} / listing`})})}),o.jsx("div",{className:"hidden md:block w-px h-12 bg-white/20 flex-shrink-0"}),o.jsxs("div",{className:"flex-shrink-0 w-[calc(50%-0.5rem)] md:w-auto",children:[o.jsxs("div",{className:"flex items-center gap-1 mb-1",children:[o.jsx("label",{htmlFor:"properties-input",className:"text-[10px] sm:text-[11px] uppercase tracking-wider text-white/60 font-semibold",children:i("widget.properties",{defaultValue:"Units"})}),o.jsx(Xt,{delayDuration:0,children:o.jsxs(He,{children:[o.jsx(_e,{asChild:!0,children:o.jsx("button",{className:"text-white/40 hover:text-white/70 transition-colors",children:o.jsx(bt,{className:"h-3 w-3"})})}),o.jsx(Ge,{side:"top",align:"start",sideOffset:8,className:"bg-neutral-900 text-white border-white/10 max-w-[180px] text-sm z-[60]",children:i("widget.unitsTooltip",{defaultValue:"Rooms, apartments, or entire homes"})})]})})]}),o.jsxs("div",{className:"flex items-center gap-0",children:[o.jsx("button",{type:"button",onClick:C,disabled:P<=0,className:"flex items-center justify-center w-10 h-10 rounded-l-lg bg-white/10 border border-white/25 border-r-0 text-white/80 hover:bg-white/15 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Decrease units",children:o.jsx(js,{className:"h-4 w-4"})}),o.jsx(re,{id:"properties-input",type:"number",inputMode:"numeric",min:"0",max:"9999",value:v,onChange:N,placeholder:"50",className:"bg-white/10 border-white/25 text-white placeholder:text-white/40 h-10 w-16 text-center text-base font-semibold rounded-none border-x-0 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"}),o.jsx("button",{type:"button",onClick:V,disabled:P>=9999,className:"flex items-center justify-center w-10 h-10 rounded-r-lg bg-white/10 border border-white/25 border-l-0 text-white/80 hover:bg-white/15 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Increase units",children:o.jsx(Ts,{className:"h-4 w-4"})})]})]}),o.jsx("div",{className:"hidden md:block w-px h-12 bg-white/20 flex-shrink-0"}),o.jsxs("div",{className:"flex-shrink-0 w-[calc(50%-0.5rem)] md:w-auto md:flex-1",children:[o.jsx("p",{className:"text-[10px] sm:text-[11px] uppercase tracking-wider text-white/60 font-semibold mb-1",children:i("widget.totalMonthly",{defaultValue:"Total Monthly"})}),o.jsxs("p",{className:"text-white font-bold leading-none",style:{fontSize:"clamp(28px, 5vw, 36px)"},children:["$",j.toLocaleString()]})]}),o.jsx("div",{className:"flex-shrink-0 w-full md:w-auto flex items-end md:items-center",children:o.jsxs(xe,{onClick:E,className:"w-full md:w-auto text-white font-semibold h-11 px-6 rounded-xl shadow-lg transition-all hover:shadow-xl hover:scale-[1.02] text-base whitespace-nowrap",style:{background:"linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--accent-400)) 100%)",boxShadow:"0 8px 24px -6px hsla(345, 69%, 55%, 0.35)"},children:[i("widget.hireMe",{defaultValue:"Hire Me"}),o.jsx(Ye,{className:"ml-1.5 h-4 w-4 flex-shrink-0"})]})})]})})]})})},dt=[{level:1,price:10,minAuto:0,maxAuto:25},{level:2,price:19,minAuto:26,maxAuto:50},{level:3,price:29,minAuto:51,maxAuto:75},{level:4,price:39,minAuto:76,maxAuto:100}],Fd=e=>e<=25?dt[0]:e<=50?dt[1]:e<=75?dt[2]:dt[3],Od=2500,$d=({automationLevel:e,properties:t,onPropertiesChange:s})=>{const{t:n}=ke("pricing"),i=ws(),a=Wa(),[r,l]=p.useState(!1),c=Fd(e),d=t===""?0:Math.max(t,0),u=c.price*d;p.useEffect(()=>{const b=()=>{const w=window.scrollY,y=document.getElementById("roi-section");if(y){const P=y.getBoundingClientRect().bottom+w;l(w>P)}else l(w>Od)};return window.addEventListener("scroll",b,{passive:!0}),b(),()=>window.removeEventListener("scroll",b)},[]);const h=p.useCallback(b=>{const w=b.target.value;if(w===""){s("");return}const y=parseInt(w,10);!isNaN(y)&&y>=0&&(s(Math.min(y,9999)),y>0&&ee("sticky_bar_units",y))},[s]),m=p.useCallback(()=>{const w=Math.min((t===""?0:t)+1,9999);s(w),ee("sticky_bar_units",w)},[t,s]),f=p.useCallback(()=>{const w=Math.max((t===""?0:t)-1,0);s(w),w>0&&ee("sticky_bar_units",w)},[t,s]),x=p.useCallback(()=>{r?(s(1),vt("sticky_bar_free_trial","pricing")):vt("sticky_bar_hire_me","pricing"),i("/get-started")},[i,r,s]),g=r?n("widget.freeTrial",{defaultValue:"Start Free Trial"}):n("widget.hireMe",{defaultValue:"Hire Me"}),v=r?{background:"linear-gradient(135deg, hsl(var(--success)) 0%, hsl(168, 80%, 40%) 100%)",boxShadow:"0 8px 24px -6px hsla(168, 70%, 45%, 0.4)"}:{background:"linear-gradient(135deg, hsl(var(--accent)) 0%, hsl(var(--accent-400)) 100%)",boxShadow:"0 8px 24px -6px hsla(345, 69%, 55%, 0.35)"};return a?o.jsx($.div,{initial:{y:"100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"100%",opacity:0},transition:{type:"spring",stiffness:300,damping:30,mass:.8},className:"fixed bottom-0 left-0 w-full z-[100]",children:o.jsxs("div",{className:"flex items-center justify-between px-4 py-3 pb-6",style:{background:"rgba(11, 17, 32, 0.98)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",borderTop:"1px solid rgba(255, 255, 255, 0.1)"},children:[o.jsxs("div",{className:"flex flex-col",children:[o.jsxs("span",{className:"text-xs text-white/50",children:[d," ",n("widget.properties",{defaultValue:"units"})]}),o.jsx("div",{className:"flex items-baseline gap-1",children:o.jsx("span",{className:"text-lg font-bold text-white",children:n("widget.totalPerMonth",{price:u.toLocaleString(),defaultValue:`$${u.toLocaleString()} / mo`})})})]}),o.jsx("div",{className:"flex-shrink-0",children:o.jsx(xe,{onClick:x,className:"text-white font-semibold h-11 px-5 rounded-full shadow-lg transition-all hover:shadow-xl text-sm overflow-hidden",style:v,children:o.jsx(tt,{mode:"wait",children:o.jsxs($.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"flex items-center whitespace-nowrap",children:[g,o.jsx(Ye,{className:"ml-1.5 h-4 w-4"})]},r?"trial":"hire")})})})]})}):o.jsx($.div,{initial:{y:"-100%",opacity:0},animate:{y:0,opacity:1},exit:{y:"-100%",opacity:0},transition:{type:"spring",stiffness:300,damping:30,mass:.8},className:"fixed top-6 left-0 right-0 z-[100] w-[95%] max-w-4xl mx-auto",children:o.jsxs("div",{className:"flex items-center justify-between rounded-full px-4 py-3",style:{background:"rgba(11, 17, 32, 0.95)",backdropFilter:"blur(20px)",WebkitBackdropFilter:"blur(20px)",border:"1px solid rgba(255, 255, 255, 0.1)",boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05)"},children:[o.jsx(Ta,{to:"/",className:"flex-shrink-0 cursor-pointer hover:opacity-80 transition-opacity mr-3","aria-label":"Go to homepage",children:o.jsx("img",{src:Sa,alt:"Cendra",className:"h-6 w-auto brightness-0 invert"})}),o.jsx("div",{className:"h-8 w-px bg-white/10 mr-4 flex-shrink-0"}),o.jsx("div",{className:"flex-shrink-0",children:o.jsx("span",{className:"text-white font-bold text-xl",children:n("widget.pricePerUnit",{price:c.price,defaultValue:`$${c.price} / listing`})})}),o.jsx("div",{className:"h-8 w-px bg-white/10 mx-4 flex-shrink-0"}),o.jsxs("div",{className:"flex items-center gap-0 flex-shrink-0",children:[o.jsx("span",{className:"text-[10px] uppercase tracking-wider text-white/50 font-semibold mr-2",children:n("widget.properties",{defaultValue:"Units"})}),o.jsx("button",{type:"button",onClick:f,disabled:d<=0,className:"flex items-center justify-center w-9 h-9 rounded-full bg-white/10 text-white/70 hover:bg-white/20 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Decrease units",children:o.jsx(js,{className:"h-3.5 w-3.5"})}),o.jsx(re,{type:"number",inputMode:"numeric",min:"0",max:"9999",value:t,onChange:h,placeholder:"50",className:"bg-transparent border-none text-white placeholder:text-white/40 h-9 w-14 text-center text-lg font-semibold focus-visible:ring-0 focus-visible:ring-offset-0 [appearance:textfield] [&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none"}),o.jsx("button",{type:"button",onClick:m,disabled:d>=9999,className:"flex items-center justify-center w-9 h-9 rounded-full bg-white/10 text-white/70 hover:bg-white/20 hover:text-white active:scale-95 transition-all disabled:opacity-40 disabled:cursor-not-allowed touch-manipulation","aria-label":"Increase units",children:o.jsx(Ts,{className:"h-3.5 w-3.5"})})]}),o.jsx("div",{className:"h-8 w-px bg-white/10 mx-4 flex-shrink-0"}),o.jsxs("div",{className:"flex items-center gap-4 flex-shrink-0",children:[o.jsx("div",{className:"text-right",children:o.jsx("span",{className:"text-white font-bold text-xl",children:n("widget.totalPerMonth",{price:u.toLocaleString(),defaultValue:`$${u.toLocaleString()} / mo`})})}),o.jsx(xe,{onClick:x,className:"text-white font-semibold h-10 px-5 rounded-full shadow-lg transition-all hover:shadow-xl hover:scale-[1.02] text-base overflow-hidden min-w-[140px]",style:v,children:o.jsx(tt,{mode:"wait",children:o.jsxs($.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"flex items-center whitespace-nowrap",children:[g,o.jsx(Ye,{className:"ml-1 h-4 w-4"})]},r?"trial":"hire")})})]})]})})},ht={nightlyRate:150,occupiedDaysPerMonth:21,avgLengthOfStay:3,questionsPerStay:20,minutesPerQuestion:10,laborCostPerHour:10,lostInquiryRate:.03,upsellRate:.05,avgUpsellValue:75},mt=[{level:1,price:10,minAuto:0,maxAuto:25,label:"0-25%",title:"Associate"},{level:2,price:19,minAuto:25,maxAuto:50,label:"25-50%",title:"Specialist"},{level:3,price:29,minAuto:50,maxAuto:75,label:"50-75%",title:"Manager"},{level:4,price:39,minAuto:75,maxAuto:100,label:"75%+",title:"Director"}],Kd=[{icon:yt,labelKey:"simple.features.guestComm"},{icon:Ia,labelKey:"simple.features.multiLang"},{icon:Zt,labelKey:"simple.features.bookingMods"},{icon:Ba,labelKey:"simple.features.policies"},{icon:Fa,labelKey:"simple.features.upsells"},{icon:Ke,labelKey:"simple.features.dashboard"}],Pi=[{questionKey:"faq.hiring.howLongTraining.question",answerKey:"faq.hiring.howLongTraining.answer"},{questionKey:"faq.hiring.whatIfMistake.question",answerKey:"faq.hiring.whatIfMistake.answer"},{questionKey:"faq.hiring.canPauseCancel.question",answerKey:"faq.hiring.canPauseCancel.answer"},{questionKey:"faq.hiring.allFeaturesUnlock.question",answerKey:"faq.hiring.allFeaturesUnlock.answer"}],Ci=[{questionKey:"faq.pricing.howDefineAutomation.question",answerKey:"faq.pricing.howDefineAutomation.answer"},{questionKey:"faq.pricing.whyPriceIncrease.question",answerKey:"faq.pricing.whyPriceIncrease.answer"},{questionKey:"faq.pricing.howValueCalculated.question",answerKey:"faq.pricing.howValueCalculated.answer"}],be=[{quoteKey:"testimonials.maria.quote",author:"Maria Santos",roleKey:"testimonials.maria.role",portfolioSizeKey:"testimonials.maria.portfolioSize"},{quoteKey:"testimonials.james.quote",author:"James Thompson",roleKey:"testimonials.james.role",portfolioSizeKey:"testimonials.james.portfolioSize"},{quoteKey:"testimonials.sarah.quote",author:"Sarah Liu",roleKey:"testimonials.sarah.role",portfolioSizeKey:"testimonials.sarah.portfolioSize"}],Ud=e=>{for(let t=mt.length-1;t>=0;t--)if(e>=mt[t].minAuto)return mt[t];return mt[0]},Wd=(e,t,s,n,i,a,r)=>{const l=t*s/n,c=l*i,d=c*(e/100),u=d*a/60*r,m=s*ht.nightlyRate*t*ht.lostInquiryRate*(e/100),f=l*ht.upsellRate*ht.avgUpsellValue*(e/100),x=m+f;return{monthlyQuestions:Math.round(c),automatedQuestions:Math.round(d),costSaved:Math.round(u),revenueUplift:Math.round(x),totalValue:Math.round(u+x)}},oh=()=>{const{t:e}=ke("pricing");Pa();const t=ws();Ca({pageName:"pricing"}),Na({pageName:"pricing"}),p.useEffect(()=>{ka()},[]);const[s,n]=p.useState(!1);p.useEffect(()=>{const T=()=>{n(window.scrollY>700)};return window.addEventListener("scroll",T,{passive:!0}),()=>window.removeEventListener("scroll",T)},[]);const[i,a]=p.useState(20),[r,l]=p.useState(50),c=p.useCallback(T=>{l(T),typeof T=="number"&&T>0&&ee("shared_units",T)},[]),[d,u]=p.useState(50),[h,m]=p.useState(21),[f,x]=p.useState(3),[g,v]=p.useState(20),[b,w]=p.useState(10),[y,P]=p.useState(10),j=r===""?1:Math.max(r,1);p.useEffect(()=>{u(j)},[j]);const N=p.useMemo(()=>Ud(i),[i]),V=p.useMemo(()=>Wd(i,d,h,f,g,b,y),[i,d,h,f,g,b,y]),C=p.useMemo(()=>N.price*Math.max(d,1),[N.price,d]),k=p.useMemo(()=>C>0?V.totalValue/C:0,[V.totalValue,C]),E=at(V.costSaved,400),A=at(V.revenueUplift,400),B=at(C,400),_=at(Math.round(k*10),400),[he,me]=p.useState(!1),De={1:15,2:35,3:65,4:85},I=p.useCallback(T=>{he||(a(T[0]),nn("automation",T[0]))},[he]);p.useCallback(T=>{const M=De[T.level];me(!0);const J=i,ma=performance.now(),fa=250,tn=pa=>{const xa=pa-ma,sn=Math.min(xa/fa,1),ga=1-Math.pow(1-sn,3),ya=Math.round(J+(M-J)*ga);a(ya),sn<1?requestAnimationFrame(tn):(me(!1),nn("automation",M),ee("tier_card_click",T.level))};requestAnimationFrame(tn)},[i]),p.useCallback(T=>{const M=T.target.value;if(M===""){l("");return}const J=parseInt(M,10);!isNaN(J)&&J>=0&&(l(Math.min(J,1e3)),J>0&&ee("portfolio_size",J))},[]);const K=p.useCallback(()=>{vt("hire_cendra_today","pricing"),t("/get-started")},[t]),q=p.useCallback(T=>{const M=document.getElementById(T);M&&M.scrollIntoView({behavior:"smooth",block:"start"})},[]);return o.jsxs(o.Fragment,{children:[o.jsx(Va,{title:e("meta.title"),description:e("meta.description"),ogTitle:e("meta.ogTitle"),ogDescription:e("meta.ogDescription"),canonicalPath:"/pricing"}),o.jsx(Aa,{items:[{name:"Home",path:"/"},{name:e("meta.title"),path:"/pricing"}]}),o.jsx(Ma,{items:[...Pi,...Ci].map(T=>({question:e(T.questionKey),answer:e(T.answerKey)}))}),o.jsx(tt,{children:s&&o.jsx($d,{automationLevel:i,properties:r,onPropertiesChange:c})}),o.jsxs("div",{className:"relative overflow-x-clip",children:[o.jsx("div",{id:"pricing-hero",className:"scroll-mt-24",children:o.jsx(Oa,{minHeight:"auto",showScrollCue:!1,scrollTargetId:"pricing-content",children:o.jsxs("div",{className:"px-4 sm:px-6 lg:px-8 animate-fade-in",style:{paddingTop:"clamp(72px, 9vh, 100px)",paddingBottom:"clamp(20px, 3vh, 32px)"},children:[o.jsxs("div",{className:"max-w-3xl mx-auto text-center",style:{marginBottom:"clamp(14px, 2vh, 20px)"},children:[o.jsx("h1",{className:"font-bold text-white tracking-tight animate-fade-in",style:{fontSize:"clamp(26px, 4.5vw, 48px)",lineHeight:"1.1",marginBottom:"clamp(6px, 1vh, 10px)"},children:e("hero.title")}),o.jsx("p",{className:"text-white/65 leading-relaxed max-w-lg mx-auto animate-fade-in",style:{animationDelay:"80ms",fontSize:"clamp(14px, 1.5vw, 17px)"},children:e("simple.heroSubtitle",{defaultValue:"Performance-based pricing. Starts at $10 / unit."})})]}),o.jsx("div",{className:"animate-fade-in",style:{animationDelay:"120ms"},children:o.jsx(Bd,{automationLevel:i,onAutomationChange:a,properties:r,onPropertiesChange:c})}),o.jsx("div",{className:"w-full mx-auto mt-4 px-4 sm:px-0 animate-fade-in",style:{maxWidth:"min(1100px, 92vw)",animationDelay:"200ms"},children:o.jsxs("div",{className:"flex flex-wrap justify-center items-center gap-x-4 gap-y-2 py-3 px-4 sm:px-5 rounded-xl",style:{background:"rgba(255, 255, 255, 0.06)",border:"1px solid rgba(255, 255, 255, 0.15)"},children:[o.jsx("button",{onClick:()=>q("automation-rate-explained"),className:"text-sm text-white/75 hover:text-white transition-colors underline underline-offset-4 decoration-white/40 hover:decoration-white/70 py-1 px-1 min-h-[44px] flex items-center",children:e("simple.howAutomationWorks",{defaultValue:"How automation rate works"})}),o.jsx("span",{className:"text-white/30 hidden sm:inline",children:"•"}),o.jsx("button",{onClick:()=>q("value-created"),className:"text-sm text-white/75 hover:text-white transition-colors underline underline-offset-4 decoration-white/40 hover:decoration-white/70 py-1 px-1 min-h-[44px] flex items-center",children:e("simple.seeValueCreated",{defaultValue:"See how value is created"})}),o.jsx("span",{className:"text-white/30 hidden sm:inline",children:"•"}),o.jsx("button",{onClick:()=>q("how-pricing-works"),className:"text-sm text-white/75 hover:text-white transition-colors underline underline-offset-4 decoration-white/40 hover:decoration-white/70 py-1 px-1 min-h-[44px] flex items-center",children:e("simple.howPricingWorks",{defaultValue:"How pricing works"})})]})})]})})}),o.jsx($a,{id:"pricing-content",children:o.jsxs("main",{className:"bg-background",role:"main",children:[o.jsx(kd,{}),o.jsx("section",{id:"automation-rate-explained",className:"py-12 md:py-16 px-4 bg-neutral-50 scroll-mt-24",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h2",{className:"text-xl md:text-2xl font-bold text-[#0B1120] mb-2",children:e("simple.whatCountsTitle",{defaultValue:"What counts as automated"})}),o.jsx("p",{className:"text-sm text-neutral-600",children:e("simple.whatCountsSubtitle",{defaultValue:"We only charge for end-to-end resolutions. If you have to step in, it's on us."})})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[o.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-lg shadow-neutral-200/50 border border-green-100",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center bg-green-500",children:o.jsx(Ni,{className:"h-3.5 w-3.5 text-white"})}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:e("simple.automatedTitle",{defaultValue:"✅ Fully Resolved (Billable)"})})]}),o.jsx("p",{className:"text-sm text-neutral-600 mb-4 pl-8",children:e("simple.automatedDefinition",{defaultValue:"Cendra handles the request end-to-end based on your rules."})}),o.jsxs("ul",{className:"space-y-3 text-sm text-neutral-700",children:[o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-green-500 mt-0.5 font-medium",children:"•"}),e("simple.automatedExample1",{defaultValue:'Guest asks "Can I check in early?" → Cendra checks your calendar availability → Approves or Declines automatically.'})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-green-500 mt-0.5 font-medium",children:"•"}),e("simple.automatedExample2",{defaultValue:"Guest reports a leak → Cendra identifies the issue → Auto-dispatches your preferred plumber (Director Tier)."})]})]})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-lg shadow-neutral-200/50 border border-neutral-200",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[o.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center bg-neutral-200",children:o.jsx("span",{className:"text-neutral-500 text-xs font-bold",children:"×"})}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:e("simple.humanLoopTitle",{defaultValue:"× Human Loop (Free)"})})]}),o.jsx("p",{className:"text-sm text-neutral-600 mb-4 pl-8",children:e("simple.humanLoopDefinition",{defaultValue:'Cendra drafts the response, but waits for you to click "Send."'})}),o.jsxs("ul",{className:"space-y-3 text-sm text-neutral-700",children:[o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-neutral-400 mt-0.5 font-medium",children:"•"}),o.jsx("span",{children:e("simple.notAutomatedExample1",{defaultValue:'Guest asks "Can I bring a dog?" → Cendra drafts a policy rejection but flags it for your review (Draft Mode).'})})]}),o.jsxs("li",{className:"flex items-start gap-2",children:[o.jsx("span",{className:"text-neutral-400 mt-0.5 font-medium",children:"•"}),o.jsx("span",{children:e("simple.notAutomatedExample2",{defaultValue:"Guest asks a question not in your Knowledge Base → Cendra alerts you to provide the answer (Learning Moment)."})})]})]})]})]})]})}),o.jsx("section",{id:"faq-hiring",className:"py-14 md:py-20 px-4 bg-white scroll-mt-[calc(var(--nav-height)+16px)]",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] text-center mb-10",children:e("faq.hiringTitle")}),o.jsx(Re,{type:"single",collapsible:!0,className:"space-y-3",children:Pi.map((T,M)=>o.jsxs(Le,{value:`hiring-faq-${M}`,className:"bg-white rounded-2xl px-6 shadow-lg shadow-neutral-200/50",children:[o.jsx(Ie,{onClick:()=>rn(e(T.questionKey)),className:"text-left text-[#0B1120] hover:text-neutral-700 py-5",children:e(T.questionKey)}),o.jsx(Be,{className:"text-neutral-600 pb-5",children:e(T.answerKey)})]},M))})]})}),o.jsx("section",{id:"value-created",className:"py-14 md:py-20 px-4 scroll-mt-24 bg-neutral-50",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] mb-3",children:e("simple.valueCreatedTitle",{defaultValue:"See how value is created"})}),o.jsxs("p",{className:"text-neutral-600 flex items-center justify-center gap-2",children:[e("simple.valueCreatedSubtitle",{defaultValue:"Transparent assumptions. Adjust the inputs to match your portfolio."}),o.jsxs(He,{children:[o.jsx(_e,{children:o.jsx(bt,{className:"h-4 w-4 text-neutral-400"})}),o.jsx(Ge,{className:"max-w-xs",children:o.jsx("p",{children:e("simple.valueCreatedTooltip",{defaultValue:"These estimates are based on industry averages. Adjust the inputs below to match your specific portfolio."})})})]})]})]}),o.jsxs("div",{className:"bg-white rounded-3xl p-6 md:p-10 shadow-2xl shadow-[#0B1120]/5",children:[o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-10",children:[o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.cendrasFee")}),o.jsx("p",{className:"text-2xl md:text-3xl font-bold text-[#0B1120]",children:e("roiCalculator.feePerMonth",{price:B.count.toLocaleString(),defaultValue:`$${B.count.toLocaleString()} / mo`})})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.costSaved")}),o.jsx("p",{className:"text-2xl md:text-3xl font-bold text-info-600",children:e("roiCalculator.costSavedPerMonth",{price:E.count.toLocaleString(),defaultValue:`$${E.count.toLocaleString()} / mo`})})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.revenueUplift")}),o.jsx("p",{className:"text-2xl md:text-3xl font-bold text-accent-500",children:e("roiCalculator.revenueUpliftPerMonth",{price:A.count.toLocaleString(),defaultValue:`$${A.count.toLocaleString()} / mo`})})]}),o.jsxs("div",{className:"bg-white rounded-2xl p-5 text-center border border-neutral-100 shadow-sm",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 mb-2 uppercase tracking-widest font-medium",children:e("roiCalculator.netRoi")}),o.jsxs("p",{className:"text-4xl md:text-5xl font-bold text-success-600",children:[(_.count/10).toFixed(1),"x"]}),o.jsx("p",{className:"text-xs text-neutral-400 mt-1",children:e("simple.return",{defaultValue:"return"})})]})]}),o.jsxs("div",{className:"bg-neutral-50/80 rounded-2xl p-6 mb-8 space-y-6",children:[o.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-4 pb-6 border-b border-neutral-200",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("label",{className:"block text-sm font-medium text-[#0B1120] mb-2 flex items-center gap-2",children:[e("roiCalculator.units"),o.jsxs(He,{children:[o.jsx(_e,{children:o.jsx(bt,{className:"h-4 w-4 text-neutral-400"})}),o.jsx(Ge,{children:o.jsx("p",{children:e("widget.unitsTooltip",{defaultValue:"Rooms, apartments, or entire homes"})})})]})]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(xe,{type:"button",variant:"outline",size:"icon",onClick:()=>u(Math.max(1,d-1)),className:"h-12 w-12 shrink-0 rounded-xl border-neutral-200 hover:bg-neutral-100",children:o.jsx(js,{className:"h-5 w-5"})}),o.jsx(re,{type:"number",value:d,onChange:T=>u(parseInt(T.target.value)||1),min:1,className:"h-12 text-center text-xl font-bold bg-white border-neutral-200 rounded-xl max-w-[120px]"}),o.jsx(xe,{type:"button",variant:"outline",size:"icon",onClick:()=>u(d+1),className:"h-12 w-12 shrink-0 rounded-xl border-neutral-200 hover:bg-neutral-100",children:o.jsx(Ts,{className:"h-5 w-5"})})]})]}),o.jsxs("div",{className:"text-center sm:text-right bg-white rounded-xl p-4 border border-neutral-100",children:[o.jsx("p",{className:"text-[10px] text-neutral-500 uppercase tracking-wider mb-1",children:e("widget.totalMonthly")}),o.jsxs("p",{className:"text-2xl font-bold text-[#0B1120]",children:["$",(N.price*d).toLocaleString(),o.jsx("span",{className:"text-sm font-normal text-neutral-500",children:"/mo"})]})]})]}),o.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-4",children:[o.jsxs("div",{className:"flex-1",children:[o.jsxs("label",{className:"block text-sm font-medium text-[#0B1120] mb-3 flex items-center gap-2",children:[e("calculator.automationRate"),o.jsx("span",{className:"text-xs px-2.5 py-1 rounded-full font-medium",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.12), hsl(345 69% 55% / 0.06))",color:"hsl(345 69% 45%)"},children:N.title})]}),o.jsxs("div",{className:"flex items-center gap-4",children:[o.jsx(ha,{value:i,onValueChange:T=>I([T]),min:0,max:100,step:5,className:"flex-1 pricing-widget-slider",filledColor:"linear-gradient(90deg, hsl(210 70% 45%), hsl(200 80% 50%))",unfilledColor:"hsl(220 14% 80%)"}),o.jsxs("span",{className:"text-2xl font-bold text-[#0B1120] min-w-[60px] text-right",children:[i,"%"]})]})]}),o.jsx("div",{className:"text-center md:text-right",children:o.jsx("p",{className:"text-sm text-neutral-600",children:e("widget.pricePerUnit",{price:N.price,defaultValue:`$${N.price} / listing`})})})]}),o.jsx("p",{className:"text-xs text-neutral-500",children:e("simple.levelExplainer",{defaultValue:"Levels reflect automation rate; billing is based on automation rate, recalculated monthly."})})]}),o.jsx(Re,{type:"single",collapsible:!0,className:"mb-8",children:o.jsxs(Le,{value:"inputs",className:"border-none",children:[o.jsx(Ie,{className:"py-3 text-sm font-medium text-neutral-500 hover:text-[#0B1120]",children:e("calculator.fineTune",{defaultValue:"Fine-tune Your Calculation"})}),o.jsx(Be,{children:o.jsx("div",{className:"pt-4",children:o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.units")}),o.jsx(re,{type:"number",value:d,onChange:T=>u(parseInt(T.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.occupiedDays")}),o.jsx(re,{type:"number",value:h,onChange:T=>m(parseInt(T.target.value)||1),min:1,max:31,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.avgStay")}),o.jsx(re,{type:"number",value:f,onChange:T=>x(parseInt(T.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.questionsPerStay")}),o.jsx(re,{type:"number",value:g,onChange:T=>v(parseInt(T.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.minutesPerQuestion")}),o.jsx(re,{type:"number",value:b,onChange:T=>w(parseInt(T.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]}),o.jsxs("div",{className:"space-y-1.5",children:[o.jsx("label",{className:"block text-[10px] text-neutral-500 uppercase tracking-wider font-medium",children:e("roiCalculator.laborCost")}),o.jsx(re,{type:"number",value:y,onChange:T=>P(parseInt(T.target.value)||1),min:1,className:"text-sm bg-neutral-50 border-transparent text-[#0B1120] rounded-lg focus:bg-white focus:border-accent-500 focus:ring-accent-500/20 transition-colors"})]})]})})})]})}),o.jsx(Re,{type:"single",collapsible:!0,className:"mb-8",children:o.jsxs(Le,{value:"calculation",className:"border-none",children:[o.jsx(Ie,{className:"py-3 text-sm font-medium text-neutral-500 hover:text-[#0B1120]",children:e("simple.calculationDetails",{defaultValue:"Calculation details"})}),o.jsx(Be,{children:o.jsxs("div",{className:"bg-neutral-50 rounded-xl p-5 space-y-3",children:[o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("simple.monthlyQuestions",{defaultValue:"Monthly questions"})}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:V.monthlyQuestions.toLocaleString()})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsxs("span",{className:"text-neutral-500",children:[e("simple.automatedQuestions",{defaultValue:"Automated questions"})," (",i,"%)"]}),o.jsx("span",{className:"font-semibold text-[#0B1120]",children:V.automatedQuestions.toLocaleString()})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("roiCalculator.costSaved")}),o.jsxs("span",{className:"font-semibold text-info-600",children:["$",V.costSaved.toLocaleString()]})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("roiCalculator.revenueUplift")}),o.jsxs("span",{className:"font-semibold text-accent-500",children:["$",V.revenueUplift.toLocaleString()]})]}),o.jsxs("div",{className:"flex justify-between items-center text-sm",children:[o.jsx("span",{className:"text-neutral-500",children:e("roiCalculator.cendrasFee")}),o.jsxs("span",{className:"font-semibold text-[#0B1120]",children:["-$",C.toLocaleString()]})]}),o.jsx("div",{className:"border-t border-neutral-200 pt-3 mt-3",children:o.jsxs("div",{className:"flex justify-between items-center",children:[o.jsx("span",{className:"text-sm font-medium text-[#0B1120]",children:e("roiCalculator.netRoi")}),o.jsxs("span",{className:"text-3xl font-bold text-success-600",children:[k.toFixed(1),"x"]})]})})]})})]})}),o.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4 pt-2",children:[o.jsxs(xe,{size:"lg",onClick:K,className:"w-full sm:w-auto text-lg px-8 text-white font-semibold shadow-lg hover:shadow-xl transition-all",style:{background:"linear-gradient(135deg, hsl(345 69% 55%), hsl(20 90% 55%))"},children:[e("cta.button"),o.jsx(Ye,{className:"ml-2 h-5 w-5"})]}),o.jsxs("button",{onClick:()=>q("pricing-hero"),className:"text-sm text-neutral-500 hover:text-[#0B1120] underline underline-offset-4 flex items-center gap-1 transition-colors",children:[o.jsx(za,{className:"h-4 w-4"}),e("simple.backToPricing",{defaultValue:"Back to pricing"})]})]})]})]})}),o.jsx("section",{className:"py-14 md:py-20 px-4 bg-white",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsxs("div",{className:"text-center mb-10",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] mb-3",children:e("simple.whatYouGetTitle",{defaultValue:"What You Get"})}),o.jsx("p",{className:"text-neutral-600",children:e("simple.whatYouGetSubtitle",{defaultValue:"All features unlocked from day one—no upsells, no feature gates."})})]}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-5",children:Kd.map((T,M)=>{const J=T.icon;return o.jsxs("div",{className:"flex items-start gap-3 bg-white rounded-2xl p-5 shadow-lg shadow-neutral-200/50 hover:shadow-xl hover:shadow-neutral-200/60 transition-shadow",children:[o.jsx("div",{className:"shrink-0 w-10 h-10 rounded-xl flex items-center justify-center",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.12), hsl(345 69% 55% / 0.06))"},children:o.jsx(J,{className:"h-5 w-5",style:{color:"hsl(345 69% 50%)"}})}),o.jsx("div",{children:o.jsx("p",{className:"font-medium text-[#0B1120]",children:e(T.labelKey,{defaultValue:T.labelKey.split(".").pop()})})})]},M)})})]})}),o.jsx("section",{className:"py-14 md:py-20 px-4 bg-neutral-50",children:o.jsxs("div",{className:"max-w-4xl mx-auto",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] text-center mb-10",children:e("testimonials.title")}),o.jsx("div",{className:"bg-white rounded-2xl overflow-hidden mb-10 shadow-lg shadow-neutral-200/50",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-0",children:[o.jsxs("div",{className:"relative bg-neutral-100 min-h-[250px] md:min-h-[300px] flex items-center justify-center group cursor-pointer overflow-hidden",onClick:T=>{const M=T.currentTarget.querySelector("video");M&&(M.paused?M.play():M.pause())},children:[o.jsx("video",{className:"absolute inset-0 w-full h-full object-cover",src:"/videos/testimonial-maria.mp4",playsInline:!0,loop:!0,preload:"metadata"}),o.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/30 z-10 group-hover:bg-black/40 transition-colors",children:o.jsx("div",{className:"w-16 h-16 rounded-full bg-white/20 backdrop-blur-sm flex items-center justify-center border-2 border-white/50 group-hover:scale-110 transition-transform",children:o.jsx(Da,{className:"h-8 w-8 text-white fill-white ml-1"})})})]}),o.jsxs("div",{className:"p-6 md:p-8 flex flex-col justify-center relative",children:[o.jsx("div",{className:"absolute top-4 left-4 text-8xl font-serif leading-none select-none",style:{color:"hsl(345 69% 55% / 0.08)"},children:'"'}),o.jsxs("blockquote",{className:"text-xl md:text-2xl font-medium text-[#0B1120] mb-4 leading-relaxed relative z-10",children:['"',e(be[0].quoteKey),'"']}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-[#0B1120]",children:be[0].author}),o.jsxs("p",{className:"text-sm text-neutral-500",children:[e(be[0].roleKey)," · ",e(be[0].portfolioSizeKey)]})]})]})]})}),o.jsx("div",{className:"md:hidden",children:o.jsx(Ea,{showArrows:!1,showDots:!0,children:be.slice(1).map((T,M)=>o.jsxs("div",{className:"bg-white rounded-2xl p-6 w-[85vw] max-w-[300px] shrink-0 shadow-lg shadow-neutral-200/50 relative",children:[o.jsx("div",{className:"absolute top-3 left-4 text-6xl font-serif leading-none select-none",style:{color:"hsl(345 69% 55% / 0.08)"},children:'"'}),o.jsxs("blockquote",{className:"text-lg font-medium text-[#0B1120] mb-4 relative z-10 pt-4",children:['"',e(T.quoteKey),'"']}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-[#0B1120]",children:T.author}),o.jsxs("p",{className:"text-xs text-neutral-500",children:[e(T.roleKey)," · ",e(T.portfolioSizeKey)]})]})]},M))})}),o.jsx("div",{className:"hidden md:grid md:grid-cols-2 gap-6",children:be.slice(1).map((T,M)=>o.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-lg shadow-neutral-200/50 relative",children:[o.jsx("div",{className:"absolute top-3 left-4 text-6xl font-serif leading-none select-none",style:{color:"hsl(345 69% 55% / 0.08)"},children:'"'}),o.jsxs("blockquote",{className:"text-lg font-medium text-[#0B1120] mb-4 relative z-10 pt-4",children:['"',e(T.quoteKey),'"']}),o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold text-[#0B1120]",children:T.author}),o.jsxs("p",{className:"text-xs text-neutral-500",children:[e(T.roleKey)," · ",e(T.portfolioSizeKey)]})]})]},M))})]})}),o.jsx(qa,{}),o.jsx("section",{id:"how-pricing-works",className:"py-14 md:py-20 px-4 bg-neutral-50 scroll-mt-[calc(var(--nav-height)+16px)]",children:o.jsxs("div",{className:"max-w-3xl mx-auto",children:[o.jsx("h2",{className:"text-2xl md:text-3xl font-bold text-[#0B1120] text-center mb-10",children:e("faq.pricingTitle")}),o.jsx(Re,{type:"single",collapsible:!0,className:"space-y-3 mb-14",children:Ci.map((T,M)=>o.jsxs(Le,{value:`pricing-faq-${M}`,className:"bg-white rounded-2xl px-6 shadow-lg shadow-neutral-200/50",children:[o.jsx(Ie,{onClick:()=>rn(e(T.questionKey)),className:"text-left text-[#0B1120] hover:text-neutral-700 py-5",children:e(T.questionKey)}),o.jsx(Be,{className:"text-neutral-600 pb-5",children:e(T.answerKey)})]},M))}),o.jsxs("div",{className:"rounded-2xl p-8 md:p-10 shadow-lg shadow-neutral-200/50",style:{background:"linear-gradient(135deg, hsl(345 69% 55% / 0.04), hsl(345 69% 55% / 0.02))"},children:[o.jsxs("div",{className:"text-center mb-8",children:[o.jsx("h3",{className:"text-xl md:text-2xl font-bold text-[#0B1120] mb-2",children:e("cta.title")}),o.jsx("p",{className:"text-neutral-600",children:e("cta.subtitle")})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8 items-start",children:[o.jsx(Ra,{}),o.jsxs("div",{className:"flex flex-col items-center lg:items-start justify-center text-center lg:text-left pt-4",children:[o.jsx("p",{className:"text-sm font-medium text-neutral-500 uppercase tracking-wider mb-4",children:e("common:orStartImmediately",{defaultValue:"Or start immediately"})}),o.jsxs(xe,{size:"lg",variant:"premium",onClick:K,className:"w-full sm:w-auto h-14 px-8 text-lg",children:[e("cta.button"),o.jsx(Ye,{className:"ml-2 h-5 w-5"})]}),o.jsx("p",{className:"text-sm text-neutral-500 mt-4",children:e("common:noCreditCard",{defaultValue:"No credit card required • 5-minute setup • Cancel anytime"})})]})]})]})]})})]})}),o.jsx(La,{})]})]})};export{oh as default};