import{t as I,n as R,g as N,a as U,b as $,i as j,c as k,d as B,s as E}from"./index.es.a9b49ef6.js";import{o as K,f as O}from"./solid.a6ec690c.js";function P(e,t){return t?e*(1e3/t):0}const W=5;function q(e,t,n){const i=Math.max(t-W,0);return P(n-e(i),t-i)}const M={stiffness:100,damping:10,mass:1},Z=(e=M.stiffness,t=M.damping,n=M.mass)=>t/(2*Math.sqrt(e*n));function z(e,t,n){return e=t||e>t&&n<=t}const H=({stiffness:e=M.stiffness,damping:t=M.damping,mass:n=M.mass,from:i=0,to:a=1,velocity:o=0,restSpeed:r,restDistance:d}={})=>{o=o?I.s(o):0;const c={done:!1,hasReachedTarget:!1,current:i,target:a},u=a-i,s=Math.sqrt(e/n)/1e3,f=Z(e,t,n),g=Math.abs(u)<5;r||(r=g?.01:2),d||(d=g?.005:.5);let m;if(f<1){const l=s*Math.sqrt(1-f*f);m=h=>a-Math.exp(-f*s*h)*((-o+f*s*u)/l*Math.sin(l*h)+u*Math.cos(l*h))}else m=l=>a-Math.exp(-s*l)*(u+(-o+s*u)*l);return l=>{c.current=m(l);const h=l===0?o:q(m,l,c.current),v=Math.abs(h)<=r,p=Math.abs(a-c.current)<=d;return c.done=v&&p,c.hasReachedTarget=z(i,a,c.current),c}},b=10,J=1e4;function L(e,t=R){let n,i=b,a=e(0);const o=[t(a.current)];for(;!a.done&&i{const i=new Map,a=(r=0,d=100,c=0,u=!1)=>{const s=`${r}-${d}-${c}-${u}`;return i.has(s)||i.set(s,e(Object.assign({from:r,to:d,velocity:c},n))),i.get(s)},o=(r,d)=>(t.has(r)||t.set(r,L(r,d)),t.get(r));return{createAnimation:(r,d=!0,c,u,s)=>{let f,g,m,l=0,h=R;const v=r.length;if(d){h=N(r,u?U.get($(u)):void 0);const p=r[v-1];if(m=w(p),v>1&&r[0]!==null)g=w(r[0]);else{const y=s?.generator;if(y){const{animation:T,generatorStartTime:x}=s,A=T?.startTime||x||0,C=T?.currentTime||performance.now()-A,D=y(C).current;g=D,l=q(F=>y(F).current,C,D)}else c&&(g=w(c()))}}if(S(g)&&S(m)){const p=a(g,m,l,u?.includes("scale"));f=Object.assign(Object.assign({},o(p,h)),{easing:"linear"}),s&&(s.generator=p,s.generatorStartTime=performance.now())}return f||(f={easing:"ease",duration:o(a(0,100)).overshootDuration}),f}}}}const X=Q(H),Y=document.querySelectorAll(".card"),_=[[".loaderRef",{opacity:[1,0],pointerEvents:"none"},{easing:"ease-out"}],[Y,{y:["40%","0%"],opacity:[0,1]},{at:"-0.1",duration:.4,delay:E(.3),easing:X({velocity:100,stiffness:50,damping:10})}]];B(_);function V(e){const t={hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0,timeZone:"UTC"};let n=new Intl.DateTimeFormat("en-US",t).format(e);return n+=" UTC",n}let G;function ee(){const e=document.getElementById("timeDisplay"),t=new Date;e&&(e.textContent=V(t),e.setAttribute("datetime",t.toISOString()))}K(()=>{G=setInterval(ee,1e3)});O(()=>{clearInterval(G)});