@ndgmnt/client--nudgemoment 0.0.16 → 0.0.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * NudgeMoment v0.0.15
3
+ * NudgeMoment v0.0.16
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,8 +8,8 @@
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 Fi=Object.defineProperty;var Ii=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var A=(e,t,n)=>Ii(e,typeof t!="symbol"?t+"":t,n);var B=e=>e,be=B,H=B,ee=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},tn=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Oe(e){let t;return()=>(t===void 0&&(t=e()),t)}var nn=Oe(()=>window.ScrollTimeline!==void 0),Oi=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(nn()&&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")}},we=class extends Oi{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},F=e=>e*1e3,O=e=>e/1e3;function Pe(e,t){return e?e[t]||e.default||e:void 0}function Re(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 ye=2e4;function Be(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<ye;)t+=n,i=e.next(t);return t>=ye?1/0:t}function sn(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(Be(i),ye);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:O(s)}}function te(e){return typeof e=="function"}function ke(e,t){e.timeline=t,e.onfinish=null}var Pi=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 O(Number(i))}get time(){var e;return this.animation?O(((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&&ke(this.animation,e),B}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Ri={linearEasing:void 0};function Bi(e,t){let n=Oe(e);return()=>{var i;return(i=Ri[t])!==null&&i!==void 0?i:n()}}var J=Bi(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),He=e=>Array.isArray(e)&&typeof e[0]=="number",Qe=(e,t,n=10)=>{let i="",s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=e(ee(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function Je(e){return!!(typeof e=="function"&&J()||!e||typeof e=="string"&&(e in Ze||J())||He(e)||Array.isArray(e)&&e.every(Je))}var ve=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ze={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ve([0,.65,.55,1]),circOut:ve([.55,0,1,.45]),backIn:ve([.31,.01,.66,-.59]),backOut:ve([.33,1.53,.69,.99])};function rn(e,t){if(e)return typeof e=="function"&&J()?Qe(e,t):He(e)?ve(e):Array.isArray(e)?e.map(n=>rn(n,t)||Ze.easeOut):Ze[e]}function et(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=rn(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 Te=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),W=Te("deg"),j=Te("%"),f=Te("px"),on=Te("vh"),an=Te("vw"),tt={...j,parse:e=>j.parse(e)/100,transform:e=>j.transform(e*100)},Ie={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},ki=e=>e!==null;function ne(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(ki),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function Hi(e,t,n){e.style.setProperty(`--${t}`,n)}function Gi(e,t,n){e.style[t]=n}var Wi=Oe(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),nt=Oe(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fe=new WeakMap;function qi(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"&&Ie[e]&&(t[i]=Ie[e].transform(t[i]));!Wi()&&t.length<2&&t.unshift(n())}var Xt="easeOut";function Zt(e){let t=Fe.get(e)||new Map;return Fe.set(e,t),Fe.get(e)}var Ki=class extends Pi{constructor(e,t,n,i){let s=t.startsWith("--");H(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let r=Zt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),qi(t,n,o),te(i.type)){let u=sn(i,100,i.type);i.ease=J()?u.ease:Xt,i.duration=F(u.duration),i.type="keyframes"}else i.ease=i.ease||Xt;let a=()=>{this.setValue(e,t,ne(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?Hi:Gi,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Fe.get(e))===null||u===void 0?void 0:u.delete(t)}};nt()?(super(et(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,Zt(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 ln(e,t,n,i){let s=Re(e,i),r=s.length;H(!!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 Ki(l,c,h,d))}}return o}var $i=e=>{function t(n,i,s){return new we(ln(n,i,s,e))}return t},k=$i(),it=e=>Array.isArray(e)&&typeof e[0]!="number",ie=(e,t,n)=>e+(t-e)*n;function un(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=ee(0,t,i);e.push(ie(n,1,s))}}function st(e){let t=[0];return un(t,e.length-1),t}function cn(e,t){return it(e)?e[tn(0,e.length,t)]:e}var D=e=>!!(e&&e.getVelocity);function Ge(e){return typeof e=="object"&&!Array.isArray(e)}function rt(e,t,n,i){return typeof e=="string"&&Ge(t)?Re(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ui(e,t,n){return e*(t+1)}function Qt(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 hn(e,t){e.indexOf(t)===-1&&e.push(t)}function ot(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function zi(e,t,n){for(let i=0;i<e.length;i++){let s=e[i];s.at>t&&s.at<n&&(ot(e,s),i--)}}function ji(e,t,n,i,s,r){zi(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ie(s,r,i[o]),easing:cn(n,o)})}function Yi(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Xi(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Zi="easeInOut",Qi=20;function at(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,Qt(h,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Qt(h,p.at,c,u));let T=0,N=(M,m,S,_=0,y=0)=>{let C=Ji(M),{delay:Q=0,times:G=st(C),type:Xe="keyframes",repeat:fe,repeatType:jo,repeatDelay:Yo=0,...Li}=m,{ease:U=t.ease||"easeOut",duration:R}=m,Kt=typeof Q=="function"?Q(_,y):Q,$t=C.length,Ut=te(Xe)?Xe:s?.[Xe];if($t<=2&&Ut){let pe=100;if($t===2&&ns(C)){let me=C[1]-C[0];pe=Math.abs(me)}let De={...Li};R!==void 0&&(De.duration=F(R));let Le=sn(De,pe,Ut);U=Le.ease,R=Le.duration}R??(R=r);let zt=h+Kt;G.length===1&&G[0]===0&&(G[1]=1);let jt=G.length-C.length;if(jt>0&&un(G,jt),C.length===1&&C.unshift(null),fe){H(fe<Qi,"Repeat count too high, must be less than 20"),R=Ui(R,fe);let pe=[...C],De=[...G];U=Array.isArray(U)?[...U]:[U];let Le=[...U];for(let me=0;me<fe;me++){C.push(...pe);for(let ge=0;ge<pe.length;ge++)G.push(De[ge]+(me+1)),U.push(ge===0?"linear":cn(Le,ge-1))}Yi(G,fe)}let Yt=zt+R;ji(S,C,U,G,zt,Yt),T=Math.max(Kt+R,T),d=Math.max(Yt,d)};if(D(w)){let M=Jt(w,a);N(b,p,en("default",M))}else{let M=rt(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let _=M[S],y=Jt(_,a);for(let C in b)N(b[C],es(p,C),en(C,y),S,m)}}c=h,h+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Xi);let p=[],T=[],N=[];for(let m=0;m<b.length;m++){let{at:S,value:_,easing:y}=b[m];p.push(_),T.push(ee(0,d,S)),N.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),N.unshift(Zi)),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:N,times:T,...n}}}),o}function Jt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function en(e,t){return t[e]||(t[e]=[]),t[e]}function Ji(e){return Array.isArray(e)?e:[e]}function es(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var ts=e=>typeof e=="number",ns=e=>e.every(ts);var Z=(e,t,n)=>n>t?t:n<e?e:n;function Ln(e,t){return t?e*(1e3/t):0}var is=5;function Fn(e,t,n){let i=Math.max(t-is,0);return Ln(n-e(i),t-i)}var V={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},dn=.001;function ss({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:i=V.mass}){let s,r;be(e<=F(V.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Z(V.minDamping,V.maxDamping,o),e=Z(V.minDuration,V.maxDuration,O(e)),o<1?(s=u=>{let c=u*o,h=c*e,d=c-n,g=ht(u,o),v=Math.exp(-h);return dn-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=ht(Math.pow(u,2),o);return(-s(u)+dn>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=os(s,r,a);if(e=F(e),isNaN(l))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}var rs=12;function os(e,t,n){let i=n;for(let s=1;s<rs;s++)i=i-e(i)/t(i);return i}function ht(e,t){return e*Math.sqrt(1-t*t)}var as=["duration","bounce"],ls=["stiffness","damping","mass"];function fn(e,t){return t.some(n=>e[n]!==void 0)}function us(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!fn(e,ls)&&fn(e,as))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*Z(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:V.mass,stiffness:s,damping:r}}else{let n=ss(e);t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function wt(e=V.visualDuration,t=V.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}=us({...n,velocity:-O(n.velocity||0)}),v=d||0,w=u/(2*Math.sqrt(l*c)),b=o-r,p=O(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?V.restSpeed.granular:V.restSpeed.default),s||(s=T?V.restDelta.granular:V.restDelta.default);let N;if(w<1){let m=ht(p,w);N=S=>{let _=Math.exp(-w*p*S);return o-_*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)N=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);N=S=>{let _=Math.exp(-w*p*S),y=Math.min(m*S,300);return o-_*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&h||null,next:m=>{let S=N(m);if(g)a.done=m>=h;else{let _=0;w<1&&(_=m===0?F(v):Fn(N,m,S));let y=Math.abs(_)<=i,C=Math.abs(o-S)<=s;a.done=y&&C}return a.value=a.done?o:S,a},toString:()=>{let m=Math.min(Be(M),ye),S=Qe(_=>M.next(m*_).value,m,30);return m+"ms "+S}};return M}var re=new WeakMap,ae=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],le=new Set(ae),In=new Set(["width","height","top","left","right","bottom",...ae]),cs=e=>Array.isArray(e),hs=e=>cs(e)?e[e.length-1]||0:e,ds={skipAnimations:!1,useManualTiming:!1};function fs(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 Se=["read","resolveKeyframes","update","preRender","render","postRender"],ps=40;function ms(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Se.reduce((p,T)=>(p[T]=fs(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,ps),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:Se.reduce((p,T)=>{let N=o[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),N.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<Se.length;T++)o[Se[T]].cancel(p)},state:s,steps:o}}var{schedule:q,cancel:Ke,state:$e,steps:oa}=ms(typeof requestAnimationFrame<"u"?requestAnimationFrame:B,!0),qe;function gs(){qe=void 0}var z={now:()=>(qe===void 0&&z.set($e.isProcessing||ds.useManualTiming?$e.timestamp:performance.now()),qe),set:e=>{qe=e,queueMicrotask(gs)}},On=class{constructor(){this.subscriptions=[]}add(e){return hn(this.subscriptions,e),()=>ot(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 pn=30,vs=e=>!isNaN(parseFloat(e)),ys=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=z.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=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=vs(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 On);let n=this.events[e].add(t);return e==="change"?()=>{n(),q.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=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>pn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,pn);return Ln(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 xe(e,t){return new ys(e,t)}function mn(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]=mn(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]=mn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function bs(e,t,n){let i=e.getProps();return Pn(i,t,i.custom,e)}function ws(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xe(n))}function Ts(e,t){let n=bs(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=hs(r[o]);ws(e,o,a)}}function Ss(e){return!!(D(e)&&e.add)}function Cs(e,t){let n=e.getValue("willChange");if(Ss(n))return n.add(t)}var Tt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xs="framerAppearId",Es="data-"+Tt(xs);function Ms(e){return e.props[Es]}var Rn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_s=1e-7,As=12;function Vs(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=Rn(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>_s&&++a<As);return o}function _e(e,t,n,i){if(e===t&&n===i)return B;let s=r=>Vs(r,0,1,e,n);return r=>r===0||r===1?r:Rn(s(r),t,i)}var Bn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kn=e=>t=>1-e(1-t),Hn=_e(.33,1.53,.69,.99),St=kn(Hn),Gn=Bn(St),Wn=e=>(e*=2)<1?.5*St(e):.5*(2-Math.pow(2,-10*(e-1))),Ct=e=>1-Math.sin(Math.acos(e)),Ns=kn(Ct),qn=Bn(Ct),Kn=e=>/^0[^.\s]+$/u.test(e);function Ds(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Kn(e):!0}var ue={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ee={...ue,transform:e=>Z(0,1,e)},We={...ue,default:1},Ce=e=>Math.round(e*1e5)/1e5,xt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ls(e){return e==null}var Fs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n=="string"&&Fs.test(n)&&n.startsWith(e)||t&&!Ls(n)&&Object.prototype.hasOwnProperty.call(n,t)),$n=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(xt);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Is=e=>Z(0,255,e),lt={...ue,transform:e=>Math.round(Is(e))},Y={test:Et("rgb","red"),parse:$n("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+lt.transform(e)+", "+lt.transform(t)+", "+lt.transform(n)+", "+Ce(Ee.transform(i))+")"};function Os(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 dt={test:Et("#"),parse:Os,transform:Y.transform},se={test:Et("hsl","hue"),parse:$n("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+j.transform(Ce(t))+", "+j.transform(Ce(n))+", "+Ce(Ee.transform(i))+")"},L={test:e=>Y.test(e)||dt.test(e)||se.test(e),parse:e=>Y.test(e)?Y.parse(e):se.test(e)?se.parse(e):dt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Y.transform(e):se.transform(e)},Ps=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Rs(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xt))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Ps))===null||n===void 0?void 0:n.length)||0)>0}var Un="number",zn="color",Bs="var",ks="var(",gn="${}",Hs=/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 Me(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(Hs,l=>(L.test(l)?(i.color.push(r),s.push(zn),n.push(L.parse(l))):l.startsWith(ks)?(i.var.push(r),s.push(Bs),n.push(l)):(i.number.push(r),s.push(Un),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:i,types:s}}function jn(e){return Me(e).values}function Yn(e){let{split:t,types:n}=Me(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===Un?r+=Ce(s[o]):a===zn?r+=L.transform(s[o]):r+=s[o]}return r}}var Gs=e=>typeof e=="number"?0:e;function Ws(e){let t=jn(e);return Yn(e)(t.map(Gs))}var ce={test:Rs,parse:jn,createTransformer:Yn,getAnimatableNone:Ws},qs=new Set(["brightness","contrast","saturate","opacity"]);function Ks(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(xt)||[];if(!i)return e;let s=n.replace(i,""),r=qs.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var $s=/\b([a-z-]*)\(.*?\)/gu,ft={...ce,getAnimatableNone:e=>{let t=e.match($s);return t?t.map(Ks).join(" "):e}},Us={rotate:W,rotateX:W,rotateY:W,rotateZ:W,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:W,skewX:W,skewY:W,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:Ee,originX:tt,originY:tt,originZ:f},vn={...ue,transform:Math.round},Mt={...Ie,...Us,zIndex:vn,size:f,fillOpacity:Ee,strokeOpacity:Ee,numOctaves:vn},zs={...Mt,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ft,WebkitFilter:ft},_t=e=>zs[e];function Xn(e,t){let n=_t(e);return n!==ft&&(n=ce),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var js=new Set(["auto","none","0"]);function Ys(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!js.has(r)&&Me(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=Xn(n,s)}var yn=e=>e===ue||e===f,bn=(e,t)=>parseFloat(e.split(", ")[t]),wn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return bn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?bn(r[1],e):0}},Xs=new Set(["x","y","z"]),Zs=ae.filter(e=>!Xs.has(e));function Qs(e){let t=[];return Zs.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var oe={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:wn(4,13),y:wn(5,14)};oe.translateX=oe.x;oe.translateY=oe.y;var X=new Set,pt=!1,mt=!1;function Zn(){if(mt){let e=Array.from(X).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=Qs(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)})}mt=!1,pt=!1,X.forEach(e=>e.complete()),X.clear()}function Qn(){X.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mt=!0)})}function Js(){Qn(),Zn()}var At=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?(X.add(this),pt||(pt=!0,q.read(Qn),q.resolveKeyframes(Zn))):(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),X.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,X.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Jn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ei=e=>t=>typeof t=="string"&&t.startsWith(e),ti=ei("--"),er=ei("var(--"),Vt=e=>er(e)?tr.test(e.split("/*")[0].trim()):!1,tr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ir(e){let t=nr.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var sr=4;function ni(e,t,n=1){H(n<=sr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=ir(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Jn(o)?parseFloat(o):o}return Vt(s)?ni(s,t,n+1):s}var ii=e=>t=>t.test(e),rr={test:e=>e==="auto",parse:e=>e},si=[ue,f,j,W,an,on,rr],Tn=e=>si.find(ii(e)),ri=class extends At{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(),Vt(l))){let u=ni(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!In.has(n)||e.length!==2)return;let[i,s]=e,r=Tn(i),o=Tn(s);if(r!==o)if(yn(r)&&yn(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++)Ds(e[i])&&n.push(i);n.length&&Ys(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=oe[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]=oe[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()}},Sn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ce.test(e)||e==="0")&&!e.startsWith("url("));function or(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 ar(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=Sn(s,t),a=Sn(r,t);return be(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:or(e)||(n==="spring"||te(n))&&i}var lr=40,oi=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=z.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>lr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Js(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=z.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!ar(e,n,i,s))if(r)this.options.duration=0;else{a?.(ne(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 ut(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 ur({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=ut(l,a,e+1/3),r=ut(l,a,e),o=ut(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function Ue(e,t){return n=>n>0?t:e}var ct=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},cr=[dt,Y,se],hr=e=>cr.find(t=>t.test(e));function Cn(e){let t=hr(e);if(be(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===se&&(n=ur(n)),n}var xn=(e,t)=>{let n=Cn(e),i=Cn(t);if(!n||!i)return Ue(e,t);let s={...n};return r=>(s.red=ct(n.red,i.red,r),s.green=ct(n.green,i.green,r),s.blue=ct(n.blue,i.blue,r),s.alpha=ie(n.alpha,i.alpha,r),Y.transform(s))},dr=(e,t)=>n=>t(e(n)),Nt=(...e)=>e.reduce(dr),gt=new Set(["none","hidden"]);function fr(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pr(e,t){return n=>ie(e,t,n)}function Dt(e){return typeof e=="number"?pr:typeof e=="string"?Vt(e)?Ue:L.test(e)?xn:vr:Array.isArray(e)?ai:typeof e=="object"?L.test(e)?xn:mr:Ue}function ai(e,t){let n=[...e],i=n.length,s=e.map((r,o)=>Dt(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function mr(e,t){let n={...e,...t},i={};for(let s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=Dt(e[s])(e[s],t[s]));return s=>{for(let r in i)n[r]=i[r](s);return n}}function gr(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 vr=(e,t)=>{let n=ce.createTransformer(t),i=Me(e),s=Me(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?gt.has(e)&&!s.values.length||gt.has(t)&&!i.values.length?fr(e,t):Nt(ai(gr(i,s),s.values),n):(be(!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.`),Ue(e,t))};function li(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Dt(e)(e,t)}function En({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),N=y=>p+T(y),M=y=>{let C=T(y),Q=N(y);d.done=Math.abs(C)<=u,d.value=d.done?p:Q},m,S,_=y=>{g(d.value)&&(m=y,S=wt({keyframes:[d.value,v(d.value)],velocity:Fn(N,y,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return _(0),{calculatedDuration:null,next:y=>{let C=!1;return!S&&m===void 0&&(C=!0,M(y),_(y)),m!==void 0&&y>=m?S.next(y-m):(!C&&M(y),d)}}}var yr=_e(.42,0,1,1),br=_e(0,0,.58,1),ui=_e(.42,0,.58,1),Mn={linear:B,easeIn:yr,easeInOut:ui,easeOut:br,circIn:Ct,circInOut:qn,circOut:Ns,backIn:St,backInOut:Gn,backOut:Hn,anticipate:Wn},vt=e=>{if(He(e)){H(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return _e(t,n,i,s)}else if(typeof e=="string")return H(Mn[e]!==void 0,`Invalid easing type '${e}'`),Mn[e];return e};function wr(e,t,n){let i=[],s=n||li,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]||B:t;a=Nt(l,a)}i.push(a)}return i}function Tr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let r=e.length;if(H(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=wr(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=ee(e[h],e[h+1],c);return a[h](d)};return n?c=>u(Z(e[0],e[r-1],c)):u}function Sr(e,t){return e.map(n=>n*t)}function Cr(e,t){return e.map(()=>t||ui).splice(0,e.length-1)}function ze({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=it(i)?i.map(vt):vt(i),r={done:!1,value:t[0]},o=Sr(n&&n.length===t.length?n:st(t),e),a=Tr(o,t,{ease:Array.isArray(s)?s:Cr(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var xr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>q.update(t,!0),stop:()=>Ke(t),now:()=>$e.isProcessing?$e.timestamp:z.now()}},Er={decay:En,inertia:En,tween:ze,keyframes:ze,spring:wt},Mr=e=>e/100,Lt=class extends oi{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||At,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=te(t)?t:Er[t]||ze,a,l;o!==ze&&typeof e[0]!="number"&&(a=Nt(Mr,li(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=Be(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:_}=this.options;return{done:!0,value:_[_.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,N=s;if(d){let _=Math.min(this.currentTime,u)/c,y=Math.floor(_),C=_%1;!C&&_>=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"&&(N=r)),T=Z(0,1,C)*c}let M=p?{done:!1,value:a[0]}:N.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=ne(a,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?O(e.calculatedDuration):0}get time(){return O(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=O(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=xr,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)}},_r=new Set(["opacity","clipPath","filter","transform"]),je=10,Ar=2e4;function Vr(e){return te(e.type)||e.type==="spring"||!Je(e.ease)}function Nr(e,t){let n=new Lt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},s=[],r=0;for(;!i.done&&r<Ar;)i=n.sample(r),s.push(i.value),r+=je;return{times:void 0,keyframes:s,duration:r-je,ease:"linear"}}var ci={anticipate:Wn,backInOut:Gn,circInOut:qn};function Dr(e){return e in ci}var _n=class extends oi{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ri(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"&&J()&&Dr(r)&&(r=ci[r]),Vr(this.options)){let{onComplete:h,onUpdate:d,motionValue:g,element:v,...w}=this.options,b=Nr(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=et(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(ke(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:h}=this.options;a.set(ne(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 O(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return O(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 B;let{animation:n}=t;ke(n,e)}return B}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 Lt({...d,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=F(this.time);l.setWithVelocity(g.sample(v-je).value,g.sample(v).value,je)}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 nt()&&n&&_r.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Lr={type:"spring",stiffness:500,damping:25,restSpeed:10},Fr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ir={type:"keyframes",duration:.8},Or={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Pr=(e,{keyframes:t})=>t.length>2?Ir:le.has(e)?e.startsWith("scale")?Fr(t[1]):Lr:Or;function Rr({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 hi=(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};Rr(a)||(c={...c,...Pr(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=ne(c.keyframes,a);if(d!==void 0)return q.update(()=>{c.onUpdate(d),c.onComplete()}),new we([])}return!r&&_n.supports(c)?new _n(c):new Lt(c)};function Br({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function kr(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&&Br(c,h))continue;let v={delay:n,...Pe(o||{},h)},w=!1;if(window.MotionHandoffAnimation){let p=Ms(e);if(p){let T=window.MotionHandoffAnimation(p,h,q);T!==null&&(v.startTime=T,w=!0)}}Cs(e,h),d.start(hi(h,d,g,e.shouldReduceMotion&&In.has(h)?{type:!1}:v,e,w));let b=d.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{q.update(()=>{a&&Ts(e,a)})}),u}function Hr(e){return e instanceof SVGElement&&e.tagName!=="svg"}var An=()=>({min:0,max:0}),Ft=()=>({x:An(),y:An()}),Vn={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"]},yt={};for(let e in Vn)yt[e]={isEnabled:t=>Vn[e].some(n=>!!t[n])};var Gr=typeof window<"u",bt={current:null},di={current:!1};function Wr(){if(di.current=!0,!!Gr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bt.current=e.matches;e.addListener(t),t()}else bt.current=!1}var qr=[...si,L,ce],Kr=e=>qr.find(ii(e));function $r(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ur(e){return typeof e=="string"||Array.isArray(e)}var zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jr=["initial",...zr];function fi(e){return $r(e.animate)||jr.some(t=>Ur(e[t]))}function Yr(e){return!!(fi(e)||e.variants)}function Xr(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,xe(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,xe(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Nn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pi=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=At,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=z.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,q.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=fi(t),this.isVariantNode=Yr(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,re.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)),di.current||Wr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){re.delete(this.current),this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(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=le.has(e),i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&q.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 yt){let t=yt[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):Ft()}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<Nn.length;n++){let i=Nn[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=Xr(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=xe(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"&&(Jn(i)||Kn(i))?i=parseFloat(i):!Kr(i)&&ce.test(t)&&(i=Xn(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 On),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},mi=class extends pi{constructor(){super(...arguments),this.KeyframeResolver=ri}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}`)}))}},gi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Qr=ae.length;function Jr(e,t,n){let i="",s=!0;for(let r=0;r<Qr;r++){let o=ae[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=gi(a,Mt[o]);if(!l){s=!1;let c=Zr[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function vi(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(le.has(l)){o=!0;continue}else if(ti(l)){s[l]=u;continue}else{let c=gi(u,Mt[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=Jr(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 Dn(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function eo(e,t,n){let i=Dn(t,e.x,e.width),s=Dn(n,e.y,e.height);return`${i} ${s}`}var to={offset:"stroke-dashoffset",array:"stroke-dasharray"},no={offset:"strokeDashoffset",array:"strokeDasharray"};function io(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?to:no;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function so(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(vi(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=eo(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&&io(d,o,a,l,!1)}var yi=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"]),ro=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bi(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 oo(e,t,n,i){bi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(yi.has(s)?s:Tt(s),t.attrs[s])}var ao={};function lo(e,{layout:t,layoutId:n}){return le.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ao[e]||e==="opacity")}function wi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(D(s[o])||t.style&&D(t.style[o])||lo(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function uo(e,t,n){let i=wi(e,t,n);for(let s in e)if(D(e[s])||D(t[s])){let r=ae.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var co=class extends mi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(le.has(t)){let n=_t(t);return n&&n.default||0}return t=yi.has(t)?t:Tt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return uo(e,t,n)}build(e,t,n){so(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){oo(e,t,n,i)}mount(e){this.isSVGTag=ro(e.tagName),super.mount(e)}};function ho({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function fo(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 po(e,t){return ho(fo(e.getBoundingClientRect(),t))}function mo(e){return window.getComputedStyle(e)}var go=class extends mi{constructor(){super(...arguments),this.type="html",this.renderInstance=bi}readValueFromInstance(e,t){if(le.has(t)){let n=_t(t);return n&&n.default||0}else{let n=mo(e),i=(ti(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return po(e,t)}build(e,t,n){vi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return wi(e,t,n)}};function vo(e,t){return e in t}var yo=class extends pi{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(vo(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 Ft()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function bo(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Hr(e)?new co(t):new go(t);n.mount(e),re.set(e,n)}function wo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new yo(t);n.mount(e),re.set(e,n)}function To(e,t,n){let i=D(e)?e:xe(e);return i.start(hi("",i,t,n)),i.animation}function So(e,t){return D(e)||typeof e=="number"||typeof e=="string"&&!Ge(t)}function Ti(e,t,n,i){let s=[];if(So(e,t))s.push(To(e,Ge(t)&&t.default||t,n&&(n.default||n)));else{let r=rt(e,t,i),o=r.length;H(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let l=r[a],u=l instanceof Element?bo:wo;re.has(l)||u(l);let c=re.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...kr(c,{...t,transition:h},{}))}}return s}function Co(e,t,n){let i=[];return at(e,t,n,{spring:wt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...Ti(a,r,o))}),i}function xo(e){return Array.isArray(e)&&e.some(Array.isArray)}function Eo(e){function t(n,i,s){let r=[];xo(n)?r=Co(n,i,e):r=Ti(n,i,s,e);let o=new we(r);return e&&e.animations.push(o),o}return t}var aa=Eo();var Mo={some:0,all:1};function K(e,t,{root:n,margin:i,amount:s="some"}={}){let r=Re(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:Mo[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function _o(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function It(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(s,r)=>{let o=typeof n=="number"?n:_o(n,r),a=Math.abs(o-s),l=e*a;if(i){let u=r*e;l=vt(i)(l/u)*u}return t+l}}var la=Se.reduce((e,t)=>(e[t]=n=>Ke(n),e),{});var Ao=Symbol.for("preact-signals");function Pt(){if(he>1)he--;else{for(var e,t=!1;Ae!==void 0;){var n=Ae;for(Ae=void 0,Ot++;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(Ot=0,he--,t)throw e}}var x=void 0;var Ae=void 0,he=0,Ot=0,Ye=0;function Si(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 I(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}I.prototype.brand=Ao;I.prototype.h=function(){return!0};I.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)};I.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)}};I.prototype.subscribe=function(e){var t=this;return No(function(){var n=t.value,i=x;x=void 0;try{e(n)}finally{x=i}})};I.prototype.valueOf=function(){return this.value};I.prototype.toString=function(){return this.value+""};I.prototype.toJSON=function(){return this.value};I.prototype.peek=function(){var e=x;x=void 0;try{return this.value}finally{x=e}};Object.defineProperty(I.prototype,"value",{get:function(){var e=Si(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ot>100)throw new Error("Cycle detected");this.v=e,this.i++,Ye++,he++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pt()}}}});function Ci(e){return new I(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 Ei(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 Ve(e){I.call(this,void 0),this.x=e,this.s=void 0,this.g=Ye-1,this.f=4}(Ve.prototype=new I).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ye))return!0;if(this.g=Ye,this.f|=1,this.i>0&&!xi(this))return this.f&=-2,!0;var e=x;try{Ei(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};Ve.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)}I.prototype.S.call(this,e)};Ve.prototype.U=function(e){if(this.t!==void 0&&(I.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)}};Ve.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(Ve.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Si(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function _i(e){var t=e.u;if(e.u=void 0,typeof t=="function"){he++;var n=x;x=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Rt(e),i}finally{x=n,Pt()}}}function Rt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_i(e)}function Vo(e){if(x!==this)throw new Error("Out-of-order effect");Mi(this),x=e,this.f&=-2,8&this.f&&Rt(this),Pt()}function Ne(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ne.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()}};Ne.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_i(this),Ei(this),he++;var e=x;return x=this,Vo.bind(this,e)};Ne.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ae,Ae=this)};Ne.prototype.d=function(){this.f|=8,1&this.f||Rt(this)};function No(e){var t=new Ne(e);try{t.c()}catch(n){throw t.d(),n}return t.d.bind(t)}var Ai=e=>{window.NudgeMoment=Object.assign(window.NudgeMoment||{},{custom:{...window.NudgeMoment?.custom,...e}})},E=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})},P=(e,t)=>{if(e)throw new Error(t)};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Do=".NDGMNT__FloatingFixedButton__floating-menu",Lo=".NDGMNT__FloatingFixedButton__trigger-button",Fo='<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>',Io={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
- `},Oo={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"}},Bt=class{constructor(t){A(this,"container");A(this,"menu");A(this,"trigger");A(this,"options");A(this,"isOpenSignal",Ci(!1));let n=t.containerSelector??Vi,i=t.triggerContent??Fo;this.options={containerSelector:n,triggerContent:i,snsConfigs:t.snsConfigs},this.container=document.querySelector(n),this.menu=this.container.querySelector(Do),this.trigger=this.container.querySelector(Lo),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=Io[t.sns];let s=Oo[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&&k(t,{opacity:1,transform:"translateY(0)"},{delay:It(.1,{from:"last"}),duration:.3,ease:"easeInOut"})}handleClose(){let t=this.menu.querySelectorAll("li");t.length>0?k(t,{opacity:0,transform:"translateY(5px)"},{delay:It(.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)}};E(()=>{Ai({FloatingFixedButton:Bt}),window.NudgeMoment.net.emit("template__FloatingFixedButton")});function Po(){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");P(!n,"[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)}E(()=>{Po()});var de={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 Ro(){let e=document.querySelector(de.IMWEB_SLIDE_MENU_WRAP);P(!e,`${de.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=de.MOBILE_MENU_DIMMED;let i=document.createElement("div");i.className=de.MOBILE_MENU_CONTAINER;let s=document.createElement("ul");s.className=de.MOBILE_MENU_LIST,document.querySelectorAll(`${de.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")})}E(()=>{$("#mobile_slide_menu_wrap").css("display","none"),Ro()});var Bo={TYPING_TEXT:".NDGMNT-home__hero-section__typing-text"},kt=class{constructor(t,n={}){A(this,"element");A(this,"originalText");A(this,"duration");A(this,"delay");A(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(){K(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)}};E(()=>{document.querySelectorAll(Bo.TYPING_TEXT).forEach(e=>{new kt(e,{duration:200,delay:0})})});var Ht=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");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=`
11
+ "use strict";(()=>{var Fi=Object.defineProperty;var Pi=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var _=(e,t,n)=>Pi(e,typeof t!="symbol"?t+"":t,n);var k=e=>e,be=k,B=k,ee=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},tn=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Oe(e){let t;return()=>(t===void 0&&(t=e()),t)}var nn=Oe(()=>window.ScrollTimeline!==void 0),Oi=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(nn()&&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")}},we=class extends Oi{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},F=e=>e*1e3,O=e=>e/1e3;function Ie(e,t){return e?e[t]||e.default||e:void 0}function Re(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 ye=2e4;function ke(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<ye;)t+=n,i=e.next(t);return t>=ye?1/0:t}function sn(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(ke(i),ye);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:O(s)}}function te(e){return typeof e=="function"}function Be(e,t){e.timeline=t,e.onfinish=null}var Ii=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 O(Number(i))}get time(){var e;return this.animation?O(((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&&Be(this.animation,e),k}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},Ri={linearEasing:void 0};function ki(e,t){let n=Oe(e);return()=>{var i;return(i=Ri[t])!==null&&i!==void 0?i:n()}}var Q=ki(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),He=e=>Array.isArray(e)&&typeof e[0]=="number",Je=(e,t,n=10)=>{let i="",s=Math.max(Math.round(t/n),2);for(let r=0;r<s;r++)i+=e(ee(0,s-1,r))+", ";return`linear(${i.substring(0,i.length-2)})`};function Qe(e){return!!(typeof e=="function"&&Q()||!e||typeof e=="string"&&(e in Ze||Q())||He(e)||Array.isArray(e)&&e.every(Qe))}var ve=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ze={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ve([0,.65,.55,1]),circOut:ve([.55,0,1,.45]),backIn:ve([.31,.01,.66,-.59]),backOut:ve([.33,1.53,.69,.99])};function rn(e,t){if(e)return typeof e=="function"&&Q()?Je(e,t):He(e)?ve(e):Array.isArray(e)?e.map(n=>rn(n,t)||Ze.easeOut):Ze[e]}function et(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=rn(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 Te=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),G=Te("deg"),j=Te("%"),f=Te("px"),on=Te("vh"),an=Te("vw"),tt={...j,parse:e=>j.parse(e)/100,transform:e=>j.transform(e*100)},Pe={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},Bi=e=>e!==null;function ne(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Bi),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function Hi(e,t,n){e.style.setProperty(`--${t}`,n)}function Gi(e,t,n){e.style[t]=n}var Wi=Oe(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),nt=Oe(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fe=new WeakMap;function qi(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"&&Pe[e]&&(t[i]=Pe[e].transform(t[i]));!Wi()&&t.length<2&&t.unshift(n())}var Xt="easeOut";function Zt(e){let t=Fe.get(e)||new Map;return Fe.set(e,t),Fe.get(e)}var Ki=class extends Ii{constructor(e,t,n,i){let s=t.startsWith("--");B(typeof i.type!="string",`animateMini doesn't support "type" as a string. Did you mean to import { spring } from "framer-motion"?`);let r=Zt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),qi(t,n,o),te(i.type)){let u=sn(i,100,i.type);i.ease=Q()?u.ease:Xt,i.duration=F(u.duration),i.type="keyframes"}else i.ease=i.ease||Xt;let a=()=>{this.setValue(e,t,ne(n,i)),this.cancel(),this.resolveFinishedPromise()},l=()=>{this.setValue=s?Hi:Gi,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var u;return(u=Fe.get(e))===null||u===void 0?void 0:u.delete(t)}};nt()?(super(et(e,t,n,i)),l(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,Zt(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 ln(e,t,n,i){let s=Re(e,i),r=s.length;B(!!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={...Ie(u,c)};d.duration=d.duration?F(d.duration):d.duration,d.delay=F(d.delay||0),o.push(new Ki(l,c,h,d))}}return o}var $i=e=>{function t(n,i,s){return new we(ln(n,i,s,e))}return t},W=$i(),it=e=>Array.isArray(e)&&typeof e[0]!="number",ie=(e,t,n)=>e+(t-e)*n;function un(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=ee(0,t,i);e.push(ie(n,1,s))}}function st(e){let t=[0];return un(t,e.length-1),t}function cn(e,t){return it(e)?e[tn(0,e.length,t)]:e}var D=e=>!!(e&&e.getVelocity);function Ge(e){return typeof e=="object"&&!Array.isArray(e)}function rt(e,t,n,i){return typeof e=="string"&&Ge(t)?Re(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Ui(e,t,n){return e*(t+1)}function Jt(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 hn(e,t){e.indexOf(t)===-1&&e.push(t)}function ot(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function zi(e,t,n){for(let i=0;i<e.length;i++){let s=e[i];s.at>t&&s.at<n&&(ot(e,s),i--)}}function ji(e,t,n,i,s,r){zi(e,s,r);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ie(s,r,i[o]),easing:cn(n,o)})}function Yi(e,t){for(let n=0;n<e.length;n++)e[n]=e[n]/(t+1)}function Xi(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Zi="easeInOut",Ji=20;function at(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,Jt(h,v.at,c,u));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Jt(h,p.at,c,u));let T=0,N=(M,m,S,A=0,y=0)=>{let C=Qi(M),{delay:J=0,times:H=st(C),type:Xe="keyframes",repeat:fe,repeatType:zo,repeatDelay:jo=0,...Li}=m,{ease:U=t.ease||"easeOut",duration:R}=m,Kt=typeof J=="function"?J(A,y):J,$t=C.length,Ut=te(Xe)?Xe:s?.[Xe];if($t<=2&&Ut){let pe=100;if($t===2&&ns(C)){let me=C[1]-C[0];pe=Math.abs(me)}let De={...Li};R!==void 0&&(De.duration=F(R));let Le=sn(De,pe,Ut);U=Le.ease,R=Le.duration}R??(R=r);let zt=h+Kt;H.length===1&&H[0]===0&&(H[1]=1);let jt=H.length-C.length;if(jt>0&&un(H,jt),C.length===1&&C.unshift(null),fe){B(fe<Ji,"Repeat count too high, must be less than 20"),R=Ui(R,fe);let pe=[...C],De=[...H];U=Array.isArray(U)?[...U]:[U];let Le=[...U];for(let me=0;me<fe;me++){C.push(...pe);for(let ge=0;ge<pe.length;ge++)H.push(De[ge]+(me+1)),U.push(ge===0?"linear":cn(Le,ge-1))}Yi(H,fe)}let Yt=zt+R;ji(S,C,U,H,zt,Yt),T=Math.max(Kt+R,T),d=Math.max(Yt,d)};if(D(w)){let M=Qt(w,a);N(b,p,en("default",M))}else{let M=rt(w,b,i,l),m=M.length;for(let S=0;S<m;S++){b=b,p=p;let A=M[S],y=Qt(A,a);for(let C in b)N(b[C],es(p,C),en(C,y),S,m)}}c=h,h+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Xi);let p=[],T=[],N=[];for(let m=0;m<b.length;m++){let{at:S,value:A,easing:y}=b[m];p.push(A),T.push(ee(0,d,S)),N.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),N.unshift(Zi)),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:N,times:T,...n}}}),o}function Qt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function en(e,t){return t[e]||(t[e]=[]),t[e]}function Qi(e){return Array.isArray(e)?e:[e]}function es(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var ts=e=>typeof e=="number",ns=e=>e.every(ts);var Z=(e,t,n)=>n>t?t:n<e?e:n;function Ln(e,t){return t?e*(1e3/t):0}var is=5;function Fn(e,t,n){let i=Math.max(t-is,0);return Ln(n-e(i),t-i)}var V={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},dn=.001;function ss({duration:e=V.duration,bounce:t=V.bounce,velocity:n=V.velocity,mass:i=V.mass}){let s,r;be(e<=F(V.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Z(V.minDamping,V.maxDamping,o),e=Z(V.minDuration,V.maxDuration,O(e)),o<1?(s=u=>{let c=u*o,h=c*e,d=c-n,g=ht(u,o),v=Math.exp(-h);return dn-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=ht(Math.pow(u,2),o);return(-s(u)+dn>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=os(s,r,a);if(e=F(e),isNaN(l))return{stiffness:V.stiffness,damping:V.damping,duration:e};{let u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}var rs=12;function os(e,t,n){let i=n;for(let s=1;s<rs;s++)i=i-e(i)/t(i);return i}function ht(e,t){return e*Math.sqrt(1-t*t)}var as=["duration","bounce"],ls=["stiffness","damping","mass"];function fn(e,t){return t.some(n=>e[n]!==void 0)}function us(e){let t={velocity:V.velocity,stiffness:V.stiffness,damping:V.damping,mass:V.mass,isResolvedFromDuration:!1,...e};if(!fn(e,ls)&&fn(e,as))if(e.visualDuration){let n=e.visualDuration,i=2*Math.PI/(n*1.2),s=i*i,r=2*Z(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:V.mass,stiffness:s,damping:r}}else{let n=ss(e);t={...t,...n,mass:V.mass},t.isResolvedFromDuration=!0}return t}function wt(e=V.visualDuration,t=V.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}=us({...n,velocity:-O(n.velocity||0)}),v=d||0,w=u/(2*Math.sqrt(l*c)),b=o-r,p=O(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?V.restSpeed.granular:V.restSpeed.default),s||(s=T?V.restDelta.granular:V.restDelta.default);let N;if(w<1){let m=ht(p,w);N=S=>{let A=Math.exp(-w*p*S);return o-A*((v+w*p*b)/m*Math.sin(m*S)+b*Math.cos(m*S))}}else if(w===1)N=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);N=S=>{let A=Math.exp(-w*p*S),y=Math.min(m*S,300);return o-A*((v+w*p*b)*Math.sinh(y)+m*b*Math.cosh(y))/m}}let M={calculatedDuration:g&&h||null,next:m=>{let S=N(m);if(g)a.done=m>=h;else{let A=0;w<1&&(A=m===0?F(v):Fn(N,m,S));let y=Math.abs(A)<=i,C=Math.abs(o-S)<=s;a.done=y&&C}return a.value=a.done?o:S,a},toString:()=>{let m=Math.min(ke(M),ye),S=Je(A=>M.next(m*A).value,m,30);return m+"ms "+S}};return M}var re=new WeakMap,ae=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],le=new Set(ae),Pn=new Set(["width","height","top","left","right","bottom",...ae]),cs=e=>Array.isArray(e),hs=e=>cs(e)?e[e.length-1]||0:e,ds={skipAnimations:!1,useManualTiming:!1};function fs(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 Se=["read","resolveKeyframes","update","preRender","render","postRender"],ps=40;function ms(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Se.reduce((p,T)=>(p[T]=fs(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,ps),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:Se.reduce((p,T)=>{let N=o[T];return p[T]=(M,m=!1,S=!1)=>(n||v(),N.schedule(M,m,S)),p},{}),cancel:p=>{for(let T=0;T<Se.length;T++)o[Se[T]].cancel(p)},state:s,steps:o}}var{schedule:q,cancel:Ke,state:$e,steps:ra}=ms(typeof requestAnimationFrame<"u"?requestAnimationFrame:k,!0),qe;function gs(){qe=void 0}var z={now:()=>(qe===void 0&&z.set($e.isProcessing||ds.useManualTiming?$e.timestamp:performance.now()),qe),set:e=>{qe=e,queueMicrotask(gs)}},On=class{constructor(){this.subscriptions=[]}add(e){return hn(this.subscriptions,e),()=>ot(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 pn=30,vs=e=>!isNaN(parseFloat(e)),ys=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=z.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=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=vs(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 On);let n=this.events[e].add(t);return e==="change"?()=>{n(),q.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=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>pn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,pn);return Ln(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 xe(e,t){return new ys(e,t)}function mn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function In(e,t,n,i){if(typeof t=="function"){let[s,r]=mn(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]=mn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function bs(e,t,n){let i=e.getProps();return In(i,t,i.custom,e)}function ws(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xe(n))}function Ts(e,t){let n=bs(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=hs(r[o]);ws(e,o,a)}}function Ss(e){return!!(D(e)&&e.add)}function Cs(e,t){let n=e.getValue("willChange");if(Ss(n))return n.add(t)}var Tt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xs="framerAppearId",Es="data-"+Tt(xs);function Ms(e){return e.props[Es]}var Rn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,As=1e-7,_s=12;function Vs(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=Rn(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>As&&++a<_s);return o}function Ae(e,t,n,i){if(e===t&&n===i)return k;let s=r=>Vs(r,0,1,e,n);return r=>r===0||r===1?r:Rn(s(r),t,i)}var kn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bn=e=>t=>1-e(1-t),Hn=Ae(.33,1.53,.69,.99),St=Bn(Hn),Gn=kn(St),Wn=e=>(e*=2)<1?.5*St(e):.5*(2-Math.pow(2,-10*(e-1))),Ct=e=>1-Math.sin(Math.acos(e)),Ns=Bn(Ct),qn=kn(Ct),Kn=e=>/^0[^.\s]+$/u.test(e);function Ds(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Kn(e):!0}var ue={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ee={...ue,transform:e=>Z(0,1,e)},We={...ue,default:1},Ce=e=>Math.round(e*1e5)/1e5,xt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ls(e){return e==null}var Fs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n=="string"&&Fs.test(n)&&n.startsWith(e)||t&&!Ls(n)&&Object.prototype.hasOwnProperty.call(n,t)),$n=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(xt);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ps=e=>Z(0,255,e),lt={...ue,transform:e=>Math.round(Ps(e))},Y={test:Et("rgb","red"),parse:$n("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+lt.transform(e)+", "+lt.transform(t)+", "+lt.transform(n)+", "+Ce(Ee.transform(i))+")"};function Os(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 dt={test:Et("#"),parse:Os,transform:Y.transform},se={test:Et("hsl","hue"),parse:$n("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+j.transform(Ce(t))+", "+j.transform(Ce(n))+", "+Ce(Ee.transform(i))+")"},L={test:e=>Y.test(e)||dt.test(e)||se.test(e),parse:e=>Y.test(e)?Y.parse(e):se.test(e)?se.parse(e):dt.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Y.transform(e):se.transform(e)},Is=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Rs(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xt))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Is))===null||n===void 0?void 0:n.length)||0)>0}var Un="number",zn="color",ks="var",Bs="var(",gn="${}",Hs=/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 Me(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(Hs,l=>(L.test(l)?(i.color.push(r),s.push(zn),n.push(L.parse(l))):l.startsWith(Bs)?(i.var.push(r),s.push(ks),n.push(l)):(i.number.push(r),s.push(Un),n.push(parseFloat(l))),++r,gn)).split(gn);return{values:n,split:a,indexes:i,types:s}}function jn(e){return Me(e).values}function Yn(e){let{split:t,types:n}=Me(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===Un?r+=Ce(s[o]):a===zn?r+=L.transform(s[o]):r+=s[o]}return r}}var Gs=e=>typeof e=="number"?0:e;function Ws(e){let t=jn(e);return Yn(e)(t.map(Gs))}var ce={test:Rs,parse:jn,createTransformer:Yn,getAnimatableNone:Ws},qs=new Set(["brightness","contrast","saturate","opacity"]);function Ks(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[i]=n.match(xt)||[];if(!i)return e;let s=n.replace(i,""),r=qs.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var $s=/\b([a-z-]*)\(.*?\)/gu,ft={...ce,getAnimatableNone:e=>{let t=e.match($s);return t?t.map(Ks).join(" "):e}},Us={rotate:G,rotateX:G,rotateY:G,rotateZ:G,scale:We,scaleX:We,scaleY:We,scaleZ:We,skew:G,skewX:G,skewY:G,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:Ee,originX:tt,originY:tt,originZ:f},vn={...ue,transform:Math.round},Mt={...Pe,...Us,zIndex:vn,size:f,fillOpacity:Ee,strokeOpacity:Ee,numOctaves:vn},zs={...Mt,color:L,backgroundColor:L,outlineColor:L,fill:L,stroke:L,borderColor:L,borderTopColor:L,borderRightColor:L,borderBottomColor:L,borderLeftColor:L,filter:ft,WebkitFilter:ft},At=e=>zs[e];function Xn(e,t){let n=At(e);return n!==ft&&(n=ce),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var js=new Set(["auto","none","0"]);function Ys(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!js.has(r)&&Me(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=Xn(n,s)}var yn=e=>e===ue||e===f,bn=(e,t)=>parseFloat(e.split(", ")[t]),wn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return bn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?bn(r[1],e):0}},Xs=new Set(["x","y","z"]),Zs=ae.filter(e=>!Xs.has(e));function Js(e){let t=[];return Zs.forEach(n=>{let i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}var oe={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:wn(4,13),y:wn(5,14)};oe.translateX=oe.x;oe.translateY=oe.y;var X=new Set,pt=!1,mt=!1;function Zn(){if(mt){let e=Array.from(X).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=Js(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)})}mt=!1,pt=!1,X.forEach(e=>e.complete()),X.clear()}function Jn(){X.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mt=!0)})}function Qs(){Jn(),Zn()}var _t=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?(X.add(this),pt||(pt=!0,q.read(Jn),q.resolveKeyframes(Zn))):(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),X.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,X.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Qn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ei=e=>t=>typeof t=="string"&&t.startsWith(e),ti=ei("--"),er=ei("var(--"),Vt=e=>er(e)?tr.test(e.split("/*")[0].trim()):!1,tr=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,nr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ir(e){let t=nr.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var sr=4;function ni(e,t,n=1){B(n<=sr,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=ir(e);if(!i)return;let r=window.getComputedStyle(t).getPropertyValue(i);if(r){let o=r.trim();return Qn(o)?parseFloat(o):o}return Vt(s)?ni(s,t,n+1):s}var ii=e=>t=>t.test(e),rr={test:e=>e==="auto",parse:e=>e},si=[ue,f,j,G,an,on,rr],Tn=e=>si.find(ii(e)),ri=class extends _t{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(),Vt(l))){let u=ni(l,t.current);u!==void 0&&(e[a]=u),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Pn.has(n)||e.length!==2)return;let[i,s]=e,r=Tn(i),o=Tn(s);if(r!==o)if(yn(r)&&yn(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++)Ds(e[i])&&n.push(i);n.length&&Ys(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=oe[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]=oe[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()}},Sn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ce.test(e)||e==="0")&&!e.startsWith("url("));function or(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 ar(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=Sn(s,t),a=Sn(r,t);return be(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:or(e)||(n==="spring"||te(n))&&i}var lr=40,oi=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=z.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>lr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Qs(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=z.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!ar(e,n,i,s))if(r)this.options.duration=0;else{a?.(ne(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 ut(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 ur({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=ut(l,a,e+1/3),r=ut(l,a,e),o=ut(l,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function Ue(e,t){return n=>n>0?t:e}var ct=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},cr=[dt,Y,se],hr=e=>cr.find(t=>t.test(e));function Cn(e){let t=hr(e);if(be(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===se&&(n=ur(n)),n}var xn=(e,t)=>{let n=Cn(e),i=Cn(t);if(!n||!i)return Ue(e,t);let s={...n};return r=>(s.red=ct(n.red,i.red,r),s.green=ct(n.green,i.green,r),s.blue=ct(n.blue,i.blue,r),s.alpha=ie(n.alpha,i.alpha,r),Y.transform(s))},dr=(e,t)=>n=>t(e(n)),Nt=(...e)=>e.reduce(dr),gt=new Set(["none","hidden"]);function fr(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pr(e,t){return n=>ie(e,t,n)}function Dt(e){return typeof e=="number"?pr:typeof e=="string"?Vt(e)?Ue:L.test(e)?xn:vr:Array.isArray(e)?ai:typeof e=="object"?L.test(e)?xn:mr:Ue}function ai(e,t){let n=[...e],i=n.length,s=e.map((r,o)=>Dt(r)(r,t[o]));return r=>{for(let o=0;o<i;o++)n[o]=s[o](r);return n}}function mr(e,t){let n={...e,...t},i={};for(let s in n)e[s]!==void 0&&t[s]!==void 0&&(i[s]=Dt(e[s])(e[s],t[s]));return s=>{for(let r in i)n[r]=i[r](s);return n}}function gr(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 vr=(e,t)=>{let n=ce.createTransformer(t),i=Me(e),s=Me(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?gt.has(e)&&!s.values.length||gt.has(t)&&!i.values.length?fr(e,t):Nt(ai(gr(i,s),s.values),n):(be(!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.`),Ue(e,t))};function li(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Dt(e)(e,t)}function En({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),N=y=>p+T(y),M=y=>{let C=T(y),J=N(y);d.done=Math.abs(C)<=u,d.value=d.done?p:J},m,S,A=y=>{g(d.value)&&(m=y,S=wt({keyframes:[d.value,v(d.value)],velocity:Fn(N,y,d.value),damping:s,stiffness:r,restDelta:u,restSpeed:c}))};return A(0),{calculatedDuration:null,next:y=>{let C=!1;return!S&&m===void 0&&(C=!0,M(y),A(y)),m!==void 0&&y>=m?S.next(y-m):(!C&&M(y),d)}}}var yr=Ae(.42,0,1,1),br=Ae(0,0,.58,1),ui=Ae(.42,0,.58,1),Mn={linear:k,easeIn:yr,easeInOut:ui,easeOut:br,circIn:Ct,circInOut:qn,circOut:Ns,backIn:St,backInOut:Gn,backOut:Hn,anticipate:Wn},vt=e=>{if(He(e)){B(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return Ae(t,n,i,s)}else if(typeof e=="string")return B(Mn[e]!==void 0,`Invalid easing type '${e}'`),Mn[e];return e};function wr(e,t,n){let i=[],s=n||li,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]||k:t;a=Nt(l,a)}i.push(a)}return i}function Tr(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let r=e.length;if(B(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=wr(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=ee(e[h],e[h+1],c);return a[h](d)};return n?c=>u(Z(e[0],e[r-1],c)):u}function Sr(e,t){return e.map(n=>n*t)}function Cr(e,t){return e.map(()=>t||ui).splice(0,e.length-1)}function ze({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=it(i)?i.map(vt):vt(i),r={done:!1,value:t[0]},o=Sr(n&&n.length===t.length?n:st(t),e),a=Tr(o,t,{ease:Array.isArray(s)?s:Cr(t,s)});return{calculatedDuration:e,next:l=>(r.value=a(l),r.done=l>=e,r)}}var xr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>q.update(t,!0),stop:()=>Ke(t),now:()=>$e.isProcessing?$e.timestamp:z.now()}},Er={decay:En,inertia:En,tween:ze,keyframes:ze,spring:wt},Mr=e=>e/100,Lt=class extends oi{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||_t,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=te(t)?t:Er[t]||ze,a,l;o!==ze&&typeof e[0]!="number"&&(a=Nt(Mr,li(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=ke(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:A}=this.options;return{done:!0,value:A[A.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,N=s;if(d){let A=Math.min(this.currentTime,u)/c,y=Math.floor(A),C=A%1;!C&&A>=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"&&(N=r)),T=Z(0,1,C)*c}let M=p?{done:!1,value:a[0]}:N.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=ne(a,this.options,i)),w&&w(M.value),S&&this.finish(),M}get duration(){let{resolved:e}=this;return e?O(e.calculatedDuration):0}get time(){return O(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=O(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=xr,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)}},Ar=new Set(["opacity","clipPath","filter","transform"]),je=10,_r=2e4;function Vr(e){return te(e.type)||e.type==="spring"||!Qe(e.ease)}function Nr(e,t){let n=new Lt({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},s=[],r=0;for(;!i.done&&r<_r;)i=n.sample(r),s.push(i.value),r+=je;return{times:void 0,keyframes:s,duration:r-je,ease:"linear"}}var ci={anticipate:Wn,backInOut:Gn,circInOut:qn};function Dr(e){return e in ci}var An=class extends oi{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new ri(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"&&Q()&&Dr(r)&&(r=ci[r]),Vr(this.options)){let{onComplete:h,onUpdate:d,motionValue:g,element:v,...w}=this.options,b=Nr(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=et(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Be(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:h}=this.options;a.set(ne(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 O(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return O(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 k;let{animation:n}=t;Be(n,e)}return k}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 Lt({...d,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=F(this.time);l.setWithVelocity(g.sample(v-je).value,g.sample(v).value,je)}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 nt()&&n&&Ar.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Lr={type:"spring",stiffness:500,damping:25,restSpeed:10},Fr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pr={type:"keyframes",duration:.8},Or={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ir=(e,{keyframes:t})=>t.length>2?Pr:le.has(e)?e.startsWith("scale")?Fr(t[1]):Lr:Or;function Rr({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 hi=(e,t,n,i={},s,r)=>o=>{let a=Ie(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};Rr(a)||(c={...c,...Ir(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=ne(c.keyframes,a);if(d!==void 0)return q.update(()=>{c.onUpdate(d),c.onComplete()}),new we([])}return!r&&An.supports(c)?new An(c):new Lt(c)};function kr({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Br(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&&kr(c,h))continue;let v={delay:n,...Ie(o||{},h)},w=!1;if(window.MotionHandoffAnimation){let p=Ms(e);if(p){let T=window.MotionHandoffAnimation(p,h,q);T!==null&&(v.startTime=T,w=!0)}}Cs(e,h),d.start(hi(h,d,g,e.shouldReduceMotion&&Pn.has(h)?{type:!1}:v,e,w));let b=d.animation;b&&u.push(b)}return a&&Promise.all(u).then(()=>{q.update(()=>{a&&Ts(e,a)})}),u}function Hr(e){return e instanceof SVGElement&&e.tagName!=="svg"}var _n=()=>({min:0,max:0}),Ft=()=>({x:_n(),y:_n()}),Vn={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"]},yt={};for(let e in Vn)yt[e]={isEnabled:t=>Vn[e].some(n=>!!t[n])};var Gr=typeof window<"u",bt={current:null},di={current:!1};function Wr(){if(di.current=!0,!!Gr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bt.current=e.matches;e.addListener(t),t()}else bt.current=!1}var qr=[...si,L,ce],Kr=e=>qr.find(ii(e));function $r(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ur(e){return typeof e=="string"||Array.isArray(e)}var zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],jr=["initial",...zr];function fi(e){return $r(e.animate)||jr.some(t=>Ur(e[t]))}function Yr(e){return!!(fi(e)||e.variants)}function Xr(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,xe(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,xe(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var Nn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],pi=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=_t,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=z.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,q.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=fi(t),this.isVariantNode=Yr(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,re.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)),di.current||Wr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bt.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){re.delete(this.current),this.projection&&this.projection.unmount(),Ke(this.notifyUpdate),Ke(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=le.has(e),i=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&q.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 yt){let t=yt[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):Ft()}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<Nn.length;n++){let i=Nn[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=Xr(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=xe(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"&&(Qn(i)||Kn(i))?i=parseFloat(i):!Kr(i)&&ce.test(t)&&(i=Xn(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=In(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 On),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},mi=class extends pi{constructor(){super(...arguments),this.KeyframeResolver=ri}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}`)}))}},gi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Zr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Jr=ae.length;function Qr(e,t,n){let i="",s=!0;for(let r=0;r<Jr;r++){let o=ae[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=gi(a,Mt[o]);if(!l){s=!1;let c=Zr[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function vi(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(le.has(l)){o=!0;continue}else if(ti(l)){s[l]=u;continue}else{let c=gi(u,Mt[l]);l.startsWith("origin")?(a=!0,r[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=Qr(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 Dn(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function eo(e,t,n){let i=Dn(t,e.x,e.width),s=Dn(n,e.y,e.height);return`${i} ${s}`}var to={offset:"stroke-dashoffset",array:"stroke-dasharray"},no={offset:"strokeDashoffset",array:"strokeDasharray"};function io(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?to:no;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function so(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(vi(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=eo(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&&io(d,o,a,l,!1)}var yi=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"]),ro=e=>typeof e=="string"&&e.toLowerCase()==="svg";function bi(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 oo(e,t,n,i){bi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(yi.has(s)?s:Tt(s),t.attrs[s])}var ao={};function lo(e,{layout:t,layoutId:n}){return le.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ao[e]||e==="opacity")}function wi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(D(s[o])||t.style&&D(t.style[o])||lo(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function uo(e,t,n){let i=wi(e,t,n);for(let s in e)if(D(e[s])||D(t[s])){let r=ae.indexOf(s)!==-1?"attr"+s.charAt(0).toUpperCase()+s.substring(1):s;i[r]=e[s]}return i}var co=class extends mi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ft}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(le.has(t)){let n=At(t);return n&&n.default||0}return t=yi.has(t)?t:Tt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return uo(e,t,n)}build(e,t,n){so(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){oo(e,t,n,i)}mount(e){this.isSVGTag=ro(e.tagName),super.mount(e)}};function ho({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function fo(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 po(e,t){return ho(fo(e.getBoundingClientRect(),t))}function mo(e){return window.getComputedStyle(e)}var go=class extends mi{constructor(){super(...arguments),this.type="html",this.renderInstance=bi}readValueFromInstance(e,t){if(le.has(t)){let n=At(t);return n&&n.default||0}else{let n=mo(e),i=(ti(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return po(e,t)}build(e,t,n){vi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return wi(e,t,n)}};function vo(e,t){return e in t}var yo=class extends pi{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(vo(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 Ft()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function bo(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Hr(e)?new co(t):new go(t);n.mount(e),re.set(e,n)}function wo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new yo(t);n.mount(e),re.set(e,n)}function To(e,t,n){let i=D(e)?e:xe(e);return i.start(hi("",i,t,n)),i.animation}function So(e,t){return D(e)||typeof e=="number"||typeof e=="string"&&!Ge(t)}function Ti(e,t,n,i){let s=[];if(So(e,t))s.push(To(e,Ge(t)&&t.default||t,n&&(n.default||n)));else{let r=rt(e,t,i),o=r.length;B(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let l=r[a],u=l instanceof Element?bo:wo;re.has(l)||u(l);let c=re.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Br(c,{...t,transition:h},{}))}}return s}function Co(e,t,n){let i=[];return at(e,t,n,{spring:wt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...Ti(a,r,o))}),i}function xo(e){return Array.isArray(e)&&e.some(Array.isArray)}function Eo(e){function t(n,i,s){let r=[];xo(n)?r=Co(n,i,e):r=Ti(n,i,s,e);let o=new we(r);return e&&e.animations.push(o),o}return t}var oa=Eo();var Mo={some:0,all:1};function K(e,t,{root:n,margin:i,amount:s="some"}={}){let r=Re(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:Mo[s]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function Ao(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function Pt(e=.1,{startDelay:t=0,from:n=0,ease:i}={}){return(s,r)=>{let o=typeof n=="number"?n:Ao(n,r),a=Math.abs(o-s),l=e*a;if(i){let u=r*e;l=vt(i)(l/u)*u}return t+l}}var aa=Se.reduce((e,t)=>(e[t]=n=>Ke(n),e),{});var _o=Symbol.for("preact-signals");function It(){if(he>1)he--;else{for(var e,t=!1;_e!==void 0;){var n=_e;for(_e=void 0,Ot++;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(Ot=0,he--,t)throw e}}var x=void 0;var _e=void 0,he=0,Ot=0,Ye=0;function Si(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 P(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}P.prototype.brand=_o;P.prototype.h=function(){return!0};P.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)};P.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)}};P.prototype.subscribe=function(e){var t=this;return No(function(){var n=t.value,i=x;x=void 0;try{e(n)}finally{x=i}})};P.prototype.valueOf=function(){return this.value};P.prototype.toString=function(){return this.value+""};P.prototype.toJSON=function(){return this.value};P.prototype.peek=function(){var e=x;x=void 0;try{return this.value}finally{x=e}};Object.defineProperty(P.prototype,"value",{get:function(){var e=Si(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Ot>100)throw new Error("Cycle detected");this.v=e,this.i++,Ye++,he++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{It()}}}});function Ci(e){return new P(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 Ei(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 Ve(e){P.call(this,void 0),this.x=e,this.s=void 0,this.g=Ye-1,this.f=4}(Ve.prototype=new P).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ye))return!0;if(this.g=Ye,this.f|=1,this.i>0&&!xi(this))return this.f&=-2,!0;var e=x;try{Ei(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};Ve.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)}P.prototype.S.call(this,e)};Ve.prototype.U=function(e){if(this.t!==void 0&&(P.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)}};Ve.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(Ve.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Si(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Ai(e){var t=e.u;if(e.u=void 0,typeof t=="function"){he++;var n=x;x=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,Rt(e),i}finally{x=n,It()}}}function Rt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ai(e)}function Vo(e){if(x!==this)throw new Error("Out-of-order effect");Mi(this),x=e,this.f&=-2,8&this.f&&Rt(this),It()}function Ne(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Ne.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()}};Ne.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ai(this),Ei(this),he++;var e=x;return x=this,Vo.bind(this,e)};Ne.prototype.N=function(){2&this.f||(this.f|=2,this.o=_e,_e=this)};Ne.prototype.d=function(){this.f|=8,1&this.f||Rt(this)};function No(e){var t=new Ne(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}})},E=e=>{$(document).ready(()=>{window.NudgeMoment.check().then(t=>{t&&e()})})},I=(e,t)=>{if(e)throw new Error(t)};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Do=".NDGMNT__FloatingFixedButton__floating-menu",Lo=".NDGMNT__FloatingFixedButton__trigger-button",Fo='<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>',Po={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
+ `},Oo={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"}},kt=class{constructor(t){_(this,"container");_(this,"menu");_(this,"trigger");_(this,"options");_(this,"isOpenSignal",Ci(!1));let n=t.containerSelector??Vi,i=t.triggerContent??Fo;this.options={containerSelector:n,triggerContent:i,snsConfigs:t.snsConfigs},this.container=document.querySelector(n),this.menu=this.container.querySelector(Do),this.trigger=this.container.querySelector(Lo),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=Po[t.sns];let s=Oo[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&&W(t,{opacity:1,transform:"translateY(0)"},{delay:Pt(.1,{from:"last"}),duration:.3,ease:"easeInOut"})}handleClose(){let t=this.menu.querySelectorAll("li");t.length>0?W(t,{opacity:0,transform:"translateY(5px)"},{delay:Pt(.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)}};E(()=>{_i({FloatingFixedButton:kt}),window.NudgeMoment.net.emit("template__FloatingFixedButton")});function Io(){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");I(!n,"[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)}E(()=>{Io()});var de={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 Ro(){let e=document.querySelector(de.IMWEB_SLIDE_MENU_WRAP);I(!e,`${de.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=de.MOBILE_MENU_DIMMED;let i=document.createElement("div");i.className=de.MOBILE_MENU_CONTAINER;let s=document.createElement("ul");s.className=de.MOBILE_MENU_LIST,document.querySelectorAll(`${de.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")})}E(()=>{$("#mobile_slide_menu_wrap").css("display","none"),Ro()});var ko={TYPING_TEXT:".NDGMNT-home__hero-section__typing-text"},Bt=class{constructor(t,n={}){_(this,"element");_(this,"originalText");_(this,"duration");_(this,"delay");_(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(){K(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)}};E(()=>{document.querySelectorAll(ko.TYPING_TEXT).forEach(e=>{new Bt(e,{duration:200,delay:0})})});var Ht=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");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;
15
15
  left: 50%;
@@ -21,13 +21,13 @@
21
21
  opacity: 0;
22
22
  transition: all 0.3s ease-in-out;
23
23
  z-index: 100;
24
- `,this.toast=t,this.container.parentElement.appendChild(t)}showToast(t,n){this.toastTimeout&&clearTimeout(this.toastTimeout),this.toast.textContent=t,this.toast.style.backgroundColor=n==="good"?"#33ca7f":"#ff0054",this.toast.style.opacity="1",this.toast.style.top="10px",this.toastTimeout=setTimeout(()=>{this.toast.style.opacity="0",this.toast.style.top="-50px"},2e3)}};E(()=>{let e=document.querySelector(".NDGMNT__home__image-comparison");new Ht(e,{enableHover:!1})});function ko(e="NDGMNT__home__image-comparison"){let t=`
24
+ `,this.toast=t,this.container.parentElement.appendChild(t)}showToast(t,n){this.toastTimeout&&clearTimeout(this.toastTimeout),this.toast.textContent=t,this.toast.style.backgroundColor=n==="good"?"#33ca7f":"#ff0054",this.toast.style.opacity="1",this.toast.style.top="10px",this.toastTimeout=setTimeout(()=>{this.toast.style.opacity="0",this.toast.style.top="-50px"},2e3)}};E(()=>{let e=document.querySelector(".NDGMNT__home__image-comparison");new Ht(e,{enableHover:!1})});function Bo(e="NDGMNT__home__image-comparison"){let t=`
25
25
  <div class="NDGMNT-home__hero-section__tooltip-container">
26
26
  <div class="NDGMNT-home__hero-section__tooltip-wrapper NDGMNT-home__hero-section__tooltip--bounce">
27
27
  <div class="NDGMNT-home__hero-section__tooltip-bubble">\uC88C\uC6B0\uB85C \uC6C0\uC9C1\uC774\uC138\uC694</div>
28
28
  </div>
29
29
  </div>
30
- `,n=document.querySelector(`.${e}`);if(n){let s=function(){let r=n.querySelector(".NDGMNT-home__hero-section__tooltip-wrapper");r.classList.remove("NDGMNT-home__hero-section__tooltip--bounce"),setTimeout(()=>{r.classList.add("NDGMNT-home__hero-section__tooltip--bounce")},100)};var i=s;n.style.position="relative",n.insertAdjacentHTML("beforeend",t),setInterval(s,1e4)}}E(()=>{ko()});var Gt=class{constructor(t,n={}){this.container=t,this.beforeImage=t.querySelector("#mobile__before-image"),this.afterImage=t.querySelector("#mobile__after-image"),this.slider=t.querySelector("#mobile__slider"),this.isDragging=!1,this.enableHover=n.enableHover||!1,this.position=50,this.init(),this.toastTimeout=null,this.createToast()}init(){let t=()=>{let s=document.querySelector(".NDGMNT__mobile-hero-section__tooltip-container");s&&s.style.display!=="none"&&(s.style.display="none"),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 r=document.querySelector(".mobile__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=`
30
+ `,n=document.querySelector(`.${e}`);if(n){let s=function(){let r=n.querySelector(".NDGMNT-home__hero-section__tooltip-wrapper");r.classList.remove("NDGMNT-home__hero-section__tooltip--bounce"),setTimeout(()=>{r.classList.add("NDGMNT-home__hero-section__tooltip--bounce")},100)};var i=s;n.style.position="relative",n.insertAdjacentHTML("beforeend",t),setInterval(s,1e4)}}E(()=>{Bo()});var Gt=class{constructor(t,n={}){this.container=t,this.beforeImage=t.querySelector("#mobile__before-image"),this.afterImage=t.querySelector("#mobile__after-image"),this.slider=t.querySelector("#mobile__slider"),this.isDragging=!1,this.enableHover=n.enableHover||!1,this.position=50,this.init(),this.toastTimeout=null,this.createToast()}init(){let t=()=>{let s=document.querySelector(".NDGMNT__mobile-hero-section__tooltip-container");s&&s.style.display!=="none"&&(s.style.display="none"),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 r=document.querySelector(".mobile__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=`
31
31
  position: absolute;
32
32
  top: -50px;
33
33
  left: 50%;
@@ -45,10 +45,6 @@
45
45
  <div class="NDGMNT__mobile-hero-section__tooltip-bubble">\uC88C\uC6B0\uB85C \uC6C0\uC9C1\uC774\uC138\uC694</div>
46
46
  </div>
47
47
  </div>
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)}}E(()=>{Ho()});var Go={ANIMATE:"animate"},Wo={CANCEL:".cancel-line"};function qo(){let e=document.querySelectorAll(Wo.CANCEL),t=e[0];K(t,n=>{n.isIntersecting&&e.forEach((i,s)=>{setTimeout(()=>{i.classList.add(Go.ANIMATE)},s*1e3)})},{margin:"-40% 0px -40% 0px"})}E(()=>{qo()});var Ni={BLUR:".NDGMNT__strong-blur"};function Ko(){let e=Ni.BLUR;K(e,()=>{let t=document.querySelector(e);P(!t,`${Ni.BLUR} \uC120\uD0DD\uC790\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}E(()=>{Ko()});var Wt=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
- `);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));k(a,{opacity:h},{duration:.4,ease:"easeOut"})})}};E(()=>{new Wt({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 Di={CONTAINER:"scratch-container"},qt=class{constructor(t={}){A(this,"width");A(this,"height");A(this,"minScratchPercentage");A(this,"gradientColors");A(this,"canvas");A(this,"container");A(this,"ctx");A(this,"onComplete");A(this,"isScratching");A(this,"isComplete");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||(()=>{});let n=document.getElementById("scratch-canvas");P(!(n instanceof HTMLCanvasElement),"Canvas \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),this.canvas=n;let i=document.getElementById(Di.CONTAINER);P(!i,`${Di.CONTAINER}\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`),this.container=i;let s=this.canvas.getContext("2d");P(!s,"2D Context\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),this.ctx=s,this.isScratching=!1,this.isComplete=!1,this.onComplete=()=>{let r=document.querySelector("#content");r instanceof HTMLElement&&(r.style.filter="blur(0)",r.style.color="rgba(0,0,0,1)",r.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);let n=document.querySelector("#content");n instanceof HTMLElement&&(n.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(){await k(this.container,{scale:[.95,1]},{duration:.4,ease:"easeOut"}),this.onComplete()}};E(()=>{let e=new qt({width:300,height:300,minScratchPercentage:20,gradientColors:["#FFF1E6","#FD9A36","#FFBD6F"]})});function $o(){let e=document.querySelectorAll(".mobile__cancel-line"),t=e[0];K(t,n=>{n.isIntersecting&&e.forEach((i,s)=>{setTimeout(()=>{i.classList.add("animate")},s*1e3)})},{margin:"-40% 0px -40% 0px"})}function Uo(){let e=".NDGMNT__mobile__strong-blur";K(e,()=>{let t=document.querySelector(e);P(!t,`${e} \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}function zo(){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));k(l,{opacity:d},{duration:.4,ease:"easeOut"})})}}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?`})}E(()=>{$o(),Uo(),zo()});})();
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)}}E(()=>{Ho()});var Go={ANIMATE:"animate"},Wo={CANCEL:".cancel-line"};function qo(){let e=document.querySelectorAll(Wo.CANCEL),t=e[0];K(t,n=>{n.isIntersecting&&e.forEach((i,s)=>{setTimeout(()=>{i.classList.add(Go.ANIMATE)},s*1e3)})},{margin:"-40% 0px -40% 0px"})}E(()=>{qo()});var Ni={BLUR:".NDGMNT__strong-blur"};function Ko(){let e=Ni.BLUR;K(e,()=>{let t=document.querySelector(e);I(!t,`${Ni.BLUR} \uC120\uD0DD\uC790\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}E(()=>{Ko()});var Wt=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
+ `);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));W(a,{opacity:h},{duration:.4,ease:"easeOut"})})}};E(()=>{new Wt({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 Di={CONTAINER:"scratch-container"},qt=class{constructor(t={}){_(this,"width");_(this,"height");_(this,"minScratchPercentage");_(this,"gradientColors");_(this,"canvas");_(this,"container");_(this,"ctx");_(this,"onComplete");_(this,"isScratching");_(this,"isComplete");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||(()=>{});let n=document.getElementById("scratch-canvas");I(!(n instanceof HTMLCanvasElement),"Canvas \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),this.canvas=n;let i=document.getElementById(Di.CONTAINER);I(!i,`${Di.CONTAINER}\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`),this.container=i;let s=this.canvas.getContext("2d");I(!s,"2D Context\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),this.ctx=s,this.isScratching=!1,this.isComplete=!1,this.onComplete=()=>{let r=document.querySelector("#content");r instanceof HTMLElement&&(r.style.filter="blur(0)",r.style.color="rgba(0,0,0,1)",r.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);let n=document.querySelector("#content");n instanceof HTMLElement&&(n.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(){await W(this.container,{scale:[.95,1]},{duration:.4,ease:"easeOut"}),this.onComplete()}};E(()=>{let e=new qt({width:300,height:300,minScratchPercentage:20,gradientColors:["#FFF1E6","#FD9A36","#FFBD6F"]})});function $o(){let e=document.querySelectorAll(".mobile__cancel-line"),t=e[0];K(t,n=>{n.isIntersecting&&e.forEach((i,s)=>{setTimeout(()=>{i.classList.add("animate")},s*1e3)})},{margin:"-40% 0px -40% 0px"})}function Uo(){let e=".NDGMNT__mobile__strong-blur";K(e,()=>{let t=document.querySelector(e);I(!t,`${e} \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}E(()=>{$o(),Uo()});})();
package/dist/style.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * NudgeMoment v0.0.15
3
+ * NudgeMoment v0.0.16
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndgmnt/client--nudgemoment",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"