1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32181,71164,38544,31178,21476,74008,49652,64978,72846,t=>{"use strict";let e,i,n,s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set([...s,"pathRotation"]),o=(t,e,i)=>i>e?e:i<t?t:i,a={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...a,transform:t=>o(0,1,t)},h={...a,default:1},u=t=>Math.round(1e5*t)/1e5,c=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,d=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(t,e)=>i=>!!("string"==typeof i&&d.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),m=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,o,a]=n.match(c);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},f={...a,transform:t=>Math.round(o(0,255,t))},y={test:p("rgb","red"),parse:m("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+f.transform(t)+", "+f.transform(e)+", "+f.transform(i)+", "+u(l.transform(n))+")"},g={test:p("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform:y.transform},v=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),x=v("deg"),b=v("%"),w=v("px"),T=v("vh"),P=v("vw"),S={...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)},E={test:p("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+b.transform(u(e))+", "+b.transform(u(i))+", "+u(l.transform(n))+")"},M={test:t=>y.test(t)||g.test(t)||E.test(t),parse:t=>y.test(t)?y.parse(t):E.test(t)?E.parse(t):g.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?y.transform(t):E.transform(t),getAnimatableNone:t=>{let e=M.parse(t);return e.alpha=0,M.transform(e)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,C="number",k="color",V=/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 j(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,o=e.replace(V,t=>(M.test(t)?(n.color.push(r),s.push(k),i.push(M.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(C),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:o,indexes:n,types:s}}function R({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===C?s+=u(n[r]):t===k?s+=M.transform(n[r]):s+=n[r]}return s}}let L={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(c)?.length||0)+(t.match(A)?.length||0)>0},parse:function(t){return j(t).values},createTransformer:function(t){return R(j(t))},getAnimatableNone:function(t){let e=j(t);return R(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:M.test(t)?M.getAnimatableNone(t):t)(t,e.split[i])))}},D=new Set(["brightness","contrast","saturate","opacity"]);function I(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=i.match(c)||[];if(!n)return t;let s=i.replace(n,""),r=+!!D.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let B=/\b([a-z-]*)\(.*?\)/gu,O={...L,getAnimatableNone:t=>{let e=t.match(B);return e?e.map(I).join(" "):t}},F={...L,getAnimatableNone:t=>{let e=L.parse(t);return L.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},N={...a,transform:Math.round},U={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,rotate:x,pathRotation:x,rotateX:x,rotateY:x,rotateZ:x,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:x,skewX:x,skewY:x,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:l,originX:S,originY:S,originZ:w,zIndex:N,fillOpacity:l,strokeOpacity:l,numOctaves:N},$={...U,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:O,WebkitFilter:O,mask:F,WebkitMask:F},_=t=>$[t],W=()=>({translate:0,scale:1,origin:0,originPoint:0}),z=()=>({x:W(),y:W()}),H=()=>({min:0,max:0}),Y=()=>({x:H(),y:H()});var q=t.i(83411);let X=new Set(["width","height","top","left","right","bottom",...s]),K=t=>e=>e.test(t),Z=[a,w,b,x,P,T,{test:t=>"auto"===t,parse:t=>t}],G=t=>Z.find(K(t));var Q=t.i(47167);let J=()=>{},tt=()=>{};Q.default;let te=t=>e=>"string"==typeof e&&e.startsWith(t),ti=te("--"),tn=te("var(--"),ts=t=>!!tn(t)&&tr.test(t.split("/*")[0].trim()),tr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function to(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let ta=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tl=t=>180*t/Math.PI,th=t=>tc(tl(Math.atan2(t[1],t[0]))),tu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:th,rotateZ:th,skewX:t=>tl(Math.atan(t[1])),skewY:t=>tl(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tc=t=>((t%=360)<0&&(t+=360),t),td=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tm={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:td,scaleY:tp,scale:t=>(td(t)+tp(t))/2,rotateX:t=>tc(tl(Math.atan2(t[6],t[5]))),rotateY:t=>tc(tl(Math.atan2(-t[2],t[0]))),rotateZ:th,rotate:th,skewX:t=>tl(Math.atan(t[4])),skewY:t=>tl(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tf(t){return+!!t.includes("scale")}function ty(t,e){let i,n;if(!t||"none"===t)return tf(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tm,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tu,n=e}if(!n)return tf(e);let r=i[e],o=n[1].split(",").map(tg);return"function"==typeof r?r(o):o[r]}function tg(t){return parseFloat(t.trim())}let tv=t=>t===a||t===w,tx=new Set(["x","y","z"]),tb=s.filter(t=>!tx.has(t)),tw={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-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})=>ty(e,"x"),y:(t,{transform:e})=>ty(e,"y")};tw.translateX=tw.x,tw.translateY=tw.y;let tT=t=>t,tP={},tS=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tE(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,o=tS.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,n=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(e){r.has(e)&&(l.schedule(e),t()),e(o)}let l={schedule:(t,s=!1,o=!1)=>{let a=o&&n?e:i;return s&&r.add(t),a.add(t),t},cancel:t=>{i.delete(t),r.delete(t)},process:t=>{if(o=t,n){s=!0;return}n=!0;let r=e;e=i,i=r,e.forEach(a),e.clear(),n=!1,s&&(s=!1,l.process(t))}};return l}(r),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:c,preRender:d,render:p,postRender:m}=o,f=()=>{let r=tP.useManualTiming,o=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(o-s.timestamp,40),1)),s.timestamp=o,s.isProcessing=!0,a.process(s),l.process(s),h.process(s),u.process(s),c.process(s),d.process(s),p.process(s),m.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tS.reduce((e,r)=>{let a=o[r];return e[r]=(e,r=!1,o=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),a.schedule(e,r,o)),e},{}),cancel:t=>{for(let e=0;e<tS.length;
1e++)o[tS[e]].cancel(t)},state:s,steps:o}}let{schedule:tM,cancel:tA,state:tC,steps:tk}=tE("u">typeof requestAnimationFrame?requestAnimationFrame:tT,!0),tV=new Set,tj=!1,tR=!1,tL=!1;function tD(){if(tR){let t=Array.from(tV).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tb.forEach(i=>{let n=t.getValue(i);void 0!==n&&(e.push([i,n.get()]),n.set(+!!i.startsWith("scale")))}),e);n.length&&(i.set(t,n),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)})}tR=!1,tj=!1,tV.forEach(t=>t.complete(tL)),tV.clear()}function tI(){tV.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tR=!0)})}class tB{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tV.add(this),tj||(tj=!0,tM.read(tI),tM.resolveKeyframes(tD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tV.delete(this)}cancel(){"scheduled"===this.state&&(tV.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tO=new Set([O,F]);function tF(t,e){let i=_(t);return tO.has(i)||(i=L),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tN=new Set(["auto","none","0"]);class tU extends tB{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&ts(n=n.trim())){let s=function t(e,i,n=1){tt(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=ta.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let o=window.getComputedStyle(i).getPropertyValue(s);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ts(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!X.has(i)||2!==t.length)return;let[n,s]=t,r=G(n),o=G(s);if(to(n)!==to(s)&&tw[i]){this.needsMeasurement=!0;return}if(r!==o)if(tv(r)&&tv(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tw[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tN.has(e)&&j(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tF(i,n)}(t,i,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tw[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tw[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let t$=t=>1e3*t;function t_(t,e){-1===t.indexOf(e)&&t.push(e)}function tW(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tz{constructor(){this.subscriptions=[]}add(t){return t_(this.subscriptions,t),()=>tW(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 s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tH(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tY(t){let e;return()=>(void 0===e&&(e=t()),e)}let tq={};function tX(t,e){let i=tY(t);return()=>tq[e]??i()}let tK=tX(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tZ=t=>null!==t;function tG(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(tZ),o=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return o&&void 0!==n?n:r[o]}class tQ{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 tJ=t=>Array.isArray(t)&&"number"==typeof t[0],t0=tX(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t1=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t2=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t2([0,.65,.55,1]),circOut:t2([.55,0,1,.45]),backIn:t2([.31,.01,.66,-.59]),backOut:t2([.33,1.53,.69,.99])};function t4(t){return"function"==typeof t&&"applyToOptions"in t}class t5 extends tQ{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:s,allowFlatten:r=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,tt("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t4(t)&&t0()?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:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let c=function t(e,i){if(e)return"function"==typeof e?t0()?t1(e,i):"ease-out":tJ(e)?t2(e):Array.isArray(e)?e.map(e=>t(e,i)||t3.easeOut):t3[e]}(a,s);Array.isArray(c)&&(u.easing=c);let d={delay:n,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:"reverse"===o?"alternate":"normal"};return h&&(d.pseudoElement=h),t.animate(u,d)}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tG(n,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tH(e,i,t),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,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(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=t$(t),e&&this.animation.pause()}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 this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tK())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tT):n(this)}}let t6=new Set(["opacity","clipPath","filter","transform"]),{schedule:t9}=tE(queueMicrotask,!1);function t8(){e=void 0}let t7={now:()=>(void 0===e&&t7.set(tC.isProcessing||tP.useManualTiming?tC.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t8)}},et=(t,e)=>e?1e3/e*t:0,ee;class ei{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=t7.now();if(this.updatedAt!==e&&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()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=t7.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(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 tz);let i=this.events[t].add(e);return"change"===t?()=>{i(),tM.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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 ee&&ee.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=t7.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return et(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}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 en(t,e){return new ei(t,e)}let es=[...Z,M,L],er=new WeakMap;function eo(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ea(t){return"string"==typeof t||Array.isArray(t)}let el=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eh=["initial",...el];function eu(t){return eo(t.animate)||eh.some(e=>ea(t[e]))}function ec(t){return!!(eu(t)||t.variants)}let ed={current:null},ep={current:!1};t.s(["hasReducedMotionListener",0,ep,"prefersReducedMotion",0,ed],71164);let em="u">typeof window;function ef(){if(ep.current=!0,em)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ed.current=t.matches;t.addEventListener("change",e),e()}else ed.current=!1}function ey(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function eg(t,e,i,n){if("function"==typeof e){let[s,r]=ey(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ey(n);e=e(void 0!==i?i:t.custom,s,r)}return e}t.s(["initPrefersReducedMotion",0,ef],38544);let ev=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ex={};class eb{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:s,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=tB,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=t7.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tM.render(this.render,!1,!0))};const{latestValues:l,renderState:h}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=h,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=eu(e),this.isVariantNode=ec(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in c){const e=c[t];void 0!==l[t]&&(0,q.isMotionValue)(e)&&e.set(l[t])}}mount(t){if(this.hasBeenMounted)for(let t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=t,er.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(ep.current||ef(),this.shouldReduceMotion=ed.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tA(this.notifyUpdate),tA(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t6.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:o}=e.accelerate,a=new t5({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:t$(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=r.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tM.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i()})}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 ex){let e=ex[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];
1e.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):Y()}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;e<ev.length;e++){let i=ev[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let n=t["on"+i];n&&(this.propEventSubscriptions[i]=this.on(i,n))}this.prevMotionValues=function(t,e,i){for(let n in e){let s=e[n],r=i[n];if((0,q.isMotionValue)(s))t.addValue(n,s);else if((0,q.isMotionValue)(r))t.addValue(n,en(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,en(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.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=en(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];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!es.find(K(n))&&L.test(e)&&(i=tF(t,e))}this.setBaseTarget(t,(0,q.isMotionValue)(i)?i.get():i)}return(0,q.isMotionValue)(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=eg(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||(0,q.isMotionValue)(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 tz),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){t9.render(this.render)}}class ew extends eb{constructor(){super(...arguments),this.KeyframeResolver=tU}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){let i=t.style;return i?i[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;(0,q.isMotionValue)(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eT(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eP=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eS={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eE=s.length;function eM(t,e,i){let{style:n,vars:o,transformOrigin:a}=t,l=!1,h=!1;for(let t in e){let i=e[t];if(r.has(t)){l=!0;continue}if(ti(t)){o[t]=i;continue}{let e=eP(i,U[t]);t.startsWith("origin")?(h=!0,a[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let o=0;o<eE;o++){let a=s[o],l=t[a];if(void 0===l)continue;let h=!0;if("number"==typeof l)h=l===+!!a.startsWith("scale");else{let t=parseFloat(l);h=a.startsWith("scale")?1===t:0===t}if(!h||i){let t=eP(l,U[a]);if(!h){r=!1;let e=eS[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}let o=t.pathRotation;return o&&(r=!1,n+=`rotate(${eP(o,U.pathRotation)}) `),n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),h){let{originX:t="50%",originY:e="50%",originZ:i=0}=a;n.transformOrigin=`${t} ${e} ${i}`}}let eA={offset:"stroke-dashoffset",array:"stroke-dasharray"},eC={offset:"strokeDashoffset",array:"strokeDasharray"},ek=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eV(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:o=0,...a},l,h,u){if(eM(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:d}=t;for(let t of(c.transform&&(d.transform=c.transform,delete c.transform),(d.transform||c.transformOrigin)&&(d.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),d.transform&&(d.transformBox=u?.transformBox??"fill-box",delete c.transformBox),ek))void 0!==c[t]&&(d[t]=c[t],delete c[t]);void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==n&&(c.scale=n),void 0!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eA:eC;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(c,s,r,o,!1)}let ej=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"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eL(t,{style:e,vars:i},n,s){let r,o=t.style;for(r in e)o[r]=e[r];for(r in s?.applyProjectionStyles(o,n),i)o.setProperty(r,i[r])}let eD=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function eI(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eB={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!w.test(t))return t;else t=parseFloat(t);let i=eI(t,e.target.x),n=eI(t,e.target.y);return`${i}% ${n}%`}},eO=(t,e,i)=>t+(e-t)*i,eF={borderRadius:{...eB,applyTo:[...eD]},borderTopLeftRadius:eB,borderTopRightRadius:eB,borderBottomLeftRadius:eB,borderBottomRightRadius:eB,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=L.parse(t);if(n.length>5)return t;let s=L.createTransformer(t),r=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+r]/=o,n[1+r]/=a;let l=eO(o,a,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function eN(t,{layout:e,layoutId:i}){return r.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eF[t]||"opacity"===t)}function eU(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)((0,q.isMotionValue)(n[e])||s&&(0,q.isMotionValue)(s[e])||eN(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function e$(t,e,i){let n=eU(t,e,i);for(let i in t)((0,q.isMotionValue)(t[i])||(0,q.isMotionValue)(e[i]))&&(n[-1!==s.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class e_ extends ew{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(r.has(e)){let t=_(e);return t&&t.default||0}return e=ej.has(e)?e:eT(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return e$(t,e,i)}build(t,e,i){eV(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eL(t,e,void 0,n),e.attrs)t.setAttribute(ej.has(i)?i:eT(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}function eW({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function ez(t){return void 0===t||1===t}function eH({scale:t,scaleX:e,scaleY:i}){return!ez(t)||!ez(e)||!ez(i)}function eY(t){return eH(t)||eq(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eq(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eX(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function eK(t,e=0,i=1,n,s){t.min=eX(t.min,e,i,n,s),t.max=eX(t.max,e,i,n,s)}function eZ(t,{x:e,y:i}){eK(t.x,e.translate,e.scale,e.originPoint),eK(t.y,i.translate,i.scale,i.originPoint)}function eG(t,e){t.min+=e,t.max+=e}function eQ(t,e,i,n,s=.5){let r=eO(t.min,t.max,s);eK(t,e,i,r,n)}function eJ(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e0(t,e,i){let n=i??t;eQ(t.x,eJ(e.x,n.x),e.scaleX,e.scale,e.originX),eQ(t.y,eJ(e.y,n.y),e.scaleY,e.scale,e.originY)}function e1(t,e){return eW(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))}class e2 extends ew{constructor(){super(...arguments),this.type="html",this.renderInstance=eL}readValueFromInstance(t,e){if(r.has(e))return this.projection?.isProjecting?tf(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return ty(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ti(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e1(t,e)}build(t,e,i){eM(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eU(t,e,i)}}var e3=t.i(71645);let e4=["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 e5(t){if("string"!=typeof t||t.includes("-"));else if(e4.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e6=t.i(43476);let e9=(0,e3.createContext)({});t.s(["LayoutGroupContext",0,e9],31178);let e8=(0,e3.createContext)({strict:!1});var e7=t.i(37806);let it=(0,e3.createContext)({});function ie(t){return Array.isArray(t)?t.join(" "):t}let ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function is(t,e,i){for(let n in e)(0,q.isMotionValue)(e[n])||eN(n,i)||(t[n]=e[n])}let ir=()=>({...ii(),attrs:{}});var io=t.i(98125);function ia(t){return(0,q.isMotionValue)(t)?t.get():t}let il=(0,e3.createContext)(null);t.s(["PresenceContext",0,il],21476);var ih=t.i(47414);let iu=t=>(e,i)=>{let n=(0,e3.useContext)(it),s=(0,e3.useContext)(il),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=ia(r[t]);let{initial:o,animate:a}=t,l=eu(t),h=ec(t);e&&h&&!l&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===a&&(a=e.animate));let u=!!i&&!1===i.initial,c=(u=u||!1===o)?a:o;if(c&&"boolean"!=typeof c&&!eo(c)){let e=Array.isArray(c)?c:[c];for(let i=0;i<e.length;i++){let n=eg(t,e[i]);if(n){let{transitionEnd:t,transition:e,...i}=n;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=u?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():(0,ih.useConstant)(r)},ic=iu({scrapeMotionValuesFromProps:eU,createRenderState:ii}),id=iu({scrapeMotionValuesFromProps:e$,createRenderState:ir}),ip={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"]},im=!1;function iy(){return!function(){if(im)return;let t={};for(let e in ip)t[e]={isEnabled:t=>ip[e].some(e=>!!t[e])};ex=t,im=!0}(),ex}let ig=Symbol.for("motionComponentSymbol"),iv="data-"+eT("framerAppearId"),ix=(0,e3.createContext)({});function ib(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iw="u">typeof window?e3.useLayoutEffect:e3.useEffect;function iT(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=iy();for(let i in t)e[i]={...e[i],...t[i]};ex=e}(n);let r=i?"svg"===i:e5(t),o=r?id:ic;function a(i,n){var a;let l,h,u,c={...(0,e3.useContext)(e7.MotionConfigContext),...i,layoutId:function({layoutId:t}){let e=(0,e3.useContext)(e9).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:d}=c,p=function(t){let{initial:e,animate:i}=function(t,e){if(eu(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ea(e)?e:void 0,animate:ea(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,e3.useContext)(it));return(0,e3.useMemo)(()=>({initial:e,animate:i}),[ie(e),ie(i)])}(i),m=o(i,d);if(!d&&"u">typeof window){(0,e3.useContext)(e8).strict;let e=function(t){let{drag:e,layout:i}=iy();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(c);l=e.MeasureLayout,p.visualElement=function(t,e,i,n,s,r){let{visualElement:o}=(0,e3.useContext)(it),a=(0,e3.useContext)(e8),l=(0,e3.useContext)(il),h=(0,e3.useContext)(e7.MotionConfigContext),u=h.reducedMotion,c=h.skipAnimations,d=(0,e3.useRef)(null),p=(0,e3.useRef)(!1);n=n||a.renderer,!d.current&&n&&(d.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:c,isSVG:r}),p.current&&d.current&&(d.current.manuallyAnimateOnMount=!0));let m=d.current,f=(0,e3.useContext)(ix);m&&!m.projection&&s&&("html"===m.type||"svg"===m.type)&&function(t,e,
1i,n){let{layoutId:s,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutAnchor:u,layoutCrossfade:c}=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:s,layout:r,alwaysMeasureLayout:!!o||a&&ib(a),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:h,layoutAnchor:u})}(d.current,i,s,f);let y=(0,e3.useRef)(!1);(0,e3.useInsertionEffect)(()=>{m&&y.current&&m.update(i,l)});let g=i[iv],v=(0,e3.useRef)(!!g&&"u">typeof window&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return iw(()=>{p.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,e3.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,m,c,s,e.ProjectionNode,r)}return(0,e6.jsxs)(it.Provider,{value:p,children:[l&&p.visualElement?(0,e6.jsx)(l,{visualElement:p.visualElement,...c}):null,function(t,e,i,{latestValues:n},s,r=!1,o){let a=(o??e5(t)?function(t,e,i,n){let s=(0,e3.useMemo)(()=>{let i=ir();return eV(i,e,eR(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};is(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},is(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e3.useMemo)(()=>{let i=ii();return eM(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=(0,io.filterProps)(e,"string"==typeof t,r),h=t!==e3.Fragment?{...l,...a,ref:i}
1:{},{children:u}=e,c=(0,e3.useMemo)(()=>(0,q.isMotionValue)(u)?u.get():u,[u]);return(0,e3.createElement)(t,{...h,children:c})}(t,i,(a=p.visualElement,h=(0,e3.useRef)(n),(0,e3.useInsertionEffect)(()=>{h.current=n}),u=(0,e3.useRef)(null),(0,e3.useCallback)(t=>{t&&m.onMount?.(t),a&&(t?a.mount(t):a.unmount());let e=h.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(u.current=i)}else u.current?(u.current(),u.current=null):e(t);else e&&(e.current=t)},[a])),m,d,e,r)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e3.forwardRef)(a);return l[ig]=t,l}t.s(["useIsomorphicLayoutEffect",0,iw],74008);class iP{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iS(t,e,i){let n=t.getProps();return eg(n,e,void 0!==i?i:n.custom,t)}var iE=t.i(53034);function iM(t,e){let i=t?.[e]??t?.default??t;return i!==t?(0,iE.resolveTransition)(i,t):i}let iA=t=>Array.isArray(t);function iC(t,e){let i=t.getValue("willChange");if((0,q.isMotionValue)(i)&&i.add)return i.add(e);if(!i&&tP.WillChange){let i=new tP.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let ik=(...t)=>t.reduce((t,e)=>i=>e(t(i)));function iV(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 ij(t,e){return i=>i>0?e:t}let iR=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iL=[g,y,E];function iD(t){let e=iL.find(e=>e.test(t));if(J(!!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===E&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;s=iV(a,n,t+1/3),r=iV(a,n,t),o=iV(a,n,t-1/3)}else s=r=o=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*o),alpha:n}}(i)),i}let iI=(t,e)=>{let i=iD(t),n=iD(e);if(!i||!n)return ij(t,e);let s={...i};return t=>(s.red=iR(i.red,n.red,t),s.green=iR(i.green,n.green,t),s.blue=iR(i.blue,n.blue,t),s.alpha=eO(i.alpha,n.alpha,t),y.transform(s))},iB=new Set(["none","hidden"]);function iO(t,e){return i=>eO(t,e,i)}function iF(t){return"number"==typeof t?iO:"string"==typeof t?ts(t)?ij:M.test(t)?iI:i$:Array.isArray(t)?iN:"object"==typeof t?M.test(t)?iI:iU:ij}function iN(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iF(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iU(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=iF(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let i$=(t,e)=>{let i=L.createTransformer(e),n=j(t),s=j(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return J(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),ij(t,e);if(iB.has(t)&&!s.values.length||iB.has(e)&&!n.values.length)return iB.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ik(iN(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],o=t.indexes[r][n[r]],a=t.values[o]??0;i[s]=a,n[r]++}return i}(n,s),s.values),i)};function i_(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eO(t,e,i):iF(t)(t,e)}let iW=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tM.update(e,t),stop:()=>tA(e),now:()=>tC.isProcessing?tC.timestamp:t7.now()}};function iz(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let iH=.01,iY=2,iq=.005,iX=.5;function iK(t,e){return t*Math.sqrt(1-e*e)}let iZ=["duration","bounce"],iG=["stiffness","damping","mass"];function iQ(t,e){return e.some(e=>void 0!==t[e])}function iJ(t=.3,e=.3){let i,n,s,r,a,l,h="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:u,restDelta:c}=h,d=h.keyframes[0],p=h.keyframes[h.keyframes.length-1],m={done:!1,value:d},{stiffness:f,damping:y,mass:g,duration:v,velocity:x,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!iQ(t,iG)&&iQ(t,iZ))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*o(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;J(t<=t$(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-e;a=o(.05,1,a),t=o(.01,10,t/1e3),a<1?(s=e=>{let n=e*a,s=n*t;return .001-(n-i)/iK(e,a)*Math.exp(-s)},r=e=>{let n=e*a*t,r=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=iK(Math.pow(e,2),a);return(n*i+i-r)*o*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=t$(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*a*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...h,velocity:-((h.velocity||0)/1e3)}),w=x||0,T=y/(2*Math.sqrt(f*g)),P=p-d,S=Math.sqrt(f/g)/1e3,E=5>Math.abs(P);if(u||(u=E?iH:iY),c||(c=E?iq:iX),T<1)s=iK(S,T),r=(w+T*S*P)/s,i=t=>p-Math.exp(-T*S*t)*(r*Math.sin(s*t)+P*Math.cos(s*t)),a=T*S*r+P*s,l=T*S*P-r*s,n=t=>Math.exp(-T*S*t)*(a*Math.sin(s*t)+l*Math.cos(s*t));else if(1===T){i=t=>p-Math.exp(-S*t)*(P+(w+S*P)*t);let t=w+S*P;n=e=>Math.exp(-S*e)*(S*t*e-w)}else{let t=S*Math.sqrt(T*T-1);i=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return p-i*((w+T*S*P)*Math.sinh(n)+t*P*Math.cosh(n))/t};let e=(w+T*S*P)/t,s=T*S*e-P*t,r=T*S*P-e*t;n=e=>{let i=Math.exp(-T*S*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let M={calculatedDuration:b&&v||null,velocity:t=>t$(n(t)),next:t=>{if(!b&&T<1){let e=Math.exp(-T*S*t),i=Math.sin(s*t),n=Math.cos(s*t),o=p-e*(r*i+P*n);return m.done=Math.abs(t$(e*(a*i+l*n)))<=u&&Math.abs(p-o)<=c,m.value=m.done?p:o,m}let e=i(t);return b?m.done=t>=v:m.done=Math.abs(t$(n(t)))<=u&&Math.abs(p-e)<=c,m.value=m.done?p:e,m},toString:()=>{let t=Math.min(iz(M),2e4),e=t1(e=>M.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return M}function i0(t,e,i){let n=Math.max(e-5,0);return et(i-t(n),e-n)}function i1({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let c,d,p=t[0],m={done:!1,value:p},f=i*e,y=p+f,g=void 0===o?y:o(y);g!==y&&(f=g-p);let v=t=>-f*Math.exp(-t/n),x=t=>g+v(t),b=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?g:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;c=t,d=iJ({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:i0(x,t,m.value),damping:s,stiffness:r,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==c||(e=!0,b(t),w(t)),void 0!==c&&t>=c)?d.next(t-c):(e||b(t),m)}}}iJ.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iz(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,iJ);return t.ease=e.ease,t.duration=t$(e.duration),t.type="keyframes",t};let i2=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i3(t,e,i,n){return t===e&&i===n?tT:s=>0===s||1===s?s:i2(function(t,e,i,n,s){let r,o,a=0;do(r=i2(o=e+(i-e)/2,n,s)-t)>0?i=o:e=o;while(Math.abs(r)>1e-7&&++a<12)return o}(s,0,1,t,i),e,n)}let i4=i3(.42,0,1,1),i5=i3(0,0,.58,1),i6=i3(.42,0,.58,1),i9=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,i8=t=>e=>1-t(1-e),i7=i3(.33,1.53,.69,.99),nt=i8(i7),ne=i9(nt),ni=t=>t>=1?1:(t*=2)<1?.5*nt(t):.5*(2-Math.pow(2,-10*(t-1))),nn=t=>1-Math.sin(Math.acos(t)),ns=i8(nn),nr=i9(nn),no={linear:tT,easeIn:i4,easeInOut:i6,easeOut:i5,circIn:nn,circInOut:nr,circOut:ns,backIn:nt,backInOut:ne,backOut:i7,anticipate:ni},na=t=>{if(tJ(t)){tt(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return i3(e,i,n,s)}return"string"==typeof t?(tt(void 0!==no[t],`Invalid easing type '${t}'`,"invalid-easing-type"),no[t]):t},nl=(t,e,i)=>{let n=e-t;return n?(i-t)/n:1};function nh({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r,a=Array.isArray(n)&&"number"!=typeof n[0]?n.map(na):na(n),l={done:!1,value:e[0]},h=function(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(tt(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],s=i||tP.mix||i_,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=ik(Array.isArray(e)?e[i]||tT:e,r)),n.push(r)}return n}(e,n,s),h=l.length,u=i=>{if(a&&i<t[0])return e[0];let n=0;if(h>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nl(t[n],t[n+1],i);return l[n](s)};return i?e=>u(o(t[0],t[r-1],e)):u}
1((s=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let s=nl(0,e,n);t.push(eO(i,1,s))}}(r=[0],e.length-1),r),s.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||i6).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(l.value=h(e),l.done=e>=t,l)}}let nu={decay:i1,inertia:i1,tween:nh,keyframes:nh,spring:iJ};function nc(t){"string"==typeof t.type&&(t.type=nu[t.type])}let nd=t=>t/100;class np extends tQ{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==t7.now()&&this.tick(t7.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;nc(t);let{type:e=nh,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:o}=t,a=e||nh;a!==nh&&"number"!=typeof o[0]&&(this.mixKeyframes=ik(nd,i_(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===s&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iz(l));let{calculatedDuration:h}=l;this.calculatedDuration=h,this.resolvedDuration=h+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 i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:h}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:m,type:f,onUpdate:y,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let b=this.currentTime,w=n;if(d){let t=Math.min(this.currentTime,s)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/l)):"mirror"===p&&(w=a)),b=o(0,1,i)*l}x?(this.delayState.value=c[0],i=this.delayState):i=w.next(b),r&&!x&&(i.value=r(i.value));let{done:T}=i;x||null===h||(T=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&T);return P&&f!==i1&&(i.value=tG(c,this.options,g,this.speed)),y&&y(i.value),P&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=t$(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?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i0(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(t7.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iW,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(t7.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}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)}}
1let nm={anticipate:ni,backInOut:ne,circInOut:nr};class nf extends t5{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nm&&(t.ease=nm[t.ease])}(t),nc(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new np({...r,autoplay:!1}),l=Math.max(10,t7.now()-this.startTime),h=o(0,10,l-10),u=a.sample(l).value,{name:c}=this.options;s&&c&&tH(s,c,u),e.setWithVelocity(a.sample(Math.max(0,l-h)).value,u,h),a.stop()}}let ny=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(L.test(t)||"0"===t)&&!t.startsWith("url("));function ng(t){t.duration=0,t.type="keyframes"}let nv=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nx=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nb=tY(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class nw extends tQ{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=t7.now();const c={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:s,repeatType:r,name:a,motionValue:l,element:h,...u},d=h?.KeyframeResolver||tB;this.keyframeResolver=new d(o,(t,e,i)=>this.onKeyframesResolved(t,e,c,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:o,velocity:a,delay:l,isHandoff:h,onUpdate:u}=i;this.resolvedAt=t7.now();let c=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],o=ny(s,e),a=ny(r,e);return J(o===a,`You are trying to animate ${e} from "${s}" to "${r}". "${o?r:s}" 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;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t4(i))&&n)}(t,r,o,a)&&(c=!1,(tP.instantAnimations||!l)&&u?.(tG(t,i,e)),t[0]=t[t.length-1],ng(i),i.repeat=0);let d={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},p=c&&!h&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:o,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:h}=e.owner.getProps();return nb()&&i&&(t6.has(i)||nx.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nv.test(t[e]))return!0;return!1}(a))&&("transform"!==i||!h)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==o}(d),m=d.motionValue?.owner?.current;if(p)try{s=new nf({...d,element:m})}catch{s=new np(d)}else s=new np(d);s.finished.then(()=>{this.notifyFinished()}).catch(tT),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}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(),tL=!0,tI(),tD(),tL=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let nT={type:"spring",stiffness:500,damping:25,restSpeed:10},nP={type:"keyframes",duration:.8},nS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nE=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nM=(t,e,
1i,n={},s,o)=>a=>{let l=iM(n,t)||{},h=l.delay||n.delay||0,{elapsed:u=0}=n;u-=t$(h);let c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:o?void 0:s};!function(t){for(let e in t)if(!nE.has(e))return!0;return!1}(l)&&Object.assign(c,((t,{keyframes:e})=>e.length>2?nP:r.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nT:nS)(t,c)),c.duration&&(c.duration=t$(c.duration)),c.repeatDelay&&(c.repeatDelay=t$(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(ng(c),0===c.delay&&(d=!0)),(tP.instantAnimations||tP.skipAnimations||s?.shouldSkipAnimations||l.skipAnimations)&&(d=!0,ng(c),c.delay=0),c.allowFlatten=!l.type&&!l.ease,d&&!o&&void 0!==e.get()){let t=tG(c.keyframes,l);if(void 0!==t)return void tM.update(()=>{c.onUpdate(t),c.onComplete()})}return l.isSync?new np(c):new nw(c)};function nA(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:o,...a}=e,l=t.getDefaultTransition();r=r?(0,iE.resolveTransition)(r,l):l;let h=r?.reduceMotion,u=r?.skipAnimations;n&&(r=n);let c=[],d=s&&t.animationState&&t.animationState.getState()[s],p=r?.path;for(let e in p&&p.animateVisualElement(t,a,r,i,c),a){let n=t.getValue(e,t.latestValues[e]??null),s=a[e];if(void 0===s||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,...iM(r||{},e)};u&&(o.skipAnimations=!0);let l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!o.velocity){tM.update(()=>n.set(s));continue}let p=!1;if(window.MotionHandoffAnimation){let i=t.props[iv];if(i){let t=window.MotionHandoffAnimation(i,e,tM);null!==t&&(o.startTime=t,p=!0)}}iC(t,e);let m=h??t.shouldReduceMotion;n.start(nM(e,n,s,m&&X.has(e)?{type:!1}:o,t,p));let f=n.animation;f&&c.push(f)}if(o){let e=()=>tM.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iS(t,e)||{};for(let e in s={...s,...i}){var r;let i=iA(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,en(i))}}(t,o)});c.length?Promise.all(c).then(e):e()}return c}function nC(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(r,o):1===s?r*n:a-r*n}function nk(t,e,i={}){let n=iS(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nA(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,n=0,s=0,r=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nk(l,e,{...o,delay:i+("function"==typeof n?0:n)+nC(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,r,o,a,i)}:()=>Promise.resolve(),{when:a}=s;if(!a)return Promise.all([r(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[r,o]:[o,r];return t().then(()=>e())}}let nV=eh.length;function nj(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let n=0;n<i;n++)if(e[n]!==t[n])return!1;return!0}let nR=[...el].reverse(),nL=el.length;function nD(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nI(){return{animate:nD(!0),whileInView:nD(),whileHover:nD(),whileTap:nD(),whileDrag:nD(),whileFocus:nD(),exit:nD()}}let nB=0;function nO(t){return[t("x"),t("y")]}function nF(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}let nN={x:!1,y:!1};function nU(t){return t.max-t.min}function n$(t,e,i,n=.5){t.origin=n,t.originPoint=eO(e.min,e.max,t.origin),t.scale=nU(i)/nU(e),t.translate=eO(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 n_(t,e,i,n){n$(t.x,e.x,i.x,n?n.originX:void 0),n$(t.y,e.y,i.y,n?n.originY:void 0)}function nW(t,e,i,n=0){t.min=(n?eO(i.min,i.max,n):i.min)+e.min,t.max=t.min+nU(e)}function nz(t,e,i,n=0){let s=n?eO(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nU(e)}function nH(t,e,i,n){nz(t.x,e.x,i.x,n?.x),nz(t.y,e.y,i.y,n?.y)}let nY=t=>"object"==typeof t&&null!==t;function nq(t){return nY(t)&&"ownerSVGElement"in t}function nX(t,e,i){if(null==t)return[];if(t instanceof EventTarget)return[t];if("string"==typeof t){let n=document;e&&(n=e.current);let s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}t.s(["resolveElements",0,nX],49652);let nK=new WeakMap,nZ=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:nq(n)&&"getBBox"in n?n.getBBox()[e]:n[i],nG=nZ("inline","width","offsetWidth"),nQ=nZ("block","height","offsetHeight");function nJ({target:t,borderBoxSize:e}){nK.get(t)?.forEach(i=>
1{i(t,{get width(){return nG(t,e)},get height(){return nQ(t,e)}})})}function n0(t){t.forEach(nJ)}let n1=new Set;function n2(t,e){let s;return"function"==typeof t?(n1.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n1.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n1.delete(t),n1.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n0)),(s=nX(t)).forEach(t=>{let n=nK.get(t);n||(n=new Set,nK.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=nK.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n3=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n4=new Set(["INPUT","SELECT","TEXTAREA"]),n5=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function n6(t){return{point:{x:t.pageX,y:t.pageY}}}function n9(t,e,i,n){return nF(t,e,t=>n5(t)&&i(t,n6(t)),n)}let n8=({current:t})=>t?t.ownerDocument.defaultView:null,n7=(t,e)=>Math.abs(t-e),st=new Set(["auto","scroll"]);class se{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=si(this.lastRawMoveEventInfo,this.transformPagePoint));let i=ss(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(n7(t.x,e.x)**2+n7(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:o}=tC;this.history.push({...r,timestamp:o});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=si(e,this.transformPagePoint),tM.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=ss("pointercancel"===t.type?this.lastMoveEventInfo:si(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!n5(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const a=si(n6(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tC;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,ss(a,this.history));const c={passive:!0,capture:!0};this.removeListeners=ik(n9(this.contextWindow,"pointermove",this.handlePointerMove,c),n9(this.contextWindow,"pointerup",this.handlePointerUp,c),n9(this.contextWindow,"pointercancel",this.handlePointerUp,c)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(st.has(t.overflowX)||st.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tM.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tA(this.updatePoint)}}function si(t,e){return e?{point:e(t.point)}:t}function sn(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ss({point:t},e){return{point:t,delta:sn(t,sr(e)),offset:sn(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sr(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>t$(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*t$(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s}
1;return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function sr(t){return t[t.length-1]}function so(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 sa(t,e){let i=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,n]=[n,i]),{min:i,max:n}}function sl(t,e,i){return{min:sh(t,e),max:sh(t,i)}}function sh(t,e){return"number"==typeof t?t:t[e]||0}let su=new WeakMap;class sc{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(n6(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nN[t])return null;else return nN[t]=!0,()=>{nN[t]=!1};return nN.x||nN.y?null:(nN.x=nN.y=!0,()=>{nN.x=nN.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),nO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(b.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let n=i.layout.layoutBox[t];n&&(e=nU(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tM.update(()=>s(t,e),!1,!0),iC(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=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&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),r&&tM.update(()=>r(t,e),!1,!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:t}=this.getProps();(t||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:h}=this.getProps();this.panSession=new se(t,{onSessionStart:s,onStart:r,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:n8(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:o}=this.getProps();o&&tM.postRender(()=>o(i,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,i){let{drag:n}=this.getProps();if(!i||!sp(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eO(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eO(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}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&&ib(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:so(t.x,i,s),y:so(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:sl(t,"left","right"),y:sl(t,"top","bottom")}}(e),n!==this.constraints&&!ib(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nO(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ib(e))return!1;let n=e.current;tt(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:s}=this.visualElement;if(!s||!s.layout)return!1;s.root&&(s.root.scroll=void 0,s.root.updateScroll());
1let r=function(t,e,i){let n=e1(t,i),{scroll:s}=e;return s&&(eG(n.x,s.offset.x),eG(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),o=(t=s.layout.layoutBox,{x:sa(t.x,r.x),y:sa(t.y,r.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=eW(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nO(o=>{if(!sp(o,e,this.currentDirection))return;let l=a&&a[o]||{};(!0===r||r===o)&&(l={min:0,max:0});let h={type:"inertia",velocity:i?t[o]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iC(this.visualElement,t),i.start(nM(t,i,0,e,this.visualElement,!1))}stopAnimation(){nO(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`;return this.visualElement.getProps()[e]||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){nO(e=>{let{drag:i}=this.getProps();if(!sp(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],o=s.get()||0;s.set(t[e]-eO(i,r,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ib(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,a,l,h=e.get();n[t]=(i={min:h,max:h},s=this.constraints[t],r=.5,a=nU(i),(l=nU(s))>a?r=nl(s.min,s.max-a,i.min):a>l&&(r=nl(i.min,i.max-l,s.min)),o(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nO(e=>{if(!sp(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eO(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;su.set(this.visualElement,this);let e=this.visualElement.current,i=n9(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),s=t.target,r=s!==e&&(n4.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,o,{dragConstraints:a}=this.getProps();ib(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,r=n2(i,sd(s=()=>this.scalePositionWithinConstraints())),o=n2(n,sd(s)),t=()=>{r(),o()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tM.read(n);let o=nF(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nO(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{o(),i(),r(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:o}}}function sd(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sp(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sm=t=>(e,i)=>{t&&tM.update(()=>t(e,i),!1,!0)},sf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sy=e3;function sg(t=!0){let e=(0,e3.useContext)(il);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,e3.useId)();(0,e3.useEffect)(()=>{if(t)return s(r)},[t]);let o=(0,e3.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,o]:[!0]}t.s(["usePresence",0,sg],64978);let sv=!1;class sx extends sy.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sv&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sv=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tM.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),t9.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sv=!0,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}}
1function sb(t){let[e,i]=sg(),n=(0,sy.useContext)(e9);return(0,e6.jsx)(sx,{...t,layoutGroup:n,switchLayoutGroup:(0,sy.useContext)(ix),isPresent:e,safeToRemove:i})}let sw=eD.length,sT=t=>"string"==typeof t?parseFloat(t):t,sP=t=>"number"==typeof t||w.test(t);function sS(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sE=sA(0,.5,ns),sM=sA(.5,.95,tT);function sA(t,e,i){return n=>n<t?0:n>e?1:i(nl(t,e,n))}function sC(t,e){t.min=e.min,t.max=e.max}function sk(t,e){sC(t.x,e.x),sC(t.y,e.y)}function sV(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sj(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sR(t,e,[i,n,s],r,o){!function(t,e=0,i=1,n=.5,s,r=t,o=t){if(b.test(e)&&(e=parseFloat(e),e=eO(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eO(r.min,r.max,n);t===r&&(a-=e),t.min=sj(t.min,e,i,a,s),t.max=sj(t.max,e,i,a,s)}(t,e[i],e[n],e[s],e.scale,r,o)}let sL=["x","scaleX","originX"],sD=["y","scaleY","originY"];function sI(t,e,i,n){sR(t.x,e,sL,i?i.x:void 0,n?n.x:void 0),sR(t.y,e,sD,i?i.y:void 0,n?n.y:void 0)}function sB(t){return 0===t.translate&&1===t.scale}function sO(t){return sB(t.x)&&sB(t.y)}function sF(t,e){return t.min===e.min&&t.max===e.max}function sN(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sU(t,e){return sN(t.x,e.x)&&sN(t.y,e.y)}function s$(t){return nU(t.x)/nU(t.y)}function s_(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sW{constructor(){this.members=[]}add(t){t_(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tW(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(tW(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){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let sz=(t,e)=>t.depth-e.depth;class sH{constructor(){this.children=[],this.isDirty=!1}add(t){t_(this.children,t),this.isDirty=!0}remove(t){tW(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(sz),this.isDirty=!1,this.children.forEach(t)}}let sY=["","X","Y","Z"],sq=0;function sX(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function sK({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sq++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
1{this.projectionUpdateScheduled=!1,this.nodes.forEach(sQ),this.nodes.forEach(s9),this.nodes.forEach(s8),this.nodes.forEach(sJ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new sH)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tz),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nq(e)&&!(nq(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tM.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=t7.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tA(r),s(i-250))},tM.setup(r,!0),i=()=>tA(r),sf.hasAnimatedSinceResize&&(sf.hasAnimatedSinceResize=!1,this.nodes.forEach(s6))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(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 r=this.options.transition||s.getDefaultTransition()||rs,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!sU(this.targetLayout,n),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iM(r,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h,e.path)}else e||s6(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(),tA(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(s7),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[iv];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tM,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEac
1h(s2),this.nodes.forEach(s1);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(s3);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(s4),this.nodes.forEach(s5),this.nodes.forEach(sZ),this.nodes.forEach(sG)):this.nodes.forEach(s3),this.clearAllSnapshots();let t=t7.now();tC.delta=o(0,1e3/60,t-tC.timestamp),tC.timestamp=t,tC.isProcessing=!0,tk.update.process(tC),tk.preRender.process(tC),tk.render.process(tC),tC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s0),this.sharedNodes.forEach(rt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tM.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nU(this.snapshot.measuredBox.x)||nU(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<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Y()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!sO(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eY(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),ra((e=n).x),ra(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return Y();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rh))){let{scroll:t}=this.root;t&&(eG(e.x,t.offset.x),eG(e.y,t.offset.y))}return e}removeElementScroll(t){let e=Y();if(sk(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sk(e,t),eG(e.x,s.offset.x),eG(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||Y();sk(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eG(n.x,-i.scroll.offset.x),eG(n.y,-i.scroll.offset.y)),eY(i.latestValues)&&e0(n,i.latestValues,i.layout?.layoutBox)}return eY(this.latestValues)&&e0(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=Y();sk(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eY(n.latestValues)&&(n.instance&&(eH(n.latestValues)&&n.updateSnapshot(),sk(i=Y(),n.measurePageBox())),sI(e,n.latestValues,n.snapshot?.layoutBox,i))}return eY(this.latestValues)&&sI(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tC.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l,h;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,h=this.options.layoutAnchor||void 0,nW(o.x,a.x,l.x,h?.x),nW(o.y,a.y,l.y,h?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sk(this.target,this.layout.layoutBox),eZ(this.target,this.targetDelta)):sk(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eH(this.parent.latestValues)||eq(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(t,e,i){this.relativeParent=t,this.linkedParentVersion=t.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),nH(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),sk(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let t=this.getLead(),e=!!this.resumingFrom||this!==t,i=!0;
1if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),e&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===tC.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sk(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let s,r,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){r=(s=i[a]).projectionDelta;let{visualElement:o}=s.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(eG(t.x,-s.scroll.offset.x),eG(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eZ(t,r)),n&&eY(s.latestValues)&&e0(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.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=Y());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sV(this.prevProjectionDelta.x,this.projectionDelta.x),sV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),n_(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===r&&this.treeScale.y===o&&s_(this.projectionDelta.x,this.prevProjectionDelta.x)&&s_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}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=z(),this.projectionDelta=z(),this.projectionDeltaWithTransform=z()}setAnimationOrigin(t,e=!1,i){let n,s=this.snapshot,r=s?s.latestValues:{},o={...this.latestValues},a=z();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let l=Y(),h=(s?s.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(h&&!c&&!0===this.options.crossfade&&!this.path.some(rn));this.animationProgress=0;let p=i?.interpolateProjection(t);this.mixTargetDelta=e=>{let i=e/1e3,s=p?.(i);if(s?(a.x.translate=s.x,a.x.scale=eO(t.x.scale,1,i),a.x.origin=t.x.origin,a.x.originPoint=t.x.originPoint,a.y.translate=s.y,a.y.scale=eO(t.y.scale,1,i),a.y.origin=t.y.origin,a.y.originPoint=t.y.originPoint):(re(a.x,t.x,i),re(a.y,t.y,i)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,y,g,v;nH(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,y=this.relativeTargetOrigin,g=l,v=i,ri(f.x,y.x,g.x,v),ri(f.y,y.y,g.y,v),n&&(u=this.relativeTarget,m=n,sF(u.x,m.x)&&sF(u.y,m.y))&&(this.isProjectionDirty=!1),n||(n=Y()),sk(n,this.relativeTarget)}h&&(this.animationValues=o,function(t,e,i,n,s,r){s?(t.opacity=eO(0,i.opacity??1,sE(n)),t.opacityExit=eO(e.opacity??1,0,sM(n))):r&&(t.opacity=eO(e.opacity??1,i.opacity??1,n));for(let s=0;s<sw;s++){let r=eD[s],o=sS(e,r),a=sS(i,r);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||sP(o)===sP(a)?(t[r]=Math.max(eO(sT(o),sT(a),n),0),(b.test(a)||b.test(o))&&(t[r]+="%")):t[r]=a)}(e.rotate||i.rotate)&&(t.rotate=eO(e.rotate||0,i.rotate||0,n))}(o,r,this.latestValues,i,d,c)),s&&void 0!==s.rotate&&(this.animationValues||(this.animationValues=o),this.animationValues.pathRotation=s.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tA(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tM.update(()=>{var e,i,n;let s;sf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=en(0)),this.motionValue.jump(0,!1),this.currentAnimation=(e=this.motionValue,i=[0,1e3],n={...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(s=(0,q.isMotionValue)(e)?e:en(e)).start(nM("",s,i,n)),s.animation),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:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rl(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||Y();let e=nU(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nU(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sk(e,i),e0(e,s),n_(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sW),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;
1return 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&&sX("z",t,n,this.animationValues);for(let e=0;e<sY.length;e++)sX(`rotate${sY[e]}`,t,n,this.animationValues),sX(`skew${sY[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=ia(e?.pointerEvents)||"",t.transform=i?i(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ia(e?.pointerEvents)||""),this.hasProjected&&!eY(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,o=i?.z||0;if((s||r||o)&&(n=`translate3d(${s}px, ${r}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,pathRotation:s,rotateX:r,rotateY:o,skewX:a,skewY:l}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotate(${s}deg) `),r&&(n+=`rotateX(${r}deg) `),o&&(n+=`rotateY(${o}deg) `),a&&(n+=`skewX(${a}deg) `),l&&(n+=`skewY(${l}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:o,y:a}=this.projectionDelta;for(let e in t.transformOrigin=`${100*o.origin}% ${100*a.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eF){if(void 0===s[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eF[e],l="none"===r?s[e]:i(s[e],n);if(o){let e=o.length;for(let i=0;i<e;i++)t[o[i]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?ia(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(s1),this.root.sharedNodes.clear()}}}function sZ(t){t.updateLayout()}function sG(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:s}=t.options,r=e.source!==t.layout.source;if("size"===s)nO(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nU(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sC(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rl(s,e.layoutBox,i)&&nO(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],o=nU(i[n]);s.max=s.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=z();n_(o,i,e.layoutBox);let a=z();r?n_(a,t.applyTransform(n,!0),e.measuredBox):n_(a,i,e.layoutBox);let l=!sO(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let o=t.options.layoutAnchor||void 0,a=Y();nH(a,e.layoutBox,s.layoutBox,o);let l=Y();nH(l,i,r.layoutBox,o),sU(a,l)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=a,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function sQ(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
1isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function sJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s0(t){t.clearSnapshot()}function s1(t){t.clearMeasurements()}function s2(t){t.isLayoutDirty=!0,t.updateLayout()}function s3(t){t.isLayoutDirty=!1}function s4(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function s5(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function s6(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function s9(t){t.resolveTargetDelta()}function s8(t){t.calcProjection()}function s7(t){t.resetSkewAndRotation()}function rt(t){t.removeLeadSnapshot()}function re(t,e,i){t.translate=eO(e.translate,0,i),t.scale=eO(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ri(t,e,i,n){t.min=eO(e.min,i.min,n),t.max=eO(e.max,i.max,n)}function rn(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rs={duration:.45,ease:[.4,0,.1,1]},rr=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ro=rr("applewebkit/")&&!rr("chrome/")?Math.round:tT;function ra(t){t.min=ro(t.min),t.max=ro(t.max)}function rl(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(s$(e)-s$(i)))}function rh(t){return t!==t.root&&t.scroll?.wasRoot}let ru=sK({attachResizeListener:(t,e)=>nF(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rc={current:void 0},rd=sK({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rc.current){let t=new ru({});t.mount(window),t.setOptions({layoutScroll:!0}),rc.current=t}return rc.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rp(t,e){let i=nX(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rm(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tM.postRender(()=>s(e,n6(e)))}function rf(t){return nY(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",0,rf],72846);let ry=(t,e)=>!!e&&(t===e||ry(t,e.parentElement)),rg=new WeakSet;function rv(t){return e=>{"Enter"===e.key&&t(e)}}function rx(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rb(t){return n5(t)&&!(nN.x||nN.y)}let rw=new WeakSet;function rT(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 s=n["onTap"+("End"===i?"":i)];s&&tM.postRender(()=>s(e,n6(e)))}let rP=new WeakMap,rS=new WeakMap,rE=t=>{let e=rP.get(t.target);e&&e(t)},rM=t=>{t.forEach(rE)},rA={some:0,all:1},rC=function(t,e){if("u"<typeof Proxy)return iT;let i=new Map,n=(i,n)=>iT(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,iT(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iP{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.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=>nk(t,e,i)));else if("string"==typeof e)n=nk(t,e,i);else{let s="function"==typeof e?iS(t,e,i.custom):e;n=Promise.all(nA(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nI(),n=!0,s=!1,r=e=>(i,n)=>{let s=iS(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function o(o){let{props:a}=t,l=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;t<nV;t++){let n=eh[t],s=e.props[n];
1(ea(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},h=[],u=new Set,c={},d=1/0;for(let e=0;e<nL;e++){var p,m;let f=nR[e],y=i[f],g=void 0!==a[f]?a[f]:l[f],v=ea(g),x=f===o?y.isActive:null;!1===x&&(d=e);let b=g===l[f]&&g!==a[f]&&v;if(b&&(n||s)&&t.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...c},!y.isActive&&null===x||!g&&!y.prevProp||eo(g)||"boolean"==typeof g)continue;if("exit"===f&&y.isActive&&!0!==x){y.prevResolvedValues&&(c={...c,...y.prevResolvedValues});continue}let w=(p=y.prevProp,"string"==typeof(m=g)?m!==p:!!Array.isArray(m)&&!nj(m,p)),T=w||f===o&&y.isActive&&!b&&v||e>d&&v,P=!1,S=Array.isArray(g)?g:[g],E=S.reduce(r(f),{});!1===x&&(E={});let{prevResolvedValues:M={}}=y,A={...M,...E},C=e=>{T=!0,u.has(e)&&(P=!0,u.delete(e)),y.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in A){let e=E[t],i=M[t];if(!c.hasOwnProperty(t))(iA(e)&&iA(i)?!nj(e,i)||w:e!==i)?null!=e?C(t):u.add(t):void 0!==e&&u.has(t)?C(t):y.protectedKeys[t]=!0}y.prevProp=g,y.prevResolvedValues=E,y.isActive&&(c={...c,...E}),(n||s)&&t.blockInitialAnimation&&(T=!1);let k=b&&w,V=!k||P;T&&V&&h.push(...S.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!k&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=iS(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nC(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(u.size){let e={};if("boolean"!=typeof a.initial){let i=iS(t,Array.isArray(a.initial)?a.initial[0]:a.initial);i&&i.transition&&(e.transition=i.transition)}u.forEach(i=>{let n=t.getBaseTarget(i),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),h.push({animation:e})}let f=!!h.length;return n&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?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 s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nI(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eo(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?.()}}},exit:{Feature:class extends iP{constructor(){super(...arguments),this.id=nB++,this.isExitComplete=!1}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;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)){let i=iS(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rA[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,o&&!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)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rS.has(i)||rS.set(i,{});let n=rS.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rM,{root:t,...e})),n[s]}(a),rP.set(t,l),e.observe(t),()=>{rP.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<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(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iP{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rp(t,i),o=t=>{let n=t.currentTarget;if(!rb(t)||rw.has(t))return;rg.add(n),i.stopPropagation&&rw.add(t);let r=e(n,t),o={...s,capture:!0},a=(t,e)=>{window.removeEventListener("pointerup",l,o),window.removeEventListener("pointercancel",h,o),rg.has(n)&&rg.delete(n),rb(t)&&"function"==typeof r&&r(t,{success:e})},l=t=>{a(t,n===window||n===document||i.useGlobalTarget||ry(n,t.target))},h=t=>{a(t,!1)};window.addEventListener("pointerup",l,o),window.addEventListener("pointercancel",h,o)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,s),rf(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rv(()=>{if(rg.has(i))return;rx(i,"down");let t=rv(()=>{rx(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rx(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),n3.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rT(this.node,e,"Start"),(t,{success:e})=>rT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iP{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=ik(nF(this.node.current,"focus",()=>this.onFocus()),nF(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iP{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rp(t,i);return n.forEach(t=>{let i,n=!1,r=!1,o=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},a=t=>{n=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),r&&(r=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nN.x||nN.y)return;r=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,s),window.addEventListener("pointercancel",a,s)},s)}),r}(t,(t,e)=>(rm(this.node,e,"Start"),t=>rm(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iP{constructor(){super(...arguments),this.removePointerDownListener=tT}onPointerDown(t){this.session=new se(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:n8(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sm(t),onStart:sm(e),onMove:sm(i),onEnd:(t,e)=>{delete this.session,n&&tM.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=n9(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iP{constructor(t){super(t),this.removeGroupControls=tT,this.removeListeners=tT,this.controls=new sc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tT}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rd,MeasureLayout:sb},layout:{ProjectionNode:rd,MeasureLayout:sb}},(t,e)=>e.isSVG??e5(t)?new e_(e):new e2(e,{allowProjection:t!==e3.Fragment}));t.s(["motion",0,rC],32181)},95057,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={formatUrl:function(){return a},formatWithValidation:function(){return h},urlObjectKeys:function(){return l}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(90809)._(t.r(98183)),o=/https?|ftp|gopher|file/;function a(t){let{auth:e,hostname:i}=t,n=t.protocol||"",s=t.pathname||"",a=t.hash||"",l=t.query||"",h=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?h=e+t.host:i&&(h=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(h+=":"+t.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let u=t.search||l&&`?${l}`||"";return n&&!n.endsWith(":")&&(n+=":"),t.slashes||(!n||o.test(n))&&!1!==h?(h="//"+(h||""),s&&"/"!==s[0]&&(s="/"+s)):h||(h=""),a&&"#"!==a[0]&&(a="#"+a),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${h}${s}${u}${a}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function h(t){return a(t)}},18581,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=t.r(71645);function s(t,e){let i=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let t=i.current;t&&(i.current=null,t());let e=s.current;e&&(s.current=null,e())}else t&&(i.current=r(t,n)),e&&(s.current=r(e,n))},[t,e])}function r(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},73668,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return r}});let n=t.r(18967),s=t.r(52817);function r(t){if(!(0,n.isAbsoluteUrl)(t))return!0;try{let e=(0,n.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,s.hasBasePath)(i.pathname)}catch(t){return!1}}},84508,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return n}});let n=t=>{}},22016,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return x}};for(var s in n)Object.defineProperty(i,s,{enumerable:!0,get:n[s]});let r=t.r(90809),o=t.r(43476),a=r._(t.r(71645)),l=t.r(95057),h=t.r(8372),u=t.r(18581),c=t.r(18967),d=t.r(5550);t.r(33525);let p=t.r(88540),m=t.r(91949),f=t.r(73668),y=t.r(9396);function g(e){var i,n;let s,r,g,[x,b]=(0,a.useOptimistic)(m.IDLE_LINK_STATUS),w=(0,a.useRef)(null),{href:T,as:P,children:S,prefetch:E=null,passHref:M,replace:A,shallow:C,scroll:k,onClick:V,onMouseEnter:j,onTouchStart:R,legacyBehavior:L=!1,onNavigate:D,transitionTypes:I,ref:B,unstable_dynamicOnHover:O,...F}=e;s=S,L&&("string"==typeof s||"number"==typeof s)&&(s=(0,o.jsx)("a",{children:s}));let N=a.default.useContext(h.AppRouterContext),U=!1!==E,$=!1!==E?null===(n=E)||"auto"===n?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,_="string"==typeof(i=P||T)?i:(0,l.formatUrl)(i);if(L){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});r=a.default.Children.only(s)}let W=L?r&&"object"==typeof r&&r.ref:B,z=a.default.useCallback(t=>(null!==N&&(w.current=(0,m.mountLinkInstance)(t,_,N,$,U,b)),()=>{w.current&&((0,m.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,m.unmountPrefetchableInstance)(t)}),[U,_,N,$,b]),H={ref:(0,u.useMergedRef)(z,W),onClick(e){L||"function"!=typeof V||V(e),L&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),!N||e.defaultPrevented||function(e,i,n,s,r,o,l){if("u">typeof window){let h,{nodeName:u}=e.currentTarget;if("A"===u.toUpperCase()&&((h=e.currentTarget.getAttribute("target"))&&"_self"!==h||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,f.isLocalURL)(i)){s&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),o){let t=!1;if(o({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:c}=t.r(99781);a.default.startTransition(()=>{c(i,s?"replace":"push",!1===r?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,l)})}}(e,_,w,A,k,D,I)},onMouseEnter(t){L||"function"!=typeof j||j(t),L&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),N&&U&&(0,m.onNavigationIntent)(t.currentTarget,!0===O)},onTouchStart:function(t){L||"function"!=typeof R||R(t),L&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),N&&U&&(0,m.onNavigationIntent)(t.currentTarget,!0===O)}};return(0,c.isAbsoluteUrl)(_)?H.href=_:L&&!M&&("a"!==r.type||"href"in r.props)||(H.href=(0,d.addBasePath)(_)),g=L?a.default.cloneElement(r,H):(0,o.jsx)("a",{...F,...H,children:s}),(0,o.jsx)(v.Provider,{value:x,children:g})}t.r(84508);let v=(0,a.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,a.useContext)(v);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},18566,(t,e,i)=>{e.exports=t.r(76562)},67728,t=>{"use strict";let e="https://app.harmoniqs.ai/",i=[{key:"amico",name:"Amico",action:"Assembler",href:"/amico",status:"beta",tier:"open",blurb
1:"The assembler. It composes the research tools into a loop, runs it against your hardware, and closes it on the result.",links:{app:e}},{key:"amicode",name:"Amicode",action:"Interface",href:"/amicode",status:"live",tier:"open",blurb:"The open interface: a VS Code extension for research teams, from single experiments to fleet management.",links:{marketplace:"https://marketplace.visualstudio.com/items?itemName=harmoniqs.amicode",repo:"https://github.com/harmoniqs/amicode"}},{key:"legato",name:"Legato",action:"Compile",href:"/amico#legato",status:"live",tier:"open",capability:"Pulse compilation",blurb:"Interface to other circuit software packages, curated library of pulses, algorithm development, and QEC code design.",links:{repo:"https://github.com/harmoniqs/Legato.jl",docs:"https://docs.harmoniqs.co/Legato/stable/"},premium:{key:"legatissimo",name:"Legatissimo",anchor:"/amico#legatissimo",blurb:"Algorithms, circuits, syndrome extractions and stabilizers, all compiled into pulses, with a growing library of hardware-validated multi-qubit pulses."}},{key:"piccolo",name:"Piccolo",action:"Optimize",href:"/amico#piccolo",status:"live",tier:"open",capability:"Pulse optimization",blurb:"Locally runnable pulse optimization and simulation, with a growing community.",links:{repo:"https://github.com/harmoniqs/Piccolo.jl",docs:"https://docs.harmoniqs.co/Piccolo/dev/"},premium:{key:"piccolissimo",name:"Piccolissimo",anchor:"/amico#piccolissimo",blurb:"Piccolo tooling over Altissimo, our in-house solver that runs on CPU and GPU and scales to systems previously out of reach. The research loop keeps improving it and building the pulse library."}},{key:"intonato",name:"Intonato",action:"Calibrate",href:"/amico#intonato",status:"live",tier:"open",capability:"Pulse calibration",blurb:"Closed-loop pulse tuning on real hardware. Measure the device, update the model, re-solve the pulse, repeat.",links:{repo:"https://github.com/harmoniqs/Intonato.jl",docs:"https://docs.harmoniqs.co/Intonato/stable/"},premium:{key:"intonatissimo",name:"Intonatissimo",anchor:"/amico#intonatissimo",blurb:"Hardware calibration is the hardest problem. Our proprietary calibration algorithms are hardware-validated and continuously refined."}}],n=i.filter(t=>t.premium);n.map(t=>t.premium),t.s(["BEYOND_QUANTUM",0,[{name:"DirectTrajOpt",capability:"Trajectory optimization",status:"open",blurb:"Direct collocation with no quantum in it. Piccolo is built on this. It is the same method that plans motion for robots and spacecraft.",href:"https://github.com/harmoniqs/DirectTrajOpt.jl"},{name:"NamedTrajectories",capability:"Trajectory data",status:"open",blurb:"Trajectories with user-defined named components. The structure the tools hand back and forth, whatever the system.",href:"https://github.com/harmoniqs/NamedTrajectories.jl"},{name:"Robotics control",capability:"Planned",status:"planned"},{name:"Aerospace trajectories",capability:"Planned",status:"planned"}],"CATEGORY_LINE",0,"Autonomous Research Starting with Quantum","EC_HEADLINE",0,"Autonomous R&D is an error correction problem.","HERO_TAGLINE",0,"For researchers, by researchers.","HERO_TAGLINE_LINES",0,["For researchers,","by researchers."],"INSTANCE_LINE",0,"Autonomous research needs problems that span every discipline, results only real hardware can settle, and experiments fast enough to turn the loop thousands of times a day. Quantum is all three. This is where we start.","MODULES",0,n,"PREMIUM_CONTACT_HREF",0,"mailto:[email protected]","REQUEST_ACCESS_URL",0,e,"productByKey",0,function(t){return i.find(e=>e.key===t)}])},80414,88653,45210,t=>{"use strict";var e=t.i(43476),i=t.i(22016),n=t.i(71645),s=t.i(18566),r=t.i(32181);t.i(47167);var o=t.i(31178),a=t.i(47414),l=t.i(74008),h=t.i(21476),u=t.i(72846),c=n,d=t.i(37806);function p(t,e){if("function"==typeof t)return t(e);null!=t&&(t.current=e)}class m extends c.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if((0,u.isHTMLElement)(e)&&t.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let t=e.offsetParent,i=(0,u.isHTMLElement)(t)&&t.offsetWidth||0,n=(0,u.isHTMLElement)(t)&&t.offsetHeight||0,s=getComputedStyle(e),r=this.props.sizeRef.current;r.height=parseFloat(s.height),r.width=parseFloat(s.width),r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left,r.bottom=n-r.height-r.top,r.direction=s.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:t,isPresent:i,anchorX:s,anchorY:r,root:o,pop:a}){let l=(0,c.useId)(),h=(0,c.useRef)(null),u=(0,c.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:y}=(0,c.useContext)(d.MotionConfigContext),g=function(...t){return n.useCallback(function(...t){return e=>{let i=!1,n=t.map(t=>{let n=p(t,e);return i||"function"!=typeof n||(i=!0),n});if(i)return()=>{for(let e=0;e<n.length;e++){let i=n[e];"function"==typeof i?i():p(t[e],null)}}}}(...t),t)}(h,t.props?.ref??t?.ref);return(0,c.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:c,right:d,bottom:p,direction:m}=u.current;if(i||!1===a||!h.current||!t||!e)return;let f="rtl"===m,g="left"===s?f?`right: ${d}`:`left: ${c}`:f?`left: ${c}`:`right: ${d}`,v="bottom"===r?`bottom: ${p}`:`top: ${n}`;h.current.dataset.motionPopId=l;let x=document.createElement("style");y&&(x.nonce=y);let b=o??document.head;return b.appendChild(x),x.sheet&&x.sheet.insertRule(` 2 [data-motion-pop-id="${l}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${e}px !important; 6 ${g}px !important; 7 ${v}px !important; 8 } 9 `),()=>{h.current?.removeAttribute("data-motion-pop-id"),b.contains(x)&&b.removeChild(x)}},[i]),(0,e.jsx)(m,{isPresent:i,childRef:h,sizeRef:u,pop:a,children:!1===a?t
9:c.cloneElement(t,{ref:g})})}let y=({children:t,initial:i,isPresent:s,onExitComplete:r,custom:o,presenceAffectsLayout:u,mode:c,anchorX:d,anchorY:p,root:m})=>{let y=(0,a.useConstant)(g),v=(0,n.useId)(),x=(0,n.useRef)(s),b=(0,n.useRef)(r);(0,l.useIsomorphicLayoutEffect)(()=>{x.current=s,b.current=r});let w=!0,T=(0,n.useMemo)(()=>(w=!1,{id:v,initial:i,isPresent:s,custom:o,onExitComplete:t=>{for(let e of(y.set(t,!0),y.values()))if(!e)return;r&&r()},register:t=>(y.set(t,!1),()=>{y.delete(t),x.current||y.size||b.current?.()})}),[s,y,r]);return u&&w&&(T={...T}),(0,n.useMemo)(()=>{y.forEach((t,e)=>y.set(e,!1))},[s]),n.useEffect(()=>{s||y.size||!r||r()},[s]),t=(0,e.jsx)(f,{pop:"popLayout"===c,isPresent:s,anchorX:d,anchorY:p,root:m,children:t}),(0,e.jsx)(h.PresenceContext.Provider,{value:T,children:t})};function g(){return new Map}var v=t.i(64978);let x=t=>t.key||"";function b(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}let w=({children:t,custom:i,initial:s=!0,onExitComplete:r,presenceAffectsLayout:h=!0,mode:u="sync",propagate:c=!1,anchorX:d="left",anchorY:p="top",root:m})=>{let[f,g]=(0,v.usePresence)(c),w=(0,n.useMemo)(()=>b(t),[t]),T=c&&!f?[]:w.map(x),P=(0,n.useRef)(!0),S=(0,n.useRef)(w),E=(0,a.useConstant)(()=>new Map),M=(0,n.useRef)(new Set),[A,C]=(0,n.useState)(w),[k,V]=(0,n.useState)(w);(0,l.useIsomorphicLayoutEffect)(()=>{P.current=!1,S.current=w;for(let t=0;t<k.length;t++){let e=x(k[t]);T.includes(e)?(E.delete(e),M.current.delete(e)):!0!==E.get(e)&&E.set(e,!1)}},[k,T.length,T.join("-")]);let j=[];if(w!==A){let t=[...w];for(let e=0;e<k.length;e++){let i=k[e],n=x(i);T.includes(n)||(t.splice(e,0,i),j.push(i))}return"wait"===u&&j.length&&(t=j),V(b(t)),C(w),null}let{forceRender:R}=(0,n.useContext)(o.LayoutGroupContext);return(0,e.jsx)(e.Fragment,{children:k.map(t=>{let n=x(t),o=(!c||!!f)&&(w===k||T.includes(n));return(0,e.jsx)(y,{isPresent:o,initial:(!P.current||!!s)&&void 0,custom:i,presenceAffectsLayout:h,mode:u,root:m,onExitComplete:o?void 0:()=>{if(M.current.has(n)||!E.has(n))return;M.current.add(n),E.set(n,!0);let t=!0;E.forEach(e=>{e||(t=!1)}),t&&(R?.(),V(S.current),c&&g?.(),r&&r())},anchorX:d,anchorY:p,children:t},n)})})};function T({className:t="h-7 w-7"}){return(0,e.jsx)("svg",{className:t,viewBox:"0 0 449.03 446.26",fill:"currentColor",role:"img","aria-label":"Harmoniqs",children:(0,e.jsx)("path",{d:"M318.35,366.02h-96.05l26.68-126.27h-54.69l-26.68,126.27h-96.05l60.03-283.34h96.49l-26.23,123.15h54.25l26.24-123.15h96.94l-60.92,283.34Z"})})}function P(t){let e=new MutationObserver(t);return e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>e.disconnect()}t.s(["AnimatePresence",0,w],88653);let S=()=>"dark"===document.documentElement.dataset.theme,E=()=>!1;function M(){return(0,n.useSyncExternalStore)(P,S,E)}function A(){return(0,e.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:(0,e.jsx)("path",{d:"M14.5 10.9A6.1 6.1 0 0 1 7.1 3.5a6.1 6.1 0 1 0 7.4 7.4Z",stroke:"currentColor",strokeWidth:"1.25",strokeLinejoin:"round"})})}function C(){return(0,e.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,children:[(0,e.jsx)("circle",{cx:"9",cy:"9",r:"3.25",stroke:"currentColor",strokeWidth:"1.25"}),(0,e.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",children:[(0,e.jsx)("line",{x1:"9",y1:"1.25",x2:"9",y2:"2.75"}),(0,e.jsx)("line",{x1:"9",y1:"15.25",x2:"9",y2:"16.75"}),(0,e.jsx)("line",{x1:"1.25",y1:"9",x2:"2.75",y2:"9"}),(0,e.jsx)("line",{x1:"15.25",y1:"9",x2:"16.75",y2:"9"}),(0,e.jsx)("line",{x1:"3.52",y1:"3.52",x2:"4.58",y2:"4.58"}),(0,e.jsx)("line",{x1:"13.42",y1:"13.42",x2:"14.48",y2:"14.48"}),(0,e.jsx)("line",{x1:"3.52",y1:"14.48",x2:"4.58",y2:"13.42"}),(0,e.jsx)("line",{x1:"13.42",y1:"4.58",x2:"14.48",y2:"3.52"})]})]})}function k({className:t=""}){let i=M();return(0,e.jsx)("button",{type:"button","aria-label":i?"Switch to day mode":"Switch to night mode",onClick:()=>{let t=i?"light":"dark";try{sessionStorage.setItem("theme-override",t)}catch{}"function"==typeof window.__applyTheme?window.__applyTheme():document.documentElement.setAttribute("data-theme",t)},className:`flex h-11 w-11 items-center justify-center rounded-brand text-fg transition-colors hover:bg-fg/6 ${t}`,children:i?(0,e.jsx)(C,{}):(0,e.jsx)(A,{})})}t.s(["useDarkThemeSafe",0,M],45210);var V=t.i(67728);let j=[{label:"Amico",href:"/amico"},{label:"Amicode",href:"/amicode"},{label:"Research",href:"/research"},{label:"Team",href:"/team"},{label:"Contact",href:"/contact"}],R={label:"Request access",href:V.REQUEST_ACCESS_URL};function L({open:t}){return(0,e.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none","aria-hidden":!0,
9children:[(0,e.jsx)(r.motion.line,{x1:"2",y1:"5",x2:"16",y2:"5",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",animate:t?{x1:3,y1:3,x2:15,y2:15}:{x1:2,y1:5,x2:16,y2:5},transition:{duration:.22,ease:"easeInOut"}}),(0,e.jsx)(r.motion.line,{x1:"2",y1:"9",x2:"16",y2:"9",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",animate:t?{opacity:0,x2:9}:{opacity:1,x2:16},transition:{duration:.15}}),(0,e.jsx)(r.motion.line,{x1:"2",y1:"13",x2:"16",y2:"13",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",animate:t?{x1:3,y1:15,x2:15,y2:3}:{x1:2,y1:13,x2:16,y2:13},transition:{duration:.22,ease:"easeInOut"}})]})}let D="rounded-brand border border-fg/15 backdrop-blur-xl bg-bg/70",I="rounded-brand px-4 py-2 text-sm font-medium text-fg transition-colors hover:bg-fg/6",B="bg-fg/8",O="inline-flex min-h-11 items-center justify-center rounded-brand px-4 py-2 text-sm font-semibold uppercase tracking-wider transition-colors border border-brand-yellow-border bg-brand-yellow text-on-yellow hover:bg-brand-yellow-hover";t.s(["default",0,function(){let[t,o]=(0,n.useState)(!1),a=(0,s.usePathname)(),l=t=>a===t||"/"!==t&&a?.startsWith(t+"/");return(0,e.jsxs)("header",{className:"sticky top-0 z-50 w-full",children:[(0,e.jsxs)("div",{className:"flex w-full items-center justify-between px-6 py-4 lg:px-10 lg:py-5",children:[(0,e.jsx)(i.default,{href:"/","aria-label":"Harmoniqs home",className:"-m-1.5 inline-flex min-h-11 min-w-11 items-center justify-center p-1.5 text-fg",children:(0,e.jsx)(T,{className:"h-8 w-8"})}),(0,e.jsxs)("nav",{"aria-label":"Primary",className:`hidden items-center gap-1 p-1.5 md:flex ${D}`,children:[j.map(t=>t.external?(0,e.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:I,children:t.label},t.href):(0,e.jsx)(i.default,{href:t.href,"aria-current":l(t.href)?"page":void 0,className:`${I} ${l(t.href)?B:""}`,children:t.label},t.href)),(0,e.jsx)("a",{href:R.href,target:"_blank",rel:"noopener noreferrer",className:`ml-1 ${O}`,children:R.label}),(0,e.jsx)(k,{})]}),(0,e.jsxs)("div",{className:`flex items-center gap-1 p-1.5 md:hidden ${D}`,children:[(0,e.jsx)("a",{href:R.href,target:"_blank",rel:"noopener noreferrer",className:`${O} px-3.5 text-xs`,children:R.label}),(0,e.jsx)(k,{}),(0,e.jsx)("button",{type:"button","aria-label":t?"Close menu":"Open menu","aria-expanded":t,onClick:()=>o(t=>!t),className:"flex h-11 w-11 items-center justify-center rounded-brand text-fg transition-colors hover:bg-fg/6",children:(0,e.jsx)(L,{open:t})})]})]}),(0,e.jsx)(w,{children:t&&(0,e.jsx)(r.motion.nav,{"aria-label":"Primary",initial:{opacity:0,y:-8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.18,ease:"easeOut"},className:`mx-6 mb-4 overflow-hidden p-2 md:hidden ${D} rounded-brand`,children:(0,e.jsx)("ul",{className:"flex flex-col",children:j.map(t=>(0,e.jsx)("li",{children:t.external?(0,e.jsx)("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"block rounded-brand px-4 py-3 text-base font-medium text-fg transition-colors hover:bg-fg/6",children:t.label}):(0,e.jsx)(i.default,{href:t.href,"aria-current":l(t.href)?"page":void 0,onClick:()=>o(!1),className:`block rounded-brand px-4 py-3 text-base font-medium text-fg transition-colors hover:bg-fg/6 ${l(t.href)?B:""}`,children:t.label})},t.href))})},"menu")})]})}],80414)},60843,81435,t=>{"use strict";var e=t.i(43476),i=t.i(32181),n=t.i(22016),s=t.i(71645),r=t.i(71737);let o=(0,s.forwardRef)(function({appearance:t,className:i,onVerify:n,onExpire:o},a){let l=(0,s.useRef)(null),h=(0,s.useRef)(null);return(0,s.useImperativeHandle)(a,()=>({reset(){window.turnstile&&null!=h.current&&window.turnstile.reset(h.current)}})),(0,s.useEffect)(()=>{let e=!1,i="localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname?"1x00000000000000000000AA":r.TURNSTILE_SITE_KEY;function s(){!e&&l.current&&null==h.current&&window.turnstile&&(h.current=window.turnstile.render(l.current,{sitekey:i,action:r.TURNSTILE_ACTION,...t?{appearance:t}:{},callback:t=>n?.(t),"expired-callback":()=>o?.(),"error-callback":()=>o?.()}))}return window.__turnstileReady?s():window.addEventListener(r.TURNSTILE_READY_EVENT,s,{once:!0}),()=>{e=!0,window.removeEventListener(r.TURNSTILE_READY_EVENT,s),window.turnstile&&null!=h.current&&(window.turnstile.remove(h.current),h.current=null)}},[]),(0,e.jsx)("div",{ref:l,className:i})});t.s(["default",0,o],81435);var a=t.i(67728);let l=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;function h(t){let e=t.trim();return e?l.test(e)?"":"Please enter a valid email address.":"Please enter your email address."}
9function u(){let[t,i]=(0,s.useState)(""),[n,r]=(0,s.useState)(""),[l,u]=(0,s.useState)("idle"),[c,d]=(0,s.useState)(""),[p,m]=(0,s.useState)(!1),f=(0,s.useRef)(null),y=(0,s.useRef)(null);async function g(e){e.preventDefault();let n=h(t);if(n){r(n),y.current?.focus();return}if(!c)return void u("needs-verification");u("submitting");try{(await fetch("/api/waitlist",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t,turnstileToken:c})})).ok?(u("success"),i("")):u("error")}catch{u("error")}finally{f.current?.reset(),d("")}}return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("form",{onSubmit:g,noValidate:!0,className:"w-full",children:[(0,e.jsx)("label",{htmlFor:"newsletter-email",className:"block font-mono text-xs uppercase tracking-widest text-fg-muted",children:"Stay in the loop"}),(0,e.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,e.jsx)("input",{id:"newsletter-email",ref:y,type:"email",required:!0,value:t,onChange:t=>{i(t.target.value),n&&r(h(t.target.value))},onFocus:()=>m(!0),onBlur:()=>r(t?h(t):""),placeholder:"Enter your email","aria-invalid":!!n||void 0,"aria-describedby":n?"newsletter-email-error":void 0,className:`h-11 min-w-0 flex-1 rounded-brand border bg-bg px-4 text-sm text-fg placeholder:text-fg-subtle focus:border-fg focus:outline-none ${n?"border-red-600":"border-fg/30"}`}),(0,e.jsx)("button",{type:"submit",disabled:"submitting"===l,className:"h-11 whitespace-nowrap rounded-brand bg-deep px-6 text-xs font-semibold uppercase tracking-wider text-on-deep transition-colors hover:bg-deep/85 disabled:opacity-60",children:"submitting"===l?"Joiningâ¦":"Join the list"})]}),p&&(0,e.jsx)("div",{className:"mt-3",children:(0,e.jsx)(o,{ref:f,appearance:"interaction-only",onVerify:d,onExpire:()=>d("")})})]}),n&&(0,e.jsx)("p",{id:"newsletter-email-error",role:"alert","aria-live":"polite",className:"mt-2 max-w-md text-xs font-medium text-fg",children:n}),"needs-verification"===l&&(0,e.jsx)("p",{className:"mt-2 max-w-md text-xs text-fg-muted","aria-live":"polite",children:"Please complete the verification, then try again."}),"success"===l&&(0,e.jsxs)("p",{className:"mt-2 max-w-md text-sm text-fg","aria-live":"polite",children:["Youâre on the list.",(0,e.jsx)("br",{}),"Weâll share product updates and where weâre heading next."]}),"error"===l&&(0,e.jsxs)("p",{role:"alert",className:"mt-2 max-w-md text-xs font-medium text-fg",children:["Something went wrong. Please try again, or email"," ",(0,e.jsx)("a",{href:a.PREMIUM_CONTACT_HREF,className:"underline",children:"[email protected]"}),"."]})]})}function c({className:t="h-6 w-auto"}){return(0,e.jsxs)("svg",{className:t,viewBox:"0 0 426.42 94.66",fill:"currentColor",role:"img","aria-label":"Harmoniqs",children:[(0,e.jsx)("path",{d:"M5.04,69.09V10.91h12.26v24.01h24.89V10.91h12.23v58.18h-12.23v-24.03h-24.89v24.03H5.04Z"}),(0,e.jsx)("path",{d:"M76.7,69.92c-2.77,0-5.25-.49-7.42-1.46-2.17-.97-3.88-2.42-5.14-4.35-1.26-1.92-1.88-4.32-1.88-7.2,0-2.42.44-4.46,1.33-6.11.89-1.65,2.1-2.97,3.62-3.98,1.53-1,3.27-1.76,5.22-2.27,1.95-.51,4.01-.87,6.16-1.08,2.53-.26,4.57-.52,6.12-.75,1.55-.24,2.67-.59,3.37-1.07.7-.47,1.05-1.17,1.05-2.1v-.17c0-1.8-.56-3.19-1.68-4.18-1.12-.99-2.71-1.48-4.77-1.48-2.17,0-3.9.48-5.18,1.43-1.28.96-2.13,2.15-2.55,3.59l-11.16-.91c.57-2.65,1.68-4.95,3.34-6.89,1.66-1.94,3.81-3.44,6.44-4.49s5.69-1.58,9.16-1.58c2.42,0,4.73.28,6.95.85,2.22.57,4.19,1.45,5.92,2.64,1.73,1.19,3.09,2.72,4.09,4.59,1,1.87,1.5,4.1,1.5,6.69v29.43h-11.44v-6.05h-.34c-.7,1.36-1.63,2.56-2.8,3.59-1.17,1.03-2.58,1.84-4.22,2.41-1.64.58-3.54.87-5.69.87ZM80.15,61.56c1.77,0,3.34-.36,4.7-1.07,1.36-.71,2.42-1.67,3.2-2.88.77-1.21,1.16-2.58,1.16-4.12v-4.63c-.38.25-.89.47-1.54.67s-1.38.38-2.19.54-1.62.3-2.43.43-1.55.23-2.21.33c-1.42.21-2.65.54-3.71.99-1.06.45-1.88,1.07-2.46,1.83-.58.77-.88,1.72-.88,2.86,0,1.65.6,2.9,1.8,3.76,1.2.86,2.72,1.29,4.57,1.29Z"}),(0,e.jsx)("path",{d:"M110.56,69.09V25.45h11.69v7.61h.45c.79-2.71,2.12-4.76,3.99-6.15,1.87-1.39,4.02-2.09,6.45-2.09.6,0,1.26.04,1.95.11.7.08,1.31.18,1.84.31v10.74c-.57-.17-1.35-.32-2.35-.45-1-.13-1.92-.2-2.75-.2-1.77,0-3.36.38-4.74,1.15-1.39.77-2.48,1.83-3.28,3.2-.8,1.36-1.2,2.94-1.2,4.72v24.69h-12.06Z"}),(0,e.jsx)("path",{d:"M143.14,69.09V25.45h11.5v7.7h.51c.91-2.56,2.42-4.57,4.53-6.05,2.11-1.48,4.64-2.22,7.59-2.22s5.52.74,7.62,2.23c2.09,1.49,3.49,3.5,4.19,6.04h.45c.89-2.5,2.5-4.5,4.83-6.01,2.33-1.51,5.09-2.26,8.28-2.26,4.06,0,7.36,1.29,9.9,3.88,2.54,2.59,3.81,6.25,3.81,10.98v29.35h-12.03v-26.96c0-2.42-.64-4.24-1.93-5.46-1.28-1.21-2.89-1.82-4.81-1.82-2.19,0-3.9.7-5.12,2.09-1.23,1.39-1.84,3.22-1.84,5.5v26.65h-11.69v-27.22c0-2.14-.61-3.84-1.83-5.11-1.22-1.27-2.82-1.9-4.8-1.9-1.34,0-2.54.34-3.61,1.01-1.07.67-1.91,1.61-2.53,2.81-.62,1.2-.93,2.61-.93,4.22v26.19h-12.06Z"}),(0,e.jsx)("path",{d:"M235.49,69.94c-4.4,0-8.2-.94-11.4-2.83-3.2-1.88-5.67-4.52-7.4-7.9s-2.6-7.31-2.6-11.78.87-8.45,2.6-11.83c1.74-3.38,4.2-6.01,7.4-7.9,3.2-1.88,7-2.83,11.4-2.83s8.2.94,11.4,2.83c3.2,1.88,5.67,4.52,7.4,7.9,1.74,3.38,2.6,7.33,2.6,11.83s-.87,8.39-2.6,11.78-4.2,6.01-7.4,7.9
9c-3.2,1.88-7,2.83-11.4,2.83ZM235.55,60.57c2,0,3.67-.57,5.01-1.72s2.35-2.71,3.04-4.7c.69-1.99,1.03-4.25,1.03-6.79s-.34-4.8-1.03-6.79c-.69-1.99-1.7-3.56-3.04-4.72s-3.01-1.73-5.01-1.73-3.71.58-5.08,1.73-2.4,2.73-3.09,4.72c-.69,1.99-1.03,4.25-1.03,6.79s.34,4.8,1.03,6.79c.69,1.99,1.72,3.56,3.09,4.7s3.06,1.72,5.08,1.72Z"}),(0,e.jsx)("path",{d:"M276.83,43.86v25.23h-12.06V25.45h11.49v7.7h.51c.96-2.54,2.58-4.55,4.84-6.04,2.27-1.49,5.01-2.23,8.24-2.23,3.02,0,5.65.66,7.9,1.99,2.25,1.33,3.99,3.21,5.24,5.67,1.25,2.45,1.87,5.37,1.87,8.76v27.78h-12.06v-25.62c.02-2.67-.66-4.76-2.04-6.26-1.38-1.5-3.27-2.26-5.69-2.26-1.62,0-3.05.35-4.29,1.05-1.24.7-2.2,1.72-2.89,3.05-.69,1.34-1.04,2.94-1.06,4.82Z"}),(0,e.jsx)("path",{d:"M320.4,19.83c-1.79,0-3.33-.6-4.6-1.8-1.27-1.2-1.91-2.65-1.91-4.33s.64-3.1,1.91-4.3c1.27-1.2,2.81-1.8,4.6-1.8s3.33.6,4.6,1.8c1.27,1.2,1.91,2.64,1.91,4.3s-.64,3.13-1.91,4.33c-1.27,1.2-2.81,1.8-4.6,1.8ZM314.34,69.09V25.45h12.06v43.64h-12.06Z"}),(0,e.jsx)("path",{d:"M364.76,85.45v-23.35h-.37c-.57,1.21-1.36,2.41-2.39,3.59-1.03,1.18-2.36,2.16-3.99,2.94s-3.62,1.16-5.96,1.16c-3.3,0-6.29-.86-8.96-2.57s-4.79-4.24-6.34-7.59c-1.56-3.34-2.34-7.45-2.34-12.32s.8-9.16,2.41-12.49,3.74-5.81,6.41-7.47,5.6-2.49,8.79-2.49c2.43,0,4.47.41,6.1,1.24s2.95,1.85,3.96,3.07,1.78,2.42,2.31,3.59h.51v-7.33h11.89v60h-12.03ZM355.87,60.17c1.94,0,3.59-.53,4.94-1.6s2.39-2.57,3.11-4.5,1.09-4.2,1.09-6.79-.36-4.85-1.08-6.76c-.72-1.91-1.76-3.39-3.11-4.43-1.36-1.04-3.01-1.56-4.96-1.56s-3.65.54-5.01,1.62c-1.36,1.08-2.39,2.58-3.09,4.49s-1.05,4.13-1.05,6.65.35,4.78,1.06,6.72c.71,1.94,1.74,3.46,3.09,4.55s3.02,1.63,5,1.63Z"}),(0,e.jsx)("path",{d:"M422.63,37.9l-11.04.68c-.19-.95-.59-1.8-1.22-2.57-.62-.77-1.44-1.38-2.45-1.85s-2.21-.7-3.61-.7c-1.87,0-3.44.39-4.73,1.18-1.28.79-1.93,1.83-1.93,3.14,0,1.04.42,1.92,1.25,2.64.83.72,2.25,1.3,4.27,1.73l7.87,1.59c4.23.87,7.38,2.27,9.46,4.2,2.08,1.93,3.11,4.47,3.11,7.61,0,2.86-.84,5.37-2.51,7.53s-3.95,3.84-6.85,5.04c-2.9,1.2-6.23,1.8-10.01,1.8-5.76,0-10.34-1.21-13.75-3.62-3.41-2.42-5.4-5.71-5.99-9.87l11.86-.62c.36,1.76,1.23,3.1,2.6,4.02,1.38.92,3.14,1.38,5.29,1.38s3.82-.41,5.11-1.24c1.29-.82,1.95-1.89,1.97-3.2-.02-1.1-.48-2-1.39-2.71-.91-.71-2.3-1.25-4.19-1.63l-7.53-1.51c-4.25-.85-7.4-2.33-9.47-4.43-2.07-2.1-3.1-4.78-3.1-8.04,0-2.8.76-5.22,2.28-7.24,1.52-2.03,3.66-3.59,6.43-4.69,2.76-1.1,6.01-1.65,9.72-1.65,5.49,0,9.82,1.16,12.98,3.49,3.16,2.33,5.01,5.5,5.54,9.52Z"})]})}let d={opacity:0,filter:"blur(12px)",y:20},p={opacity:1,filter:"blur(0px)",y:0},m={type:"spring",visualDuration:.4,bounce:.1};t.s(["default",0,function(){return(0,e.jsx)("footer",{className:"border-t border-border-default bg-bg text-fg",children:(0,e.jsx)("div",{className:"w-full px-6 py-12 lg:px-10 lg:py-16",children:(0,e.jsxs)(i.motion.div,{className:"mx-auto max-w-wide space-y-8",initial:d,whileInView:p,viewport:{once:!0,margin:"-50px"},transition:m,children:[(0,e.jsx)(c,{className:"h-7 w-auto text-fg"}),(0,e.jsx)("div",{className:"max-w-md",children:(0,e.jsx)(u,{})}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:[(0,e.jsxs)("p",{className:"text-xs text-fg-muted",children:["© ",new Date().getFullYear()," Harmoniqs, Inc. All rights reserved."]}),(0,e.jsx)(n.default,{href:"/privacy-policy",className:"text-xs text-fg-muted underline underline-offset-4 transition-opacity hover:opacity-60",children:"Privacy policy"})]})]})})})}],60843)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.