PageSourceSearch

https://chad-trader.vercel.app/_next/static/chunks/cc4554573c04bf7c.js?dpl=dpl_9i7ruegJW81o8ZEDWkKEzs9PLZ4d

js chad-trader.vercel.app collected 2026-10-03 06:23:21 UTC 144,880 bytes, 23 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30589,41384,59379,69115,70821,45944,94804,92296,79145,9344,90160,47734,t=>{"use strict";let e,i;function r(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}t.i(47167);let n=t=>Array.isArray(t);function s(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function o(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function l(t,e,i,r){if("function"==typeof e){let[n,s]=o(r);e=e(void 0!==i?i:t.custom,n,s)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,s]=o(r);e=e(void 0!==i?i:t.custom,n,s)}return e}function u(t,e,i){let r=t.getProps();return l(r,e,void 0!==i?i:r.custom,t)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h];function c(t,e){return t?t[e]||t.default||t:void 0}let p=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],m=new Set(p),f=new Set(["width","height","top","left","right","bottom",...p]),g=t=>n(t)?t[t.length-1]||0:t,v=t=>t,y=["read","resolveKeyframes","update","preRender","render","postRender"];function x(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,a=y.reduce((t,e)=>(t[e]=function(t){let e=new Set,i=new Set,r=!1,n=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(e){s.has(e)&&(l.schedule(e),t()),e(a)}let l={schedule:(t,n=!1,a=!1)=>{let o=a&&r?e:i;return n&&s.add(t),o.has(t)||o.add(t),t},cancel:t=>{i.delete(t),s.delete(t)},process:t=>{if(a=t,r){n=!0;return}r=!0,[e,i]=[i,e],e.forEach(o),e.clear(),r=!1,n&&(n=!1,l.process(t))}};return l}(s),t),{}),{read:o,resolveKeyframes:l,update:u,preRender:h,render:d,postRender:c}=a,p=()=>{let s=performance.now();i=!1,n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1),n.timestamp=s,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),h.process(n),d.process(n),c.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(p))};return{schedule:y.reduce((e,s)=>{let o=a[s];return e[s]=(e,s=!1,a=!1)=>(!i&&(i=!0,r=!0,n.isProcessing||t(p)),o.schedule(e,s,a)),e},{}),cancel:t=>{for(let e=0;e<y.length;e++)a[y[e]].cancel(t)},state:n,steps:a}}let{schedule:b,cancel:w,state:P,steps:S}=x("u">typeof requestAnimationFrame?requestAnimationFrame:v,!0);function T(){e=void 0}t.s(["cancelFrame",()=>w,"frame",()=>b,"frameData",()=>P,"frameSteps",()=>S],41384);let A={now:()=>(void 0===e&&A.set(P.isProcessing?P.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(T)}};function C(t,e){-1===t.indexOf(e)&&t.push(e)}function E(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class j{constructor(){this.subscriptions=[]}add(t){return C(this.subscriptions,t),()=>E(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let M={current:void 0};class k{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=A.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=A.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!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 j);let i=this.events[t].add(e);return"change"===t?()=>{i(),b.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return M.current&&M.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=A.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function D(t,e){return new k(t,e)}t.s(["collectMotionValues",()=>M,"motionValue",()=>D],59379);let F=t=>!!(t&&t.getVelocity);function R(t,e){let i=t.getValue("willChange");if(F(i)&&i.add)return i.add(e)}t.s(["isMotionValue",()=>F],69115);let _=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),V="data-"+_("framerAppearId");function L(t){let e;return()=>(void 0===e&&(e=t()),e)}let O=L(()=>void 0!==window.ScrollTimeline);class N{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>O()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>
1{i.forEach((t,e)=>{t&&t(),this.animations[e].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class B extends N{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}let I=t=>1e3*t;function U(t){return"function"==typeof t}function $(t,e){t.timeline=e,t.onfinish=null}let z=t=>Array.isArray(t)&&"number"==typeof t[0],W,q=(i=L(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),()=>{var t;return null!=(t=W)?t:i()}),H=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},X=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=t(H(0,n-1,e))+", ";return`linear(${r.substring(0,r.length-2)})`},K=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,G={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:K([0,.65,.55,1]),circOut:K([.55,0,1,.45]),backIn:K([.31,.01,.66,-.59]),backOut:K([.33,1.53,.69,.99])},Y=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function Z(t,e,i,r){return t===e&&i===r?v:n=>0===n||1===n?n:Y(function(t,e,i,r,n){let s,a,o=0;do(s=Y(a=e+(i-e)/2,r,n)-t)>0?i=a:e=a;while(Math.abs(s)>1e-7&&++o<12)return a}(n,0,1,t,i),e,r)}let J=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Q=t=>e=>1-t(1-e),tt=Z(.33,1.53,.69,.99),te=Q(tt),ti=J(te),tr=t=>(t*=2)<1?.5*te(t):.5*(2-Math.pow(2,-10*(t-1))),tn=t=>1-Math.sin(Math.acos(t)),ts=Q(tn),ta=J(tn),to=(t,e,i)=>i>e?e:i<t?t:i,tl={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tu={...tl,transform:t=>to(0,1,t)},th={...tl,default:1},td=t=>Math.round(1e5*t)/1e5,tc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tp=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tm=(t,e)=>i=>!!("string"==typeof i&&tp.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tf=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,a,o]=r.match(tc);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},tg={...tl,transform:t=>Math.round(to(0,255,t))},tv={test:tm("rgb","red"),parse:tf("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tg.transform(t)+", "+tg.transform(e)+", "+tg.transform(i)+", "+td(tu.transform(r))+")"},ty={test:tm("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:tv.transform},tx=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tb=tx("deg"),tw=tx("%"),tP=tx("px"),tS=tx("vh"),tT=tx("vw"),tA={...tw,parse:t=>tw.parse(t)/100,transform:t=>tw.transform(100*t)},tC={test:tm("hsl","hue"),parse:tf("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+tw.transform(td(e))+", "+tw.transform(td(i))+", "+td(tu.transform(r))+")"},tE={test:t=>tv.test(t)||ty.test(t)||tC.test(t),parse:t=>tv.test(t)?tv.parse(t):tC.test(t)?tC.parse(t):ty.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tv.transform(t):tC.transform(t)},tj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tM="number",tk="color",tD=/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 tF(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,a=e.replace(tD,t=>(tE.test(t)?(r.color.push(s),n.push(tk),i.push(tE.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tM),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:a,indexes:r,types:n}}function tR(t){return tF(t).values}function t_(t){let{split:e,types:i}=tF(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===tM?n+=td(t[s]):e===tk?n+=tE.transform(t[s]):n+=t[s]}return n}}let tV=t=>"number"==typeof t?0:t,tL={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tc))?void 0:e.length)||0)+((null==(i=t.match(tj))?void 0:i.length)||0)>0},parse:tR,createTransformer:t_,getAnimatableNone:function(t){let e=tR(t);return t_(t)(e.map(tV))}},tO=new Set(["brightness","contrast","saturate","opacity"]);function tN(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tc)||[];if(!r)return t;let n=i.replace(r,""),s=+!!tO.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tB=/\b([a-z-]*)\(.*?\)/gu,tI={...tL,getAnimatableNone:t=>{let e=t.match(tB);return e?e.map(tN).join(" "):t}},tU={...tl,transform:Math.round},t$={borderWidth:tP,borderTopWidth:tP,borderRightWidth:tP,borderBottomWidth:tP,borderLeftWidth:tP,borderRadius:tP,radius:tP,borderTopLeftRadius:tP,borderTopRightRadius:tP,borderBottomRightRadius:tP,borderBottomLeftRadius:tP,width:tP,maxWidth:tP,height:tP,maxHeight:tP,top:tP,right:tP,bottom:tP,left:tP,padding:tP,paddingTop:tP,paddingRight:tP,paddingBottom:tP,paddingLeft:tP,margin:tP,marginTop:tP,marginRight:tP,marginBottom:tP,marginLeft:tP,backgroundPositionX:tP,backgroundPositionY:tP,rotate:tb,rotateX:tb,rotateY:tb,rotateZ:tb,scale:th,scaleX:th,scaleY:th,scaleZ:th,skew:tb,skewX:tb,skewY:tb,distance:tP,translateX:tP,translateY:tP,translateZ:tP,x:tP,y:tP,z:tP,perspective:tP,transformPerspective:tP,opacity:tu,originX:tA,originY:tA,originZ:tP,zIndex:tU,size:tP,fillOpacity:tu,strokeOpacity:tu,numOctaves:tU},tz={...t$,color:tE,backgroundColor:tE,outlineColor:tE,fill:tE,stroke:tE,borderColor:tE,borderTopColor:tE,borderRightColor:tE,borderBottomColor:tE,borderLeftColor:tE,filter:tI,WebkitFilter:tI},tW=t=>tz[t];function tq(t,e){let i=tW(t);return i!==tI&&(i=tL),i.getAnimatableNone?i.getAnimatableNone(e):void 0}
1let tH=new Set(["auto","none","0"]),tX=t=>t===tl||t===tP,tK=(t,e)=>parseFloat(t.split(", ")[e]),tG=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return tK(n[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?tK(e[1],t):0}},tY=new Set(["x","y","z"]),tZ=p.filter(t=>!tY.has(t)),tJ={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:tG(4,13),y:tG(5,14)};tJ.translateX=tJ.x,tJ.translateY=tJ.y;let tQ=new Set,t0=!1,t1=!1;function t2(){if(t1){let t=Array.from(tQ).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e,r=(e=[],tZ.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e);r.length&&(i.set(t,r),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null==(r=t.getValue(e))||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t1=!1,t0=!1,tQ.forEach(t=>t.complete()),tQ.clear()}function t5(){tQ.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t1=!0)})}class t3{constructor(t,e,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tQ.add(this),t0||(t0=!0,b.read(t5),b.resolveKeyframes(t2))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let n=0;n<t.length;n++)if(null===t[n])if(0===n){let n=null==r?void 0:r.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tQ.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tQ.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let t9=t=>e=>"string"==typeof e&&e.startsWith(t),t4=t9("--"),t8=t9("var(--"),t6=t=>!!t8(t)&&t7.test(t.split("/*")[0].trim()),t7=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,et=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ee=t=>e=>e.test(t),ei=[tl,tP,tw,tb,tT,tS,{test:t=>"auto"===t,parse:t=>t}],er=t=>ei.find(ee(t));class en extends t3{constructor(t,e,i,r,n){super(t,e,i,r,n,!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 r=t[i];if("string"==typeof r&&t6(r=r.trim())){let n=function t(e,i,r=1){v(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=et.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${null!=i?i:r}`,n]}(e);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let t=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t)?parseFloat(t):t}return t6(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!f.has(i)||2!==t.length)return;let[r,n]=t,s=er(r),a=er(n);if(s!==a)if(tX(s)&&tX(a))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;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 r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!tH.has(e)&&tF(e).values.length&&(r=t[n]),n++}if(r&&i)for(let n of e)t[n]=tq(i,r)}(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=tJ[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,a=r[s];r[s]=tJ[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let es=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tL.test(t)||"0"===t)&&!t.startsWith("url(")),ea=t=>null!==t;function eo(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(ea),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return s&&void 0!==r?r:n[s]}class el{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=A.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(t5(),t2()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=A.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:n,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],a=es(n,e),o=es(s,e);return v(a===o,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!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||U(i))&&r)}(t,i,r,n))if(s)this.options.duration=0;else{o&&o(eo(t,this.options,e)),a&&a(),this.resolveFinishedPromise();return}let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function eu(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 eh=(t,e,i)=>t+(e-t)*i;function ed(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 ec(t,e){return i=>i>0?e:t}let ep=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},em=[ty,tv,tC];function ef(t){let e=em.find(e=>e.test(t));if(v(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tC&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,a=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,o=2*i-r;n=ed(o,r,t+1/3),s=ed(o,r,t),a=ed(o,r,t-1/3)}else n=s=a=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:r}}(i)),i}let eg=(t,e)=>{let i=ef(t),r=ef(e);if(!i||!r)return ec(t,e);let n={...i};return t=>(n.red=ep(i.red,r.red,t),n.green=ep(i.green,r.green,t),n.blue=ep(i.blue,r.blue,t),n.alpha=eh(i.alpha,r.alpha,t),tv.transform(n))},ev=(t,e)=>i=>e(t(i)),ey=(...t)=>t.reduce(ev),ex=new Set(["none","hidden"]);function eb(t,e){return i=>eh(t,e,i)}function ew(t){return"number"==typeof t?eb:"string"==typeof t?t6(t)?ec:tE.test(t)?eg:eT:Array.isArray(t)?eP:"object"==typeof t?tE.test(t)?eg:eS:ec}function eP(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>ew(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function eS(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=ew(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let eT=(t,e)=>{let i=tL.createTransformer(e),r=tF(t),n=tF(e);if(!(r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length))return v(!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.`),ec(t,e);if(ex.has(t)&&!n.values.length||ex.has(e)&&!r.values.length)return ex.has(t)?i=>i<=0?t:e:i=>i>=1?e:t;return ey(eP(function(t,e){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let a=e.types[s],o=t.indexes[a][n[a]],l=null!=(i=t.values[o])?i:0;r[s]=l,n[a]++}return r}(r,n),n.values),i)};function eA(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eh(t,e,i):ew(t)(t,e)}function eC(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}let eE=.01,ej=2,eM=.005,ek=.5;function eD(t,e){return t*Math.sqrt(1-e*e)}let eF=["duration","bounce"],eR=["stiffness","damping","mass"];function e_(t,e){return e.some(e=>void 0!==t[e])}function eV(t=.3,e=.3){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:s}=r,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:m}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e_(t,eR)&&e_(t,eF))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*to(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:1,stiffness:r,damping:n}}else{let i=function({duration:t=800,bounce:e=.3,velocity:i=0,mass:r=1}){let n,s;
1v(t<=I(10),"Spring duration must be 10 seconds or less");let a=1-e;a=to(.05,1,a),t=to(.01,10,t/1e3),a<1?(n=e=>{let r=e*a,n=r*t;return .001-(r-i)/eD(e,a)*Math.exp(-n)},s=e=>{let r=e*a*t,s=Math.pow(a,2)*Math.pow(e,2)*t,o=Math.exp(-r),l=eD(Math.pow(e,2),a);return(r*i+i-s)*o*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let o=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=I(t),isNaN(o))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(o,2)*r;return{stiffness:e,damping:2*a*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-((r.velocity||0)/1e3)}),f=p||0,g=h/(2*Math.sqrt(u*d)),y=o-a,x=Math.sqrt(u/d)/1e3,b=5>Math.abs(y);if(n||(n=b?eE:ej),s||(s=b?eM:ek),g<1){let t=eD(x,g);i=e=>o-Math.exp(-g*x*e)*((f+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>o-Math.exp(-x*t)*(y+(f+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),r=Math.min(t*e,300);return o-i*((f+g*x*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}let w={calculatedDuration:m&&c||null,next:t=>{let e=i(t);if(m)l.done=t>=c;else{let r=0;g<1&&(r=0===t?I(f):eC(i,t,e));let a=Math.abs(o-e)<=s;l.done=Math.abs(r)<=n&&a}return l.value=l.done?o:e,l},toString:()=>{let t=Math.min(eu(w),2e4),e=X(e=>w.next(t*e).value,t,30);return t+"ms "+e}};return w}function eL({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],m={done:!1,value:p},f=i*e,g=p+f,v=void 0===a?g:a(g);v!==g&&(f=v-p);let y=t=>-f*Math.exp(-t/r),x=t=>v+y(t),b=t=>{let e=y(t),i=x(t);m.done=Math.abs(e)<=u,m.value=m.done?v:i},w=t=>{let e;if(e=m.value,void 0!==o&&e<o||void 0!==l&&e>l){var i;d=t,c=eV({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:eC(x,t,m.value),damping:n,stiffness:s,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),m)}}}let eO=Z(.42,0,1,1),eN=Z(0,0,.58,1),eB=Z(.42,0,.58,1),eI={linear:v,easeIn:eO,easeInOut:eB,easeOut:eN,circIn:tn,circInOut:ta,circOut:ts,backIn:te,backInOut:ti,backOut:tt,anticipate:tr},eU=t=>{if(z(t)){v(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return Z(e,i,r,n)}return"string"==typeof t?(v(void 0!==eI[t],`Invalid easing type '${t}'`),eI[t]):t};function e$(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(v(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let a=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());let o=function(t,e,i){let r=[],n=i||eA,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=ey(Array.isArray(e)?e[i]||v:e,s)),r.push(s)}return r}(e,r,n),l=o.length,u=i=>{if(a&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=H(t[r],t[r+1],i);return o[r](n)};return i?e=>u(to(t[0],t[s-1],e)):u}function ez({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){var n;let s,a=Array.isArray(r)&&"number"!=typeof r[0]?r.map(eU):eU(r),o={done:!1,value:e[0]},l=e$((n=i&&i.length===e.length?i:(!function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=H(0,e,r);t.push(eh(i,1,n))}}(s=[0],e.length-1),s),n.map(e=>e*t)),e,{ease:Array.isArray(a)?a:e.map(()=>a||eB).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}t.s(["interpolate",()=>e$],70821);let eW=t=>{let e=({timestamp:e})=>t(e);return{start:()=>b.update(e,!0),stop:()=>w(e),now:()=>P.isProcessing?P.timestamp:A.now()}},eq={decay:eL,inertia:eL,tween:ez,keyframes:ez,spring:eV},eH=t=>t/100;class eX extends el{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};const{name:e,motionValue:i,element:r,keyframes:n}=this.options,s=(null==r?void 0:r.KeyframeResolver)||t3,a=(t,e)=>this.onKeyframesResolved(t,e);this.resolver=new s(n,a,e,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=U(r)?r:eq[r]||ez;l!==ez&&"number"!=typeof t[0]&&(e=ey(eH,eA(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===a&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=eu(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(n+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,c
1alculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=n;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,m&&(i-=m/h)):"mirror"===p&&(x=s)),y=to(0,1,i)*h}let b=v?{done:!1,value:o[0]}:x.next(y);a&&(b.value=a(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==r&&(b.value=eo(o,this.options,r)),f&&f(b.value),P&&this.finish(),b}get duration(){let{resolved:t}=this;return t?t.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(t){t=I(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eW,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(t=this.currentTime)?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}function eK(t){return new eX(t)}t.s(["MainThreadAnimation",()=>eX,"animateValue",()=>eK],45944);let eG=new Set(["opacity","clipPath","filter","transform"]),eY=L(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eZ={anticipate:tr,backInOut:ti,circInOut:ta};class eJ extends el{constructor(t){super(t);const{name:e,motionValue:i,element:r,keyframes:n}=this.options;this.resolver=new en(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:n,ease:s,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof s&&q()&&s in eZ&&(s=eZ[s]),U((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&q()||!e||"string"==typeof e&&(e in G||q())||z(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:o,element:l,...u}=this.options,h=function(t,e){let i=new eX({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,n=h.times,s=h.ease,a="keyframes"}let h=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&q()?X(e,i):z(e)?K(e):Array.isArray(e)?e.map(e=>t(e,i)||G.easeOut):G[e]}(o,n);return Array.isArray(h)&&(u.easing=h),t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,l,t,{...this.options,duration:r,times:n,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?($(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;o.set(eo(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedProm
1ise()},{animation:h,duration:r,times:n,type:a,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return e/1e3}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return(e.currentTime||0)/1e3}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=I(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return v;let{animation:i}=e;$(i,t)}else this.pendingTimeline=t;return v}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:s,times:a}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:o,element:l,...u}=this.options,h=new eX({...u,keyframes:i,duration:r,type:n,ease:s,times:a,isGenerator:!0}),d=I(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:a}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=e.owner.getProps();return eY()&&i&&eG.has(i)&&!o&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==a}}let eQ={type:"spring",stiffness:500,damping:25,restSpeed:10},e0={type:"keyframes",duration:.8},e1={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e2=(t,e,i,r={},n,s)=>a=>{let o=c(r,t)||{},l=o.delay||r.delay||0,{elapsed:u=0}=r;u-=I(l);let h={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...o,delay:-u,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(o)&&(h={...h,...((t,{keyframes:e})=>e.length>2?e0:m.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===e[1]?2*Math.sqrt(550):30,restSpeed:10}:eQ:e1)(t,h)}),h.duration&&(h.duration=I(h.duration)),h.repeatDelay&&(h.repeatDelay=I(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(d=!0)),d&&!s&&void 0!==e.get()){let t=eo(h.keyframes,o);if(void 0!==t)return b.update(()=>{h.onUpdate(t),h.onComplete()}),new B([])}return!s&&eJ.supports(h)?new eJ(h):new eX(h)};function e5(t,e,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:a=t.getDefaultTransition(),transitionEnd:o,...l}=e;r&&(a=r);let h=[],d=n&&t.animationState&&t.animationState.getState()[n];for(let e in l){let r=t.getValue(e,null!=(s=t.latestValues[e])?s:null),n=l[e];if(void 0===n||d&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(d,e))continue;let o={delay:i,...c(a||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[V];if(i){let t=window.MotionHandoffAnimation(i,e,b);null!==t&&(o.startTime=t,u=!0)}}R(t,e),r.start(e2(e,r,n,t.shouldReduceMotion&&f.has(e)?{type:!1}:o,t,u));let p=r.animation;p&&h.push(p)}return o&&Promise.all(h).then(()=>{b.update(()=>{o&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=u(t,e)||{};for(let e in n={...n,...i}){let i=g(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,D(i))}}(t,o)})}),h}function e3(t,e,i={}){var r;let n=u(t,e,"exit"===i.type?null==(r=t.presenceContext)?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let a=n?()=>Promise.all(e5(t,n,i)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=s;
1return function(t,e,i=0,r=0,n=1,s){let a=[],o=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>o-t*r;return Array.from(t.variantChildren).sort(e9).forEach((t,r)=>{t.notify("AnimationStart",e),a.push(e3(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(a)}(t,e,n+r,a,o,i)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([a(),o(i.delay)]);{let[t,e]="beforeChildren"===l?[a,o]:[o,a];return t().then(()=>e())}}function e9(t,e){return t.sortNodePosition(e)}let e4=d.length,e8=[...h].reverse(),e6=h.length;function e7(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function it(){return{animate:e7(!0),whileInView:e7(),whileHover:e7(),whileTap:e7(),whileDrag:e7(),whileFocus:e7(),exit:e7()}}class ie{constructor(t){this.isMounted=!1,this.node=t}update(){}}let ii=0,ir={x:!1,y:!1},is=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ia(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}function io(t){return{point:{x:t.pageX,y:t.pageY}}}function il(t,e,i,r){return ia(t,e,t=>is(t)&&i(t,io(t)),r)}let iu=(t,e)=>Math.abs(t-e);class ih{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let i=ip(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,n=(t=i.offset,e={x:0,y:0},Math.sqrt(iu(t.x,e.x)**2+iu(t.y,e.y)**2)>=3);if(!r&&!n)return;let{point:s}=i,{timestamp:a}=P;this.history.push({...s,timestamp:a});let{onStart:o,onMove:l}=this.handlers;r||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=id(e,this.transformPagePoint),b.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=ip("pointercancel"===t.type?this.lastMoveEventInfo:id(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!is(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;const s=id(io(t),this.transformPagePoint),{point:a}=s,{timestamp:o}=P;this.history=[{...a,timestamp:o}];const{onSessionStart:l}=e;l&&l(t,ip(s,this.history)),this.removeListeners=ey(il(this.contextWindow,"pointermove",this.handlePointerMove),il(this.contextWindow,"pointerup",this.handlePointerUp),il(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),w(this.updatePoint)}}function id(t,e){return e?{point:e(t.point)}:t}function ic(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ip({point:t},e){return{point:t,delta:ic(t,im(e)),offset:ic(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=im(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>I(.1)));)i--;if(!r)return{x:0,y:0};let s=(n.timestamp-r.timestamp)/1e3;if(0===s)return{x:0,y:0};let a={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(e,.1)}}function im(t){return t[t.length-1]}function ig(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function iv(t){return t.max-t.min}function iy(t,e,i,r=.5){t.origin=r,t.originPoint=eh(e.min,e.max,t.origin),t.scale=iv(i)/iv(e),t.translate=eh(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 ix(t,e,i,r){iy(t.x,e.x,i.x,r?r.originX:void 0),iy(t.y,e.y,i.y,r?r.originY:void 0)}function ib(t,e,i){t.min=i.min+e.min,t.max=t.min+iv(e)}function iw(t,e,i){t.min=e.min-i.min,t.max=t.min+iv(e)}function iP(t,e,i){iw(t.x,e.x,i.x),iw(t.y,e.y,i.y)}function iS(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 iT(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function iA(t,e,i){return{min:iC(t,e),max:iC(t,i)}}function iC(t,e){return"number"==typeof t?t:t[e]||0}let iE=()=>({translate:0,scale:1,origin:0,originPoint:0}),ij=()=>({x:iE(),y:iE()}),iM=()=>({min:0,max:0}),ik=()=>({x:iM(),y:iM()});function iD(t){return[t("x"),t("y")]}function iF({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function iR(t){return void 0===t||1===t}function i_({scale:t,scaleX:e,scaleY:i}){return!iR(t)||!iR(e)||!iR(i)}function iV(t){return i_(t)||iL(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iL(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iO(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function iN(t,e=0,i=1,r,n){t.min=iO(t.min,e,i,r,n),t.max=iO(t.max,e,i,r,n)}function iB(t,{x:e,y:i}){iN(t.x,e.translate,e.scale,e.originPoint),iN(t.y,i.translate,i.scale,i.originPoint)}function iI(t,e){t.min=t.min+e,t.max=t.max+e}function iU(t,e,i,r,n=.5){let s=eh(t.min,t.max,n);iN(t,e,i,s,r)}function i$(t,e){iU(t.x,e.x,e.scaleX,e.scale,e.originX),iU(t.y,e.y,e.scaleY,e.scale,e.originY)}function iz(t,e){return iF(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let iW=({current:t})=>t?t.ownerDocument.defaultView:null,iq=new WeakMap;class iH{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=ik(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let r=t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(io(t).point)},n=(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ir[t])return null;else return ir[t]=!0,()=>{ir[t]=!1};return ir.x||ir.y?null:(ir.x=ir.y=!0,()=>{ir.x=ir.y=!1})}(i),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iD(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tw.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=iv(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&b.postRender(()=>n(t,e)),R(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=e;if(r&&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&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,a),this.updateAxis("y",e.point,a),this.visualElement.render(),s&&s(t,e)},a=(t,e)=>this.stop(t,e),o=()=>iD(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new ih(t,{onSessionStart:r,onStart:n,onMove:s,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:iW(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&b.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!iX(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?eh(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?eh(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,n=this.constraints;e&&ig(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:iS(t.x,i,n),y:iS(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iA(t,"left","right"),y:iA(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&iD(t=>{var e,i;let n;!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=(e=r.layoutBox[t],i=this.constraints[t],n={},void 0!==i.min&&(n.min=i.min-e.min),void 0!==i.max&&(n.max=i.max-e.min),n))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!ig(e))return!1;let r=e.current;v(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let s=function(t,e,i){let r=iz(t,i),{scroll:n}=e;return n&&(iI(r.x,n.offset.x),iI(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),a=(t=n.layout.layoutBox,{x:iT(t.x,s.x),y:iT(t.y,s.y)});if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(a));this.hasMutatedConstraints=!!t,t&&(a=iF(t))}return a}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(iD(a=>{if(!iX(a,e,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return R(this.visualElement,t),i.start(e2(t,i,0,e,this.visualElement,!1))}stopAnimation(){iD(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iD(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iD(e=>{let{drag:i}=this.getProps();if(!iX(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-eh(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!ig(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iD(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){var i,n;let s,a,o,l=e.get();r[t]=(i={min:l,max:l},n=this.constraints[t],s=.5,a=iv(i),(o=iv(n))>a?s=H(n.min,n.max-a,i.min):a>o&&(s=H(i.min,i.max-o,n.min)),to(0,1,s))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iD(e=>{if(!iX(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(eh(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;iq.set(this.visualElement,this);let t=il(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();ig(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),b.read(e);let n=ia(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iD(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function iX(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}let iK=t=>(e,i)=>{t&&b.postRender(()=>t(e,i))};var iG,iY,iZ,iJ=t.i(43476),iQ=t.i(71645);let i0=(0,iQ.createContext)(null);function i1(t=!0){let e=(0,iQ.useContext)(i0);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:r,register:n}=e,s=(0,iQ.useId)();(0,iQ.useEffect)(()=>{t&&n(s)},[t]);let a=(0,iQ.useCallback)(()=>t&&r&&r(s),[s,r,t]);return!i&&r?[!1,a]:[!0]}t.s(["PresenceContext",()=>i0],94804),t.s(["usePresence",()=>i1],92296);let i2=(0,iQ.createContext)({});t.s(["LayoutGroupContext",()=>i2],79145);let i5=(0,iQ.createContext)({}),i3={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i9(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let i4={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tP.test(t))return t;else t=parseFloat(t);let i=i9(t,e.target.x),r=i9(t,e.target.y);return`${i}% ${r}%`}},i8={},{schedule:i6,cancel:i7}=x(queueMicrotask,!1);class rt extends iQ.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;Object.assign(i8,ri),n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),i3.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent!==n&&(n?s.promote():s.relegate()||b.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),i6.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function re(t){let[e,i]=i1(),r=(0,iQ.useContext)(i2);return(0,iJ.jsx)(rt,{...t,layoutGroup:r,switchLayoutGroup:(0,iQ.useContext)(i5),isPresent:e,safeToRemove:i})}let ri={borderRadius:{...i4,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:i4,borderTopRightRadius:i4,borderBottomLeftRadius:i4,borderBottomRightRadius:i4,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tL.parse(t);if(r.length>5)return t;let n=tL.createTransformer(t),s=+("number"!=typeof r[0]),a=i.x.scale*e.x,o=i.y.scale*e.y;r[0+s]/=a,r[1+s]/=o;let l=eh(a,o,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},rr=(t,e)=>t.depth-e.depth;class rn{constructor(){this.children=[],this.isDirty=!1}add(t){C(this.children,t),this.isDirty=!0}remove(t){E(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rr),this.isDirty=!1,this.children.forEac
1h(t)}}function rs(t){let e=F(t)?t.get():t;return e&&"object"==typeof e&&e.mix&&e.toValue?e.toValue():e}let ra=["TopLeft","TopRight","BottomLeft","BottomRight"],ro=ra.length,rl=t=>"string"==typeof t?parseFloat(t):t,ru=t=>"number"==typeof t||tP.test(t);function rh(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rd=rp(0,.5,ts),rc=rp(.5,.95,v);function rp(t,e,i){return r=>r<t?0:r>e?1:i(H(t,e,r))}function rm(t,e){t.min=e.min,t.max=e.max}function rf(t,e){rm(t.x,e.x),rm(t.y,e.y)}function rg(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rv(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function ry(t,e,[i,r,n],s,a){!function(t,e=0,i=1,r=.5,n,s=t,a=t){if(tw.test(e)&&(e=parseFloat(e),e=eh(a.min,a.max,e/100)-a.min),"number"!=typeof e)return;let o=eh(s.min,s.max,r);t===s&&(o-=e),t.min=rv(t.min,e,i,o,n),t.max=rv(t.max,e,i,o,n)}(t,e[i],e[r],e[n],e.scale,s,a)}let rx=["x","scaleX","originX"],rb=["y","scaleY","originY"];function rw(t,e,i,r){ry(t.x,e,rx,i?i.x:void 0,r?r.x:void 0),ry(t.y,e,rb,i?i.y:void 0,r?r.y:void 0)}function rP(t){return 0===t.translate&&1===t.scale}function rS(t){return rP(t.x)&&rP(t.y)}function rT(t,e){return t.min===e.min&&t.max===e.max}function rA(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rC(t,e){return rA(t.x,e.x)&&rA(t.y,e.y)}function rE(t){return iv(t.x)/iv(t.y)}function rj(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rM{constructor(){this.members=[]}add(t){C(this.members,t),t.scheduleRender()}remove(t){if(E(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let rk={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},rD="u">typeof window&&void 0!==window.MotionDebug,rF=["","X","Y","Z"],rR={visibility:"hidden"},r_=0;function rV(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rL({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=r_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rD&&(rk.totalNodes=rk.resolvedTargetDeltas=rk.recalculatedProjection=0),this.nodes.forEach(rB),this.nodes.forEach(rH),this.nodes.forEach(rX),this.nodes.forEach(rI),rD&&window.MotionDebug.record(rk)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rn)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new j
1),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,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,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),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{let t,e;this.root.updateBlockedByResize=!0,i&&i(),t=A.now(),e=({timestamp:i})=>{let n=i-t;n>=250&&(w(e),r(n-250))},b.read(e,!0),i=()=>w(e),i3.hasAnimatedSinceResize&&(i3.hasAnimatedSinceResize=!1,this.nodes.forEach(rq))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||rQ,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!rC(this.targetLayout,r)||i,u=!e&&i;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...c(n,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rq(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}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,w(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(rK),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 r=i.props[V];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",b,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r$);return}this.isUpdating||this.nodes.forEach(rz),this.isUpdating=!1,this.nodes.forEach(rW),this.nodes.forEach(rO),this.nodes.forEach(rN),this.clearAllSnapshots();let t=A.now();P.delta=to(0,1e3/60,t-P.timestamp),P.timestamp=t,P.isProcessing=!0,S.update.process(P),S.preRender.process(P),S.render.process(P),P.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,i6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rU),this.sharedNodes.forEach(rG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,b.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){b.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}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.layoutCorrected=ik(),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){let e=r(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(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rS(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||iV(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),r2((e=r).x),r2(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return ik();let i=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(r3))){let{scroll:t}=this.root;t&&(iI(i.x,t.offset.x),iI(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=ik();if(rf(i,t),null==(e=this.scroll)?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&rf(i,t),iI(i.x,n.offset.x),iI(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=ik();rf(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&i$(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),iV(r.latestValues)&&i$(i,r.latestValues)}return iV(this.latestValues)&&i$(i,this.latestValues),i}removeTransform(t){let e=ik();rf(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iV(i.latestValues))continue;i_(i.latestValues)&&i.updateSnapshot();let r=ik();rf(r,i.measurePageBox()),rw(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return iV(this.latestValues)&&rw(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!==P.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let a=!!this.resumingFrom||this!==s;if(!(t||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=P.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ik(),this.relativeTargetOrigin=ik(),iP(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ik(),this.targetWithTransforms=ik()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,ib(i.x,r.x,n.x),ib(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rf(this.target,this.layout.layoutBox),iB(this.target,this.targetDelta)):rf(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ik(),this.relativeTargetOrigin=ik(),iP(this.relativeTargetOrigin,this.target,t.target),rf(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rD&&rk.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||i_(this.parent.latestValues)||iL(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)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===P.timestamp&&(r=!1),r)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;rf(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(t,e,i,r=!1){let n,s,a=i.length;if(a){e.x=e.y=1;for(let o=0;o<a;o++){s=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&i$(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iB(t,s)),r&&iV(n.latestValues)&&i$(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ik());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rg(this.prevProjectionDelta.x,this.projectionDelta.x),rg(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ix(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&rj(this.projectionDelta.x,this.prevProjectionDelta.x)&&rj(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rD&&rk.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null==(e=this.options.visualElement)||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ij(),this.projectionDelta=ij(),this.projectionDeltaWithTransform=ij()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},a=ij();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let o=ik(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(rJ));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(rY(a.x,t.x,r),rY(a.y,t.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,m,f,g;iP(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=o,g=r,rZ(p.x,m.x,f.x,g),rZ(p.y,m.y,f.y,g),i&&(u=this.relativeTarget,c=i,rT(u.x,c.x)&&rT(u.y,c.y))&&(this.isProjectionDirty=!1),i||(i=ik()),rf(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=eh(0,void 0!==i.opacity?i.opacity:1,rd(r)),t.opacityExit=eh(void 0!==e.opacity?e.opacity:1,0,rc(r))):s&&(t.opacity=eh(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<ro;n++){let s=`border${ra[n]}Radius`,a=rh(e,s),o=rh(i,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ru(a)===ru(o)?(t[s]=Math.max(eh(rl(a),rl(o),r),0),(tw.test(o)||tw.test(a))&&(t[s]+="%")):t[s]=o)}(e.rotate||i.rotate)&&(t.rotate=eh(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(w(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=b.update(()=>{var e;let i;i3.hasAnimatedSinceResize=!0,this.currentAnimation=(e={...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.onComplete(),this.completeAnimation()}},(i=F(0)?0:D(0)).start(e2("",i,1e3,e)),i.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:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&r5(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||ik();let e=iv(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=iv(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rf(e,i),i$(e,n),ix(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rM),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(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.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 r=this.getStack();r&&r.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 r={};i.z&&rV("z",t,r,this.animationValues);for(let e=0;e<rF.length;e++)rV(`rotate${rF[e]}`,t,r,this.animationValues),rV(`skew${rF[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rR;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=rs(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=rs(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iV(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let a=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),r.transform=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,a=(null==i?void 0:i.z)||0;if((n||s||a)&&(r=`translate3d(${n}px, ${s}px, ${a}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:a,skewY:o}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),o&&(r+=`skewY(${o}deg) `)}let o=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==o||1!==l)&&(r+=`scale(${o}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),n&&(r.transform=n(a,r.transform));let{x:o,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!=(i=null!=(e=a.opacity)?e:this.latestValues.opacity)?i:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,i8){if(void 0===a[t])continue;let{correct:e,applyTo:i}=i8[t],n="none"===r.transform?a[t]:e(a[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=n}else r[t]=n}return this.options.layoutId&&(r.pointerEvents=s===this?rs(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(r$),this.root.sharedNodes.clear()}}}function rO(t){t.updateLayout()}function rN(t){var e;let i=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?iD(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=iv(r);r.min=e[t].min,r.max=r.min+n}):r5(n,i.layoutBox,e)&&iD(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],a=iv(e[r]);n.max=n.min+a,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+a)});let a=ij();ix(a,e,i.layoutBox);let o=ij();s?ix(o,t.applyTransform(r,!0),i.measuredBox):ix(o,e,i.layoutBox);let l=!rS(a),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let a=ik();iP(a,i.layoutBox,n.layoutBox);let o=ik();iP(o,e,s.layoutBox),rC(a,o)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=o,t.relativeTargetOrigin=a,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rB(t){rD&&rk.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rI(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rU(t){t.clearSnapshot()}function r$(t){t.clearMeasurements()}function rz(t){t.isLayoutDirty=!1}function rW(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rq(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rH(t){t.resolveTargetDelta()}function rX(t){t.calcProjection()}function rK(t){t.resetSkewAndRotation()}function rG(t){t.removeLeadSnapshot()}function rY(t,e,i){t.translate=eh(e.translate,0,i),t.scale=eh(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function rZ(t,e,i,r){t.min=eh(e.min,i.min,r),t.max=eh(e.max,i.max,r)}function rJ(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rQ={duration:.45,ease:[.4,0,.1,1]},r0=t=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),r1=r0("applewebkit/")&&!r0("chrome/")?Math.round:v;function r2(t){t.min=r1(t.min),t.max=r1(t.max)}
1function r5(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rE(e)-rE(i)))}function r3(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let r9=rL({attachResizeListener:(t,e)=>ia(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),r4={current:void 0},r8=rL({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!r4.current){let t=new r9({});t.mount(window),t.setOptions({layoutScroll:!0}),r4.current=t}return r4.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function r6(t,e){let i=function(t,e,i){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function r7(t){return e=>{"touch"===e.pointerType||ir.x||ir.y||t(e)}}function nt(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&b.postRender(()=>n(e,io(e)))}let ne=(t,e)=>!!e&&(t===e||ne(t,e.parentElement)),ni=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nr=new WeakSet;function nn(t){return e=>{"Enter"===e.key&&t(e)}}function ns(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function na(t){return is(t)&&!(ir.x||ir.y)}function no(t,e,i){let{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&b.postRender(()=>n(e,io(e)))}let nl=new WeakMap,nu=new WeakMap,nh=t=>{let e=nl.get(t.target);e&&e(t)},nd=t=>{t.forEach(nh)},nc={some:0,all:1},np=(0,iQ.createContext)({strict:!1}),nm=(0,iQ.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});t.s(["MotionConfigContext",()=>nm],9344);let nf=(0,iQ.createContext)({});function ng(t){return r(t.animate)||d.some(e=>a(t[e]))}function nv(t){return!!(ng(t)||t.variants)}function ny(t){return Array.isArray(t)?t.join(" "):t}let nx="u">typeof window,nb={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"]},nw={};for(let t in nb)nw[t]={isEnabled:e=>nb[t].some(t=>!!e[t])};let nP=Symbol.for("motionComponentSymbol"),nS=nx?iQ.useLayoutEffect:iQ.useEffect;t.s(["useIsomorphicLayoutEffect",()=>nS],90160);let nT=["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 nA(t){if("string"!=typeof t||t.includes("-"));else if(nT.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}function nC(t){let e=(0,iQ.useRef)(null);return null===e.current&&(e.current=t()),e.current}t.s(["useConstant",()=>nC],47734);let nE=t=>(e,i)=>{let n=(0,iQ.useContext)(nf),s=(0,iQ.useContext)(i0),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},n,s,a){let o={latestValues:function(t,e,i,n){let s={},a=n(t,{});for(let t in a)s[t]=rs(a[t]);let{initial:o,animate:u}=t,h=ng(t),d=nv(t);e&&d&&!h&&!1!==t.inherit&&(void 0===o&&(o=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===o)?u:o;if(p&&"boolean"!=typeof p&&!r(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let r=l(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(n,s,a,t),renderState:e()};return i&&(o.onMount=t=>i({props:n,current:t,...o}),o.onUpdate=t=>i(t)),o})(t,e,n,s);return i?a():nC(a)},nj=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nM={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nk=p.length;function nD(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,a=!1,o=!1;for(let t in e){let i=e[t];if(m.has(t)){a=!0;continue}if(t4(t)){n[t]=i;continue}{let e=nj(i,t$[t]);t.startsWith("origin")?(o=!0,s[t]=e):r[t]=e}}
1if(!e.transform&&(a||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<nk;s++){let a=p[s],o=t[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||i){let t=nj(o,t$[a]);if(!l){n=!1;let e=nM[a]||a;r+=`${e}(${t}) `}i&&(e[a]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),o){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let nF={offset:"stroke-dashoffset",array:"stroke-dasharray"},nR={offset:"strokeDashoffset",array:"strokeDasharray"};function n_(t,e,i){return"string"==typeof t?t:tP.transform(e+i*t)}function nV(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u},h,d){let c,p;if(nD(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:m,style:f,dimensions:g}=t;m.transform&&(g&&(f.transform=m.transform),delete m.transform),g&&(void 0!==n||void 0!==s||f.transform)&&(c=n_(void 0!==n?n:.5,g.x,g.width),p=n_(void 0!==s?s:.5,g.y,g.height),f.transformOrigin=`${c} ${p}`),void 0!==e&&(m.x=e),void 0!==i&&(m.y=i),void 0!==r&&(m.scale=r),void 0!==a&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?nF:nR;t[s.offset]=tP.transform(-r);let a=tP.transform(e),o=tP.transform(i);t[s.array]=`${a} ${o}`}(m,a,o,l,!1)}let nL=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nO=()=>({...nL(),attrs:{}}),nN=t=>"string"==typeof t&&"svg"===t.toLowerCase();function nB(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let nI=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"]);function nU(t,e,i,r){for(let i in nB(t,e,void 0,r),e.attrs)t.setAttribute(nI.has(i)?i:_(i),e.attrs[i])}function n$(t,{layout:e,layoutId:i}){return m.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!i8[t]||"opacity"===t)}function nz(t,e,i){var r;let{style:n}=t,s={};for(let a in n)(F(n[a])||e.style&&F(e.style[a])||n$(a,t)||(null==(r=null==i?void 0:i.getValue(a))?void 0:r.liveStyle)!==void 0)&&(s[a]=n[a]);return s}function nW(t,e,i){let r=nz(t,e,i);for(let i in t)(F(t[i])||F(e[i]))&&(r[-1!==p.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}let nq=["x","y","width","height","cx","cy","r"],nH={useVisualState:nE({scrapeMotionValuesFromProps:nW,createRenderState:nO,onUpdate:({props:t,prevProps:e,current:i,renderState:r,latestValues:n})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in n)if(m.has(t)){s=!0;break}}if(!s)return;let a=!e;if(e)for(let i=0;i<nq.length;i++){let r=nq[i];t[r]!==e[r]&&(a=!0)}a&&b.read(()=>{try{r.dimensions="function"==typeof i.getBBox?i.getBBox():i.getBoundingClientRect()}catch(t){r.dimensions={x:0,y:0,width:0,height:0}}b.render(()=>{nV(r,n,nN(i.tagName),t.transformTemplate),nU(i,r)})})}})},nX={useVisualState:nE({scrapeMotionValuesFromProps:nz,createRenderState:nL})};function nK(t,e,i){for(let r in e)F(e[r])||n$(r,i)||(t[r]=e[r])}let nG=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function nY(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nG.has(t)}let nZ=t=>!nY(t);try{(iG=(()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)&&(nZ=t=>t.startsWith("on")?!nY(t):iG(t))}catch(t){}let nJ={current:null},nQ={current:!1},n0=[...ei,tE,tL],n1=new WeakMap,n2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];
1class n5{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let t=A.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,b.render(this.render,!1,!0))};const{latestValues:o,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=e.initial?{...o}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=ng(e),this.isVariantNode=nv(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!==o[t]&&F(e)&&e.set(o[t],!1)}}mount(t){this.current=t,n1.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)),nQ.current||function(){if(nQ.current=!0,nx)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>nJ.current=t.matches;t.addListener(e),e()}else nJ.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||nJ.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in n1.delete(this.current),this.projection&&this.projection.unmount(),w(this.notifyUpdate),w(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=m.has(t),n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&b.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),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 nw){let e=nw[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(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):ik()}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<n2.length;e++){let i=n2[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(F(n))t.addValue(r,n);else if(F(s))t.addValue(r,D(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,D(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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}
1addVariantChild(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=D(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!=(i=this.getBaseTargetFromProps(this.props,t))?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=r){let i,n;if("string"==typeof r&&(i=r,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i)||(n=r,/^0[^.\s]+$/u.test(n))))r=parseFloat(r);else{let i;i=r,!n0.find(ee(i))&&tL.test(e)&&(r=tq(t,e))}this.setBaseTarget(t,F(r)?r.get():r)}return F(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=l(this.props,r,null==(e=this.presenceContext)?void 0:e.custom);n&&(i=n[t])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||F(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new j),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class n3 extends n5{constructor(){super(...arguments),this.KeyframeResolver=en}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;F(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class n9 extends n3{constructor(){super(...arguments),this.type="html",this.renderInstance=nB}readValueFromInstance(t,e){if(m.has(e)){let t=tW(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(t4(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return iz(t,e)}build(t,e,i){nD(t,e,i.transformTemplate)}scrapeMotionValuesFromProps(t,e,i){return nz(t,e,i)}}class n4 extends n3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ik}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(m.has(e)){let t=tW(e);return t&&t.default||0}return e=nI.has(e)?e:_(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return nW(t,e,i)}build(t,e,i){nV(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,r){nU(t,e,i,r)}mount(t){this.isSVGTag=nN(t.tagName),super.mount(t)}}let n8=function(t){if("u"<typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((iY={animation:{Feature:class extends ie{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 r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>e3(t,e,i)));else if("string"==typeof e)r=e3(t,e,i);else{let n="function"==typeof e?u(t,e,i.custom):e;r=Promise.all(e5(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=it(),o=!0,l=e=>(i,r)=>{var n;let s=u(t,r,"exit"===e?null==(n=t.presenceContext)?void 0:n.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;i={...i,...r,...e}}return i};function h(u){let{props:h}=t,c=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<e4;t++){let r=d[t],n=e.props[r];(a(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},p=[],m=new Set,f={},g=1/0;for(let e=0;e<e6;e++){var v,y;let d=e8[e],x=i[d],b=void 0!==h[d]?h[d]:c[d],w=a(b),P=d===u?x.isActive:null;!1===P&&(g=e);let S=b===c[d]&&b!==h[d]&&w;if(S&&o&&t.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...f},!x.isActive&&null===P||!b&&!x.prevProp||r(b)||"boolean"==typeof b)continue;let T=(v=x.prevProp,"string"==typeof(y=b)?y!==v:!!Array.isArray(y)&&!s(y,v)),A=T||d===u&&x.isActive&&!S&&w||e>g&&w,C=!1,E=Array.isArray(b)?b:[b],j=E.reduce(l(d),{});!1===P&&(j={});let{prevResolvedValues:M={}}=x,k={...M,...j},D=e=>{A=!0,m.has(e)&&(C=!0,m.delete(e)),x.needsAnimating[e]=!0;let i=t.getValue(e);
1i&&(i.liveStyle=!1)};for(let t in k){let e=j[t],i=M[t];if(!f.hasOwnProperty(t))(n(e)&&n(i)?s(e,i):e===i)?void 0!==e&&m.has(t)?D(t):x.protectedKeys[t]=!0:null!=e?D(t):m.add(t)}x.prevProp=b,x.prevResolvedValues=j,x.isActive&&(f={...f,...j}),o&&t.blockInitialAnimation&&(A=!1);let F=!(S&&T)||C;A&&F&&p.push(...E.map(t=>({animation:t,options:{type:d}})))}if(m.size){let e={};m.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=r?r:null}),p.push({animation:e})}let x=!!p.length;return o&&(!1===h.initial||h.initial===h.animate)&&!t.manuallyAnimateOnMount&&(x=!1),o=!1,x?e(p):Promise.resolve()}return{animateChanges:h,setActive:function(e,r){var n;if(i[e].isActive===r)return Promise.resolve();null==(n=t.variantChildren)||n.forEach(t=>{var i;return null==(i=t.animationState)?void 0:i.setActive(e,r)}),i[e].isActive=r;let s=h(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=it(),o=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();r(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}}},exit:{Feature:class extends ie{constructor(){super(...arguments),this.id=ii++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}},inView:{Feature:class extends ie{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var t;let e;this.unmount();let{viewport:i={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:a}=i,o={root:r?r.current:void 0,rootMargin:n,threshold:"number"==typeof s?s:nc[s]},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:r}=this.node.getProps(),n=e?i:r;n&&n(t)};return t=this.node.current,e=function({root:t,...e}){let i=t||document;nu.has(i)||nu.set(i,{});let r=nu.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(nd,{root:t,...e})),r[n]}(o),nl.set(t,l),e.observe(t),()=>{nl.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(){}}},tap:{Feature:class extends ie{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=r6(t,i),a=t=>{let r=t.currentTarget;if(!na(t)||nr.has(r))return;nr.add(r);let s=e(t),a=(t,e)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),na(t)&&nr.has(r)&&(nr.delete(r),"function"==typeof s&&s(t,{success:e}))},o=t=>{a(t,i.useGlobalTarget||ne(r,t.target))},l=t=>{a(t,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{ni.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",a,n),t.addEventListener("focus",t=>((t,e)=>{let i=t.currentTarget;if(!i)return;let r=nn(()=>{if(nr.has(i))return;ns(i,"down");let t=nn(()=>{ns(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>ns(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)})(t,n),n)}),s}(t,t=>(no(this.node,t,"Start"),(t,{success:e})=>no(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ie{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=ey(ia(this.node.current,"focus",()=>this.onFocus()),ia(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}}
1,hover:{Feature:class extends ie{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=r6(t,i),a=r7(t=>{let{target:i}=t,r=e(t);if("function"!=typeof r||!i)return;let s=r7(t=>{r(t),i.removeEventListener("pointerleave",s)});i.addEventListener("pointerleave",s,n)});return r.forEach(t=>{t.addEventListener("pointerenter",a,n)}),s}(t,t=>(nt(this.node,t,"Start"),t=>nt(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ie{constructor(){super(...arguments),this.removePointerDownListener=v}onPointerDown(t){this.session=new ih(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iW(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:iK(t),onStart:iK(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&b.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=il(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 ie{constructor(t){super(t),this.removeGroupControls=v,this.removeListeners=v,this.controls=new iH(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||v}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:r8,MeasureLayout:re},layout:{ProjectionNode:r8,MeasureLayout:re}},iZ=(t,e)=>nA(t)?new n4(e):new n9(e,{allowProjection:t!==iQ.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function({preloadedFeatures:t,createVisualElement:e,useRender:i,useVisualState:r,Component:n}){var s,o;function l(t,s){var o;let l,u={...(0,iQ.useContext)(nm),...t,layoutId:function({layoutId:t}){let e=(0,iQ.useContext)(i2).id;return e&&void 0!==t?e+"-"+t:t}(t)},{isStatic:h}=u,d=function(t){let{initial:e,animate:i}=function(t,e){if(ng(t)){let{initial:e,animate:i}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,iQ.useContext)(nf));return(0,iQ.useMemo)(()=>({initial:e,animate:i}),[ny(e),ny(i)])}
1(t),c=r(t,h);if(!h&&nx){(0,iQ.useContext)(np).strict;let t=function(t){let{drag:e,layout:i}=nw;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,d.visualElement=function(t,e,i,r,n){var s,a;let{visualElement:o}=(0,iQ.useContext)(nf),l=(0,iQ.useContext)(np),u=(0,iQ.useContext)(i0),h=(0,iQ.useContext)(nm).reducedMotion,d=(0,iQ.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:o,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,iQ.useContext)(i5);c&&!c.projection&&n&&("html"===c.type||"svg"===c.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!a||o&&ig(o),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,i,n,p);let m=(0,iQ.useRef)(!1);(0,iQ.useInsertionEffect)(()=>{c&&m.current&&c.update(i,u)});let f=i[V],g=(0,iQ.useRef)(!!f&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,f))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,f)));return nS(()=>{c&&(m.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),i6.render(c.render),g.current&&c.animationState&&c.animationState.animateChanges())}),(0,iQ.useEffect)(()=>{c&&(!g.current&&c.animationState&&c.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var t;null==(t=window.MotionHandoffMarkAsComplete)||t.call(window,f)}),g.current=!1))}),c}(n,c,u,e,t.ProjectionNode)}return(0,iJ.jsxs)(nf.Provider,{value:d,children:[l&&d.visualElement?(0,iJ.jsx)(l,{visualElement:d.visualElement,...u}):null,i(n,t,(o=d.visualElement,(0,iQ.useCallback)(t=>{t&&c.onMount&&c.onMount(t),o&&(t?o.mount(t):o.unmount()),s&&("function"==typeof s?s(t):ig(s)&&(s.current=t))},[o])),c,h,d.visualElement)]})}t&&function(t){for(let e in t)nw[e]={...nw[e],...t[e]}}(t),l.displayName=`motion.${"string"==typeof n?n:`create(${null!=(o=null!=(s=n.displayName)?s:n.name)?o:""})`}`;let u=(0,iQ.forwardRef)(l);return u[nP]=n,u}({...nA(t)?nH:nX,preloadedFeatures:iY,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>{let a=(nA(e)?function(t,e,i,r){let n=(0,iQ.useMemo)(()=>{let i=nO();return nV(i,e,nN(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nK(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i,r,n={},s=(i=t.style||{},nK(r={},i,t),Object.assign(r,function({transformTemplate:t},e){return(0,iQ.useMemo)(()=>{let i=nL();return nD(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n})(i,n,s,e),o=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(nZ(n)||!0===i&&nY(n)||!e&&!nY(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),l=e!==iQ.Fragment?{...o,...a,ref:r}:{},{children:u}=i,h=(0,iQ.useMemo)(()=>F(u)?u.get():u,[u]);return(0,iQ.createElement)(e,{...l,children:h})}}(e),createVisualElement:iZ,Component:t})}));t.s(["motion",()=>n8],30589)},98183,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={assign:function(){return l},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return o}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});function s(t){let e={};for(let[i,r]of t.entries()){let t=e[i];void 0===t?e[i]=r:Array.isArray(t)?t.push(r):e[i]=[t,r]}return e}function a(t){return"string"==typeof t?t:("number"!=typeof t||isNaN(t))&&"boolean"!=typeof t?"":String(t)}function o(t){let e=new URLSearchParams;for(let[i,r]of Object.entries(t))if(Array.isArray(r))for(let t of r)e.append(i,a(t));else e.set(i,a(r));return e}function l(t,...e){for(let i of e){for(let e of i.keys())t.delete(e);for(let[e,r]of i.entries())t.append(e,r)}return t}},95057,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={formatUrl:function(){return o},formatWithValidation:function(){return u},urlObjectKeys:function(){return l}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(90809)._(t.r(98183)),a=/https?|ftp|gopher|file/;function o(t){let{auth:e,hostname:i}=t,r=t.protocol||"",n=t.pathname||"",o=t.hash||"",l=t.query||"",u=!1;e=e?encodeURIComponent(e).replace(/%3A/i,":")+"@":"",t.host?u=e+t.host:i&&(u=e+(~i.indexOf(":")?`[${i}]`:i),t.port&&(u+=":"+t.port)),l&&"object"==typeof l&&(l=String(s.urlQueryToSearchParams(l)));let h=t.search||l&&`?${l}`||"";return r&&!r.endsWith(":")&&(r+=":"),t.slashes||(!r||a.test(r))&&!1!==u?(u="//"+(u||""),n&&"/"!==n[0]&&(n="/"+n)):u||(u=""),o&&"#"!==o[0]&&(o="#"+o),h&&"?"!==h[0]&&(h="?"+h),n=n.replace(/[?#]/g,encodeURIComponent),h=h.replace("#","%23"),`${r}${u}${n}${h}${o}`}let l=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(t){return o(t)}},18581,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"useMergedRef",{enumerable:!0,get:function(){return n}});let r=t.r(71645);function n(t,e){let i=(0,r.useRef)(null),n=(0,r.useRef)(null);return(0,r.useCallback)(r=>{if(null===r){let t=i.current;t&&(i.current=null,t());let e=n.current;e&&(n.current=null,e())}else t&&(i.current=s(t,r)),e&&(n.current=s(e,r))},[t,e])}function s(t,e){if("function"!=typeof t)return t.current=e,()=>{t.current=null};{let i=t(e);return"function"==typeof i?i:()=>t(null)}}("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esMo
1dule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},18967,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return b},NormalizeError:function(){return y},PageNotFoundError:function(){return x},SP:function(){return f},ST:function(){return g},WEB_VITALS:function(){return s},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return h},isAbsoluteUrl:function(){return l},isResSent:function(){return c},loadGetInitialProps:function(){return m},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return P}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function a(t){let e,i=!1;return(...r)=>(i||(i=!0,e=t(...r)),e)}let o=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=t=>o.test(t);function u(){let{protocol:t,hostname:e,port:i}=window.location;return`${t}//${e}${i?":"+i:""}`}function h(){let{href:t}=window.location,e=u();return t.substring(e.length)}function d(t){return"string"==typeof t?t:t.displayName||t.name||"Unknown"}function c(t){return t.finished||t.headersSent}function p(t){let e=t.split("?");return e[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(e[1]?`?${e.slice(1).join("?")}`:"")}async function m(t,e){let i=e.res||e.ctx&&e.ctx.res;if(!t.getInitialProps)return e.ctx&&e.Component?{pageProps:await m(e.Component,e.ctx)}:{};let r=await t.getInitialProps(e);if(i&&c(i))return r;if(!r)throw Object.defineProperty(Error(`"${d(t)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return r}let f="u">typeof performance,g=f&&["mark","measure","getEntriesByName"].every(t=>"function"==typeof performance[t]);class v extends Error{}class y extends Error{}class x extends Error{constructor(t){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${t}`}}class b extends Error{constructor(t,e){super(),this.message=`Failed to load static file for page: ${t} ${e}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function P(t){return JSON.stringify({message:t.message,stack:t.stack})}},73668,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"isLocalURL",{enumerable:!0,get:function(){return s}});let r=t.r(18967),n=t.r(52817);function s(t){if(!(0,r.isAbsoluteUrl)(t))return!0;try{let e=(0,r.getLocationOrigin)(),i=new URL(t,e);return i.origin===e&&(0,n.hasBasePath)(i.pathname)}catch(t){return!1}}},84508,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"errorOnce",{enumerable:!0,get:function(){return r}});let r=t=>{}},22016,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return v},useLinkStatus:function(){return x}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(90809),a=t.r(43476),o=s._(t.r(71645)),l=t.r(95057),u=t.r(8372),h=t.r(18581),d=t.r(18967),c=t.r(5550);t.r(33525);let p=t.r(91949),m=t.r(73668),f=t.r(65793);function g(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}function v(e){var i;let r,n,s,[l,v]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),x=(0,o.useRef)(null),{href:b,as:w,children:P,prefetch:S=null,passHref:T,replace:A,shallow:C,scroll:E,onClick:j,onMouseEnter:M,onTouchStart:k,legacyBehavior:D=!1,onNavigate:F,ref:R,unstable_dynamicOnHover:_,...V}=e;r=P,D&&("string"==typeof r||"number"==typeof r)&&(r=(0,a.jsx)("a",{children:r}));let L=o.default.useContext(u.AppRouterContext),O=!1!==S,N=!1!==S?null===(i=S)||"auto"===i?f.FetchStrategy.PPR:f.FetchStrategy.Full:f.FetchStrategy.PPR,{href:B,as:I}=o.default.useMemo(()=>{let t=g(b);return{href:t,as:w?g(w):t}},[b,w]);if(D){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>
1` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});n=o.default.Children.only(r)}let U=D?n&&"object"==typeof n&&n.ref:R,$=o.default.useCallback(t=>(null!==L&&(x.current=(0,p.mountLinkInstance)(t,B,L,N,O,v)),()=>{x.current&&((0,p.unmountLinkForCurrentNavigation)(x.current),x.current=null),(0,p.unmountPrefetchableInstance)(t)}),[O,B,L,N,v]),z={ref:(0,h.useMergedRef)($,U),onClick(e){D||"function"!=typeof j||j(e),D&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!L||e.defaultPrevented||function(e,i,r,n,s,a,l){if("u">typeof window){let u,{nodeName:h}=e.currentTarget;if("A"===h.toUpperCase()&&((u=e.currentTarget.getAttribute("target"))&&"_self"!==u||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(i)){s&&(e.preventDefault(),location.replace(i));return}if(e.preventDefault(),l){let t=!1;if(l({preventDefault:()=>{t=!0}}),t)return}let{dispatchNavigateAction:d}=t.r(99781);o.default.startTransition(()=>{d(r||i,s?"replace":"push",a??!0,n.current)})}}(e,B,I,x,A,E,F)},onMouseEnter(t){D||"function"!=typeof M||M(t),D&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(t),L&&O&&(0,p.onNavigationIntent)(t.currentTarget,!0===_)},onTouchStart:function(t){D||"function"!=typeof k||k(t),D&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(t),L&&O&&(0,p.onNavigationIntent)(t.currentTarget,!0===_)}};return(0,d.isAbsoluteUrl)(I)?z.href=I:D&&!T&&("a"!==n.type||"href"in n.props)||(z.href=(0,c.addBasePath)(I)),s=D?o.default.cloneElement(n,z):(0,a.jsx)("a",{...V,...z,children:r}),(0,a.jsx)(y.Provider,{value:l,children:s})}t.r(84508);let y=(0,o.createContext)(p.IDLE_LINK_STATUS),x=()=>(0,o.useContext)(y);("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},885,t=>{t.v({className:"interdisplay_2593ea44-module__zOvG8a__className",variable:"interdisplay_2593ea44-module__zOvG8a__variable"})},50348,t=>{t.v({className:"instrumentsans_a73c2b5b-module__z9M9qW__className",variable:"instrumentsans_a73c2b5b-module__z9M9qW__variable"})},53472,t=>{t.v({className:"satoshivariable_fe2592ab-module__3FaL2W__className",variable:"satoshivariable_fe2592ab-module__3FaL2W__variable"})},52908,t=>{t.v({className:"ppmori_93af26b8-module__IgS-Xq__className",variable:"ppmori_93af26b8-module__IgS-Xq__variable"})},24360,t=>{t.v({className:"plusjakartasans_d05bdbc6-module___1eSCa__className",variable:"plusjakartasans_d05bdbc6-module___1eSCa__variable"})},69992,t=>{t.v({className:"unbounded_51288068-module__-rFGKG__className",variable:"unbounded_51288068-module__-rFGKG__variable"})},18731,t=>{t.v({className:"calsans_37efde84-module__IH6uqG__className",variable:"calsans_37efde84-module__IH6uqG__variable"})},54922,t=>{t.v({className:"robotomono_90af88cd-module__fHBT_q__className",variable:"robotomono_90af88cd-module__fHBT_q__variable"})},63136,t=>{t.v({className:"manrope_59e92488-module__dRcmTq__className",variable:"manrope_59e92488-module__dRcmTq__variable"})},27213,71151,92889,33657,12669,49752,90912,36198,59688,t=>{"use strict";var e=t.i(885);let i={className:e.default.className,style:{fontFamily:"'interDisplay', 'interDisplay Fallback'"}};null!=e.default.variable&&(i.variable=e.default.variable);var r=t.i(50348);let n={className:r.default.className,style:{fontFamily:"'instrumentSans', 'instrumentSans Fallback'"}};null!=r.default.variable&&(n.variable=r.default.variable),t.s(["default",0,n],71151);var s=t.i(53472);let a={className:s.default.className,style:{fontFamily:"'satoshiVariable', 'satoshiVariable Fallback'"}};null!=s.default.variable&&(a.variable=s.default.variable),t.s(["default",0,a],92889);var o=t.i(52908);let l={className:o.default.className,style:{fontFamily:"'ppMori', 'ppMori Fallback'"}};null!=o.default.variable&&(l.variable=o.default.variable),t.s(["default",0,l],33657);var u=t.i(24360);let h={className:u.default.className,style:{fontFamily:"'plusJakartaSans', 'plusJakartaSans Fallback'"}};null!=u.default.variable&&(h.variable=u.default.variable),t.s(["default",0,h],12669);var d=t.i(69992);let c={className:d.default.className,style:{fontFamily:"'unbounded', 'unbounded Fallback'"}};null!=d.default.variable&&(c.variable=d.default.variable),t.s(["default",0,c],49752);var p=t.i(18731);let m={className:p.default.className,style:{fontFamily:"'calSans', 'calSans Fallback'"}};null!=p.default.variable&&(m.variable=p.default.variable),t.s(["default",0,m],90912);var f=t.i(54922);let g={className:f.default.className,style:{fontFamily:"'robotoMono', 'robotoMono Fallback'"}};null!=f.default.variable&&(g.variable=f.default.variable),t.s(["default",0,g],36198);var v=t.i(63136);let y={className:v.default.className,style:{fontFamily:"'manrope', 'manrope Fallback'"}};null!=v.default.variable&&(y.variable=v.default.variable),t.s(["default",0,y],59688),t.s([],27213)},80236,t=>{"use strict";var e=t.i(90912);t.s(["calSans",()=>e.default])},83556,t=>{"use strict";var e=t.i(43476);function i({text:t,className:i,onClick:r=()=>{},loading:n=!1}){return(0,e.jsxs)("button",{className:`
2            font-[600] text-[14px] leading-[20.25px] text-[#000000] px-[45px] py-[13.5px] rounded-[10px] lg:rounded-[12px]
3            lg:bg-gradient-to-b from-[#D7FF43] to-[#B6DF1C] ${i}
4            bg-[#D7FF43] relative min-h-[47.25px] min-w-[139.68px]
5        `,onClick:r,children:[n?"":t,n&&(0,e.jsx)("div",{className:"absolute top-0 left-0 w-full h-full flex justify-center items-center",children:(0,e.jsxs)("div",{role:"status",children:[(0,e.jsxs)("svg",{"aria-hidden":"true",className:"w-8 h-8 text-gray-200 animate-spin dark:text-gray-600 fill-white",viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,e.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,e.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.
51071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,e.jsx)("span",{className:"sr-only",children:"Loading..."})]})})]})}var r=t.i(22016);t.i(27213);var n=t.i(80236),s=t.i(71645),a=t.i(18566);let o=[{title:"Home",path:"/#home"},{title:"Courses",path:"/#courses"},{title:"About Us",path:"/#about"},{title:"Testimonials",path:"/#testimonials"},{title:"FAQ",path:"/#faq"},{title:"Recommended Platform",path:"/recommended-platform",isSpecial:!0}],l=[{title:"Dashboard",path:"/dashboard"},{title:"Courses",path:"/#courses"},{title:"About Us",path:"/#about"},{title:"Testimonials",path:"/#testimonials"},{title:"FAQ",path:"/#faq"},{title:"Recommended Platform",path:"/recommended-platform",isSpecial:!0}];function u(){let[t,u]=(0,s.useState)(!1),[h,d]=(0,s.useState)(!1),c=(0,a.usePathname)();(0,s.useEffect)(()=>{(async()=>{try{(await fetch("/api/auth/me",{method:"GET",credentials:"include"})).ok?u(!0):u(!1)}catch(t){console.error("Auth check failed:",t),u(!1)}})()},[]),(0,s.useEffect)(()=>{d(!1)},[c]),(0,s.useEffect)(()=>(h?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[h]);let p=async()=>{try{await fetch("/api/auth/logout",{method:"POST"}),window.location.href="/"}catch(t){console.error("Logout failed:",t)}},m=t?l:o;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("header",{className:"border-b-[#F4F4F5] border-b-[solid] border-b-[1px] bg-white fixed top-0 w-[100vw] z-[1000] v-navbar_sticky",children:(0,e.jsxs)("div",{className:`
6                    flex justify-between  
7                    max-[1371px]:pl-[5px] 
8                    max-[1371px]:pr-[5px]
9                    min-[1371px]:!pl-[51px] 
10                    min-[1371px]:!pr-[30px] 
11                    max-[910px]:py-[15px]
12                    border-b-[#D9DDE8] border-b-[solid] border-b-[1px] mx-0 xl:ml-[10px] xl:mr-[10px]
13                `,children:[(0,e.jsxs)("div",{className:"flex items-center",children:[(0,e.jsx)(r.default,{href:"/",children:(0,e.jsx)("div",{className:`text-[22px] font-[600] leading-[26.4px] text-[#121212] ${n.calSans.className}`,children:"Chad Trader"})}),(0,e.jsx)("nav",{className:"hidden min-[910px]:flex items-center",children:m.map(t=>(0,e.jsx)(r.default,{href:t.path,children:t.isSpecial?(0,e.jsxs)("div",{className:"ml-12 max-[1330px]:ml-8 relative group",children:[(0,e.jsx)("div",{className:"absolute -inset-1 bg-gradient-to-r from-[#D7FF43] via-[#9EF01A] to-[#D7FF43] rounded-lg blur-sm opacity-60 group-hover:opacity-100 animate-pulse transition-opacity duration-300"}),(0,e.jsxs)("div",{className:"relative px-4 py-1.5 bg-[#0F172A] rounded-lg text-[14px] min-[1100px]:text-[15px] leading-[22px] font-[600] text-[#D7FF43] flex items-center gap-2 group-hover:bg-[#1E293B] transition-colors duration-200",children:[(0,e.jsxs)("span",{className:"relative h-2 w-2 hidden min-[1330px]:flex",children:[(0,e.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#D7FF43] opacity-75"}),(0,e.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-[#D7FF43]"})]}),t.title,(0,e.jsx)("svg",{className:"w-4 h-4 group-hover:translate-x-1 transition-transform duration-200 hidden min-[1330px]:block",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})})]})]}):(0,e.jsx)("div",{className:`ml-12 max-[1330px]:ml-8 text-[16px] min-[1100px]:text-[18px] leading-[27px] font-[500] ${c===t.path?"text-[#121212]":"text-[#3F3F46]"}`,children:t.title})},t.title))})]}),(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[(0,e.jsx)("div",{className:"hidden min-[910px]:flex gap-3 items-center",children:t?(0,e.jsx)(i,{text:"Logout",className:"mt-[12px] mb-[10px] v-button_primary",onClick:p}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(r.default,{href:"/login",children:(0,e.jsx)("button",{className:"font-[600] text-[14px] leading-[20.25px] text-[#000000] px-[45px] py-[11.5
13px] ml-3 rounded-[10px] lg:rounded-[12px] border-2 border-[#D7FF43] bg-transparent hover:bg-[#D7FF43] transition-colors duration-200 mt-[12px] mb-[10px]",children:"Sign In"})}),(0,e.jsx)(r.default,{href:"/signup",children:(0,e.jsx)(i,{text:"Sign Up",className:"mt-[12px] mb-[10px] v-button_primary"})})]})}),(0,e.jsx)("button",{className:"min-[910px]:hidden p-2 text-[#121212] hover:bg-gray-100 rounded-lg transition-colors",onClick:()=>d(!h),"aria-label":"Toggle menu",children:(0,e.jsx)("svg",{className:"w-6 h-6",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:h?(0,e.jsx)("path",{d:"M6 18L18 6M6 6l12 12"}):(0,e.jsx)("path",{d:"M4 6h16M4 12h16M4 18h16"})})})]})]})}),h&&(0,e.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-[1001] min-[910px]:hidden",onClick:()=>d(!1)}),(0,e.jsx)("aside",{className:`
14                fixed top-0 right-0 h-full w-[280px] bg-white shadow-2xl z-[1002] 
15                transform transition-transform duration-300 ease-in-out min-[910px]:hidden
16                ${h?"translate-x-0":"translate-x-full"}
17            `,children:(0,e.jsxs)("div",{className:"flex flex-col h-full",children:[(0,e.jsxs)("div",{className:"flex justify-between items-center p-5 border-b border-[#D9DDE8]",children:[(0,e.jsx)("div",{className:`text-[22px] font-[600] leading-[26.4px] text-[#121212] ${n.calSans.className}`,children:"Chad Trader"}),(0,e.jsx)("button",{onClick:()=>d(!1),className:"p-2 hover:bg-gray-100 rounded-lg transition-colors","aria-label":"Close menu",children:(0,e.jsx)("svg",{className:"w-6 h-6 text-[#121212]",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,e.jsx)("path",{d:"M6 18L18 6M6 6l12 12"})})})]}),(0,e.jsx)("nav",{className:"flex-1 overflow-y-auto py-4",children:m.map(t=>(0,e.jsx)(r.default,{href:t.path,onClick:()=>d(!1),children:t.isSpecial?(0,e.jsxs)("div",{className:"mx-4 my-3 relative group",children:[(0,e.jsx)("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-[#D7FF43] via-[#9EF01A] to-[#D7FF43] rounded-xl blur-sm opacity-70 animate-pulse"}),(0,e.jsxs)("div",{className:"relative px-4 py-3 bg-[#0F172A] rounded-xl text-[15px] font-[600] text-[#D7FF43] flex items-center gap-3",children:[(0,e.jsxs)("span",{className:"relative flex h-2.5 w-2.5",children:[(0,e.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-[#D7FF43] opacity-75"}),(0,e.jsx)("span",{className:"relative inline-flex rounded-full h-2.5 w-2.5 bg-[#D7FF43]"})]}),t.title,(0,e.jsx)("svg",{className:"w-4 h-4 ml-auto",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,e.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 7l5 5m0 0l-5 5m5-5H6"})})]})]}):(0,e.jsx)("div",{className:`
18                                        px-5 py-4 text-[16px] font-[500] leading-[24px] 
19                                        border-l-4 transition-all
20                                        ${c===t.path?"text-[#121212] border-[#D7FF43] bg-[#F4F4F5]":"text-[#3F3F46] border-transparent hover:bg-[#F4F4F5] hover:border-[#D7FF43]"}
21                                    `,children:t.title})},t.title))}),(0,e.jsx)("div",{className:"p-5 border-t border-[#D9DDE8]",children:t?(0,e.jsx)(i,{text:"Logout",className:"w-full v-button_primary",onClick:p}):(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsx)(r.default,{href:"/login",className:"block",onClick:()=>d(!1),children:(0,e.jsx)("button",{className:"w-full font-[600] text-[14px] leading-[20.25px] text-[#000000] px-[45px] py-[13.5px] rounded-[10px] border-2 border-[#D7FF43] bg-transparent hover:bg-[#D7FF43] transition-colors duration-200",children:"Sign In"})}),(0,e.jsx)(r.default,{href:"/signup",className:"block",onClick:()=>d(!1),children:(0,e.jsx)(i,{text:"Sign Up",className:"w-full v-button_primary"})})]})})]})})]})}t.s(["default",()=>u],83556)},88143,(t,e,i)=>{"use strict";function r({widthInt:t,heightInt:e,blurWidth:i,blurHeight:r,blurDataURL:n,objectFit:s}){let a=i?40*i:t,o=r?40*r:e,l=a&&o?`viewBox='0 0 ${a} ${o}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${l}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
21ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${l?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${n}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},87690,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return a}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1}},8927,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return u}}),t.r(33525);let r=t.r(43369),n=t.r(88143),s=t.r(87690),a=["-moz-initial","fill","none","scale-down",void 0];function o(t){return void 0!==t.default}function l(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function u({src:t,sizes:e,unoptimized:i=!1,priority:u=!1,preload:h=!1,loading:d,className:c,quality:p,width:m,height:f,fill:g=!1,style:v,overrideSrc:y,onLoad:x,onLoadingComplete:b,placeholder:w="empty",blurDataURL:P,fetchPriority:S,decoding:T="async",layout:A,objectFit:C,objectPosition:E,lazyBoundary:j,lazyRoot:M,...k},D){var F;let R,_,V,{imgConf:L,showAltText:O,blurComplete:N,defaultLoader:B}=D,I=L||s.imageConfigDefault;if("allSizes"in I)R=I;else{let t=[...I.deviceSizes,...I.imageSizes].sort((t,e)=>t-e),e=I.deviceSizes.sort((t,e)=>t-e),i=I.qualities?.sort((t,e)=>t-e);R={...I,allSizes:t,deviceSizes:e,qualities:i}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=k.loader||B;delete k.loader,delete k.srcSet;let $="__next_img_default"in U;if($){if("custom"===R.loader)throw Object.defineProperty(Error(`Image with src "${t}" is missing "loader" prop.
22Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let t=U;U=e=>{let{config:i,...r}=e;return t(r)}}if(A){"fill"===A&&(g=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[A];t&&(v={...v,...t});let i={responsive:"100vw",fill:"100vw"}[A];i&&!e&&(e=i)}let z="",W=l(m),q=l(f);if((F=t)&&"object"==typeof F&&(o(F)||void 0!==F.src)){let e=o(t)?t.default:t;if(!e.src)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(_=e.blurWidth,V=e.blurHeight,P=P||e.blurDataURL,z=e.src,!g)if(W||q){if(W&&!q){let t=W/e.width;q=Math.round(e.height*t)}else if(!W&&q){let t=q/e.height;W=Math.round(e.width*t)}}else W=e.width,q=e.height}let H=!u&&!h&&("lazy"===d||void 0===d);(!(t="string"==typeof t?t:z)||t.startsWith("data:")||t.startsWith("blob:"))&&(i=!0,H=!1),R.unoptimized&&(i=!0),$&&!R.dangerouslyAllowSVG&&t.split("?",1)[0].endsWith(".svg")&&(i=!0);let X=l(p),K=Object.assign(g?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:C,objectPosition:E}:{},O?{}:{color:"transparent"},v),G=N||"empty"===w?null:"blur"===w?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:W,heightInt:q,blurWidth:_,blurHeight:V,blurDataURL:P||"",objectFit:K.objectFit})}")`:`url("${w}")`,Y=a.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,Z=G?{backgroundSize:Y,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:G}:{},J=function({config:t,src:e,unoptimized:i,width:n,quality:s,sizes:a,loader:o}){if(i){let t=(0,r.getDeploymentId)();if(e.startsWith("/")&&!e.startsWith("//")&&t){let i=e.includes("?")?"&":"?";e=`${e}${i}dpl=${t}`}return{src:e,srcSet:void 0,sizes:void 0}}let{widths:l,kind:u}=function({deviceSizes:t,allSizes:e},i,r){if(r){let i=/(^|\s)(1?\d?\d)vw/g,n=[];for(let t;t=i.exec(r);)n.push(parseInt(t[2]));if(n.length){let i=.01*Math.min(...n);return{widths:e.filter(e=>e>=t[0]*i),kind:"w"}}return{widths:e,kind:"w"}}return"number"!=typeof i?{widths:t,kind:"w"}:{widths:[...new Set([i,2*i].map(t=>e.find(e=>e>=t)||e[e.length-1]))],kind:"x"}}(t,n,a),h=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((i,r)=>`${o({config:t,src:e,quality:s,width:i})} ${"w"===u?i:r+1}${u}`).join(", "),src:o({config:t,src:e,quality:s,width:l[h]})}}({config:R,src:t,unoptimized:i,width:W,quality:X,sizes:e,loader:U}),Q=H?"lazy":d;return{props:{...k,loading:Q,fetchPriority:S,width:W,height:q,decoding:T,className:c,style:{...K,...Z},sizes:J.sizes,srcSet:J.srcSet,src:y||J.src},meta:{unoptimized:i,preload:h||u,placeholder:w,fill:g}}}},98879,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let r=t.r(71645),n="u"<typeof window,s=n?()=>{}:r.useLayoutEffect,a=n?()=>{}:r.useEffect;function o(t){let{headManager:e,reduceComponentsToState:i}=t;function o(){if(e&&e.mountedInstances){let t=r.Children.toArray(Array.from(e.mountedInstances).filter(
22Boolean));e.updateHead(i(t))}}return n&&(e?.mountedInstances?.add(t.children),o()),s(()=>(e?.mountedInstances?.add(t.children),()=>{e?.mountedInstances?.delete(t.children)})),s(()=>(e&&(e._pendingUpdate=o),()=>{e&&(e._pendingUpdate=o)})),a(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},25633,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var r={default:function(){return f},defaultHead:function(){return d}};for(var n in r)Object.defineProperty(i,n,{enumerable:!0,get:r[n]});let s=t.r(55682),a=t.r(90809),o=t.r(43476),l=a._(t.r(71645)),u=s._(t.r(98879)),h=t.r(42732);function d(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function c(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===l.default.Fragment?t.concat(l.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}t.r(33525);let p=["name","httpEquiv","charSet","itemProp"];function m(t){let e,i,r,n;return t.reduce(c,[]).reverse().concat(d().reverse()).filter((e=new Set,i=new Set,r=new Set,n={},t=>{let s=!0,a=!1;if(t.key&&"number"!=typeof t.key&&t.key.indexOf("$")>0){a=!0;let i=t.key.slice(t.key.indexOf("$")+1);e.has(i)?s=!1:e.add(i)}switch(t.type){case"title":case"base":i.has(t.type)?s=!1:i.add(t.type);break;case"meta":for(let e=0,i=p.length;e<i;e++){let i=p[e];if(t.props.hasOwnProperty(i))if("charSet"===i)r.has(i)?s=!1:r.add(i);else{let e=t.props[i],r=n[i]||new Set;("name"!==i||!a)&&r.has(e)?s=!1:(r.add(e),n[i]=r)}}}return s})).reverse().map((t,e)=>{let i=t.key||e;return l.default.cloneElement(t,{key:i})})}let f=function({children:t}){let e=(0,l.useContext)(h.HeadManagerContext);return(0,o.jsx)(u.default,{reduceComponentsToState:m,headManager:e,children:t})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)},18556,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let r=t.r(55682)._(t.r(71645)),n=t.r(87690),s=r.default.createContext(n.imageConfigDefault)},65856,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return r}});let r=t.r(55682)._(t.r(71645)).default.createContext(null)},70965,(t,e,i)=>{"use strict";function r(t,e){let i=t||75;return e?.qualities?.length?e.qualities.reduce((t,e)=>Math.abs(e-i)<Math.abs(t-i)?e:t,0):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return r}})},1948,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let r=t.r(70965),n=t.r(43369);function s({config:t,src:e,width:i,quality:s}){if(e.startsWith("/")&&e.includes("?")&&t.localPatterns?.length===1&&"**"===t.localPatterns[0].pathname&&""===t.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${e}" is using a query string which is not configured in images.localPatterns.
23Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let a=(0,r.findClosestQuality)(s,t),o=(0,n.getDeploymentId)();return`${t.path}?url=${encodeURIComponent(e)}&w=${i}&q=${a}${e.startsWith("/")&&o?`&dpl=${o}`:""}`}s.__next_img_default=!0;let a=s},5500,(t,e,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return b}});let r=t.r(55682),n=t.r(90809),s=t.r(43476),a=n._(t.r(71645)),o=r._(t.r(74080)),l=r._(t.r(25633)),u=t.r(8927),h=t.r(87690),d=t.r(18556);t.r(33525);let c=t.r(65856),p=r._(t.r(1948)),m=t.r(18581),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qual
23ities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(t,e,i,r,n,s,a){let o=t?.src;t&&t["data-loaded-src"]!==o&&(t["data-loaded-src"]=o,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&n(!0),i?.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let r=!1,n=!1;i.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>r,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{r=!0,e.preventDefault()},stopPropagation:()=>{n=!0,e.stopPropagation()}})}r?.current&&r.current(t)}}))}function v(t){return a.use?{fetchPriority:t}:{fetchpriority:t}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let y=(0,a.forwardRef)(({src:t,srcSet:e,sizes:i,height:r,width:n,decoding:o,className:l,style:u,fetchPriority:h,placeholder:d,loading:c,unoptimized:p,fill:f,onLoadRef:y,onLoadingCompleteRef:x,setBlurComplete:b,setShowAltText:w,sizesInput:P,onLoad:S,onError:T,...A},C)=>{let E=(0,a.useCallback)(t=>{t&&(T&&(t.src=t.src),t.complete&&g(t,d,y,x,b,p,P))},[t,d,y,x,b,T,p,P]),j=(0,m.useMergedRef)(C,E);return(0,s.jsx)("img",{...A,...v(h),loading:c,width:n,height:r,decoding:o,"data-nimg":f?"fill":"1",className:l,style:u,sizes:i,srcSet:e,src:t,ref:j,onLoad:t=>{g(t.currentTarget,d,y,x,b,p,P)},onError:t=>{w(!0),"empty"!==d&&b(!0),T&&T(t)}})});function x({isAppRouter:t,imgAttributes:e}){let i={as:"image",imageSrcSet:e.srcSet,imageSizes:e.sizes,crossOrigin:e.crossOrigin,referrerPolicy:e.referrerPolicy,...v(e.fetchPriority)};return t&&o.default.preload?(o.default.preload(e.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:e.srcSet?void 0:e.src,...i},"__nimg-"+e.src+e.srcSet+e.sizes)})}let b=(0,a.forwardRef)((t,e)=>{let i=(0,a.useContext)(c.RouterContext),r=(0,a.useContext)(d.ImageConfigContext),n=(0,a.useMemo)(()=>{let t=f||r||h.imageConfigDefault,e=[...t.deviceSizes,...t.imageSizes].sort((t,e)=>t-e),i=t.deviceSizes.sort((t,e)=>t-e),n=t.qualities?.sort((t,e)=>t-e);return{...t,allSizes:e,deviceSizes:i,qualities:n,localPatterns:"u"<typeof window?r?.localPatterns:t.localPatterns}},[r]),{onLoad:o,onLoadingComplete:l}=t,m=(0,a.useRef)(o);(0,a.useEffect)(()=>{m.current=o},[o]);let g=(0,a.useRef)(l);(0,a.useEffect)(()=>{g.current=l},[l]);let[v,b]=(0,a.useState)(!1),[w,P]=(0,a.useState)(!1),{props:S,meta:T}=(0,u.getImgProps)(t,{defaultLoader:p.default,imgConf:n,blurComplete:v,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y,{...S,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:b,setShowAltText:P,sizesInput:t.sizes,ref:e}),T.preload?(0,s.jsx)(x,{isAppRouter:!i,imgAttributes:S}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),e.exports=i.default)}]);

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.