PageSourceSearch

https://alchemaize.ai/_next/static/chunks/d65d03e7a7bb3f93.js

js alchemaize.ai collected 2026-10-03 21:15:20 UTC 154,897 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74144,41984,18981,46076,5939,75157,491,33856,29917,31391,93488,32998,54970,33400,60129,t=>{"use strict";let e,i,n,r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(r),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,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,c=/^(?:#[\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&&c.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[r,s,o,a]=n.match(d);return{[t]:parseFloat(r),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},f={...a,transform:t=>Math.round(o(0,255,t))},g={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))+")"},y={test:p("#"),parse:function(t){let e="",i="",n="",r="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),r=t.substring(4,5),e+=e,i+=i,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:r?parseInt(r,16)/255:1}},transform:g.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"),k=v("vh"),T=v("vw"),S={...b,parse:t=>b.parse(t)/100,transform:t=>b.transform(100*t)},P={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))+")"},A={test:t=>g.test(t)||y.test(t)||P.test(t),parse:t=>g.test(t)?g.parse(t):P.test(t)?P.parse(t):y.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?g.transform(t):P.transform(t),getAnimatableNone:t=>{let e=A.parse(t);return e.alpha=0,A.transform(e)}},M=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,E="number",C="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:[]},r=[],s=0,o=e.replace(V,t=>(A.test(t)?(n.color.push(s),r.push(C),i.push(A.parse(t))):t.startsWith("var(")?(n.var.push(s),r.push("var"),i.push(t)):(n.number.push(s),r.push(E),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:n,types:r}}function D(t){return j(t).values}function R(t){let{split:e,types:i}=j(t),n=e.length;return t=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],void 0!==t[s]){let e=i[s];e===E?r+=u(t[s]):e===C?r+=A.transform(t[s]):r+=t[s]}return r}}let L=t=>"number"==typeof t?0:A.test(t)?A.getAnimatableNone(t):t,B={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(d)?.length||0)+(t.match(M)?.length||0)>0},parse:D,createTransformer:R,getAnimatableNone:function(t){let e=D(t);return R(t)(e.map(L))}},F=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(d)||[];if(!n)return t;let r=i.replace(n,""),s=+!!F.has(e);return n!==i&&(s*=100),e+"("+s+r+")"}let N=/\b([a-z-]*)\(.*?\)/gu,O={...B,getAnimatableNone:t=>{let e=t.match(N);return e?e.map(I).join(" "):t}},z={...B,getAnimatableNone:t=>{let e=B.parse(t);return B.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},U={...a,transform:Math.round},W={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,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:U,fillOpacity:l,strokeOpacity:l,numOctaves:U},$={...W,color:A,backgroundColor:A,outlineColor:A,fill:A,stroke:A,borderColor:A,borderTopColor:A,borderRightColor:A,borderBottomColor:A,borderLeftColor:A,filter:O,WebkitFilter:O,mask:z,WebkitMask:z},Y=t=>$[t],X=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:X(),y:X()}),G=()=>({min:0,max:0}),K=()=>({x:G(),y:G()}),q=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",()=>q],41984);let _=new Set(["width","height","top","left","right","bottom",...r]),Z=t=>e=>e.test(t),J=[a,w,b,x,T,k,{test:t=>"auto"===t,parse:t=>t}],Q=t=>J.find(Z(t));var tt,te=t.i(17203);let ti=()=>{},tn=()=>{};te.default;let tr=t=>e=>"string"==typeof e&&e.startsWith(t),ts=tr("--"),to=tr("var(--"),ta=t=>!!to(t)&&tl.test(t.split("/*")[0].trim()),tl=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function th(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,td=t=>180*t/Math.PI,tc=t=>tm(td(Math.atan2(t[1],t[0]))),tp={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:tc,rotateZ:tc,skewX:t=>td(Math.atan(t[1])),skewY:t=>td(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tm=t=>((t%=360)<0&&(t+=360),t),tf=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tg=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),ty={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tf,scaleY:tg,scale:t=>(tf(t)+tg(t))/2,rotateX:t=>tm(td(Math.atan2(t[6],t[5]))),rotateY:t=>tm(td(Math.atan2(-t[2],t[0]))),rotateZ:tc,rotate:tc,skewX:t=>td(Math.atan(t[4])),skewY:t=>td(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tv(t){return+!!t.includes("scale")}function tx(t,e){let i,n;if(!t||"none"===t)return tv(e);let r=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(r)i=ty,n=r;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=tp,n=e}if(!n)return tv(e);let s=i[e],o=n[1].split(",").map(tb);return"function"==typeof s?s(o):o[s]}function tb(t){return parseFloat(t.trim())}let tw=t=>t===a||t===w,tk=new Set(["x","y","z"]),tT=r.filter(t=>!tk.has(t)),tS={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>tx(e,"x"),y:(t,{transform:e})=>tx(e,"y")};tS.translateX=tS.x,tS.translateY=tS.y;let tP=t=>t,tA={},tM=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tE(t,e){let i=!1,n=!0,r={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=tM.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,r=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function h(e){o.has(e)&&(u.schedule(e),t()),l++,e(a)}let u={schedule:(t,e=!1,s=!1)=>{let a=s&&r?i:n;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),o.delete(t)},process:t=>{if(a=t,r){s=!0;return}
1r=!0,[i,n]=[n,i],i.forEach(h),e,l=0,i.clear(),r=!1,s&&(s=!1,u.process(t))}};return u}(s,e?i:void 0),t),{}),{setup:a,read:l,resolveKeyframes:h,preUpdate:u,update:d,preRender:c,render:p,postRender:m}=o,f=()=>{let s=tA.useManualTiming?r.timestamp:performance.now();i=!1,tA.useManualTiming||(r.delta=n?1e3/60:Math.max(Math.min(s-r.timestamp,40),1)),r.timestamp=s,r.isProcessing=!0,a.process(r),l.process(r),h.process(r),u.process(r),d.process(r),c.process(r),p.process(r),m.process(r),r.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tM.reduce((e,s)=>{let a=o[s];return e[s]=(e,s=!1,o=!1)=>(!i&&(i=!0,n=!0,r.isProcessing||t(f)),a.schedule(e,s,o)),e},{}),cancel:t=>{for(let e=0;e<tM.length;e++)o[tM[e]].cancel(t)},state:r,steps:o}}let{schedule:tC,cancel:tV,state:tj,steps:tD}=tE("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tP,!0);t.s(["cancelFrame",()=>tV,"frame",()=>tC,"frameData",()=>tj,"frameSteps",()=>tD],18981);let tR=new Set,tL=!1,tB=!1,tF=!1;function tI(){if(tB){let t=Array.from(tR).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tT.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)})}tB=!1,tL=!1,tR.forEach(t=>t.complete(tF)),tR.clear()}function tN(){tR.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tB=!0)})}class tO{constructor(t,e,i,n,r,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=r,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(tR.add(this),tL||(tL=!0,tC.read(tN),tC.resolveKeyframes(tI))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let r=n?.get(),s=t[t.length-1];if(void 0!==r)t[0]=r;else if(i&&e){let n=i.readValue(e,s);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=s),n&&void 0===r&&n.set(t[0])}for(let e=1;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),tR.delete(this)}cancel(){"scheduled"===this.state&&(tR.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tz=new Set([O,z]);function tU(t,e){let i=Y(t);return tz.has(i)||(i=B),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tW=new Set(["auto","none","0"]);class t$ extends tO{constructor(t,e,i,n,r){super(t,e,i,n,r,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&ta(n=n.trim())){let r=function t(e,i,n=1){tn(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[r,s]=function(t){let e=tu.exec(t);if(!e)return[,];let[,i,n,r]=e;return[`--${i??n}`,r]}(e);if(!r)return;let o=window.getComputedStyle(i).getPropertyValue(r);if(o){let t=o.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return ta(s)?t(s,i,n+1):s}(n,e.current);void 0!==r&&(t[i]=r),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!_.has(i)||2!==t.length)return;let[n,r]=t,s=Q(n),o=Q(r);if(th(n)!==th(r)&&tS[i]){this.needsMeasurement=!0;return}if(s!==o)if(tw(s)&&tw(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tS[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);
1i.length&&function(t,e,i){let n,r=0;for(;r<t.length&&!n;){let e=t[r];"string"==typeof e&&!tW.has(e)&&j(e).values.length&&(n=t[r]),r++}if(n&&i)for(let r of e)t[r]=tU(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=tS[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 r=i.length-1,s=i[r];i[r]=tS[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tY=t=>1e3*t;function tX(t,e){-1===t.indexOf(e)&&t.push(e)}function tH(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class tG{constructor(){this.subscriptions=[]}add(t){return tX(this.subscriptions,t),()=>tH(this.subscriptions,t)}notify(t,e,i){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,i);else for(let r=0;r<n;r++){let n=this.subscriptions[r];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tK(t){let e;return()=>(void 0===e&&(e=t()),e)}let tq={};function t_(t,e){let i=tK(t);return()=>tq[e]??i()}let tZ=t_(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tJ=t=>null!==t;function tQ(t,{repeat:e,repeatType:i="loop"},n,r=1){let s=t.filter(tJ),o=r<0||e&&"loop"!==i&&e%2==1?0:s.length-1;return o&&void 0!==n?n:s[o]}class t0{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 t1={layout:0,mainThread:0,waapi:0},t2=t=>Array.isArray(t)&&"number"==typeof t[0],t3=t_(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t5=(t,e,i=10)=>{let n="",r=Math.max(Math.round(e/i),2);for(let e=0;e<r;e++)n+=Math.round(1e4*t(e/(r-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t4=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t4([0,.65,.55,1]),circOut:t4([.55,0,1,.45]),backIn:t4([.31,.01,.66,-.59]),backOut:t4([.33,1.53,.69,.99])};function t8(t){return"function"==typeof t&&"applyToOptions"in t}class t6 extends t0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:i,keyframes:n,pseudoElement:r,allowFlatten:s=!1,finalKeyframe:o,onComplete:a}=t;this.isPseudoElement=!!r,this.allowFlatten=s,this.options=t,tn("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t8(t)&&t3()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},h){let u={[e]:i};l&&(u.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t3()?t5(e,i):"ease-out":t2(e)?t4(e):Array.isArray(e)?e.map(e=>t(e,i)||t9.easeOut):t9[e]}(a,r);Array.isArray(d)&&(u.easing=d);let c={delay:n,duration:r,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"};h&&(c.pseudoElement=h);let p=t.animate(u,c);return p}(e,i,n,l,r),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){let t=tQ(n,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(t):i.startsWith("--")?e.style.setProperty(i,t):e.style[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){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tY(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:e}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&tZ())?(this.animation.timeline=t,tP):e(this)}}let t7=new Set(["opacity","clipPath","filter","transform"]),{schedule:et}=tE(queueMicrotask,!1);function ee(){e=void 0}let ei={now:()=>(void 0===e&&ei.set(tj.isProcessing||tA.useManualTiming?tj.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(ee)}},en={current:void 0};class er{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=ei.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=ei.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 tG);let i=this.events[t].add(e);return"change"===t?()=>{i(),tC.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 en.current&&en.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=ei.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function es(t,e){return new er(t,e)}t.s(["collectMotionValues",()=>en,"motionValue",()=>es],46076);let eo=[...J,A,B],ea=new WeakMap;function el(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eh(t){return"string"==typeof t||Array.isArray(t)}let eu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ed=["initial",...eu];function ec(t){return el(t.animate)||ed.some(e=>eh(t[e]))}function ep(t){return!!(ec(t)||t.variants)}let em={current:null},ef={current:!1};t.s(["hasReducedMotionListener",()=>ef,"prefersReducedMotion",()=>em],5939);let eg="undefined"!=typeof window;function ey(){if(ef.current=!0,eg)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>em.current=t.matches;t.addEventListener("change",e),e()}else em.current=!1}function ev(t){let e=[{},{}];
1return t?.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function ex(t,e,i,n){if("function"==typeof e){let[r,s]=ev(n);e=e(void 0!==i?i:t.custom,r,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[r,s]=ev(n);e=e(void 0!==i?i:t.custom,r,s)}return e}t.s(["initPrefersReducedMotion",()=>ey],75157);let eb=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],ew={};class ek{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:n,skipAnimations:r,blockInitialAnimation:s,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=tO,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=ei.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,tC.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=r,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=ec(e),this.isVariantNode=ep(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(const t in d){const e=d[t];void 0!==l[t]&&q(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,ea.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:(ef.current||ey(),this.shouldReduceMotion=em.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(),tV(this.notifyUpdate),tV(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&&t7.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:r,ease:s,duration:o}=e.accelerate,a=new t6({element:this.current,name:t,keyframes:n,times:r,ease:s,duration:tY(o)}),l=i(a);this.valueSubscriptions.set(t,()=>{l(),a.cancel()});return}let n=s.has(t);n&&this.onBindTransform&&this.onBindTransform();let r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tC.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{r(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in ew){let e=ew[t];
1if(!e)continue;let{isEnabled:i,Feature:n}=e;if(!this.features[t]&&n&&i(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):K()}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<eb.length;e++){let i=eb[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 r=e[n],s=i[n];if(q(r))t.addValue(n,r);else if(q(s))t.addValue(n,es(r,{owner:t}));else if(s!==r)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(r):e.hasAnimated||e.set(r)}else{let e=t.getStaticValue(n);t.addValue(n,es(void 0!==e?e:r,{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=es(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,r;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(r=i,/^0[^.\s]+$/u.test(r))))i=parseFloat(i);else{let n;n=i,!eo.find(Z(n))&&B.test(e)&&(i=tU(t,e))}this.setBaseTarget(t,q(i)?i.get():i)}return q(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=ex(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||q(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 tG),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){et.render(this.render)}}class eT extends ek{constructor(){super(...arguments),this.KeyframeResolver=t$}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;q(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}function eS(t){return t.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}let eP=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eM=r.length;function eE(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(s.has(t)){l=!0;continue}if(ts(t)){o[t]=i;continue}{let e=eP(i,W[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="",s=!0;for(let o=0;o<eM;o++){let a=r[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,W[a]);if(!h){s=!1;let e=eA[a]||a;n+=`${e}(${t}) `}i&&(e[a]=t)}}return n=n.trim(),i?n=i(e,s?"":n):s&&(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 eC={offset:"stroke-dashoffset",array:"stroke-dasharray"},eV={offset:"strokeDashoffset",array:"strokeDasharray"},ej=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eD(t,{attrX:e,attrY:i,attrScale:n,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,h,u){if(eE(t,a,h),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:c}=t;for(let t of(d.transform&&(c.transform=d.transform,delete d.transform),(c.transform||d.transformOrigin)&&(c.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),c.transform&&(c.transformBox=u?.transformBox??"fill-box",delete d.transformBox),ej))void 0!==d[t]&&(c[t]=d[t],delete d[t]);void 0!==e&&(d.x=e),void 0!==i&&(d.y=i),void 0!==n&&(d.scale=n),void 0!==r&&function(t,e,i=1,n=0,r=!0){t.pathLength=1;let s=r?eC:eV;t[s.offset]=`${-n}`,t[s.array]=`${e} ${i}`}(d,r,s,o,!1)}let eR=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"]),eL=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eB(t,{style:e,vars:i},n,r){let s,o=t.style;for(s in e)o[s]=e[s];for(s in r?.applyProjectionStyles(o,n),i)o.setProperty(s,i[s])}function eF(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eI={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!w.test(t))return t;else t=parseFloat(t);let i=eF(t,e.target.x),n=eF(t,e.target.y);return`${i}% ${n}%`}},eN=(t,e,i)=>t+(e-t)*i,eO={borderRadius:{...eI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eI,borderTopRightRadius:eI,borderBottomLeftRadius:eI,borderBottomRightRadius:eI,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=B.parse(t);if(n.length>5)return t;let r=B.createTransformer(t),s=+("number"!=typeof n[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;n[0+s]/=o,n[1+s]/=a;let l=eN(o,a,.5);return"number"==typeof n[2+s]&&(n[2+s]/=l),"number"==typeof n[3+s]&&(n[3+s]/=l),r(n)}}};function ez(t,{layout:e,layoutId:i}){return s.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eO[t]||"opacity"===t)}function eU(t,e,i){let n=t.style,r=e?.style,s={};if(!n)return s;for(let e in n)(q(n[e])||r&&q(r[e])||ez(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(s[e]=n[e]);return s}function eW(t,e,i){let n=eU(t,e,i);for(let i in t)(q(t[i])||q(e[i]))&&(n[-1!==r.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return n}class e$ extends eT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=K}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(s.has(e)){let t=Y(e);return t&&t.default||0}return e=eR.has(e)?e:eS(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eW(t,e,i)}build(t,e,i){eD(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eB(t,e,void 0,n),e.attrs)t.setAttribute(eR.has(i)?i:eS(i),e.attrs[i])}mount(t){this.isSVGTag=eL(t.tagName),super.mount(t)}}function eY({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eX(t){return void 0===t||1===t}function eH({scale:t,scaleX:e,scaleY:i}){return!eX(t)||!eX(e)||!eX(i)}function eG(t){return eH(t)||eK(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function eK(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function eq(t,e,i,n,r){return void 0!==r&&(t=n+r*(t-n)),n+i*(t-n)+e}function e_(t,e=0,i=1,n,r){t.min=eq(t.min,e,i,n,r),t.max=eq(t.max,e,i,n,r)}function eZ(t,{x:e,y:i}){e_(t.x,e.translate,e.scale,e.originPoint),e_(t.y,i.translate,i.scale,i.originPoint)}function eJ(t,e){t.min=t.min+e,t.max=t.max+e}function eQ(t,e,i,n,r=.5){let s=eN(t.min,t.max,r);e_(t,e,i,s,n)}function e0(t,e){eQ(t.x,e.x,e.scaleX,e.scale,e.originX),eQ(t.y,e.y,e.scaleY,e.scale,e.originY)}function e1(t,e){return eY(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 eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eB}readValueFromInstance(t,e){if(s.has(e))return this.projection?.isProjecting?tv(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return tx(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(ts(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){eE(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return eU(t,e,i)}}var e3=t.i(52888);let e5=["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 e4(t){if("string"!=typeof t||t.includes("-"));else if(e5.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e9=t.i(24829);let e8=(0,e3.createContext)({});t.s(["LayoutGroupContext",()=>e8],491);let e6=(0,e3.createContext)({strict:!1}),e7=(0,e3.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>e7],33856);let it=(0,e3.createContext)({});function ie(t){return Array.isArray(t)?t.join(" "):t}let ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ir(t,e,i){for(let n in e)q(e[n])||ez(n,i)||(t[n]=e[n])}let is=()=>({...ii(),attrs:{}}),io=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ia(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||io.has(t)}let il=t=>!ia(t);try{tt=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof tt&&(il=t=>t.startsWith("on")?!ia(t):tt(t))}catch{}function ih(t){return q(t)?t.get():t}let iu=(0,e3.createContext)(null);function id(t){let e=(0,e3.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["PresenceContext",()=>iu],29917),t.s(["useConstant",()=>id],31391);let ic=t=>(e,i)=>{let n=(0,e3.useContext)(it),r=(0,e3.useContext)(iu),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,r){return{latestValues:function(t,e,i,n){let r={},s=n(t,{});for(let t in s)r[t]=ih(s[t]);let{initial:o,animate:a}=t,l=ec(t),h=ep(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,d=(u=u||!1===o)?a:o;if(d&&"boolean"!=typeof d&&!el(d)){let e=Array.isArray(d)?d:[d];for(let i=0;i<e.length;i++){let n=ex(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&&(r[t]=e)}for(let e in t)r[e]=t[e]}}}return r}(i,n,r,t),renderState:e()}})(t,e,n,r);return i?s():id(s)},ip=ic({scrapeMotionValuesFromProps:eU,createRenderState:ii}),im=ic({scrapeMotionValuesFromProps:eW,createRenderState:is}),ig="undefined"!=typeof window,iy={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"]},iv=!1;function ix(){return!function(){if(iv)return;let t={};for(let e in iy)t[e]={isEnabled:t=>iy[e].some(e=>!!t[e])};ew=t,iv=!0}(),ew}let ib=Symbol.for("motionComponentSymbol"),iw="data-"+eS("framerAppearId"),ik=(0,e3.createContext)({});function iT(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iS=ig?e3.useLayoutEffect:e3.useEffect;function iP(t,{forwardMotionProps:e=!1,type:i}={},n,r){n&&function(t){let e=ix();for(let i in t)e[i]={...e[i],...t[i]};ew=e}(n);let s=i?"svg"===i:e4(t),o=s?im:ip;function a(i,n){var a;let l,h,u,d={...(0,e3.useContext)(e7),...i,layoutId:function({layoutId:t}){let e=(0,e3.useContext)(e8).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:c}=d,p=function(t){let{initial:e,animate:i}=function(t,e){if(ec(t)){let{initial:e,animate:i}=t;return{initial:!1===e||eh(e)?e:void 0,animate:eh(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,c);if(!c&&ig){(0,e3.useContext)(e6).strict;let e=function(t){let{drag:e,layout:i}=ix();if(!e&&!i)return{};let n={...e,...i};return{MeasureLayout:e?.isEnabled(t)||i?.isEnabled(t)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(d);l=e.MeasureLayout,p.visualElement=function(t,e,i,n,r,s){let{visualElement:o}=(0,e3.useContext)(it),a=(0,e3.useContext)(e6),l=(0,e3.useContext)(iu),h=(0,e3.useContext)(e7),u=h.reducedMotion,d=h.skipAnimations,c=(0,e3.useRef)(null),p=(0,e3.useRef)(!1);n=n||a.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:o,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:s}),p.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let m=c.current,f=(0,e3.useContext)(ik);m&&!m.projection&&r&&("html"===m.type||"svg"===m.type)&&function(t,e,i,n){let{layoutId:r,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:h,layoutCrossfade:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:r,layout:s,alwaysMeasureLayout:!!o||a&&iT(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:h})}(c.current,i,r,f);let g=(0,e3.useRef)(!1);(0,e3.useInsertionEffect)(()=>{m&&g.current&&m.update(i,l)});let y=i[iw],v=(0,e3.useRef)(!!y&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iS(()=>{p.current=!0,m&&(g.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?.(y)}),v.current=!1),m.enteringChildren=void 0)}),m}(t,m,d,r,e.ProjectionNode,s)}return(0,e9.jsxs)(it.Provider,{value:p,children:[l&&p.visualElement?(0,e9.jsx)(l,{visualElement:p.visualElement,...d}):null,function(t,e,i,{latestValues:n},r,s=!1,o){let a=(o??e4(t)?function(t,e,i,n){let r=(0,e3.useMemo)(()=>{let i=is();return eD(i,e,eL(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ir(e,t.style,t),r.style={...e,...r.style}}return r}:function(t,e){let i,n,r={},s=(i=t.style||{},ir(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e3.useMemo)(()=>{let i=ii();return eE(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=s,r})(e,n,r,t),l=function(t,e,i){let n={};for(let r in t)("values"!==r||"object"!=typeof t.values)&&(il(r)||!0===i&&ia(r)||!e&&!ia(r)||t.draggable&&r.startsWith("onDrag"))&&(n[r]=t[r]);return n}(e,"string"==typeof t,s),h=t!==e3.Fragment?{...l,...a,ref:i}
1:{},{children:u}=e,d=(0,e3.useMemo)(()=>q(u)?u.get():u,[u]);return(0,e3.createElement)(t,{...h,children:d})}(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,c,e,s)]})}a.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e3.forwardRef)(a);return l[ib]=t,l}t.s(["useIsomorphicLayoutEffect",()=>iS],93488);class iA{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iM(t,e,i){let n=t.getProps();return ex(n,e,void 0!==i?i:n.custom,t)}function iE(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iC(t,e){let i=t?.[e]??t?.default??t;return i!==t?iE(i,t):i}let iV=t=>Array.isArray(t);function ij(t,e){let i=t.getValue("willChange");if(q(i)&&i.add)return i.add(e);if(!i&&tA.WillChange){let i=new tA.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iD=(t,e)=>i=>e(t(i)),iR=(...t)=>t.reduce(iD);function iL(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 iB(t,e){return i=>i>0?e:t}let iF=(t,e,i)=>{let n=t*t,r=i*(e*e-n)+n;return r<0?0:Math.sqrt(r)},iI=[y,g,P];function iN(t){let e=iI.find(e=>e.test(t));if(ti(!!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===P&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let r=0,s=0,o=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,a=2*i-n;r=iL(a,n,t+1/3),s=iL(a,n,t),o=iL(a,n,t-1/3)}else r=s=o=i;return{red:Math.round(255*r),green:Math.round(255*s),blue:Math.round(255*o),alpha:n}}(i)),i}let iO=(t,e)=>{let i=iN(t),n=iN(e);if(!i||!n)return iB(t,e);let r={...i};return t=>(r.red=iF(i.red,n.red,t),r.green=iF(i.green,n.green,t),r.blue=iF(i.blue,n.blue,t),r.alpha=eN(i.alpha,n.alpha,t),g.transform(r))},iz=new Set(["none","hidden"]);function iU(t,e){return i=>eN(t,e,i)}function iW(t){return"number"==typeof t?iU:"string"==typeof t?ta(t)?iB:A.test(t)?iO:iX:Array.isArray(t)?i$:"object"==typeof t?A.test(t)?iO:iY:iB}function i$(t,e){let i=[...t],n=i.length,r=t.map((t,i)=>iW(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=r[e](t);return i}}function iY(t,e){let i={...t,...e},n={};for(let r in i)void 0!==t[r]&&void 0!==e[r]&&(n[r]=iW(t[r])(t[r],e[r]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iX=(t,e)=>{let i=B.createTransformer(e),n=j(t),r=j(e);if(!(n.indexes.var.length===r.indexes.var.length&&n.indexes.color.length===r.indexes.color.length&&n.indexes.number.length>=r.indexes.number.length))return ti(!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"),iB(t,e);if(iz.has(t)&&!r.values.length||iz.has(e)&&!n.values.length)return iz.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iR(i$(function(t,e){let i=[],n={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){let s=e.types[r],o=t.indexes[s][n[s]],a=t.values[o]??0;i[r]=a,n[s]++}return i}(n,r),r.values),i)};function iH(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eN(t,e,i):iW(t)(t,e)}let iG=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tC.update(e,t),stop:()=>tV(e),now:()=>tj.isProcessing?tj.timestamp:ei.now()}};function iK(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}function iq(t,e,i){var n,r;let s=Math.max(e-5,0);return n=i-t(s),(r=e-s)?1e3/r*n:0}let i_=.01,iZ=2,iJ=.005,iQ=.5;function i0(t,e){return t*Math.sqrt(1-e*e)}let i1=["duration","bounce"],i2=["stiffness","damping","mass"];function i3(t,e){return e.some(e=>void 0!==t[e])}function i5(t=.3,e=.3){let i,n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:r,restDelta:s}=n,a=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],h={done:!1,value:a},{stiffness:u,damping:d,mass:c,duration:p,velocity:m,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i3(t,i2)&&i3(t,i1))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,r=2*o(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:r}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let r,s;ti(t<=tY(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?(r=e=>{let n=e*a,r=n*t;return .001-(n-i)/i0(e,a)*Math.exp(-r)},s=e=>{let n=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-n),l=i0(Math.pow(e,2),a);return(n*i+i-s)*o*(-r(e)+.001>0?-1:1)/l}):(r=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(r,s,5/t);if(t=tY(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}({...n,velocity:-((n.velocity||0)/1e3)}),g=m||0,y=d/(2*Math.sqrt(u*c)),v=l-a,x=Math.sqrt(u/c)/1e3,b=5>Math.abs(v);if(r||(r=b?i_:iZ),s||(s=b?iJ:iQ),y<1){let t=i0(x,y);i=e=>l-Math.exp(-y*x*e)*((g+y*x*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===y)i=t=>l-Math.exp(-x*t)*(v+(g+x*v)*t);else{let t=x*Math.sqrt(y*y-1);i=e=>{let i=Math.exp(-y*x*e),n=Math.min(t*e,300);return l-i*((g+y*x*v)*Math.sinh(n)+t*v*Math.cosh(n))/t}}let w={calculatedDuration:f&&p||null,next:t=>{let e=i(t);if(f)h.done=t>=p;else{let n=0===t?g:0;y<1&&(n=0===t?tY(g):iq(i,t,e));let o=Math.abs(l-e)<=s;h.done=Math.abs(n)<=r&&o}return h.value=h.done?l:e,h},toString:()=>{let t=Math.min(iK(w),2e4),e=t5(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function i4({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:h=.5,restSpeed:u}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),b=t=>{let e=v(t),i=x(t);m.done=Math.abs(e)<=h,m.value=m.done?y:i},w=t=>{let e;if(e=m.value,void 0!==a&&e<a||void 0!==l&&e>l){var i;d=t,c=i5({keyframes:[m.value,(i=m.value,void 0===a?l:void 0===l||Math.abs(a-i)<Math.abs(l-i)?a:l)],velocity:iq(x,t,m.value),damping:r,stiffness:s,restDelta:h,restSpeed:u})}};return w(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,b(t),w(t)),void 0!==d&&t>=d)?c.next(t-d):(e||b(t),m)}}}i5.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),r=Math.min(iK(n),2e4);return{type:"keyframes",ease:t=>n.next(r*t).value/e,duration:r/1e3}}(t,100,i5);return t.ease=e.ease,t.duration=tY(e.duration),t.type="keyframes",t};let i9=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i8(t,e,i,n){return t===e&&i===n?tP:r=>0===r||1===r?r:i9(function(t,e,i,n,r){let s,o,a=0;do(s=i9(o=e+(i-e)/2,n,r)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12)return o}(r,0,1,t,i),e,n)}let i6=i8(.42,0,1,1),i7=i8(0,0,.58,1),nt=i8(.42,0,.58,1),ne=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ni=t=>e=>1-t(1-e),nn=i8(.33,1.53,.69,.99),nr=ni(nn),ns=ne(nr),no=t=>(t*=2)<1?.5*nr(t):.5*(2-Math.pow(2,-10*(t-1))),na=t=>1-Math.sin(Math.acos(t)),nl=ni(na),nh=ne(na),nu={linear:tP,easeIn:i6,easeInOut:nt,easeOut:i7,circIn:na,circInOut:nh,circOut:nl,backIn:nr,backInOut:ns,backOut:nn,anticipate:no},nd=t=>{if(t2(t)){tn(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,r]=t;return i8(e,i,n,r)}return"string"==typeof t?(tn(void 0!==nu[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nu[t]):t},nc=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function np(t,e,{clamp:i=!0,ease:n,mixer:r}={}){let s=t.length;if(tn(s===e.length,"Both input and output ranges must be the same length","range-length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],r=i||tA.mix||iH,s=t.length-1;for(let i=0;i<s;i++){let s=r(t[i],t[i+1]);e&&(s=iR(Array.isArray(e)?e[i]||tP:e,s)),n.push(s)}return n}(e,n,r),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 r=nc(t[n],t[n+1],i);return l[n](r)};return i?e=>u(o(t[0],t[s-1],e)):u}function nm({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var r;let s,o=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nd):nd(n),a={done:!1,value:e[0]},l=np((r=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;n++){let r=nc(0,e,n);t.push(eN(i,1,r))}}(s=[0],e.length-1),s),r.map(e=>e*t)),e,{ease:Array.isArray(o)?o:e.map(()=>o||nt).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}t.s(["interpolate",()=>np],32998);let nf={decay:i4,inertia:i4,tween:nm,keyframes:nm,spring:i5};function ng(t){"string"==typeof t.type&&(t.type=nf[t.type])}let ny=t=>t/100;class nv extends t0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==ei.now()&&this.tick(ei.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},t1.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}initAnimation(){let{options:t}=this;
1ng(t);let{type:e=nm,repeat:i=0,repeatDelay:n=0,repeatType:r,velocity:s=0}=t,{keyframes:o}=t,a=e||nm;a!==nm&&"number"!=typeof o[0]&&(this.mixKeyframes=iR(ny,iH(o[0],o[1])),o=[0,100]);let l=a({...t,keyframes:o});"mirror"===r&&(this.mirroredGenerator=a({...t,keyframes:[...o].reverse(),velocity:-s})),null===l.calculatedDuration&&(l.calculatedDuration=iK(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{generator:i,totalDuration:n,mixKeyframes:r,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(null===this.startTime)return i.next(0);let{delay:h=0,keyframes:u,repeat:d,repeatType:c,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let y=this.currentTime-h*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?y<0:y>n;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let x=this.currentTime,b=i;if(d){let t=Math.min(this.currentTime,n)/a,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,d+1))%2&&("reverse"===c?(i=1-i,p&&(i-=p/a)):"mirror"===c&&(b=s)),x=o(0,1,i)*a}let w=v?{done:!1,value:u[0]}:b.next(x);r&&(w.value=r(w.value));let{done:k}=w;v||null===l||(k=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return T&&m!==i4&&(w.value=tQ(u,this.options,g,this.speed)),f&&f(w.value),T&&this.finish(),w}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=tY(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(ei.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iG,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(ei.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,t1.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}t.s(["JSAnimation",()=>nv],54970);let nx={anticipate:no,backInOut:ns,circInOut:nh};class nb extends t6{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nx&&(t.ease=nx[t.ease])}(t),ng(t),super(t),void 0!==t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:r,...s}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let a=new nv({...s,autoplay:!1}),l=Math.max(10,ei.now()-this.startTime),h=o(0,10,l-10);e.setWithVelocity(a.sample(Math.max(0,l-h)).value,a.sample(l).value,h),a.stop()}}let nw=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(B.test(t)||"0"===t)&&!t.startsWith("url("));function nk(t){t.duration=0,t.type="keyframes"}let nT=new Set(["opacity","clipPath","filter","transform"]),nS=tK(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));
1class nP extends t0{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:s="loop",keyframes:o,name:a,motionValue:l,element:h,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ei.now();const d={autoplay:t,delay:e,type:i,repeat:n,repeatDelay:r,repeatType:s,name:a,motionValue:l,element:h,...u},c=h?.KeyframeResolver||tO;this.keyframeResolver=new c(o,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),a,l,h),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){this.keyframeResolver=void 0;let{name:r,type:s,velocity:o,delay:a,isHandoff:l,onUpdate:h}=i;this.resolvedAt=ei.now(),!function(t,e,i,n){let r=t[0];if(null===r)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=nw(r,e),a=nw(s,e);return ti(o===a,`You are trying to animate ${e} from "${r}" to "${s}". "${o?s:r}" is not an animatable value.`,"value-not-animatable"),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||t8(i))&&n)}(t,r,s,o)&&((tA.instantAnimations||!a)&&h?.(tQ(t,i,e)),t[0]=t[t.length-1],nk(i),i.repeat=0);let u={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},d=!l&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:r,damping:s,type:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return nS()&&i&&nT.has(i)&&("transform"!==i||!l)&&!a&&!n&&"mirror"!==r&&0!==s&&"inertia"!==o}(u),c=u.motionValue?.owner?.current,p=d?new nb({...u,element:c}):new nv(u);p.finished.then(()=>{this.notifyFinished()}).catch(tP),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tF=!0,tN(),tI(),tF=!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 nA={type:"spring",stiffness:500,damping:25,restSpeed:10},nM={type:"keyframes",duration:.8},nE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nC=t=>null!==t,nV=(t,e,i,n={},r,o)=>a=>{let l=iC(n,t)||{},h=l.delay||n.delay||0,{elapsed:u=0}=n;u-=tY(h);let d={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:r};!function({when:t,delay:e,delayChildren:i,staggerChildren:n,staggerDirection:r,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:h,...u}){return!!Object.keys(u).length}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?nM:s.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nA:nE)(t,d)),d.duration&&(d.duration=tY(d.duration)),d.repeatDelay&&(d.repeatDelay=tY(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(nk(d),0===d.delay&&(c=!0)),(tA.instantAnimations||tA.skipAnimations||r?.shouldSkipAnimations)&&(c=!0,nk(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!o&&void 0!==e.get()){let t=function(t,{repeat:e,repeatType:i="loop"},n){let r=t.filter(nC),s=e&&"loop"!==i&&e%2==1?0:r.length-1;return r[s]}(d.keyframes,l);if(void 0!==t)return void tC.update(()=>{d.onUpdate(t),d.onComplete()})}
1return l.isSync?new nv(d):new nP(d)};function nj(t,e,{delay:i=0,transitionOverride:n,type:r}={}){let{transition:s,transitionEnd:o,...a}=e,l=t.getDefaultTransition();s=s?iE(s,l):l;let h=s?.reduceMotion;n&&(s=n);let u=[],d=r&&t.animationState&&t.animationState.getState()[r];for(let e in a){let n=t.getValue(e,t.latestValues[e]??null),r=a[e];if(void 0===r||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let o={delay:i,...iC(s||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating&&!Array.isArray(r)&&r===l&&!o.velocity)continue;let c=!1;if(window.MotionHandoffAnimation){let i=t.props[iw];if(i){let t=window.MotionHandoffAnimation(i,e,tC);null!==t&&(o.startTime=t,c=!0)}}ij(t,e);let p=h??t.shouldReduceMotion;n.start(nV(e,n,r,p&&_.has(e)?{type:!1}:o,t,c));let m=n.animation;m&&u.push(m)}if(o){let e=()=>tC.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:n={},...r}=iM(t,e)||{};for(let e in r={...r,...i}){var s;let i=iV(s=r[e])?s[s.length-1]||0:s;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,es(i))}}(t,o)});u.length?Promise.all(u).then(e):e()}return u}function nD(t,e,i,n=0,r=1){let s=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),o=t.size,a=(o-1)*n;return"function"==typeof i?i(s,o):1===r?s*n:a-s*n}function nR(t,e,i={}){let n=iM(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:r=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(r=i.transitionOverride);let s=n?()=>Promise.all(nj(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:s=0,staggerChildren:o,staggerDirection:a}=r;return function(t,e,i=0,n=0,r=0,s=1,o){let a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nR(l,e,{...o,delay:i+("function"==typeof n?0:n)+nD(t.variantChildren,l,n,r,s)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,n,s,o,a,i)}:()=>Promise.resolve(),{when:a}=r;if(!a)return Promise.all([s(),o(i.delay)]);{let[t,e]="beforeChildren"===a?[s,o]:[o,s];return t().then(()=>e())}}let nL=ed.length;function nB(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 nF=[...eu].reverse(),nI=eu.length;function nN(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nO(){return{animate:nN(!0),whileInView:nN(),whileHover:nN(),whileTap:nN(),whileDrag:nN(),whileFocus:nN(),exit:nN()}}let nz=0;function nU(t){return[t("x"),t("y")]}let nW=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),n$=new Set(["INPUT","SELECT","TEXTAREA"]);function nY(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nX={x:!1,y:!1};function nH(t){return t.max-t.min}function nG(t,e,i,n=.5){t.origin=n,t.originPoint=eN(e.min,e.max,t.origin),t.scale=nH(i)/nH(e),t.translate=eN(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 nK(t,e,i,n){nG(t.x,e.x,i.x,n?n.originX:void 0),nG(t.y,e.y,i.y,n?n.originY:void 0)}function nq(t,e,i){t.min=i.min+e.min,t.max=t.min+nH(e)}function n_(t,e,i){t.min=e.min-i.min,t.max=t.min+nH(e)}function nZ(t,e,i){n_(t.x,e.x,i.x),n_(t.y,e.y,i.y)}function nJ(t){return"object"==typeof t&&null!==t}function nQ(t){return nJ(t)&&"ownerSVGElement"in t}function n0(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 r=i?.[t]??n.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t).filter(t=>null!=t)}let n1=new WeakMap,n2=(t,e,i)=>(n,r)=>r&&r[0]?r[0][t+"Size"]:nQ(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n3=n2("inline","width","offsetWidth"),n5=n2("block","height","offsetHeight");function n4({target:t,borderBoxSize:e}){n1.get(t)?.forEach(i=>{i(t,{get width(){return n3(t,e)},get height(){return n5(t,e)}})})}function n9(t){t.forEach(n4)}let n8=new Set;function n6(t,e){let r;return"function"==typeof t?(n8.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};
1n8.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n8.delete(t),n8.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(i||"undefined"!=typeof ResizeObserver&&(i=new ResizeObserver(n9)),(r=n0(t)).forEach(t=>{let n=n1.get(t);n||(n=new Set,n1.set(t,n)),n.add(e),i?.observe(t)}),()=>{r.forEach(t=>{let n=n1.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}let n7=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function rt(t){return{point:{x:t.pageX,y:t.pageY}}}function re(t,e,i,n){return nY(t,e,t=>n7(t)&&i(t,rt(t)),n)}let ri=({current:t})=>t?t.ownerDocument.defaultView:null,rn=(t,e)=>Math.abs(t-e),rr=new Set(["auto","scroll"]);class rs{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:r=!1,distanceThreshold:s=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=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;let i=rl(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,r=(t=i.offset,e={x:0,y:0},Math.sqrt(rn(t.x,e.x)**2+rn(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!r)return;let{point:s}=i,{timestamp:o}=tj;this.history.push({...s,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.lastMoveEventInfo=ro(e,this.transformPagePoint),tC.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:r}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rl("pointercancel"===t.type?this.lastMoveEventInfo:ro(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),n&&n(t,s)},!n7(t))return;this.dragSnapToOrigin=r,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=s,this.contextWindow=n||window;const a=ro(rt(t),this.transformPagePoint),{point:l}=a,{timestamp:h}=tj;this.history=[{...l,timestamp:h}];const{onSessionStart:u}=e;u&&u(t,rl(a,this.history)),this.removeListeners=iR(re(this.contextWindow,"pointermove",this.handlePointerMove),re(this.contextWindow,"pointerup",this.handlePointerUp),re(this.contextWindow,"pointercancel",this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(rr.has(t.overflowX)||rr.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},r={x:n.x-e.x,y:n.y-e.y};(0!==r.x||0!==r.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(t,n),tC.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tV(this.updatePoint)}}function ro(t,e){return e?{point:e(t.point)}:t}function ra(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rl({point:t},e){return{point:t,delta:ra(t,rh(e)),offset:ra(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,n=null,r=rh(t);for(;i>=0&&(n=t[i],!(r.timestamp-n.timestamp>tY(.1)));)i--;if(!n)return{x:0,y:0};n===t[0]&&t.length>2&&r.timestamp-n.timestamp>2*tY(.1)&&(n=t[1]);let s=(r.timestamp-n.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(r.x-n.x)/s,y:(r.y-n.y)/s}
1;return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function rh(t){return t[t.length-1]}function ru(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 rd(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 rc(t,e,i){return{min:rp(t,e),max:rp(t,i)}}function rp(t,e){return"number"==typeof t?t:t[e]||0}let rm=new WeakMap;class rf{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=K(),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 r=t=>{e&&this.snapToCursor(rt(t).point),this.stopAnimation()},s=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:r}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nX[t])return null;else return nX[t]=!0,()=>{nX[t]=!1};return nX.x||nX.y?null:(nX.x=nX.y=!0,()=>{nX.x=nX.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),nU(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=nH(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),r&&tC.update(()=>r(t,e),!1,!0),ij(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},o=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:r,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&tC.update(()=>s(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 rs(t,{onSessionStart:r,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,distanceThreshold:i,contextWindow:ri(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!n||!i)return;let{velocity:s}=n;this.startAnimation(s);let{onDragEnd:o}=this.getProps();o&&tC.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||!ry(t,n,this.currentDirection))return;let r=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eN(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eN(i,t,n.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),r.set(s)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iT(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:r}){return{x:ru(t.x,i,r),y:ru(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:rc(t,"left","right"),y:rc(t,"top","bottom")}}(e),n!==this.constraints&&!iT(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&nU(t=>{var e,n;let r;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],r={},void 0!==n.min&&(r.min=n.min-e.min),void 0!==n.max&&(r.max=n.max-e.min),r))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iT(e))return!1;let n=e.current;tn(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;
1let s=function(t,e,i){let n=e1(t,i),{scroll:r}=e;return r&&(eJ(n.x,r.offset.x),eJ(n.y,r.offset.y)),n}(n,r.root,this.visualElement.getTransformPagePoint()),o=(t=r.layout.layoutBox,{x:rd(t.x,s.x),y:rd(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=eY(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:r,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(nU(o=>{if(!ry(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(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,...r,...l};return this.startAxisValueAnimation(o,h)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return ij(this.visualElement,t),i.start(nV(t,i,0,e,this.visualElement,!1))}stopAnimation(){nU(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){nU(e=>{let{drag:i}=this.getProps();if(!ry(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,r=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:s}=n.layout.layoutBox[e],o=r.get()||0;r.set(t[e]-eN(i,s,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iT(e)||!i||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nU(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,r;let s,a,l,h=e.get();n[t]=(i={min:h,max:h},r=this.constraints[t],s=.5,a=nH(i),(l=nH(r))>a?s=nc(r.min,r.max-a,i.min):a>l&&(s=nc(i.min,i.max-l,r.min)),o(0,1,s))}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),nU(e=>{if(!ry(e,t,null))return;let i=this.getAxisMotionValue(e),{min:r,max:s}=this.constraints[e];i.set(eN(r,s,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;rm.set(this.visualElement,this);let e=this.visualElement.current,i=re(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}=this.getProps(),r=t.target,s=r!==e&&(n$.has(r.tagName)||!0===r.isContentEditable);i&&n&&!s&&this.start(t)}),n=()=>{var i,n,r;let s,o,{dragConstraints:a}=this.getProps();iT(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=a.current,s=n6(i,rg(r=()=>this.scalePositionWithinConstraints())),o=n6(n,rg(r)),t=()=>{s(),o()}))},{projection:r}=this.visualElement,s=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),tC.read(n);let o=nY(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nU(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(),s(),a&&a(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:r=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:r,dragElastic:s,dragMomentum:o}}}function rg(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function ry(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let rv=t=>(e,i)=>{t&&tC.update(()=>t(e,i),!1,!0)},rx={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var rb=e3;function rw(t=!0){let e=(0,e3.useContext)(iu);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:r}=e,s=(0,e3.useId)();(0,e3.useEffect)(()=>{if(t)return r(s)},[t]);let o=(0,e3.useCallback)(()=>t&&n&&n(s),[s,n,t]);return!i&&n?[!1,o]:[!0]}t.s(["usePresence",()=>rw],33400);let rk=!1;class rT extends rb.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:r}=t;r&&(e.group&&e.group.add(r),i&&i.register&&n&&i.register(r),rk&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rx.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:r}=this.props,{projection:s}=i;return s&&(s.isPresent=r,t.layoutDependency!==e&&s.setOptions({...s.options,layoutDependency:e}),rk=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==r?s.willUpdate():this.safeToRemove(),t.isPresent!==r&&(r?s.promote():s.relegate()||tC.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),et.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;rk=!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}}function rS(t){let[e,i]=rw(),n=(0,rb.useContext)(e8);return(0,e9.jsx)(rT,{...t,layoutGroup:n,switchLayoutGroup:(0,rb.useContext)(ik),isPresent:e,safeToRemove:i})}let rP=["TopLeft","TopRight","BottomLeft","BottomRight"],rA=rP.length,rM=t=>"string"==typeof t?parseFloat(t):t,rE=t=>"number"==typeof t||w.test(t);function rC(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rV=rD(0,.5,nl),rj=rD(.5,.95,tP);function rD(t,e,i){return n=>n<t?0:n>e?1:i(nc(t,e,n))}function rR(t,e){t.min=e.min,t.max=e.max}function rL(t,e){rR(t.x,e.x),rR(t.y,e.y)}function rB(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}
1function rF(t,e,i,n,r){return t-=e,t=n+1/i*(t-n),void 0!==r&&(t=n+1/r*(t-n)),t}function rI(t,e,[i,n,r],s,o){!function(t,e=0,i=1,n=.5,r,s=t,o=t){if(b.test(e)&&(e=parseFloat(e),e=eN(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eN(s.min,s.max,n);t===s&&(a-=e),t.min=rF(t.min,e,i,a,r),t.max=rF(t.max,e,i,a,r)}(t,e[i],e[n],e[r],e.scale,s,o)}let rN=["x","scaleX","originX"],rO=["y","scaleY","originY"];function rz(t,e,i,n){rI(t.x,e,rN,i?i.x:void 0,n?n.x:void 0),rI(t.y,e,rO,i?i.y:void 0,n?n.y:void 0)}function rU(t){return 0===t.translate&&1===t.scale}function rW(t){return rU(t.x)&&rU(t.y)}function r$(t,e){return t.min===e.min&&t.max===e.max}function rY(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rX(t,e){return rY(t.x,e.x)&&rY(t.y,e.y)}function rH(t){return nH(t.x)/nH(t.y)}function rG(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rK{constructor(){this.members=[]}add(t){tX(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&&!1!==i.isPresent&&!i.snapshot&&tH(this.members,i)}t.scheduleRender()}remove(t){if(tH(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t],n=i.instance;if(!1!==i.isPresent&&(!n||!1!==n.isConnected)){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender();let n=i.options.layoutDependency,r=t.options.layoutDependency;if(void 0===n||void 0===r||n!==r){let n=i.instance;!(n&&!1===n.isConnected&&!i.snapshot)&&(t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}let{crossfade:s}=t.options;!1===s&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rq=(t,e)=>t.depth-e.depth;class r_{constructor(){this.children=[],this.isDirty=!1}add(t){tX(this.children,t),this.isDirty=!0}remove(t){tH(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rq),this.isDirty=!1,this.children.forEach(t)}}let rZ=["","X","Y","Z"],rJ=0;function rQ(t,e,i,n){let{latestValues:r}=e;r[t]&&(i[t]=r[t],e.setStaticValue(t,0),n&&(n[t]=0))}function r0({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:r}){return class{constructor(t={},i=e?.()){this.id=rJ++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(r3),this.nodes.forEach(st),this.nodes.forEach(se),this.nodes.forEach(r5)},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 r_)}
1addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tG),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:r}=this.options;if(r&&!r.current&&r.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,r=()=>this.root.updateBlockedByResize=!1;tC.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,s;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ei.now(),s=({timestamp:t})=>{let i=t-e;i>=250&&(tV(s),r(i-250))},tC.setup(s,!0),i=()=>tV(s),rx.hasAnimatedSinceResize&&(rx.hasAnimatedSinceResize=!1,this.nodes.forEach(r7))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&r&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||r.getDefaultTransition()||sa,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=r.getProps(),l=!this.targetLayout||!rX(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={...iC(s,"layout"),onPlay:o,onComplete:a};(r.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,h)}else e||r7(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(),tV(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(si),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[iw];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",tC,!(t||i))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&t(r)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!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()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r9);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(r8);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(r6),this.nodes.forEach(r1),this.nodes.forEach(r2)):this.nodes.forEach(r8),this.clearAllSnapshots();let t=ei.now();tj.delta=o(0,1e3/60,t-tj.timestamp),tj.timestamp=t,tj.isProcessing=!0,tD.update.process(tj),tD.preRender.process(tj),tD.render.process(tj),tj.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.read(this.scheduleUpdate))}
1clearAllSnapshots(){this.nodes.forEach(r4),this.sharedNodes.forEach(sn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tC.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tC.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nH(this.snapshot.measuredBox.x)||nH(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=K(),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(!r)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rW(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,s=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eG(this.latestValues)||s)&&(r(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)),su((e=n).x),su(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return K();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sc))){let{scroll:t}=this.root;t&&(eJ(e.x,t.offset.x),eJ(e.y,t.offset.y))}return e}removeElementScroll(t){let e=K();if(rL(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:r,options:s}=n;n!==this.root&&r&&s.layoutScroll&&(r.wasRoot&&rL(e,t),eJ(e.x,r.offset.x),eJ(e.y,r.offset.y))}return e}applyTransform(t,e=!1){let i=K();rL(i,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&e0(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),eG(n.latestValues)&&e0(i,n.latestValues)}return eG(this.latestValues)&&e0(i,this.latestValues),i}removeTransform(t){let e=K();rL(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!eG(i.latestValues))continue;eH(i.latestValues)&&i.updateSnapshot();let n=K();rL(n,i.measurePageBox()),rz(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,n)}return eG(this.latestValues)&&rz(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!==tj.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:r}=this.options;if(!this.layout||!(n||r))return;this.resolvedRelativeTargetAt=tj.timestamp;let s=this.getClosestProjectingParent();if(s&&this.linkedParentVersion!==s.layoutVersion&&!s.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(s&&s.layout?this.createRelativeTarget(s,this.layout.layoutBox,s.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=K(),this.targetWithTransforms=K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,l;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,nq(o.x,a.x,l.x),nq(o.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rL(this.target,this.layout.layoutBox),eZ(this.target,this.targetDelta)):rL(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,s&&!!s.resumingFrom==!!this.resumingFrom&&!s.options.layoutScroll&&s.target&&1!==this.animationProgress?this.createRelativeTarget(s,this.target,s.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eH(this.parent.latestValues)||eK(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=K(),this.relativeTargetOrigin=K(),nZ(this.relativeTargetOrigin,e,i),rL(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===tj.timestamp&&(i=!1),i)return;let{layout:n,layoutId:r}=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||r))return;rL(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,n=!1){let r,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(r=i[a]).projectionDelta;let{visualElement:o}=r.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&e0(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,eZ(t,s)),n&&eG(r.latestValues)&&e0(t,r.latestValues))}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=K());let{target:a}=t;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rB(this.prevProjectionDelta.x,this.projectionDelta.x),rB(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nK(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&rG(this.projectionDelta.x,this.prevProjectionDelta.x)&&rG(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=H(),this.projectionDelta=H(),this.projectionDeltaWithTransform=H()}setAnimationOrigin(t,e=!1){let i,n=this.snapshot,r=n?n.latestValues:{},s={...this.latestValues},o=H();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=K(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),h=this.getStack(),u=!h||h.members.length<=1,d=!!(l&&!u&&!0===this.options.crossfade&&!this.path.some(so));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(sr(o.x,t.x,n),sr(o.y,t.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var h,c,p,m,f,g;nZ(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=n,ss(p.x,m.x,f.x,g),ss(p.y,m.y,f.y,g),i&&(h=this.relativeTarget,c=i,r$(h.x,c.x)&&r$(h.y,c.y))&&(this.isProjectionDirty=!1),i||(i=K()),rL(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,n,r,s){r?(t.opacity=eN(0,i.opacity??1,rV(n)),t.opacityExit=eN(e.opacity??1,0,rj(n))):s&&(t.opacity=eN(e.opacity??1,i.opacity??1,n));for(let r=0;r<rA;r++){let s=`border${rP[r]}Radius`,o=rC(e,s),a=rC(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rE(o)===rE(a)?(t[s]=Math.max(eN(rM(o),rM(a),n),0),(b.test(a)||b.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eN(e.rotate||0,i.rotate||0,n))}(s,r,this.latestValues,n,d,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(tV(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tC.update(()=>{var e,i,n;let r;rx.hasAnimatedSinceResize=!0,t1.layout++,this.motionValue||(this.motionValue=es(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)},onStop:()=>{t1.layout--},onComplete:()=>{t1.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}},(r=q(e)?e:es(e)).start(nV("",r,i,n)),r.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:r}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&sd(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||K();let e=nH(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nH(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}rL(e,i),e0(e,r),nK(this.projectionDeltaWithTransform,this.layoutCorrected,e,r)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rK),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&&rQ("z",t,n,this.animationValues);for(let e=0;e<rZ.length;e++)rQ(`rotate${rZ[e]}`,t,n,this.animationValues),rQ(`skew${rZ[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=ih(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=ih(e?.pointerEvents)||""),this.hasProjected&&!eG(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let r=n.animationValues||n.latestValues;this.applyTransformsToTarget();let s=function(t,e,i){let n="",r=t.x.translate/e.x,s=t.y.translate/e.y,o=i?.z||0;if((r||s||o)&&(n=`translate3d(${r}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:r,rotateY:s,skewX:o,skewY:a}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),r&&(n+=`rotateX(${r}deg) `),s&&(n+=`rotateY(${s}deg) `),o&&(n+=`skewX(${o}deg) `),a&&(n+=`skewY(${a}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,r);i&&(s=i(r,s)),t.transform=s;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?r.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:r.opacityExit:t.opacity=n===this?void 0!==r.opacity?r.opacity:"":void 0!==r.opacityExit?r.opacityExit:0,eO){if(void 0===r[e])continue;let{correct:i,applyTo:o,isCSSVariable:a}=eO[e],l="none"===s?r[e]:i(r[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?ih(e?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>t.currentAnimation?.stop()),this.root.nodes.forEach(r9),this.root.sharedNodes.clear()}}}function r1(t){t.updateLayout()}function r2(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:r}=t.options,s=e.source!==t.layout.source;"size"===r?nU(t=>{let n=s?e.measuredBox[t]:e.layoutBox[t],r=nH(n);n.min=i[t].min,n.max=n.min+r}):sd(r,e.layoutBox,i)&&nU(n=>{let r=s?e.measuredBox[n]:e.layoutBox[n],o=nH(i[n]);r.max=r.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+o)});let o=H();nK(o,i,e.layoutBox);let a=H();s?nK(a,t.applyTransform(n,!0),e.measuredBox):nK(a,i,e.layoutBox);let l=!rW(o),h=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:r,layout:s}=n;if(r&&s){let o=K();nZ(o,e.layoutBox,r.layoutBox);let a=K();nZ(a,i,s.layoutBox),rX(o,a)||(h=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:h})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r3(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 r5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r4(t){t.clearSnapshot()}function r9(t){t.clearMeasurements()}function r8(t){t.isLayoutDirty=!1}function r6(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r7(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function st(t){t.resolveTargetDelta()}function se(t){t.calcProjection()}function si(t){t.resetSkewAndRotation()}function sn(t){t.removeLeadSnapshot()}function sr(t,e,i){t.translate=eN(e.translate,0,i),t.scale=eN(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function ss(t,e,i,n){t.min=eN(e.min,i.min,n),t.max=eN(e.max,i.max,n)}function so(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let sa={duration:.45,ease:[.4,0,.1,1]},sl=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),sh=sl("applewebkit/")&&!sl("chrome/")?Math.round:tP;function su(t){t.min=sh(t.min),t.max=sh(t.max)}function sd(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rH(e)-rH(i)))}function sc(t){return t!==t.root&&t.scroll?.wasRoot}let sp=r0({attachResizeListener:(t,e)=>nY(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),sm={current:void 0},sf=r0({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!sm.current){let t=new sp({});t.mount(window),t.setOptions({layoutScroll:!0}),sm.current=t}return sm.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function sg(t,e){let i=n0(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function sy(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let r=n["onHover"+i];r&&tC.postRender(()=>r(e,rt(e)))}function sv(t){return nJ(t)&&"offsetHeight"in t}t.s(["isHTMLElement",()=>sv],60129);let sx=(t,e)=>!!e&&(t===e||sx(t,e.parentElement)),sb=new WeakSet;function sw(t){return e=>{"Enter"===e.key&&t(e)}}function sk(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function sT(t){return n7(t)&&!(nX.x||nX.y)}let sS=new WeakSet;function sP(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let r=n["onTap"+("End"===i?"":i)];r&&tC.postRender(()=>r(e,rt(e)))}let sA=new WeakMap,sM=new WeakMap,sE=t=>{let e=sA.get(t.target);e&&e(t)},sC=t=>{t.forEach(sE)},sV={some:0,all:1},sj=function(t,e){if("undefined"==typeof Proxy)return iP;let i=new Map,n=(i,n)=>iP(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(r,s)=>"create"===s?n:(i.has(s)||i.set(s,iP(s,void 0,t,e)),i.get(s))})}({animation:{Feature:class extends iA{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=>nR(t,e,i)));else if("string"==typeof e)n=nR(t,e,i);else{let r="function"==typeof e?iM(t,e,i.custom):e;n=Promise.all(nj(t,r,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nO(),n=!0,r=e=>(i,n)=>{let r=iM(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(r){let{transition:t,transitionEnd:e,...n}=r;i={...i,...n,...e}}return i};function s(s){let{props:o}=t,a=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<nL;t++){let n=ed[t],r=e.props[n];(eh(r)||!1===r)&&(i[n]=r)}return i}(t.parent)||{},l=[],h=new Set,u={},d=1/0;for(let e=0;e<nI;e++){var c,p;let m=nF[e],f=i[m],g=void 0!==o[m]?o[m]:a[m],y=eh(g),v=m===s?f.isActive:null;!1===v&&(d=e);let x=g===a[m]&&g!==o[m]&&y;if(x&&n&&t.manuallyAnimateOnMount&&(x=!1),f.protectedKeys={...u},!f.isActive&&null===v||!g&&!f.prevProp||el(g)||"boolean"==typeof g)continue;if("exit"===m&&f.isActive&&!0!==v){f.prevResolvedValues&&(u={...u,...f.prevResolvedValues});continue}let b=(c=f.prevProp,"string"==typeof(p=g)?p!==c:!!Array.isArray(p)&&!nB(p,c)),w=b||m===s&&f.isActive&&!x&&y||e>d&&y,k=!1,T=Array.isArray(g)?g:[g],S=T.reduce(r(m),{});!1===v&&(S={});let{prevResolvedValues:P={}}=f,A={...P,...S},M=e=>{w=!0,h.has(e)&&(k=!0,h.delete(e)),f.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in A){let e=S[t],i=P[t];if(!u.hasOwnProperty(t))(iV(e)&&iV(i)?nB(e,i):e===i)?void 0!==e&&h.has(t)?M(t):f.protectedKeys[t]=!0:null!=e?M(t):h.add(t)}f.prevProp=g,f.prevResolvedValues=S,f.isActive&&(u={...u,...S}),n&&t.blockInitialAnimation&&(w=!1);let E=x&&b,C=!E||k;w&&C&&l.push(...T.map(e=>{let i={type:m};if("string"==typeof e&&n&&!E&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,r=iM(n,e);if(n.enteringChildren&&r){let{delayChildren:e}=r.transition||{};i.delay=nD(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=iM(t,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(e.transition=i.transition)}h.forEach(i=>{let n=t.getBaseTarget(i),r=t.getValue(i);r&&(r.liveStyle=!0),e[i]=n??null}),l.push({animation:e})}let m=!!l.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(m=!1),n=!1,m?e(l):Promise.resolve()}return{animateChanges:s,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let r=s(e);for(let t in i)i[t].protectedKeys={};return r},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nO()}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();el(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 iA{constructor(){super(...arguments),this.id=nz++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iA{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:n,margin:r,amount:s="some",once:o}=i,a={root:n?n.current:void 0,rootMargin:r,threshold:"number"==typeof s?s:sV[s]},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(),r=e?i:n;r&&r(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;sM.has(i)||sM.set(i,{});let n=sM.get(i),r=JSON.stringify(e);return n[r]||(n[r]=new IntersectionObserver(sC,{root:t,...e})),n[r]}(a),sA.set(t,l),e.observe(t),()=>{sA.delete(t),e.unobserve(t)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends iA{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,r,s]=sg(t,i),o=t=>{let n=t.currentTarget;if(!sT(t)||sS.has(t))return;sb.add(n),i.stopPropagation&&sS.add(t);let s=e(n,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),sb.has(n)&&sb.delete(n),sT(t)&&"function"==typeof s&&s(t,{success:e})},a=t=>{o(t,n===window||n===document||i.useGlobalTarget||sx(n,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",l,r)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",o,r),sv(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=sw(()=>
1{if(sb.has(i))return;sk(i,"down");let t=sw(()=>{sk(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>sk(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,r)),nW.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),s}(t,(t,e)=>(sP(this.node,e,"Start"),(t,{success:e})=>sP(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iA{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=iR(nY(this.node.current,"focus",()=>this.onFocus()),nY(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iA{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,r,s]=sg(t,i);return n.forEach(t=>{let i,n=!1,s=!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),s&&(s=!1,o(t))},l=t=>{if("touch"!==t.pointerType){if(n){s=!0;return}o(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nX.x||nX.y)return;s=!1;let o=e(t,n);"function"==typeof o&&(i=o,t.addEventListener("pointerleave",l,r))},r),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",a,r),window.addEventListener("pointercancel",a,r)},r)}),s}(t,(t,e)=>(sy(this.node,e,"Start"),t=>sy(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iA{constructor(){super(...arguments),this.removePointerDownListener=tP}onPointerDown(t){this.session=new rs(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ri(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:rv(t),onStart:rv(e),onMove:rv(i),onEnd:(t,e)=>{delete this.session,n&&tC.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=re(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 iA{constructor(t){super(t),this.removeGroupControls=tP,this.removeListeners=tP,this.controls=new rf(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tP}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:sf,MeasureLayout:rS},layout:{ProjectionNode:sf,MeasureLayout:rS}},(t,e)=>e.isSVG??e4(t)?new e$(e):new e2(e,{allowProjection:t!==e3.Fragment}));t.s(["motion",()=>sj],74144)},49087,t=>{"use strict";let e=(0,t.i(50197).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);t.s(["ArrowUpRight",()=>e],49087)},16234,91801,t=>{"use strict";function e(){for(var t,e,i=0,n="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=function t(e){var i,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(n=t(e[i]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}(t))&&(n&&(n+=" "),n+=e);return n}t.s(["clsx",()=>e],91801);let i=(t=new Map,e=null,i)=>({nextPart:t,validators:e,classGroupId:i}),n=[],r=(t,e,i)=>{if(0==t.length-e)return i.classGroupId;let n=t[e],s=i.nextPart.get(n);if(s){let i=r(t,e+1,s);if(i)return i}let o=i.validators;if(null===o)return;let a=0===e?t.join("-"):t.slice(e).join("-"),l=o.length;for(let t=0;t<l;t++){let e=o[t];
1if(e.validator(a))return e.classGroupId}},s=(t,e)=>{let n=i();for(let i in t)o(t[i],n,i,e);return n},o=(t,e,i,n)=>{let r=t.length;for(let s=0;s<r;s++)a(t[s],e,i,n)},a=(t,e,i,n)=>{"string"==typeof t?l(t,e,i):"function"==typeof t?h(t,e,i,n):u(t,e,i,n)},l=(t,e,i)=>{(""===t?e:d(e,t)).classGroupId=i},h=(t,e,i,n)=>{c(t)?o(t(n),e,i,n):(null===e.validators&&(e.validators=[]),e.validators.push({classGroupId:i,validator:t}))},u=(t,e,i,n)=>{let r=Object.entries(t),s=r.length;for(let t=0;t<s;t++){let[s,a]=r[t];o(a,d(e,s),i,n)}},d=(t,e)=>{let n=t,r=e.split("-"),s=r.length;for(let t=0;t<s;t++){let e=r[t],s=n.nextPart.get(e);s||(s=i(),n.nextPart.set(e,s)),n=s}return n},c=t=>"isThemeGetter"in t&&!0===t.isThemeGetter,p=[],m=(t,e,i,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:i,maybePostfixModifierPosition:n,isExternal:r}),f=/\s+/,g=t=>{let e;if("string"==typeof t)return t;let i="";for(let n=0;n<t.length;n++)t[n]&&(e=g(t[n]))&&(i&&(i+=" "),i+=e);return i},y=[],v=t=>{let e=e=>e[t]||y;return e.isThemeGetter=!0,e},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,b=/^\((?:(\w[\w-]*):)?(.+)\)$/i,w=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,T=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,S=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,P=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,M=t=>w.test(t),E=t=>!!t&&!Number.isNaN(Number(t)),C=t=>!!t&&Number.isInteger(Number(t)),V=t=>t.endsWith("%")&&E(t.slice(0,-1)),j=t=>k.test(t),D=()=>!0,R=t=>T.test(t)&&!S.test(t),L=()=>!1,B=t=>P.test(t),F=t=>A.test(t),I=t=>!O(t)&&!G(t),N=t=>te(t,ts,L),O=t=>x.test(t),z=t=>te(t,to,R),U=t=>te(t,ta,E),W=t=>te(t,th,D),$=t=>te(t,tl,L),Y=t=>te(t,tn,L),X=t=>te(t,tr,F),H=t=>te(t,tu,B),G=t=>b.test(t),K=t=>ti(t,to),q=t=>ti(t,tl),_=t=>ti(t,tn),Z=t=>ti(t,ts),J=t=>ti(t,tr),Q=t=>ti(t,tu,!0),tt=t=>ti(t,th,!0),te=(t,e,i)=>{let n=x.exec(t);return!!n&&(n[1]?e(n[1]):i(n[2]))},ti=(t,e,i=!1)=>{let n=b.exec(t);return!!n&&(n[1]?e(n[1]):i)},tn=t=>"position"===t||"percentage"===t,tr=t=>"image"===t||"url"===t,ts=t=>"length"===t||"size"===t||"bg-size"===t,to=t=>"length"===t,ta=t=>"number"===t,tl=t=>"family-name"===t,th=t=>"number"===t||"weight"===t,tu=t=>"shadow"===t,td=((t,...e)=>{let i,o,a,l,h=t=>{let e=o(t);if(e)return e;let n=((t,e)=>{let{parseClassName:i,getClassGroupId:n,getConflictingClassGroupIds:r,sortModifiers:s}=e,o=[],a=t.trim().split(f),l="";for(let t=a.length-1;t>=0;t-=1){let e=a[t],{isExternal:h,modifiers:u,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=i(e);if(h){l=e+(l.length>0?" "+l:l);continue}let m=!!p,f=n(m?c.substring(0,p):c);if(!f){if(!m||!(f=n(c))){l=e+(l.length>0?" "+l:l);continue}m=!1}let g=0===u.length?"":1===u.length?u[0]:s(u).join(":"),y=d?g+"!":g,v=y+f;if(o.indexOf(v)>-1)continue;o.push(v);let x=r(f,m);for(let t=0;t<x.length;++t){let e=x[t];o.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(t,i);return a(t,n),n};return l=u=>{var d;let c;return o=(i={cache:(t=>{if(t<1)return{get:()=>void 0,set:()=>{}};let e=0,i=Object.create(null),n=Object.create(null),r=(r,s)=>{i[r]=s,++e>t&&(e=0,n=i,i=Object.create(null))};return{get(t){let e=i[t];return void 0!==e?e:void 0!==(e=n[t])?(r(t,e),e):void 0},set(t,e){t in i?i[t]=e:r(t,e)}}})((d=e.reduce((t,e)=>e(t),t())).cacheSize),parseClassName:(t=>{let{prefix:e,experimentalParseClassName:i}=t,n=t=>{let e,i=[],n=0,r=0,s=0,o=t.length;for(let a=0;a<o;a++){let o=t[a];if(0===n&&0===r){if(":"===o){i.push(t.slice(s,a)),s=a+1;continue}if("/"===o){e=a;continue}}"["===o?n++:"]"===o?n--:"("===o?r++:")"===o&&r--}let a=0===i.length?t:t.slice(s),l=a,h=!1;return a.endsWith("!")?(l=a.slice(0,-1),h=!0):a.startsWith("!")&&(l=a.slice(1),h=!0),m(i,h,l,e&&e>s?e-s:void 0)};if(e){let t=e+":",i=n;n=e=>e.startsWith(t)?i(e.slice(t.length)):m(p,!1,e,void 0,!0)}if(i){let t=n;n=e=>i({className:e,parseClassName:t})}return n})(d),sortModifiers:(c=new Map,d.orderSensitiveModifiers.forEach((t,e)=>{c.set(t,1e6+e)}),t=>{let e=[],i=[];for(let n=0;n<t.length;n++){let r=t[n],s="["===r[0],o=c.has(r);s||o?(i.length>0&&(i.sort(),e.push(...i),i=[]),e.push(r)):i.push(r)}return i.length>0&&(i.sort(),e.push(...i)),e}),...(t=>{let e=(t=>{let{theme:e,classGroups:i}=t;return s(i,e)})(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:o}=t;return{getClassGroupId:t=>{if(t.startsWith("[")&&t.endsWith("]")){var i;let e,n,r;return -1===(i=t).slice(1,-1).indexOf(":")?void 0:(n=(e=i.slice(1,-1)).indexOf(":"),(r=e.slice(0,n))?"arbitrary.."+r:void 0)}let n=t.split("-"),s=+(""===n[0]&&n.length>1);return r(n,s,e)},getConflictingClassGroupIds:(t,e)=>{if(e){let e=o[t],r=i[t];if(e){if(r){let t=Array(r.length+e.length);for(let e=0;e<r.length;e++)t[e]=r[e];for(let i=0;i<e.length;i++)t[r.length+i]=e[i];return t}return e}return r||n}return i[t]||n}}})(d)}).cache.get,a=i.cache.set,l=h,h(u)},(...t)=>l(((...t)=>{let e,i,n=0,r="";for(;n<t.length;)(e=t[n++])&&(i=g(e))&&(r&&(r+=" "),r+=i);return r})(...t))})(()=>{let t=v("color"),e=v("font"),i=v("text"),n=v("font-weight"),r=v("tracking"),s=v("leading"),o=v("breakpoint"),a=v("container"),l=v("spacing"),h=v("radius"),u=v("shadow"),d=v("inset-shadow"),c=v("text-shadow"),p=v("drop-shadow"),m=v("blur"),f=v("perspective"),g=v("aspect"),y=v("ease"),x=v("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],w=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...w(),G,O],T=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],P=()=>[G,O,l],A=()=>[M,"full","auto",...P()],R=()=>[C,"none","subgrid",G,O],L=()=>["auto",{span:["full",C,G,O]},C,G,O],B=()=>[C,"auto",G,O],F=()=>["auto","min","max","fr",G,O],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ti=()=>["start","end","center","stretch","center-safe","end-safe"],tn=()=>["auto",...P()],tr=()=>[M,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],ts=()=>[M,"screen","full","dvw","lvw","svw","min","max","fit",...P()],to=()=>[M,"screen","full","lh","dvh","lvh","svh","min","max","fit",...P()],ta=()=>[t,G,O],tl=()=>[...w(),_,Y,{position:[G,O]}],th=()=>["no-repeat",{repeat:["","x","y","space","round"]}],tu=()=>["auto","cover","contain",Z,N,{size:[G,O]}],td=()=>[V,K,z],tc=()=>["","none","full",h,G,O],tp=()=>["",E,K,z],tm=()=>["solid","dashed","dotted","double"],tf=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],tg=()=>[E,V,_,Y],ty=()=>["","none",m,G,O],tv=()=>["none",E,G,O],tx=()=>["none",E,G,O],tb=()=>[E,G,O],tw=()=>[M,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[j],breakpoint:[j],color:[D],container:[j],"drop-shadow":[j],ease:["in","out","in-out"],font:[I],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[j],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[j],shadow:[j],spacing:["px",E],text:[j],"text-shadow":[j],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",M,O,G,g]}
vendor: 4,900 bytes, line 1
1],container:["container"],columns:[{columns:[E,O,G,a]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{"inset-s":A(),start:A()}],end:[{"inset-e":A(),end:A()}],"inset-bs":[{"inset-bs":A()}],"inset-be":[{"inset-be":A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[C,"auto",G,O]}],basis:[{basis:[M,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E,M,"auto","initial","none",O]}],grow:[{grow:["",E,G,O]}],shrink:[{shrink:["",E,G,O]}],order:[{order:[C,"first","last","none",G,O]}],"grid-cols":[{"grid-cols":R()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":R()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...ti(),"normal"]}],"justify-self":[{"justify-self":["auto",...ti()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...ti(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ti(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ti(),"baseline"]}],"place-self":[{"place-self":["auto",...ti()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pbs:[{pbs:P()}],pbe:[{pbe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:tn()}],mx:[{mx:tn()}],my:[{my:tn()}],ms:[{ms:tn()}],me:[{me:tn()}],mbs:[{mbs:tn()}],mbe:[{mbe:tn()}],mt:[{mt:tn()}],mr:[{mr:tn()}],mb:[{mb:tn()}],ml:[{ml:tn()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:tr()}],"inline-size":[{inline:["auto",...ts()]}],"min-inline-size":[{"min-inline":["auto",...ts()]}],"max-inline-size":[{"max-inline":["none",...ts()]}],"block-size":[{block:["auto",...to()]}],"min-block-size":[{"min-block":["auto",...to()]}],"max-block-size":[{"max-block":["none",...to()]}],w:[{w:[a,"screen",...tr()]}],"min-w":[{"min-w":[a,"screen","none",...tr()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...tr()]}],h:[{h:["screen","lh",...tr()]}],"min-h":[{"min-h":["screen","lh","none",...tr()]}],"max-h":[{"max-h":["screen","lh",...tr()]}],"font-size":[{text:["base",i,K,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,tt,W]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",V,O]}],"font-family":[{font:[q,$,e]}],"font-features":[{"font-features":[O]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,G,O]}],"line-clamp":[{"line-clamp":[E,"none",G,U]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",G,O]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,O]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ta()}],"text-color":[{text:ta()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tm(),"w
1avy"]}],"text-decoration-thickness":[{decoration:[E,"from-font","auto",G,z]}],"text-decoration-color":[{decoration:ta()}],"underline-offset":[{"underline-offset":[E,"auto",G,O]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,O]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,O]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:tl()}],"bg-repeat":[{bg:th()}],"bg-size":[{bg:tu()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},C,G,O],radial:["",G,O],conic:[C,G,O]},J,X]}],"bg-color":[{bg:ta()}],"gradient-from-pos":[{from:td()}],"gradient-via-pos":[{via:td()}],"gradient-to-pos":[{to:td()}],"gradient-from":[{from:ta()}],"gradient-via":[{via:ta()}],"gradient-to":[{to:ta()}],rounded:[{rounded:tc()}],"rounded-s":[{"rounded-s":tc()}],"rounded-e":[{"rounded-e":tc()}],"rounded-t":[{"rounded-t":tc()}],"rounded-r":[{"rounded-r":tc()}],"rounded-b":[{"rounded-b":tc()}],"rounded-l":[{"rounded-l":tc()}],"rounded-ss":[{"rounded-ss":tc()}],"rounded-se":[{"rounded-se":tc()}],"rounded-ee":[{"rounded-ee":tc()}],"rounded-es":[{"rounded-es":tc()}],"rounded-tl":[{"rounded-tl":tc()}],"rounded-tr":[{"rounded-tr":tc()}],"rounded-br":[{"rounded-br":tc()}],"rounded-bl":[{"rounded-bl":tc()}],"border-w":[{border:tp()}],"border-w-x":[{"border-x":tp()}],"border-w-y":[{"border-y":tp()}],"border-w-s":[{"border-s":tp()}],"border-w-e":[{"border-e":tp()}],"border-w-bs":[{"border-bs":tp()}],"border-w-be":[{"border-be":tp()}],"border-w-t":[{"border-t":tp()}],"border-w-r":[{"border-r":tp()}],"border-w-b":[{"border-b":tp()}],"border-w-l":[{"border-l":tp()}],"divide-x":[{"divide-x":tp()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":tp()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tm(),"hidden","none"]}],"divide-style":[{divide:[...tm(),"hidden","none"]}],"border-color":[{border:ta()}],"border-color-x":[{"border-x":ta()}],"border-color-y":[{"border-y":ta()}],"border-color-s":[{"border-s":ta()}],"border-color-e":[{"border-e":ta()}],"border-color-bs":[{"border-bs":ta()}],"border-color-be":[{"border-be":ta()}],"border-color-t":[{"border-t":ta()}],"border-color-r":[{"border-r":ta()}],"border-color-b":[{"border-b":ta()}],"border-color-l":[{"border-l":ta()}],"divide-color":[{divide:ta()}],"outline-style":[{outline:[...tm(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E,G,O]}],"outline-w":[{outline:["",E,K,z]}],"outline-color":[{outline:ta()}],shadow:[{shadow:["","none",u,Q,H]}],"shadow-color":[{shadow:ta()}],"inset-shadow":[{"inset-shadow":["none",d,Q,H]}],"inset-shadow-color":[{"inset-shadow":ta()}],"ring-w":[{ring:tp()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ta()}],"ring-offset-w":[{"ring-offset":[E,z]}],"ring-offset-color":[{"ring-offset":ta()}],"inset-ring-w":[{"inset-ring":tp()}],"inset-ring-color":[{"inset-ring":ta()}],"text-shadow":[{"text-shadow":["none",c,Q,H]}],"text-shadow-color":[{"text-shadow":ta()}],opacity:[{opacity:[E,G,O]}],"mix-blend":[{"mix-blend":[...tf(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":tf()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E]}],"mask-image-linear-from-pos":[{"mask-linear-from":tg()}],"mask-image-linear-to-pos":[{"mask-linear-to":tg()}],"mask-image-linear-from-color":[{"mask-linear-from":ta()}],"mask-image-linear-to-color":[{"mask-linear-to":ta()}],"mask-image-t-from-pos":[{"mask-t-from":tg()}],"mask-image-t-to-pos":[{"mask-t-to":tg()}],"mask-image-t-from-color":[{"mask-t-from":ta()}],"mask-image-t-to-color":[{"mask-t-to":ta()}],"mask-image-r-from-pos":[{"mask-r-from":tg()}],"mask-image-r-to-pos":[{"mask-r-to":tg()}],"mask-image-r-from-color":[{"mask-r-from":ta()}],"mask-image-r-to-color":[{"mask-r-to":ta()}],"mask-image-b-from-pos":[{"mask-b-from":tg()}],"mask-image-b-to-pos":[{"mask-b-to":tg()}],"mask-image-b-from-color":[{"mask-b-from":ta()}],"mask-image-b-to-color":[{"mask-b-to":ta()}],"mask-image-l-from-pos":[{"mask-l-from":tg()}],"mask-image-l-to-pos":[{"mask-l-to":tg()}],"mask-image-l-from-color":[{"mask-l-from":ta()}],"mask-image-l-to-color":[{"mask-l-to":ta()}],"mask-image-x-from-pos":[{"mask-x-from":tg()}],"mask-image-x-to-pos":[{"mask-x-to":tg()}],"mask-image-x-from-color":[{"mask-x-from":ta()}],"mask-image-x-to-color":[{"mask-x-to":ta()}],"mask-image-y-from-pos":[{"mask-y-from":tg()}],"mask-image-y-to-pos":[{"mask-y-to":tg()}],"mask-image-y-from-color":[{"mask-y-from":ta()}],"mask-image-y-to-color":[{"mask-y-to":ta()}],"mask-image-radial":[{"mask-radial":[G,O]}],"mask-image-radial-from-pos":[{"mask-radial-from":tg()}],"mask-image-radial-to-pos":[{"mask-radial-to":tg()}],"mask-image-radial-from-color":[{"mask-radial-from":ta()}],"mask-image-radial-to-color":[{"mask-radial-to":ta()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":w()}],"mask-image-conic-pos":[{"mask-conic":[E]}],"mask-image-conic-from-pos":[{"mask-conic-from":tg()}],"mask-image-conic-to-pos":[{"mask-conic-to":tg()}],"mask-image-conic-from-color":[{"mask-conic-from":ta()}],"mask-image-conic-to-color":[{"mask-conic-to":ta()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:tl()}],"mask-repeat":[{mask:th()}],"mask-size":[{mask:tu()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,O]}],filter:[{filter:["","none",G,O]}],blur:[{blur:ty()}],brightness:[{brightness:[E,G,O]}],contrast:[{contrast:[E,G,O]}],"drop-shadow":[{"drop-shadow":["","none",p,Q,H]}],"drop-shadow-color":[{"drop-shadow":ta()}],grayscale:[{grayscale:["",E,G,O]}],"hue-rotate":[{"hue-rotate":[E,G,O]}],invert:[{invert:["",E,G,O]}],saturate:[{saturate:[E,G,O]}],sepia:[{sepia:["",E,G,O]}],"backdrop-filter":[{"backdrop-filter":["","none",G,O]}],"backdrop-blur":[{"backdrop-blur":ty()}],"backdrop-brightness":[{"backdrop-brightness":[E,G,O]}],"backdrop-contrast":[{"backdrop-contrast":[E,G,O]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E,G,O]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E,G,O]}],"backdrop-invert":[{"backdrop-invert":["",E,G,O]}],"backdrop-opacity":[{"backdrop-opacity":[E,G,O]}],"backdrop-saturate":[{"backdrop-saturate":[E,G,O]}],"backdrop-sepia":[{"backdrop-sepia":["",E,G,O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,O]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E,"initial",G,O]}],ease:[{ease:["linear","initial",y,G,O]}],delay:[{delay:[E,G,O]}],animate:[{animate:["none",x,G,O]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,G,O]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:tv()}],"rotate-x":[{"rotate-x":tv()}],"rotate-y":[{"rotate-y":tv()}],"rotate-z":[{"rotate-z":tv()}],scale:[{scale:tx()}],"scale-x":[{"scale-x":tx()}],"scale-y":[{"scale-y":tx()}],"scale-z":[{"scale-z":tx()}],"scale-3d":["scale-3d"],skew:[{skew:tb()}],"skew-x":[{"skew-x":tb()}],"skew-y":[{"skew-y":tb()}],transform:[{transform:[G,O,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:tw()}],"translate-x":[{"translate-x":tw()}],"translate-y":[{"translate-y":tw()}],"translate-z":[{"translate-z":tw()}],"translate-none":["translate-none"],accent:[{accent:ta()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ta()}
1],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,O]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mbs":[{"scroll-mbs":P()}],"scroll-mbe":[{"scroll-mbe":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pbs":[{"scroll-pbs":P()}],"scroll-pbe":[{"scroll-pbe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,O]}],fill:[{fill:["none",...ta()]}],"stroke-w":[{stroke:[E,K,z,U]}],stroke:[{stroke:["none",...ta()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function tc(...t){return td(e(t))}t.s(["cn",()=>tc],16234)},88981,98200,t=>{"use strict";var e=t.i(24829),i=t.i(52888),n=t.i(59241),r=t.i(27306),s=t.i(49087),o=t.i(50197);let a=(0,o.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),l=(0,o.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var h=t.i(74144),u=t.i(46076),d=t.i(33856),c=t.i(31391);function p(t){let e=(0,c.useConstant)(()=>(0,u.motionValue)(t)),{isStatic:n}=(0,i.useContext)(d.MotionConfigContext);if(n){let[,n]=(0,i.useState)(t);(0,i.useEffect)(()=>e.on("change",n),[])}return e}var m=t.i(54970),f=t.i(41984),g=t.i(18981);function y(t){return"number"==typeof t?t:parseFloat(t)}var v=t.i(32998),x=t.i(93488);function b(t,e){let i=p(e()),n=()=>i.set(e());return n(),(0,x.useIsomorphicLayoutEffect)(()=>{let e=()=>g.frame.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,g.cancelFrame)(n)}}),i}function w(t,e){let i=(0,c.useConstant)(()=>[]);return b(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}function k(t,e={}){return function(t,e={}){let{isStatic:n}=(0,i.useContext)(d.MotionConfigContext),r=()=>(0,f.isMotionValue)(t)?t.get():t;if(n)return function t(e,i,n,r){if("function"==typeof e){let t;return u.collectMotionValues.current=[],e(),t=b(u.collectMotionValues.current,e),u.collectMotionValues.current=void 0,t}if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof i){var s=e,o=i,a=n,l=r;let h=(0,c.useConstant)(()=>Object.keys(a)),u=(0,c.useConstant)(()=>({}));for(let e of h)u[e]=t(s,o,a[e],l);return u}let h="function"==typeof i?i:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],r=t[1+i],s=t[2+i],o=t[3+i],a=(0,v.interpolate)(r,s,o);return e?a(n):a}(i,n,r),d=Array.isArray(e)?w(e,h):w([e],([t])=>h(t)),p=Array.isArray(e)?void 0:e.accelerate;return p&&!p.isTransformed&&"function"!=typeof i&&Array.isArray(n)&&r?.clamp!==!1&&(d.accelerate={...p,times:i,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),d}(r);let s=p(r());return(0,i.useInsertionEffect)(()=>(function(t,e,i={}){let n,r=t.get(),s=null,o=r,a="string"==typeof r?r.replace(/[\d.-]/g,""):void 0,l=()=>{s&&(s.stop(),s=null)};if(t.attach((e,r)=>{o=e,n=t=>{var e,i;return r((e=t,(i=a)?e+i:e))},g.frame.postRender(()=>{let e,r;l(),e=y(t.get()),e!==(r=y(o))&&(s=new m.JSAnimation({keyframes:[e,r],velocity:t.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:n})),t.events.animationStart?.notify(),s?.then(()=>{t.events.animationComplete?.notify()})})},l),(0,f.isMotionValue)(e)){let i=e.on("change",e=>{var i,n;return t.set((i=e,(n=a)?i+n:i))}),n=t.on("destroy",i);return()=>{i(),n()}}return l})(s,t,e),[s,JSON.stringify(e)]),s}(t,{type:"spring",...e})}t.i(17203);var T=t.i(5939),S=t.i(75157),P=t.i(16234);function A({href:t,children:n,className:s,variant:o="ink",external:a,strength:l=10}){let u=(0,i.useRef)(null),d=function(){T.hasReducedMotionListener.current||(0,S.initPrefersReducedMotion)();let[t]=(0,i.useState)(T.prefersReducedMotion.current);return t}(),c=p(0),m=p(0),f=k(c,{stiffness:220,damping:22,mass:.4}),g=k(m,{stiffness:220,damping:22,mass:.4}),y=k(c,{stiffness:260,damping:20,mass:.3}),v=k(m,{stiffness:260,damping:20,mass:.3}),x=(0,e.jsx)(h.motion.div,{className:"inline-flex items-center gap-2 h-full px-full",style:{x:y,y:v},children:n}),b=(0,P.cn)("relative inline-flex items-center justify-center rounded-full font-medium text-[14px] transition-colors cursor-pointer select-none","h-12 px-6",{ink:"bg-[var(--ink)] text-[var(--paper)] hover:bg-[var(--ink-2)]",paper:"bg-[var(--paper)] text-[var(--ink)] border border-[var(--line-strong)] hover:border-[var(--ink)]",ghost:"text-[var(--ink)] border border-[var(--line-strong)] hover:border-[var(--ink)]"}[o],s);return(0,e.jsx)(h.motion.div,{ref:u,onMouseMove:t=>{if(d)return;let e=u.current;if(!e)return;let i=e.getBoundingClientRect(),n=i.left+i.width/2,r=i.top+i.height/2,s=t.clientX-n,o=t.clientY-r;c.set(Math.max(-l,Math.min(l,s/(i.width/2)*l))),m.set(Math.max(-l,Math.min(l,o/(i.height/2)*l)))},onMouseLeave:()=>{c.set(0),m.set(0)},style:{x:f,y:g,display:"inline-flex"},className:"relative",children:a?(0,e.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:b,children:x}):(0,e.jsx)(r.default,{href:t,className:b,children:x})})}function M(){let[t,o]=(0,i.useState)(!1),[h,u]=(0,i.useState)(!1),[d,c]=(0,i.useState)("paper"),p=(0,n.usePathname)(),m="/"===p||""===p,f=p?.startsWith("/catalyst");(0,i.useEffect)(()=>{let t=()=>u(window.scrollY>16);return t(),window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[]),(0,i.useEffect)(()=>{let t=Array.from(document.querySelectorAll('[data-theme="ink"]'));if(0===t.length)return void c("paper");let e=()=>{c(t.some(t=>{let e=t.getBoundingClientRect();return e.top<=40&&e.bottom>=40})?"ink":"paper")};return e(),window.addEventListener("scroll",e,{passive:!0}),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}}
1,[p]);let g=(t,e)=>{o(!1),m&&(t.preventDefault(),"#"===e?window.scrollTo({top:0,behavior:"smooth"}):document.querySelector(e)?.scrollIntoView({behavior:"smooth",block:"start"}))},y=t=>m?t:`/${t}`,v=f?"/catalyst/assessment/":"/catalyst/",x=f?"Start assessment":"Explore Catalyst",b=[{label:"Catalyst",href:"/catalyst/",external:!0},{label:"CID",href:"/cid/",external:!0},{label:"Portfolio",href:y("#portfolio"),anchor:"#portfolio"},{label:"AWS",href:y("#aws"),anchor:"#aws"},{label:"Thesis",href:y("#thesis"),anchor:"#thesis"},{label:"Blog",href:"/blog/",external:!0}],w="ink"===d,k=w?"var(--paper)":"var(--ink)",T=w?"hover:text-[var(--paper)]":"hover:text-[var(--ink)]";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:(0,P.cn)("sticky top-0 z-50 w-full transition-colors duration-300",h?w?"bg-[var(--ink)] border-b border-[rgba(247,244,236,0.08)]":"bg-[var(--paper)] border-b border-[var(--line)]":"bg-transparent border-b border-transparent"),children:(0,e.jsxs)("nav",{className:"max-w-[1280px] mx-auto px-5 md:px-8 h-[64px] md:h-[72px] flex items-center justify-between",children:[(0,e.jsxs)(r.default,{href:"/",className:"flex items-center gap-2.5 group",children:[(0,e.jsx)("img",{src:"/logo-square.png",alt:"","aria-hidden":!0,className:"block w-[22px] h-[22px] rounded-[4px]"}),(0,e.jsx)("span",{className:"font-display text-[20px] tracking-[-0.02em] font-medium transition-colors",style:{color:k},children:"Alchemaize"}),(0,e.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-[0.18em] hidden sm:inline-block pl-1 transition-colors",style:{color:w?"rgba(247,244,236,0.5)":"var(--stone-3)"},children:"/studio"})]}),(0,e.jsx)("div",{className:"hidden lg:flex items-center gap-1 font-sans text-[14px] transition-colors",style:{color:w?"rgba(247,244,236,0.7)":"var(--stone)"},children:b.map(t=>{let i=t.external?t.href.replace(/\/$/,""):null,n=null!==i&&(p===i||p?.startsWith(i+"/"));return(0,e.jsx)(r.default,{href:t.href,onClick:t.anchor?e=>g(e,t.anchor):void 0,className:(0,P.cn)("px-3 py-2 rounded-full transition-colors",T,n&&(w?"text-[var(--paper)]":"text-[var(--ink)]")),children:t.label},t.label)})}),(0,e.jsx)("div",{className:"hidden lg:flex items-center gap-3",children:w?(0,e.jsxs)(A,{href:v,variant:"paper",children:[x," ",(0,e.jsx)(s.ArrowUpRight,{className:"w-3.5 h-3.5"})]}):(0,e.jsxs)(A,{href:v,variant:"ink",children:[x," ",(0,e.jsx)(s.ArrowUpRight,{className:"w-3.5 h-3.5"})]})}),(0,e.jsx)("button",{className:"lg:hidden w-10 h-10 flex items-center justify-center transition-colors",style:{color:k},onClick:()=>o(!t),"aria-label":"Toggle menu",children:t?(0,e.jsx)(l,{className:"w-5 h-5"}):(0,e.jsx)(a,{className:"w-5 h-5"})})]})}),(0,e.jsx)("div",{className:(0,P.cn)("lg:hidden fixed inset-0 z-40 bg-[var(--paper)] transition-all duration-300 pt-[72px]",t?"translate-y-0 opacity-100":"-translate-y-4 opacity-0 pointer-events-none"),children:(0,e.jsxs)("div",{className:"flex flex-col items-start gap-2 p-6",children:[b.map((t,i)=>(0,e.jsxs)(r.default,{href:t.href,onClick:t.anchor?e=>g(e,t.anchor):()=>o(!1),className:"flex items-baseline gap-3 py-3 w-full border-b border-[var(--line)]",children:[(0,e.jsxs)("span",{className:"font-mono text-[11px] text-[var(--stone-3)] tracking-[0.18em]",children:["0",i+1]}),(0,e.jsx)("span",{className:"font-display text-[28px] tracking-[-0.02em] text-[var(--ink)]",children:t.label})]},t.label)),(0,e.jsxs)(r.default,{href:v,onClick:()=>o(!1),className:"mt-6 inline-flex items-center gap-2 bg-[var(--ink)] text-[var(--paper)] rounded-full h-12 px-6 text-[14px] font-medium w-full justify-center",children:[x," ",(0,e.jsx)(s.ArrowUpRight,{className:"w-4 h-4"})]})]})})]})}t.s(["default",()=>A],98200),t.s(["default",()=>M],88981)},48614,t=>{"use strict";var e=t.i(24829),i=t.i(27306);function n(){let t="font-sans text-[13px] text-[var(--stone)] hover:text-[var(--ink)] transition-colors",n="font-mono text-[11px] uppercase tracking-[0.14em] text-[var(--stone-2)] hover:text-[var(--ink)] transition-colors";return(0,e.jsx)("footer",{className:"w-full bg-[var(--paper)] border-t border-[var(--line)]",children:(0,e.jsxs)("div",{className:"max-w-[1280px] mx-auto px-5 md:px-8 py-10 md:py-14",children:[(0,e.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 pb-8 border-b border-[var(--line)]",children:[(0,e.jsxs)(i.default,{href:"/",className:"flex items-center gap-2.5",children:[(0,e.jsx)("img",{src:"/logo-square.png",alt:"","aria-hidden":!0,
1className:"block w-[20px] h-[20px] rounded-[3px]"}),(0,e.jsx)("span",{className:"font-display text-[18px] tracking-[-0.02em] text-[var(--ink)] font-medium",children:"Alchemaize"})]}),(0,e.jsx)("p",{className:"font-display text-[16px] md:text-[18px] tracking-[-0.01em] text-[var(--stone)]",children:"AI-first software, services, and the framework behind both."})]}),(0,e.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 py-6 border-b border-[var(--line)]",children:[(0,e.jsxs)("nav",{className:"flex flex-wrap items-center gap-x-6 gap-y-2",children:[(0,e.jsx)(i.default,{href:"/catalyst/",className:t,children:"Catalyst"}),(0,e.jsx)(i.default,{href:"/#portfolio",className:t,children:"Portfolio"}),(0,e.jsx)(i.default,{href:"/blog/",className:t,children:"Blog"}),(0,e.jsx)("a",{href:"mailto:[email protected]",className:t,children:"Contact"})]}),(0,e.jsxs)("nav",{className:"flex flex-wrap items-center gap-x-5 gap-y-2",children:[(0,e.jsx)("a",{href:"/privacy.html",className:n,children:"Privacy"}),(0,e.jsx)("a",{href:"/terms.html",className:n,children:"Terms"}),(0,e.jsx)("a",{href:"/eula.html",className:n,children:"EULA"})]})]}),(0,e.jsx)("div",{className:"pt-6",children:(0,e.jsx)("p",{className:"font-mono text-[11px] uppercase tracking-[0.18em] text-[var(--stone-2)]",children:"© 2026 Alchemaize, Inc. · College Station"})})]})})}t.s(["default",()=>n])}]);

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.