diff --git "a/out/_next/static/chunks/353-af9960c668776c2a.js" "b/out/_next/static/chunks/353-af9960c668776c2a.js" new file mode 100644--- /dev/null +++ "b/out/_next/static/chunks/353-af9960c668776c2a.js" @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[353],{646:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},968:(t,e,i)=>{i.d(e,{b:()=>a});var n=i(2115),r=i(3655),s=i(5155),o=n.forwardRef((t,e)=>(0,s.jsx)(r.sG.label,{...t,ref:e,onMouseDown:e=>{var i;e.target.closest("button, input, select, textarea")||(null==(i=t.onMouseDown)||i.call(t,e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}}));o.displayName="Label";var a=o},1264:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},2486:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},3737:(t,e,i)=>{let n;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,n){if("function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,o]=s(n);e=e(void 0!==i?i:t.custom,r,o)}return e}function a(t,e,i){let n=t.getProps();return o(n,e,void 0!==i?i:n.custom,t)}function l(t,e){return t?.[e]??t?.default??t}i.d(e,{P:()=>sA});let u=t=>t,h={},d=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],c={value:null,addProjectionMetrics:null};function p(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=d.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}r=!0,[i,n]=[n,i],i.forEach(u),e&&c.value&&c.value.frameloop[e].push(l),l=0,i.clear(),r=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:p,update:m,preRender:f,render:v,postRender:g}=o,y=()=>{let s=h.useManualTiming?r.timestamp:performance.now();i=!1,h.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),p.process(r),m.process(r),f.process(r),v.process(r),g.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(y))},x=()=>{i=!0,n=!0,r.isProcessing||t(y)};return{schedule:d.reduce((t,e)=>{let n=o[e];return t[e]=(t,e=!1,r=!1)=>(i||x(),n.schedule(t,e,r)),t},{}),cancel:t=>{for(let e=0;e-1&&t.splice(i,1)}class S{constructor(){this.subscriptions=[]}add(t){return b(this.subscriptions,t),()=>T(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r(void 0===n&&A.set(v.isProcessing||h.useManualTiming?v.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(P)}},M=t=>!isNaN(parseFloat(t)),C={current:void 0};class E{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=A.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let t of this.dependents)t.dirty();e&&this.events.renderRequest?.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=A.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=M(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new S);let i=this.events[t].add(e);return"change"===t?()=>{i(),m.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&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 C.current&&C.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=A.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 k(t,e){return new E(t,e)}let V=t=>Array.isArray(t),D=t=>!!(t&&t.getVelocity);function R(t,e){let i=t.getValue("willChange");if(D(i)&&i.add)return i.add(e);if(!i&&h.WillChange){let i=new h.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let j=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),L="data-"+j("framerAppearId"),F=(t,e)=>i=>e(t(i)),B=(...t)=>t.reduce(F),I=(t,e,i)=>i>e?e:i1e3*t,N=t=>t/1e3,U={layout:0,mainThread:0,waapi:0},W=()=>{},$=()=>{},H=t=>e=>"string"==typeof e&&e.startsWith(t),z=H("--"),K=H("var(--"),Y=t=>!!K(t)&&X.test(t.split("/*")[0].trim()),X=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,_={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},G={..._,transform:t=>I(0,1,t)},q={..._,default:1},Z=t=>Math.round(1e5*t)/1e5,J=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tt=(t,e)=>i=>!!("string"==typeof i&&Q.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),te=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[r,s,o,a]=n.match(J);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},ti=t=>I(0,255,t),tn={..._,transform:t=>Math.round(ti(t))},tr={test:tt("rgb","red"),parse:te("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+tn.transform(t)+", "+tn.transform(e)+", "+tn.transform(i)+", "+Z(G.transform(n))+")"},ts={test:tt("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:tr.transform},to=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),ta=to("deg"),tl=to("%"),tu=to("px"),th=to("vh"),td=to("vw"),tc={...tl,parse:t=>tl.parse(t)/100,transform:t=>tl.transform(100*t)},tp={test:tt("hsl","hue"),parse:te("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+tl.transform(Z(e))+", "+tl.transform(Z(i))+", "+Z(G.transform(n))+")"},tm={test:t=>tr.test(t)||ts.test(t)||tp.test(t),parse:t=>tr.test(t)?tr.parse(t):tp.test(t)?tp.parse(t):ts.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tr.transform(t):tp.transform(t),getAnimatableNone:t=>{let e=tm.parse(t);return e.alpha=0,tm.transform(e)}},tf=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tv="number",tg="color",ty=/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 tx(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},r=[],s=0,o=e.replace(ty,t=>(tm.test(t)?(n.color.push(s),r.push(tg),i.push(tm.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(tv),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function tw(t){return tx(t).values}function tb(t){let{split:e,types:i}=tx(t),n=e.length;return t=>{let r="";for(let s=0;s"number"==typeof t?0:tm.test(t)?tm.getAnimatableNone(t):t,tS={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(J)?.length||0)+(t.match(tf)?.length||0)>0},parse:tw,createTransformer:tb,getAnimatableNone:function(t){let e=tw(t);return tb(t)(e.map(tT))}};function tP(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function tA(t,e){return i=>i>0?e:t}let tM=(t,e,i)=>t+(e-t)*i,tC=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},tE=[ts,tr,tp],tk=t=>tE.find(e=>e.test(t));function tV(t){let e=tk(t);if(W(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===tp&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=tP(a,n,t+1/3),s=tP(a,n,t),o=tP(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let tD=(t,e)=>{let i=tV(t),n=tV(e);if(!i||!n)return tA(t,e);let r={...i};return t=>(r.red=tC(i.red,n.red,t),r.green=tC(i.green,n.green,t),r.blue=tC(i.blue,n.blue,t),r.alpha=tM(i.alpha,n.alpha,t),tr.transform(r))},tR=new Set(["none","hidden"]);function tj(t,e){return i=>tM(t,e,i)}function tL(t){return"number"==typeof t?tj:"string"==typeof t?Y(t)?tA:tm.test(t)?tD:tI:Array.isArray(t)?tF:"object"==typeof t?tm.test(t)?tD:tB:tA}function tF(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>tL(t)(t,e[i]));return t=>{for(let e=0;e{for(let e in n)i[e]=n[e](t);return i}}let tI=(t,e)=>{let i=tS.createTransformer(e),n=tx(t),r=tx(e);return n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length?tR.has(t)&&!r.values.length||tR.has(e)&&!n.values.length?function(t,e){return tR.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):B(tF(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>m.update(e,t),stop:()=>f(e),now:()=>v.isProcessing?v.timestamp:A.now()}},tU=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e=2e4?1/0:e}function t$(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let tH={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tz(t,e){return t*Math.sqrt(1-e*e)}let tK=["duration","bounce"],tY=["stiffness","damping","mass"];function tX(t,e){return e.some(e=>void 0!==t[e])}function t_(t=tH.visualDuration,e=tH.bounce){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:tH.velocity,stiffness:tH.stiffness,damping:tH.damping,mass:tH.mass,isResolvedFromDuration:!1,...t};if(!tX(t,tY)&&tX(t,tK))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*I(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:tH.mass,stiffness:n,damping:r}}else{let i=function({duration:t=tH.duration,bounce:e=tH.bounce,velocity:i=tH.velocity,mass:n=tH.mass}){let r,s;W(t<=O(tH.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=I(tH.minDamping,tH.maxDamping,o),t=I(tH.minDuration,tH.maxDuration,N(t)),o<1?(r=e=>{let n=e*o,r=n*t;return .001-(n-i)/tz(e,o)*Math.exp(-r)},s=e=>{let n=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=tz(Math.pow(e,2),o);return(n*i+i-s)*a*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=O(t),isNaN(a))return{stiffness:tH.stiffness,damping:tH.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...i,mass:tH.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-N(n.velocity||0)}),f=p||0,v=h/(2*Math.sqrt(u*d)),g=a-o,y=N(Math.sqrt(u/d)),x=5>Math.abs(g);if(r||(r=x?tH.restSpeed.granular:tH.restSpeed.default),s||(s=x?tH.restDelta.granular:tH.restDelta.default),v<1){let t=tz(y,v);i=e=>a-Math.exp(-v*y*e)*((f+v*y*g)/t*Math.sin(t*e)+g*Math.cos(t*e))}else if(1===v)i=t=>a-Math.exp(-y*t)*(g+(f+y*g)*t);else{let t=y*Math.sqrt(v*v-1);i=e=>{let i=Math.exp(-v*y*e),n=Math.min(t*e,300);return a-i*((f+v*y*g)*Math.sinh(n)+t*g*Math.cosh(n))/t}}let w={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let n=0===t?f:0;v<1&&(n=0===t?O(f):t$(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(n)<=r&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(tW(w),2e4),e=tU(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function tG({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=t=>void 0!==a&&tl,v=t=>void 0===a?l:void 0===l||Math.abs(a-t)-g*Math.exp(-t/n),b=t=>x+w(t),T=t=>{let e=w(t),i=b(t);m.done=Math.abs(e)<=u,m.value=m.done?x:i},S=t=>{f(m.value)&&(d=t,c=t_({keyframes:[m.value,v(m.value)],velocity:t$(b,t,m.value),damping:r,stiffness:s,restDelta:u,restSpeed:h}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),S(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),m)}}}t_.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(tW(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:N(r)}}(t,100,t_);return t.ease=e.ease,t.duration=O(e.duration),t.type="keyframes",t};let tq=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tZ(t,e,i,n){if(t===e&&i===n)return u;let r=e=>(function(t,e,i,n,r){let s,o,a=0;do(s=tq(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:tq(r(t),e,n)}let tJ=tZ(.42,0,1,1),tQ=tZ(0,0,.58,1),t0=tZ(.42,0,.58,1),t1=t=>Array.isArray(t)&&"number"!=typeof t[0],t2=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t5=t=>e=>1-t(1-e),t3=tZ(.33,1.53,.69,.99),t9=t5(t3),t6=t2(t9),t4=t=>(t*=2)<1?.5*t9(t):.5*(2-Math.pow(2,-10*(t-1))),t7=t=>1-Math.sin(Math.acos(t)),t8=t5(t7),et=t2(t7),ee=t=>Array.isArray(t)&&"number"==typeof t[0],ei={linear:u,easeIn:tJ,easeInOut:t0,easeOut:tQ,circIn:t7,circInOut:et,circOut:t8,backIn:t9,backInOut:t6,backOut:t3,anticipate:t4},en=t=>"string"==typeof t,er=t=>{if(ee(t)){$(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return tZ(e,i,n,r)}return en(t)?($(void 0!==ei[t],`Invalid easing type '${t}'`,"invalid-easing-type"),ei[t]):t},es=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function eo({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s=t1(n)?n.map(er):er(n),o={done:!1,value:e[0]},a=function(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if($(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,i){let n=[],r=i||h.mix||tO,s=t.length-1;for(let i=0;i{if(o&&i1)for(;nd(I(t[0],t[s-1],e)):d}((r=i&&i.length===e.length?i:function(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=es(0,e,n);t.push(tM(i,1,r))}}(e,t.length-1),e}(e),r.map(e=>e*t)),e,{ease:Array.isArray(s)?s:e.map(()=>s||t0).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}let ea=t=>null!==t;function el(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(ea),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}let eu={decay:tG,inertia:tG,tween:eo,keyframes:eo,spring:t_};function eh(t){"string"==typeof t.type&&(t.type=eu[t.type])}class ed{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}let ec=t=>t/100;class ep extends ed{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==A.now()&&this.tick(A.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},U.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;eh(t);let{type:e=eo,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||eo;a!==eo&&"number"!=typeof o[0]&&(this.mixKeyframes=B(ec,tO(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=tW(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:a}=this;if(null===this.startTime)return i.next(0);let{delay:l=0,keyframes:u,repeat:h,repeatType:d,repeatDelay:c,type:p,onUpdate:m,finalKeyframe:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let y=this.currentTime,x=i;if(h){let t=Math.min(this.currentTime,n)/o,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,h+1))%2&&("reverse"===d?(i=1-i,c&&(i-=c/o)):"mirror"===d&&(x=s)),y=I(0,1,i)*o}let w=g?{done:!1,value:u[0]}:x.next(y);r&&(w.value=r(w.value));let{done:b}=w;g||null===a||(b=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&p!==tG&&(w.value=el(u,this.options,f,this.speed)),m&&m(w.value),T&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return N(this.calculatedDuration)}get time(){return N(this.currentTime)}set time(t){t=O(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?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(A.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=N(this.currentTime))}play(){if(this.isStopped)return;let{driver:t=tN,startTime:e}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=e??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(A.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&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,U.mainThread--}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)}}let em=t=>180*t/Math.PI,ef=t=>eg(em(Math.atan2(t[1],t[0]))),ev={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ef,rotateZ:ef,skewX:t=>em(Math.atan(t[1])),skewY:t=>em(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},eg=t=>((t%=360)<0&&(t+=360),t),ey=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ex=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ew={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ey,scaleY:ex,scale:t=>(ey(t)+ex(t))/2,rotateX:t=>eg(em(Math.atan2(t[6],t[5]))),rotateY:t=>eg(em(Math.atan2(-t[2],t[0]))),rotateZ:ef,rotate:ef,skewX:t=>em(Math.atan(t[4])),skewY:t=>em(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function eb(t){return+!!t.includes("scale")}function eT(t,e){let i,n;if(!t||"none"===t)return eb(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=ew,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=ev,n=e}if(!n)return eb(e);let s=i[e],o=n[1].split(",").map(eP);return"function"==typeof s?s(o):o[s]}let eS=(t,e)=>{let{transform:i="none"}=getComputedStyle(t);return eT(i,e)};function eP(t){return parseFloat(t.trim())}let eA=t=>t===_||t===tu,eM=new Set(["x","y","z"]),eC=y.filter(t=>!eM.has(t)),eE={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>eT(e,"x"),y:(t,{transform:e})=>eT(e,"y")};eE.translateX=eE.x,eE.translateY=eE.y;let ek=new Set,eV=!1,eD=!1,eR=!1;function ej(){if(eD){let t=Array.from(ek).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return eC.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{t.getValue(e)?.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eD=!1,eV=!1,ek.forEach(t=>t.complete(eR)),ek.clear()}function eL(){ek.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eD=!0)})}class eF{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(ek.add(this),eV||(eV=!0,m.read(eL),m.resolveKeyframes(ej))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;et.startsWith("--");function eI(t){let e;return()=>(void 0===e&&(e=t()),e)}let eO=eI(()=>void 0!==window.ScrollTimeline),eN={},eU=function(t,e){let i=eI(t);return()=>eN[e]??i()}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),eW=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,e$={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eW([0,.65,.55,1]),circOut:eW([.55,0,1,.45]),backIn:eW([.31,.01,.66,-.59]),backOut:eW([.33,1.53,.69,.99])};function eH(t){return"function"==typeof t&&"applyToOptions"in t}class ez extends ed{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,$("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:t,...e}){return eH(t)&&eU()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?eU()?tU(e,i):"ease-out":ee(e)?eW(e):Array.isArray(e)?e.map(e=>t(e,i)||e$.easeOut):e$[e]}(a,r);Array.isArray(d)&&(h.easing=d),c.value&&U.waapi++;let p={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};u&&(p.pseudoElement=u);let m=t.animate(h,p);return c.value&&m.finished.finally(()=>{U.waapi--}),m}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=el(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,i){eB(e)?t.style.setProperty(e,i):t.style[e]=i}(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return N(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return N(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=O(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&eO())?(this.animation.timeline=t,u):e(this)}}let eK={anticipate:t4,backInOut:t6,circInOut:et};class eY extends ez{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in eK&&(t.ease=eK[t.ease])}(t),eh(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new ep({...s,autoplay:!1}),a=O(this.finishedTime??this.time);e.setWithVelocity(o.sample(a-10).value,o.sample(a).value,10),o.stop()}}let eX=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tS.test(t)||"0"===t)&&!t.startsWith("url("));function e_(t){return"object"==typeof t&&null!==t}function eG(t){return e_(t)&&"offsetHeight"in t}let eq=new Set(["opacity","clipPath","filter","transform"]),eZ=eI(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class eJ extends ed{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.now();let d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:u,...h},c=u?.KeyframeResolver||eF;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:d}=i;this.resolvedAt=A.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=eX(r,e),a=eX(s,e);return W(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!eG(e?.owner?.current))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return eZ()&&i&&eq.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(c)?new eY({...c,element:c.motionValue.owner.current}):new ep(c);p.finished.then(()=>this.notifyFinished()).catch(u),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eR=!0,eL(),ej(),eR=!1),this._animation}get duration(){return this.animation.duration}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()}}let eQ=t=>null!==t,e0={type:"spring",stiffness:500,damping:25,restSpeed:10},e1=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),e2={type:"keyframes",duration:.8},e5={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e3=(t,{keyframes:e})=>e.length>2?e2:x.has(t)?t.startsWith("scale")?e1(e[1]):e0:e5,e9=(t,e,i,n={},r,s)=>o=>{let a=l(n,t)||{},u=a.delay||n.delay||0,{elapsed:d=0}=n;d-=O(u);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-d,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&Object.assign(c,e3(t,c)),c.duration&&(c.duration=O(c.duration)),c.repeatDelay&&(c.repeatDelay=O(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let p=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0===c.delay&&(p=!0)),(h.instantAnimations||h.skipAnimations)&&(p=!0,c.duration=0,c.delay=0),c.allowFlatten=!a.type&&!a.ease,p&&!s&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(eQ),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(c.keyframes,a);if(void 0!==t)return void m.update(()=>{c.onUpdate(t),c.onComplete()})}return a.isSync?new ep(c):new eJ(c)};function e6(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s=t.getDefaultTransition(),transitionEnd:o,...u}=e;n&&(s=n);let h=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in u){let n=t.getValue(e,t.latestValues[e]??null),r=u[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...l(s||{},e)},a=n.get();if(void 0!==a&&!n.isAnimating&&!Array.isArray(r)&&r===a&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[L];if(i){let t=window.MotionHandoffAnimation(i,e,m);null!==t&&(o.startTime=t,c=!0)}}R(t,e),n.start(e9(e,n,r,t.shouldReduceMotion&&w.has(e)?{type:!1}:o,t,c));let p=n.animation;p&&h.push(p)}return o&&Promise.all(h).then(()=>{m.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=a(t,e)||{};for(let e in r={...r,...i}){var s;let i=V(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,k(i))}}(t,o)})}),h}function e4(t,e,i={}){let n=a(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(e6(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=0,s=1,o){let a=[],l=t.variantChildren.size,u=(l-1)*r,h="function"==typeof n,d=h?t=>n(t,l):1===s?(t=0)=>t*r:(t=0)=>u-t*r;return Array.from(t.variantChildren).sort(e7).forEach((t,r)=>{t.notify("AnimationStart",e),a.push(e4(t,e,{...o,delay:i+(h?0:n)+d(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:l}=r;if(!l)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[s,o]:[o,s];return t().then(()=>e())}}function e7(t,e){return t.sortNodePosition(e)}function e8(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;nPromise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>e4(t,e,i)));else if("string"==typeof e)n=e4(t,e,i);else{let r="function"==typeof e?a(t,e,i.custom):e;n=Promise.all(e6(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=il(),n=!0,s=e=>(i,n)=>{let r=a(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function o(o){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;tp&&y,S=!1,P=Array.isArray(g)?g:[g],A=P.reduce(s(a),{});!1===x&&(A={});let{prevResolvedValues:M={}}=v,C={...M,...A},E=e=>{T=!0,d.has(e)&&(S=!0,d.delete(e)),v.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=A[t],i=M[t];if(c.hasOwnProperty(t))continue;let n=!1;(V(e)&&V(i)?e8(e,i):e===i)?void 0!==e&&d.has(t)?E(t):v.protectedKeys[t]=!0:null!=e?E(t):d.add(t)}v.prevProp=g,v.prevResolvedValues=A,v.isActive&&(c={...c,...A}),n&&t.blockInitialAnimation&&(T=!1);let k=!(w&&b)||S;T&&k&&h.push(...P.map(t=>({animation:t,options:{type:a}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let v=!!h.length;return n&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(v=!1),n=!1,v?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=o(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=il(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let id=0;class ic extends iu{constructor(){super(...arguments),this.id=id++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let ip={x:!1,y:!1};function im(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let iv=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ig(t){return{point:{x:t.pageX,y:t.pageY}}}let iy=t=>e=>iv(e)&&t(e,ig(e));function ix(t,e,i,n){return im(t,e,iy(i),n)}function iw({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ib(t){return t.max-t.min}function iT(t,e,i,n=.5){t.origin=n,t.originPoint=tM(e.min,e.max,t.origin),t.scale=ib(i)/ib(e),t.translate=tM(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iS(t,e,i,n){iT(t.x,e.x,i.x,n?n.originX:void 0),iT(t.y,e.y,i.y,n?n.originY:void 0)}function iP(t,e,i){t.min=i.min+e.min,t.max=t.min+ib(e)}function iA(t,e,i){t.min=e.min-i.min,t.max=t.min+ib(e)}function iM(t,e,i){iA(t.x,e.x,i.x),iA(t.y,e.y,i.y)}let iC=()=>({translate:0,scale:1,origin:0,originPoint:0}),iE=()=>({x:iC(),y:iC()}),ik=()=>({min:0,max:0}),iV=()=>({x:ik(),y:ik()});function iD(t){return[t("x"),t("y")]}function iR(t){return void 0===t||1===t}function ij({scale:t,scaleX:e,scaleY:i}){return!iR(t)||!iR(e)||!iR(i)}function iL(t){return ij(t)||iF(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iF(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iB(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function iI(t,e=0,i=1,n,r){t.min=iB(t.min,e,i,n,r),t.max=iB(t.max,e,i,n,r)}function iO(t,{x:e,y:i}){iI(t.x,e.translate,e.scale,e.originPoint),iI(t.y,i.translate,i.scale,i.originPoint)}function iN(t,e){t.min=t.min+e,t.max=t.max+e}function iU(t,e,i,n,r=.5){let s=tM(t.min,t.max,r);iI(t,e,i,s,n)}function iW(t,e){iU(t.x,e.x,e.scaleX,e.scale,e.originX),iU(t.y,e.y,e.scaleY,e.scale,e.originY)}function i$(t,e){return iw(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let iH=({current:t})=>t?t.ownerDocument.defaultView:null;function iz(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iK=(t,e)=>Math.abs(t-e);class iY{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iG(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iK(t.x,e.x)**2+iK(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!i)return;let{point:n}=t,{timestamp:r}=v;this.history.push({...n,timestamp:r});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iX(e,this.transformPagePoint),m.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iG("pointercancel"===t.type?this.lastMoveEventInfo:iX(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!iv(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;let o=iX(ig(t),this.transformPagePoint),{point:a}=o,{timestamp:l}=v;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,iG(o,this.history)),this.removeListeners=B(ix(this.contextWindow,"pointermove",this.handlePointerMove),ix(this.contextWindow,"pointerup",this.handlePointerUp),ix(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),f(this.updatePoint)}}function iX(t,e){return e?{point:e(t.point)}:t}function i_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iG({point:t},e){return{point:t,delta:i_(t,iq(e)),offset:i_(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=iq(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>O(.1)));)i--;if(!n)return{x:0,y:0};let s=N(r.timestamp-n.timestamp);if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iq(t){return t[t.length-1]}function iZ(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iJ(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(ig(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ip[t])return null;else return ip[t]=!0,()=>{ip[t]=!1};return ip.x||ip.y?null:(ip.x=ip.y=!0,()=>{ip.x=ip.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iD(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tl.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=ib(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&m.postRender(()=>r(t,e)),R(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>iD(t=>"paused"===this.getAnimationState(t)&&this.getAxisMotionValue(t).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,distanceThreshold:i,contextWindow:iH(this.visualElement)})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&m.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!i5(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&ti&&(t=n?tM(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iz(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:iZ(t.x,i,r),y:iZ(t.y,e,n)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iQ(t,"left","right"),y:iQ(t,"top","bottom")}}(e),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iD(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(i.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iz(e))return!1;let n=e.current;$(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let s=function(t,e,i){let n=i$(t,i),{scroll:r}=e;return r&&(iN(n.x,r.offset.x),iN(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:iJ(t.x,s.x),y:iJ(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iw(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iD(o=>{if(!i5(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return R(this.visualElement,t),i.start(e9(t,i,0,e,this.visualElement,!1))}stopAnimation(){iD(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iD(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iD(e=>{let{drag:i}=this.getProps();if(!i5(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e];r.set(t[e]-tM(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iz(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};iD(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();n[t]=function(t,e){let i=.5,n=ib(t),r=ib(e);return r>n?i=es(e.min,e.max-n,t.min):n>r&&(i=es(t.min,t.max-r,e.min)),I(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iD(e=>{if(!i5(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(tM(r,s,n[e]))})}addListeners(){if(!this.visualElement.current)return;i1.set(this.visualElement,this);let t=ix(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iz(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,n=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),m.read(e);let r=im(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iD(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),t(),n(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function i5(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i3 extends iu{constructor(t){super(t),this.removeGroupControls=u,this.removeListeners=u,this.controls=new i2(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||u}unmount(){this.removeGroupControls(),this.removeListeners()}}let i9=t=>(e,i)=>{t&&m.postRender(()=>t(e,i))};class i6 extends iu{constructor(){super(...arguments),this.removePointerDownListener=u}onPointerDown(t){this.session=new iY(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iH(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:i9(t),onStart:i9(e),onMove:i,onEnd:(t,e)=>{delete this.session,n&&m.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=ix(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var i4,i7,i8=i(5155);let{schedule:nt}=p(queueMicrotask,!1);var ne=i(2115);let ni=(0,ne.createContext)(null),nn=(0,ne.createContext)({}),nr=(0,ne.createContext)({}),ns={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function no(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let na={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tu.test(t))return t;else t=parseFloat(t);let i=no(t,e.target.x),n=no(t,e.target.y);return`${i}% ${n}%`}},nl={},nu=!1;class nh extends ne.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;for(let t in nc)nl[t]=nc[t],z(t)&&(nl[t].isCSSVariable=!0);r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),nu&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),ns.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,nu=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||m.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),nt.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),i&&i.deregister&&i.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nd(t){let[e,i]=function(t=!0){let e=(0,ne.useContext)(ni);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,ne.useId)();(0,ne.useEffect)(()=>{if(t)return r(s)},[t]);let o=(0,ne.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}(),n=(0,ne.useContext)(nn);return(0,i8.jsx)(nh,{...t,layoutGroup:n,switchLayoutGroup:(0,ne.useContext)(nr),isPresent:e,safeToRemove:i})}let nc={borderRadius:{...na,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:na,borderTopRightRadius:na,borderBottomLeftRadius:na,borderBottomRightRadius:na,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=tS.parse(t);if(n.length>5)return t;let r=tS.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=tM(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function np(t){return e_(t)&&"ownerSVGElement"in t}let nm=(t,e)=>t.depth-e.depth;class nf{constructor(){this.children=[],this.isDirty=!1}add(t){b(this.children,t),this.isDirty=!0}remove(t){T(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nm),this.isDirty=!1,this.children.forEach(t)}}function nv(t){return D(t)?t.get():t}let ng=["TopLeft","TopRight","BottomLeft","BottomRight"],ny=ng.length,nx=t=>"string"==typeof t?parseFloat(t):t,nw=t=>"number"==typeof t||tu.test(t);function nb(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nT=nP(0,.5,t8),nS=nP(.5,.95,u);function nP(t,e,i){return n=>ne?1:i(es(t,e,n))}function nA(t,e){t.min=e.min,t.max=e.max}function nM(t,e){nA(t.x,e.x),nA(t.y,e.y)}function nC(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nE(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function nk(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(tl.test(e)&&(e=parseFloat(e),e=tM(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=tM(s.min,s.max,n);t===s&&(a-=e),t.min=nE(t.min,e,i,a,r),t.max=nE(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let nV=["x","scaleX","originX"],nD=["y","scaleY","originY"];function nR(t,e,i,n){nk(t.x,e,nV,i?i.x:void 0,n?n.x:void 0),nk(t.y,e,nD,i?i.y:void 0,n?n.y:void 0)}function nj(t){return 0===t.translate&&1===t.scale}function nL(t){return nj(t.x)&&nj(t.y)}function nF(t,e){return t.min===e.min&&t.max===e.max}function nB(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function nI(t,e){return nB(t.x,e.x)&&nB(t.y,e.y)}function nO(t){return ib(t.x)/ib(t.y)}function nN(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nU{constructor(){this.members=[]}add(t){b(this.members,t),t.scheduleRender()}remove(t){if(T(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nW={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},n$=["","X","Y","Z"],nH=0;function nz(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function nK({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=nH++,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.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,c.value&&(nW.nodes=nW.calculatedTargetDeltas=nW.calculatedProjections=0),this.nodes.forEach(n_),this.nodes.forEach(n1),this.nodes.forEach(n2),this.nodes.forEach(nG),c.addProjectionMetrics&&c.addProjectionMetrics(nW)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;tthis.root.updateBlockedByResize=!1;m.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=A.now(),n=({timestamp:r})=>{let s=r-i;s>=250&&(f(n),t(s-e))};return m.setup(n,!0),()=>f(n)}(r,250),ns.hasAnimatedSinceResize&&(ns.hasAnimatedSinceResize=!1,this.nodes.forEach(n0)))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||n7,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),u=!this.targetLayout||!nI(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...l(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||n0(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),f(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(n5),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let n=i.props[L];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",m,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||ib(this.snapshot.measuredBox.x)||ib(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 t=0;t.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iV());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nC(this.prevProjectionDelta.x,this.projectionDelta.x),nC(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iS(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&nN(this.projectionDelta.x,this.prevProjectionDelta.x)&&nN(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),c.value&&nW.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.visualElement?.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iE(),this.projectionDelta=iE(),this.projectionDeltaWithTransform=iE()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=iE();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=iV(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(n4));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(n9(o.x,t.x,n),n9(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,v;iM(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,v=n,n6(p.x,m.x,f.x,v),n6(p.y,m.y,f.y,v),i&&(u=this.relativeTarget,c=i,nF(u.x,c.x)&&nF(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=iV()),nM(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=tM(0,i.opacity??1,nT(n)),t.opacityExit=tM(e.opacity??1,0,nS(n))):s&&(t.opacity=tM(e.opacity??1,i.opacity??1,n));for(let r=0;r{ns.hasAnimatedSinceResize=!0,U.layout++,this.motionValue||(this.motionValue=k(0)),this.currentAnimation=function(t,e,i){let n=D(t)?t:k(t);return n.start(e9("",n,e,i)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{U.layout--},onComplete:()=>{U.layout--,t.onComplete&&t.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);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&ri(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||iV();let e=ib(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=ib(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}nM(e,i),iW(e,r),iS(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nU),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){let{layoutId:t}=this.options;return t&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:t}=this.options;return t?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let n=this.getStack();n&&n.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let n={};i.z&&nz("z",t,n,this.animationValues);for(let e=0;et.currentAnimation?.stop()),this.root.nodes.forEach(nZ),this.root.sharedNodes.clear()}}}function nY(t){t.updateLayout()}function nX(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?iD(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=ib(n);n.min=i[t].min,n.max=n.min+r}):ri(r,e.layoutBox,i)&&iD(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=ib(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=iE();iS(o,i,e.layoutBox);let a=iE();s?iS(a,t.applyTransform(n,!0),e.measuredBox):iS(a,i,e.layoutBox);let l=!nL(o),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=iV();iM(o,e.layoutBox,r.layoutBox);let a=iV();iM(a,i,s.layoutBox),nI(o,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n_(t){c.value&&nW.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function nG(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function nq(t){t.clearSnapshot()}function nZ(t){t.clearMeasurements()}function nJ(t){t.isLayoutDirty=!1}function nQ(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function n0(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function n1(t){t.resolveTargetDelta()}function n2(t){t.calcProjection()}function n5(t){t.resetSkewAndRotation()}function n3(t){t.removeLeadSnapshot()}function n9(t,e,i){t.translate=tM(e.translate,0,i),t.scale=tM(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function n6(t,e,i,n){t.min=tM(e.min,i.min,n),t.max=tM(e.max,i.max,n)}function n4(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let n7={duration:.45,ease:[.4,0,.1,1]},n8=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rt=n8("applewebkit/")&&!n8("chrome/")?Math.round:u;function re(t){t.min=rt(t.min),t.max=rt(t.max)}function ri(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nO(e)-nO(i)))}function rn(t){return t!==t.root&&t.scroll?.wasRoot}let rr=nK({attachResizeListener:(t,e)=>im(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rs={current:void 0},ro=nK({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rs.current){let t=new rr({});t.mount(window),t.setOptions({layoutScroll:!0}),rs.current=t}return rs.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ra(t,e){let i=function(t,e,i){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document,i=(void 0)??e.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rl(t){return!("touch"===t.pointerType||ip.x||ip.y)}function ru(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&m.postRender(()=>r(e,ig(e)))}class rh extends iu{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=ra(t,i),o=t=>{if(!rl(t))return;let{target:i}=t,n=e(i,t);if("function"!=typeof n||!i)return;let s=t=>{rl(t)&&(n(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,r)};return n.forEach(t=>{t.addEventListener("pointerenter",o,r)}),s}(t,(t,e)=>(ru(this.node,e,"Start"),t=>ru(this.node,t,"End"))))}unmount(){}}class rd extends iu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=B(im(this.node.current,"focus",()=>this.onFocus()),im(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let rc=(t,e)=>!!e&&(t===e||rc(t,e.parentElement)),rp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rm=new WeakSet;function rf(t){return e=>{"Enter"===e.key&&t(e)}}function rv(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let rg=(t,e)=>{let i=t.currentTarget;if(!i)return;let n=rf(()=>{if(rm.has(i))return;rv(i,"down");let t=rf(()=>{rv(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rv(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)};function ry(t){return iv(t)&&!(ip.x||ip.y)}function rx(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&m.postRender(()=>r(e,ig(e)))}class rw extends iu{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=ra(t,i),o=t=>{let n=t.currentTarget;if(!ry(t))return;rm.add(n);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),rm.has(n)&&rm.delete(n),ry(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||rc(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),eG(t))&&(t.addEventListener("focus",t=>rg(t,r)),rp.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(rx(this.node,e,"Start"),(t,{success:e})=>rx(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let rb=new WeakMap,rT=new WeakMap,rS=t=>{let e=rb.get(t.target);e&&e(t)},rP=t=>{t.forEach(rS)},rA={some:0,all:1};class rM extends iu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:n="some",once:r}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof n?n:rA[n]};return function(t,e,i){let n=function({root:t,...e}){let i=t||document;rT.has(i)||rT.set(i,{});let n=rT.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(rP,{root:t,...e})),n[r]}(e);return rb.set(t,i),n.observe(t),()=>{rb.delete(t),n.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,r&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let rC=(0,ne.createContext)({strict:!1}),rE=(0,ne.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),rk=(0,ne.createContext)({});function rV(t){return r(t.animate)||ii.some(e=>it(t[e]))}function rD(t){return!!(rV(t)||t.variants)}function rR(t){return Array.isArray(t)?t.join(" "):t}let rj="undefined"!=typeof window,rL={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"]},rF={};for(let t in rL)rF[t]={isEnabled:e=>rL[t].some(t=>!!e[t])};let rB=Symbol.for("motionComponentSymbol"),rI=rj?ne.useLayoutEffect:ne.useEffect;function rO(t,{layout:e,layoutId:i}){return x.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!nl[t]||"opacity"===t)}let rN=(t,e)=>e&&"number"==typeof t?e.transform(t):t,rU={..._,transform:Math.round},rW={borderWidth:tu,borderTopWidth:tu,borderRightWidth:tu,borderBottomWidth:tu,borderLeftWidth:tu,borderRadius:tu,radius:tu,borderTopLeftRadius:tu,borderTopRightRadius:tu,borderBottomRightRadius:tu,borderBottomLeftRadius:tu,width:tu,maxWidth:tu,height:tu,maxHeight:tu,top:tu,right:tu,bottom:tu,left:tu,padding:tu,paddingTop:tu,paddingRight:tu,paddingBottom:tu,paddingLeft:tu,margin:tu,marginTop:tu,marginRight:tu,marginBottom:tu,marginLeft:tu,backgroundPositionX:tu,backgroundPositionY:tu,rotate:ta,rotateX:ta,rotateY:ta,rotateZ:ta,scale:q,scaleX:q,scaleY:q,scaleZ:q,skew:ta,skewX:ta,skewY:ta,distance:tu,translateX:tu,translateY:tu,translateZ:tu,x:tu,y:tu,z:tu,perspective:tu,transformPerspective:tu,opacity:G,originX:tc,originY:tc,originZ:tu,zIndex:rU,fillOpacity:G,strokeOpacity:G,numOctaves:rU},r$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rH=y.length;function rz(t,e,i){let{style:n,vars:r,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(x.has(t)){o=!0;continue}if(z(t)){r[t]=i;continue}{let e=rN(i,rW[t]);t.startsWith("origin")?(a=!0,s[t]=e):n[t]=e}}if(!e.transform&&(o||i?n.transform=function(t,e,i){let n="",r=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}});function rY(t,e,i){for(let n in e)D(e[n])||rO(n,i)||(t[n]=e[n])}let rX={offset:"stroke-dashoffset",array:"stroke-dasharray"},r_={offset:"strokeDashoffset",array:"strokeDasharray"};function rG(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,h){if(rz(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=h?.transformBox??"fill-box",delete d.transformBox),void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?rX:r_;t[s.offset]=tu.transform(-n);let o=tu.transform(e),a=tu.transform(i);t[s.array]=`${o} ${a}`}(d,r,s,o,!1)}let rq=()=>({...rK(),attrs:{}}),rZ=t=>"string"==typeof t&&"svg"===t.toLowerCase(),rJ=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 rQ(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||rJ.has(t)}let r0=t=>!rQ(t);try{!function(t){"function"==typeof t&&(r0=e=>e.startsWith("on")?!rQ(e):t(e))}(require("@emotion/is-prop-valid").default)}catch{}let r1=["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 r2(t){if("string"!=typeof t||t.includes("-"));else if(r1.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let r5=t=>(e,i)=>{let n=(0,ne.useContext)(rk),s=(0,ne.useContext)(ni),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=nv(a[t]);let{initial:l,animate:u}=t,h=rV(t),d=rD(t);e&&d&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;ie=>e.test(t),r8=[_,tu,tl,ta,td,th,{test:t=>"auto"===t,parse:t=>t}],st=t=>r8.find(r7(t)),se=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),si=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,sn=t=>/^0[^.\s]+$/u.test(t),sr=new Set(["brightness","contrast","saturate","opacity"]);function ss(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(J)||[];if(!n)return t;let r=i.replace(n,""),s=+!!sr.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let so=/\b([a-z-]*)\(.*?\)/gu,sa={...tS,getAnimatableNone:t=>{let e=t.match(so);return e?e.map(ss).join(" "):t}},sl={...rW,color:tm,backgroundColor:tm,outlineColor:tm,fill:tm,stroke:tm,borderColor:tm,borderTopColor:tm,borderRightColor:tm,borderBottomColor:tm,borderLeftColor:tm,filter:sa,WebkitFilter:sa},su=t=>sl[t];function sh(t,e){let i=su(t);return i!==sa&&(i=tS),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let sd=new Set(["auto","none","0"]);class sc extends eF{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let sp=[...r8,tm,tS],sm=t=>sp.find(r7(t)),sf={current:null},sv={current:!1},sg=new WeakMap,sy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sx{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,blockInitialAnimation:r,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eF,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=()=>{let t=A.now();this.renderScheduledAtthis.bindToMotionValue(e,t)),sv.current||function(){if(sv.current=!0,rj)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sf.current=t.matches;t.addEventListener("change",e),e()}else sf.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sf.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),f(this.notifyUpdate),f(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=x.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&m.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in rF){let e=rF[t];if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iV()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;ee.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=k(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=i&&("string"==typeof i&&(se(i)||sn(i))?i=parseFloat(i):!sm(i)&&tS.test(e)&&(i=sh(t,e)),this.setBaseTarget(t,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=o(this.props,i,this.presenceContext?.custom);n&&(e=n[t])}if(i&&void 0!==e)return e;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||D(n)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new S),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sw extends sx{constructor(){super(...arguments),this.KeyframeResolver=sc}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;D(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function sb(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}class sT extends sw{constructor(){super(...arguments),this.type="html",this.renderInstance=sb}readValueFromInstance(t,e){if(x.has(e))return this.projection?.isProjecting?eb(e):eS(t,e);{let i=window.getComputedStyle(t),n=(z(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i$(t,e)}build(t,e,i){rz(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return r3(t,e,i)}}let sS=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"]);class sP extends sw{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=iV}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(x.has(e)){let t=su(e);return t&&t.default||0}return e=sS.has(e)?e:j(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return r6(t,e,i)}build(t,e,i){rG(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in sb(t,e,void 0,n),e.attrs)t.setAttribute(sS.has(i)?i:j(i),e.attrs[i])}mount(t){this.isSVGTag=rZ(t.tagName),super.mount(t)}}let sA=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((i4={animation:{Feature:ih},exit:{Feature:ic},inView:{Feature:rM},tap:{Feature:rw},focus:{Feature:rd},hover:{Feature:rh},pan:{Feature:i6},drag:{Feature:i3,ProjectionNode:ro,MeasureLayout:nd},layout:{ProjectionNode:ro,MeasureLayout:nd}},i7=(t,e)=>r2(t)?new sP(e):new sT(e,{allowProjection:t!==ne.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:n,createVisualElement:r,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i,n,l;let u,h={...(0,ne.useContext)(rE),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,ne.useContext)(nn).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(rV(t)){let{initial:e,animate:i}=t;return{initial:!1===e||it(e)?e:void 0,animate:it(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,ne.useContext)(rk));return(0,ne.useMemo)(()=>({initial:e,animate:i}),[rR(e),rR(i)])}(t),p=o(t,d);if(!d&&rj){n=0,l=0,(0,ne.useContext)(rC).strict;let t=function(t){let{drag:e,layout:i}=rF;if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(h);u=t.MeasureLayout,c.visualElement=function(t,e,i,n,r){let{visualElement:s}=(0,ne.useContext)(rk),o=(0,ne.useContext)(rC),a=(0,ne.useContext)(ni),l=(0,ne.useContext)(rE).reducedMotion,u=(0,ne.useRef)(null);n=n||o.renderer,!u.current&&n&&(u.current=n(t,{visualState:e,parent:s,props:i,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));let h=u.current,d=(0,ne.useContext)(nr);h&&!h.projection&&r&&("html"===h.type||"svg"===h.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:h}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iz(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:h,layoutScroll:l,layoutRoot:u})}(u.current,i,r,d);let c=(0,ne.useRef)(!1);(0,ne.useInsertionEffect)(()=>{h&&c.current&&h.update(i,a)});let p=i[L],m=(0,ne.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return rI(()=>{h&&(c.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),nt.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),(0,ne.useEffect)(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1))}),h}(a,p,h,r,t.ProjectionNode)}return(0,i8.jsxs)(rk.Provider,{value:c,children:[u&&c.visualElement?(0,i8.jsx)(u,{visualElement:c.visualElement,...h}):null,s(a,t,(i=c.visualElement,(0,ne.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):iz(e)&&(e.current=t))},[i])),p,d,c.visualElement)]})}n&&function(t){for(let e in t)rF[e]={...rF[e],...t[e]}}(n),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!=(i=null!=(e=a.displayName)?e:a.name)?i:"",")"));let u=(0,ne.forwardRef)(l);return u[rB]=a,u}({...r2(t)?r4:r9,preloadedFeatures:i4,useRender:function(t=!1){return(e,i,n,{latestValues:r},s)=>{let o=(r2(e)?function(t,e,i,n){let r=(0,ne.useMemo)(()=>{let i=rq();return rG(i,e,rZ(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};rY(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i={},n=function(t,e){let i=t.style||{},n={};return rY(n,i,t),Object.assign(n,function({transformTemplate:t},e){return(0,ne.useMemo)(()=>{let i=rK();return rz(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=n,i})(i,r,s,e),a=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(r0(r)||!0===i&&rQ(r)||!e&&!rQ(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(i,"string"==typeof e,t),l=e!==ne.Fragment?{...a,...o,ref:n}:{},{children:u}=i,h=(0,ne.useMemo)(()=>D(u)?u.get():u,[u]);return(0,ne.createElement)(e,{...l,children:h})}}(e),createVisualElement:i7,Component:t})}))},4186:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},4516:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},5196:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},5525:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},7863:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},8564:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},8893:(t,e,i)=>{i.d(e,{UC:()=>tD,In:()=>tk,q7:()=>tj,VF:()=>tF,p4:()=>tL,ZL:()=>tV,bL:()=>tM,wn:()=>tI,PP:()=>tB,l9:()=>tC,WT:()=>tE,LM:()=>tR});var n=i(2115),r=i(7650);function s(t,[e,i]){return Math.min(i,Math.max(e,t))}var o=i(5185),a=i(7328),l=i(6101),u=i(6081),h=i(4315),d=i(9178),c=i(2293),p=i(7900),m=i(1285),f=i(8795),v=i(4378),g=i(3655),y=i(9708),x=i(9033),w=i(5845),b=i(2712),T=i(5155),S=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});n.forwardRef((t,e)=>(0,T.jsx)(g.sG.span,{...t,ref:e,style:{...S,...t.style}})).displayName="VisuallyHidden";var P=i(8168),A=i(3795),M=[" ","Enter","ArrowUp","ArrowDown"],C=[" ","Enter"],E="Select",[k,V,D]=(0,a.N)(E),[R,j]=(0,u.A)(E,[D,f.Bk]),L=(0,f.Bk)(),[F,B]=R(E),[I,O]=R(E),N=t=>{let{__scopeSelect:e,children:i,open:r,defaultOpen:s,onOpenChange:o,value:a,defaultValue:l,onValueChange:u,dir:d,name:c,autoComplete:p,disabled:v,required:g,form:y}=t,x=L(e),[b,S]=n.useState(null),[P,A]=n.useState(null),[M,C]=n.useState(!1),V=(0,h.jH)(d),[D,R]=(0,w.i)({prop:r,defaultProp:null!=s&&s,onChange:o,caller:E}),[j,B]=(0,w.i)({prop:a,defaultProp:l,onChange:u,caller:E}),O=n.useRef(null),N=!b||y||!!b.closest("form"),[U,W]=n.useState(new Set),$=Array.from(U).map(t=>t.props.value).join(";");return(0,T.jsx)(f.bL,{...x,children:(0,T.jsxs)(F,{required:g,scope:e,trigger:b,onTriggerChange:S,valueNode:P,onValueNodeChange:A,valueNodeHasChildren:M,onValueNodeHasChildrenChange:C,contentId:(0,m.B)(),value:j,onValueChange:B,open:D,onOpenChange:R,dir:V,triggerPointerDownPosRef:O,disabled:v,children:[(0,T.jsx)(k.Provider,{scope:e,children:(0,T.jsx)(I,{scope:t.__scopeSelect,onNativeOptionAdd:n.useCallback(t=>{W(e=>new Set(e).add(t))},[]),onNativeOptionRemove:n.useCallback(t=>{W(e=>{let i=new Set(e);return i.delete(t),i})},[]),children:i})}),N?(0,T.jsxs)(tT,{"aria-hidden":!0,required:g,tabIndex:-1,name:c,autoComplete:p,value:j,onChange:t=>B(t.target.value),disabled:v,form:y,children:[void 0===j?(0,T.jsx)("option",{value:""}):null,Array.from(U)]},$):null]})})};N.displayName=E;var U="SelectTrigger",W=n.forwardRef((t,e)=>{let{__scopeSelect:i,disabled:r=!1,...s}=t,a=L(i),u=B(U,i),h=u.disabled||r,d=(0,l.s)(e,u.onTriggerChange),c=V(i),p=n.useRef("touch"),[m,v,y]=tP(t=>{let e=c().filter(t=>!t.disabled),i=e.find(t=>t.value===u.value),n=tA(e,t,i);void 0!==n&&u.onValueChange(n.value)}),x=t=>{h||(u.onOpenChange(!0),y()),t&&(u.triggerPointerDownPosRef.current={x:Math.round(t.pageX),y:Math.round(t.pageY)})};return(0,T.jsx)(f.Mz,{asChild:!0,...a,children:(0,T.jsx)(g.sG.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":tS(u.value)?"":void 0,...s,ref:d,onClick:(0,o.m)(s.onClick,t=>{t.currentTarget.focus(),"mouse"!==p.current&&x(t)}),onPointerDown:(0,o.m)(s.onPointerDown,t=>{p.current=t.pointerType;let e=t.target;e.hasPointerCapture(t.pointerId)&&e.releasePointerCapture(t.pointerId),0===t.button&&!1===t.ctrlKey&&"mouse"===t.pointerType&&(x(t),t.preventDefault())}),onKeyDown:(0,o.m)(s.onKeyDown,t=>{let e=""!==m.current;t.ctrlKey||t.altKey||t.metaKey||1!==t.key.length||v(t.key),(!e||" "!==t.key)&&M.includes(t.key)&&(x(),t.preventDefault())})})})});W.displayName=U;var $="SelectValue",H=n.forwardRef((t,e)=>{let{__scopeSelect:i,className:n,style:r,children:s,placeholder:o="",...a}=t,u=B($,i),{onValueNodeHasChildrenChange:h}=u,d=void 0!==s,c=(0,l.s)(e,u.onValueNodeChange);return(0,b.N)(()=>{h(d)},[h,d]),(0,T.jsx)(g.sG.span,{...a,ref:c,style:{pointerEvents:"none"},children:tS(u.value)?(0,T.jsx)(T.Fragment,{children:o}):s})});H.displayName=$;var z=n.forwardRef((t,e)=>{let{__scopeSelect:i,children:n,...r}=t;return(0,T.jsx)(g.sG.span,{"aria-hidden":!0,...r,ref:e,children:n||"▼"})});z.displayName="SelectIcon";var K=t=>(0,T.jsx)(v.Z,{asChild:!0,...t});K.displayName="SelectPortal";var Y="SelectContent",X=n.forwardRef((t,e)=>{let i=B(Y,t.__scopeSelect),[s,o]=n.useState();return((0,b.N)(()=>{o(new DocumentFragment)},[]),i.open)?(0,T.jsx)(Z,{...t,ref:e}):s?r.createPortal((0,T.jsx)(_,{scope:t.__scopeSelect,children:(0,T.jsx)(k.Slot,{scope:t.__scopeSelect,children:(0,T.jsx)("div",{children:t.children})})}),s):null});X.displayName=Y;var[_,G]=R(Y),q=(0,y.TL)("SelectContent.RemoveScroll"),Z=n.forwardRef((t,e)=>{let{__scopeSelect:i,position:r="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:a,onPointerDownOutside:u,side:h,sideOffset:m,align:f,alignOffset:v,arrowPadding:g,collisionBoundary:y,collisionPadding:x,sticky:w,hideWhenDetached:b,avoidCollisions:S,...M}=t,C=B(Y,i),[E,k]=n.useState(null),[D,R]=n.useState(null),j=(0,l.s)(e,t=>k(t)),[L,F]=n.useState(null),[I,O]=n.useState(null),N=V(i),[U,W]=n.useState(!1),$=n.useRef(!1);n.useEffect(()=>{if(E)return(0,P.Eq)(E)},[E]),(0,c.Oh)();let H=n.useCallback(t=>{let[e,...i]=N().map(t=>t.ref.current),[n]=i.slice(-1),r=document.activeElement;for(let i of t)if(i===r||(null==i||i.scrollIntoView({block:"nearest"}),i===e&&D&&(D.scrollTop=0),i===n&&D&&(D.scrollTop=D.scrollHeight),null==i||i.focus(),document.activeElement!==r))return},[N,D]),z=n.useCallback(()=>H([L,E]),[H,L,E]);n.useEffect(()=>{U&&z()},[U,z]);let{onOpenChange:K,triggerPointerDownPosRef:X}=C;n.useEffect(()=>{if(E){let t={x:0,y:0},e=e=>{var i,n,r,s;t={x:Math.abs(Math.round(e.pageX)-(null!=(r=null==(i=X.current)?void 0:i.x)?r:0)),y:Math.abs(Math.round(e.pageY)-(null!=(s=null==(n=X.current)?void 0:n.y)?s:0))}},i=i=>{t.x<=10&&t.y<=10?i.preventDefault():E.contains(i.target)||K(!1),document.removeEventListener("pointermove",e),X.current=null};return null!==X.current&&(document.addEventListener("pointermove",e),document.addEventListener("pointerup",i,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",i,{capture:!0})}}},[E,K,X]),n.useEffect(()=>{let t=()=>K(!1);return window.addEventListener("blur",t),window.addEventListener("resize",t),()=>{window.removeEventListener("blur",t),window.removeEventListener("resize",t)}},[K]);let[G,Z]=tP(t=>{let e=N().filter(t=>!t.disabled),i=e.find(t=>t.ref.current===document.activeElement),n=tA(e,t,i);n&&setTimeout(()=>n.ref.current.focus())}),tt=n.useCallback((t,e,i)=>{let n=!$.current&&!i;(void 0!==C.value&&C.value===e||n)&&(F(t),n&&($.current=!0))},[C.value]),te=n.useCallback(()=>null==E?void 0:E.focus(),[E]),ti=n.useCallback((t,e,i)=>{let n=!$.current&&!i;(void 0!==C.value&&C.value===e||n)&&O(t)},[C.value]),tn="popper"===r?Q:J,tr=tn===Q?{side:h,sideOffset:m,align:f,alignOffset:v,arrowPadding:g,collisionBoundary:y,collisionPadding:x,sticky:w,hideWhenDetached:b,avoidCollisions:S}:{};return(0,T.jsx)(_,{scope:i,content:E,viewport:D,onViewportChange:R,itemRefCallback:tt,selectedItem:L,onItemLeave:te,itemTextRefCallback:ti,focusSelectedItem:z,selectedItemText:I,position:r,isPositioned:U,searchRef:G,children:(0,T.jsx)(A.A,{as:q,allowPinchZoom:!0,children:(0,T.jsx)(p.n,{asChild:!0,trapped:C.open,onMountAutoFocus:t=>{t.preventDefault()},onUnmountAutoFocus:(0,o.m)(s,t=>{var e;null==(e=C.trigger)||e.focus({preventScroll:!0}),t.preventDefault()}),children:(0,T.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:t=>t.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:(0,T.jsx)(tn,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:t=>t.preventDefault(),...M,...tr,onPlaced:()=>W(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...M.style},onKeyDown:(0,o.m)(M.onKeyDown,t=>{let e=t.ctrlKey||t.altKey||t.metaKey;if("Tab"===t.key&&t.preventDefault(),e||1!==t.key.length||Z(t.key),["ArrowUp","ArrowDown","Home","End"].includes(t.key)){let e=N().filter(t=>!t.disabled).map(t=>t.ref.current);if(["ArrowUp","End"].includes(t.key)&&(e=e.slice().reverse()),["ArrowUp","ArrowDown"].includes(t.key)){let i=t.target,n=e.indexOf(i);e=e.slice(n+1)}setTimeout(()=>H(e)),t.preventDefault()}})})})})})})});Z.displayName="SelectContentImpl";var J=n.forwardRef((t,e)=>{let{__scopeSelect:i,onPlaced:r,...o}=t,a=B(Y,i),u=G(Y,i),[h,d]=n.useState(null),[c,p]=n.useState(null),m=(0,l.s)(e,t=>p(t)),f=V(i),v=n.useRef(!1),y=n.useRef(!0),{viewport:x,selectedItem:w,selectedItemText:S,focusSelectedItem:P}=u,A=n.useCallback(()=>{if(a.trigger&&a.valueNode&&h&&c&&x&&w&&S){let t=a.trigger.getBoundingClientRect(),e=c.getBoundingClientRect(),i=a.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==a.dir){let r=n.left-e.left,o=i.left-r,a=t.left-o,l=t.width+a,u=Math.max(l,e.width),d=s(o,[10,Math.max(10,window.innerWidth-10-u)]);h.style.minWidth=l+"px",h.style.left=d+"px"}else{let r=e.right-n.right,o=window.innerWidth-i.right-r,a=window.innerWidth-t.right-o,l=t.width+a,u=Math.max(l,e.width),d=s(o,[10,Math.max(10,window.innerWidth-10-u)]);h.style.minWidth=l+"px",h.style.right=d+"px"}let o=f(),l=window.innerHeight-20,u=x.scrollHeight,d=window.getComputedStyle(c),p=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=p+m+u+parseInt(d.paddingBottom,10)+g,b=Math.min(5*w.offsetHeight,y),T=window.getComputedStyle(x),P=parseInt(T.paddingTop,10),A=parseInt(T.paddingBottom,10),M=t.top+t.height/2-10,C=w.offsetHeight/2,E=p+m+(w.offsetTop+C);if(E<=M){let t=o.length>0&&w===o[o.length-1].ref.current;h.style.bottom="0px";let e=Math.max(l-M,C+(t?A:0)+(c.clientHeight-x.offsetTop-x.offsetHeight)+g);h.style.height=E+e+"px"}else{let t=o.length>0&&w===o[0].ref.current;h.style.top="0px";let e=Math.max(M,p+x.offsetTop+(t?P:0)+C);h.style.height=e+(y-E)+"px",x.scrollTop=E-M+x.offsetTop}h.style.margin="".concat(10,"px 0"),h.style.minHeight=b+"px",h.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame(()=>v.current=!0)}},[f,a.trigger,a.valueNode,h,c,x,w,S,a.dir,r]);(0,b.N)(()=>A(),[A]);let[M,C]=n.useState();(0,b.N)(()=>{c&&C(window.getComputedStyle(c).zIndex)},[c]);let E=n.useCallback(t=>{t&&!0===y.current&&(A(),null==P||P(),y.current=!1)},[A,P]);return(0,T.jsx)(tt,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:v,onScrollButtonChange:E,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:(0,T.jsx)(g.sG.div,{...o,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});J.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((t,e)=>{let{__scopeSelect:i,align:n="start",collisionPadding:r=10,...s}=t,o=L(i);return(0,T.jsx)(f.UC,{...o,...s,ref:e,align:n,collisionPadding:r,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[tt,te]=R(Y,{}),ti="SelectViewport",tn=n.forwardRef((t,e)=>{let{__scopeSelect:i,nonce:r,...s}=t,a=G(ti,i),u=te(ti,i),h=(0,l.s)(e,a.onViewportChange),d=n.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,T.jsx)(k.Slot,{scope:i,children:(0,T.jsx)(g.sG.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:(0,o.m)(s.onScroll,t=>{let e=t.currentTarget,{contentWrapper:i,shouldExpandOnScrollRef:n}=u;if((null==n?void 0:n.current)&&i){let t=Math.abs(d.current-e.scrollTop);if(t>0){let n=window.innerHeight-20,r=Math.max(parseFloat(i.style.minHeight),parseFloat(i.style.height));if(r0?a:0,i.style.justifyContent="flex-end")}}}d.current=e.scrollTop})})})]})});tn.displayName=ti;var tr="SelectGroup",[ts,to]=R(tr);n.forwardRef((t,e)=>{let{__scopeSelect:i,...n}=t,r=(0,m.B)();return(0,T.jsx)(ts,{scope:i,id:r,children:(0,T.jsx)(g.sG.div,{role:"group","aria-labelledby":r,...n,ref:e})})}).displayName=tr;var ta="SelectLabel";n.forwardRef((t,e)=>{let{__scopeSelect:i,...n}=t,r=to(ta,i);return(0,T.jsx)(g.sG.div,{id:r.id,...n,ref:e})}).displayName=ta;var tl="SelectItem",[tu,th]=R(tl),td=n.forwardRef((t,e)=>{let{__scopeSelect:i,value:r,disabled:s=!1,textValue:a,...u}=t,h=B(tl,i),d=G(tl,i),c=h.value===r,[p,f]=n.useState(null!=a?a:""),[v,y]=n.useState(!1),x=(0,l.s)(e,t=>{var e;return null==(e=d.itemRefCallback)?void 0:e.call(d,t,r,s)}),w=(0,m.B)(),b=n.useRef("touch"),S=()=>{s||(h.onValueChange(r),h.onOpenChange(!1))};if(""===r)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,T.jsx)(tu,{scope:i,value:r,disabled:s,textId:w,isSelected:c,onItemTextChange:n.useCallback(t=>{f(e=>{var i;return e||(null!=(i=null==t?void 0:t.textContent)?i:"").trim()})},[]),children:(0,T.jsx)(k.ItemSlot,{scope:i,value:r,disabled:s,textValue:p,children:(0,T.jsx)(g.sG.div,{role:"option","aria-labelledby":w,"data-highlighted":v?"":void 0,"aria-selected":c&&v,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...u,ref:x,onFocus:(0,o.m)(u.onFocus,()=>y(!0)),onBlur:(0,o.m)(u.onBlur,()=>y(!1)),onClick:(0,o.m)(u.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,o.m)(u.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,o.m)(u.onPointerDown,t=>{b.current=t.pointerType}),onPointerMove:(0,o.m)(u.onPointerMove,t=>{if(b.current=t.pointerType,s){var e;null==(e=d.onItemLeave)||e.call(d)}else"mouse"===b.current&&t.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,o.m)(u.onPointerLeave,t=>{if(t.currentTarget===document.activeElement){var e;null==(e=d.onItemLeave)||e.call(d)}}),onKeyDown:(0,o.m)(u.onKeyDown,t=>{var e;((null==(e=d.searchRef)?void 0:e.current)===""||" "!==t.key)&&(C.includes(t.key)&&S()," "===t.key&&t.preventDefault())})})})})});td.displayName=tl;var tc="SelectItemText",tp=n.forwardRef((t,e)=>{let{__scopeSelect:i,className:s,style:o,...a}=t,u=B(tc,i),h=G(tc,i),d=th(tc,i),c=O(tc,i),[p,m]=n.useState(null),f=(0,l.s)(e,t=>m(t),d.onItemTextChange,t=>{var e;return null==(e=h.itemTextRefCallback)?void 0:e.call(h,t,d.value,d.disabled)}),v=null==p?void 0:p.textContent,y=n.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:x,onNativeOptionRemove:w}=c;return(0,b.N)(()=>(x(y),()=>w(y)),[x,w,y]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.sG.span,{id:d.textId,...a,ref:f}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?r.createPortal(a.children,u.valueNode):null]})});tp.displayName=tc;var tm="SelectItemIndicator",tf=n.forwardRef((t,e)=>{let{__scopeSelect:i,...n}=t;return th(tm,i).isSelected?(0,T.jsx)(g.sG.span,{"aria-hidden":!0,...n,ref:e}):null});tf.displayName=tm;var tv="SelectScrollUpButton",tg=n.forwardRef((t,e)=>{let i=G(tv,t.__scopeSelect),r=te(tv,t.__scopeSelect),[s,o]=n.useState(!1),a=(0,l.s)(e,r.onScrollButtonChange);return(0,b.N)(()=>{if(i.viewport&&i.isPositioned){let t=function(){o(e.scrollTop>0)},e=i.viewport;return t(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[i.viewport,i.isPositioned]),s?(0,T.jsx)(tw,{...t,ref:a,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=i;t&&e&&(t.scrollTop=t.scrollTop-e.offsetHeight)}}):null});tg.displayName=tv;var ty="SelectScrollDownButton",tx=n.forwardRef((t,e)=>{let i=G(ty,t.__scopeSelect),r=te(ty,t.__scopeSelect),[s,o]=n.useState(!1),a=(0,l.s)(e,r.onScrollButtonChange);return(0,b.N)(()=>{if(i.viewport&&i.isPositioned){let t=function(){let t=e.scrollHeight-e.clientHeight;o(Math.ceil(e.scrollTop)e.removeEventListener("scroll",t)}},[i.viewport,i.isPositioned]),s?(0,T.jsx)(tw,{...t,ref:a,onAutoScroll:()=>{let{viewport:t,selectedItem:e}=i;t&&e&&(t.scrollTop=t.scrollTop+e.offsetHeight)}}):null});tx.displayName=ty;var tw=n.forwardRef((t,e)=>{let{__scopeSelect:i,onAutoScroll:r,...s}=t,a=G("SelectScrollButton",i),l=n.useRef(null),u=V(i),h=n.useCallback(()=>{null!==l.current&&(window.clearInterval(l.current),l.current=null)},[]);return n.useEffect(()=>()=>h(),[h]),(0,b.N)(()=>{var t;let e=u().find(t=>t.ref.current===document.activeElement);null==e||null==(t=e.ref.current)||t.scrollIntoView({block:"nearest"})},[u]),(0,T.jsx)(g.sG.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:(0,o.m)(s.onPointerDown,()=>{null===l.current&&(l.current=window.setInterval(r,50))}),onPointerMove:(0,o.m)(s.onPointerMove,()=>{var t;null==(t=a.onItemLeave)||t.call(a),null===l.current&&(l.current=window.setInterval(r,50))}),onPointerLeave:(0,o.m)(s.onPointerLeave,()=>{h()})})});n.forwardRef((t,e)=>{let{__scopeSelect:i,...n}=t;return(0,T.jsx)(g.sG.div,{"aria-hidden":!0,...n,ref:e})}).displayName="SelectSeparator";var tb="SelectArrow";n.forwardRef((t,e)=>{let{__scopeSelect:i,...n}=t,r=L(i),s=B(tb,i),o=G(tb,i);return s.open&&"popper"===o.position?(0,T.jsx)(f.i3,{...r,...n,ref:e}):null}).displayName=tb;var tT=n.forwardRef((t,e)=>{let{__scopeSelect:i,value:r,...s}=t,o=n.useRef(null),a=(0,l.s)(e,o),u=function(t){let e=n.useRef({value:t,previous:t});return n.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}(r);return n.useEffect(()=>{let t=o.current;if(!t)return;let e=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==r&&e){let i=new Event("change",{bubbles:!0});e.call(t,r),t.dispatchEvent(i)}},[u,r]),(0,T.jsx)(g.sG.select,{...s,style:{...S,...s.style},ref:a,defaultValue:r})});function tS(t){return""===t||void 0===t}function tP(t){let e=(0,x.c)(t),i=n.useRef(""),r=n.useRef(0),s=n.useCallback(t=>{let n=i.current+t;e(n),function t(e){i.current=e,window.clearTimeout(r.current),""!==e&&(r.current=window.setTimeout(()=>t(""),1e3))}(n)},[e]),o=n.useCallback(()=>{i.current="",window.clearTimeout(r.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(r.current),[]),[i,s,o]}function tA(t,e,i){var n,r;let s=e.length>1&&Array.from(e).every(t=>t===e[0])?e[0]:e,o=i?t.indexOf(i):-1,a=(n=t,r=Math.max(o,0),n.map((t,e)=>n[(r+e)%n.length]));1===s.length&&(a=a.filter(t=>t!==i));let l=a.find(t=>t.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==i?l:void 0}tT.displayName="SelectBubbleInput";var tM=N,tC=W,tE=H,tk=z,tV=K,tD=X,tR=tn,tj=td,tL=tp,tF=tf,tB=tg,tI=tx},9420:(t,e,i)=>{i.d(e,{A:()=>n});let n=(0,i(9946).A)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])}}]); \ No newline at end of file