@ndgmnt/client--nudgemoment 0.0.21 → 0.0.23
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 +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* @license
|
3
|
-
* NudgeMoment v0.0.
|
3
|
+
* NudgeMoment v0.0.22
|
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 R=e=>e,be=R,H=R,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 ke(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 Re(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(Re(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 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&&Be(this.animation,e),R}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},ki={linearEasing:void 0};function Ri(e,t){let n=Oe(e);return()=>{var i;return(i=ki[t])!==null&&i!==void 0?i:n()}}var J=Ri(()=>{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 c={[t]:n};l&&(c.offset=l);let u=rn(a,s);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:i,duration:s,easing:Array.isArray(u)?"linear":u,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},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"&&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 c=sn(i,100,i.type);i.ease=J()?c.ease:Xt,i.duration=F(c.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 c;return(c=Fe.get(e))===null||c===void 0?void 0:c.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=ke(e,i),r=s.length;H(!!r,"No valid element provided.");let o=[];for(let a=0;a<r;a++){let l=s[a],c={...n};typeof c.delay=="function"&&(c.delay=c.delay(a,r));for(let u in t){let h=t[u],d={...Pe(c,u)};d.duration=d.duration?F(d.duration):d.duration,d.delay=F(d.delay||0),o.push(new Ki(l,u,h,d))}}return o}var $i=e=>{function t(n,i,s){return new we(ln(n,i,s,e))}return t},B=$i(),it=e=>Array.isArray(e)&&typeof e[0]!="number",ie=(e,t,n)=>e+(t-e)*n;function cn(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 cn(t,e.length-1),t}function un(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)?ke(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:un(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={},c=new Map,u=0,h=0,d=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){c.set(v,h);continue}else if(!Array.isArray(v)){c.set(v.name,Qt(h,v.at,u,c));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Qt(h,p.at,u,c));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:Zo,repeatDelay:Qo=0,...Li}=m,{ease:U=t.ease||"easeOut",duration:k}=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};k!==void 0&&(De.duration=F(k));let Le=sn(De,pe,Ut);U=Le.ease,k=Le.duration}k??(k=r);let zt=h+Kt;G.length===1&&G[0]===0&&(G[1]=1);let jt=G.length-C.length;if(jt>0&&cn(G,jt),C.length===1&&C.unshift(null),fe){H(fe<Qi,"Repeat count too high, must be less than 20"),k=Ui(k,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":un(Le,ge-1))}Yi(G,fe)}let Yt=zt+k;ji(S,C,U,G,zt,Yt),T=Math.max(Kt+k,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)}}u=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=c=>{let u=c*o,h=u*e,d=u-n,g=ht(c,o),v=Math.exp(-h);return dn-d/g*v},r=c=>{let h=c*o*e,d=h*n+n,g=Math.pow(o,2)*Math.pow(c,2)*e,v=Math.exp(-h),w=ht(Math.pow(c,2),o);return(-s(c)+dn>0?-1:1)*((d-g)*v)/w}):(s=c=>{let u=Math.exp(-c*e),h=(c-n)*e+1;return-.001+u*h},r=c=>{let u=Math.exp(-c*e),h=(n-c)*(e*e);return u*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 c=Math.pow(l,2)*i;return{stiffness:c,damping:o*2*Math.sqrt(i*c),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 cs(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:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:g}=cs({...n,velocity:-O(n.velocity||0)}),v=d||0,w=c/(2*Math.sqrt(l*u)),b=o-r,p=O(Math.sqrt(l/u)),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(Re(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]),us=e=>Array.isArray(e),hs=e=>us(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(c){r.has(c)&&(l.schedule(c),e()),c(o)}let l={schedule:(c,u=!1,h=!1)=>{let g=h&&i?t:n;return u&&r.add(c),g.has(c)||g.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(o=c,i){s=!0;return}i=!0,[t,n]=[n,t],t.forEach(a),t.clear(),i=!1,s&&(s=!1,l.process(c))}};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:c,preRender:u,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),c.process(s),u.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:ca}=ms(typeof requestAnimationFrame<"u"?requestAnimationFrame:R,!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 kn=(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=kn(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 R;let s=r=>Vs(r,0,1,e,n);return r=>r===0||r===1?r:kn(s(r),t,i)}var Rn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Bn=e=>t=>1-e(1-t),Hn=_e(.33,1.53,.69,.99),St=Bn(Hn),Gn=Rn(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=Rn(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 ce={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ee={...ce,transform:e=>Z(0,1,e)},We={...ce,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={...ce,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 ks(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",Rs="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(Rs),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 ue={test:ks,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={...ue,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={...ce,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=ue),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===ce||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=[ce,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 c=ni(l,t.current);c!==void 0&&(e[a]=c),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"&&(ue.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 c=this.initPlayback(e,t);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...c},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 ct(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 cr({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=ct(l,a,e+1/3),r=ct(l,a,e),o=ct(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 ut=(e,t,n)=>{let i=e*e,s=n*(t*t-i)+i;return s<0?0:Math.sqrt(s)},ur=[dt,Y,se],hr=e=>ur.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=cr(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=ut(n.red,i.red,r),s.green=ut(n.green,i.green,r),s.blue=ut(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=ue.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:c=.5,restSpeed:u}){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)<=c,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:c,restSpeed:u}))};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),ci=_e(.42,0,.58,1),Mn={linear:R,easeIn:yr,easeInOut:ci,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]||R: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,c=u=>{if(o&&u<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(u<e[h+1]);h++);let d=ee(e[h],e[h+1],u);return a[h](d)};return n?u=>c(Z(e[0],e[r-1],u)):c}function Sr(e,t){return e.map(n=>n*t)}function Cr(e,t){return e.map(()=>t||ci).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 c=o({...this.options,keyframes:e});s==="mirror"&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=Re(c));let{calculatedDuration:u}=c,h=u+i,d=h*(n+1)-i;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,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:c,resolvedDuration:u}=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-c/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>c;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let T=this.currentTime,N=s;if(d){let _=Math.min(this.currentTime,c)/u,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/u)):g==="mirror"&&(N=r)),T=Z(0,1,C)*u}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>=c: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 ui={anticipate:Wn,backInOut:Gn,circInOut:qn};function Dr(e){return e in ui}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:c}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(typeof r=="string"&&J()&&Dr(r)&&(r=ui[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 u=et(a.owner.current,l,e,{...this.options,duration:i,times:s,ease:r});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Be(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:h}=this.options;a.set(ne(e,this.options,t)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,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 R;let{animation:n}=t;Be(n,e)}return R}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:s,ease:r,times:o}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:c,onComplete:u,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 kr({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}var hi=(e,t,n,i={},s,r)=>o=>{let a=Pe(i,e)||{},l=a.delay||i.delay||0,{elapsed:c=0}=i;c=c-F(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,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};kr(a)||(u={...u,...Pr(e,u)}),u.duration&&(u.duration=F(u.duration)),u.repeatDelay&&(u.repeatDelay=F(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!r&&t.get()!==void 0){let d=ne(u.keyframes,a);if(d!==void 0)return q.update(()=>{u.onUpdate(d),u.onComplete()}),new we([])}return!r&&_n.supports(u)?new _n(u):new Lt(u)};function Rr({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 c=[],u=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||u&&Rr(u,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&&c.push(b)}return a&&Promise.all(c).then(()=>{q.update(()=>{a&&Ts(e,a)})}),c}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,ue],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:c}=r;this.onUpdate=c,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:u,...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)&&ue.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 c=gi(a,Mt[o]);if(!l){s=!1;let u=Zr[o]||o;i+=`${u}(${c}) `}n&&(t[o]=c)}}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 c=t[l];if(le.has(l)){o=!0;continue}else if(ti(l)){s[l]=c;continue}else{let u=gi(c,Mt[l]);l.startsWith("origin")?(a=!0,r[l]=u):i[l]=u}}if(t.transform||(o||n?i.transform=Jr(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:l="50%",originY:c="50%",originZ:u=0}=r;i.transformOrigin=`${l} ${c} ${u}`}}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,...c},u,h){if(vi(e,c,h),u){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 co(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 uo=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 co(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 uo(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],c=l instanceof Element?bo:wo;re.has(l)||c(l);let u=re.get(l),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Br(u,{...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 ua=Eo();var Mo={some:0,all:1};function K(e,t,{root:n,margin:i,amount:s="some"}={}){let r=ke(e),o=new WeakMap,a=c=>{c.forEach(u=>{let h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){let d=t(u);typeof d=="function"?o.set(u.target,d):l.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Mo[s]});return r.forEach(c=>l.observe(c)),()=>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 c=r*e;l=vt(i)(l/c)*c}return t+l}}var ha=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 E=void 0;var Ae=void 0,he=0,Ot=0,Ye=0;function Si(e){if(E!==void 0){var t=e.n;if(t===void 0||t.t!==E)return t={i:0,S:e,p:E.s,n:void 0,t:E,e:void 0,x:void 0,r:t},E.s!==void 0&&(E.s.n=t),E.s=t,e.n=t,32&E.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=E.s,t.n=void 0,E.s.n=t,E.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=E;E=void 0;try{e(n)}finally{E=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=E;E=void 0;try{return this.value}finally{E=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=E;try{Ei(this),E=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 E=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=E;E=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,kt(e),i}finally{E=n,Pt()}}}function kt(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(E!==this)throw new Error("Out-of-order effect");Mi(this),E=e,this.f&=-2,8&this.f&&kt(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=E;return E=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||kt(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}})},x=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
|
-
`},
|
11
|
+
"use strict";(()=>{var Ni=Object.defineProperty;var Pi=(e,t,n)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>Pi(e,typeof t!="symbol"?t+"":t,n);var I=e=>e,ye=I,B=I,ee=(e,t,n)=>{let i=t-e;return i===0?1:(n-e)/i},en=(e,t,n)=>{let i=t-e;return((n-e)%i+i)%i+e};function Le(e){let t;return()=>(t===void 0&&(t=e()),t)}var tn=Le(()=>window.ScrollTimeline!==void 0),Li=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(tn()&&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")}},be=class extends Li{then(e,t){return Promise.all(this.animations).then(e).catch(t)}},P=e=>e*1e3,O=e=>e/1e3;function Oe(e,t){return e?e[t]||e.default||e:void 0}function ke(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 ve=2e4;function Ie(e){let t=0,n=50,i=e.next(t);for(;!i.done&&t<ve;)t+=n,i=e.next(t);return t>=ve?1/0:t}function nn(e,t=100,n){let i=n({...e,keyframes:[0,t]}),s=Math.min(Ie(i),ve);return{type:"keyframes",ease:r=>i.next(s*r).value/t,duration:O(s)}}function te(e){return typeof e=="function"}function Re(e,t){e.timeline=t,e.onfinish=null}var Oi=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=P(e))}get speed(){return this.animation?this.animation.playbackRate:1}set speed(e){this.animation&&(this.animation.playbackRate=e)}get state(){return this.animation?this.animation.playState:"finished"}get startTime(){return this.animation?this.animation.startTime:null}get finished(){return this.animation?this.animation.finished:Promise.resolve()}play(){this.animation&&this.animation.play()}pause(){this.animation&&this.animation.pause()}stop(){!this.animation||this.state==="idle"||this.state==="finished"||(this.animation.commitStyles&&this.animation.commitStyles(),this.cancel())}flatten(){var e;this.animation&&((e=this.animation.effect)===null||e===void 0||e.updateTiming({easing:"linear"}))}attachTimeline(e){return this.animation&&Re(this.animation,e),I}complete(){this.animation&&this.animation.finish()}cancel(){try{this.animation&&this.animation.cancel()}catch{}}},ki={linearEasing:void 0};function Ii(e,t){let n=Le(e);return()=>{var i;return(i=ki[t])!==null&&i!==void 0?i:n()}}var J=Ii(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Be=e=>Array.isArray(e)&&typeof e[0]=="number",Ze=(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"&&J()||!e||typeof e=="string"&&(e in Ye||J())||Be(e)||Array.isArray(e)&&e.every(Qe))}var ge=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Ye={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ge([0,.65,.55,1]),circOut:ge([.55,0,1,.45]),backIn:ge([.31,.01,.66,-.59]),backOut:ge([.33,1.53,.69,.99])};function sn(e,t){if(e)return typeof e=="function"&&J()?Ze(e,t):Be(e)?ge(e):Array.isArray(e)?e.map(n=>sn(n,t)||Ye.easeOut):Ye[e]}function Je(e,t,n,{delay:i=0,duration:s=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){let l={[t]:n};c&&(l.offset=c);let u=sn(a,s);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:i,duration:s,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}var we=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),q=we("deg"),j=we("%"),f=we("px"),rn=we("vh"),on=we("vw"),et={...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},Ri=e=>e!==null;function ne(e,{repeat:t,repeatType:n="loop"},i){let s=e.filter(Ri),r=t&&n!=="loop"&&t%2===1?0:s.length-1;return!r||i===void 0?s[r]:i}function Bi(e,t,n){e.style.setProperty(`--${t}`,n)}function Hi(e,t,n){e.style[t]=n}var Gi=Le(()=>{try{document.createElement("div").animate({opacity:[1]})}catch{return!1}return!0}),tt=Le(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ne=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]));!Gi()&&t.length<2&&t.unshift(n())}var Xt="easeOut";function Yt(e){let t=Ne.get(e)||new Map;return Ne.set(e,t),Ne.get(e)}var Ki=class extends Oi{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=Yt(e).get(t);r&&r.stop();let o=()=>t.startsWith("--")?e.style.getPropertyValue(t):window.getComputedStyle(e)[t];if(Array.isArray(n)||(n=[n]),qi(t,n,o),te(i.type)){let l=nn(i,100,i.type);i.ease=J()?l.ease:Xt,i.duration=P(l.duration),i.type="keyframes"}else i.ease=i.ease||Xt;let a=()=>{this.setValue(e,t,ne(n,i)),this.cancel(),this.resolveFinishedPromise()},c=()=>{this.setValue=s?Bi:Hi,this.options=i,this.updateFinishedPromise(),this.removeAnimation=()=>{var l;return(l=Ne.get(e))===null||l===void 0?void 0:l.delete(t)}};tt()?(super(Je(e,t,n,i)),c(),i.autoplay===!1&&this.animation.pause(),this.animation.onfinish=a,Yt(e).set(t,this)):(super(),c(),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 an(e,t,n,i){let s=ke(e,i),r=s.length;B(!!r,"No valid element provided.");let o=[];for(let a=0;a<r;a++){let c=s[a],l={...n};typeof l.delay=="function"&&(l.delay=l.delay(a,r));for(let u in t){let h=t[u],d={...Oe(l,u)};d.duration=d.duration?P(d.duration):d.duration,d.delay=P(d.delay||0),o.push(new Ki(c,u,h,d))}}return o}var Wi=e=>{function t(n,i,s){return new be(an(n,i,s,e))}return t},R=Wi(),nt=e=>Array.isArray(e)&&typeof e[0]!="number",ie=(e,t,n)=>e+(t-e)*n;function ln(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 it(e){let t=[0];return ln(t,e.length-1),t}function cn(e,t){return nt(e)?e[en(0,e.length,t)]:e}var F=e=>!!(e&&e.getVelocity);function He(e){return typeof e=="object"&&!Array.isArray(e)}function st(e,t,n,i){return typeof e=="string"&&He(t)?ke(e,n,i):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function $i(e,t,n){return e*(t+1)}function Zt(e,t,n,i){var s;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(s=i.get(t))!==null&&s!==void 0?s:e}function un(e,t){e.indexOf(t)===-1&&e.push(t)}function rt(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&&(rt(e,s),i--)}}function Ui(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 ji(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 Yi="easeInOut",Zi=20;function ot(e,{defaultTransition:t={},...n}={},i,s){let r=t.duration||.3,o=new Map,a=new Map,c={},l=new Map,u=0,h=0,d=0;for(let g=0;g<e.length;g++){let v=e[g];if(typeof v=="string"){l.set(v,h);continue}else if(!Array.isArray(v)){l.set(v.name,Zt(h,v.at,u,l));continue}let[w,b,p={}]=v;p.at!==void 0&&(h=Zt(h,p.at,u,l));let T=0,D=(M,m,x,A=0,y=0)=>{let S=Qi(M),{delay:Q=0,times:G=it(S),type:Xe="keyframes",repeat:de,repeatType:Xo,repeatDelay:Yo=0,...Fi}=m,{ease:z=t.ease||"easeOut",duration:k}=m,Kt=typeof Q=="function"?Q(A,y):Q,Wt=S.length,$t=te(Xe)?Xe:s?.[Xe];if(Wt<=2&&$t){let fe=100;if(Wt===2&&ts(S)){let pe=S[1]-S[0];fe=Math.abs(pe)}let De={...Fi};k!==void 0&&(De.duration=P(k));let Fe=nn(De,fe,$t);z=Fe.ease,k=Fe.duration}k??(k=r);let zt=h+Kt;G.length===1&&G[0]===0&&(G[1]=1);let Ut=G.length-S.length;if(Ut>0&&ln(G,Ut),S.length===1&&S.unshift(null),de){B(de<Zi,"Repeat count too high, must be less than 20"),k=$i(k,de);let fe=[...S],De=[...G];z=Array.isArray(z)?[...z]:[z];let Fe=[...z];for(let pe=0;pe<de;pe++){S.push(...fe);for(let me=0;me<fe.length;me++)G.push(De[me]+(pe+1)),z.push(me===0?"linear":cn(Fe,me-1))}ji(G,de)}let jt=zt+k;Ui(x,S,z,G,zt,jt),T=Math.max(Kt+k,T),d=Math.max(jt,d)};if(F(w)){let M=Qt(w,a);D(b,p,Jt("default",M))}else{let M=st(w,b,i,c),m=M.length;for(let x=0;x<m;x++){b=b,p=p;let A=M[x],y=Qt(A,a);for(let S in b)D(b[S],Ji(p,S),Jt(S,y),x,m)}}u=h,h+=T}return a.forEach((g,v)=>{for(let w in g){let b=g[w];b.sort(Xi);let p=[],T=[],D=[];for(let m=0;m<b.length;m++){let{at:x,value:A,easing:y}=b[m];p.push(A),T.push(ee(0,d,x)),D.push(y||"easeOut")}T[0]!==0&&(T.unshift(0),p.unshift(p[0]),D.unshift(Yi)),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:D,times:T,...n}}}),o}function Qt(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Jt(e,t){return t[e]||(t[e]=[]),t[e]}function Qi(e){return Array.isArray(e)?e:[e]}function Ji(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var es=e=>typeof e=="number",ts=e=>e.every(es);var Z=(e,t,n)=>n>t?t:n<e?e:n;function Fn(e,t){return t?e*(1e3/t):0}var ns=5;function Nn(e,t,n){let i=Math.max(t-ns,0);return Fn(n-e(i),t-i)}var _={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},hn=.001;function is({duration:e=_.duration,bounce:t=_.bounce,velocity:n=_.velocity,mass:i=_.mass}){let s,r;ye(e<=P(_.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Z(_.minDamping,_.maxDamping,o),e=Z(_.minDuration,_.maxDuration,O(e)),o<1?(s=l=>{let u=l*o,h=u*e,d=u-n,g=ut(l,o),v=Math.exp(-h);return hn-d/g*v},r=l=>{let h=l*o*e,d=h*n+n,g=Math.pow(o,2)*Math.pow(l,2)*e,v=Math.exp(-h),w=ut(Math.pow(l,2),o);return(-s(l)+hn>0?-1:1)*((d-g)*v)/w}):(s=l=>{let u=Math.exp(-l*e),h=(l-n)*e+1;return-.001+u*h},r=l=>{let u=Math.exp(-l*e),h=(n-l)*(e*e);return u*h});let a=5/e,c=rs(s,r,a);if(e=P(e),isNaN(c))return{stiffness:_.stiffness,damping:_.damping,duration:e};{let l=Math.pow(c,2)*i;return{stiffness:l,damping:o*2*Math.sqrt(i*l),duration:e}}}var ss=12;function rs(e,t,n){let i=n;for(let s=1;s<ss;s++)i=i-e(i)/t(i);return i}function ut(e,t){return e*Math.sqrt(1-t*t)}var os=["duration","bounce"],as=["stiffness","damping","mass"];function dn(e,t){return t.some(n=>e[n]!==void 0)}function ls(e){let t={velocity:_.velocity,stiffness:_.stiffness,damping:_.damping,mass:_.mass,isResolvedFromDuration:!1,...e};if(!dn(e,as)&&dn(e,os))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:_.mass,stiffness:s,damping:r}}else{let n=is(e);t={...t,...n,mass:_.mass},t.isResolvedFromDuration=!0}return t}function bt(e=_.visualDuration,t=_.bounce){let n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:s}=n,r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:c,damping:l,mass:u,duration:h,velocity:d,isResolvedFromDuration:g}=ls({...n,velocity:-O(n.velocity||0)}),v=d||0,w=l/(2*Math.sqrt(c*u)),b=o-r,p=O(Math.sqrt(c/u)),T=Math.abs(b)<5;i||(i=T?_.restSpeed.granular:_.restSpeed.default),s||(s=T?_.restDelta.granular:_.restDelta.default);let D;if(w<1){let m=ut(p,w);D=x=>{let A=Math.exp(-w*p*x);return o-A*((v+w*p*b)/m*Math.sin(m*x)+b*Math.cos(m*x))}}else if(w===1)D=m=>o-Math.exp(-p*m)*(b+(v+p*b)*m);else{let m=p*Math.sqrt(w*w-1);D=x=>{let A=Math.exp(-w*p*x),y=Math.min(m*x,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 x=D(m);if(g)a.done=m>=h;else{let A=0;w<1&&(A=m===0?P(v):Nn(D,m,x));let y=Math.abs(A)<=i,S=Math.abs(o-x)<=s;a.done=y&&S}return a.value=a.done?o:x,a},toString:()=>{let m=Math.min(Ie(M),ve),x=Ze(A=>M.next(m*A).value,m,30);return m+"ms "+x}};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),us=e=>cs(e)?e[e.length-1]||0:e,hs={skipAnimations:!1,useManualTiming:!1};function ds(e){let t=new Set,n=new Set,i=!1,s=!1,r=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(l){r.has(l)&&(c.schedule(l),e()),l(o)}let c={schedule:(l,u=!1,h=!1)=>{let g=h&&i?t:n;return u&&r.add(l),g.has(l)||g.add(l),l},cancel:l=>{n.delete(l),r.delete(l)},process:l=>{if(o=l,i){s=!0;return}i=!0,[t,n]=[n,t],t.forEach(a),t.clear(),i=!1,s&&(s=!1,c.process(l))}};return c}var Te=["read","resolveKeyframes","update","preRender","render","postRender"],fs=40;function ps(e,t){let n=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Te.reduce((p,T)=>(p[T]=ds(r),p),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:h,postRender:d}=o,g=()=>{let p=performance.now();n=!1,s.delta=i?1e3/60:Math.max(Math.min(p-s.timestamp,fs),1),s.timestamp=p,s.isProcessing=!0,a.process(s),c.process(s),l.process(s),u.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:Te.reduce((p,T)=>{let D=o[T];return p[T]=(M,m=!1,x=!1)=>(n||v(),D.schedule(M,m,x)),p},{}),cancel:p=>{for(let T=0;T<Te.length;T++)o[Te[T]].cancel(p)},state:s,steps:o}}var{schedule:K,cancel:Ke,state:We,steps:aa}=ps(typeof requestAnimationFrame<"u"?requestAnimationFrame:I,!0),qe;function ms(){qe=void 0}var U={now:()=>(qe===void 0&&U.set(We.isProcessing||hs.useManualTiming?We.timestamp:performance.now()),qe),set:e=>{qe=e,queueMicrotask(ms)}},Ln=class{constructor(){this.subscriptions=[]}add(e){return un(this.subscriptions,e),()=>rt(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 fn=30,gs=e=>!isNaN(parseFloat(e)),vs=class{constructor(e,t={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{let s=U.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=U.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=gs(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ln);let n=this.events[e].add(t);return e==="change"?()=>{n(),K.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=U.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>fn)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,fn);return Fn(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Se(e,t){return new vs(e,t)}function pn(e){let t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function On(e,t,n,i){if(typeof t=="function"){let[s,r]=pn(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]=pn(i);t=t(n!==void 0?n:e.custom,s,r)}return t}function ys(e,t,n){let i=e.getProps();return On(i,t,i.custom,e)}function bs(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Se(n))}function ws(e,t){let n=ys(e,t),{transitionEnd:i={},transition:s={},...r}=n||{};r={...r,...i};for(let o in r){let a=us(r[o]);bs(e,o,a)}}function Ts(e){return!!(F(e)&&e.add)}function xs(e,t){let n=e.getValue("willChange");if(Ts(n))return n.add(t)}var wt=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ss="framerAppearId",Cs="data-"+wt(Ss);function Es(e){return e.props[Cs]}var kn=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Ms=1e-7,As=12;function Vs(e,t,n,i,s){let r,o,a=0;do o=t+(n-t)/2,r=kn(o,i,s)-e,r>0?n=o:t=o;while(Math.abs(r)>Ms&&++a<As);return o}function Me(e,t,n,i){if(e===t&&n===i)return I;let s=r=>Vs(r,0,1,e,n);return r=>r===0||r===1?r:kn(s(r),t,i)}var In=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Rn=e=>t=>1-e(1-t),Bn=Me(.33,1.53,.69,.99),Tt=Rn(Bn),Hn=In(Tt),Gn=e=>(e*=2)<1?.5*Tt(e):.5*(2-Math.pow(2,-10*(e-1))),xt=e=>1-Math.sin(Math.acos(e)),_s=Rn(xt),qn=In(xt),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 ce={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ce={...ce,transform:e=>Z(0,1,e)},Ge={...ce,default:1},xe=e=>Math.round(e*1e5)/1e5,St=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fs(e){return e==null}var Ns=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ct=(e,t)=>n=>!!(typeof n=="string"&&Ns.test(n)&&n.startsWith(e)||t&&!Fs(n)&&Object.prototype.hasOwnProperty.call(n,t)),Wn=(e,t,n)=>i=>{if(typeof i!="string")return i;let[s,r,o,a]=i.match(St);return{[e]:parseFloat(s),[t]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ps=e=>Z(0,255,e),at={...ce,transform:e=>Math.round(Ps(e))},X={test:Ct("rgb","red"),parse:Wn("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+at.transform(e)+", "+at.transform(t)+", "+at.transform(n)+", "+xe(Ce.transform(i))+")"};function Ls(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 ht={test:Ct("#"),parse:Ls,transform:X.transform},se={test:Ct("hsl","hue"),parse:Wn("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+j.transform(xe(t))+", "+j.transform(xe(n))+", "+xe(Ce.transform(i))+")"},N={test:e=>X.test(e)||ht.test(e)||se.test(e),parse:e=>X.test(e)?X.parse(e):se.test(e)?se.parse(e):ht.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?X.transform(e):se.transform(e)},Os=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ks(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(St))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Os))===null||n===void 0?void 0:n.length)||0)>0}var $n="number",zn="color",Is="var",Rs="var(",mn="${}",Bs=/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 Ee(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},s=[],r=0,a=t.replace(Bs,c=>(N.test(c)?(i.color.push(r),s.push(zn),n.push(N.parse(c))):c.startsWith(Rs)?(i.var.push(r),s.push(Is),n.push(c)):(i.number.push(r),s.push($n),n.push(parseFloat(c))),++r,mn)).split(mn);return{values:n,split:a,indexes:i,types:s}}function Un(e){return Ee(e).values}function jn(e){let{split:t,types:n}=Ee(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===$n?r+=xe(s[o]):a===zn?r+=N.transform(s[o]):r+=s[o]}return r}}var Hs=e=>typeof e=="number"?0:e;function Gs(e){let t=Un(e);return jn(e)(t.map(Hs))}var ue={test:ks,parse:Un,createTransformer:jn,getAnimatableNone:Gs},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(St)||[];if(!i)return e;let s=n.replace(i,""),r=qs.has(t)?1:0;return i!==n&&(r*=100),t+"("+r+s+")"}var Ws=/\b([a-z-]*)\(.*?\)/gu,dt={...ue,getAnimatableNone:e=>{let t=e.match(Ws);return t?t.map(Ks).join(" "):e}},$s={rotate:q,rotateX:q,rotateY:q,rotateZ:q,scale:Ge,scaleX:Ge,scaleY:Ge,scaleZ:Ge,skew:q,skewX:q,skewY:q,distance:f,translateX:f,translateY:f,translateZ:f,x:f,y:f,z:f,perspective:f,transformPerspective:f,opacity:Ce,originX:et,originY:et,originZ:f},gn={...ce,transform:Math.round},Et={...Pe,...$s,zIndex:gn,size:f,fillOpacity:Ce,strokeOpacity:Ce,numOctaves:gn},zs={...Et,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:dt,WebkitFilter:dt},Mt=e=>zs[e];function Xn(e,t){let n=Mt(e);return n!==dt&&(n=ue),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Us=new Set(["auto","none","0"]);function js(e,t,n){let i=0,s;for(;i<e.length&&!s;){let r=e[i];typeof r=="string"&&!Us.has(r)&&Ee(r).values.length&&(s=e[i]),i++}if(s&&n)for(let r of t)e[r]=Xn(n,s)}var vn=e=>e===ce||e===f,yn=(e,t)=>parseFloat(e.split(", ")[t]),bn=(e,t)=>(n,{transform:i})=>{if(i==="none"||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/u);if(s)return yn(s[1],t);{let r=i.match(/^matrix\((.+)\)$/u);return r?yn(r[1],e):0}},Xs=new Set(["x","y","z"]),Ys=ae.filter(e=>!Xs.has(e));function Zs(e){let t=[];return Ys.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:bn(4,13),y:bn(5,14)};oe.translateX=oe.x;oe.translateY=oe.y;var Y=new Set,ft=!1,pt=!1;function Yn(){if(pt){let e=Array.from(Y).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{let s=Zs(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)})}pt=!1,ft=!1,Y.forEach(e=>e.complete()),Y.clear()}function Zn(){Y.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(pt=!0)})}function Qs(){Zn(),Yn()}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?(Y.add(this),ft||(ft=!0,K.read(Zn),K.resolveKeyframes(Yn))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let s=0;s<e.length;s++)if(e[s]===null)if(s===0){let r=i?.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&t){let a=n.readValue(t,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}else e[s]=e[s-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Y.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Y.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Qn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Jn=e=>t=>typeof t=="string"&&t.startsWith(e),ei=Jn("--"),Js=Jn("var(--"),Vt=e=>Js(e)?er.test(e.split("/*")[0].trim()):!1,er=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nr(e){let t=tr.exec(e);if(!t)return[,];let[,n,i,s]=t;return[`--${n??i}`,s]}var ir=4;function ti(e,t,n=1){B(n<=ir,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=nr(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)?ti(s,t,n+1):s}var ni=e=>t=>t.test(e),sr={test:e=>e==="auto",parse:e=>e},ii=[ce,f,j,q,on,rn,sr],wn=e=>ii.find(ni(e)),si=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 c=e[a];if(typeof c=="string"&&(c=c.trim(),Vt(c))){let l=ti(c,t.current);l!==void 0&&(e[a]=l),a===e.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Pn.has(n)||e.length!==2)return;let[i,s]=e,r=wn(i),o=wn(s);if(r!==o)if(vn(r)&&vn(o))for(let a=0;a<e.length;a++){let c=e[a];typeof c=="string"&&(e[a]=parseFloat(c))}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&&js(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,c])=>{t.getValue(a).set(c)}),this.resolveNoneKeyframes()}},Tn=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ue.test(e)||e==="0")&&!e.startsWith("url("));function rr(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 or(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=Tn(s,t),a=Tn(r,t);return ye(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:rr(e)||(n==="spring"||te(n))&&i}var ar=40,ri=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=U.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>ar?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Qs(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=U.now(),this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:s,delay:r,onComplete:o,onUpdate:a,isGenerator:c}=this.options;if(!c&&!or(e,n,i,s))if(r)this.options.duration=0;else{a?.(ne(e,this.options,t)),o?.(),this.resolveFinishedPromise();return}let l=this.initPlayback(e,t);l!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...l},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 lt(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 lr({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,c=2*n-a;s=lt(c,a,e+1/3),r=lt(c,a,e),o=lt(c,a,e-1/3)}return{red:Math.round(s*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:i}}function $e(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=[ht,X,se],ur=e=>cr.find(t=>t.test(e));function xn(e){let t=ur(e);if(ye(!!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=lr(n)),n}var Sn=(e,t)=>{let n=xn(e),i=xn(t);if(!n||!i)return $e(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),X.transform(s))},hr=(e,t)=>n=>t(e(n)),_t=(...e)=>e.reduce(hr),mt=new Set(["none","hidden"]);function dr(e,t){return mt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fr(e,t){return n=>ie(e,t,n)}function Dt(e){return typeof e=="number"?fr:typeof e=="string"?Vt(e)?$e:N.test(e)?Sn:gr:Array.isArray(e)?oi:typeof e=="object"?N.test(e)?Sn:pr:$e}function oi(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 pr(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 mr(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]],c=(n=e.values[a])!==null&&n!==void 0?n:0;i[r]=c,s[o]++}return i}var gr=(e,t)=>{let n=ue.createTransformer(t),i=Ee(e),s=Ee(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?mt.has(e)&&!s.values.length||mt.has(t)&&!i.values.length?dr(e,t):_t(oi(mr(i,s),s.values),n):(ye(!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.`),$e(e,t))};function ai(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ie(e,t,n):Dt(e)(e,t)}function Cn({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){let h=e[0],d={done:!1,value:h},g=y=>a!==void 0&&y<a||c!==void 0&&y>c,v=y=>a===void 0?c:c===void 0||Math.abs(a-y)<Math.abs(c-y)?a:c,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),D=y=>p+T(y),M=y=>{let S=T(y),Q=D(y);d.done=Math.abs(S)<=l,d.value=d.done?p:Q},m,x,A=y=>{g(d.value)&&(m=y,x=bt({keyframes:[d.value,v(d.value)],velocity:Nn(D,y,d.value),damping:s,stiffness:r,restDelta:l,restSpeed:u}))};return A(0),{calculatedDuration:null,next:y=>{let S=!1;return!x&&m===void 0&&(S=!0,M(y),A(y)),m!==void 0&&y>=m?x.next(y-m):(!S&&M(y),d)}}}var vr=Me(.42,0,1,1),yr=Me(0,0,.58,1),li=Me(.42,0,.58,1),En={linear:I,easeIn:vr,easeInOut:li,easeOut:yr,circIn:xt,circInOut:qn,circOut:_s,backIn:Tt,backInOut:Hn,backOut:Bn,anticipate:Gn},gt=e=>{if(Be(e)){B(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return Me(t,n,i,s)}else if(typeof e=="string")return B(En[e]!==void 0,`Invalid easing type '${e}'`),En[e];return e};function br(e,t,n){let i=[],s=n||ai,r=e.length-1;for(let o=0;o<r;o++){let a=s(e[o],e[o+1]);if(t){let c=Array.isArray(t)?t[o]||I:t;a=_t(c,a)}i.push(a)}return i}function wr(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=br(t,i,s),c=a.length,l=u=>{if(o&&u<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(u<e[h+1]);h++);let d=ee(e[h],e[h+1],u);return a[h](d)};return n?u=>l(Z(e[0],e[r-1],u)):l}function Tr(e,t){return e.map(n=>n*t)}function xr(e,t){return e.map(()=>t||li).splice(0,e.length-1)}function ze({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=nt(i)?i.map(gt):gt(i),r={done:!1,value:t[0]},o=Tr(n&&n.length===t.length?n:it(t),e),a=wr(o,t,{ease:Array.isArray(s)?s:xr(t,s)});return{calculatedDuration:e,next:c=>(r.value=a(c),r.done=c>=e,r)}}var Sr=e=>{let t=({timestamp:n})=>e(n);return{start:()=>K.update(t,!0),stop:()=>Ke(t),now:()=>We.isProcessing?We.timestamp:U.now()}},Cr={decay:Cn,inertia:Cn,tween:ze,keyframes:ze,spring:bt},Er=e=>e/100,Ft=class extends ri{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,c)=>this.onKeyframesResolved(a,c);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:Cr[t]||ze,a,c;o!==ze&&typeof e[0]!="number"&&(a=_t(Er,ai(e[0],e[1])),e=[0,100]);let l=o({...this.options,keyframes:e});s==="mirror"&&(c=o({...this.options,keyframes:[...e].reverse(),velocity:-r})),l.calculatedDuration===null&&(l.calculatedDuration=Ie(l));let{calculatedDuration:u}=l,h=u+i,d=h*(n+1)-i;return{generator:l,mirroredGenerator:c,mapPercentToKeyframes:a,calculatedDuration:u,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:c,totalDuration:l,resolvedDuration:u}=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-l/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>l;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let T=this.currentTime,D=s;if(d){let A=Math.min(this.currentTime,l)/u,y=Math.floor(A),S=A%1;!S&&A>=1&&(S=1),S===1&&y--,y=Math.min(y,d+1),!!(y%2)&&(g==="reverse"?(S=1-S,v&&(S-=v/u)):g==="mirror"&&(D=r)),T=Z(0,1,S)*u}let M=p?{done:!1,value:a[0]}:D.next(T);o&&(M.value=o(M.value));let{done:m}=M;!p&&c!==null&&(m=this.speed>=0?this.currentTime>=l:this.currentTime<=0);let x=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&m);return x&&i!==void 0&&(M.value=ne(a,this.options,i)),w&&w(M.value),x&&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=P(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=Sr,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)}},Mr=new Set(["opacity","clipPath","filter","transform"]),Ue=10,Ar=2e4;function Vr(e){return te(e.type)||e.type==="spring"||!Qe(e.ease)}function _r(e,t){let n=new Ft({...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+=Ue;return{times:void 0,keyframes:s,duration:r-Ue,ease:"linear"}}var ci={anticipate:Gn,backInOut:Hn,circInOut:qn};function Dr(e){return e in ci}var Mn=class extends ri{constructor(e){super(e);let{name:t,motionValue:n,element:i,keyframes:s}=this.options;this.resolver=new si(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:c,startTime:l}=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=_r(e,w);e=b.keyframes,e.length===1&&(e[1]=e[0]),i=b.duration,s=b.times,r=b.ease,o="keyframes"}let u=Je(a.owner.current,c,e,{...this.options,duration:i,times:s,ease:r});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Re(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:h}=this.options;a.set(ne(e,this.options,t)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,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=P(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 I;let{animation:n}=t;Re(n,e)}return I}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:c,onUpdate:l,onComplete:u,element:h,...d}=this.options,g=new Ft({...d,keyframes:n,duration:i,type:s,ease:r,times:o,isGenerator:!0}),v=P(this.time);c.setWithVelocity(g.sample(v-Ue).value,g.sample(v).value,Ue)}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 tt()&&n&&Mr.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&s!=="mirror"&&r!==0&&o!=="inertia"}},Fr={type:"spring",stiffness:500,damping:25,restSpeed:10},Nr=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Pr={type:"keyframes",duration:.8},Lr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Or=(e,{keyframes:t})=>t.length>2?Pr:le.has(e)?e.startsWith("scale")?Nr(t[1]):Fr:Lr;function kr({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:r,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var ui=(e,t,n,i={},s,r)=>o=>{let a=Oe(i,e)||{},c=a.delay||i.delay||0,{elapsed:l=0}=i;l=l-P(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,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};kr(a)||(u={...u,...Or(e,u)}),u.duration&&(u.duration=P(u.duration)),u.repeatDelay&&(u.repeatDelay=P(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),h&&!r&&t.get()!==void 0){let d=ne(u.keyframes,a);if(d!==void 0)return K.update(()=>{u.onUpdate(d),u.onComplete()}),new be([])}return!r&&Mn.supports(u)?new Mn(u):new Ft(u)};function Ir({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Rr(e,t,{delay:n=0,transitionOverride:i,type:s}={}){var r;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;i&&(o=i);let l=[],u=s&&e.animationState&&e.animationState.getState()[s];for(let h in c){let d=e.getValue(h,(r=e.latestValues[h])!==null&&r!==void 0?r:null),g=c[h];if(g===void 0||u&&Ir(u,h))continue;let v={delay:n,...Oe(o||{},h)},w=!1;if(window.MotionHandoffAnimation){let p=Es(e);if(p){let T=window.MotionHandoffAnimation(p,h,K);T!==null&&(v.startTime=T,w=!0)}}xs(e,h),d.start(ui(h,d,g,e.shouldReduceMotion&&Pn.has(h)?{type:!1}:v,e,w));let b=d.animation;b&&l.push(b)}return a&&Promise.all(l).then(()=>{K.update(()=>{a&&ws(e,a)})}),l}function Br(e){return e instanceof SVGElement&&e.tagName!=="svg"}var An=()=>({min:0,max:0}),Nt=()=>({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"]},vt={};for(let e in Vn)vt[e]={isEnabled:t=>Vn[e].some(n=>!!t[n])};var Hr=typeof window<"u",yt={current:null},hi={current:!1};function Gr(){if(hi.current=!0,!!Hr)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>yt.current=e.matches;e.addListener(t),t()}else yt.current=!1}var qr=[...ii,N,ue],Kr=e=>qr.find(ni(e));function Wr(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function $r(e){return typeof e=="string"||Array.isArray(e)}var zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ur=["initial",...zr];function di(e){return Wr(e.animate)||Ur.some(t=>$r(e[t]))}function jr(e){return!!(di(e)||e.variants)}function Xr(e,t,n){for(let i in t){let s=t[i],r=n[i];if(F(s))e.addValue(i,s);else if(F(r))e.addValue(i,Se(s,{owner:e}));else if(r!==s)if(e.hasValue(i)){let o=e.getValue(i);o.liveStyle===!0?o.jump(s):o.hasAnimated||o.set(s)}else{let o=e.getStaticValue(i);e.addValue(i,Se(o!==void 0?o:s,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var _n=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],fi=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=U.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,K.render(this.render,!1,!0))};let{latestValues:a,renderState:c,onUpdate:l}=r;this.onUpdate=l,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=c,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=di(t),this.isVariantNode=jr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let d in h){let g=h[d];a[d]!==void 0&&F(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)),hi.current||Gr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yt.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&&K.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 vt){let t=vt[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let s=this.features[e];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Nt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<_n.length;n++){let i=_n[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=Se(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Qn(i)||Kn(i))?i=parseFloat(i):!Kr(i)&&ue.test(t)&&(i=Xn(e,t)),this.setBaseTarget(e,F(i)?i.get():i)),F(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=On(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&&!F(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Ln),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}},pi=class extends fi{constructor(){super(...arguments),this.KeyframeResolver=si}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;F(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},mi=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Yr={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zr=ae.length;function Qr(e,t,n){let i="",s=!0;for(let r=0;r<Zr;r++){let o=ae[r],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){let l=mi(a,Et[o]);if(!c){s=!1;let u=Yr[o]||o;i+=`${u}(${l}) `}n&&(t[o]=l)}}return i=i.trim(),n?i=n(t,s?"":i):s&&(i="none"),i}function gi(e,t,n){let{style:i,vars:s,transformOrigin:r}=e,o=!1,a=!1;for(let c in t){let l=t[c];if(le.has(c)){o=!0;continue}else if(ei(c)){s[c]=l;continue}else{let u=mi(l,Et[c]);c.startsWith("origin")?(a=!0,r[c]=u):i[c]=u}}if(t.transform||(o||n?i.transform=Qr(t,e.transform,n):i.transform&&(i.transform="none")),a){let{originX:c="50%",originY:l="50%",originZ:u=0}=r;i.transformOrigin=`${c} ${l} ${u}`}}function Dn(e,t,n){return typeof e=="string"?e:f.transform(t+n*e)}function Jr(e,t,n){let i=Dn(t,e.x,e.width),s=Dn(n,e.y,e.height);return`${i} ${s}`}var eo={offset:"stroke-dashoffset",array:"stroke-dasharray"},to={offset:"strokeDashoffset",array:"strokeDasharray"};function no(e,t,n=1,i=0,s=!0){e.pathLength=1;let r=s?eo:to;e[r.offset]=f.transform(-i);let o=f.transform(t),a=f.transform(n);e[r.array]=`${o} ${a}`}function io(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:r,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,h){if(gi(e,l,h),u){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=Jr(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&&no(d,o,a,c,!1)}var vi=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"]),so=e=>typeof e=="string"&&e.toLowerCase()==="svg";function yi(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 ro(e,t,n,i){yi(e,t,void 0,i);for(let s in t.attrs)e.setAttribute(vi.has(s)?s:wt(s),t.attrs[s])}var oo={};function ao(e,{layout:t,layoutId:n}){return le.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oo[e]||e==="opacity")}function bi(e,t,n){var i;let{style:s}=e,r={};for(let o in s)(F(s[o])||t.style&&F(t.style[o])||ao(o,e)||((i=n?.getValue(o))===null||i===void 0?void 0:i.liveStyle)!==void 0)&&(r[o]=s[o]);return r}function lo(e,t,n){let i=bi(e,t,n);for(let s in e)if(F(e[s])||F(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 pi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Nt}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(le.has(t)){let n=Mt(t);return n&&n.default||0}return t=vi.has(t)?t:wt(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return lo(e,t,n)}build(e,t,n){io(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,i){ro(e,t,n,i)}mount(e){this.isSVGTag=so(e.tagName),super.mount(e)}};function uo({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function ho(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 fo(e,t){return uo(ho(e.getBoundingClientRect(),t))}function po(e){return window.getComputedStyle(e)}var mo=class extends pi{constructor(){super(...arguments),this.type="html",this.renderInstance=yi}readValueFromInstance(e,t){if(le.has(t)){let n=Mt(t);return n&&n.default||0}else{let n=po(e),i=(ei(t)?n.getPropertyValue(t):n[t])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return fo(e,t)}build(e,t,n){gi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return bi(e,t,n)}};function go(e,t){return e in t}var vo=class extends fi{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(go(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Nt()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function yo(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Br(e)?new co(t):new mo(t);n.mount(e),re.set(e,n)}function bo(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new vo(t);n.mount(e),re.set(e,n)}function wo(e,t,n){let i=F(e)?e:Se(e);return i.start(ui("",i,t,n)),i.animation}function To(e,t){return F(e)||typeof e=="number"||typeof e=="string"&&!He(t)}function wi(e,t,n,i){let s=[];if(To(e,t))s.push(wo(e,He(t)&&t.default||t,n&&(n.default||n)));else{let r=st(e,t,i),o=r.length;B(!!o,"No valid elements provided.");for(let a=0;a<o;a++){let c=r[a],l=c instanceof Element?yo:bo;re.has(c)||l(c);let u=re.get(c),h={...n};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(a,o)),s.push(...Rr(u,{...t,transition:h},{}))}}return s}function xo(e,t,n){let i=[];return ot(e,t,n,{spring:bt}).forEach(({keyframes:r,transition:o},a)=>{i.push(...wi(a,r,o))}),i}function So(e){return Array.isArray(e)&&e.some(Array.isArray)}function Co(e){function t(n,i,s){let r=[];So(n)?r=xo(n,i,e):r=wi(n,i,s,e);let o=new be(r);return e&&e.animations.push(o),o}return t}var la=Co();var Eo={some:0,all:1};function W(e,t,{root:n,margin:i,amount:s="some"}={}){let r=ke(e),o=new WeakMap,a=l=>{l.forEach(u=>{let h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){let d=t(u);typeof d=="function"?o.set(u.target,d):c.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},c=new IntersectionObserver(a,{root:n,rootMargin:i,threshold:typeof s=="number"?s:Eo[s]});return r.forEach(l=>c.observe(l)),()=>c.disconnect()}function Mo(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:Mo(n,r),a=Math.abs(o-s),c=e*a;if(i){let l=r*e;c=gt(i)(c/l)*l}return t+c}}var ca=Te.reduce((e,t)=>(e[t]=n=>Ke(n),e),{});var Ao=Symbol.for("preact-signals");function Ot(){if(he>1)he--;else{for(var e,t=!1;Ae!==void 0;){var n=Ae;for(Ae=void 0,Lt++;n!==void 0;){var i=n.o;if(n.o=void 0,n.f&=-3,!(8&n.f)&&Si(n))try{n.c()}catch(s){t||(e=s,t=!0)}n=i}}if(Lt=0,he--,t)throw e}}var C=void 0;var Ae=void 0,he=0,Lt=0,je=0;function Ti(e){if(C!==void 0){var t=e.n;if(t===void 0||t.t!==C)return t={i:0,S:e,p:C.s,n:void 0,t:C,e:void 0,x:void 0,r:t},C.s!==void 0&&(C.s.n=t),C.s=t,e.n=t,32&C.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=C.s,t.n=void 0,C.s.n=t,C.s=t),t}}function L(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}L.prototype.brand=Ao;L.prototype.h=function(){return!0};L.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};L.prototype.U=function(e){if(this.t!==void 0){var t=e.e,n=e.x;t!==void 0&&(t.x=n,e.e=void 0),n!==void 0&&(n.e=t,e.x=void 0),e===this.t&&(this.t=n)}};L.prototype.subscribe=function(e){var t=this;return _o(function(){var n=t.value,i=C;C=void 0;try{e(n)}finally{C=i}})};L.prototype.valueOf=function(){return this.value};L.prototype.toString=function(){return this.value+""};L.prototype.toJSON=function(){return this.value};L.prototype.peek=function(){var e=C;C=void 0;try{return this.value}finally{C=e}};Object.defineProperty(L.prototype,"value",{get:function(){var e=Ti(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Lt>100)throw new Error("Cycle detected");this.v=e,this.i++,je++,he++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ot()}}}});function xi(e){return new L(e)}function Si(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Ci(e){for(var t=e.s;t!==void 0;t=t.n){var n=t.S.n;if(n!==void 0&&(t.r=n),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Ei(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){L.call(this,void 0),this.x=e,this.s=void 0,this.g=je-1,this.f=4}(Ve.prototype=new L).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===je))return!0;if(this.g=je,this.f|=1,this.i>0&&!Si(this))return this.f&=-2,!0;var e=C;try{Ci(this),C=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(n){this.v=n,this.f|=16,this.i++}return C=e,Ei(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)}L.prototype.S.call(this,e)};Ve.prototype.U=function(e){if(this.t!==void 0&&(L.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};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=Ti(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function Mi(e){var t=e.u;if(e.u=void 0,typeof t=="function"){he++;var n=C;C=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,kt(e),i}finally{C=n,Ot()}}}function kt(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Mi(e)}function Vo(e){if(C!==this)throw new Error("Out-of-order effect");Ei(this),C=e,this.f&=-2,8&this.f&&kt(this),Ot()}function _e(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}_e.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()}};_e.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Mi(this),Ci(this),he++;var e=C;return C=this,Vo.bind(this,e)};_e.prototype.N=function(){2&this.f||(this.f|=2,this.o=Ae,Ae=this)};_e.prototype.d=function(){this.f|=8,1&this.f||kt(this)};function _o(e){var t=new _e(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()})})},H=(e,t)=>{if(e)throw new Error(t)};var Vi=".NDGMNT__FloatingFixedButton__floating-button-container",Do=".NDGMNT__FloatingFixedButton__floating-menu",Fo=".NDGMNT__FloatingFixedButton__trigger-button",No='<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
|
+
`},Lo={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"}},It=class{constructor(t){V(this,"container");V(this,"menu");V(this,"trigger");V(this,"options");V(this,"isOpenSignal",xi(!1));let n=t.containerSelector??Vi,i=t.triggerContent??No;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(Fo),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=Lo[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&&R(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?R(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(()=>{Ai({FloatingFixedButton:It}),window.NudgeMoment.net.emit("template__FloatingFixedButton")});function Oo(){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");H(!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(()=>{Oo()});var ko={TYPING_TEXT:".NDGMNT-home__hero-section__typing-text"},Rt=class{constructor(t,n={}){V(this,"element");V(this,"originalText");V(this,"duration");V(this,"delay");V(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(){W(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 Rt(e,{duration:200,delay:0})})});var Bt=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)}};
|
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 Bt(e,{enableHover:!1})});function Io(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)}}
|
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(()=>{Io()});var Ht=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%;
|
@@ -39,20 +39,20 @@
|
|
39
39
|
opacity: 0;
|
40
40
|
transition: all 0.3s ease-in-out;
|
41
41
|
z-index: 100;
|
42
|
-
`,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)}};
|
42
|
+
`,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-mobile");new Ht(e,{enableHover:!1})});function Ro(e="NDGMNT__home__image-comparison-mobile"){let t=`
|
43
43
|
<div class="NDGMNT__mobile-hero-section__tooltip-container">
|
44
44
|
<div class="NDGMNT__mobile-hero-section__tooltip-wrapper NDGMNT__mobile-hero-section__tooltip--bounce">
|
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)}}
|
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
|
50
|
-
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})}catch(e){console.error(e)}});var Di={CONTAINER:"scratch-container"},qt=class{constructor(t={}){
|
51
|
-
<svg class="${
|
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(()=>{Ro()});var Bo={ANIMATE:"animate"},Ho={CANCEL:".cancel-line"};function Go(){let e=document.querySelectorAll(Ho.CANCEL),t=e[0];W(t,n=>{n.isIntersecting&&e.forEach((i,s)=>{setTimeout(()=>{i.classList.add(Bo.ANIMATE)},s*1e3)})},{margin:"-40% 0px -40% 0px"})}E(()=>{Go()});var _i={BLUR:".NDGMNT__strong-blur"};function qo(){let e=_i.BLUR;W(e,()=>{let t=document.querySelector(e);H(!t,`${_i.BLUR} \uC120\uD0DD\uC790\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}E(()=>{qo()});var Gt=class{constructor(t={}){this.text=t.text||"Default text for animation",this.container=document.getElementById("text-content"),this.container&&(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((c,l)=>{let u=document.createElement("span");u.textContent=c,u.style.opacity="0",u.dataset.index=String(this.totalCharCount-s.length+l),a.appendChild(u);let h=document.createElement("span");h.textContent=c,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 l=parseInt(a.dataset.index)/this.totalCharCount,u=this.totalCharCount/2,h=Math.max(0,Math.min(1,(r-l)*u));R(a,{opacity:h},{duration:.4,ease:"easeOut"})})}};E(()=>{try{new Gt({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?`})}catch(e){console.error(e)}});var Di={CONTAINER:"scratch-container"},qt=class{constructor(t={}){V(this,"width");V(this,"height");V(this,"minScratchPercentage");V(this,"gradientColors");V(this,"canvas");V(this,"container");V(this,"ctx");V(this,"onComplete");V(this,"isScratching");V(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");H(!(n instanceof HTMLCanvasElement),"Canvas \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."),this.canvas=n;let i=document.getElementById(Di.CONTAINER);H(!i,`${Di.CONTAINER}\uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`),this.container=i;let s=this.canvas.getContext("2d");H(!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 R(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"]})});var Ko="details.NDGMNT__faq-section__details summary h2",Wo="NDGMNT__faq-section__toggle-svg";function $o(){$(Ko).after(`
|
51
|
+
<svg class="${Wo}" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" style="width: 20px; height: 20px; flex-shrink: 0; transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter; transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms;">
|
52
52
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
53
53
|
</svg>
|
54
|
-
`)}
|
55
|
-
`);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
|
54
|
+
`)}E(()=>{$o()});function zo(){let e=document.querySelectorAll(".mobile__cancel-line"),t=e[0];W(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";W(e,()=>{let t=document.querySelector(e);H(!t,`${e} \uAC00 \uC874\uC7AC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.`),t.style.filter="blur(0px)"},{margin:"-50% 0px -30% 0px"})}function jo(){class e{constructor(n={}){this.text=n.text||"Default text for animation",this.container=document.getElementById("mobile__text-content"),this.container&&(this.words=this.text.split(""),this.init(),this.setupScrollHandler())}init(){let n=this.text.split(`
|
55
|
+
`);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 c=document.createElement("span");c.className="mobile__word-reveal",r.forEach((l,u)=>{let h=document.createElement("span");h.textContent=l,h.style.opacity="0",h.dataset.index=String(this.totalCharCount-r.length+u),c.appendChild(h);let d=document.createElement("span");d.textContent=l,a.appendChild(d)}),o.appendChild(a),o.appendChild(c),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(c=>{let u=parseInt(c.dataset.index)/this.totalCharCount,h=this.totalCharCount/2,d=Math.max(0,Math.min(1,(o-u)*h));R(c,{opacity:d},{duration:.4,ease:"easeOut"})})}}new e({text:`\uACE0\uAC1D\uC758 \uC2DC\uC120\uC774
|
56
56
|
\uBA38\uBB34\uB294 \uD648\uD398\uC774\uC9C0
|
57
57
|
\uC81C\uC791\uC744 \uC704\uD574
|
58
|
-
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})}
|
58
|
+
\uC5B4\uB5BB\uAC8C \uB9CC\uB4E4\uC5B4\uC57C \uD560\uAE4C\uC694?`})}E(()=>{try{zo(),Uo(),jo()}catch(e){console.error(e)}});})();
|
package/dist/style.css
CHANGED