@ndgmnt/client--nudgemoment 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @license
|
3
|
-
* NudgeMoment v0.0.
|
3
|
+
* NudgeMoment v0.0.9
|
4
4
|
* Copyright (c) 2025 NudgeMoment. All Rights Reserved.
|
5
5
|
*
|
6
6
|
* This source code is licensed under a proprietary license (All Rights Reserved).
|
@@ -8,7 +8,7 @@
|
|
8
8
|
* via any medium, is strictly prohibited without express written permission.
|
9
9
|
* Legal action will be taken against unauthorized use.
|
10
10
|
*/
|
11
|
-
"use strict";(()=>{var Di=Object.defineProperty;var Ni=(e,t,n)=>t in e?Di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var P=(e,t,n)=>Ni(e,typeof t!="symbol"?t+"":t,n);var R=e=>e,ge=R,k=R,Z=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},Jt=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Le(e){let t;return()=>(t===void 0&&(t=e()),t)}var en=Le(()=>window.ScrollTimeline!==void 0),Fi=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(i=>{if(en()&&i.attachTimeline)return i.attachTimeline(e);if(typeof t=="function")return t(i)});return()=>{n.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},ve=class extends Fi{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},F=e=>e*1e3,I=e=>e/1e3;function Pe(e,t){return e?e[t]||e.default||e:void 0}function Ie(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);let r=(i=n?.[e])!==null&&i!==void 0?i:s.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}var me=2e4;function Oe(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<me;)t+=n,i=e.next(t);return t>=me?1/0:t}function tn(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(Oe(i),me);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:I(s)}}function Q(e){return typeof e=="function"}function Re(e,t){e.timeline=t,e.onfinish=null}var Li=class{constructor(e){this.animation=e}get duration(){var e,t,n;let i=((t=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||t===void 0?void 0:t.getComputedTiming().duration)||((n=this.options)===null||n===void 0?void 0:n.duration)||300;return I(Number(i))}get time(){var e;return this.animation?I(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=F(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&Re(this.animation,e),R}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Pi={linearEasing:void 0};function Ii(e,t){let n=Le(e);return()=>{var i;return(i=Pi[t])!==null&&i!==void 0?i:n()}}var X=Ii(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ke=e=>Array.isArray(e)&&typeof e[0]=="number",Xe=(e,t,n=10)=>{let i="",s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=e(Z(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function Ze(e){return!!(typeof e=="function"&&X()||!e||typeof e=="string"&&(e in Ye||X())||ke(e)||Array.isArray(e)&&e.every(Ze))}var pe=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pe([0,.65,.55,1]),circOut:pe([.55,0,1,.45]),backIn:pe([.31,.01,.66,-.59]),backOut:pe([.33,1.53,.69,.99])};function nn(e,t){if(e)return typeof e=="function"&&X()?Xe(e,t):ke(e)?pe(e):Array.isArray(e)?e.map(n=>nn(n,t)||Ye.easeOut):Ye[e]}function Qe(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=nn(a,s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}var ye=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),H=ye("deg"),q=ye("%"),f=ye("px"),sn=ye("vh"),rn=ye("vw"),Je={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(e*100)},Fe={borderWidth:f,borderTopWidth:f,borderRightWidth:f,borderBottomWidth:f,borderLeftWidth:f,borderRadius:f,radius:f,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,width:f,maxWidth:f,height:f,maxHeight:f,top:f,right:f,bottom:f,left:f,padding:f,paddingTop:f,paddingRight:f,paddingBottom:f,paddingLeft:f,margin:f,marginTop:f,marginRight:f,marginBottom:f,marginLeft:f,backgroundPositionX:f,backgroundPositionY:f},Oi=e=>e!==null;function J(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Oi),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function Ri(e,t,n){e.style.setProperty(`--${t}`,n)}function ki(e,t,n){e.style[t]=n}var Bi=Le(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),et=Le(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ne=new WeakMap;function Hi(e,t,n){for(let i=0;i<t.length;i++)t[i]===null&&(t[i]=i===0?n():t[i-1]),typeof t[i]=="number"&&Fe[e]&&(t[i]=Fe[e].transform(t[i]));!Bi()&&t.length<2&&t.unshift(n())}var jt="easeOut";function Yt(e){let t=Ne.get(e)||new Map;return Ne.set(e,t),Ne.get(e)}var Gi=class extends Li{constructor(e,t,n,i){let s=t.startsWith("--");k(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let r=Yt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),Hi(t,n,o),Q(i.type)){let u=tn(i,100,i.type);i.ease=X()?u.ease:jt,i.duration=F(u.duration),i.type="keyframes"}else i.ease=i.ease||jt;let a=()=>{this.setValue(e,t,J(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?Ri:ki,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Ne.get(e))===null||u===void 0?void 0:u.delete(t)}};et()?(super(Qe(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,Yt(e).set(t,this)):(super(),l(),a())}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function on(e,t,n,i){let s=Ie(e,i),r=s.length;k(!!r,"No valid element provided.");let o=[];for(let a=0;a<r;a++){let l=s[a],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(a,r));for(let c in t){let h=t[c],d={...Pe(u,c)};d.duration=d.duration?F(d.duration):d.duration,d.delay=F(d.delay||0),o.push(new Gi(l,c,h,d))}}return o}var Wi=e=>{function t(n,i,s){return new ve(on(n,i,s,e))}return t},be=Wi(),tt=e=>Array.isArray(e)&&typeof e[0]!="number",ee=(e,t,n)=>e+(t-e)*n;function an(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=Z(0,t,i);e.push(ee(n,1,s))}}function nt(e){let t=[0];return an(t,e.length-1),t}function ln(e,t){return tt(e)?e[Jt(0,e.length,t)]:e}var D=e=>!!(e&&e.getVelocity);function Be(e){return typeof e=="object"&&!Array.isArray(e)}function it(e,t,n,i){return typeof e=="string"&&Be(t)?Ie(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ki(e,t,n){return e*(t+1)}function Xt(e,t,n,i){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=i.get(t))!==null&&s!==void 0?s:e}function un(e,t){e.indexOf(t)===-1&&e.push(t)}function st(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function qi(e,t,n){for(let i=0;i<e.length;i++){let s=e[i];s.at>t&&s.at<n&&(st(e,s),i--)}}function $i(e,t,n,i,s,r){qi(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ee(s,r,i[o]),easing:ln(n,o)})}function zi(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Ui(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var ji="easeInOut",Yi=20;function rt(e,{defaultTransition:t={},...n}={},i,s){let r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map,c=0,h=0,d=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){u.set(v,h);continue}else if(!Array.isArray(v)){u.set(v.name,Xt(h,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Xt(h,p.at,c,u));let T=0,A=(M,m,S,E=0,y=0)=>{let C=Xi(M),{delay:Y=0,times:B=nt(C),type:je="keyframes",repeat:ce,repeatType:Ho,repeatDelay:Go=0,...Ai}=m,{ease:W=t.ease||"easeOut",duration:O}=m,Wt=typeof Y=="function"?Y(E,y):Y,Kt=C.length,qt=Q(je)?je:s?.[je];if(Kt<=2&&qt){let he=100;if(Kt===2&&Ji(C)){let de=C[1]-C[0];he=Math.abs(de)}let Ae={...Ai};O!==void 0&&(Ae.duration=F(O));let De=tn(Ae,he,qt);W=De.ease,O=De.duration}O??(O=r);let $t=h+Wt;B.length===1&&B[0]===0&&(B[1]=1);let zt=B.length-C.length;if(zt>0&&an(B,zt),C.length===1&&C.unshift(null),ce){k(ce<Yi,"Repeat count too high, must be less than 20"),O=Ki(O,ce);let he=[...C],Ae=[...B];W=Array.isArray(W)?[...W]:[W];let De=[...W];for(let de=0;de<ce;de++){C.push(...he);for(let fe=0;fe<he.length;fe++)B.push(Ae[fe]+(de+1)),W.push(fe===0?"linear":ln(De,fe-1))}zi(B,ce)}let Ut=$t+O;$i(S,C,W,B,$t,Ut),T=Math.max(Wt+O,T),d=Math.max(Ut,d)};if(D(w)){let M=Zt(w,a);A(b,p,Qt("default",M))}else{let M=it(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let E=M[S],y=Zt(E,a);for(let C in b)A(b[C],Zi(p,C),Qt(C,y),S,m)}}c=h,h+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Ui);let p=[],T=[],A=[];for(let m=0;m<b.length;m++){let{at:S,value:E,easing:y}=b[m];p.push(E),T.push(Z(0,d,S)),A.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),A.unshift(ji)),T[T.length-1]!==1&&(T.push(1),p.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let M=o.get(v);M.keyframes[w]=p,M.transition[w]={...t,duration:d,ease:A,times:T,...n}}}),o}function Zt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Qt(e,t){return t[e]||(t[e]=[]),t[e]}function Xi(e){return Array.isArray(e)?e:[e]}function Zi(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Qi=e=>typeof e=="number",Ji=e=>e.every(Qi);var j=(e,t,n)=>n>t?t:n<e?e:n;function Dn(e,t){return t?e*(1e3/t):0}var es=5;function Nn(e,t,n){let i=Math.max(t-es,0);return Dn(n-e(i),t-i)}var _={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},cn=.001;function ts({duration:e=_.duration,bounce:t=_.bounce,velocity:n=_.velocity,mass:i=_.mass}){let s,r;ge(e<=F(_.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=j(_.minDamping,_.maxDamping,o),e=j(_.minDuration,_.maxDuration,I(e)),o<1?(s=u=>{let c=u*o,h=c*e,d=c-n,g=ut(u,o),v=Math.exp(-h);return cn-d/g*v},r=u=>{let h=u*o*e,d=h*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-h),w=ut(Math.pow(u,2),o);return(-s(u)+cn>0?-1:1)*((d-g)*v)/w}):(s=u=>{let c=Math.exp(-u*e),h=(u-n)*e+1;return-.001+c*h},r=u=>{let c=Math.exp(-u*e),h=(n-u)*(e*e);return c*h});let a=5/e,l=is(s,r,a);if(e=F(e),isNaN(l))return{stiffness:_.stiffness,damping:_.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}var ns=12;function is(e,t,n){let i=n;for(let s=1;s<ns;s++)i=i-e(i)/t(i);return i}function ut(e,t){return e*Math.sqrt(1-t*t)}var ss=["duration","bounce"],rs=["stiffness","damping","mass"];function hn(e,t){return t.some(n=>e[n]!==void 0)}function os(e){let t={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...e};if(!hn(e,rs)&&hn(e,ss))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:_.mass,stiffness:s,damping:r}}else{let n=ts(e);t={...t,...n,mass:_.mass},t.isResolvedFromDuration=!0}return t}function yt(e=_.visualDuration,t=_.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=n,r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:g}=os({...n,velocity:-I(n.velocity||0)}),v=d||0,w=u/(2*Math.sqrt(l*c)),b=o-r,p=I(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?_.restSpeed.granular:_.restSpeed.default),s||(s=T?_.restDelta.granular:_.restDelta.default);let A;if(w<1){let m=ut(p,w);A=S=>{let E=Math.exp(-w*p*S);return o-E*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)A=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);A=S=>{let E=Math.exp(-w*p*S),y=Math.min(m*S,300);return o-E*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&h||null,next:m=>{let S=A(m);if(g)a.done=m>=h;else{let E=0;w<1&&(E=m===0?F(v):Nn(A,m,S));let y=Math.abs(E)<=i,C=Math.abs(o-S)<=s;a.done=y&&C}return a.value=a.done?o:S,a},toString:()=>{let m=Math.min(Oe(M),me),S=Xe(E=>M.next(m*E).value,m,30);return m+"ms "+S}};return M}var ne=new WeakMap,se=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],re=new Set(se),Fn=new Set(["width","height","top","left","right","bottom",...se]),as=e=>Array.isArray(e),ls=e=>as(e)?e[e.length-1]||0:e,us={skipAnimations:!1,useManualTiming:!1};function cs(e){let t=new Set,n=new Set,i=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),e()),u(o)}let l={schedule:(u,c=!1,h=!1)=>{let g=h&&i?t:n;return c&&r.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,i){s=!0;return}i=!0,[t,n]=[n,t],t.forEach(a),t.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}var we=["read","resolveKeyframes","update","preRender","render","postRender"],hs=40;function ds(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=we.reduce((p,T)=>(p[T]=cs(r),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=o,g=()=>{let p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,hs),1),s.timestamp=p,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(g))},v=()=>{n=!0,i=!0,s.isProcessing||e(g)};return{schedule:we.reduce((p,T)=>{let A=o[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),A.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<we.length;T++)o[we[T]].cancel(p)},state:s,steps:o}}var{schedule:G,cancel:We,state:Ke,steps:Qo}=ds(typeof requestAnimationFrame<"u"?requestAnimationFrame:R,!0),Ge;function fs(){Ge=void 0}var K={now:()=>(Ge===void 0&&K.set(Ke.isProcessing||us.useManualTiming?Ke.timestamp:performance.now()),Ge),set:e=>{Ge=e,queueMicrotask(fs)}},Ln=class{constructor(){this.subscriptions=[]}add(e){return un(this.subscriptions,e),()=>st(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,n);else for(let s=0;s<i;s++){let r=this.subscriptions[s];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var dn=30,ps=e=>!isNaN(parseFloat(e)),ms=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=K.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ps(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ln);let n=this.events[e].add(t);return e==="change"?()=>{n(),G.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dn);return Dn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 Se(e,t){return new ms(e,t)}function fn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Pn(e,t,n,i){if(typeof t=="function"){let[s,r]=fn(i);t=t(n!==void 0?n:e.custom,s,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[s,r]=fn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function gs(e,t,n){let i=e.getProps();return Pn(i,t,i.custom,e)}function vs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Se(n))}function ys(e,t){let n=gs(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=ls(r[o]);vs(e,o,a)}}function bs(e){return!!(D(e)&&e.add)}function ws(e,t){let n=e.getValue("willChange");if(bs(n))return n.add(t)}var bt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ts="framerAppearId",Ss="data-"+bt(Ts);function Cs(e){return e.props[Ss]}var In=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,xs=1e-7,Ms=12;function Es(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=In(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>xs&&++a<Ms);return o}function Me(e,t,n,i){if(e===t&&n===i)return R;let s=r=>Es(r,0,1,e,n);return r=>r===0||r===1?r:In(s(r),t,i)}var On=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Rn=e=>t=>1-e(1-t),kn=Me(.33,1.53,.69,.99),wt=Rn(kn),Bn=On(wt),Hn=e=>(e*=2)<1?.5*wt(e):.5*(2-Math.pow(2,-10*(e-1))),Tt=e=>1-Math.sin(Math.acos(e)),_s=Rn(Tt),Gn=On(Tt),Wn=e=>/^0[^.\s]+$/u.test(e);function Vs(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wn(e):!0}var oe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ce={...oe,transform:e=>j(0,1,e)},He={...oe,default:1},Te=e=>Math.round(e*1e5)/1e5,St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function As(e){return e==null}var Ds=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ct=(e,t)=>n=>!!(typeof n=="string"&&Ds.test(n)&&n.startsWith(e)||t&&!As(n)&&Object.prototype.hasOwnProperty.call(n,t)),Kn=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(St);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ns=e=>j(0,255,e),ot={...oe,transform:e=>Math.round(Ns(e))},z={test:Ct("rgb","red"),parse:Kn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ot.transform(e)+", "+ot.transform(t)+", "+ot.transform(n)+", "+Te(Ce.transform(i))+")"};function Fs(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}var ct={test:Ct("#"),parse:Fs,transform:z.transform},te={test:Ct("hsl","hue"),parse:Kn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+q.transform(Te(t))+", "+q.transform(Te(n))+", "+Te(Ce.transform(i))+")"},N={test:e=>z.test(e)||ct.test(e)||te.test(e),parse:e=>z.test(e)?z.parse(e):te.test(e)?te.parse(e):ct.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?z.transform(e):te.transform(e)},Ls=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ps(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(St))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ls))===null||n===void 0?void 0:n.length)||0)>0}var qn="number",$n="color",Is="var",Os="var(",pn="${}",Rs=/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 xe(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(Rs,l=>(N.test(l)?(i.color.push(r),s.push($n),n.push(N.parse(l))):l.startsWith(Os)?(i.var.push(r),s.push(Is),n.push(l)):(i.number.push(r),s.push(qn),n.push(parseFloat(l))),++r,pn)).split(pn);return{values:n,split:a,indexes:i,types:s}}function zn(e){return xe(e).values}function Un(e){let{split:t,types:n}=xe(e),i=t.length;return s=>{let r="";for(let o=0;o<i;o++)if(r+=t[o],s[o]!==void 0){let a=n[o];a===qn?r+=Te(s[o]):a===$n?r+=N.transform(s[o]):r+=s[o]}return r}}var ks=e=>typeof e=="number"?0:e;function Bs(e){let t=zn(e);return Un(e)(t.map(ks))}var ae={test:Ps,parse:zn,createTransformer:Un,getAnimatableNone:Bs},Hs=new Set(["brightness","contrast","saturate","opacity"]);function Gs(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(St)||[];if(!i)return e;let s=n.replace(i,""),r=Hs.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var Ws=/\b([a-z-]*)\(.*?\)/gu,ht={...ae,getAnimatableNone:e=>{let t=e.match(Ws);return t?t.map(Gs).join(" "):e}},Ks={rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:He,scaleX:He,scaleY:He,scaleZ:He,skew:H,skewX:H,skewY:H,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:Ce,originX:Je,originY:Je,originZ:f},mn={...oe,transform:Math.round},xt={...Fe,...Ks,zIndex:mn,size:f,fillOpacity:Ce,strokeOpacity:Ce,numOctaves:mn},qs={...xt,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:ht,WebkitFilter:ht},Mt=e=>qs[e];function jn(e,t){let n=Mt(e);return n!==ht&&(n=ae),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var $s=new Set(["auto","none","0"]);function zs(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!$s.has(r)&&xe(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=jn(n,s)}var gn=e=>e===oe||e===f,vn=(e,t)=>parseFloat(e.split(", ")[t]),yn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return vn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?vn(r[1],e):0}},Us=new Set(["x","y","z"]),js=se.filter(e=>!Us.has(e));function Ys(e){let t=[];return js.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var ie={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:yn(4,13),y:yn(5,14)};ie.translateX=ie.x;ie.translateY=ie.y;var U=new Set,dt=!1,ft=!1;function Yn(){if(ft){let e=Array.from(U).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=Ys(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();let s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))===null||a===void 0||a.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ft=!1,dt=!1,U.forEach(e=>e.complete()),U.clear()}function Xn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ft=!0)})}function Xs(){Xn(),Yn()}var Et=class{constructor(e,t,n,i,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(U.add(this),dt||(dt=!0,G.read(Xn),G.resolveKeyframes(Yn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){let r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&t){let a=n.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),U.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,U.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Zn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Qn=e=>t=>typeof t=="string"&&t.startsWith(e),Jn=Qn("--"),Zs=Qn("var(--"),_t=e=>Zs(e)?Qs.test(e.split("/*")[0].trim()):!1,Qs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function er(e){let t=Js.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var tr=4;function ei(e,t,n=1){k(n<=tr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=er(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Zn(o)?parseFloat(o):o}return _t(s)?ei(s,t,n+1):s}var ti=e=>t=>t.test(e),nr={test:e=>e==="auto",parse:e=>e},ni=[oe,f,q,H,rn,sn,nr],bn=e=>ni.find(ti(e)),ii=class extends Et{constructor(e,t,n,i,s){super(e,t,n,i,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="string"&&(l=l.trim(),_t(l))){let u=ei(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Fn.has(n)||e.length!==2)return;let[i,s]=e,r=bn(i),o=bn(s);if(r!==o)if(gn(r)&&gn(o))for(let a=0;a<e.length;a++){let l=e[a];typeof l=="string"&&(e[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)Vs(e[i])&&n.push(i);n.length&&zs(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ie[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,o=i[r];i[r]=ie[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}},wn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ae.test(e)||e==="0")&&!e.startsWith("url("));function ir(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function sr(e,t,n,i){let s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],o=wn(s,t),a=wn(r,t);return ge(o===a,`You are trying to animate ${t} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:ir(e)||(n==="spring"||Q(n))&&i}var rr=40,si=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>rr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Xs(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!sr(e,n,i,s))if(r)this.options.duration=0;else{a?.(J(e,this.options,t)),o?.(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function at(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function or({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,r=0,o=0;if(!t)s=r=o=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=at(l,a,e+1/3),r=at(l,a,e),o=at(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function qe(e,t){return n=>n>0?t:e}var lt=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},ar=[ct,z,te],lr=e=>ar.find(t=>t.test(e));function Tn(e){let t=lr(e);if(ge(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===te&&(n=or(n)),n}var Sn=(e,t)=>{let n=Tn(e),i=Tn(t);if(!n||!i)return qe(e,t);let s={...n};return r=>(s.red=lt(n.red,i.red,r),s.green=lt(n.green,i.green,r),s.blue=lt(n.blue,i.blue,r),s.alpha=ee(n.alpha,i.alpha,r),z.transform(s))},ur=(e,t)=>n=>t(e(n)),Vt=(...e)=>e.reduce(ur),pt=new Set(["none","hidden"]);function cr(e,t){return pt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hr(e,t){return n=>ee(e,t,n)}function At(e){return typeof e=="number"?hr:typeof e=="string"?_t(e)?qe:N.test(e)?Sn:pr:Array.isArray(e)?ri:typeof e=="object"?N.test(e)?Sn:dr:qe}function ri(e,t){let n=[...e],i=n.length,s=e.map((r,o)=>At(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function dr(e,t){let n={...e,...t},i={};for(let s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=At(e[s])(e[s],t[s]));return s=>{for(let r in i)n[r]=i[r](s);return n}}function fr(e,t){var n;let i=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;i[r]=l,s[o]++}return i}var pr=(e,t)=>{let n=ae.createTransformer(t),i=xe(e),s=xe(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?pt.has(e)&&!s.values.length||pt.has(t)&&!i.values.length?cr(e,t):Vt(ri(fr(i,s),s.values),n):(ge(!0,`Complex values '${e}' and '${t}' 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.`),qe(e,t))};function oi(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):At(e)(e,t)}function Cn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h=e[0],d={done:!1,value:h},g=y=>a!==void 0&&y<a||l!==void 0&&y>l,v=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l,w=n*t,b=h+w,p=o===void 0?b:o(b);p!==b&&(w=p-h);let T=y=>-w*Math.exp(-y/i),A=y=>p+T(y),M=y=>{let C=T(y),Y=A(y);d.done=Math.abs(C)<=u,d.value=d.done?p:Y},m,S,E=y=>{g(d.value)&&(m=y,S=yt({keyframes:[d.value,v(d.value)],velocity:Nn(A,y,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:y=>{let C=!1;return!S&&m===void 0&&(C=!0,M(y),E(y)),m!==void 0&&y>=m?S.next(y-m):(!C&&M(y),d)}}}var mr=Me(.42,0,1,1),gr=Me(0,0,.58,1),ai=Me(.42,0,.58,1),xn={linear:R,easeIn:mr,easeInOut:ai,easeOut:gr,circIn:Tt,circInOut:Gn,circOut:_s,backIn:wt,backInOut:Bn,backOut:kn,anticipate:Hn},mt=e=>{if(ke(e)){k(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return Me(t,n,i,s)}else if(typeof e=="string")return k(xn[e]!==void 0,`Invalid easing type '${e}'`),xn[e];return e};function vr(e,t,n){let i=[],s=n||oi,r=e.length-1;for(let o=0;o<r;o++){let a=s(e[o],e[o+1]);if(t){let l=Array.isArray(t)?t[o]||R:t;a=Vt(l,a)}i.push(a)}return i}function yr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let r=e.length;if(k(r===t.length,"Both input and output ranges must be the same length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=vr(t,i,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(c<e[h+1]);h++);let d=Z(e[h],e[h+1],c);return a[h](d)};return n?c=>u(j(e[0],e[r-1],c)):u}function br(e,t){return e.map(n=>n*t)}function wr(e,t){return e.map(()=>t||ai).splice(0,e.length-1)}function $e({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=tt(i)?i.map(mt):mt(i),r={done:!1,value:t[0]},o=br(n&&n.length===t.length?n:nt(t),e),a=yr(o,t,{ease:Array.isArray(s)?s:wr(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var Tr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>We(t),now:()=>Ke.isProcessing?Ke.timestamp:K.now()}},Sr={decay:Cn,inertia:Cn,tween:$e,keyframes:$e,spring:yt},Cr=e=>e/100,Dt=class extends si{constructor(e){super(e),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,this.state==="idle")return;this.teardown();let{onStop:a}=this.options;a&&a()};let{name:t,motionValue:n,element:i,keyframes:s}=this.options,r=i?.KeyframeResolver||Et,o=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new r(s,o,t,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=this.options,o=Q(t)?t:Sr[t]||$e,a,l;o!==$e&&typeof e[0]!="number"&&(a=Vt(Cr,oi(e[0],e[1])),e=[0,100]);let u=o({...this.options,keyframes:e});s==="mirror"&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Oe(u));let{calculatedDuration:c}=u,h=c+i,d=h*(n+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:d}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}let{finalKeyframe:i,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(this.startTime===null)return s.next(0);let{delay:h,repeat:d,repeatType:g,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let b=this.currentTime-h*(this.speed>=0?1:-1),p=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,A=s;if(d){let E=Math.min(this.currentTime,u)/c,y=Math.floor(E),C=E%1;!C&&E>=1&&(C=1),C===1&&y--,y=Math.min(y,d+1),!!(y%2)&&(g==="reverse"?(C=1-C,v&&(C-=v/c)):g==="mirror"&&(A=r)),T=j(0,1,C)*c}let M=p?{done:!1,value:a[0]}:A.next(T);o&&(M.value=o(M.value));let{done:m}=M;!p&&l!==null&&(m=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&m);return S&&i!==void 0&&(M.value=J(a,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=F(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=Tr,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),t&&t();let i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&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(e){return this.startTime=0,this.tick(e,!0)}},xr=new Set(["opacity","clipPath","filter","transform"]),ze=10,Mr=2e4;function Er(e){return Q(e.type)||e.type==="spring"||!Ze(e.ease)}function _r(e,t){let n=new Dt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},s=[],r=0;for(;!i.done&&r<Mr;)i=n.sample(r),s.push(i.value),r+=ze;return{times:void 0,keyframes:s,duration:r-ze,ease:"linear"}}var li={anticipate:Hn,backInOut:Bn,circInOut:Gn};function Vr(e){return e in li}var Mn=class extends si{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ii(s,(r,o)=>this.onKeyframesResolved(r,o),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:i=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(typeof r=="string"&&X()&&Vr(r)&&(r=li[r]),Er(this.options)){let{onComplete:h,onUpdate:d,motionValue:g,element:v,...w}=this.options,b=_r(e,w);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,s=b.times,r=b.ease,o="keyframes"}let c=Qe(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Re(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:h}=this.options;a.set(J(e,this.options,t)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:o,ease:r,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return I(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return I(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=F(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return R;let{animation:n}=t;Re(n,e)}return R}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:s,ease:r,times:o}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:u,onComplete:c,element:h,...d}=this.options,g=new Dt({...d,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=F(this.time);l.setWithVelocity(g.sample(v-ze).value,g.sample(v).value,ze)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:r,type:o}=e;return et()&&n&&xr.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Ar={type:"spring",stiffness:500,damping:25,restSpeed:10},Dr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Nr={type:"keyframes",duration:.8},Fr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lr=(e,{keyframes:t})=>t.length>2?Nr:re.has(e)?e.startsWith("scale")?Dr(t[1]):Ar:Fr;function Pr({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var ui=(e,t,n,i={},s,r)=>o=>{let a=Pe(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u=u-F(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:s};Pr(a)||(c={...c,...Lr(e,c)}),c.duration&&(c.duration=F(c.duration)),c.repeatDelay&&(c.repeatDelay=F(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&t.get()!==void 0){let d=J(c.keyframes,a);if(d!==void 0)return G.update(()=>{c.onUpdate(d),c.onComplete()}),new ve([])}return!r&&Mn.supports(c)?new Mn(c):new Dt(c)};function Ir({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Or(e,t,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(o=i);let u=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let h in l){let d=e.getValue(h,(r=e.latestValues[h])!==null&&r!==void 0?r:null),g=l[h];if(g===void 0||c&&Ir(c,h))continue;let v={delay:n,...Pe(o||{},h)},w=!1;if(window.MotionHandoffAnimation){let p=Cs(e);if(p){let T=window.MotionHandoffAnimation(p,h,G);T!==null&&(v.startTime=T,w=!0)}}ws(e,h),d.start(ui(h,d,g,e.shouldReduceMotion&&Fn.has(h)?{type:!1}:v,e,w));let b=d.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{G.update(()=>{a&&ys(e,a)})}),u}function Rr(e){return e instanceof SVGElement&&e.tagName!=="svg"}var En=()=>({min:0,max:0}),Nt=()=>({x:En(),y:En()}),_n={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"]},gt={};for(let e in _n)gt[e]={isEnabled:t=>_n[e].some(n=>!!t[n])};var kr=typeof window<"u",vt={current:null},ci={current:!1};function Br(){if(ci.current=!0,!!kr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vt.current=e.matches;e.addListener(t),t()}else vt.current=!1}var Hr=[...ni,N,ae],Gr=e=>Hr.find(ti(e));function Wr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Kr(e){return typeof e=="string"||Array.isArray(e)}var qr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$r=["initial",...qr];function hi(e){return Wr(e.animate)||$r.some(t=>Kr(e[t]))}function zr(e){return!!(hi(e)||e.variants)}function Ur(e,t,n){for(let i in t){let s=t[i],r=n[i];if(D(s))e.addValue(i,s);else if(D(r))e.addValue(i,Se(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){let o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{let o=e.getStaticValue(i);e.addValue(i,Se(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Vn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],di=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Et,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 d=K.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,G.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=hi(t),this.isVariantNode=zr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let d in h){let g=h[d];a[d]!==void 0&&D(g)&&g.set(a[d],!1)}}mount(e){this.current=e,ne.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),ci.current||Br(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ne.delete(this.current),this.projection&&this.projection.unmount(),We(this.notifyUpdate),We(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=re.has(e),i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender),r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in gt){let t=gt[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Vn.length;n++){let i=Vn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s="on"+i,r=e[s];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Ur(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Se(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Zn(i)||Wn(i))?i=parseFloat(i):!Gr(i)&&ae.test(t)&&(i=jn(e,t)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i;if(typeof n=="string"||typeof n=="object"){let r=Pn(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;let s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!D(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ln),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},fi=class extends di{constructor(){super(...arguments),this.KeyframeResolver=ii}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},pi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,jr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yr=se.length;function Xr(e,t,n){let i="",s=!0;for(let r=0;r<Yr;r++){let o=se[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){let u=pi(a,xt[o]);if(!l){s=!1;let c=jr[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function mi(e,t,n){let{style:i,vars:s,transformOrigin:r}=e,o=!1,a=!1;for(let l in t){let u=t[l];if(re.has(l)){o=!0;continue}else if(Jn(l)){s[l]=u;continue}else{let c=pi(u,xt[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=Xr(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function An(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function Zr(e,t,n){let i=An(t,e.x,e.width),s=An(n,e.y,e.height);return`${i} ${s}`}var Qr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jr={offset:"strokeDashoffset",array:"strokeDasharray"};function eo(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?Qr:Jr;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function to(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(mi(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:g,dimensions:v}=e;d.transform&&(v&&(g.transform=d.transform),delete d.transform),v&&(s!==void 0||r!==void 0||g.transform)&&(g.transformOrigin=Zr(v,s!==void 0?s:.5,r!==void 0?r:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),o!==void 0&&eo(d,o,a,l,!1)}var gi=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"]),no=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vi(e,{style:t,vars:n},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(let r in n)e.style.setProperty(r,n[r])}function io(e,t,n,i){vi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(gi.has(s)?s:bt(s),t.attrs[s])}var so={};function ro(e,{layout:t,layoutId:n}){return re.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!so[e]||e==="opacity")}function yi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(D(s[o])||t.style&&D(t.style[o])||ro(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function oo(e,t,n){let i=yi(e,t,n);for(let s in e)if(D(e[s])||D(t[s])){let r=se.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var ao=class extends fi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(re.has(t)){let n=Mt(t);return n&&n.default||0}return t=gi.has(t)?t:bt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return oo(e,t,n)}build(e,t,n){to(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){io(e,t,n,i)}mount(e){this.isSVGTag=no(e.tagName),super.mount(e)}};function lo({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function uo(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function co(e,t){return lo(uo(e.getBoundingClientRect(),t))}function ho(e){return window.getComputedStyle(e)}var fo=class extends fi{constructor(){super(...arguments),this.type="html",this.renderInstance=vi}readValueFromInstance(e,t){if(re.has(t)){let n=Mt(t);return n&&n.default||0}else{let n=ho(e),i=(Jn(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return co(e,t)}build(e,t,n){mi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return yi(e,t,n)}};function po(e,t){return e in t}var mo=class extends di{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(po(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Nt()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function go(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Rr(e)?new ao(t):new fo(t);n.mount(e),ne.set(e,n)}function vo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new mo(t);n.mount(e),ne.set(e,n)}function yo(e,t,n){let i=D(e)?e:Se(e);return i.start(ui("",i,t,n)),i.animation}function bo(e,t){return D(e)||typeof e=="number"||typeof e=="string"&&!Be(t)}function bi(e,t,n,i){let s=[];if(bo(e,t))s.push(yo(e,Be(t)&&t.default||t,n&&(n.default||n)));else{let r=it(e,t,i),o=r.length;k(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let l=r[a],u=l instanceof Element?go:vo;ne.has(l)||u(l);let c=ne.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Or(c,{...t,transition:h},{}))}}return s}function wo(e,t,n){let i=[];return rt(e,t,n,{spring:yt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...bi(a,r,o))}),i}function To(e){return Array.isArray(e)&&e.some(Array.isArray)}function So(e){function t(n,i,s){let r=[];To(n)?r=wo(n,i,e):r=bi(n,i,s,e);let o=new ve(r);return e&&e.animations.push(o),o}return t}var Jo=So();var Co={some:0,all:1};function wi(e,t,{root:n,margin:i,amount:s="some"}={}){let r=Ie(e),o=new WeakMap,a=u=>{u.forEach(c=>{let h=o.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){let d=t(c);typeof d=="function"?o.set(c.target,d):l.unobserve(c.target)}else typeof h=="function"&&(h(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Co[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function xo(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function Ft(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(s,r)=>{let o=typeof n=="number"?n:xo(n,r),a=Math.abs(o-s),l=e*a;if(i){let u=r*e;l=mt(i)(l/u)*u}return t+l}}var ea=we.reduce((e,t)=>(e[t]=n=>We(n),e),{});var Mo=Symbol.for("preact-signals");function Pt(){if(le>1)le--;else{for(var e,t=!1;Ee!==void 0;){var n=Ee;for(Ee=void 0,Lt++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Ci(n))try{n.c()}catch(s){t||(e=s,t=!0)}n=i}}if(Lt=0,le--,t)throw e}}var x=void 0;var Ee=void 0,le=0,Lt=0,Ue=0;function Ti(e){if(x!==void 0){var t=e.n;if(t===void 0||t.t!==x)return t={i:0,S:e,p:x.s,n:void 0,t:x,e:void 0,x:void 0,r:t},x.s!==void 0&&(x.s.n=t),x.s=t,e.n=t,32&x.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=x.s,t.n=void 0,x.s.n=t,x.s=t),t}}function L(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}L.prototype.brand=Mo;L.prototype.h=function(){return!0};L.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};L.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};L.prototype.subscribe=function(e){var t=this;return _o(function(){var n=t.value,i=x;x=void 0;try{e(n)}finally{x=i}})};L.prototype.valueOf=function(){return this.value};L.prototype.toString=function(){return this.value+""};L.prototype.toJSON=function(){return this.value};L.prototype.peek=function(){var e=x;x=void 0;try{return this.value}finally{x=e}};Object.defineProperty(L.prototype,"value",{get:function(){var e=Ti(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Lt>100)throw new Error("Cycle detected");this.v=e,this.i++,Ue++,le++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pt()}}}});function Si(e){return new L(e)}function Ci(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function xi(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Mi(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function _e(e){L.call(this,void 0),this.x=e,this.s=void 0,this.g=Ue-1,this.f=4}(_e.prototype=new L).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ue))return!0;if(this.g=Ue,this.f|=1,this.i>0&&!Ci(this))return this.f&=-2,!0;var e=x;try{xi(this),x=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return x=e,Mi(this),this.f&=-2,!0};_e.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}L.prototype.S.call(this,e)};_e.prototype.U=function(e){if(this.t!==void 0&&(L.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};_e.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(_e.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ti(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ei(e){var t=e.u;if(e.u=void 0,typeof t=="function"){le++;var n=x;x=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,It(e),i}finally{x=n,Pt()}}}function It(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ei(e)}function Eo(e){if(x!==this)throw new Error("Out-of-order effect");Mi(this),x=e,this.f&=-2,8&this.f&&It(this),Pt()}function Ve(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ve.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Ve.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ei(this),xi(this),le++;var e=x;return x=this,Eo.bind(this,e)};Ve.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ee,Ee=this)};Ve.prototype.d=function(){this.f|=8,1&this.f||It(this)};function _o(e){var t=new Ve(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var _i=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},V=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Vo=".NDGMNT__FloatingFixedButton__floating-menu",Ao=".NDGMNT__FloatingFixedButton__trigger-button",Do='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-round"><path d="M18 21a8 8 0 0 0-16 0"/><circle cx="10" cy="8" r="5"/><path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/></svg>',No={naver:'<svg width="289" height="291" viewBox="0 0 289 291" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M247.979 34.7843V183.205C247.979 195.764 237.784 205.968 225.238 205.968H86.8376C83.8876 205.968 57.8875 206.368 46.775 219.818L40.3709 226.401L28.9917 238.093L16.2875 251.147C15.325 251.714 13.8 252.393 12.8042 252.393L12.6667 252.414C12.6583 252.405 11.3792 251.18 11.3792 245.534V34.7843C11.3792 22.2259 21.5834 12.0218 34.1417 12.0218H225.238C235.188 12.0218 243.567 18.4759 246.65 27.3926C247.459 29.7259 247.979 32.1843 247.979 34.7843ZM278.817 38.1176L278.859 38.0468L250.175 11.6093C243.95 4.90091 235.096 0.642578 225.238 0.642578H34.1417C15.325 0.642578 0 15.9509 0 34.7843V245.534C0 251.393 1.07917 255.755 3.26667 258.859C4.03334 259.951 4.9375 260.872 5.9625 261.609L33.3917 286.884C33.8292 287.347 34.2792 287.768 34.7584 288.143L34.9917 288.368L35.025 288.33C35.4792 288.651 35.9167 289.009 36.4 289.268C38.0209 290.093 39.8375 290.534 41.7959 290.534C46.8875 290.534 51.3334 287.576 52.175 286.984L84.2376 254.18C91.0334 245.959 109.325 244.13 115.821 244.114H254.225C273.046 244.114 288.359 228.797 288.359 209.976V61.5343C288.359 52.4093 284.7 44.2093 278.817 38.1176Z" fill="white"/><path d="M75.1167 71.9814C65.7084 71.9814 58.1125 79.6022 58.1125 88.9939V124.715C58.1125 134.111 65.7084 141.719 75.1167 141.719C84.5001 141.719 92.1251 134.111 92.1251 124.715V88.9939C92.1251 79.6022 84.5001 71.9814 75.1167 71.9814Z" fill="white"/><path d="M181.058 71.9814C171.663 71.9814 164.038 79.6022 164.038 88.9939V124.715C164.038 134.111 171.663 141.719 181.058 141.719C190.446 141.719 198.054 134.111 198.054 124.715V88.9939C198.054 79.6022 190.446 71.9814 181.058 71.9814Z" fill="white"/></svg>',kakao:'<svg width="18" height="17" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00002 0.0999756C4.02917 0.0999756 0 3.21293 0 7.05226C0 9.44 1.5584 11.5449 3.93152 12.7969L2.93303 16.4445C2.84481 16.7668 3.21341 17.0237 3.49646 16.8369L7.87334 13.9482C8.2427 13.9838 8.61808 14.0046 9.00002 14.0046C13.9705 14.0046 17.9999 10.8918 17.9999 7.05226C17.9999 3.21293 13.9705 0.0999756 9.00002 0.0999756Z" fill="black"/></svg>',youtube:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-youtube"><path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"/><path d="m10 15 5-3-5-3z"/></svg>',instagram:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-instagram"><rect width="20" height="20" x="2" y="2" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" x2="17.51" y1="6.5" y2="6.5"/></svg>',thread:`<svg width="413" height="480" viewBox="0 0 413 480" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M321.342 222.471C319.275 221.48 317.175 220.526 315.047 219.613C311.342 151.346 274.04 112.262 211.405 111.862C211.121 111.861 210.839 111.861 210.555 111.861C173.091 111.861 141.933 127.852 122.755 156.952L157.202 180.582C171.529 158.846 194.013 154.212 210.572 154.212C210.763 154.212 210.955 154.212 211.144 154.214C231.768 154.345 247.33 160.342 257.402 172.035C264.732 180.548 269.635 192.312 272.062 207.16C253.777 204.052 234.002 203.096 212.862 204.308C153.312 207.738 115.028 242.47 117.599 290.73C118.904 315.21 131.099 336.27 151.938 350.027C169.556 361.658 192.247 367.345 215.831 366.057C246.975 364.35 271.408 352.467 288.452 330.74C301.397 314.24 309.585 292.857 313.2 265.915C328.043 274.872 339.042 286.66 345.117 300.83C355.447 324.918 356.05 364.5 323.753 396.77C295.455 425.04 261.44 437.27 210.034 437.648C153.01 437.225 109.884 418.938 81.8452 383.293C55.5887 349.915 42.0192 301.705 41.513 240C42.0192 178.294 55.5887 130.084 81.8452 96.7068C109.884 61.0623 153.01 42.775 210.033 42.3512C267.47 42.7783 311.348 61.1535 340.46 96.97C354.735 114.534 365.497 136.622 372.592 162.376L412.96 151.605C404.36 119.906 390.827 92.5892 372.412 69.935C335.09 24.0167 280.505 0.48787 210.174 0H209.892C139.704 0.486175 85.7302 24.1045 49.4707 70.1982C17.2048 111.216 0.561 168.289 0.00174999 239.831L0 240L0.00174999 240.169C0.561 311.71 17.2048 368.785 49.4707 409.803C85.7302 455.895 139.704 479.515 209.892 480H210.174C272.575 479.568 316.56 463.23 352.795 427.028C400.202 379.665 398.775 320.298 383.15 283.853C371.94 257.717 350.568 236.49 321.342 222.471ZM213.601 323.768C187.501 325.238 160.386 313.522 159.049 288.43C158.058 269.825 172.29 249.065 215.203 246.592C220.117 246.309 224.94 246.17 229.678 246.17C245.265 246.17 259.848 247.684 273.105 250.583C268.16 312.337 239.155 322.365 213.601 323.768Z" fill="white"/></svg>
|
11
|
+
"use strict";(()=>{var Di=Object.defineProperty;var Ni=(e,t,n)=>t in e?Di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var P=(e,t,n)=>Ni(e,typeof t!="symbol"?t+"":t,n);var R=e=>e,ge=R,k=R,Z=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},Jt=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Le(e){let t;return()=>(t===void 0&&(t=e()),t)}var en=Le(()=>window.ScrollTimeline!==void 0),Fi=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(i=>{if(en()&&i.attachTimeline)return i.attachTimeline(e);if(typeof t=="function")return t(i)});return()=>{n.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},ve=class extends Fi{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},F=e=>e*1e3,I=e=>e/1e3;function Pe(e,t){return e?e[t]||e.default||e:void 0}function Ie(e,t,n){var i;if(e instanceof Element)return[e];if(typeof e=="string"){let s=document;t&&(s=t.current);let r=(i=n?.[e])!==null&&i!==void 0?i:s.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}var me=2e4;function Oe(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<me;)t+=n,i=e.next(t);return t>=me?1/0:t}function tn(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(Oe(i),me);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:I(s)}}function Q(e){return typeof e=="function"}function Re(e,t){e.timeline=t,e.onfinish=null}var Li=class{constructor(e){this.animation=e}get duration(){var e,t,n;let i=((t=(e=this.animation)===null||e===void 0?void 0:e.effect)===null||t===void 0?void 0:t.getComputedTiming().duration)||((n=this.options)===null||n===void 0?void 0:n.duration)||300;return I(Number(i))}get time(){var e;return this.animation?I(((e=this.animation)===null||e===void 0?void 0:e.currentTime)||0):0}set time(e){this.animation&&(this.animation.currentTime=F(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&Re(this.animation,e),R}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Pi={linearEasing:void 0};function Ii(e,t){let n=Le(e);return()=>{var i;return(i=Pi[t])!==null&&i!==void 0?i:n()}}var X=Ii(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ke=e=>Array.isArray(e)&&typeof e[0]=="number",Xe=(e,t,n=10)=>{let i="",s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=e(Z(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function Ze(e){return!!(typeof e=="function"&&X()||!e||typeof e=="string"&&(e in Ye||X())||ke(e)||Array.isArray(e)&&e.every(Ze))}var pe=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pe([0,.65,.55,1]),circOut:pe([.55,0,1,.45]),backIn:pe([.31,.01,.66,-.59]),backOut:pe([.33,1.53,.69,.99])};function nn(e,t){if(e)return typeof e=="function"&&X()?Xe(e,t):ke(e)?pe(e):Array.isArray(e)?e.map(n=>nn(n,t)||Ye.easeOut):Ye[e]}function Qe(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=nn(a,s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:s,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}var ye=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),H=ye("deg"),q=ye("%"),f=ye("px"),sn=ye("vh"),rn=ye("vw"),Je={...q,parse:e=>q.parse(e)/100,transform:e=>q.transform(e*100)},Fe={borderWidth:f,borderTopWidth:f,borderRightWidth:f,borderBottomWidth:f,borderLeftWidth:f,borderRadius:f,radius:f,borderTopLeftRadius:f,borderTopRightRadius:f,borderBottomRightRadius:f,borderBottomLeftRadius:f,width:f,maxWidth:f,height:f,maxHeight:f,top:f,right:f,bottom:f,left:f,padding:f,paddingTop:f,paddingRight:f,paddingBottom:f,paddingLeft:f,margin:f,marginTop:f,marginRight:f,marginBottom:f,marginLeft:f,backgroundPositionX:f,backgroundPositionY:f},Oi=e=>e!==null;function J(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Oi),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function Ri(e,t,n){e.style.setProperty(`--${t}`,n)}function ki(e,t,n){e.style[t]=n}var Bi=Le(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),et=Le(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ne=new WeakMap;function Hi(e,t,n){for(let i=0;i<t.length;i++)t[i]===null&&(t[i]=i===0?n():t[i-1]),typeof t[i]=="number"&&Fe[e]&&(t[i]=Fe[e].transform(t[i]));!Bi()&&t.length<2&&t.unshift(n())}var jt="easeOut";function Yt(e){let t=Ne.get(e)||new Map;return Ne.set(e,t),Ne.get(e)}var Gi=class extends Li{constructor(e,t,n,i){let s=t.startsWith("--");k(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let r=Yt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),Hi(t,n,o),Q(i.type)){let u=tn(i,100,i.type);i.ease=X()?u.ease:jt,i.duration=F(u.duration),i.type="keyframes"}else i.ease=i.ease||jt;let a=()=>{this.setValue(e,t,J(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?Ri:ki,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Ne.get(e))===null||u===void 0?void 0:u.delete(t)}};et()?(super(Qe(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,Yt(e).set(t,this)):(super(),l(),a())}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}play(){this.state==="finished"&&this.updateFinishedPromise(),super.play()}cancel(){this.removeAnimation(),super.cancel()}};function on(e,t,n,i){let s=Ie(e,i),r=s.length;k(!!r,"No valid element provided.");let o=[];for(let a=0;a<r;a++){let l=s[a],u={...n};typeof u.delay=="function"&&(u.delay=u.delay(a,r));for(let c in t){let h=t[c],d={...Pe(u,c)};d.duration=d.duration?F(d.duration):d.duration,d.delay=F(d.delay||0),o.push(new Gi(l,c,h,d))}}return o}var Wi=e=>{function t(n,i,s){return new ve(on(n,i,s,e))}return t},be=Wi(),tt=e=>Array.isArray(e)&&typeof e[0]!="number",ee=(e,t,n)=>e+(t-e)*n;function an(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=Z(0,t,i);e.push(ee(n,1,s))}}function nt(e){let t=[0];return an(t,e.length-1),t}function ln(e,t){return tt(e)?e[Jt(0,e.length,t)]:e}var D=e=>!!(e&&e.getVelocity);function Be(e){return typeof e=="object"&&!Array.isArray(e)}function it(e,t,n,i){return typeof e=="string"&&Be(t)?Ie(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ki(e,t,n){return e*(t+1)}function Xt(e,t,n,i){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=i.get(t))!==null&&s!==void 0?s:e}function un(e,t){e.indexOf(t)===-1&&e.push(t)}function st(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function qi(e,t,n){for(let i=0;i<e.length;i++){let s=e[i];s.at>t&&s.at<n&&(st(e,s),i--)}}function $i(e,t,n,i,s,r){qi(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ee(s,r,i[o]),easing:ln(n,o)})}function zi(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Ui(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var ji="easeInOut",Yi=20;function rt(e,{defaultTransition:t={},...n}={},i,s){let r=t.duration||.3,o=new Map,a=new Map,l={},u=new Map,c=0,h=0,d=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){u.set(v,h);continue}else if(!Array.isArray(v)){u.set(v.name,Xt(h,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Xt(h,p.at,c,u));let T=0,A=(M,m,S,E=0,y=0)=>{let x=Xi(M),{delay:Y=0,times:B=nt(x),type:je="keyframes",repeat:ce,repeatType:Go,repeatDelay:Wo=0,...Ai}=m,{ease:W=t.ease||"easeOut",duration:O}=m,Wt=typeof Y=="function"?Y(E,y):Y,Kt=x.length,qt=Q(je)?je:s?.[je];if(Kt<=2&&qt){let he=100;if(Kt===2&&Ji(x)){let de=x[1]-x[0];he=Math.abs(de)}let Ae={...Ai};O!==void 0&&(Ae.duration=F(O));let De=tn(Ae,he,qt);W=De.ease,O=De.duration}O??(O=r);let $t=h+Wt;B.length===1&&B[0]===0&&(B[1]=1);let zt=B.length-x.length;if(zt>0&&an(B,zt),x.length===1&&x.unshift(null),ce){k(ce<Yi,"Repeat count too high, must be less than 20"),O=Ki(O,ce);let he=[...x],Ae=[...B];W=Array.isArray(W)?[...W]:[W];let De=[...W];for(let de=0;de<ce;de++){x.push(...he);for(let fe=0;fe<he.length;fe++)B.push(Ae[fe]+(de+1)),W.push(fe===0?"linear":ln(De,fe-1))}zi(B,ce)}let Ut=$t+O;$i(S,x,W,B,$t,Ut),T=Math.max(Wt+O,T),d=Math.max(Ut,d)};if(D(w)){let M=Zt(w,a);A(b,p,Qt("default",M))}else{let M=it(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let E=M[S],y=Zt(E,a);for(let x in b)A(b[x],Zi(p,x),Qt(x,y),S,m)}}c=h,h+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Ui);let p=[],T=[],A=[];for(let m=0;m<b.length;m++){let{at:S,value:E,easing:y}=b[m];p.push(E),T.push(Z(0,d,S)),A.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),A.unshift(ji)),T[T.length-1]!==1&&(T.push(1),p.push(null)),o.has(v)||o.set(v,{keyframes:{},transition:{}});let M=o.get(v);M.keyframes[w]=p,M.transition[w]={...t,duration:d,ease:A,times:T,...n}}}),o}function Zt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Qt(e,t){return t[e]||(t[e]=[]),t[e]}function Xi(e){return Array.isArray(e)?e:[e]}function Zi(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Qi=e=>typeof e=="number",Ji=e=>e.every(Qi);var j=(e,t,n)=>n>t?t:n<e?e:n;function Dn(e,t){return t?e*(1e3/t):0}var es=5;function Nn(e,t,n){let i=Math.max(t-es,0);return Dn(n-e(i),t-i)}var _={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},cn=.001;function ts({duration:e=_.duration,bounce:t=_.bounce,velocity:n=_.velocity,mass:i=_.mass}){let s,r;ge(e<=F(_.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=j(_.minDamping,_.maxDamping,o),e=j(_.minDuration,_.maxDuration,I(e)),o<1?(s=u=>{let c=u*o,h=c*e,d=c-n,g=ut(u,o),v=Math.exp(-h);return cn-d/g*v},r=u=>{let h=u*o*e,d=h*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-h),w=ut(Math.pow(u,2),o);return(-s(u)+cn>0?-1:1)*((d-g)*v)/w}):(s=u=>{let c=Math.exp(-u*e),h=(u-n)*e+1;return-.001+c*h},r=u=>{let c=Math.exp(-u*e),h=(n-u)*(e*e);return c*h});let a=5/e,l=is(s,r,a);if(e=F(e),isNaN(l))return{stiffness:_.stiffness,damping:_.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}var ns=12;function is(e,t,n){let i=n;for(let s=1;s<ns;s++)i=i-e(i)/t(i);return i}function ut(e,t){return e*Math.sqrt(1-t*t)}var ss=["duration","bounce"],rs=["stiffness","damping","mass"];function hn(e,t){return t.some(n=>e[n]!==void 0)}function os(e){let t={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...e};if(!hn(e,rs)&&hn(e,ss))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*j(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:_.mass,stiffness:s,damping:r}}else{let n=ts(e);t={...t,...n,mass:_.mass},t.isResolvedFromDuration=!0}return t}function yt(e=_.visualDuration,t=_.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=n,r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:g}=os({...n,velocity:-I(n.velocity||0)}),v=d||0,w=u/(2*Math.sqrt(l*c)),b=o-r,p=I(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?_.restSpeed.granular:_.restSpeed.default),s||(s=T?_.restDelta.granular:_.restDelta.default);let A;if(w<1){let m=ut(p,w);A=S=>{let E=Math.exp(-w*p*S);return o-E*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)A=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);A=S=>{let E=Math.exp(-w*p*S),y=Math.min(m*S,300);return o-E*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&h||null,next:m=>{let S=A(m);if(g)a.done=m>=h;else{let E=0;w<1&&(E=m===0?F(v):Nn(A,m,S));let y=Math.abs(E)<=i,x=Math.abs(o-S)<=s;a.done=y&&x}return a.value=a.done?o:S,a},toString:()=>{let m=Math.min(Oe(M),me),S=Xe(E=>M.next(m*E).value,m,30);return m+"ms "+S}};return M}var ne=new WeakMap,se=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],re=new Set(se),Fn=new Set(["width","height","top","left","right","bottom",...se]),as=e=>Array.isArray(e),ls=e=>as(e)?e[e.length-1]||0:e,us={skipAnimations:!1,useManualTiming:!1};function cs(e){let t=new Set,n=new Set,i=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(u){r.has(u)&&(l.schedule(u),e()),u(o)}let l={schedule:(u,c=!1,h=!1)=>{let g=h&&i?t:n;return c&&r.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),r.delete(u)},process:u=>{if(o=u,i){s=!0;return}i=!0,[t,n]=[n,t],t.forEach(a),t.clear(),i=!1,s&&(s=!1,l.process(u))}};return l}var we=["read","resolveKeyframes","update","preRender","render","postRender"],hs=40;function ds(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=we.reduce((p,T)=>(p[T]=cs(r),p),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=o,g=()=>{let p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,hs),1),s.timestamp=p,s.isProcessing=!0,a.process(s),l.process(s),u.process(s),c.process(s),h.process(s),d.process(s),s.isProcessing=!1,n&&t&&(i=!1,e(g))},v=()=>{n=!0,i=!0,s.isProcessing||e(g)};return{schedule:we.reduce((p,T)=>{let A=o[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),A.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<we.length;T++)o[we[T]].cancel(p)},state:s,steps:o}}var{schedule:G,cancel:We,state:Ke,steps:Jo}=ds(typeof requestAnimationFrame<"u"?requestAnimationFrame:R,!0),Ge;function fs(){Ge=void 0}var K={now:()=>(Ge===void 0&&K.set(Ke.isProcessing||us.useManualTiming?Ke.timestamp:performance.now()),Ge),set:e=>{Ge=e,queueMicrotask(fs)}},Ln=class{constructor(){this.subscriptions=[]}add(e){return un(this.subscriptions,e),()=>st(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,t,n);else for(let s=0;s<i;s++){let r=this.subscriptions[s];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var dn=30,ps=e=>!isNaN(parseFloat(e)),ms=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=K.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ps(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ln);let n=this.events[e].add(t);return e==="change"?()=>{n(),G.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){!t||!this.passiveEffect?this.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){let e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dn);return Dn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 Se(e,t){return new ms(e,t)}function fn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function Pn(e,t,n,i){if(typeof t=="function"){let[s,r]=fn(i);t=t(n!==void 0?n:e.custom,s,r)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[s,r]=fn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function gs(e,t,n){let i=e.getProps();return Pn(i,t,i.custom,e)}function vs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Se(n))}function ys(e,t){let n=gs(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=ls(r[o]);vs(e,o,a)}}function bs(e){return!!(D(e)&&e.add)}function ws(e,t){let n=e.getValue("willChange");if(bs(n))return n.add(t)}var bt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ts="framerAppearId",Ss="data-"+bt(Ts);function xs(e){return e.props[Ss]}var In=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cs=1e-7,Ms=12;function Es(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=In(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>Cs&&++a<Ms);return o}function Me(e,t,n,i){if(e===t&&n===i)return R;let s=r=>Es(r,0,1,e,n);return r=>r===0||r===1?r:In(s(r),t,i)}var On=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Rn=e=>t=>1-e(1-t),kn=Me(.33,1.53,.69,.99),wt=Rn(kn),Bn=On(wt),Hn=e=>(e*=2)<1?.5*wt(e):.5*(2-Math.pow(2,-10*(e-1))),Tt=e=>1-Math.sin(Math.acos(e)),_s=Rn(Tt),Gn=On(Tt),Wn=e=>/^0[^.\s]+$/u.test(e);function Vs(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wn(e):!0}var oe={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xe={...oe,transform:e=>j(0,1,e)},He={...oe,default:1},Te=e=>Math.round(e*1e5)/1e5,St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function As(e){return e==null}var Ds=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xt=(e,t)=>n=>!!(typeof n=="string"&&Ds.test(n)&&n.startsWith(e)||t&&!As(n)&&Object.prototype.hasOwnProperty.call(n,t)),Kn=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(St);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ns=e=>j(0,255,e),ot={...oe,transform:e=>Math.round(Ns(e))},z={test:xt("rgb","red"),parse:Kn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ot.transform(e)+", "+ot.transform(t)+", "+ot.transform(n)+", "+Te(xe.transform(i))+")"};function Fs(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}}var ct={test:xt("#"),parse:Fs,transform:z.transform},te={test:xt("hsl","hue"),parse:Kn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+q.transform(Te(t))+", "+q.transform(Te(n))+", "+Te(xe.transform(i))+")"},N={test:e=>z.test(e)||ct.test(e)||te.test(e),parse:e=>z.test(e)?z.parse(e):te.test(e)?te.parse(e):ct.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?z.transform(e):te.transform(e)},Ls=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ps(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(St))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ls))===null||n===void 0?void 0:n.length)||0)>0}var qn="number",$n="color",Is="var",Os="var(",pn="${}",Rs=/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 Ce(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(Rs,l=>(N.test(l)?(i.color.push(r),s.push($n),n.push(N.parse(l))):l.startsWith(Os)?(i.var.push(r),s.push(Is),n.push(l)):(i.number.push(r),s.push(qn),n.push(parseFloat(l))),++r,pn)).split(pn);return{values:n,split:a,indexes:i,types:s}}function zn(e){return Ce(e).values}function Un(e){let{split:t,types:n}=Ce(e),i=t.length;return s=>{let r="";for(let o=0;o<i;o++)if(r+=t[o],s[o]!==void 0){let a=n[o];a===qn?r+=Te(s[o]):a===$n?r+=N.transform(s[o]):r+=s[o]}return r}}var ks=e=>typeof e=="number"?0:e;function Bs(e){let t=zn(e);return Un(e)(t.map(ks))}var ae={test:Ps,parse:zn,createTransformer:Un,getAnimatableNone:Bs},Hs=new Set(["brightness","contrast","saturate","opacity"]);function Gs(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(St)||[];if(!i)return e;let s=n.replace(i,""),r=Hs.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var Ws=/\b([a-z-]*)\(.*?\)/gu,ht={...ae,getAnimatableNone:e=>{let t=e.match(Ws);return t?t.map(Gs).join(" "):e}},Ks={rotate:H,rotateX:H,rotateY:H,rotateZ:H,scale:He,scaleX:He,scaleY:He,scaleZ:He,skew:H,skewX:H,skewY:H,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:xe,originX:Je,originY:Je,originZ:f},mn={...oe,transform:Math.round},Ct={...Fe,...Ks,zIndex:mn,size:f,fillOpacity:xe,strokeOpacity:xe,numOctaves:mn},qs={...Ct,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:ht,WebkitFilter:ht},Mt=e=>qs[e];function jn(e,t){let n=Mt(e);return n!==ht&&(n=ae),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var $s=new Set(["auto","none","0"]);function zs(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!$s.has(r)&&Ce(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=jn(n,s)}var gn=e=>e===oe||e===f,vn=(e,t)=>parseFloat(e.split(", ")[t]),yn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return vn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?vn(r[1],e):0}},Us=new Set(["x","y","z"]),js=se.filter(e=>!Us.has(e));function Ys(e){let t=[];return js.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var ie={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:yn(4,13),y:yn(5,14)};ie.translateX=ie.x;ie.translateY=ie.y;var U=new Set,dt=!1,ft=!1;function Yn(){if(ft){let e=Array.from(U).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=Ys(i);s.length&&(n.set(i,s),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();let s=n.get(i);s&&s.forEach(([r,o])=>{var a;(a=i.getValue(r))===null||a===void 0||a.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ft=!1,dt=!1,U.forEach(e=>e.complete()),U.clear()}function Xn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ft=!0)})}function Xs(){Xn(),Yn()}var Et=class{constructor(e,t,n,i,s,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=s,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(U.add(this),dt||(dt=!0,G.read(Xn),G.resolveKeyframes(Yn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){let r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&t){let a=n.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),U.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,U.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Zn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Qn=e=>t=>typeof t=="string"&&t.startsWith(e),Jn=Qn("--"),Zs=Qn("var(--"),_t=e=>Zs(e)?Qs.test(e.split("/*")[0].trim()):!1,Qs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Js=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function er(e){let t=Js.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var tr=4;function ei(e,t,n=1){k(n<=tr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=er(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Zn(o)?parseFloat(o):o}return _t(s)?ei(s,t,n+1):s}var ti=e=>t=>t.test(e),nr={test:e=>e==="auto",parse:e=>e},ni=[oe,f,q,H,rn,sn,nr],bn=e=>ni.find(ti(e)),ii=class extends Et{constructor(e,t,n,i,s){super(e,t,n,i,s,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="string"&&(l=l.trim(),_t(l))){let u=ei(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Fn.has(n)||e.length!==2)return;let[i,s]=e,r=bn(i),o=bn(s);if(r!==o)if(gn(r)&&gn(o))for(let a=0;a<e.length;a++){let l=e[a];typeof l=="string"&&(e[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)Vs(e[i])&&n.push(i);n.length&&zs(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ie[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let s=t.getValue(n);s&&s.jump(this.measuredOrigin,!1);let r=i.length-1,o=i[r];i[r]=ie[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}},wn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ae.test(e)||e==="0")&&!e.startsWith("url("));function ir(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function sr(e,t,n,i){let s=e[0];if(s===null)return!1;if(t==="display"||t==="visibility")return!0;let r=e[e.length-1],o=wn(s,t),a=wn(r,t);return ge(o===a,`You are trying to animate ${t} from "${s}" to "${r}". ${s} is not an animatable value - to enable this animation set ${s} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:ir(e)||(n==="spring"||Q(n))&&i}var rr=40,si=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:r="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=K.now(),this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:s,repeatType:r,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>rr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Xs(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=K.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!sr(e,n,i,s))if(r)this.options.duration=0;else{a?.(J(e,this.options,t)),o?.(),this.resolveFinishedPromise();return}let u=this.initPlayback(e,t);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}};function at(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function or({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let s=0,r=0,o=0;if(!t)s=r=o=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;s=at(l,a,e+1/3),r=at(l,a,e),o=at(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function qe(e,t){return n=>n>0?t:e}var lt=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},ar=[ct,z,te],lr=e=>ar.find(t=>t.test(e));function Tn(e){let t=lr(e);if(ge(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===te&&(n=or(n)),n}var Sn=(e,t)=>{let n=Tn(e),i=Tn(t);if(!n||!i)return qe(e,t);let s={...n};return r=>(s.red=lt(n.red,i.red,r),s.green=lt(n.green,i.green,r),s.blue=lt(n.blue,i.blue,r),s.alpha=ee(n.alpha,i.alpha,r),z.transform(s))},ur=(e,t)=>n=>t(e(n)),Vt=(...e)=>e.reduce(ur),pt=new Set(["none","hidden"]);function cr(e,t){return pt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function hr(e,t){return n=>ee(e,t,n)}function At(e){return typeof e=="number"?hr:typeof e=="string"?_t(e)?qe:N.test(e)?Sn:pr:Array.isArray(e)?ri:typeof e=="object"?N.test(e)?Sn:dr:qe}function ri(e,t){let n=[...e],i=n.length,s=e.map((r,o)=>At(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function dr(e,t){let n={...e,...t},i={};for(let s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=At(e[s])(e[s],t[s]));return s=>{for(let r in i)n[r]=i[r](s);return n}}function fr(e,t){var n;let i=[],s={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){let o=t.types[r],a=e.indexes[o][s[o]],l=(n=e.values[a])!==null&&n!==void 0?n:0;i[r]=l,s[o]++}return i}var pr=(e,t)=>{let n=ae.createTransformer(t),i=Ce(e),s=Ce(t);return i.indexes.var.length===s.indexes.var.length&&i.indexes.color.length===s.indexes.color.length&&i.indexes.number.length>=s.indexes.number.length?pt.has(e)&&!s.values.length||pt.has(t)&&!i.values.length?cr(e,t):Vt(ri(fr(i,s),s.values),n):(ge(!0,`Complex values '${e}' and '${t}' 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.`),qe(e,t))};function oi(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ee(e,t,n):At(e)(e,t)}function xn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h=e[0],d={done:!1,value:h},g=y=>a!==void 0&&y<a||l!==void 0&&y>l,v=y=>a===void 0?l:l===void 0||Math.abs(a-y)<Math.abs(l-y)?a:l,w=n*t,b=h+w,p=o===void 0?b:o(b);p!==b&&(w=p-h);let T=y=>-w*Math.exp(-y/i),A=y=>p+T(y),M=y=>{let x=T(y),Y=A(y);d.done=Math.abs(x)<=u,d.value=d.done?p:Y},m,S,E=y=>{g(d.value)&&(m=y,S=yt({keyframes:[d.value,v(d.value)],velocity:Nn(A,y,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:y=>{let x=!1;return!S&&m===void 0&&(x=!0,M(y),E(y)),m!==void 0&&y>=m?S.next(y-m):(!x&&M(y),d)}}}var mr=Me(.42,0,1,1),gr=Me(0,0,.58,1),ai=Me(.42,0,.58,1),Cn={linear:R,easeIn:mr,easeInOut:ai,easeOut:gr,circIn:Tt,circInOut:Gn,circOut:_s,backIn:wt,backInOut:Bn,backOut:kn,anticipate:Hn},mt=e=>{if(ke(e)){k(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return Me(t,n,i,s)}else if(typeof e=="string")return k(Cn[e]!==void 0,`Invalid easing type '${e}'`),Cn[e];return e};function vr(e,t,n){let i=[],s=n||oi,r=e.length-1;for(let o=0;o<r;o++){let a=s(e[o],e[o+1]);if(t){let l=Array.isArray(t)?t[o]||R:t;a=Vt(l,a)}i.push(a)}return i}function yr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let r=e.length;if(k(r===t.length,"Both input and output ranges must be the same length"),r===1)return()=>t[0];if(r===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=vr(t,i,s),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(c<e[h+1]);h++);let d=Z(e[h],e[h+1],c);return a[h](d)};return n?c=>u(j(e[0],e[r-1],c)):u}function br(e,t){return e.map(n=>n*t)}function wr(e,t){return e.map(()=>t||ai).splice(0,e.length-1)}function $e({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=tt(i)?i.map(mt):mt(i),r={done:!1,value:t[0]},o=br(n&&n.length===t.length?n:nt(t),e),a=yr(o,t,{ease:Array.isArray(s)?s:wr(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var Tr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>We(t),now:()=>Ke.isProcessing?Ke.timestamp:K.now()}},Sr={decay:xn,inertia:xn,tween:$e,keyframes:$e,spring:yt},xr=e=>e/100,Dt=class extends si{constructor(e){super(e),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,this.state==="idle")return;this.teardown();let{onStop:a}=this.options;a&&a()};let{name:t,motionValue:n,element:i,keyframes:s}=this.options,r=i?.KeyframeResolver||Et,o=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new r(s,o,t,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:s,velocity:r=0}=this.options,o=Q(t)?t:Sr[t]||$e,a,l;o!==$e&&typeof e[0]!="number"&&(a=Vt(xr,oi(e[0],e[1])),e=[0,100]);let u=o({...this.options,keyframes:e});s==="mirror"&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=Oe(u));let{calculatedDuration:c}=u,h=c+i,d=h*(n+1)-i;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:h,totalDuration:d}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}let{finalKeyframe:i,generator:s,mirroredGenerator:r,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(this.startTime===null)return s.next(0);let{delay:h,repeat:d,repeatType:g,repeatDelay:v,onUpdate:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let b=this.currentTime-h*(this.speed>=0?1:-1),p=this.speed>=0?b<0:b>u;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,A=s;if(d){let E=Math.min(this.currentTime,u)/c,y=Math.floor(E),x=E%1;!x&&E>=1&&(x=1),x===1&&y--,y=Math.min(y,d+1),!!(y%2)&&(g==="reverse"?(x=1-x,v&&(x-=v/c)):g==="mirror"&&(A=r)),T=j(0,1,x)*c}let M=p?{done:!1,value:a[0]}:A.next(T);o&&(M.value=o(M.value));let{done:m}=M;!p&&l!==null&&(m=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&m);return S&&i!==void 0&&(M.value=J(a,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=F(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=Tr,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(s=>this.tick(s))),t&&t();let i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&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(e){return this.startTime=0,this.tick(e,!0)}},Cr=new Set(["opacity","clipPath","filter","transform"]),ze=10,Mr=2e4;function Er(e){return Q(e.type)||e.type==="spring"||!Ze(e.ease)}function _r(e,t){let n=new Dt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},s=[],r=0;for(;!i.done&&r<Mr;)i=n.sample(r),s.push(i.value),r+=ze;return{times:void 0,keyframes:s,duration:r-ze,ease:"linear"}}var li={anticipate:Hn,backInOut:Bn,circInOut:Gn};function Vr(e){return e in li}var Mn=class extends si{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ii(s,(r,o)=>this.onKeyframesResolved(r,o),t,n,i),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:i=300,times:s,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(typeof r=="string"&&X()&&Vr(r)&&(r=li[r]),Er(this.options)){let{onComplete:h,onUpdate:d,motionValue:g,element:v,...w}=this.options,b=_r(e,w);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,s=b.times,r=b.ease,o="keyframes"}let c=Qe(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Re(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:h}=this.options;a.set(J(e,this.options,t)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:o,ease:r,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return I(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return I(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=F(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return R;let{animation:n}=t;Re(n,e)}return R}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:s,ease:r,times:o}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:u,onComplete:c,element:h,...d}=this.options,g=new Dt({...d,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=F(this.time);l.setWithVelocity(g.sample(v-ze).value,g.sample(v).value,ze)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:s,damping:r,type:o}=e;return et()&&n&&Cr.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Ar={type:"spring",stiffness:500,damping:25,restSpeed:10},Dr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Nr={type:"keyframes",duration:.8},Fr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Lr=(e,{keyframes:t})=>t.length>2?Nr:re.has(e)?e.startsWith("scale")?Dr(t[1]):Ar:Fr;function Pr({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}var ui=(e,t,n,i={},s,r)=>o=>{let a=Pe(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u=u-F(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:r?void 0:s};Pr(a)||(c={...c,...Lr(e,c)}),c.duration&&(c.duration=F(c.duration)),c.repeatDelay&&(c.repeatDelay=F(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(h=!0)),h&&!r&&t.get()!==void 0){let d=J(c.keyframes,a);if(d!==void 0)return G.update(()=>{c.onUpdate(d),c.onComplete()}),new ve([])}return!r&&Mn.supports(c)?new Mn(c):new Dt(c)};function Ir({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Or(e,t,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(o=i);let u=[],c=s&&e.animationState&&e.animationState.getState()[s];for(let h in l){let d=e.getValue(h,(r=e.latestValues[h])!==null&&r!==void 0?r:null),g=l[h];if(g===void 0||c&&Ir(c,h))continue;let v={delay:n,...Pe(o||{},h)},w=!1;if(window.MotionHandoffAnimation){let p=xs(e);if(p){let T=window.MotionHandoffAnimation(p,h,G);T!==null&&(v.startTime=T,w=!0)}}ws(e,h),d.start(ui(h,d,g,e.shouldReduceMotion&&Fn.has(h)?{type:!1}:v,e,w));let b=d.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{G.update(()=>{a&&ys(e,a)})}),u}function Rr(e){return e instanceof SVGElement&&e.tagName!=="svg"}var En=()=>({min:0,max:0}),Nt=()=>({x:En(),y:En()}),_n={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"]},gt={};for(let e in _n)gt[e]={isEnabled:t=>_n[e].some(n=>!!t[n])};var kr=typeof window<"u",vt={current:null},ci={current:!1};function Br(){if(ci.current=!0,!!kr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vt.current=e.matches;e.addListener(t),t()}else vt.current=!1}var Hr=[...ni,N,ae],Gr=e=>Hr.find(ti(e));function Wr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Kr(e){return typeof e=="string"||Array.isArray(e)}var qr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$r=["initial",...qr];function hi(e){return Wr(e.animate)||$r.some(t=>Kr(e[t]))}function zr(e){return!!(hi(e)||e.variants)}function Ur(e,t,n){for(let i in t){let s=t[i],r=n[i];if(D(s))e.addValue(i,s);else if(D(r))e.addValue(i,Se(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){let o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{let o=e.getStaticValue(i);e.addValue(i,Se(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Vn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],di=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:s,visualState:r},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Et,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 d=K.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,G.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=r;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!s,this.isControllingVariants=hi(t),this.isVariantNode=zr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let d in h){let g=h[d];a[d]!==void 0&&D(g)&&g.set(a[d],!1)}}mount(e){this.current=e,ne.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,n)=>this.bindToMotionValue(n,t)),ci.current||Br(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ne.delete(this.current),this.projection&&this.projection.unmount(),We(this.notifyUpdate),We(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=re.has(e),i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender),r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),s(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in gt){let t=gt[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Vn.length;n++){let i=Vn[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s="on"+i,r=e[s];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Ur(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Se(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Zn(i)||Wn(i))?i=parseFloat(i):!Gr(i)&&ae.test(t)&&(i=jn(e,t)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i;if(typeof n=="string"||typeof n=="object"){let r=Pn(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;let s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!D(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ln),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},fi=class extends di{constructor(){super(...arguments),this.KeyframeResolver=ii}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},pi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,jr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yr=se.length;function Xr(e,t,n){let i="",s=!0;for(let r=0;r<Yr;r++){let o=se[r],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(o.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){let u=pi(a,Ct[o]);if(!l){s=!1;let c=jr[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function mi(e,t,n){let{style:i,vars:s,transformOrigin:r}=e,o=!1,a=!1;for(let l in t){let u=t[l];if(re.has(l)){o=!0;continue}else if(Jn(l)){s[l]=u;continue}else{let c=pi(u,Ct[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=Xr(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:l="50%",originY:u="50%",originZ:c=0}=r;i.transformOrigin=`${l} ${u} ${c}`}}function An(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function Zr(e,t,n){let i=An(t,e.x,e.width),s=An(n,e.y,e.height);return`${i} ${s}`}var Qr={offset:"stroke-dashoffset",array:"stroke-dasharray"},Jr={offset:"strokeDashoffset",array:"strokeDasharray"};function eo(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?Qr:Jr;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function to(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(mi(e,u,h),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:g,dimensions:v}=e;d.transform&&(v&&(g.transform=d.transform),delete d.transform),v&&(s!==void 0||r!==void 0||g.transform)&&(g.transformOrigin=Zr(v,s!==void 0?s:.5,r!==void 0?r:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),i!==void 0&&(d.scale=i),o!==void 0&&eo(d,o,a,l,!1)}var gi=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"]),no=e=>typeof e=="string"&&e.toLowerCase()==="svg";function vi(e,{style:t,vars:n},i,s){Object.assign(e.style,t,s&&s.getProjectionStyles(i));for(let r in n)e.style.setProperty(r,n[r])}function io(e,t,n,i){vi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(gi.has(s)?s:bt(s),t.attrs[s])}var so={};function ro(e,{layout:t,layoutId:n}){return re.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!so[e]||e==="opacity")}function yi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(D(s[o])||t.style&&D(t.style[o])||ro(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function oo(e,t,n){let i=yi(e,t,n);for(let s in e)if(D(e[s])||D(t[s])){let r=se.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var ao=class extends fi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(re.has(t)){let n=Mt(t);return n&&n.default||0}return t=gi.has(t)?t:bt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return oo(e,t,n)}build(e,t,n){to(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){io(e,t,n,i)}mount(e){this.isSVGTag=no(e.tagName),super.mount(e)}};function lo({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function uo(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function co(e,t){return lo(uo(e.getBoundingClientRect(),t))}function ho(e){return window.getComputedStyle(e)}var fo=class extends fi{constructor(){super(...arguments),this.type="html",this.renderInstance=vi}readValueFromInstance(e,t){if(re.has(t)){let n=Mt(t);return n&&n.default||0}else{let n=ho(e),i=(Jn(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return co(e,t)}build(e,t,n){mi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return yi(e,t,n)}};function po(e,t){return e in t}var mo=class extends di{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(po(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Nt()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function go(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Rr(e)?new ao(t):new fo(t);n.mount(e),ne.set(e,n)}function vo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new mo(t);n.mount(e),ne.set(e,n)}function yo(e,t,n){let i=D(e)?e:Se(e);return i.start(ui("",i,t,n)),i.animation}function bo(e,t){return D(e)||typeof e=="number"||typeof e=="string"&&!Be(t)}function bi(e,t,n,i){let s=[];if(bo(e,t))s.push(yo(e,Be(t)&&t.default||t,n&&(n.default||n)));else{let r=it(e,t,i),o=r.length;k(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let l=r[a],u=l instanceof Element?go:vo;ne.has(l)||u(l);let c=ne.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Or(c,{...t,transition:h},{}))}}return s}function wo(e,t,n){let i=[];return rt(e,t,n,{spring:yt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...bi(a,r,o))}),i}function To(e){return Array.isArray(e)&&e.some(Array.isArray)}function So(e){function t(n,i,s){let r=[];To(n)?r=wo(n,i,e):r=bi(n,i,s,e);let o=new ve(r);return e&&e.animations.push(o),o}return t}var ea=So();var xo={some:0,all:1};function wi(e,t,{root:n,margin:i,amount:s="some"}={}){let r=Ie(e),o=new WeakMap,a=u=>{u.forEach(c=>{let h=o.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){let d=t(c);typeof d=="function"?o.set(c.target,d):l.unobserve(c.target)}else typeof h=="function"&&(h(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:xo[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function Co(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function Ft(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(s,r)=>{let o=typeof n=="number"?n:Co(n,r),a=Math.abs(o-s),l=e*a;if(i){let u=r*e;l=mt(i)(l/u)*u}return t+l}}var ta=we.reduce((e,t)=>(e[t]=n=>We(n),e),{});var Mo=Symbol.for("preact-signals");function Pt(){if(le>1)le--;else{for(var e,t=!1;Ee!==void 0;){var n=Ee;for(Ee=void 0,Lt++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&xi(n))try{n.c()}catch(s){t||(e=s,t=!0)}n=i}}if(Lt=0,le--,t)throw e}}var C=void 0;var Ee=void 0,le=0,Lt=0,Ue=0;function Ti(e){if(C!==void 0){var t=e.n;if(t===void 0||t.t!==C)return t={i:0,S:e,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:t},C.s!==void 0&&(C.s.n=t),C.s=t,e.n=t,32&C.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=C.s,t.n=void 0,C.s.n=t,C.s=t),t}}function L(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}L.prototype.brand=Mo;L.prototype.h=function(){return!0};L.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};L.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};L.prototype.subscribe=function(e){var t=this;return _o(function(){var n=t.value,i=C;C=void 0;try{e(n)}finally{C=i}})};L.prototype.valueOf=function(){return this.value};L.prototype.toString=function(){return this.value+""};L.prototype.toJSON=function(){return this.value};L.prototype.peek=function(){var e=C;C=void 0;try{return this.value}finally{C=e}};Object.defineProperty(L.prototype,"value",{get:function(){var e=Ti(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Lt>100)throw new Error("Cycle detected");this.v=e,this.i++,Ue++,le++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pt()}}}});function Si(e){return new L(e)}function xi(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ci(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Mi(e){for(var t=e.s,n=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):n=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=n}function _e(e){L.call(this,void 0),this.x=e,this.s=void 0,this.g=Ue-1,this.f=4}(_e.prototype=new L).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ue))return!0;if(this.g=Ue,this.f|=1,this.i>0&&!xi(this))return this.f&=-2,!0;var e=C;try{Ci(this),C=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return C=e,Mi(this),this.f&=-2,!0};_e.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}L.prototype.S.call(this,e)};_e.prototype.U=function(e){if(this.t!==void 0&&(L.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};_e.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(_e.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ti(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ei(e){var t=e.u;if(e.u=void 0,typeof t=="function"){le++;var n=C;C=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,It(e),i}finally{C=n,Pt()}}}function It(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ei(e)}function Eo(e){if(C!==this)throw new Error("Out-of-order effect");Mi(this),C=e,this.f&=-2,8&this.f&&It(this),Pt()}function Ve(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ve.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Ve.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ei(this),Ci(this),le++;var e=C;return C=this,Eo.bind(this,e)};Ve.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ee,Ee=this)};Ve.prototype.d=function(){this.f|=8,1&this.f||It(this)};function _o(e){var t=new Ve(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var _i=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},V=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Vo=".NDGMNT__FloatingFixedButton__floating-menu",Ao=".NDGMNT__FloatingFixedButton__trigger-button",Do='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users-round"><path d="M18 21a8 8 0 0 0-16 0"/><circle cx="10" cy="8" r="5"/><path d="M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3"/></svg>',No={naver:'<svg width="289" height="291" viewBox="0 0 289 291" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M247.979 34.7843V183.205C247.979 195.764 237.784 205.968 225.238 205.968H86.8376C83.8876 205.968 57.8875 206.368 46.775 219.818L40.3709 226.401L28.9917 238.093L16.2875 251.147C15.325 251.714 13.8 252.393 12.8042 252.393L12.6667 252.414C12.6583 252.405 11.3792 251.18 11.3792 245.534V34.7843C11.3792 22.2259 21.5834 12.0218 34.1417 12.0218H225.238C235.188 12.0218 243.567 18.4759 246.65 27.3926C247.459 29.7259 247.979 32.1843 247.979 34.7843ZM278.817 38.1176L278.859 38.0468L250.175 11.6093C243.95 4.90091 235.096 0.642578 225.238 0.642578H34.1417C15.325 0.642578 0 15.9509 0 34.7843V245.534C0 251.393 1.07917 255.755 3.26667 258.859C4.03334 259.951 4.9375 260.872 5.9625 261.609L33.3917 286.884C33.8292 287.347 34.2792 287.768 34.7584 288.143L34.9917 288.368L35.025 288.33C35.4792 288.651 35.9167 289.009 36.4 289.268C38.0209 290.093 39.8375 290.534 41.7959 290.534C46.8875 290.534 51.3334 287.576 52.175 286.984L84.2376 254.18C91.0334 245.959 109.325 244.13 115.821 244.114H254.225C273.046 244.114 288.359 228.797 288.359 209.976V61.5343C288.359 52.4093 284.7 44.2093 278.817 38.1176Z" fill="white"/><path d="M75.1167 71.9814C65.7084 71.9814 58.1125 79.6022 58.1125 88.9939V124.715C58.1125 134.111 65.7084 141.719 75.1167 141.719C84.5001 141.719 92.1251 134.111 92.1251 124.715V88.9939C92.1251 79.6022 84.5001 71.9814 75.1167 71.9814Z" fill="white"/><path d="M181.058 71.9814C171.663 71.9814 164.038 79.6022 164.038 88.9939V124.715C164.038 134.111 171.663 141.719 181.058 141.719C190.446 141.719 198.054 134.111 198.054 124.715V88.9939C198.054 79.6022 190.446 71.9814 181.058 71.9814Z" fill="white"/></svg>',kakao:'<svg width="18" height="17" viewBox="0 0 18 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.00002 0.0999756C4.02917 0.0999756 0 3.21293 0 7.05226C0 9.44 1.5584 11.5449 3.93152 12.7969L2.93303 16.4445C2.84481 16.7668 3.21341 17.0237 3.49646 16.8369L7.87334 13.9482C8.2427 13.9838 8.61808 14.0046 9.00002 14.0046C13.9705 14.0046 17.9999 10.8918 17.9999 7.05226C17.9999 3.21293 13.9705 0.0999756 9.00002 0.0999756Z" fill="black"/></svg>',youtube:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-youtube"><path d="M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17"/><path d="m10 15 5-3-5-3z"/></svg>',instagram:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-instagram"><rect width="20" height="20" x="2" y="2" rx="5" ry="5"/><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"/><line x1="17.5" x2="17.51" y1="6.5" y2="6.5"/></svg>',thread:`<svg width="413" height="480" viewBox="0 0 413 480" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M321.342 222.471C319.275 221.48 317.175 220.526 315.047 219.613C311.342 151.346 274.04 112.262 211.405 111.862C211.121 111.861 210.839 111.861 210.555 111.861C173.091 111.861 141.933 127.852 122.755 156.952L157.202 180.582C171.529 158.846 194.013 154.212 210.572 154.212C210.763 154.212 210.955 154.212 211.144 154.214C231.768 154.345 247.33 160.342 257.402 172.035C264.732 180.548 269.635 192.312 272.062 207.16C253.777 204.052 234.002 203.096 212.862 204.308C153.312 207.738 115.028 242.47 117.599 290.73C118.904 315.21 131.099 336.27 151.938 350.027C169.556 361.658 192.247 367.345 215.831 366.057C246.975 364.35 271.408 352.467 288.452 330.74C301.397 314.24 309.585 292.857 313.2 265.915C328.043 274.872 339.042 286.66 345.117 300.83C355.447 324.918 356.05 364.5 323.753 396.77C295.455 425.04 261.44 437.27 210.034 437.648C153.01 437.225 109.884 418.938 81.8452 383.293C55.5887 349.915 42.0192 301.705 41.513 240C42.0192 178.294 55.5887 130.084 81.8452 96.7068C109.884 61.0623 153.01 42.775 210.033 42.3512C267.47 42.7783 311.348 61.1535 340.46 96.97C354.735 114.534 365.497 136.622 372.592 162.376L412.96 151.605C404.36 119.906 390.827 92.5892 372.412 69.935C335.09 24.0167 280.505 0.48787 210.174 0H209.892C139.704 0.486175 85.7302 24.1045 49.4707 70.1982C17.2048 111.216 0.561 168.289 0.00174999 239.831L0 240L0.00174999 240.169C0.561 311.71 17.2048 368.785 49.4707 409.803C85.7302 455.895 139.704 479.515 209.892 480H210.174C272.575 479.568 316.56 463.23 352.795 427.028C400.202 379.665 398.775 320.298 383.15 283.853C371.94 257.717 350.568 236.49 321.342 222.471ZM213.601 323.768C187.501 325.238 160.386 313.522 159.049 288.43C158.058 269.825 172.29 249.065 215.203 246.592C220.117 246.309 224.94 246.17 229.678 246.17C245.265 246.17 259.848 247.684 273.105 250.583C268.16 312.337 239.155 322.365 213.601 323.768Z" fill="white"/></svg>
|
12
12
|
`},Fo={naver:{backgroundColor:"#03C75A",borderColor:"#03C75A"},kakao:{backgroundColor:"#FAE100",borderColor:"#FAE100"},youtube:{backgroundColor:"#ff0000",borderColor:"#ff0000"},instagram:{backgroundColor:"transparent",borderColor:"",backgroundImage:"linear-gradient(45deg, #833AB4 0%, #FD1D1D 50%, #F77737 100%)"},thread:{backgroundColor:"#121212",borderColor:"#121212"}},Ot=class{constructor(t){P(this,"container");P(this,"menu");P(this,"trigger");P(this,"options");P(this,"isOpenSignal",Si(!1));let n=t.containerSelector??Vi,i=t.triggerContent??Do;this.options={containerSelector:n,triggerContent:i,snsConfigs:t.snsConfigs},this.container=document.querySelector(n),this.menu=this.container.querySelector(Vo),this.trigger=this.container.querySelector(Ao),this.isOpenSignal.subscribe(s=>{s?this.handleOpen():this.handleClose()}),typeof this.options.triggerContent=="string"?this.trigger.innerHTML=this.options.triggerContent:this.options.triggerContent instanceof HTMLElement&&this.trigger.appendChild(this.options.triggerContent),this.initialize()}initialize(){this.menu.innerHTML="",this.options.snsConfigs.forEach(t=>{let n=document.createElement("li"),i=document.createElement("button");i.innerHTML=No[t.sns];let s=Fo[t.sns];i.style.borderColor=s.borderColor,i.style.backgroundColor=s.backgroundColor,i.style.backgroundImage=s.backgroundImage??"",i.style.color=t.sns==="kakao"?"#000000":"#FFFFFF",i.dataset.hoverBg=s.backgroundColor||"",n.appendChild(i),this.menu.appendChild(n),i.addEventListener("click",()=>{window.open(t.link,"_blank"),this.isOpenSignal.value=!1})}),this.trigger.addEventListener("click",()=>this.toggle()),document.addEventListener("click",t=>this.handleClickOutside(t)),setTimeout(()=>{$(Vi).addClass("visible")},800)}toggle(){this.isOpenSignal.value=!this.isOpenSignal.value}handleOpen(){this.menu.setAttribute("data-visible","true");let t=this.menu.querySelectorAll("li");t.length>0&&be(t,{opacity:1,transform:"translateY(0)"},{delay:Ft(.1,{from:"last"}),duration:.3,ease:"easeInOut"})}handleClose(){let t=this.menu.querySelectorAll("li");t.length>0?be(t,{opacity:0,transform:"translateY(5px)"},{delay:Ft(.1,{from:"first"}),duration:.3,ease:"easeInOut",onComplete:()=>{this.menu.setAttribute("data-visible","false")}}):this.menu.setAttribute("data-visible","false")}handleClickOutside(t){this.container.contains(t.target)||(this.isOpenSignal.value=!1)}};V(()=>{_i({FloatingFixedButton:Ot}),window.NudgeMoment.net.emit("template__FloatingFixedButton")});function Lo(){let e=document.createElement("div");e.className="NDGMNT__header__scroll-progress";let t=$("#inline_header_mobile").is(":visible"),n=document.querySelector(t?"#inline_header_mobile":"#inline_header_normal");if(!n)throw new Error("[NDGMNT] header element \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");n.appendChild(e);function i(){let s=window.scrollY,r=document.documentElement.scrollHeight-window.innerHeight,o=s/r;s>100?e.classList.add("visible"):e.classList.remove("visible"),e.style.transform=`scaleX(${o})`}window.addEventListener("scroll",i)}V(()=>{Lo()});var ue={IMWEB_SLIDE_MENU_WRAP:"#mobile_slide_menu_wrap",IMWEB_SLIDE_MENU:"#mobile_slide_menu",MOBILE_MENU_DIMMED:"NDGMNT__mobile-top-nav__dimmed",MOBILE_MENU_CONTAINER:"NDGMNT__mobile-top-nav__container",MOBILE_MENU_LIST:"NDGMNT__mobile-top-nav__list"};function Po(){let e=document.querySelector(ue.IMWEB_SLIDE_MENU_WRAP);if(!e)throw new Error(`${ue.IMWEB_SLIDE_MENU_WRAP} \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`);let t=e.classList.contains("slide_open"),n=document.createElement("div");n.className=ue.MOBILE_MENU_DIMMED;let i=document.createElement("div");i.className=ue.MOBILE_MENU_CONTAINER;let s=document.createElement("ul");s.className=ue.MOBILE_MENU_LIST,document.querySelectorAll(`${ue.IMWEB_SLIDE_MENU} li[data-code]`).forEach(a=>{let l=a.cloneNode(!0);s.appendChild(l)}),i.appendChild(s),document.body.appendChild(n),document.body.appendChild(i),new MutationObserver(a=>{let l=e.classList.contains("slide_open");l!==t&&(l?(n.classList.add("visible"),setTimeout(()=>{n.classList.add("active"),i.classList.add("open")},10)):(n.classList.remove("active"),i.classList.remove("open"),document.body.style.overflowY="initial",setTimeout(()=>{n.classList.remove("visible")},300)),t=l)}).observe(e,{attributes:!0,attributeFilter:["class"]}),n.addEventListener("click",()=>{e.classList.remove("slide_open")})}V(()=>{$("#mobile_slide_menu_wrap").css("display","none"),Po()});var Io={TYPING_TEXT:".NDGMNT-home__hero-section__typing-text"},Rt=class{constructor(t,n={}){P(this,"element");P(this,"originalText");P(this,"duration");P(this,"delay");P(this,"started");this.element=t,this.originalText=t.textContent,this.duration=n.duration||100,this.delay=parseInt(t.dataset.delay||String(n.delay||0)),this.element.textContent="",this.started=!1,this.init()}init(){wi(this.element,t=>{t.isIntersecting&&!this.started&&setTimeout(()=>{this.element.style.position="static",this.element.style.opacity="1",this.startTyping()},this.delay)},{amount:.1})}startTyping(){this.started=!0;let t=0,n=setInterval(()=>{t<this.originalText.length?(this.element.textContent=this.originalText.substring(0,t+1),t++):clearInterval(n)},this.duration)}};V(()=>{document.querySelectorAll(Io.TYPING_TEXT).forEach(e=>{new Rt(e,{duration:200,delay:0})})});var kt=class{constructor(t,n={}){this.container=t,this.beforeImage=t.querySelector("#before-image"),this.afterImage=t.querySelector("#after-image"),this.slider=t.querySelector("#slider"),this.isDragging=!1,this.enableHover=n.enableHover||!1,this.position=50,this.init(),this.toastTimeout=null,this.createToast()}init(){let t=()=>{this.beforeImage.style.clipPath=`inset(0 0 0 ${this.position}%)`,this.afterImage.style.clipPath=`inset(0 ${100-this.position}% 0 0)`,this.slider.style.left=`${this.position}%`;let s=document.querySelector(".NDGMNT-home__hero-section__tooltip-container");console.log("_tooltipEl",s),s&&s.style.display!=="none"&&(s.style.display="none");let r=document.querySelector(".hero-diff-frame");this.position===50?r.style.borderColor="white":this.position<50?(r.style.borderColor="#ff0054",this.showToast("Bad","bad")):(r.style.borderColor="#33ca7f",this.showToast("Good","good"))},n=s=>{if(!this.isDragging&&!this.enableHover)return;let r=this.container.getBoundingClientRect(),o="touches"in s?s.touches[0].clientX-r.left:s.clientX-r.left;this.position=Math.min(Math.max(o/r.width*100,0),100),t()};this.container.addEventListener("mousemove",n),this.container.addEventListener("touchmove",n),this.container.addEventListener("mousedown",()=>{this.enableHover||(this.isDragging=!0)}),this.container.addEventListener("touchstart",()=>{this.enableHover||(this.isDragging=!0)});let i=()=>{this.enableHover||(this.isDragging=!1)};this.container.addEventListener("mouseup",i),this.container.addEventListener("mouseleave",i),this.container.addEventListener("touchend",i),t(),this.container.style.opacity="100%"}createToast(){let t=document.createElement("div");t.style.cssText=`
|
13
13
|
position: absolute;
|
14
14
|
top: -50px;
|
@@ -47,4 +47,8 @@
|
|
47
47
|
</div>
|
48
48
|
`,n=document.querySelector(`.${e}`);if(n){let s=function(){let r=n.querySelector(".NDGMNT__mobile-hero-section__tooltip-wrapper");r.classList.remove("NDGMNT__mobile-hero-section__tooltip--bounce"),setTimeout(()=>{r.classList.add("NDGMNT__mobile-hero-section__tooltip--bounce")},100)};var i=s;n.style.position="relative",n.insertAdjacentHTML("beforeend",t),setInterval(s,1e4)}}V(()=>{Ro()});var Ht=class{constructor(t={}){this.text=t.text||"Default text for animation",this.container=document.getElementById("text-content"),this.words=this.text.split(""),this.init(),this.setupScrollHandler()}init(){let t=this.text.split(`
|
49
49
|
`);this.totalCharCount=0,t.forEach((n,i)=>{let s=Array.from(n);this.totalCharCount+=s.length;let r=document.createElement("span");r.className="word-container";let o=document.createElement("span");o.className="word-shadow";let a=document.createElement("span");a.className="word-reveal",s.forEach((l,u)=>{let c=document.createElement("span");c.textContent=l,c.style.opacity="0",c.dataset.index=String(this.totalCharCount-s.length+u),a.appendChild(c);let h=document.createElement("span");h.textContent=l,o.appendChild(h)}),r.appendChild(o),r.appendChild(a),this.container.appendChild(r),i<t.length-1&&this.container.appendChild(document.createElement("br"))})}setupScrollHandler(){window.addEventListener("scroll",()=>{requestAnimationFrame(()=>this.handleScroll())})}handleScroll(){let n=document.getElementById("text-reveal-container").getBoundingClientRect(),i=window.innerHeight/2,s=n.top+n.height/2,r=Math.max(0,Math.min(1,(i-s)/(i/2)));document.querySelectorAll(".word-reveal span").forEach(a=>{let u=parseInt(a.dataset.index)/this.totalCharCount,c=this.totalCharCount/2,h=Math.max(0,Math.min(1,(r-u)*c));Motion.animate(a,{opacity:h},{duration:.4,easing:"ease-out"})})}};V(()=>{new Ht({text:`\uACE0\uAC1D\uC758 \uC2DC\uC120\uC774 \uBA38\uBB34\uB294 \uD648\uD398\uC774\uC9C0 \uC81C\uC791\uC744 \uC704\uD574
|
50
|
-
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})});var Gt=class{constructor(t={}){this.width=t.width||300,this.height=t.height||300,this.minScratchPercentage=t.minScratchPercentage||50,this.gradientColors=t.gradientColors||["#A97CF8","#F38CB8","#FDCC92"],this.onComplete=t.onComplete||(()=>{}),this.canvas=document.getElementById("scratch-canvas"),this.container=document.getElementById("scratch-container"),this.ctx=this.canvas.getContext("2d"),this.isScratching=!1,this.isComplete=!1,this.onComplete=()=>{content.style.filter="blur(0)",content.style.color="rgba(0,0,0,1)",content.style.zIndex="10",t.onComplete&&t.onComplete()},this.init(),this.setupEventListeners()}init(){this.canvas.width=this.width,this.canvas.height=this.height,this.container.style.width=`${this.width}px`,this.container.style.height=`${this.height}px`,this.ctx.fillStyle="#ccc",this.ctx.fillRect(0,0,this.width,this.height);let t=this.ctx.createLinearGradient(0,0,this.width,this.height);t.addColorStop(0,this.gradientColors[0]),t.addColorStop(.5,this.gradientColors[1]),t.addColorStop(1,this.gradientColors[2]),this.ctx.fillStyle=t,this.ctx.fillRect(0,0,this.width,this.height),document.querySelector("#content").style.visibility="visible"}setupEventListeners(){this.canvas.addEventListener("mousedown",()=>this.isScratching=!0),this.canvas.addEventListener("touchstart",t=>{this.isScratching=!0,t.preventDefault()}),document.addEventListener("mousemove",t=>this.handleScratch(t)),document.addEventListener("touchmove",t=>this.handleScratch(t.touches[0])),document.addEventListener("mouseup",()=>this.handleScratchEnd()),document.addEventListener("touchend",()=>this.handleScratchEnd()),document.addEventListener("touchcancel",()=>this.handleScratchEnd())}handleScratch(t){if(!this.isScratching)return;let n=this.canvas.getBoundingClientRect(),i=t.clientX-n.left+16,s=t.clientY-n.top+16;this.ctx.globalCompositeOperation="destination-out",this.ctx.beginPath(),this.ctx.arc(i,s,30,0,Math.PI*2),this.ctx.fill()}handleScratchEnd(){this.isScratching&&(this.isScratching=!1,this.checkCompletion())}checkCompletion(){if(this.isComplete)return;let n=this.ctx.getImageData(0,0,this.width,this.height).data,i=n.length/4,s=0;for(let o=3;o<n.length;o+=4)n[o]===0&&s++;s/i*100>=this.minScratchPercentage&&(this.isComplete=!0,this.ctx.clearRect(0,0,this.width,this.height),this.startAnimation())}async startAnimation(){let{animate:t}=Motion;await t(this.container,{scale:[.95,1]},{duration:.4,easing:"ease-out"}),this.onComplete()}};V(()=>{let e=new Gt({width:300,height:300,minScratchPercentage:20,gradientColors:["#FFF1E6","#FD9A36","#FFBD6F"]})});function ko(){let{inView:e}=Motion,t=document.querySelectorAll(".mobile__cancel-line"),n=t[0];e(n,(i,s)=>{s.isIntersecting&&t.forEach((r,o)=>{setTimeout(()=>{r.classList.add("animate")},o*1e3)})},{margin:"-40% 0px -40% 0px"})}function Bo(){let e=".NDGMNT__mobile__strong-blur";inView(e,()=>{let t=document.querySelector(e);t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}
|
50
|
+
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})});var Gt=class{constructor(t={}){this.width=t.width||300,this.height=t.height||300,this.minScratchPercentage=t.minScratchPercentage||50,this.gradientColors=t.gradientColors||["#A97CF8","#F38CB8","#FDCC92"],this.onComplete=t.onComplete||(()=>{}),this.canvas=document.getElementById("scratch-canvas"),this.container=document.getElementById("scratch-container"),this.ctx=this.canvas.getContext("2d"),this.isScratching=!1,this.isComplete=!1,this.onComplete=()=>{content.style.filter="blur(0)",content.style.color="rgba(0,0,0,1)",content.style.zIndex="10",t.onComplete&&t.onComplete()},this.init(),this.setupEventListeners()}init(){this.canvas.width=this.width,this.canvas.height=this.height,this.container.style.width=`${this.width}px`,this.container.style.height=`${this.height}px`,this.ctx.fillStyle="#ccc",this.ctx.fillRect(0,0,this.width,this.height);let t=this.ctx.createLinearGradient(0,0,this.width,this.height);t.addColorStop(0,this.gradientColors[0]),t.addColorStop(.5,this.gradientColors[1]),t.addColorStop(1,this.gradientColors[2]),this.ctx.fillStyle=t,this.ctx.fillRect(0,0,this.width,this.height),document.querySelector("#content").style.visibility="visible"}setupEventListeners(){this.canvas.addEventListener("mousedown",()=>this.isScratching=!0),this.canvas.addEventListener("touchstart",t=>{this.isScratching=!0,t.preventDefault()}),document.addEventListener("mousemove",t=>this.handleScratch(t)),document.addEventListener("touchmove",t=>this.handleScratch(t.touches[0])),document.addEventListener("mouseup",()=>this.handleScratchEnd()),document.addEventListener("touchend",()=>this.handleScratchEnd()),document.addEventListener("touchcancel",()=>this.handleScratchEnd())}handleScratch(t){if(!this.isScratching)return;let n=this.canvas.getBoundingClientRect(),i=t.clientX-n.left+16,s=t.clientY-n.top+16;this.ctx.globalCompositeOperation="destination-out",this.ctx.beginPath(),this.ctx.arc(i,s,30,0,Math.PI*2),this.ctx.fill()}handleScratchEnd(){this.isScratching&&(this.isScratching=!1,this.checkCompletion())}checkCompletion(){if(this.isComplete)return;let n=this.ctx.getImageData(0,0,this.width,this.height).data,i=n.length/4,s=0;for(let o=3;o<n.length;o+=4)n[o]===0&&s++;s/i*100>=this.minScratchPercentage&&(this.isComplete=!0,this.ctx.clearRect(0,0,this.width,this.height),this.startAnimation())}async startAnimation(){let{animate:t}=Motion;await t(this.container,{scale:[.95,1]},{duration:.4,easing:"ease-out"}),this.onComplete()}};V(()=>{let e=new Gt({width:300,height:300,minScratchPercentage:20,gradientColors:["#FFF1E6","#FD9A36","#FFBD6F"]})});function ko(){let{inView:e}=Motion,t=document.querySelectorAll(".mobile__cancel-line"),n=t[0];e(n,(i,s)=>{s.isIntersecting&&t.forEach((r,o)=>{setTimeout(()=>{r.classList.add("animate")},o*1e3)})},{margin:"-40% 0px -40% 0px"})}function Bo(){let e=".NDGMNT__mobile__strong-blur";inView(e,()=>{let t=document.querySelector(e);t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}function Ho(){class e{constructor(n={}){this.text=n.text||"Default text for animation",this.container=document.getElementById("mobile__text-content"),this.words=this.text.split(""),this.init(),this.setupScrollHandler()}init(){let n=this.text.split(`
|
51
|
+
`);this.totalCharCount=0,n.forEach((i,s)=>{let r=Array.from(i);this.totalCharCount+=r.length;let o=document.createElement("span");o.className="mobile__word-container";let a=document.createElement("span");a.className="mobile__word-shadow";let l=document.createElement("span");l.className="mobile__word-reveal",r.forEach((u,c)=>{let h=document.createElement("span");h.textContent=u,h.style.opacity="0",h.dataset.index=String(this.totalCharCount-r.length+c),l.appendChild(h);let d=document.createElement("span");d.textContent=u,a.appendChild(d)}),o.appendChild(a),o.appendChild(l),this.container.appendChild(o),s<n.length-1&&this.container.appendChild(document.createElement("br"))})}setupScrollHandler(){window.addEventListener("scroll",()=>{requestAnimationFrame(()=>this.handleScroll())})}handleScroll(){let i=document.getElementById("mobile__text-reveal-container").getBoundingClientRect(),s=window.innerHeight/2,r=i.top+i.height/2,o=Math.max(0,Math.min(1,(s-r)/(s/2)));document.querySelectorAll(".mobile__word-reveal span").forEach(l=>{let c=parseInt(l.dataset.index)/this.totalCharCount,h=this.totalCharCount/2,d=Math.max(0,Math.min(1,(o-c)*h));Motion.animate(l,{opacity:d},{duration:.4,easing:"ease-out"})})}}new e({text:`\uACE0\uAC1D\uC758 \uC2DC\uC120\uC774
|
52
|
+
\uBA38\uBB34\uB294 \uD648\uD398\uC774\uC9C0
|
53
|
+
\uC81C\uC791\uC744 \uC704\uD574
|
54
|
+
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})}V(()=>{ko(),Bo(),Ho()});})();
|
package/dist/style.css
CHANGED