1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,234022,493858,236585,26809,470919,967682,651692,921692,702915,497004,261064,45427,241058,498920,805639,823864,460208,359522,761651,t=>{"use strict";let e,i,n,s=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],r=new Set(s),a=(t,e,i)=>i>e?e:i<t?t:i;t.s(["clamp",0,a],493858);let o={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},l={...o,transform:t=>a(0,1,t)},u={...o,default:1},h=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,m=(t,e)=>i=>!!("string"==typeof i&&c.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),p=(t,e,i)=>n=>{if("string"!=typeof n)return n;let[s,r,a,o]=n.match(d);return{[t]:parseFloat(s),[e]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},f={...o,transform:t=>Math.round(a(0,255,t))},g={test:m("rgb","red"),parse:p("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:n=1})=>"rgba("+f.transform(t)+", "+f.transform(e)+", "+f.transform(i)+", "+h(l.transform(n))+")"},y={test:m("#"),parse:function(t){let e="",i="",n="",s="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,i+=i,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}},transform: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)},j={test:m("hsl","hue"),parse:p("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:n=1})=>"hsla("+Math.round(t)+", "+b.transform(h(e))+", "+b.transform(h(i))+", "+h(l.transform(n))+")"},P={test:t=>g.test(t)||y.test(t)||j.test(t),parse:t=>g.test(t)?g.parse(t):j.test(t)?j.parse(t):y.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?g.transform(t):j.transform(t),getAnimatableNone:t=>{let e=P.parse(t);return e.alpha=0,P.transform(e)}},E=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,A="number",M="color",C=/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 V(t){let e=t.toString(),i=[],n={color:[],number:[],var:[]},s=[],r=0,a=e.replace(C,t=>(P.test(t)?(n.color.push(r),s.push(M),i.push(P.parse(t))):t.startsWith("var(")?(n.var.push(r),s.push("var"),i.push(t)):(n.number.push(r),s.push(A),i.push(parseFloat(t))),++r,"${}")).split("${}");return{values:i,split:a,indexes:n,types:s}}function N({split:t,types:e}){let i=t.length;return n=>{let s="";for(let r=0;r<i;r++)if(s+=t[r],void 0!==n[r]){let t=e[r];t===A?s+=h(n[r]):t===M?s+=P.transform(n[r]):s+=n[r]}return s}}let L={test:function(t){return isNaN(t)&&"string"==typeof t&&(t.match(d)?.length||0)+(t.match(E)?.length||0)>0},parse:function(t){return V(t).values},createTransformer:function(t){return N(V(t))},getAnimatableNone:function(t){let e=V(t);return N(e)(e.values.map((t,i)=>((t,e)=>"number"==typeof t?e?.trim().endsWith("/")?t:0:"number"==typeof t?0:P.test(t)?P.getAnimatableNone(t):t)(t,e.split[i])))}},R=new Set(["brightness","contrast","saturate","opacity"]);function D(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 s=i.replace(n,""),r=+!!R.has(e);return n!==i&&(r*=100),e+"("+r+s+")"}let B=/\b([a-z-]*)\(.*?\)/gu,F={...L,getAnimatableNone:t=>{let e=t.match(B);return e?e.map(D).join(" "):t}},O={...L,getAnimatableNone:t=>{let e=L.parse(t);return L.createTransformer(t)(e.map(t=>"number"==typeof t?0:"object"==typeof t?{...t,alpha:1}:t))}},I={...o,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:u,scaleX:u,scaleY:u,scaleZ:u,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:I,fillOpacity:l,strokeOpacity:l,numOctaves:I},z={...W,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:F,WebkitFilter:F,mask:O,WebkitMask:O},U=t=>z[t],$=()=>({translate:0,scale:1,origin:0,originPoint:0}),H=()=>({x:$(),y:$()}),Y=()=>({min:0,max:0}),X=()=>({x:Y(),y:Y()}),q=t=>!!(t&&t.getVelocity);t.s(["isMotionValue",0,q],236585);let K=new Set(["width","height","top","left","right","bottom",...s]),G=t=>e=>e.test(t),_=[o,w,b,x,T,k,{test:t=>"auto"===t,parse:t=>t}],Z=t=>_.find(G(t));var J,Q=t.i(665881);let tt=()=>{},te=()=>{};Q.default,t.s(["invariant",0,te,"warning",0,tt],26809);let ti=t=>e=>"string"==typeof e&&e.startsWith(t),tn=ti("--"),ts=ti("var(--"),tr=t=>!!ts(t)&&ta.test(t.split("/*")[0].trim()),ta=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function to(t){return"string"==typeof t&&t.split("/*")[0].includes("var(--")}let tl=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tu=t=>180*t/Math.PI,th=t=>tc(tu(Math.atan2(t[1],t[0]))),td={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:th,rotateZ:th,skewX:t=>tu(Math.atan(t[1])),skewY:t=>tu(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},tc=t=>((t%=360)<0&&(t+=360),t),tm=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),tp=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),tf={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:tm,scaleY:tp,scale:t=>(tm(t)+tp(t))/2,rotateX:t=>tc(tu(Math.atan2(t[6],t[5]))),rotateY:t=>tc(tu(Math.atan2(-t[2],t[0]))),rotateZ:th,rotate:th,skewX:t=>tu(Math.atan(t[4])),skewY:t=>tu(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function tg(t){return+!!t.includes("scale")}function ty(t,e){let i,n;if(!t||"none"===t)return tg(e);let s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(s)i=tf,n=s;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=td,n=e}if(!n)return tg(e);let r=i[e],a=n[1].split(",").map(tv);return"function"==typeof r?r(a):a[r]}function tv(t){return parseFloat(t.trim())}let tx=t=>t===o||t===w,tb=new Set(["x","y","z"]),tw=s.filter(t=>!tb.has(t)),tk={width:({x:t},{paddingLeft:e="0",paddingRight:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},height:({y:t},{paddingTop:e="0",paddingBottom:i="0",boxSizing:n})=>{let s=t.max-t.min;return"border-box"===n?s:s-parseFloat(e)-parseFloat(i)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>ty(e,"x"),y:(t,{transform:e})=>ty(e,"y")};tk.translateX=tk.x,tk.translateY=tk.y;let tT=t=>t;t.s(["noop",0,tT],470919);let tS={},tj=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function tP(t,e){let i=!1,n=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=tj.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,n=new Set,s=!1,r=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){a.has(e)&&(h.schedule(e),t()),l++,e(o)}let h={schedule:(t,e=!1,r=!1)=>{let o=r&&s?i:n;return e&&a.add(t),o.add(t),t},cancel:t=>{n.delete(t),a.delete(t)},process:t=>{if(o=t,s){r=!0;return}s=!0;let a=i;
1i=n,n=a,i.forEach(u),e,l=0,i.clear(),s=!1,r&&(r=!1,h.process(t))}};return h}(r,e?i:void 0),t),{}),{setup:o,read:l,resolveKeyframes:u,preUpdate:h,update:d,preRender:c,render:m,postRender:p}=a,f=()=>{let r=tS.useManualTiming,a=r?s.timestamp:performance.now();i=!1,r||(s.delta=n?1e3/60:Math.max(Math.min(a-s.timestamp,40),1)),s.timestamp=a,s.isProcessing=!0,o.process(s),l.process(s),u.process(s),h.process(s),d.process(s),c.process(s),m.process(s),p.process(s),s.isProcessing=!1,i&&e&&(n=!1,t(f))};return{schedule:tj.reduce((e,r)=>{let o=a[r];return e[r]=(e,r=!1,a=!1)=>(!i&&(i=!0,n=!0,s.isProcessing||t(f)),o.schedule(e,r,a)),e},{}),cancel:t=>{for(let e=0;e<tj.length;e++)a[tj[e]].cancel(t)},state:s,steps:a}}let{schedule:tE,cancel:tA,state:tM,steps:tC}=tP("u">typeof requestAnimationFrame?requestAnimationFrame:tT,!0);t.s(["cancelFrame",0,tA,"frame",0,tE,"frameData",0,tM,"frameSteps",0,tC],967682);let tV=new Set,tN=!1,tL=!1,tR=!1;function tD(){if(tL){let t=Array.from(tV).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,n=(e=[],tw.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)})}tL=!1,tN=!1,tV.forEach(t=>t.complete(tR)),tV.clear()}function tB(){tV.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tL=!0)})}class tF{constructor(t,e,i,n,s,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=n,this.element=s,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(tV.add(this),tN||(tN=!0,tE.read(tB),tE.resolveKeyframes(tD))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:n}=this;if(null===t[0]){let s=n?.get(),r=t[t.length-1];if(void 0!==s)t[0]=s;else if(i&&e){let n=i.readValue(e,r);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=r),n&&void 0===s&&n.set(t[0])}for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),tV.delete(this)}cancel(){"scheduled"===this.state&&(tV.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let tO=new Set([F,O]);function tI(t,e){let i=U(t);return tO.has(i)||(i=L),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tW=new Set(["auto","none","0"]);class tz extends tF{constructor(t,e,i,n,s){super(t,e,i,n,s,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let n=t[i];if("string"==typeof n&&tr(n=n.trim())){let s=function t(e,i,n=1){te(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[s,r]=function(t){let e=tl.exec(t);if(!e)return[,];let[,i,n,s]=e;return[`--${i??n}`,s]}(e);if(!s)return;let a=window.getComputedStyle(i).getPropertyValue(s);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return tr(r)?t(r,i,n+1):r}(n,e.current);void 0!==s&&(t[i]=s),i===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!K.has(i)||2!==t.length)return;let[n,s]=t,r=Z(n),a=Z(s);if(to(n)!==to(s)&&tk[i]){this.needsMeasurement=!0;return}if(r!==a)if(tx(r)&&tx(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else tk[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++)(null===t[e]||function(t){if("number"==typeof t)return 0===t;if(null===t)return!0;return"none"===t||"0"===t||/^0[^.\s]+$/u.test(t)}(t[e]))&&i.push(e);i.length&&function(t,e,i){let n,s=0;for(;s<t.length&&!n;){let e=t[s];"string"==typeof e&&!tW.has(e)&&V(e).values.length&&(n=t[s]),s++}if(n&&i)for(let s of e)t[s]=tI(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=tk[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(i,n).jump(n,!1)}measureEndState(){let{element:t,name:e,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(e);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,r=i[s];i[s]=tk[e](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==r&&void 0===this.finalKeyframe&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([e,i])=>{t.getValue(e).set(i)}),this.resolveNoneKeyframes()}}let tU=t=>1e3*t;function t$(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 tY{constructor(){this.subscriptions=[]}add(t){return t$(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 s=0;s<n;s++){let n=this.subscriptions[s];n&&n(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tX(t,e,i){e.startsWith("--")?t.style.setProperty(e,i):t.style[e]=i}function tq(t){let e;return()=>(void 0===e&&(e=t()),e)}let tK={};function tG(t,e){let i=tq(t);return()=>tK[e]??i()}let t_=tG(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tZ=tG(()=>void 0!==window.ViewTimeline,"viewTimeline");t.s(["supportsScrollTimeline",0,t_,"supportsViewTimeline",0,tZ],651692);let tJ=t=>null!==t;function tQ(t,{repeat:e,repeatType:i="loop"},n,s=1){let r=t.filter(tJ),a=s<0||e&&"loop"!==i&&e%2==1?0:r.length-1;return a&&void 0!==n?n:r[a]}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],t5=tG(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),t6=(t,e,i=10)=>{let n="",s=Math.max(Math.round(e/i),2);for(let e=0;e<s;e++)n+=Math.round(1e4*t(e/(s-1)))/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},t3=([t,e,i,n])=>`cubic-bezier(${t}, ${e}, ${i}, ${n})`,t4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:t3([0,.65,.55,1]),circOut:t3([.55,0,1,.45]),backIn:t3([.31,.01,.66,-.59]),backOut:t3([.33,1.53,.69,.99])};function t9(t){return"function"==typeof t&&"applyToOptions"in t}class t8 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:s,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=t;this.isPseudoElement=!!s,this.allowFlatten=r,this.options=t,te("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:t,...e}){return t9(t)&&t5()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}(t);this.animation=function(t,e,i,{delay:n=0,duration:s=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},u){let h={[e]:i};l&&(h.offset=l);let d=function t(e,i){if(e)return"function"==typeof e?t5()?t6(e,i):"ease-out":t2(e)?t3(e):Array.isArray(e)?e.map(e=>t(e,i)||t4.easeOut):t4[e]}(o,s);Array.isArray(d)&&(h.easing=d);let c={delay:n,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};u&&(c.pseudoElement=u);let m=t.animate(h,c);return m}(e,i,n,l,s),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){let t=tQ(n,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(t),tX(e,i,t),this.animation.cancel()}o?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){let e=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tU(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:i,observe:n}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&t_())?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),i&&(this.animation.rangeEnd=i),tT):n(this)}}let t7=new Set(["opacity","clipPath","filter","transform"]),{schedule:et}=tP(queueMicrotask,!1);function ee(){e=void 0}let ei={now:()=>(void 0===e&&ei.set(tM.isProcessing||tS.useManualTiming?tM.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(ee)}};function en(t,e){return e?1e3/e*t:0}t.s(["velocityPerSecond",0,en],921692);let es={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 tY);let i=this.events[t].add(e);return"change"===t?()=>{i(),tE.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 es.current&&es.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=ei.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return en(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ea(t,e){return new er(t,e)}t.s(["collectMotionValues",0,es,"motionValue",0,ea],702915);let eo=[..._,P,L],el=new WeakMap;function eu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function eh(t){return"string"==typeof t||Array.isArray(t)}let ed=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ec=["initial",...ed];function em(t){return eu(t.animate)||ec.some(e=>eh(t[e]))}function ep(t){return!!(em(t)||t.variants)}let ef={current:null},eg={current:!1},ey="u">typeof window;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[s,r]=ev(n);e=e(void 0!==i?i:t.custom,s,r)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[s,r]=ev(n);e=e(void 0!==i?i:t.custom,s,r)}return e}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:s,blockInitialAnimation:r,visualState:a},o={}){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=tF,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,tE.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=e.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.skipAnimationsConfig=s,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=em(e),this.isVariantNode=ep(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...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,el.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:(eg.current||function(){if(eg.current=!0,ey)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ef.current=t.matches;t.addEventListener("change",e),e()}else ef.current=!1}(),this.shouldReduceMotion=ef.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let t in this.projection&&this.projection.unmount(),tA(this.notifyUpdate),tA(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let i;if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&t7.has(t)&&this.current instanceof HTMLElement){let{factory:i,keyframes:n,times:s,ease:r,duration:a}=e.accelerate,o=new t8({element:this.current,name:t,keyframes:n,times:s,ease:r,duration:tU(a)}),l=i(o);this.valueSubscriptions.set(t,()=>{l(),o.cancel()});return}let n=r.has(t);n&&this.onBindTransform&&this.onBindTransform();let s=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tE.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{s(),i&&i(),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):X()}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 s=e[n],r=i[n];if(q(s))t.addValue(n,s);else if(q(r))t.addValue(n,ea(s,{owner:t}));else if(r!==s)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(s):e.hasAnimated||e.set(s)}else{let e=t.getStaticValue(n);t.addValue(n,ea(void 0!==e?e:s,{owner:t}))}}for(let n in i)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=ea(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){let i=void 0===this.latestValues[t]&&this.current?this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=i){let n,s;if("string"==typeof i&&(n=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n)||(s=i,/^0[^.\s]+$/u.test(s))))i=parseFloat(i);else{let n;n=i,!eo.find(G(n))&&L.test(e)&&(i=tI(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 tY),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=tz}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 ej=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eE=s.length;function eA(t,e,i){let{style:n,vars:a,transformOrigin:o}=t,l=!1,u=!1;for(let t in e){let i=e[t];if(r.has(t)){l=!0;continue}if(tn(t)){a[t]=i;continue}{let e=ej(i,W[t]);t.startsWith("origin")?(u=!0,o[t]=e):n[t]=e}}
1if(!e.transform&&(l||i?n.transform=function(t,e,i){let n="",r=!0;for(let a=0;a<eE;a++){let o=s[a],l=t[o];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!o.startsWith("scale");else{let t=parseFloat(l);u=o.startsWith("scale")?1===t:0===t}if(!u||i){let t=ej(l,W[o]);if(!u){r=!1;let e=eP[o]||o;n+=`${e}(${t}) `}i&&(e[o]=t)}}return n=n.trim(),i?n=i(e,r?"":n):r&&(n="none"),n}(e,t.transform,i):n.transform&&(n.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:i=0}=o;n.transformOrigin=`${t} ${e} ${i}`}}let eM={offset:"stroke-dashoffset",array:"stroke-dasharray"},eC={offset:"strokeDashoffset",array:"strokeDasharray"},eV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function eN(t,{attrX:e,attrY:i,attrScale:n,pathLength:s,pathSpacing:r=1,pathOffset:a=0,...o},l,u,h){if(eA(t,o,u),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=h?.transformBox??"fill-box",delete d.transformBox),eV))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!==s&&function(t,e,i=1,n=0,s=!0){t.pathLength=1;let r=s?eM:eC;t[r.offset]=`${-n}`,t[r.array]=`${e} ${i}`}(d,s,r,a,!1)}let eL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),eR=t=>"string"==typeof t&&"svg"===t.toLowerCase();function eD(t,{style:e,vars:i},n,s){let r,a=t.style;for(r in e)a[r]=e[r];for(r in s?.applyProjectionStyles(a,n),i)a.setProperty(r,i[r])}function eB(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let eF={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!w.test(t))return t;else t=parseFloat(t);let i=eB(t,e.target.x),n=eB(t,e.target.y);return`${i}% ${n}%`}},eO=(t,e,i)=>t+(e-t)*i,eI={borderRadius:{...eF,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eF,borderTopRightRadius:eF,borderBottomLeftRadius:eF,borderBottomRightRadius:eF,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let n=L.parse(t);if(n.length>5)return t;let s=L.createTransformer(t),r=+("number"!=typeof n[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;n[0+r]/=a,n[1+r]/=o;let l=eO(a,o,.5);return"number"==typeof n[2+r]&&(n[2+r]/=l),"number"==typeof n[3+r]&&(n[3+r]/=l),s(n)}}};function eW(t,{layout:e,layoutId:i}){return r.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!eI[t]||"opacity"===t)}function ez(t,e,i){let n=t.style,s=e?.style,r={};if(!n)return r;for(let e in n)(q(n[e])||s&&q(s[e])||eW(e,t)||i?.getValue(e)?.liveStyle!==void 0)&&(r[e]=n[e]);return r}function eU(t,e,i){let n=ez(t,e,i);for(let i in t)(q(t[i])||q(e[i]))&&(n[-1!==s.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=X}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(r.has(e)){let t=U(e);return t&&t.default||0}return e=eL.has(e)?e:eS(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return eU(t,e,i)}build(t,e,i){eN(t,e,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,e,i,n){for(let i in eD(t,e,void 0,n),e.attrs)t.setAttribute(eL.has(i)?i:eS(i),e.attrs[i])}mount(t){this.isSVGTag=eR(t.tagName),super.mount(t)}}function eH({top:t,left:e,right:i,bottom:n}){return{x:{min:e,max:i},y:{min:t,max:n}}}function eY(t){return void 0===t||1===t}function eX({scale:t,scaleX:e,scaleY:i}){return!eY(t)||!eY(e)||!eY(i)}function eq(t){return eX(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 eG(t,e,i,n,s){return void 0!==s&&(t=n+s*(t-n)),n+i*(t-n)+e}function e_(t,e=0,i=1,n,s){t.min=eG(t.min,e,i,n,s),t.max=eG(t.max,e,i,n,s)}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+=e,t.max+=e}function eQ(t,e,i,n,s=.5){let r=eO(t.min,t.max,s);e_(t,e,i,r,n)}function e0(t,e){return"string"==typeof t?parseFloat(t)/100*(e.max-e.min):t}function e1(t,e,i){let n=i??t;eQ(t.x,e0(e.x,n.x),e.scaleX,e.scale,e.originX),eQ(t.y,e0(e.y,n.y),e.scaleY,e.scale,e.originY)}function e2(t,e){return eH(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 e5 extends eT{constructor(){super(...arguments),this.type="html",this.renderInstance=eD}readValueFromInstance(t,e){if(r.has(e))return this.projection?.isProjecting?tg(e):((t,e)=>{let{transform:i="none"}=getComputedStyle(t);return ty(i,e)})(t,e);{let i=window.getComputedStyle(t),n=(tn(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return e2(t,e)}build(t,e,i){eA(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return ez(t,e,i)}}var e6=t.i(201683);let e3=["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(e3.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var e9=t.i(660806);let e8=(0,e6.createContext)({}),e7=(0,e6.createContext)({strict:!1}),it=(0,e6.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",0,it],497004);let ie=(0,e6.createContext)({});function ii(t){return Array.isArray(t)?t.join(" "):t}let is=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ir(t,e,i){for(let n in e)q(e[n])||eW(n,i)||(t[n]=e[n])}let ia=()=>({...is(),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 il(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 iu=t=>!il(t);try{J=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default,"function"==typeof J&&(iu=t=>t.startsWith("on")?!il(t):J(t))}catch{}function ih(t){return q(t)?t.get():t}let id=(0,e6.createContext)(null);function ic(t){let e=(0,e6.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["useConstant",0,ic],261064);let im=t=>(e,i)=>{let n=(0,e6.useContext)(ie),s=(0,e6.useContext)(id),r=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e},i,n,s){return{latestValues:function(t,e,i,n){let s={},r=n(t,{});for(let t in r)s[t]=ih(r[t]);let{initial:a,animate:o}=t,l=em(t),u=ep(t);e&&u&&!l&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===o&&(o=e.animate));let h=!!i&&!1===i.initial,d=(h=h||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!eu(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=h?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(i,n,s,t),renderState:e()}})(t,e,n,s);return i?r():ic(r)},ip=im({scrapeMotionValuesFromProps:ez,createRenderState:is}),ig=im({scrapeMotionValuesFromProps:eU,createRenderState:ia}),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,e6.createContext)({});function iT(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let iS="u">typeof window?e6.useLayoutEffect:e6.useEffect;function ij(t,{forwardMotionProps:e=!1,type:i}={},n,s){n&&function(t){let e=ix();for(let i in t)e[i]={...e[i],...t[i]};ew=e}(n);let r=i?"svg"===i:e4(t),a=r?ig:ip;function o(i,n){var o;let l,u,h,d={...(0,e6.useContext)(it),...i,layoutId:function({layoutId:t}){let e=(0,e6.useContext)(e8).id;return e&&void 0!==t?e+"-"+t:t}(i)},{isStatic:c}=d,m=function(t){let{initial:e,animate:i}=function(t,e){if(em(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,e6.useContext)(ie));return(0,e6.useMemo)(()=>({initial:e,animate:i}),[ii(e),ii(i)])}(i),p=a(i,c);if(!c&&"u">typeof window){(0,e6.useContext)(e7).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,m.visualElement=function(t,e,i,n,s,r){let{visualElement:a}=(0,e6.useContext)(ie),o=(0,e6.useContext)(e7),l=(0,e6.useContext)(id),u=(0,e6.useContext)(it),h=u.reducedMotion,d=u.skipAnimations,c=(0,e6.useRef)(null),m=(0,e6.useRef)(!1);n=n||o.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:a,props:i,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:h,skipAnimations:d,isSVG:r}),m.current&&c.current&&(c.current.manuallyAnimateOnMount=!0));let p=c.current,f=(0,e6.useContext)(ik);p&&!p.projection&&s&&("html"===p.type||"svg"===p.type)&&function(t,e,i,n){let{layoutId:s,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u,layoutAnchor:h,layoutCrossfade:d}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:s,layout:r,alwaysMeasureLayout:!!a||o&&iT(o),visualElement:t,animationType:"string"==typeof r?r:"both",initialPromotionConfig:n,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:h})}(c.current,i,s,f);let g=(0,e6.useRef)(!1);(0,e6.useInsertionEffect)(()=>{p&&g.current&&p.update(i,l)});let y=i[iw],v=(0,e6.useRef)(!!y&&"u">typeof window&&!window.MotionHandoffIsComplete?.(y)&&window.MotionHasOptimisedAnimation?.(y));return iS(()=>{m.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),v.current&&p.animationState&&p.animationState.animateChanges())}),(0,e6.useEffect)(()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(y)}),v.current=!1),p.enteringChildren=void 0)}),p}(t,p,d,s,e.ProjectionNode,r)}return(0,e9.jsxs)(ie.Provider,{value:m,children:[l&&m.visualElement?(0,e9.jsx)(l,{visualElement:m.visualElement,...d}):null,function(t,e,i,{latestValues:n},s,r=!1,a){let o=(a??e4(t)?function(t,e,i,n){let s=(0,e6.useMemo)(()=>{let i=ia();return eN(i,e,eR(n),t.transformTemplate,t.style),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};ir(e,t.style,t),s.style={...e,...s.style}}return s}:function(t,e){let i,n,s={},r=(i=t.style||{},ir(n={},i,t),Object.assign(n,function({transformTemplate:t},e){return(0,e6.useMemo)(()=>{let i=is();return eA(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),n);return t.drag&&!1!==t.dragListener&&(s.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(s.tabIndex=0),s.style=r,s})(e,n,s,t),l=function(t,e,i){let n={};for(let s in t)("values"!==s||"object"!=typeof t.values)&&!q(t[s])&&(iu(s)||!0===i&&il(s)||!e&&!il(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}(e,"string"==typeof t,r),u=t!==e6.Fragment?{...l,...o,ref:i}:{},{children:h}=e,d=(0,e6.useMemo)(()=>q(h)?h.get():h,[h]);return(0,e6.createElement)(t,{...u,children:d})}(t,i,(o=m.visualElement,u=(0,e6.useRef)(n),(0,e6.useInsertionEffect)(()=>{u.current=n}),h=(0,e6.useRef)(null),(0,e6.useCallback)(t=>{t&&p.onMount?.(t);let e=u.current;if("function"==typeof e)if(t){let i=e(t);"function"==typeof i&&(h.current=i)}else h.current?(h.current(),h.current=null):e(t);else e&&(e.current=t);o&&(t?o.mount(t):o.unmount())}
1,[o])),p,c,e,r)]})}o.displayName=`motion.${"string"==typeof t?t:`create(${t.displayName??t.name??""})`}`;let l=(0,e6.forwardRef)(o);return l[ib]=t,l}t.s(["useIsomorphicLayoutEffect",0,iS],45427);class iP{constructor(t){this.isMounted=!1,this.node=t}update(){}}function iE(t,e,i){let n=t.getProps();return ex(n,e,void 0!==i?i:n.custom,t)}function iA(t,e){if(t?.inherit&&e){let{inherit:i,...n}=t;return{...e,...n}}return t}function iM(t,e){let i=t?.[e]??t?.default??t;return i!==t?iA(i,t):i}let iC=t=>Array.isArray(t);function iV(t,e){let i=t.getValue("willChange");if(q(i)&&i.add)return i.add(e);if(!i&&tS.WillChange){let i=new tS.WillChange("auto");t.addValue("willChange",i),i.add(e)}}let iN=(t,e)=>i=>e(t(i)),iL=(...t)=>t.reduce(iN);function iR(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 iD(t,e){return i=>i>0?e:t}let iB=(t,e,i)=>{let n=t*t,s=i*(e*e-n)+n;return s<0?0:Math.sqrt(s)},iF=[y,g,j];function iO(t){let e=iF.find(e=>e.test(t));if(tt(!!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===j&&(i=function({hue:t,saturation:e,lightness:i,alpha:n}){t/=360,i/=100;let s=0,r=0,a=0;if(e/=100){let n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;s=iR(o,n,t+1/3),r=iR(o,n,t),a=iR(o,n,t-1/3)}else s=r=a=i;return{red:Math.round(255*s),green:Math.round(255*r),blue:Math.round(255*a),alpha:n}}(i)),i}let iI=(t,e)=>{let i=iO(t),n=iO(e);if(!i||!n)return iD(t,e);let s={...i};return t=>(s.red=iB(i.red,n.red,t),s.green=iB(i.green,n.green,t),s.blue=iB(i.blue,n.blue,t),s.alpha=eO(i.alpha,n.alpha,t),g.transform(s))},iW=new Set(["none","hidden"]);function iz(t,e){return i=>eO(t,e,i)}function iU(t){return"number"==typeof t?iz:"string"==typeof t?tr(t)?iD:P.test(t)?iI:iY:Array.isArray(t)?i$:"object"==typeof t?P.test(t)?iI:iH:iD}function i$(t,e){let i=[...t],n=i.length,s=t.map((t,i)=>iU(t)(t,e[i]));return t=>{for(let e=0;e<n;e++)i[e]=s[e](t);return i}}function iH(t,e){let i={...t,...e},n={};for(let s in i)void 0!==t[s]&&void 0!==e[s]&&(n[s]=iU(t[s])(t[s],e[s]));return t=>{for(let e in n)i[e]=n[e](t);return i}}let iY=(t,e)=>{let i=L.createTransformer(e),n=V(t),s=V(e);if(!(n.indexes.var.length===s.indexes.var.length&&n.indexes.color.length===s.indexes.color.length&&n.indexes.number.length>=s.indexes.number.length))return tt(!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"),iD(t,e);if(iW.has(t)&&!s.values.length||iW.has(e)&&!n.values.length)return iW.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return iL(i$(function(t,e){let i=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let r=e.types[s],a=t.indexes[r][n[r]],o=t.values[a]??0;i[s]=o,n[r]++}return i}(n,s),s.values),i)};function iX(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eO(t,e,i):iU(t)(t,e)}let iq=t=>{let e=({timestamp:e})=>t(e);return{start:(t=!0)=>tE.update(e,t),stop:()=>tA(e),now:()=>tM.isProcessing?tM.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}let iG=.01,i_=2,iZ=.005,iJ=.5;function iQ(t,e){return t*Math.sqrt(1-e*e)}let i0=["duration","bounce"],i1=["stiffness","damping","mass"];function i2(t,e){return e.some(e=>void 0!==t[e])}function i5(t=.3,e=.3){let i,n,s,r,o,l,u="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:h,restDelta:d}=u,c=u.keyframes[0],m=u.keyframes[u.keyframes.length-1],p={done:!1,value:c},{stiffness:f,damping:g,mass:y,duration:v,velocity:x,isResolvedFromDuration:b}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!i2(t,i1)&&i2(t,i0))if(e.velocity=0,t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),n=i*i,s=2*a(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:1,stiffness:n,damping:s}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:n=1}){let s,r;tt(t<=tU(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let o=1-e;o=a(.05,1,o),t=a(.01,10,t/1e3),o<1?(s=e=>{let n=e*o,s=n*t;return .001-(n-i)/iQ(e,o)*Math.exp(-s)},r=e=>{let n=e*o*t,r=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-n),l=iQ(Math.pow(e,2),o);return(n*i+i-r)*a*(-s(e)+.001>0?-1:1)/l}):(s=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),r=e=>t*t*(i-e)*Math.exp(-e*t));
1let l=function(t,e,i){let n=i;for(let i=1;i<12;i++)n-=t(n)/e(n);return n}(s,r,5/t);if(t=tU(t),isNaN(l))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(l,2)*n;return{stiffness:e,damping:2*o*Math.sqrt(n*e),duration:t}}}({...t,velocity:0});(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...u,velocity:-((u.velocity||0)/1e3)}),w=x||0,k=g/(2*Math.sqrt(f*y)),T=m-c,S=Math.sqrt(f/y)/1e3,j=5>Math.abs(T);if(h||(h=j?iG:i_),d||(d=j?iZ:iJ),k<1)s=iQ(S,k),r=(w+k*S*T)/s,i=t=>m-Math.exp(-k*S*t)*(r*Math.sin(s*t)+T*Math.cos(s*t)),o=k*S*r+T*s,l=k*S*T-r*s,n=t=>Math.exp(-k*S*t)*(o*Math.sin(s*t)+l*Math.cos(s*t));else if(1===k){i=t=>m-Math.exp(-S*t)*(T+(w+S*T)*t);let t=w+S*T;n=e=>Math.exp(-S*e)*(S*t*e-w)}else{let t=S*Math.sqrt(k*k-1);i=e=>{let i=Math.exp(-k*S*e),n=Math.min(t*e,300);return m-i*((w+k*S*T)*Math.sinh(n)+t*T*Math.cosh(n))/t};let e=(w+k*S*T)/t,s=k*S*e-T*t,r=k*S*T-e*t;n=e=>{let i=Math.exp(-k*S*e),n=Math.min(t*e,300);return i*(s*Math.sinh(n)+r*Math.cosh(n))}}let P={calculatedDuration:b&&v||null,velocity:t=>tU(n(t)),next:t=>{if(!b&&k<1){let e=Math.exp(-k*S*t),i=Math.sin(s*t),n=Math.cos(s*t),a=m-e*(r*i+T*n);return p.done=Math.abs(tU(e*(o*i+l*n)))<=h&&Math.abs(m-a)<=d,p.value=p.done?m:a,p}let e=i(t);return b?p.done=t>=v:p.done=Math.abs(tU(n(t)))<=h&&Math.abs(m-e)<=d,p.value=p.done?m:e,p},toString:()=>{let t=Math.min(iK(P),2e4),e=t6(e=>P.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return P}function i6(t,e,i){let n=Math.max(e-5,0);return en(i-t(n),e-n)}function i3({keyframes:t,velocity:e=0,power:i=.8,timeConstant:n=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c,m=t[0],p={done:!1,value:m},f=i*e,g=m+f,y=void 0===a?g:a(g);y!==g&&(f=y-m);let v=t=>-f*Math.exp(-t/n),x=t=>y+v(t),b=t=>{let e=v(t),i=x(t);p.done=Math.abs(e)<=u,p.value=p.done?y:i},w=t=>{let e;if(e=p.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=i5({keyframes:[p.value,(i=p.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:i6(x,t,p.value),damping:s,stiffness:r,restDelta:u,restSpeed:h})}};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),p)}}}i5.applyToOptions=t=>{let e=function(t,e=100,i){let n=i({...t,keyframes:[0,e]}),s=Math.min(iK(n),2e4);return{type:"keyframes",ease:t=>n.next(s*t).value/e,duration:s/1e3}}(t,100,i5);return t.ease=e.ease,t.duration=tU(e.duration),t.type="keyframes",t};let i4=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function i9(t,e,i,n){return t===e&&i===n?tT:s=>0===s||1===s?s:i4(function(t,e,i,n,s){let r,a,o=0;do(r=i4(a=e+(i-e)/2,n,s)-t)>0?i=a:e=a;while(Math.abs(r)>1e-7&&++o<12)return a}(s,0,1,t,i),e,n)}let i8=i9(.42,0,1,1),i7=i9(0,0,.58,1),nt=i9(.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=i9(.33,1.53,.69,.99),ns=ni(nn),nr=ne(ns),na=t=>t>=1?1:(t*=2)<1?.5*ns(t):.5*(2-Math.pow(2,-10*(t-1))),no=t=>1-Math.sin(Math.acos(t)),nl=ni(no),nu=ne(no),nh={linear:tT,easeIn:i8,easeInOut:nt,easeOut:i7,circIn:no,circInOut:nu,circOut:nl,backIn:ns,backInOut:nr,backOut:nn,anticipate:na},nd=t=>{if(t2(t)){te(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,i,n,s]=t;return i9(e,i,n,s)}return"string"==typeof t?(te(void 0!==nh[t],`Invalid easing type '${t}'`,"invalid-easing-type"),nh[t]):t},nc=(t,e,i)=>{let n=e-t;return 0===n?1:(i-t)/n};function nm(t,e,{clamp:i=!0,ease:n,mixer:s}={}){let r=t.length;if(te(r===e.length,"Both input and output ranges must be the same length","range-length"),1===r)return()=>e[0];if(2===r&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());let l=function(t,e,i){let n=[],s=i||tS.mix||iX,r=t.length-1;for(let i=0;i<r;i++){let r=s(t[i],t[i+1]);e&&(r=iL(Array.isArray(e)?e[i]||tT:e,r)),n.push(r)}return n}(e,n,s),u=l.length,h=i=>{if(o&&i<t[0])return e[0];let n=0;if(u>1)for(;n<t.length-2&&!(i<t[n+1]);n++);let s=nc(t[n],t[n+1],i);return l[n](s)};return i?e=>h(a(t[0],t[r-1],e)):h}function np(t){let e=[0];return!function(t,e){let i=t[t.length-1];for(let n=1;n<=e;
1n++){let s=nc(0,e,n);t.push(eO(i,1,s))}}(e,t.length-1),e}function nf({duration:t=300,keyframes:e,times:i,ease:n="easeInOut"}){var s;let r=Array.isArray(n)&&"number"!=typeof n[0]?n.map(nd):nd(n),a={done:!1,value:e[0]},o=nm((s=i&&i.length===e.length?i:np(e),s.map(e=>e*t)),e,{ease:Array.isArray(r)?r:e.map(()=>r||nt).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(a.value=o(e),a.done=e>=t,a)}}t.s(["progress",0,nc],241058),t.s(["interpolate",0,nm],498920),t.s(["defaultOffset",0,np],805639);let ng={decay:i3,inertia:i3,tween:nf,keyframes:nf,spring:i5};function ny(t){"string"==typeof t.type&&(t.type=ng[t.type])}let nv=t=>t/100;class nx extends t0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:t}=this.options;t&&t.updatedAt!==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;ny(t);let{type:e=nf,repeat:i=0,repeatDelay:n=0,repeatType:s,velocity:r=0}=t,{keyframes:a}=t,o=e||nf;o!==nf&&"number"!=typeof a[0]&&(this.mixKeyframes=iL(nv,iX(a[0],a[1])),a=[0,100]);let l=o({...t,keyframes:a});"mirror"===s&&(this.mirroredGenerator=o({...t,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=iK(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(i+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){let i,{generator:n,totalDuration:s,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:u}=this;if(null===this.startTime)return n.next(0);let{delay:h=0,keyframes:d,repeat:c,repeatType:m,repeatDelay:p,type:f,onUpdate:g,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-s/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?v<0:v>s;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=s);let b=this.currentTime,w=n;if(c){let t=Math.min(this.currentTime,s)/l,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===m?(i=1-i,p&&(i-=p/l)):"mirror"===m&&(w=o)),b=a(0,1,i)*l}x?(this.delayState.value=d[0],i=this.delayState):i=w.next(b),r&&!x&&(i.value=r(i.value));let{done:k}=i;x||null===u||(k=this.playbackSpeed>=0?this.currentTime>=s:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return T&&f!==i3&&(i.value=tQ(d,this.options,y,this.speed)),g&&g(i.value),T&&this.finish(),i}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:t=0}=this.options||{};return this.duration+t/1e3}get time(){return this.currentTime/1e3}set time(t){t=tU(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){let t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);let e=this.generator.next(t).value;return i6(t=>this.generator.next(t).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(ei.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:t=iq,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",0,nx],823864);let nb={anticipate:na,backInOut:nr,circInOut:nu};class nw extends t8{constructor(t){!function(t){"string"==typeof t.ease&&t.ease in nb&&(t.ease=nb[t.ease])}(t),ny(t),super(t),void 0!==t.startTime&&!1!==t.autoplay&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){let{motionValue:e,onUpdate:i,onComplete:n,element:s,...r}=this.options;if(!e)return;if(void 0!==t)return void e.set(t);let o=new nx({...r,autoplay:!1}),l=Math.max(10,ei.now()-this.startTime),u=a(0,10,l-10),h=o.sample(l).value,{name:d}=this.options;s&&d&&tX(s,d,h),e.setWithVelocity(o.sample(Math.max(0,l-u)).value,h,u),o.stop()}}let nk=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(L.test(t)||"0"===t)&&!t.startsWith("url("));function nT(t){t.duration=0,t.type="keyframes"}let nS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,nj=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),nP=tq(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));
1class nE extends t0{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:r="loop",keyframes:a,name:o,motionValue:l,element:u,...h}){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:s,repeatType:r,name:o,motionValue:l,element:u,...h},c=u?.KeyframeResolver||tF;this.keyframeResolver=new c(a,(t,e,i)=>this.onKeyframesResolved(t,e,d,!i),o,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,e,i,n){let s;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:u,onUpdate:h}=i;this.resolvedAt=ei.now();let d=!0;!function(t,e,i,n){let s=t[0];if(null===s)return!1;if("display"===e||"visibility"===e)return!0;let r=t[t.length-1],a=nk(s,e),o=nk(r,e);return tt(a===o,`You are trying to animate ${e} from "${s}" to "${r}". "${a?r:s}" is not an animatable value.`,"value-not-animatable"),!!a&&!!o&&(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||t9(i))&&n)}(t,r,a,o)&&(d=!1,(tS.instantAnimations||!l)&&h?.(tQ(t,i,e)),t[0]=t[t.length-1],nT(i),i.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...i,keyframes:t},m=d&&!u&&function(t){let{motionValue:e,name:i,repeatDelay:n,repeatType:s,damping:r,type:a,keyframes:o}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=e.owner.getProps();return nP()&&i&&(t7.has(i)||nj.has(i)&&function(t){for(let e=0;e<t.length;e++)if("string"==typeof t[e]&&nS.test(t[e]))return!0;return!1}(o))&&("transform"!==i||!u)&&!l&&!n&&"mirror"!==s&&0!==r&&"inertia"!==a}(c),p=c.motionValue?.owner?.current;if(m)try{s=new nw({...c,element:p})}catch{s=new nx(c)}else s=new nx(c);s.finished.then(()=>{this.notifyFinished()}).catch(tT),this.pendingTimeline&&(this.stopTimeline=s.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=s}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tR=!0,tB(),tD(),tR=!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},nC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nV=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),nN=(t,e,i,n={},s,a)=>o=>{let l=iM(n,t)||{},u=l.delay||n.delay||0,{elapsed:h=0}=n;h-=tU(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-h,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:a?void 0:s};!function(t){for(let e in t)if(!nV.has(e))return!0;return!1}(l)&&Object.assign(d,((t,{keyframes:e})=>e.length>2?nM:r.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:nA:nC)(t,d)),d.duration&&(d.duration=tU(d.duration)),d.repeatDelay&&(d.repeatDelay=tU(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(nT(d),0===d.delay&&(c=!0)),(tS.instantAnimations||tS.skipAnimations||s?.shouldSkipAnimations)&&(c=!0,nT(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,c&&!a&&void 0!==e.get()){let t=tQ(d.keyframes,l);if(void 0!==t)return void tE.update(()=>{d.onUpdate(t),d.onComplete()})}return l.isSync?new nx(d):new nE(d)};function nL(t,e,{delay:i=0,transitionOverride:n,type:s}={}){let{transition:r,transitionEnd:a,...o}=e,l=t.getDefaultTransition();r=r?iA(r,l):l;let u=r?.reduceMotion;n&&(r=n);let h=[],d=s&&t.animationState&&t.animationState.getState()[s];for(let e in o){let n=t.getValue(e,t.latestValues[e]??null),s=o[e];if(void 0===s||d&&function({protectedKeys:t,needsAnimating:e},i){let n=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,n}(d,e))continue;let a={delay:i,...iM(r||{},e)},l=n.get();if(void 0!==l&&!n.isAnimating()&&!Array.isArray(s)&&s===l&&!a.velocity){tE.update(()=>n.set(s));continue}let c=!1;if(window.MotionHandoffAnimation){let i=t.props[iw];
1if(i){let t=window.MotionHandoffAnimation(i,e,tE);null!==t&&(a.startTime=t,c=!0)}}iV(t,e);let m=u??t.shouldReduceMotion;n.start(nN(e,n,s,m&&K.has(e)?{type:!1}:a,t,c));let p=n.animation;p&&h.push(p)}if(a){let e=()=>tE.update(()=>{a&&function(t,e){let{transitionEnd:i={},transition:n={},...s}=iE(t,e)||{};for(let e in s={...s,...i}){var r;let i=iC(r=s[e])?r[r.length-1]||0:r;t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,ea(i))}}(t,a)});h.length?Promise.all(h).then(e):e()}return h}function nR(t,e,i,n=0,s=1){let r=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),a=t.size,o=(a-1)*n;return"function"==typeof i?i(r,a):1===s?r*n:o-r*n}function nD(t,e,i={}){let n=iE(t,e,"exit"===i.type?t.presenceContext?.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let r=n?()=>Promise.all(nL(t,n,i)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=s;return function(t,e,i=0,n=0,s=0,r=1,a){let o=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),o.push(nD(l,e,{...a,delay:i+("function"==typeof n?0:n)+nR(t.variantChildren,l,n,s,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(o)}(t,e,n,r,a,o,i)}:()=>Promise.resolve(),{when:o}=s;if(!o)return Promise.all([r(),a(i.delay)]);{let[t,e]="beforeChildren"===o?[r,a]:[a,r];return t().then(()=>e())}}let nB=ec.length;function nF(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 nO=[...ed].reverse(),nI=ed.length;function nW(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function nz(){return{animate:nW(!0),whileInView:nW(),whileHover:nW(),whileTap:nW(),whileDrag:nW(),whileFocus:nW(),exit:nW()}}let nU=0;function n$(t){return[t("x"),t("y")]}function nH(t,e,i,n={passive:!0}){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i)}let nY={x:!1,y:!1};function nX(t){return t.max-t.min}function nq(t,e,i,n=.5){t.origin=n,t.originPoint=eO(e.min,e.max,t.origin),t.scale=nX(i)/nX(e),t.translate=eO(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nK(t,e,i,n){nq(t.x,e.x,i.x,n?n.originX:void 0),nq(t.y,e.y,i.y,n?n.originY:void 0)}function nG(t,e,i,n=0){t.min=(n?eO(i.min,i.max,n):i.min)+e.min,t.max=t.min+nX(e)}function n_(t,e,i,n=0){let s=n?eO(i.min,i.max,n):i.min;t.min=e.min-s,t.max=t.min+nX(e)}function nZ(t,e,i,n){n_(t.x,e.x,i.x,n?.x),n_(t.y,e.y,i.y,n?.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 s=i?.[t]??n.querySelectorAll(t);return s?Array.from(s):[]}return Array.from(t).filter(t=>null!=t)}let n1=new WeakMap,n2=(t,e,i)=>(n,s)=>s&&s[0]?s[0][t+"Size"]:nQ(n)&&"getBBox"in n?n.getBBox()[e]:n[i],n5=n2("inline","width","offsetWidth"),n6=n2("block","height","offsetHeight");function n3({target:t,borderBoxSize:e}){n1.get(t)?.forEach(i=>{i(t,{get width(){return n5(t,e)},get height(){return n6(t,e)}})})}function n4(t){t.forEach(n3)}let n9=new Set;function n8(t,e){let s;return"function"==typeof t?(n9.add(t),n||(n=()=>{let t={get width(){return window.innerWidth},get height(){return window.innerHeight}};n9.forEach(e=>e(t))},window.addEventListener("resize",n)),()=>{n9.delete(t),n9.size||"function"!=typeof n||(window.removeEventListener("resize",n),n=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(n4)),(s=n0(t)).forEach(t=>{let n=n1.get(t);n||(n=new Set,n1.set(t,n)),n.add(e),i?.observe(t)}),()=>{s.forEach(t=>{let n=n1.get(t);n?.delete(e),n?.size||i?.unobserve(t)})})}t.s(["resize",0,n8],460208);let n7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),st=new Set(["INPUT","SELECT","TEXTAREA"]),se=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function si(t){return{point:{x:t.pageX,y:t.pageY}}}
1function sn(t,e,i,n){return nH(t,e,t=>se(t)&&i(t,si(t)),n)}let ss=({current:t})=>t?t.ownerDocument.defaultView:null,sr=(t,e)=>Math.abs(t-e),sa=new Set(["auto","scroll"]);class so{constructor(t,e,{transformPagePoint:i,contextWindow:n=window,dragSnapToOrigin:s=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=t=>{this.handleScroll(t.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sl(this.lastRawMoveEventInfo,this.transformPagePoint));let i=sh(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,s=(t=i.offset,e={x:0,y:0},Math.sqrt(sr(t.x,e.x)**2+sr(t.y,e.y)**2)>=this.distanceThreshold);if(!n&&!s)return;let{point:r}=i,{timestamp:a}=tM;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastRawMoveEventInfo=e,this.lastMoveEventInfo=sl(e,this.transformPagePoint),tE.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:n,resumeAnimation:s}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&s&&s(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=sh("pointercancel"===t.type?this.lastMoveEventInfo:sl(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,r),n&&n(t,r)},!se(t))return;this.dragSnapToOrigin=s,this.handlers=e,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=n||window;const o=sl(si(t),this.transformPagePoint),{point:l}=o,{timestamp:u}=tM;this.history=[{...l,timestamp:u}];const{onSessionStart:h}=e;h&&h(t,sh(o,this.history)),this.removeListeners=iL(sn(this.contextWindow,"pointermove",this.handlePointerMove),sn(this.contextWindow,"pointerup",this.handlePointerUp),sn(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(t){let e=t.parentElement;for(;e;){let t=getComputedStyle(e);(sa.has(t.overflowX)||sa.has(t.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){let e=this.scrollPositions.get(t);if(!e)return;let i=t===window,n=i?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:n.x-e.x,y:n.y-e.y};(0!==s.x||0!==s.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,n),tE.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tA(this.updatePoint)}}function sl(t,e){return e?{point:e(t.point)}:t}function su(t,e){return{x:t.x-e.x,y:t.y-e.y}}function sh({point:t},e){return{point:t,delta:su(t,sd(e)),offset:su(t,e[0]),velocity:function(t){if(t.length<2)return{x:0,y:0};let e=t.length-1,i=null,n=sd(t);for(;e>=0&&(i=t[e],!(n.timestamp-i.timestamp>tU(.1)));)e--;if(!i)return{x:0,y:0};i===t[0]&&t.length>2&&n.timestamp-i.timestamp>2*tU(.1)&&(i=t[1]);let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let r={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(e)}}function sd(t){return t[t.length-1]}function sc(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 sm(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 sp(t,e,i){return{min:sf(t,e),max:sf(t,i)}}function sf(t,e){return"number"==typeof t?t:t[e]||0}let sg=new WeakMap;class sy{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=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:i}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let s=t=>{e&&this.snapToCursor(si(t).point),this.stopAnimation()},r=(t,e)=>{let{drag:i,dragPropagation:n,onDragStart:s}=this.getProps();if(i&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nY[t])return null;else return nY[t]=!0,()=>{nY[t]=!1};return nY.x||nY.y?null:(nY.x=nY.y=!0,()=>{nY.x=nY.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),n$(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];
1n&&(e=nX(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),s&&tE.update(()=>s(t,e),!1,!0),iV(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:i,dragDirectionLock:n,onDirectionLock:s,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=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}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),r&&tE.update(()=>r(t,e),!1,!0)},o=(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:u}=this.getProps();this.panSession=new so(t,{onSessionStart:s,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:i,contextWindow:ss(this.visualElement),element:this.visualElement.current})}stop(t,e){let i=t||this.latestPointerEvent,n=e||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!n||!i)return;let{velocity:r}=n;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&tE.postRender(()=>a(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||!sx(t,n,this.currentDirection))return;let s=this.getAxisMotionValue(t),r=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(r=function(t,{min:e,max:i},n){return void 0!==e&&t<e?t=n?eO(e,t,n.min):Math.max(t,e):void 0!==i&&t>i&&(t=n?eO(i,t,n.max):Math.min(t,i)),t}(r,this.constraints[t],this.elastic[t])),s.set(r)}resolveConstraints(){let{dragConstraints:t,dragElastic:e}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,n=this.constraints;t&&iT(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(t,{top:e,left:i,bottom:n,right:s}){return{x:sc(t.x,i,s),y:sc(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:sp(t,"left","right"),y:sp(t,"top","bottom")}}(e),n!==this.constraints&&!iT(t)&&i&&this.constraints&&!this.hasMutatedConstraints&&n$(t=>{var e,n;let s;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=i.layoutBox[t],n=this.constraints[t],s={},void 0!==n.min&&(s.min=n.min-e.min),void 0!==n.max&&(s.max=n.max-e.min),s))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iT(e))return!1;let n=e.current;te(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let r=function(t,e,i){let n=e2(t,i),{scroll:s}=e;return s&&(eJ(n.x,s.offset.x),eJ(n.y,s.offset.y)),n}(n,s.root,this.visualElement.getTransformPagePoint()),a=(t=s.layout.layoutBox,{x:sm(t.x,r.x),y:sm(t.y,r.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=eH(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:n,dragTransition:s,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(n$(a=>{if(!sx(a,e,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return iV(this.visualElement,t),i.start(nN(t,i,0,e,this.visualElement,!1))}stopAnimation(){n$(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){n$(e=>{let{drag:i}=this.getProps();if(!sx(e,i,this.currentDirection))return;let{projection:n}=this.visualElement,s=this.getAxisMotionValue(e);if(n&&n.layout){let{min:i,max:r}=n.layout.layoutBox[e],a=s.get()||0;s.set(t[e]-eO(i,r,.5)+a)}})}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};n$(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,s;let r,o,l,u=e.get();n[t]=(i={min:u,max:u},s=this.constraints[t],r=.5,o=nX(i),(l=nX(s))>o?r=nc(s.min,s.max-o,i.min):o>l&&(r=nc(i.min,i.max-l,s.min)),a(0,1,r))}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),n$(e=>{if(!sx(e,t,null))return;let i=this.getAxisMotionValue(e),{min:s,max:r}=this.constraints[e];i.set(eO(s,r,n[e]))}),this.visualElement.render()}addListeners(){let t;if(!this.visualElement.current)return;sg.set(this.visualElement,this);let e=this.visualElement.current,i=sn(e,"pointerdown",t=>{let{drag:i,dragListener:n=!0}
1=this.getProps(),s=t.target,r=s!==e&&(st.has(s.tagName)||!0===s.isContentEditable);i&&n&&!r&&this.start(t)}),n=()=>{var i,n,s;let r,a,{dragConstraints:o}=this.getProps();iT(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),t||(i=e,n=o.current,r=n8(i,sv(s=()=>this.scalePositionWithinConstraints())),a=n8(n,sv(s)),t=()=>{r(),a()}))},{projection:s}=this.visualElement,r=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),tE.read(n);let a=nH(window,"resize",()=>this.scalePositionWithinConstraints()),o=s.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n$(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),t&&t()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:n=!1,dragConstraints:s=!1,dragElastic:r=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:n,dragConstraints:s,dragElastic:r,dragMomentum:a}}}function sv(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function sx(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let sb=t=>(e,i)=>{t&&tE.update(()=>t(e,i),!1,!0)},sw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sk=e6;let sT=!1;class sS extends sk.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:n}=this.props,{projection:s}=t;s&&(e.group&&e.group.add(s),i&&i.register&&n&&i.register(s),sT&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),sw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:n,isPresent:s}=this.props,{projection:r}=i;return r&&(r.isPresent=s,t.layoutDependency!==e&&r.setOptions({...r.options,layoutDependency:e}),sT=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==s?r.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?r.promote():r.relegate()||tE.postRender(()=>{let t=r.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:t,layoutAnchor:e}=this.props,{projection:i}=t;i&&(i.options.layoutAnchor=e,i.root.didUpdate(),et.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:n}=t;sT=!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 sj(t){let[e,i]=function(t=!0){let e=(0,e6.useContext)(id);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:n,register:s}=e,r=(0,e6.useId)();(0,e6.useEffect)(()=>{if(t)return s(r)},[t]);let a=(0,e6.useCallback)(()=>t&&n&&n(r),[r,n,t]);return!i&&n?[!1,a]:[!0]}(),n=(0,sk.useContext)(e8);return(0,e9.jsx)(sS,{...t,layoutGroup:n,switchLayoutGroup:(0,sk.useContext)(ik),isPresent:e,safeToRemove:i})}let sP=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],sE=sP.length,sA=t=>"string"==typeof t?parseFloat(t):t,sM=t=>"number"==typeof t||w.test(t);function sC(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let sV=sL(0,.5,nl),sN=sL(.5,.95,tT);
1function sL(t,e,i){return n=>n<t?0:n>e?1:i(nc(t,e,n))}function sR(t,e){t.min=e.min,t.max=e.max}function sD(t,e){sR(t.x,e.x),sR(t.y,e.y)}function sB(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function sF(t,e,i,n,s){return t-=e,t=n+1/i*(t-n),void 0!==s&&(t=n+1/s*(t-n)),t}function sO(t,e,[i,n,s],r,a){!function(t,e=0,i=1,n=.5,s,r=t,a=t){if(b.test(e)&&(e=parseFloat(e),e=eO(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=eO(r.min,r.max,n);t===r&&(o-=e),t.min=sF(t.min,e,i,o,s),t.max=sF(t.max,e,i,o,s)}(t,e[i],e[n],e[s],e.scale,r,a)}let sI=["x","scaleX","originX"],sW=["y","scaleY","originY"];function sz(t,e,i,n){sO(t.x,e,sI,i?i.x:void 0,n?n.x:void 0),sO(t.y,e,sW,i?i.y:void 0,n?n.y:void 0)}function sU(t){return 0===t.translate&&1===t.scale}function s$(t){return sU(t.x)&&sU(t.y)}function sH(t,e){return t.min===e.min&&t.max===e.max}function sY(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function sX(t,e){return sY(t.x,e.x)&&sY(t.y,e.y)}function sq(t){return nX(t.x)/nX(t.y)}function sK(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class sG{constructor(){this.members=[]}add(t){t$(this.members,t);for(let e=this.members.length-1;e>=0;e--){let i=this.members[e];if(i===t||i===this.lead||i===this.prevLead)continue;let n=i.instance;n&&!1!==n.isConnected||i.snapshot||(tH(this.members,i),i.unmount())}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){for(let e=this.members.indexOf(t)-1;e>=0;e--){let t=this.members[e];if(!1!==t.isPresent&&t.instance?.isConnected!==!1)return this.promote(t),!0}return!1}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();let{layoutDependency:n}=i.options,{layoutDependency:s}=t.options;(void 0===n||n!==s)&&(t.resumeFrom=i,e&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),!1===t.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let s_=(t,e)=>t.depth-e.depth;class sZ{constructor(){this.children=[],this.isDirty=!1}add(t){t$(this.children,t),this.isDirty=!0}remove(t){tH(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s_),this.isDirty=!1,this.children.forEach(t)}}let sJ=["","X","Y","Z"],sQ=0;function s0(t,e,i,n){let{latestValues:s}=e;s[t]&&(i[t]=s[t],e.setStaticValue(t,0),n&&(n[t]=0))}function s1({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(t={},i=e?.()){this.id=sQ++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(s6),this.nodes.forEach(rn),this.nodes.forEach(rs),this.nodes.forEach(s3)},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 sZ)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new tY),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e){if(this.instance)return;this.isSVG=nQ(e)&&!(nQ(e)&&"svg"===e.tagName),this.instance=e;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||i)&&(this.isLayoutDirty=!0),t){let i,n=0,s=()=>this.root.updateBlockedByResize=!1;tE.read(()=>{n=window.innerWidth}),t(e,()=>{let t=window.innerWidth;if(t!==n){let e,r;n=t,this.root.updateBlockedByResize=!0,i&&i(),e=ei.now(),r=({timestamp:t})=>{let i=t-e;i>=250&&(tA(r),s(i-250))},tE.setup(r,!0),i=()=>tA(r),sw.hasAnimatedSinceResize&&(sw.hasAnimatedSinceResize=!1,this.nodes.forEac
1h(ri))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||s.getDefaultTransition()||rh,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!sX(this.targetLayout,n),u=!e&&i;if(this.options.layoutRoot||this.resumeFrom||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let e={...iM(r,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,u)}else e||ri(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tA(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rr),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",tE,!(t||i))}let{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&t(s)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,("string"==typeof e.latestValues.x||"string"==typeof e.latestValues.y)&&(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let t=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),t&&this.nodes.forEach(s8),this.nodes.forEach(s9);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(s7);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(rt),this.nodes.forEach(re),this.nodes.forEach(s2),this.nodes.forEach(s5)):this.nodes.forEach(s7),this.clearAllSnapshots();let t=ei.now();tM.delta=a(0,1e3/60,t-tM.timestamp),tM.timestamp=t,tM.isProcessing=!0,tC.update.process(tM),tC.preRender.process(tM),tC.render.process(tM),tM.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,et.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(s4),this.sharedNodes.forEach(ra)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tE.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tE.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nX(this.snapshot.measuredBox.x)||nX(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=X()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!s)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!s$(this.projectionDelta),i=this.getTransformTemplate(),n=i?i(this.latestValues,""):void 0,r=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||eq(this.latestValues)||r)&&(s(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),n=this.removeElementScroll(i);return t&&(n=this.removeTransform(n)),rm((e=n).x),rm(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return X();let e=t.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rf))){let{scroll:t}=this.root;t&&(eJ(e.x,t.offset.x),eJ(e.y,t.offset.y))}return e}removeElementScroll(t){let e=X();if(sD(e,t),this.scroll?.wasRoot)return e;for(let i=0;i<this.path.length;i++){let n=this.path[i],{scroll:s,options:r}=n;n!==this.root&&s&&r.layoutScroll&&(s.wasRoot&&sD(e,t),eJ(e.x,s.offset.x),eJ(e.y,s.offset.y))}return e}applyTransform(t,e=!1,i){let n=i||X();sD(n,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];!e&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(eJ(n.x,-i.scroll.offset.x),eJ(n.y,-i.scroll.offset.y)),eq(i.latestValues)&&e1(n,i.latestValues,i.layout?.layoutBox)}return eq(this.latestValues)&&e1(n,this.latestValues,this.layout?.layoutBox),n}removeTransform(t){let e=X();sD(e,t);for(let t=0;t<this.path.length;t++){let i,n=this.path[t];eq(n.latestValues)&&(n.instance&&(eX(n.latestValues)&&n.updateSnapshot(),sD(i=X(),n.measurePageBox())),sz(e,n.latestValues,n.snapshot?.layoutBox,i))}return eq(this.latestValues)&&sz(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!==tM.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){let e=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=e.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=e.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=e.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==e;if(!(t||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:n,layoutId:s}=this.options;if(!this.layout||!(n||s))return;this.resolvedRelativeTargetAt=tM.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,u;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,u=this.options.layoutAnchor||void 0,nG(a.x,o.x,l.x,u?.x),nG(a.y,o.y,l.y,u?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):sD(this.target,this.layout.layoutBox),eZ(this.target,this.targetDelta)):sD(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||eX(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=X(),this.relativeTargetOrigin=X(),nZ(this.relativeTargetOrigin,e,i,this.options.layoutAnchor||void 0),sD(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===tM.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;sD(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,n=!1){let s,r,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){r=(s=i[o]).projectionDelta;let{visualElement:a}=s.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(eJ(t.x,-s.scroll.offset.x),eJ(t.y,-s.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,eZ(t,r)),n&&eq(s.latestValues)&&e1(t,s.latestValues,s.layout?.layoutBox))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,e),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=X());let{target:o}=t;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(sB(this.prevProjectionDelta.x,this.projectionDelta.x),sB(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),nK(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&sK(this.projectionDelta.x,this.prevProjectionDelta.x)&&sK(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}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,s=n?n.latestValues:{},r={...this.latestValues},a=H();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=X(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&!0===this.options.crossfade&&!this.path.some(ru));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(ro(a.x,t.x,n),ro(a.y,t.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,m,p,f,g;nZ(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,p=this.relativeTargetOrigin,f=o,g=n,rl(m.x,p.x,f.x,g),rl(m.y,p.y,f.y,g),i&&(u=this.relativeTarget,c=i,sH(u.x,c.x)&&sH(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=X()),sD(i,this.relativeTarget)}l&&(this.animationValues=r,function(t,e,i,n,s,r){s?(t.opacity=eO(0,i.opacity??1,sV(n)),t.opacityExit=eO(e.opacity??1,0,sN(n))):r&&(t.opacity=eO(e.opacity??1,i.opacity??1,n));for(let s=0;s<sE;s++){let r=sP[s],a=sC(e,r),o=sC(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||sM(a)===sM(o)?(t[r]=Math.max(eO(sA(a),sA(o),n),0),(b.test(o)||b.test(a))&&(t[r]+="%")):t[r]=o)}(e.rotate||i.rotate)&&(t.rotate=eO(e.rotate||0,i.rotate||0,n))}(r,s,this.latestValues,n,d,h)),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&&(tA(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tE.update(()=>{var e,i,n;let s;sw.hasAnimatedSinceResize=!0,t1.layout++,this.motionValue||(this.motionValue=ea(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()}},(s=q(e)?e:ea(e)).start(nN("",s,i,n)),s.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:n,latestValues:s}=t;if(e&&i&&n){if(this!==t&&this.layout&&n&&rp(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||X();let e=nX(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let n=nX(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+n}sD(e,i),e1(e,s),nK(this.projectionDeltaWithTransform,this.layoutCorrected,e,s)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new sG),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&&s0("z",t,n,this.animationValues);for(let e=0;e<sJ.length;e++)s0(`rotate${sJ[e]}`,t,n,this.animationValues),s0(`skew${sJ[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&&!eq(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1);return}t.visibility="";let s=n.animationValues||n.latestValues;this.applyTransformsToTarget();let r=function(t,e,i){let n="",s=t.x.translate/e.x,r=t.y.translate/e.y,a=i?.z||0;if((s||r||a)&&(n=`translate3d(${s}px, ${r}px, ${a}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:s,rotateY:r,skewX:a,skewY:o}=i;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),s&&(n+=`rotateX(${s}deg) `),r&&(n+=`rotateY(${r}deg) `),a&&(n+=`skewX(${a}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s);i&&(r=i(s,r)),t.transform=r;let{x:a,y:o}=this.projectionDelta;for(let e in t.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,n.animationValues?t.opacity=n===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:t.opacity=n===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,eI){if(void 0===s[e])continue;let{correct:i,applyTo:a,isCSSVariable:o}=eI[e],l="none"===r?s[e]:i(s[e],n);if(a){let e=a.length;for(let i=0;i<e;i++)t[a[i]]=l}else o?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(s9),this.root.sharedNodes.clear()}}}function s2(t){t.updateLayout()}function s5(t){let e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:n}=t.layout,{animationType:s}=t.options,r=e.source!==t.layout.source;if("size"===s)n$(t=>{let n=r?e.measuredBox[t]:e.layoutBox[t],s=nX(n);n.min=i[t].min,n.max=n.min+s});else if("x"===s||"y"===s){let t="x"===s?"y":"x";sR(r?e.measuredBox[t]:e.layoutBox[t],i[t])}else rp(s,e.layoutBox,i)&&n$(n=>{let s=r?e.measuredBox[n]:e.layoutBox[n],a=nX(i[n]);s.max=s.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+a)});let a=H();nK(a,i,e.layoutBox);let o=H();r?nK(o,t.applyTransform(n,!0),e.measuredBox):nK(o,i,e.layoutBox);let l=!s$(a),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:s,layout:r}=n;if(s&&r){let a=t.options.layoutAnchor||void 0,o=X();nZ(o,e.layoutBox,s.layoutBox,a);let l=X();nZ(l,i,r.layoutBox,a),sX(o,l)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=l,t.relativeTargetOrigin=o,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:i,snapshot:e,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function s6(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 s3(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function s4(t){t.clearSnapshot()}function s9(t){t.clearMeasurements()}function s8(t){t.isLayoutDirty=!0,t.updateLayout()}function s7(t){t.isLayoutDirty=!1}function rt(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function re(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ri(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rn(t){t.resolveTargetDelta()}function rs(t){t.calcProjection()}function rr(t){t.resetSkewAndRotation()}function ra(t){t.removeLeadSnapshot()}function ro(t,e,i){t.translate=eO(e.translate,0,i),t.scale=eO(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rl(t,e,i,n){t.min=eO(e.min,i.min,n),t.max=eO(e.max,i.max,n)}function ru(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rh={duration:.45,ease:[.4,0,.1,1]},rd=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),rc=rd("applewebkit/")&&!rd("chrome/")?Math.round:tT;function rm(t){t.min=rc(t.min),t.max=rc(t.max)}function rp(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(sq(e)-sq(i)))}function rf(t){return t!==t.root&&t.scroll?.wasRoot}let rg=s1({attachResizeListener:(t,e)=>nH(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ry={current:void 0},rv=s1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ry.current){let t=new rg({});t.mount(window),t.setOptions({layoutScroll:!0}),ry.current=t}return ry.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function rx(t,e){let i=n0(t),n=new AbortController;return[i,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function rb(t,e,i){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===i);let s=n["onHover"+i];s&&tE.postRender(()=>s(e,si(e)))}function rw(t){return nJ(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}t.s(["isHTMLElement",0,rw],359522);let rk=(t,e)=>!!e&&(t===e||rk(t,e.parentElement)),rT=new WeakSet;function rS(t){return e=>{"Enter"===e.key&&t(e)}}function rj(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function rP(t){return se(t)&&!(nY.x||nY.y)}let rE=new WeakSet;function rA(t,e,i){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===i);let s=n["onTap"+("End"===i?"":i)];s&&tE.postRender(()=>s(e,si(e)))}let rM=new WeakMap,rC=new WeakMap,rV=t=>{let e=rM.get(t.target);e&&e(t)},rN=t=>{t.forEach(rV)},rL={some:0,all:1},rR=function(t,e){if("u"<typeof Proxy)return ij;let i=new Map,n=(i,n)=>ij(i,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(s,r)=>"create"===r?n:(i.has(r)||i.set(r,ij(r,void 0,t,e)),i.get(r))})}({animation:{Feature:class extends iP{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>(function(t,e,i={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>nD(t,e,i)));else if("string"==typeof e)n=nD(t,e,i);else{let s="function"==typeof e?iE(t,e,i.custom):e;n=Promise.all(nL(t,s,i))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=nz(),n=!0,s=!1,r=e=>(i,n)=>{let s=iE(t,n,"exit"===e?t.presenceContext?.custom:void 0);if(s){let{transition:t,transitionEnd:e,...n}=s;i={...i,...n,...e}}return i};function a(a){let{props:o}=t,l=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<nB;t++){let n=ec[t],s=e.props[n];(eh(s)||!1===s)&&(i[n]=s)}return i}(t.parent)||{},u=[],h=new Set,d={},c=1/0;for(let e=0;e<nI;e++){var m,p;let f=nO[e],g=i[f],y=void 0!==o[f]?o[f]:l[f],v=eh(y),x=f===a?g.isActive:null;!1===x&&(c=e);let b=y===l[f]&&y!==o[f]&&v;if(b&&(n||s)&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||eu(y)||"boolean"==typeof y)continue;if("exit"===f&&g.isActive&&!0!==x){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let w=(m=g.prevProp,"string"==typeof(p=y)?p!==m:!!Array.isArray(p)&&!nF(p,m)),k=w||f===a&&g.isActive&&!b&&v||e>c&&v,T=!1,S=Array.isArray(y)?y:[y],j=S.reduce(r(f),{});!1===x&&(j={});let{prevResolvedValues:P={}}=g,E={...P,...j},A=e=>{k=!0,h.has(e)&&(T=!0,h.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in E){let e=j[t],i=P[t];if(!d.hasOwnProperty(t))(iC(e)&&iC(i)?nF(e,i):e===i)?void 0!==e&&h.has(t)?A(t):g.protectedKeys[t]=!0:null!=e?A(t):h.add(t)}g.prevProp=y,g.prevResolvedValues=j,g.isActive&&(d={...d,...j}),(n||s)&&t.blockInitialAnimation&&(k=!1);let M=b&&w,C=!M||T;k&&C&&u.push(...S.map(e=>{let i={type:f};if("string"==typeof e&&(n||s)&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,s=iE(n,e);if(n.enteringChildren&&s){let{delayChildren:e}=s.transition||{};i.delay=nR(n.enteringChildren,t,e)}}return{animation:e,options:i}}))}if(h.size){let e={};if("boolean"!=typeof o.initial){let i=iE(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),s=t.getValue(i);s&&(s.liveStyle=!0),e[i]=n??null}),u.push({animation:e})}let f=!!u.length;return n&&(!1===o.initial||o.initial===o.animate)&&!t.manuallyAnimateOnMount&&(f=!1),n=!1,s=!1,f?e(u):Promise.resolve()}return{animateChanges:a,setActive:function(e,n){if(i[e].isActive===n)return Promise.resolve();t.variantChildren?.forEach(t=>t.animationState?.setActive(e,n)),i[e].isActive=n;let s=a(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=nz(),s=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();eu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iP{constructor(){super(...arguments),this.id=nU++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;if(t&&!1===i){if(this.isExitComplete){let{initial:t,custom:e}=this.node.getProps();if("string"==typeof t){let i=iE(this.node,t,e);if(i){let{transition:t,transitionEnd:e,...n}=i;for(let t in n)this.node.getValue(t)?.jump(n[t])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends iP{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:a}=i,o={root:n?n.current:void 0,rootMargin:s,threshold:"number"==typeof r?r:rL[r]},l=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,a&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:n}=this.node.getProps(),s=e?i:n;s&&s(t)};this.stopObserver=(t=this.node.current,e=function({root:t,...e}){let i=t||document;rC.has(i)||rC.set(i,{});let n=rC.get(i),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(rN,{root:t,...e})),n[s]}(o),rM.set(t,l),e.observe(t),()=>{rM.delete(t),e.unobserve(t)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iP{mount(){let{current:t}=this.node;if(!t)return;let{globalTapTarget:e,propagate:i}=this.node.props;this.unmount=function(t,e,i={}){let[n,s,r]=rx(t,i),a=t=>{let n=t.currentTarget;if(!rP(t)||rE.has(t))return;rT.add(n),i.stopPropagation&&rE.add(t);let r=e(n,t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),rT.has(n)&&rT.delete(n),rP(t)&&"function"==typeof r&&r(t,{success:e})},o=t=>{a(t,n===window||n===document||i.useGlobalTarget||rk(n,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",l,s)};return n.forEach(t=>{((i.useGlobalTarget?window:t).addEventListener("pointerdown",a,s),rw(t))&&(t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let n=rS(()=>{if(rT.has(i))return;rj(i,"down");let t=rS(()=>{rj(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>rj(i,"cancel"),e)});i.addEventListener("keydown",n,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",n),e)})(t,s)),n7.has(t.tagName)||!0===t.isContentEditable||t.hasAttribute("tabindex")||(t.tabIndex=0))}),r}(t,(t,e)=>(rA(this.node,e,"Start"),(t,{success:e})=>rA(this.node,t,e?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iP{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=iL(nH(this.node.current,"focus",()=>this.onFocus()),nH(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iP{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[n,s,r]=rx(t,i);return n.forEach(t=>{let i,n=!1,r=!1,a=e=>{i&&(i(e),i=void 0),t.removeEventListener("pointerleave",l)},o=t=>{n=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(t))},l=t=>{if("touch"!==t.pointerType){if(n){r=!0;return}a(t)}};t.addEventListener("pointerenter",n=>{if("touch"===n.pointerType||nY.x||nY.y)return;r=!1;let a=e(t,n);"function"==typeof a&&(i=a,t.addEventListener("pointerleave",l,s))},s),t.addEventListener("pointerdown",()=>{n=!0,window.addEventListener("pointerup",o,s),window.addEventListener("pointercancel",o,s)},s)}),r}(t,(t,e)=>(rb(this.node,e,"Start"),t=>rb(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends iP{constructor(){super(...arguments),this.removePointerDownListener=tT}onPointerDown(t){this.session=new so(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ss(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:n}=this.node.getProps();return{onSessionStart:sb(t),onStart:sb(e),onMove:sb(i),onEnd:(t,e)=>{delete this.session,n&&tE.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=sn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iP{constructor(t){super(t),this.removeGroupControls=tT,this.removeListeners=tT,this.controls=new sy(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tT}update(){let{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rv,MeasureLayout:sj},layout:{ProjectionNode:rv,MeasureLayout:sj}},(t,e)=>e.isSVG??e4(t)?new e$(e):new e5(e,{allowProjection:t!==e6.Fragment}));t.s(["motion",0,rR],234022);var rD=t.i(7284);t.s(["Heading",0,function({className:t,as:e="h2",dark:i=!1,...n}){return(0,e9.jsx)(e,{...n,"data-dark":i?"true":void 0,className:(0,rD.clsx)(t,"text-4xl font-extrabold tracking-tighter text-pretty text-mk-ink data-dark:text-mk-on-dark sm:text-6xl")})}
1,"Subheading",0,function({className:t,as:e="h2",dark:i=!1,...n}){return(0,e9.jsx)(e,{...n,"data-dark":i?"true":void 0,className:(0,rD.clsx)(t,"font-body text-xs/5 font-semibold tracking-widest text-mk-muted uppercase data-dark:text-mk-on-dark-soft")})}],761651)},765181,t=>{"use strict";var e=t.i(660806),i=t.i(7284),n=t.i(234022),s=t.i(761651);t.s(["BentoCard",0,function({dark:t=!1,className:r="",eyebrow:a,title:o,description:l,graphic:u,fade:h=[]}){return(0,e.jsxs)(n.motion.div,{initial:"idle",whileHover:"active",variants:{idle:{},active:{}},"data-dark":t?"true":void 0,className:(0,i.clsx)(r,"group relative flex flex-col overflow-hidden rounded-lg","bg-white shadow-xs ring-1 ring-black/5","data-dark:bg-brand-dark data-dark:ring-white/15"),children:[(0,e.jsxs)("div",{className:"relative h-80 shrink-0",children:[u,h.includes("top")&&(0,e.jsx)("div",{className:"absolute inset-0 bg-linear-to-b from-white to-50% group-data-dark:from-brand-dark group-data-dark:from-[-25%]"}),h.includes("bottom")&&(0,e.jsx)("div",{className:"absolute inset-0 bg-linear-to-t from-white to-50% group-data-dark:from-brand-dark group-data-dark:from-[-25%]"})]}),(0,e.jsxs)("div",{className:"relative p-10",children:[(0,e.jsx)(s.Subheading,{as:"h3",dark:t,children:a}),(0,e.jsx)("p",{className:"mt-1 text-2xl/8 font-medium tracking-tight text-gray-950 group-data-dark:text-white",children:o}),(0,e.jsx)("p",{className:"mt-2 max-w-[600px] text-sm/6 text-mk-body group-data-dark:text-mk-on-dark-soft",children:l})]})]})}])},224436,t=>{"use strict";var e=t.i(660806),i=t.i(7284);t.s(["Container",0,function({className:t,children:n}){return(0,e.jsx)("div",{className:(0,i.clsx)(t,"px-6 lg:px-8"),children:(0,e.jsx)("div",{className:"mx-auto max-w-2xl lg:max-w-7xl",children:n})})}])},696778,t=>{"use strict";var e=t.i(660806),i=t.i(201683),n=t.i(224436);t.s(["ContactForm",0,function({heading:t="Get in Touch",formAction:s}){let[r,a]=(0,i.useState)(!1);async function o(t){t.preventDefault();let e=new FormData(t.currentTarget);s&&await fetch(s,{method:"POST",body:e}),a(!0)}return r?(0,e.jsx)(n.Container,{className:"py-16",children:(0,e.jsxs)("div",{className:"mx-auto max-w-lg text-center",children:[(0,e.jsx)("h2",{className:"font-display text-3xl font-medium text-gray-950",children:"Thank you!"}),(0,e.jsx)("p",{className:"mt-4 text-mk-body",children:"We've received your message and will get back to you within 1 business day."})]})}):(0,e.jsx)(n.Container,{className:"py-16",children:(0,e.jsxs)("div",{className:"mx-auto max-w-lg",children:[(0,e.jsx)("h2",{className:"font-display text-3xl font-medium tracking-tight text-gray-950",children:t}),(0,e.jsxs)("form",{onSubmit:o,className:"mt-8 space-y-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:"contact-name",className:"block text-sm font-medium text-gray-950",children:"Name"}),(0,e.jsx)("input",{id:"contact-name",name:"name",type:"text",required:!0,className:"mt-2 block w-full rounded-lg border border-gray-300 px-4 py-2.5 text-sm text-gray-950 focus:border-brand-dark focus:ring-brand-dark focus:outline-none"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:"contact-email",className:"block text-sm font-medium text-gray-950",children:"Email"}),(0,e.jsx)("input",{id:"contact-email",name:"email",type:"email",required:!0,className:"mt-2 block w-full rounded-lg border border-gray-300 px-4 py-2.5 text-sm text-gray-950 focus:border-brand-dark focus:ring-brand-dark focus:outline-none"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:"contact-company",className:"block text-sm font-medium text-gray-950",children:"Company / Firm"}),(0,e.jsx)("input",{id:"contact-company",name:"company",type:"text",className:"mt-2 block w-full rounded-lg border border-gray-300 px-4 py-2.5 text-sm text-gray-950 focus:border-brand-dark focus:ring-brand-dark focus:outline-none"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:"contact-message",className:"block text-sm font-medium text-gray-950",children:"Message"}),(0,e.jsx)("textarea",{id:"contact-message",name:"message",rows:4,required:!0,className:"mt-2 block w-full rounded-lg border border-gray-300 px-4 py-2.5 text-sm text-gray-950 focus:border-brand-dark focus:ring-brand-dark focus:outline-none"})]}),(0,e.jsx)("button",{type:"submit",className:"w-full rounded-full bg-gray-950 px-6 py-2.5 text-sm font-semibold text-white hover:bg-gray-800",children:"Send Message"})]})]})})}])},753371,t=>{"use strict";var e=t.i(660806),i=t.i(7284);t.s(["Money",0,function({value:t,className:n}){let s=t.match(/^(\s*[^\d\s]+)\s*([\d.,].*)$/);if(!s)return(0,e.jsx)("span",{className:n,children:t});let[,r,a]=s;return(0,e.jsxs)("span",{className:(0,i.clsx)("tabular-nums",n),children:[(0,e.jsx)("span",{className:"text-[0.9em]",children:r}),a]})}])},199622,t=>{"use strict";var e=t.i(660806),i=t.i(201683),n=t.i(224436),s=t.i(753371);let r=[];
1t.s(["CreditCalculator",0,function({creditTiers:t=r}){let[a,o]=(0,i.useState)(1e6),[l,u]=(0,i.useState)(1),h=t[l],d=h?a/1e6*h.pricePerMillion:0;return(0,e.jsxs)(n.Container,{className:"py-16",children:[(0,e.jsx)("h2",{className:"font-display text-3xl font-medium tracking-tight text-gray-950 sm:text-4xl",children:"Credit Cost Calculator"}),(0,e.jsx)("p",{className:"mt-4 text-mk-body",children:"Estimate your monthly AI credit costs based on usage."}),(0,e.jsxs)("div",{className:"mt-8 grid gap-8 lg:grid-cols-2",children:[(0,e.jsx)("div",{children:(0,e.jsxs)("div",{className:"space-y-6",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("label",{htmlFor:"credit-calculator-model-tier",className:"block text-sm font-medium text-gray-950",children:"AI Model Tier"}),(0,e.jsx)("div",{id:"credit-calculator-model-tier",className:"mt-3 space-y-3",children:t.map((t,i)=>(0,e.jsxs)("button",{type:"button",onClick:()=>u(i),className:`flex w-full items-center gap-4 rounded-lg border p-4 text-left transition ${l===i?"border-brand-dark bg-mk-surface":"border-mk-line hover:bg-mk-surface"}`,children:[(0,e.jsxs)("div",{className:"flex-1",children:[(0,e.jsx)("div",{className:"text-sm font-medium text-gray-950",children:t.name}),(0,e.jsx)("div",{className:"text-xs text-mk-muted",children:t.description})]}),(0,e.jsxs)("div",{className:"text-sm font-semibold text-gray-950",children:[(0,e.jsx)(s.Money,{value:`$${t.pricePerMillion}`}),"/1M"]})]},t.name))})]}),(0,e.jsxs)("div",{children:[(0,e.jsxs)("label",{htmlFor:"credit-calculator-monthly-credits",className:"block text-sm font-medium text-gray-950",children:["Monthly Credits: ",(a/1e6).toFixed(1),"M"]}),(0,e.jsx)("input",{id:"credit-calculator-monthly-credits",type:"range",min:1e5,max:1e7,step:1e5,value:a,onChange:t=>o(Number(t.target.value)),className:"mt-3 w-full accent-brand-dark"}),(0,e.jsxs)("div",{className:"mt-1 flex justify-between text-xs text-mk-muted",children:[(0,e.jsx)("span",{children:"100K"}),(0,e.jsx)("span",{children:"10M"})]})]})]})}),(0,e.jsx)("div",{className:"flex items-center justify-center rounded-2xl bg-mk-surface p-8",children:(0,e.jsxs)("div",{className:"text-center",children:[(0,e.jsx)("div",{className:"text-sm text-mk-muted",children:"Estimated Monthly Cost"}),(0,e.jsx)("div",{className:"mt-2 font-display text-5xl font-bold text-gray-950",children:(0,e.jsx)(s.Money,{value:`$${d.toFixed(2)}`})}),(0,e.jsxs)("div",{className:"mt-2 text-sm text-mk-muted",children:[(a/1e6).toFixed(1),"M ",h?.name??""," credits"]})]})})]})]})}])},2942,t=>{"use strict";var e=t.i(660806),i=t.i(201683),n=t.i(224436);let s=[{question:"What is roji.ai?",answer:"ROJI is the commerce layer between AI agents and real-world services. Businesses publish machine-readable service catalogs â document review, notarization, field verification, expert judgment, design â and AI agents discover, order, and pay for them over MCP."},{question:"How do payments work?",answer:"The buyer pays at order: the list price plus a percentage platform fee, in one Stripe payment that routes straight through to the business. ROJI never holds the funds â its fee is collected as the application fee on that payment, so the business keeps 100% of its list price. Protection is refund-shaped: an automatic full refund if the order is rejected or the published SLA is missed, plus a refund window after delivery."},{question:"Who fulfills the work?",answer:"Verified businesses â licensed service providers, inspection companies, specialist practices â with business verification (KYB) through Stripe Connect and licenses checked against the issuing registry for regulated verticals (a notary commission is one example). Reviews exist only on orders where money actually moved."}];t.s(["FAQ",0,function({heading:t="Frequently Asked Questions",items:r=s}){let[a,o]=(0,i.useState)(null);return(0,e.jsxs)(n.Container,{className:"py-16",children:[(0,e.jsx)("h2",{className:"font-display text-3xl font-medium tracking-tight text-mk-ink sm:text-4xl",children:t}),(0,e.jsx)("dl",{className:"mt-10 space-y-0 divide-y divide-mk-line",children:r.map((t,i)=>(0,e.jsxs)("div",{className:"py-6",children:[(0,e.jsx)("dt",{children:(0,e.jsxs)("button",{type:"button",onClick:()=>o(a===i?null:i),className:"flex w-full items-start justify-between text-left",children:[(0,e.jsx)("span",{className:"text-base font-medium text-mk-ink",children:t.question}),(0,e.jsx)("span",{className:"ml-6 flex shrink-0 items-center",children:(0,e.jsx)("svg",{"aria-hidden":"true",className:`size-5 transition-transform ${a===i?"rotate-180 text-mk-ink":"text-mk-muted"}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})})]})}),a===i&&(0,e.jsx)("dd",{className:"mt-4 text-base text-mk-body",children:t.answer})]},t.question))})]})}])},945633,t=>{"use strict";var e=t.i(660806),i=t.i(201683),n=t.i(221069),s=t.i(224436),r=t.i(7284),a=t.i(512036);function o({className:t}){return(0,e.jsxs)("div",{className:(0,r.clsx)("relative mx-auto w-full max-w-xl",t),children:[(0,e.jsx)("div",{"aria-hidden":!0,
1className:"mk-bloom mk-anim-breathe pointer-events-none absolute -inset-12 -z-10 blur-2xl"}),(0,e.jsx)("div",{"aria-hidden":!0,className:"mk-dot-grid pointer-events-none absolute inset-0 -z-10 rounded-[36px] opacity-70 [mask-image:radial-gradient(70%_70%_at_50%_45%,#000,transparent)]"}),(0,e.jsxs)("div",{className:"mk-panel relative overflow-hidden rounded-[28px] p-5 sm:p-6",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,e.jsx)("span",{className:"size-2.5 rounded-full bg-black/10"}),(0,e.jsx)("span",{className:"size-2.5 rounded-full bg-black/10"}),(0,e.jsx)("span",{className:"size-2.5 rounded-full bg-black/10"})]}),(0,e.jsx)("span",{className:"text-xs font-medium tracking-tight text-mk-muted",children:"roji · task lifecycle"})]}),(0,e.jsxs)("span",{className:"glass inline-flex items-center gap-1.5 rounded-full px-2.5 py-1 text-[11px] font-semibold text-mk-ink",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-mk-lime"}),"MCP + CLI"]})]}),(0,e.jsxs)("div",{className:"relative mt-6",children:[(0,e.jsx)("span",{"aria-hidden":!0,className:"absolute top-8 left-[19px] z-0 h-32 w-0.5 rounded-full bg-gradient-to-b from-black/10 via-black/10 to-transparent"}),(0,e.jsx)("span",{"aria-hidden":!0,style:{"--mk-rail-h":"128px"},className:"mk-anim-travel absolute top-8 left-[17px] z-0 size-1.5 rounded-full bg-mk-lime shadow-[0_0_10px_2px_rgba(214,255,0,0.7)]"}),(0,e.jsx)(l,{icon:(0,e.jsx)(h,{}),title:"An AI agent posts a task",meta:(0,e.jsx)(m,{children:"POST /v1/tasks"})}),(0,e.jsx)(l,{icon:(0,e.jsx)(d,{}),title:"A verified human or company claims it",meta:(0,e.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,e.jsxs)(p,{children:[(0,e.jsx)(f,{})," 4.9"]}),(0,e.jsx)(p,{children:"KYC â"})]})}),(0,e.jsx)(l,{icon:(0,e.jsx)(c,{}),title:"Paid on acceptance",meta:(0,e.jsxs)(m,{className:"text-mk-ink",children:["+",(0,e.jsx)("span",{className:"text-[0.9em]",children:"$"}),"120.00"]})})]})]})]})}function l({icon:t,title:i,meta:n}){return(0,e.jsxs)("div",{className:"grid h-16 grid-cols-[40px_1fr] items-center gap-x-3",children:[(0,e.jsx)("div",{className:"relative z-10 flex justify-center",children:t}),(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,e.jsx)("span",{className:"text-sm font-medium tracking-tight text-mk-ink sm:text-[15px]",children:i}),(0,e.jsx)("span",{className:"shrink-0 text-xs text-mk-muted",children:n})]})]})}function u({children:t,tone:i="light"}){return(0,e.jsx)("span",{className:(0,r.clsx)("flex size-9 items-center justify-center rounded-xl border","dark"===i?"border-black/10 bg-mk-ink text-mk-lime":"border-black/10 bg-white text-mk-ink shadow-[var(--mk-shadow-sm)]"),children:t})}function h(){return(0,e.jsx)(u,{tone:"dark",children:(0,e.jsx)("span",{className:"font-mono text-sm leading-none font-semibold",children:"{ }"})})}function d(){return(0,e.jsxs)("span",{className:"relative flex size-9 items-center justify-center",children:[(0,e.jsx)("span",{"aria-hidden":!0,className:"mk-anim-ring absolute inset-0 rounded-xl border border-mk-lime"}),(0,e.jsx)(u,{children:(0,e.jsx)(a.Mark,{className:"size-5 fill-current"})})]})}function c(){return(0,e.jsx)("span",{className:"flex size-9 items-center justify-center rounded-xl border border-mk-lime/40 bg-mk-lime/15",children:(0,e.jsx)("span",{className:"mk-anim-pop text-mk-ink",children:(0,e.jsx)(g,{})})})}function m({children:t,className:i}){return(0,e.jsx)("code",{className:(0,r.clsx)("rounded-md bg-black/[0.04] px-1.5 py-0.5 font-mono text-[11px] text-mk-body",i),children:t})}function p({children:t}){return(0,e.jsx)("span",{className:"inline-flex items-center gap-1 rounded-full bg-black/[0.04] px-2 py-0.5 text-[11px] font-medium text-mk-body",children:t})}function f(){return(0,e.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"size-3 text-mk-ink",children:(0,e.jsx)("path",{d:"M10 1.5l2.47 5.01 5.53.8-4 3.9.94 5.5L10 14.9l-4.95 2.6.94-5.5-4-3.9 5.53-.8L10 1.5z"})})}function g(){return(0,e.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:2.5,strokeLinecap:"round",strokeLinejoin:"round",className:"size-4",children:(0,e.jsx)("path",{d:"M4 10.5l4 4 8-8.5"})})}var y=t.i(279055),v=t.i(292269);t.s(["Hero",0,({headline:t="Where AI agents buy real-world services",subheadline:r="Businesses publish machine-readable service catalogs. Agents discover, order, and pay over MCP. Paid at order, delivered against a published SLA, refunded if it isn't.",eyebrow:a="MCP + CLI native",italicPhrase:l="real-world services",ctaText:u="Connect your agent",ctaLink:h="/developers",secondaryCtaText:d="List your services",secondaryCtaLink:c="/business",bannerText:m,bannerLink:p}={})=>{let f=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let t=f.current;if(!t)return;let e=requestAnimationFrame(()=>t.classList.add("is-shown"));return()=>cancelAnimationFrame(e)},[]),(0,e.jsxs)("section",{className:"relative overflow-x-clip",children:[(0,e.jsx)("div",{"aria-hidden":!0,
1className:"hero-aurora pointer-events-none absolute inset-x-0 -top-[max(env(safe-area-inset-top),var(--safe-top,0px))] -z-10 h-[820px]"}),(0,e.jsx)("div",{"aria-hidden":!0,className:"hero-aurora-tint pointer-events-none absolute inset-x-0 -top-[max(env(safe-area-inset-top),var(--safe-top,0px))] -z-10 h-[820px]"}),(0,e.jsx)(v.Navbar,{banner:m&&p?(0,e.jsx)(y.Link,{href:p,className:"flex items-center gap-1 rounded-full bg-brand-dark/80 px-3 py-0.5 text-sm/6 font-medium text-white hover:bg-brand-dark/70",children:m}):void 0}),(0,e.jsx)(s.Container,{className:"relative",children:(0,e.jsxs)("div",{className:"mx-auto max-w-4xl pt-14 pb-24 text-center sm:pt-20 sm:pb-28 md:pb-32",children:[(0,e.jsxs)("div",{ref:f,className:"t-stagger",children:[(0,e.jsx)("div",{className:"t-stagger-line t-stagger-line--1 flex justify-center",children:(0,e.jsxs)("span",{className:"glass inline-flex items-center gap-2 rounded-full px-4 py-1.5 text-sm font-medium text-gray-950/80",children:[(0,e.jsx)("span",{className:"size-1.5 rounded-full bg-brand-dark/70"}),a]})}),(0,e.jsx)("h1",{className:"t-stagger-line t-stagger-line--2 mt-6 font-display text-5xl/[0.95] font-medium tracking-tight text-balance text-gray-950 sm:text-7xl/[0.9] md:text-8xl/[0.85]",children:function(t,i){if(!i)return t;let n=t.toLowerCase().indexOf(i.toLowerCase());if(-1===n)return t;let s=t.slice(0,n),r=t.slice(n,n+i.length),a=t.slice(n+i.length);return(0,e.jsxs)(e.Fragment,{children:[s,(0,e.jsx)("em",{className:"italic",children:r}),a]})}(t,l)}),(0,e.jsx)("p",{className:"t-stagger-line t-stagger-line--3 mx-auto mt-6 max-w-2xl text-lg/7 font-medium text-gray-950/70 sm:text-xl/8",children:r})]}),(0,e.jsxs)("div",{className:"mt-10 flex flex-col items-center justify-center gap-x-6 gap-y-4 sm:flex-row",children:[(0,e.jsx)(n.ArrowPillButton,{href:h,children:u}),(0,e.jsx)(n.Button,{variant:"secondary",href:c,children:d})]}),(0,e.jsx)(o,{className:"mt-16 sm:mt-20"})]})})]})}],945633)},536330,t=>{"use strict";var e=t.i(660806),i=t.i(201683),n=t.i(224436),s=t.i(753371);let r=[];t.s(["PricingTable",0,function({tiers:t=r}){let[a,o]=(0,i.useState)(!1);return(0,e.jsxs)(n.Container,{className:"py-16",children:[(0,e.jsx)("div",{className:"flex justify-center mb-12",children:(0,e.jsxs)("div",{className:"relative flex items-center gap-4 roun
1ded-full bg-gray-100 p-1",children:[(0,e.jsx)("button",{type:"button",onClick:()=>o(!1),className:`rounded-full px-6 py-2 text-sm font-medium transition ${!a?"bg-white text-gray-950 shadow-sm":"text-mk-body hover:text-gray-950"}`,children:"Monthly"}),(0,e.jsxs)("button",{type:"button",onClick:()=>o(!0),className:`rounded-full px-6 py-2 text-sm font-medium transition ${a?"bg-white text-gray-950 shadow-sm":"text-mk-body hover:text-gray-950"}`,children:["Annual",(0,e.jsx)("span",{className:"ml-1.5 text-xs text-brand-dark",children:"Save 15-20%"})]})]})}),(0,e.jsx)("div",{className:"grid gap-8 lg:grid-cols-3",children:t.map(t=>(0,e.jsxs)("div",{className:`relative rounded-2xl border p-8 ${t.highlighted?"border-brand-dark ring-1 ring-brand-dark":"border-mk-line"}`,children:[t.badge&&(0,e.jsx)("span",{className:"absolute -top-3 left-6 rounded-full bg-brand px-3 py-0.5 text-xs font-semibold text-brand-dark",children:t.badge}),(0,e.jsx)("h3",{className:"font-display text-lg font-medium text-gray-950",children:t.name}),(0,e.jsx)("div",{className:"mt-4",children:null!=t.monthlyPrice?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("span",{className:"text-4xl font-bold text-gray-950",children:(0,e.jsx)(s.Money,{value:`$${a?t.annualPrice:t.monthlyPrice}`})}),(0,e.jsx)("span",{className:"text-mk-muted",children:"/user/mo"})]}):(0,e.jsx)("span",{className:"text-4xl font-bold text-gray-950",children:"Custom"})}),(0,e.jsx)("p",{className:"mt-4 text-sm text-mk-body",children:t.description}),t.ctaText&&t.ctaLink&&(0,e.jsx)("a",{href:t.ctaLink,className:`mt-6 block rounded-full px-4 py-2.5 text-center text-sm font-semibold transition ${t.highlighted?"bg-gray-950 text-white hover:bg-gray-800":"bg-gray-100 text-gray-950 hover:bg-gray-200"}`,children:t.ctaText}),(0,e.jsx)("ul",{className:"mt-8 space-y-3",children:t.features.map(t=>(0,e.jsxs)("li",{className:"flex items-start gap-3 text-sm text-mk-body",children:[(0,e.jsx)("svg",{"aria-hidden":"true",className:"mt-0.5 size-4 shrink-0 text-brand-dark",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),t]},t))})]},t.name))})]})}])},802773,t=>{"use strict";var e=t.i(660806),i=t.i(7284),n=t.i(201683),s=t.i(224436);let r=[{value:"$0",label:"To integrate"},{value:"100%",label:"Of task price to providers"},{value:"72h",label:"Auto-accept guarantee"},{value:"15%",label:"Platform fee, paid by the client"}];function a({value:t}){let s,r,o=(0,n.useRef)(null),[l,u]=(0,n.useState)(!1);return(0,n.useEffect)(()=>
1{let t=o.current;if(!t)return;let e=new IntersectionObserver(t=>{for(let i of t)i.isIntersecting&&(u(!0),e.disconnect())},{threshold:.4});return e.observe(t),()=>e.disconnect()},[]),(0,e.jsx)("span",{ref:o,className:(0,i.clsx)("t-digit-group",l&&"is-animating"),children:(s=new Map,(r=[...t]).map((t,e)=>{let i=s.get(t)??0;s.set(t,i+1);let n=r.length-1-e;return{key:`${t}-${i}`,char:t,stagger:1===n?"1":0===n?"2":void 0}})).map(t=>(0,e.jsx)("span",{className:(0,i.clsx)("t-digit","$"===t.char&&"text-[0.9em]"),"data-stagger":t.stagger,children:t.char},t.key))})}t.s(["StatsBar",0,function({stats:t=r,tone:n="light"}){let o="dark"===n,l=(0,e.jsx)(s.Container,{className:"relative py-16",children:(0,e.jsx)("div",{className:"grid grid-cols-2 gap-8 lg:grid-cols-4",children:t.map(t=>(0,e.jsxs)("div",{className:"text-center",children:[(0,e.jsx)("div",{className:(0,i.clsx)("font-display text-3xl font-bold sm:text-4xl",o?"text-mk-lime":"text-gray-950"),children:(0,e.jsx)(a,{value:t.value})}),(0,e.jsx)("div",{className:(0,i.clsx)("mt-2 text-sm",o?"text-mk-on-dark-soft":"text-gray-600"),children:t.label})]},t.label))})});return o?(0,e.jsxs)("div",{className:"mk-band-dark mk-rule-lime relative overflow-hidden",children:[(0,e.jsx)("div",{"aria-hidden":!0,className:"mk-bloom-dark mk-anim-breathe pointer-events-none absolute -top-16 left-1/2 -z-0 h-[320px] w-[720px] -translate-x-1/2 opacity-60 blur-[70px]"}),(0,e.jsx)("div",{className:"relative",children:l})]}):l}])},584952,t=>{"use strict";var e=t.i(660806),i=t.i(602773),n=t.i(201683);let s=n.forwardRef(function({title:t,titleId:e,...i},s){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":e},i),t?n.createElement("title",{id:e},t):null,n.createElement("path",{fillRule:"evenodd",d:"M2 10a.75.75 0 0 1 .75-.75h12.59l-2.1-1.95a.75.75 0 1 1 1.02-1.1l3.5 3.25a.75.75 0 0 1 0 1.1l-3.5 3.25a.75.75 0 1 1-1.02-1.1l2.1-1.95H2.75A.75.75 0 0 1 2 10Z",clipRule:"evenodd"}))});var r=t.i(7284),a=t.i(234022);function o(t,e,i){(0,n.useInsertionEffect)(()=>t.on(e,i),[t,e,i])}var l=t.i(651692),u=t.i(702915),h=t.i(26809),d=t.i(470919),c=t.i(967682);function m(t,e){let i,n=()=>{let{currentTime:n}=e,s=(null===n?0:n.value)/100;i!==s&&t(s),i=s};return c.frame.preUpdate(n,!0),()=>(0,c.cancelFrame)(n)}function p(t){return!("u"<typeof window)&&(t?(0,l.supportsViewTimeline)():(0,l.supportsScrollTimeline)())}var f=t.i(460208),g=t.i(241058),y=t.i(921692);let v=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),x={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function b(t,e,i,n){let s=i[e],{length:r,position:a}=x[e],o=s.current,l=i.time;s.current=Math.abs(t[`scroll${a}`]),s.scrollLength=t[`scroll${r}`]-t[`client${r}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=(0,g.progress)(0,s.scrollLength,s.current);let u=n-l;s.velocity=u>50?0:(0,y.velocityPerSecond)(s.current-o,u)}t.i(665881);var w=t.i(498920),k=t.i(805639),T=t.i(493858),S=t.i(359522);let j={start:0,center:.5,end:1};function P(t,e,i=0){let n=0;if(t in j&&(t=j[t]),"string"==typeof t){let e=parseFloat(t);t.endsWith("px")?n=e:t.endsWith("%")?t=e/100:t.endsWith("vw")?n=e/100*document.documentElement.clientWidth:t.endsWith("vh")?n=e/100*document.documentElement.clientHeight:t=e}return"number"==typeof t&&(n=e*t),i+n}let E=[0,0],A=[[0,0],[1,1]],M={x:0,y:0},C=new WeakMap,V=new WeakMap,N=new WeakMap,L=new WeakMap,R=new WeakMap,D=t=>t===document.scrollingElement?window:t;function B(t,{container:e=document.scrollingElement,trackContentSize:i=!1,...n}={}){if(!e)return d.noop;let s=N.get(e);s||(s=new Set,N.set(e,s));let r=function(t,e,i,n={}){return{measure:e=>{!function(t,e=t,i){if(i.x.targetOffset=0,i.y.targetOffset=0,e!==t){let n=e;for(;n&&n!==t;)i.x.targetOffset+=n.offsetLeft,i.y.targetOffset+=n.offsetTop,n=n.offsetParent}i.x.targetLength=e===t?e.scrollWidth:e.clientWidth,i.y.targetLength=e===t?e.scrollHeight:e.clientHeight,i.x.containerLength=t.clientWidth,i.y.containerLength=t.clientHeight}
1(t,n.target,i),b(t,"x",i,e),b(t,"y",i,e),i.time=e,(n.offset||n.target)&&function(t,e,i){let{offset:n=A}=i,{target:s=t,axis:r="y"}=i,a="y"===r?"height":"width",o=s!==t?function(t,e){let i={x:0,y:0},n=t;for(;n&&n!==e;)if((0,S.isHTMLElement)(n))i.x+=n.offsetLeft,i.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let t=n.getBoundingClientRect(),e=(n=n.parentElement).getBoundingClientRect();i.x+=t.left-e.left,i.y+=t.top-e.top}else if(n instanceof SVGGraphicsElement){let{x:t,y:e}=n.getBBox();i.x+=t,i.y+=e;let s=null,r=n.parentNode;for(;!s;)"svg"===r.tagName&&(s=r),r=n.parentNode;n=s}else break;return i}(s,t):M,l=s===t?{width:t.scrollWidth,height:t.scrollHeight}:"getBBox"in s&&"svg"!==s.tagName?s.getBBox():{width:s.clientWidth,height:s.clientHeight},u={width:t.clientWidth,height:t.clientHeight};e[r].offset.length=0;let h=!e[r].interpolate,d=n.length;for(let t=0;t<d;t++){let i=function(t,e,i,n){let s=Array.isArray(t)?t:E,r=0;return"number"==typeof t?s=[t,t]:"string"==typeof t&&(s=(t=t.trim()).includes(" ")?t.split(" "):[t,j[t]?t:"0"]),(r=P(s[0],i,n))-P(s[1],e)}(n[t],u[a],l[a],o[r]);h||i===e[r].interpolatorOffsets[t]||(h=!0),e[r].offset[t]=i}h&&(e[r].interpolate=(0,w.interpolate)(e[r].offset,(0,k.defaultOffset)(n),{clamp:!1}),e[r].interpolatorOffsets=[...e[r].offset]),e[r].progress=(0,T.clamp)(0,1,e[r].interpolate(e[r].current))}(t,i,n)},notify:()=>e(i)}}(e,t,{time:0,x:v(),y:v()},n);if(s.add(r),!C.has(e)){let t=()=>{for(let t of s)t.measure(c.frameData.timestamp);c.frame.preUpdate(i)},i=()=>{for(let t of s)t.notify()},n=()=>c.frame.read(t);C.set(e,n);let r=D(e);window.addEventListener("resize",n),e!==document.documentElement&&V.set(e,(0,f.resize)(e,n)),r.addEventListener("scroll",n),n()}if(i&&!R.has(e)){let t=C.get(e),i={width:e.scrollWidth,height:e.scrollHeight};L.set(e,i);let n=c.frame.read(()=>{let n=e.scrollWidth,s=e.scrollHeight;(i.width!==n||i.height!==s)&&(t(),i.width=n,i.height=s)},!0);R.set(e,n)}let a=C.get(e);return c.frame.read(a,!1,!0),()=>{(0,c.cancelFrame)(a);let t=N.get(e);if(!t||(t.delete(r),t.size))return;let i=C.get(e);C.delete(e),i&&(D(e).removeEventListener("scroll",i),V.get(e)?.(),window.removeEventListener("resize",i));let n=R.get(e);n&&((0,c.cancelFrame)(n),R.delete(e)),L.delete(e)}}let F=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[A,"contain"]],O={start:0,end:1};function I(t){if(!t)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[e,i]of F)if(function(t,e){let i=function(t){if(2!==t.length)return;let e=[];for(let i of t)if(Array.isArray(i))e.push(i);else{if("string"!=typeof i)return;let t=function(t){let e=t.trim().split(/\s+/);if(2!==e.length)return;let i=O[e[0]],n=O[e[1]];if(void 0!==i&&void 0!==n)return[i,n]}(i);if(!t)return;e.push(t)}return e}(t);if(!i)return!1;for(let t=0;t<2;t++){let n=i[t],s=e[t];if(n[0]!==s[0]||n[1]!==s[1])return!1}return!0}(t,e))return{rangeStart:`${i} 0%`,rangeEnd:`${i} 100%`}}let W=new Map;function z(t){let e={value:0},i=B(i=>{e.value=100*i[t.axis].progress},t);return{currentTime:e,cancel:i}}function U({source:t,container:e,...i}){let{axis:n}=i;t&&(e=t);let s=W.get(e);s||(s=new Map,W.set(e,s));let r=i.target??"self",a=s.get(r);a||(a={},s.set(r,a));let o=n+(i.offset??[]).join(",");return a[o]||(i.target&&p(i.target)?I(i.offset)?a[o]=new ViewTimeline({subject:i.target,axis:n}):a[o]=z({container:e,...i}):p()?a[o]=new ScrollTimeline({source:e,axis:n}):a[o]=z({container:e,...i})),a[o]}function $(t,{axis:e="y",container:i=document.scrollingElement,...n}={}){var s,r;let a,o,l;if(!i)return d.noop;let u={axis:e,container:i,...n};return"function"==typeof t?(s=t,r=u,2===s.length?B(t=>{s(t[r.axis].progress,t)},r):m(s,U(r))):(a=U(u),o=u.target?I(u.offset):void 0,l=u.target?p(u.target)&&!!o:p(),t.attachTimeline({timeline:l?a:void 0,...o&&l&&{rangeStart:o.rangeStart,rangeEnd:o.rangeEnd},observe:t=>(t.pause(),m(e=>{t.time=t.iterationDuration*e},a))}))}var H=t.i(261064),Y=t.i(45427);let X=()=>({scrollX:(0,u.motionValue)(0),scrollY:(0,u.motionValue)(0),scrollXProgress:(0,u.motionValue)(0),scrollYProgress:(0,u.motionValue)(0)}),q=t=>!!t&&!t.current;function K(t,e,i,n){return{factory:s=>$(s,{...e,axis:t,container:i?.current||void 0,target:n?.current||void 0}),times:[0,1],keyframes:[0,1],ease:t=>t,duration:1}}var G=t.i(823864),_=t.i(236585);function Z(t){return"number"==typeof t?t:parseFloat(t)}var J=t.i(497004);function Q(t){let e=(0,H.useConstant)(()=>(0,u.motionValue)(t)),{isStatic:i}=(0,n.useContext)(J.MotionConfigContext);
1if(i){let[,i]=(0,n.useState)(t);(0,n.useEffect)(()=>e.on("change",i),[])}return e}function tt(t,e){let i=Q(e()),n=()=>i.set(e());return n(),(0,Y.useIsomorphicLayoutEffect)(()=>{let e=()=>c.frame.preRender(n,!1,!0),i=t.map(t=>t.on("change",e));return()=>{i.forEach(t=>t()),(0,c.cancelFrame)(n)}}),i}function te(t,e){let i=(0,H.useConstant)(()=>[]);return tt(t,()=>{i.length=0;let n=t.length;for(let e=0;e<n;e++)i[e]=t[e].get();return e(i)})}function ti(t,e){let i;return(...n)=>{window.clearTimeout(i),i=window.setTimeout(()=>t(...n),e)}}let tn=["x","y","top","bottom","left","right","width","height"];var ts=t.i(224436),tr=t.i(279055),ta=t.i(761651);let to=[];function tl({name:t,title:i,img:s,children:r,bounds:l,scrollX:h,...d}){let m=(0,n.useRef)(null),p=(0,n.useCallback)(()=>{let t=m.current;if(!t||0===l.width)return 1;let e=t.getBoundingClientRect();return e.left<l.left?Math.max(.5,1-(l.left-e.left)/e.width):e.right>l.right?Math.max(.5,1-(e.right-l.right)/e.width):1},[l.width,l.left,l.right]),f=function(t,e={}){return function(t,e={}){let{isStatic:i}=(0,n.useContext)(J.MotionConfigContext),s=()=>(0,_.isMotionValue)(t)?t.get():t;if(i)return function t(e,i,n,s){if("function"==typeof e){let t;return u.collectMotionValues.current=[],e(),t=tt(u.collectMotionValues.current,e),u.collectMotionValues.current=void 0,t}if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof i){var r=e,a=i,o=n,l=s;let u=(0,H.useConstant)(()=>Object.keys(o)),h=(0,H.useConstant)(()=>({}));for(let e of u)h[e]=t(r,a,o[e],l);return h}let h="function"==typeof i?i:function(...t){let e=!Array.isArray(t[0]),i=e?0:-1,n=t[0+i],s=t[1+i],r=t[2+i],a=t[3+i],o=(0,w.interpolate)(s,r,a);return e?o(n):o}(i,n,s),d=Array.isArray(e)?te(e,h):te([e],([t])=>h(t)),c=Array.isArray(e)?void 0:e.accelerate;return c&&!c.isTransformed&&"function"!=typeof i&&Array.isArray(n)&&s?.clamp!==!1&&(d.accelerate={...c,times:i,keyframes:n,isTransformed:!0,...s?.ease?{ease:s.ease}:{}}),d}(s);let r=Q(s());return(0,n.useInsertionEffect)(()=>(function(t,e,i={}){let n,s=t.get(),r=null,a=s,o="string"==typeof s?s.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null),t.animation=void 0},u=()=>{(()=>{let e=Z(t.get()),s=Z(a);if(e===s)return l();let o=r?r.getGeneratorVelocity():t.getVelocity();l(),r=new G.JSAnimation({keyframes:[e,s],velocity:o,type:"spring",restDelta:.001,restSpeed:.01,...i,onUpdate:n})})(),t.animation=r??void 0,t.events.animationStart?.notify(),r?.then(()=>{t.animation=void 0,t.events.animationComplete?.notify()})};if(t.attach((t,e)=>{a=t,n=t=>{var i,n;return e((i=t,(n=o)?i+n:i))},c.frame.postRender(u)},l),(0,_.isMotionValue)(e)){let n=!0===i.skipInitialAnimation,s=e.on("change",e=>{var i,s,r,a;n?(n=!1,t.jump((i=e,(s=o)?i+s:i),!1)):t.set((r=e,(a=o)?r+a:r))}),r=t.on("destroy",s);return()=>{s(),r()}}return l})(r,t,e),[r,JSON.stringify(e)]),r}(t,{type:"spring",...e})}(p(),{stiffness:154,damping:23});return(0,n.useLayoutEffect)(()=>{f.set(p())},[p,f]),o(h,"change",()=>{f.set(p())}),(0,e.jsxs)(a.motion.div,{ref:m,style:{opacity:f},...d,className:"relative flex aspect-9/16 w-72 shrink-0 snap-start scroll-ml-(--scroll-padding) flex-col justify-end overflow-hidden rounded-3xl sm:aspect-3/4 sm:w-96",children:[(0,e.jsx)("img",{alt:"",src:s,className:"absolute inset-x-0 top-0 aspect-square w-full object-cover"}),(0,e.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 rounded-3xl bg-linear-to-t from-black from-[calc(7/16*100%)] ring-1 ring-gray-950/10 ring-inset sm:from-25%"}),(0,e.jsxs)("figure",{className:"relative p-10",children:[(0,e.jsx)("blockquote",{children:(0,e.jsxs)("p",{className:"relative text-xl/7 text-white",children:[(0,e.jsx)("span",{"aria-hidden":"true",className:"absolute -translate-x-full",children:'"'}),r,(0,e.jsx)("span",{"aria-hidden":"true",className:"absolute",children:'"'})]})}),(0,e.jsxs)("figcaption",{className:"mt-6 border-t border-white/20 pt-6",children:[(0,e.jsx)("p",{className:"text-sm/6 font-medium text-white",children:t}),(0,e.jsx)("p",{className:"text-sm/6 font-medium",children:(0,e.jsx)("span",{className:"text-brand",children:i})})]})]})]})}function tu(){return(0,e.jsxs)("div",{children:[(0,e.jsx)("p",{className:"max-w-sm text-sm/6 text-mk-body",children:"Join thousands of businesses using roji.ai to run their entire operation on one platform."}),(0,e.jsx)("div",{className:"mt-2",children:(0,e.jsxs)(tr.Link,{href:"/login",className:"inline-flex items-center gap-2 text-sm/6 font-medium text-brand-dark",children:["Start free trial",(0,e.jsx)(s,{className:"size-5"})]})})]})}t.s(["Testimonials",0,function({testimonials:t=to,subheading:s="What everyone is saying",heading:a="Trusted by professionals."}={}){let u=(0,n.useRef)(null),{scrollX:d}=function({container:t,target:e,...i}={}){var s;let r=(0,H.useConstant)(X);s=i.offset,!("u"<typeof window)&&(e?(0,l.supportsViewTimeline)()&&!!I(s):(0,l.supportsScrollTimeline)())&&(r.scrollXProgress.accelerate=K("x",i,t,e),r.scrollYProgress.accelerate=K("y",i,t,e));let a=(0,n.useRef)(null),o=(0,n.useRef)(!1),u=(0,n.useCallback)(()=>(a.current=$((t,{x:e,y:i})=>{r.scrollX.set(e.current),r.scrollXProgress.set(e.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...i,container:t?.current||void 0,target:e?.current||void 0}),()=>{a.current?.()}),[t,e,JSON.stringify(i.offset)]);return(0,Y.useIsomorphicLayoutEffect)(()=>
1{if(o.current=!1,!(q(t)||q(e)))return u();o.current=!0},[u]),(0,n.useEffect)(()=>o.current?((0,h.invariant)(!q(t),"Container ref is defined but not hydrated","use-scroll-ref"),(0,h.invariant)(!q(e),"Target ref is defined but not hydrated","use-scroll-ref"),u()):void 0,[u]),r}({container:u}),[c,m]=function({debounce:t,scroll:e,polyfill:i,offsetSize:s}={debounce:0,scroll:!1,offsetSize:!1}){var r,a,o;let l=i||("u"<typeof window?class{}:window.ResizeObserver);if(!l)throw Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");let[u,h]=(0,n.useState)({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),d=(0,n.useRef)({element:null,scrollContainers:null,resizeObserver:null,lastBounds:u,orientationHandler:null}),c=t?"number"==typeof t?t:t.scroll:null,m=t?"number"==typeof t?t:t.resize:null,p=(0,n.useRef)(!1);(0,n.useEffect)(()=>(p.current=!0,()=>void(p.current=!1)));let[f,g,y]=(0,n.useMemo)(()=>{let t=()=>{let t,e;if(!d.current.element)return;let{left:i,top:n,width:r,height:a,bottom:o,right:l,x:u,y:c}=d.current.element.getBoundingClientRect(),m={left:i,top:n,width:r,height:a,bottom:o,right:l,x:u,y:c};d.current.element instanceof HTMLElement&&s&&(m.height=d.current.element.offsetHeight,m.width=d.current.element.offsetWidth),Object.freeze(m),p.current&&(t=d.current.lastBounds,e=m,!tn.every(i=>t[i]===e[i]))&&h(d.current.lastBounds=m)};return[t,m?ti(t,m):t,c?ti(t,c):t]},[h,s,c,m]);function v(){d.current.scrollContainers&&(d.current.scrollContainers.forEach(t=>t.removeEventListener("scroll",y,!0)),d.current.scrollContainers=null),d.current.resizeObserver&&(d.current.resizeObserver.disconnect(),d.current.resizeObserver=null),d.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",d.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",d.current.orientationHandler))}function x(){d.current.element&&(d.current.resizeObserver=new l(y),d.current.resizeObserver.observe(d.current.element),e&&d.current.scrollContainers&&d.current.scrollContainers.forEach(t=>t.addEventListener("scroll",y,{capture:!0,passive:!0})),d.current.orientationHandler=()=>{y()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",d.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",d.current.orientationHandler))}return r=y,a=!!e,(0,n.useEffect)(()=>{if(a)return window.addEventListener("scroll",r,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",r,!0)},[r,a]),o=g,(0,n.useEffect)(()=>(window.addEventListener("resize",o),()=>void window.removeEventListener("resize",o)),[o]),(0,n.useEffect)(()=>{v(),x()},[e,y,g]),(0,n.useEffect)(()=>v,[]),[t=>{t&&t!==d.current.element&&(v(),d.current.element=t,d.current.scrollContainers=function t(e){let i=[];if(!e||e===document.body)return i;let{overflow:n,overflowX:s,overflowY:r}=window.getComputedStyle(e);return[n,s,r].some(t=>"auto"===t||"scroll"===t)&&i.push(e),[...i,...t(e.parentElement)]}(t),x())},u,f]}(),[p,f]=(0,n.useState)(0);function g(t){let e=(u.current?.children[0]).offsetWidth;u.current?.scrollTo({left:(e+32)*t})}return o(d,"change",t=>{let e=u?.current?.children[0]?.clientWidth||0;0!==e&&f(Math.floor(t/e))}),(0,e.jsxs)("div",{className:"overflow-hidden py-32",children:[(0,e.jsx)(ts.Container,{children:(0,e.jsxs)("div",{ref:c,children:[(0,e.jsx)(ta.Subheading,{children:s}),(0,e.jsx)(ta.Heading,{as:"h3",className:"mt-2",children:a})]})}),(0,e.jsxs)("div",{ref:u,className:(0,r.clsx)(["mt-16 flex gap-8 px-(--scroll-padding)","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden","snap-x snap-mandatory overflow-x-auto overscroll-x-contain scroll-smooth","[--scroll-padding:max(--spacing(6),calc((100vw-(var(--container-2xl)))/2))] lg:[--scroll-padding:max(--spacing(8),calc((100vw-(var(--container-7xl)))/2))]"]),children:[t.map(({img:t,name:i,title:n,quote:s},r)=>(0,e.jsx)(tl,{name:i,title:n,img:t,bounds:m,scrollX:d,onClick:()=>g(r),children:s},i)),(0,e.jsx)("div",{className:"w-2xl shrink-0 sm:w-216"})]}),(0,e.jsx)(ts.Container,{className:"mt-16",children:(0,e.jsxs)("div",{className:"flex justify-between",children:[(0,e.jsx)(tu,{}),(0,e.jsx)("div",{className:"hidden sm:flex sm:gap-2",children:t.map(({name:t},n)=>(0,e.jsx)(i.Button,{onClick:()=>g(n),"data-active":p===n||void 0,"aria-label":`Scroll to testimonial from ${t}`,className:(0,r.clsx)("size-2.5 rounded-full border border-transparent bg-gray-300 transition","data-active:bg-gray-400 data-hover:bg-gray-400","forced-colors:data-active:bg-[Highlight] forced-colors:data-focus:outline-offset-4")},t))})]})})]})}],584952)}]);
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.