From ace8307ecdf129deb39a8351e8eec1ffefcdbad0 Mon Sep 17 00:00:00 2001 From: "gitea-actions[bot]" Date: Thu, 9 Jan 2025 03:42:35 +0000 Subject: [PATCH] ci(dist): build dist --- dist/404.html | 2 +- .../_astro/404.astro_astro_type_script_index_0_lang.BT4rBAk0.js | 1 + .../_astro/404.astro_astro_type_script_index_0_lang.DM1z4ar6.js | 1 - .../index.astro_astro_type_script_index_0_lang.CDlQ0f5C.js | 1 - .../index.astro_astro_type_script_index_0_lang.DfOSDEly.js | 1 + dist/index.html | 2 +- 6 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 dist/_astro/404.astro_astro_type_script_index_0_lang.BT4rBAk0.js delete mode 100644 dist/_astro/404.astro_astro_type_script_index_0_lang.DM1z4ar6.js delete mode 100644 dist/_astro/index.astro_astro_type_script_index_0_lang.CDlQ0f5C.js create mode 100644 dist/_astro/index.astro_astro_type_script_index_0_lang.DfOSDEly.js diff --git a/dist/404.html b/dist/404.html index cb44777..0b6a075 100644 --- a/dist/404.html +++ b/dist/404.html @@ -1 +1 @@ - 404

404

\ No newline at end of file + 404

404

\ No newline at end of file diff --git a/dist/_astro/404.astro_astro_type_script_index_0_lang.BT4rBAk0.js b/dist/_astro/404.astro_astro_type_script_index_0_lang.BT4rBAk0.js new file mode 100644 index 0000000..75ed566 --- /dev/null +++ b/dist/_astro/404.astro_astro_type_script_index_0_lang.BT4rBAk0.js @@ -0,0 +1 @@ +const W=t=>t;let Fe=W;const Te=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};function _e(t){let e;return()=>(e===void 0&&(e=t()),e)}const Bn=_e(()=>window.ScrollTimeline!==void 0);class Nn{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,n){for(let s=0;sBn()&&r.attachTimeline?r.attachTimeline(e):n(r));return()=>{s.forEach((r,i)=>{r&&r(),this.animations[i].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 n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Ot extends Nn{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}const E=t=>t*1e3,O=t=>t/1e3,pe=2e4;function We(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e=pe?1/0:e}const Kt=(t,e,n=10)=>{let s="";const r=Math.max(Math.round(e/n),2);for(let i=0;in>e?e:n{const c=u*o,f=c*t,h=c-n,g=Ce(u,o),v=Math.exp(-f);return xe-h/g*v},i=u=>{const f=u*o*t,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*t,v=Math.exp(-f),b=Ce(Math.pow(u,2),o);return(-r(u)+xe>0?-1:1)*((h-g)*v)/b}):(r=u=>{const c=Math.exp(-u*t),f=(u-n)*t+1;return-xe+c*f},i=u=>{const c=Math.exp(-u*t),f=(n-u)*(t*t);return c*f});const a=5/t,l=Wn(r,i,a);if(t=E(t),isNaN(l))return{stiffness:x.stiffness,damping:x.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const _n=12;function Wn(t,e,n){let s=n;for(let r=1;r<_n;r++)s=s-t(s)/e(s);return s}function Ce(t,e){return t*Math.sqrt(1-e*e)}const Gn=["duration","bounce"],jn=["stiffness","damping","mass"];function ct(t,e){return e.some(n=>t[n]!==void 0)}function Un(t){let e={velocity:x.velocity,stiffness:x.stiffness,damping:x.damping,mass:x.mass,isResolvedFromDuration:!1,...t};if(!ct(t,jn)&&ct(t,Gn))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*G(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:x.mass,stiffness:r,damping:i}}else{const n=Ln(t);e={...e,...n,mass:x.mass},e.isResolvedFromDuration=!0}return e}function Ge(t=x.visualDuration,e=x.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:g}=Un({...n,velocity:-O(n.velocity||0)}),v=h||0,b=u/(2*Math.sqrt(l*c)),T=o-i,d=O(Math.sqrt(l/c)),V=Math.abs(T)<5;s||(s=V?x.restSpeed.granular:x.restSpeed.default),r||(r=V?x.restDelta.granular:x.restDelta.default);let M;if(b<1){const m=Ce(d,b);M=S=>{const P=Math.exp(-b*d*S);return o-P*((v+b*d*T)/m*Math.sin(m*S)+T*Math.cos(m*S))}}else if(b===1)M=m=>o-Math.exp(-d*m)*(T+(v+d*T)*m);else{const m=d*Math.sqrt(b*b-1);M=S=>{const P=Math.exp(-b*d*S),y=Math.min(m*S,300);return o-P*((v+b*d*T)*Math.sinh(y)+m*T*Math.cosh(y))/m}}const w={calculatedDuration:g&&f||null,next:m=>{const S=M(m);if(g)a.done=m>=f;else{let P=0;b<1&&(P=m===0?E(v):Nt(M,m,S));const y=Math.abs(P)<=s,A=Math.abs(o-S)<=r;a.done=y&&A}return a.value=a.done?o:S,a},toString:()=>{const m=Math.min(We(w),pe),S=Kt(P=>w.next(m*P).value,m,30);return m+"ms "+S}};return w}function $n(t,e=100,n){const s=n({...t,keyframes:[0,e]}),r=Math.min(We(s),pe);return{type:"keyframes",ease:i=>s.next(r*i).value/e,duration:O(r)}}function Ve(t){return typeof t=="function"}const zn=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},kt=t=>Array.isArray(t)&&typeof t[0]!="number";function Lt(t,e){return kt(t)?t[zn(0,t.length,e)]:t}const re=(t,e,n)=>t+(e-t)*n;function _t(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const r=Te(0,e,s);t.push(re(n,1,r))}}function Wt(t){const e=[0];return _t(e,t.length-1),e}const C=t=>!!(t&&t.getVelocity);function qn(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let r=document;const i=(s=n?.[t])!==null&&s!==void 0?s:r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}function je(t){return typeof t=="object"&&!Array.isArray(t)}function Gt(t,e,n,s){return typeof t=="string"&&je(e)?qn(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Yn(t,e,n){return t*(e+1)}function ft(t,e,n,s){var r;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(r=s.get(e))!==null&&r!==void 0?r:t}function Xn(t,e){t.indexOf(e)===-1&&t.push(e)}function jt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Hn(t,e,n){for(let s=0;se&&r.at{const A=ns(w),{delay:D=0,times:I=Wt(A),type:Ae="keyframes",repeat:le,repeatType:Ei,repeatDelay:Oi=0,...Kn}=m;let{ease:B=e.ease||"easeOut",duration:R}=m;const rt=typeof D=="function"?D(P,y):D,it=A.length,ot=Ve(Ae)?Ae:r?.[Ae];if(it<=2&&ot){let H=100;if(it===2&&is(A)){const Z=A[1]-A[0];H=Math.abs(Z)}const ue={...Kn};R!==void 0&&(ue.duration=E(R));const ce=$n(ue,H,ot);B=ce.ease,R=ce.duration}R??(R=i);const at=f+rt;I.length===1&&I[0]===0&&(I[1]=1);const lt=I.length-A.length;if(lt>0&&_t(I,lt),A.length===1&&A.unshift(null),le){R=Yn(R,le);const H=[...A],ue=[...I];B=Array.isArray(B)?[...B]:[B];const ce=[...B];for(let Z=0;Z{for(const b in g){const T=g[b];T.sort(Jn);const d=[],V=[],M=[];for(let m=0;mtypeof t=="number",is=t=>t.every(rs),z=new WeakMap;function Ut(t,e){return t?t[e]||t.default||t:void 0}const ie=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(ie),os=t=>Array.isArray(t),as=t=>os(t)?t[t.length-1]||0:t,ls={skipAnimations:!1,useManualTiming:!1};function us(t){let e=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(u){i.has(u)&&(l.schedule(u),t()),u(o)}const l={schedule:(u,c=!1,f=!1)=>{const g=f&&s?e:n;return c&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,s){r=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,r&&(r=!1,l.process(u))}};return l}const fe=["read","resolveKeyframes","update","preRender","render","postRender"],cs=40;function fs(t,e){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=fe.reduce((d,V)=>(d[V]=us(i),d),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:h}=o,g=()=>{const d=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(d-r.timestamp,cs),1),r.timestamp=d,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),f.process(r),h.process(r),r.isProcessing=!1,n&&e&&(s=!1,t(g))},v=()=>{n=!0,s=!0,r.isProcessing||t(g)};return{schedule:fe.reduce((d,V)=>{const M=o[V];return d[V]=(w,m=!1,S=!1)=>(n||v(),M.schedule(w,m,S)),d},{}),cancel:d=>{for(let V=0;V(de===void 0&&k.set(me.isProcessing||ls.useManualTiming?me.timestamp:performance.now()),de),set:t=>{de=t,queueMicrotask(hs)}};class $t{constructor(){this.subscriptions=[]}add(e){return Xn(this.subscriptions,e),()=>jt(this.subscriptions,e)}notify(e,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,s);else for(let i=0;i!isNaN(parseFloat(t));class ps{constructor(e,n={}){this.version="11.16.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=k.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=ds(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new $t);const s=this.events[e].add(n);return e==="change"?()=>{s(),K.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=k.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>pt)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pt);return Bt(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 te(t,e){return new ps(t,e)}function mt(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function zt(t,e,n,s){if(typeof e=="function"){const[r,i]=mt(s);e=e(n!==void 0?n:t.custom,r,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,i]=mt(s);e=e(n!==void 0?n:t.custom,r,i)}return e}function ms(t,e,n){const s=t.getProps();return zt(s,e,s.custom,t)}function gs(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,te(n))}function ys(t,e){const n=ms(t,e);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=as(i[o]);gs(t,o,a)}}function vs(t){return!!(C(t)&&t.add)}function bs(t,e){const n=t.getValue("willChange");if(vs(n))return n.add(e)}const Ue=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ts="framerAppearId",Vs="data-"+Ue(Ts);function Ss(t){return t.props[Vs]}function gt(t,e){t.timeline=e,t.onfinish=null}const $e=t=>Array.isArray(t)&&typeof t[0]=="number",As={linearEasing:void 0};function xs(t,e){const n=_e(t);return()=>{var s;return(s=As[e])!==null&&s!==void 0?s:n()}}const ge=xs(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function qt(t){return!!(typeof t=="function"&&ge()||!t||typeof t=="string"&&(t in Re||ge())||$e(t)||Array.isArray(t)&&t.every(qt))}const J=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Re={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:J([0,.65,.55,1]),circOut:J([.55,0,1,.45]),backIn:J([.31,.01,.66,-.59]),backOut:J([.33,1.53,.69,.99])};function Yt(t,e){if(t)return typeof t=="function"&&ge()?Kt(t,e):$e(t)?J(t):Array.isArray(t)?t.map(n=>Yt(n,e)||Re.easeOut):Re[t]}const Xt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,ws=1e-7,Ms=12;function Ps(t,e,n,s,r){let i,o,a=0;do o=e+(n-e)/2,i=Xt(o,s,r)-t,i>0?n=o:e=o;while(Math.abs(i)>ws&&++aPs(i,0,1,t,n);return i=>i===0||i===1?i:Xt(r(i),e,s)}const Ht=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Zt=t=>e=>1-t(1-e),Qt=oe(.33,1.53,.69,.99),ze=Zt(Qt),Jt=Ht(ze),en=t=>(t*=2)<1?.5*ze(t):.5*(2-Math.pow(2,-10*(t-1))),qe=t=>1-Math.sin(Math.acos(t)),Fs=Zt(qe),tn=Ht(qe),nn=t=>/^0[^.\s]+$/u.test(t);function Cs(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||nn(t):!0}const sn=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),rn=t=>e=>typeof e=="string"&&e.startsWith(t),on=rn("--"),Ds=rn("var(--"),Ye=t=>Ds(t)?Rs.test(t.split("/*")[0].trim()):!1,Rs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Is=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Es(t){const e=Is.exec(t);if(!e)return[,];const[,n,s,r]=e;return[`--${n??s}`,r]}function an(t,e,n=1){const[s,r]=Es(t);if(!s)return;const i=window.getComputedStyle(e).getPropertyValue(s);if(i){const o=i.trim();return sn(o)?parseFloat(o):o}return Ye(r)?an(r,e,n+1):r}const Y={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ne={...Y,transform:t=>G(0,1,t)},he={...Y,default:1},ae=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),N=ae("deg"),$=ae("%"),p=ae("px"),Os=ae("vh"),Ks=ae("vw"),yt={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(t*100)},Bs=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),vt=t=>t===Y||t===p,bt=(t,e)=>parseFloat(t.split(", ")[e]),Tt=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return bt(r[1],e);{const i=s.match(/^matrix\((.+)\)$/u);return i?bt(i[1],t):0}},Ns=new Set(["x","y","z"]),ks=ie.filter(t=>!Ns.has(t));function Ls(t){const e=[];return ks.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const q={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Tt(4,13),y:Tt(5,14)};q.translateX=q.x;q.translateY=q.y;const ln=t=>e=>e.test(t),_s={test:t=>t==="auto",parse:t=>t},un=[Y,p,$,N,Ks,Os,_s],Vt=t=>un.find(ln(t)),_=new Set;let Ie=!1,Ee=!1;function cn(){if(Ee){const t=Array.from(_).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const r=Ls(s);r.length&&(n.set(s,r),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ee=!1,Ie=!1,_.forEach(t=>t.complete()),_.clear()}function fn(){_.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ee=!0)})}function Ws(){fn(),cn()}class Xe{constructor(e,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_.add(this),Ie||(Ie=!0,K.read(fn),K.resolveKeyframes(cn))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:r}=this;for(let i=0;iMath.round(t*1e5)/1e5,He=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Gs(t){return t==null}const js=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ze=(t,e)=>n=>!!(typeof n=="string"&&js.test(n)&&n.startsWith(t)||e&&!Gs(n)&&Object.prototype.hasOwnProperty.call(n,e)),hn=(t,e,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(He);return{[t]:parseFloat(r),[e]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Us=t=>G(0,255,t),we={...Y,transform:t=>Math.round(Us(t))},L={test:Ze("rgb","red"),parse:hn("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+we.transform(t)+", "+we.transform(e)+", "+we.transform(n)+", "+ee(ne.transform(s))+")"};function $s(t){let e="",n="",s="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Oe={test:Ze("#"),parse:$s,transform:L.transform},U={test:Ze("hsl","hue"),parse:hn("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(ee(e))+", "+$.transform(ee(n))+", "+ee(ne.transform(s))+")"},F={test:t=>L.test(t)||Oe.test(t)||U.test(t),parse:t=>L.test(t)?L.parse(t):U.test(t)?U.parse(t):Oe.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?L.transform(t):U.transform(t)},zs=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qs(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(He))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(zs))===null||n===void 0?void 0:n.length)||0)>0}const dn="number",pn="color",Ys="var",Xs="var(",St="${}",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 se(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=e.replace(Hs,l=>(F.test(l)?(s.color.push(i),r.push(pn),n.push(F.parse(l))):l.startsWith(Xs)?(s.var.push(i),r.push(Ys),n.push(l)):(s.number.push(i),r.push(dn),n.push(parseFloat(l))),++i,St)).split(St);return{values:n,split:a,indexes:s,types:r}}function mn(t){return se(t).values}function gn(t){const{split:e,types:n}=se(t),s=e.length;return r=>{let i="";for(let o=0;otypeof t=="number"?0:t;function Qs(t){const e=mn(t);return gn(t)(e.map(Zs))}const X={test:qs,parse:mn,createTransformer:gn,getAnimatableNone:Qs},Js=new Set(["brightness","contrast","saturate","opacity"]);function er(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(He)||[];if(!s)return t;const r=n.replace(s,"");let i=Js.has(e)?1:0;return s!==n&&(i*=100),e+"("+i+r+")"}const tr=/\b([a-z-]*)\(.*?\)/gu,Ke={...X,getAnimatableNone:t=>{const e=t.match(tr);return e?e.map(er).join(" "):t}},nr={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,backgroundPositionX:p,backgroundPositionY:p},sr={rotate:N,rotateX:N,rotateY:N,rotateZ:N,scale:he,scaleX:he,scaleY:he,scaleZ:he,skew:N,skewX:N,skewY:N,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:ne,originX:yt,originY:yt,originZ:p},At={...Y,transform:Math.round},Qe={...nr,...sr,zIndex:At,size:p,fillOpacity:ne,strokeOpacity:ne,numOctaves:At},rr={...Qe,color:F,backgroundColor:F,outlineColor:F,fill:F,stroke:F,borderColor:F,borderTopColor:F,borderRightColor:F,borderBottomColor:F,borderLeftColor:F,filter:Ke,WebkitFilter:Ke},Je=t=>rr[t];function yn(t,e){let n=Je(t);return n!==Ke&&(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const ir=new Set(["auto","none","0"]);function or(t,e,n){let s=0,r;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const xt=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function ar(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nt!==null;function Se(t,{repeat:e,repeatType:n="loop"},s){const r=t.filter(ur),i=e&&n!=="loop"&&e%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const cr=40;class bn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=k.now(),this.options={autoplay:e,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>cr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Ws(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=k.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!lr(e,s,r,i))if(o)this.options.duration=0;else{l?.(Se(e,this.options,n)),a?.(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function Me(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function fr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let r=0,i=0,o=0;if(!e)r=i=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Me(l,a,t+1/3),i=Me(l,a,t),o=Me(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function ye(t,e){return n=>n>0?e:t}const Pe=(t,e,n)=>{const s=t*t,r=n*(e*e-s)+s;return r<0?0:Math.sqrt(r)},hr=[Oe,L,U],dr=t=>hr.find(e=>e.test(t));function wt(t){const e=dr(t);if(!e)return!1;let n=e.parse(t);return e===U&&(n=fr(n)),n}const Mt=(t,e)=>{const n=wt(t),s=wt(e);if(!n||!s)return ye(t,e);const r={...n};return i=>(r.red=Pe(n.red,s.red,i),r.green=Pe(n.green,s.green,i),r.blue=Pe(n.blue,s.blue,i),r.alpha=re(n.alpha,s.alpha,i),L.transform(r))},pr=(t,e)=>n=>e(t(n)),et=(...t)=>t.reduce(pr),Be=new Set(["none","hidden"]);function mr(t,e){return Be.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function gr(t,e){return n=>re(t,e,n)}function tt(t){return typeof t=="number"?gr:typeof t=="string"?Ye(t)?ye:F.test(t)?Mt:br:Array.isArray(t)?Tn:typeof t=="object"?F.test(t)?Mt:yr:ye}function Tn(t,e){const n=[...t],s=n.length,r=t.map((i,o)=>tt(i)(i,e[o]));return i=>{for(let o=0;o{for(const i in s)n[i]=s[i](r);return n}}function vr(t,e){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i{const n=X.createTransformer(e),s=se(t),r=se(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Be.has(t)&&!r.values.length||Be.has(e)&&!s.values.length?mr(t,e):et(Tn(vr(s,r),r.values),n):ye(t,e)};function Vn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?re(t,e,n):tt(t)(t,e)}function Pt({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=t[0],h={done:!1,value:f},g=y=>a!==void 0&&yl,v=y=>a===void 0?l:l===void 0||Math.abs(a-y)-b*Math.exp(-y/s),M=y=>d+V(y),w=y=>{const A=V(y),D=M(y);h.done=Math.abs(A)<=u,h.value=h.done?d:D};let m,S;const P=y=>{g(h.value)&&(m=y,S=Ge({keyframes:[h.value,v(h.value)],velocity:Nt(M,y,h.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:y=>{let A=!1;return!S&&m===void 0&&(A=!0,w(y),P(y)),m!==void 0&&y>=m?S.next(y-m):(!A&&w(y),h)}}}const Tr=oe(.42,0,1,1),Vr=oe(0,0,.58,1),Sn=oe(.42,0,.58,1),Ft={linear:W,easeIn:Tr,easeInOut:Sn,easeOut:Vr,circIn:qe,circInOut:tn,circOut:Fs,backIn:ze,backInOut:Jt,backOut:Qt,anticipate:en},Ne=t=>{if($e(t)){Fe(t.length===4);const[e,n,s,r]=t;return oe(e,n,s,r)}else if(typeof t=="string")return Fe(Ft[t]!==void 0),Ft[t];return t};function Sr(t,e,n){const s=[],r=n||Vn,i=t.length-1;for(let o=0;oe[0];if(i===2&&t[0]===t[1])return()=>e[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=Sr(e,s,r),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(G(t[0],t[i-1],u)):l}function xr(t,e){return t.map(n=>n*e)}function wr(t,e){return t.map(()=>e||Sn).splice(0,t.length-1)}function ve({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const r=kt(s)?s.map(Ne):Ne(s),i={done:!1,value:e[0]},o=xr(n&&n.length===e.length?n:Wt(e),t),a=Ar(o,e,{ease:Array.isArray(r)?r:wr(e,r)});return{calculatedDuration:t,next:l=>(i.value=a(l),i.done=l>=t,i)}}const Mr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>K.update(e,!0),stop:()=>De(e),now:()=>me.isProcessing?me.timestamp:k.now()}},Pr={decay:Pt,inertia:Pt,tween:ve,keyframes:ve,spring:Ge},Fr=t=>t/100;class nt extends bn{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();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=r?.KeyframeResolver||Xe,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Ve(n)?n:Pr[n]||ve;let l,u;a!==ve&&typeof e[0]!="number"&&(l=et(Fr,Vn(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});i==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=We(c));const{calculatedDuration:f}=c,h=f+r,g=h*(s+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=s;if(this.startTime===null)return i.next(0);const{delay:h,repeat:g,repeatType:v,repeatDelay:b,onUpdate:T}=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)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const d=this.currentTime-h*(this.speed>=0?1:-1),V=this.speed>=0?d<0:d>c;this.currentTime=Math.max(d,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let M=this.currentTime,w=i;if(g){const y=Math.min(this.currentTime,c)/f;let A=Math.floor(y),D=y%1;!D&&y>=1&&(D=1),D===1&&A--,A=Math.min(A,g+1),!!(A%2)&&(v==="reverse"?(D=1-D,b&&(D-=b/f)):v==="mirror"&&(w=o)),M=G(0,1,D)*f}const m=V?{done:!1,value:l[0]}:w.next(M);a&&(m.value=a(m.value));let{done:S}=m;!V&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return P&&r!==void 0&&(m.value=Se(l,this.options,r)),T&&T(m.value),P&&this.finish(),m}get duration(){const{resolved:e}=this;return e?O(e.calculatedDuration):0}get time(){return O(this.currentTime)}set time(e){e=E(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){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=O(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Mr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??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";const{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)}}const Cr=new Set(["opacity","clipPath","filter","transform"]);function Dr(t,e,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Yt(a,r);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const Rr=_e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),be=10,Ir=2e4;function Er(t){return Ve(t.type)||t.type==="spring"||!qt(t.ease)}function Or(t,e){const n=new nt({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const r=[];let i=0;for(;!s.done&&ithis.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&ge()&&Kr(o)&&(o=An[o]),Er(this.options)){const{onComplete:h,onUpdate:g,motionValue:v,element:b,...T}=this.options,d=Or(e,T);e=d.keyframes,e.length===1&&(e[1]=e[0]),r=d.duration,i=d.times,o=d.ease,a="keyframes"}const f=Dr(l.owner.current,u,e,{...this.options,duration:r,times:i,ease:o});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(gt(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;l.set(Se(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return O(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return O(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=E(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return W;const{animation:s}=n;gt(s,e)}return W}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:h,...g}=this.options,v=new nt({...g,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),b=E(this.time);u.setWithVelocity(v.sample(b-be).value,v.sample(b).value,be)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:r,repeatType:i,damping:o,type:a}=e;return Rr()&&s&&Cr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const Br={type:"spring",stiffness:500,damping:25,restSpeed:10},Nr=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),kr={type:"keyframes",duration:.8},Lr={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_r=(t,{keyframes:e})=>e.length>2?kr:j.has(t)?t.startsWith("scale")?Nr(e[1]):Br:Lr;function Wr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const xn=(t,e,n,s={},r,i)=>o=>{const a=Ut(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-E(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:r};Wr(a)||(c={...c,..._r(t,c)}),c.duration&&(c.duration=E(c.duration)),c.repeatDelay&&(c.repeatDelay=E(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&e.get()!==void 0){const h=Se(c.keyframes,a);if(h!==void 0)return K.update(()=>{c.onUpdate(h),c.onComplete()}),new Ot([])}return!i&&Ct.supports(c)?new Ct(c):new nt(c)};function Gr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function jr(t,e,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const h=t.getValue(f,(i=t.latestValues[f])!==null&&i!==void 0?i:null),g=l[f];if(g===void 0||c&&Gr(c,f))continue;const v={delay:n,...Ut(o||{},f)};let b=!1;if(window.MotionHandoffAnimation){const d=Ss(t);if(d){const V=window.MotionHandoffAnimation(d,f,K);V!==null&&(v.startTime=V,b=!0)}}bs(t,f),h.start(xn(f,h,g,t.shouldReduceMotion&&j.has(f)?{type:!1}:v,t,b));const T=h.animation;T&&u.push(T)}return a&&Promise.all(u).then(()=>{K.update(()=>{a&&ys(t,a)})}),u}function Ur(t){return t instanceof SVGElement&&t.tagName!=="svg"}const $r={};function zr(t,{layout:e,layoutId:n}){return j.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!$r[t]||t==="opacity")}function wn(t,e,n){var s;const{style:r}=t,i={};for(const o in r)(C(r[o])||e.style&&C(e.style[o])||zr(o,t)||((s=n?.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function qr(t,e,n){const s=wn(t,e,n);for(const r in t)if(C(t[r])||C(e[r])){const i=ie.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=t[r]}return s}const Yr=typeof window<"u",ke={current:null},Mn={current:!1};function Xr(){if(Mn.current=!0,!!Yr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ke.current=t.matches;t.addListener(e),e()}else ke.current=!1}function Hr(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Zr(t){return typeof t=="string"||Array.isArray(t)}const Qr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Jr=["initial",...Qr];function Pn(t){return Hr(t.animate)||Jr.some(e=>Zr(t[e]))}function ei(t){return!!(Pn(t)||t.variants)}function ti(t,e,n){for(const s in e){const r=e[s],i=n[s];if(C(r))t.addValue(s,r);else if(C(i))t.addValue(s,te(r,{owner:t}));else if(i!==r)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=t.getStaticValue(s);t.addValue(s,te(o!==void 0?o:r,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Dt={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"]},Le={};for(const t in Dt)Le[t]={isEnabled:e=>Dt[t].some(n=>!!e[n])};const ni=[...un,F,X],si=t=>ni.find(ln(t)),Rt=()=>({min:0,max:0}),st=()=>({x:Rt(),y:Rt()}),It=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fn{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Xe,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=()=>{const h=k.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Mn.current||Xr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ke.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){z.delete(this.current),this.projection&&this.projection.unmount(),De(this.notifyUpdate),De(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=j.has(e),r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&K.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),i(),o&&o(),n.owner&&n.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 Le){const n=Le[e];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[e]&&r&&s(this.props)&&(this.features[e]=new r(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):st()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=te(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(sn(r)||nn(r))?r=parseFloat(r):!si(r)&&X.test(n)&&(r=yn(e,n)),this.setBaseTarget(e,C(r)?r.get():r)),C(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=zt(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[e])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!C(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new $t),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Cn extends Fn{constructor(){super(...arguments),this.KeyframeResolver=vn}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;C(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Dn=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ri={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ii=ie.length;function oi(t,e,n){let s="",r=!0;for(let i=0;itypeof t=="string"&&t.toLowerCase()==="svg";class pi extends Cn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=st}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(j.has(n)){const s=Je(n);return s&&s.default||0}return n=In.has(n)?n:Ue(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return qr(e,n,s)}build(e,n,s){fi(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,r){hi(e,n,s,r)}mount(e){this.isSVGTag=di(e.tagName),super.mount(e)}}function mi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function gi(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function yi(t,e){return mi(gi(t.getBoundingClientRect(),e))}function vi(t){return window.getComputedStyle(t)}class bi extends Cn{constructor(){super(...arguments),this.type="html",this.renderInstance=En}readValueFromInstance(e,n){if(j.has(n)){const s=Je(n);return s&&s.default||0}else{const s=vi(e),r=(on(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return yi(e,n)}build(e,n,s){Rn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return wn(e,n,s)}}function Ti(t,e){return t in e}class Vi extends Fn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(Ti(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return st()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Si(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Ur(t)?new pi(e):new bi(e);n.mount(t),z.set(t,n)}function Ai(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Vi(e);n.mount(t),z.set(t,n)}function xi(t,e,n){const s=C(t)?t:te(t);return s.start(xn("",s,e,n)),s.animation}function wi(t,e){return C(t)||typeof t=="number"||typeof t=="string"&&!je(e)}function On(t,e,n,s){const r=[];if(wi(t,e))r.push(xi(t,je(e)&&e.default||e,n&&(n.default||n)));else{const i=Gt(t,e,s),o=i.length;for(let a=0;a{s.push(...On(a,i,o))}),s}function Pi(t){return Array.isArray(t)&&Array.isArray(t[0])}function Fi(t){function e(n,s,r){let i=[];return Pi(n)?i=Mi(n,s,t):i=On(n,s,r,t),new Ot(i)}return e}const Ci=Fi();function Di(t,e){if(t==="first")return 0;{const n=e-1;return t==="last"?n:n/2}}function Ri(t=.1,{startDelay:e=0,from:n=0,ease:s}={}){return(r,i)=>{const o=typeof n=="number"?n:Di(n,i),a=Math.abs(o-r);let l=t*a;if(s){const u=i*t;l=Ne(s)(l/u)*u}return e+l}}const Ii=document.querySelectorAll("img, h1");Ci(Ii,{opacity:[0,1]},{duration:.6,delay:Ri(.6,{startDelay:.2}),ease:"easeIn"}); diff --git a/dist/_astro/404.astro_astro_type_script_index_0_lang.DM1z4ar6.js b/dist/_astro/404.astro_astro_type_script_index_0_lang.DM1z4ar6.js deleted file mode 100644 index d7f29c1..0000000 --- a/dist/_astro/404.astro_astro_type_script_index_0_lang.DM1z4ar6.js +++ /dev/null @@ -1 +0,0 @@ -const W=t=>t;let Pe=W;function Bn(t,e){t.indexOf(e)===-1&&t.push(e)}function Ot(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Kt{constructor(){this.subscriptions=[]}add(e){return Bn(this.subscriptions,e),()=>Ot(this.subscriptions,e)}notify(e,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,n,s);else for(let i=0;i{const g=f&&s?e:n;return c&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(o=u,s){r=!0;return}s=!0,[e,n]=[n,e],e.forEach(a),e.clear(),s=!1,r&&(r=!1,l.process(u))}};return l}const fe=["read","resolveKeyframes","update","preRender","render","postRender"],Ln=40;function _n(t,e){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=fe.reduce((d,V)=>(d[V]=kn(i),d),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:h}=o,g=()=>{const d=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(d-r.timestamp,Ln),1),r.timestamp=d,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),f.process(r),h.process(r),r.isProcessing=!1,n&&e&&(s=!1,t(g))},v=()=>{n=!0,s=!0,r.isProcessing||t(g)};return{schedule:fe.reduce((d,V)=>{const M=o[V];return d[V]=(w,m=!1,S=!1)=>(n||v(),M.schedule(w,m,S)),d},{}),cancel:d=>{for(let V=0;V(de===void 0&&k.set(pe.isProcessing||Nn.useManualTiming?pe.timestamp:performance.now()),de),set:t=>{de=t,queueMicrotask(Wn)}},ct=30,Gn=t=>!isNaN(parseFloat(t));class jn{constructor(e,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=k.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=k.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gn(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Kt);const s=this.events[e].add(n);return e==="change"?()=>{s(),K.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=k.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ct)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ct);return Bt(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),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 te(t,e){return new jn(t,e)}function _e(t){let e;return()=>(e===void 0&&(e=t()),e)}const Un=_e(()=>window.ScrollTimeline!==void 0);class Nt{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,n){return Promise.all(this.animations).then(e).catch(n)}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;sUn()&&r.attachTimeline?r.attachTimeline(e):n(r));return()=>{s.forEach((r,i)=>{r&&r(),this.animations[i].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 n=0;nn[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const Te=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},kt=(t,e,n=10)=>{let s="";const r=Math.max(Math.round(e/n),2);for(let i=0;it*1e3,O=t=>t/1e3,$n=5;function Lt(t,e,n){const s=Math.max(e-$n,0);return Bt(n-t(s),e-s)}const G=(t,e,n)=>n>e?e:n{const c=u*o,f=c*t,h=c-n,g=De(u,o),v=Math.exp(-f);return xe-h/g*v},i=u=>{const f=u*o*t,h=f*n+n,g=Math.pow(o,2)*Math.pow(u,2)*t,v=Math.exp(-f),b=De(Math.pow(u,2),o);return(-r(u)+xe>0?-1:1)*((h-g)*v)/b}):(r=u=>{const c=Math.exp(-u*t),f=(u-n)*t+1;return-xe+c*f},i=u=>{const c=Math.exp(-u*t),f=(n-u)*(t*t);return c*f});const a=5/t,l=Yn(r,i,a);if(t=E(t),isNaN(l))return{stiffness:x.stiffness,damping:x.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const qn=12;function Yn(t,e,n){let s=n;for(let r=1;r=me?1/0:e}const Xn=["duration","bounce"],Hn=["stiffness","damping","mass"];function ft(t,e){return e.some(n=>t[n]!==void 0)}function Zn(t){let e={velocity:x.velocity,stiffness:x.stiffness,damping:x.damping,mass:x.mass,isResolvedFromDuration:!1,...t};if(!ft(t,Hn)&&ft(t,Xn))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*G(.05,1,1-t.bounce)*Math.sqrt(r);e={...e,mass:x.mass,stiffness:r,damping:i}}else{const n=zn(t);e={...e,...n,mass:x.mass},e.isResolvedFromDuration=!0}return e}function Ge(t=x.visualDuration,e=x.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:g}=Zn({...n,velocity:-O(n.velocity||0)}),v=h||0,b=u/(2*Math.sqrt(l*c)),T=o-i,d=O(Math.sqrt(l/c)),V=Math.abs(T)<5;s||(s=V?x.restSpeed.granular:x.restSpeed.default),r||(r=V?x.restDelta.granular:x.restDelta.default);let M;if(b<1){const m=De(d,b);M=S=>{const F=Math.exp(-b*d*S);return o-F*((v+b*d*T)/m*Math.sin(m*S)+T*Math.cos(m*S))}}else if(b===1)M=m=>o-Math.exp(-d*m)*(T+(v+d*T)*m);else{const m=d*Math.sqrt(b*b-1);M=S=>{const F=Math.exp(-b*d*S),y=Math.min(m*S,300);return o-F*((v+b*d*T)*Math.sinh(y)+m*T*Math.cosh(y))/m}}const w={calculatedDuration:g&&f||null,next:m=>{const S=M(m);if(g)a.done=m>=f;else{let F=0;b<1&&(F=m===0?E(v):Lt(M,m,S));const y=Math.abs(F)<=s,A=Math.abs(o-S)<=r;a.done=y&&A}return a.value=a.done?o:S,a},toString:()=>{const m=Math.min(We(w),me),S=kt(F=>w.next(m*F).value,m,30);return m+"ms "+S}};return w}function Qn(t,e=100,n){const s=n({...t,keyframes:[0,e]}),r=Math.min(We(s),me);return{type:"keyframes",ease:i=>s.next(r*i).value/e,duration:O(r)}}const re=(t,e,n)=>t+(e-t)*n;function _t(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const r=Te(0,e,s);t.push(re(n,1,r))}}function Wt(t){const e=[0];return _t(e,t.length-1),e}const C=t=>!!(t&&t.getVelocity);function Jn(t,e,n){var s;if(t instanceof Element)return[t];if(typeof t=="string"){let r=document;const i=(s=n?.[t])!==null&&s!==void 0?s:r.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}function je(t){return typeof t=="object"&&!Array.isArray(t)}function Gt(t,e,n,s){return typeof t=="string"&&je(e)?Jn(t,n,s):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Ve(t){return typeof t=="function"}function ht(t,e,n,s){var r;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?n:(r=s.get(e))!==null&&r!==void 0?r:t}const es=(t,e,n)=>{const s=e-t;return((n-t)%s+s)%s+t},jt=t=>Array.isArray(t)&&typeof t[0]!="number";function Ut(t,e){return jt(t)?t[es(0,t.length,e)]:t}function ts(t,e,n){for(let s=0;se&&r.at{const A=ls(w),{delay:D=0,times:I=Wt(A),type:Ae="keyframes",repeat:le,repeatType:Ii,repeatDelay:Ei=0,...Kn}=m;let{ease:B=e.ease||"easeOut",duration:R}=m;const rt=typeof D=="function"?D(F,y):D,it=A.length,ot=Ve(Ae)?Ae:r?.[Ae];if(it<=2&&ot){let H=100;if(it===2&&fs(A)){const Z=A[1]-A[0];H=Math.abs(Z)}const ue={...Kn};R!==void 0&&(ue.duration=E(R));const ce=Qn(ue,H,ot);B=ce.ease,R=ce.duration}R??(R=i);const at=f+rt;I.length===1&&I[0]===0&&(I[1]=1);const lt=I.length-A.length;if(lt>0&&_t(I,lt),A.length===1&&A.unshift(null),le){R=is(R,le);const H=[...A],ue=[...I];B=Array.isArray(B)?[...B]:[B];const ce=[...B];for(let Z=0;Z{for(const b in g){const T=g[b];T.sort(ss);const d=[],V=[],M=[];for(let m=0;mtypeof t=="number",fs=t=>t.every(cs),z=new WeakMap,ie=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(ie),hs={type:"spring",stiffness:500,damping:25,restSpeed:10},ds=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),ps={type:"keyframes",duration:.8},ms={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},gs=(t,{keyframes:e})=>e.length>2?ps:j.has(t)?t.startsWith("scale")?ds(e[1]):hs:ms;function $t(t,e){return t?t[e]||t.default||t:void 0}const ys=t=>t!==null;function Se(t,{repeat:e,repeatType:n="loop"},s){const r=t.filter(ys),i=e&&n!=="loop"&&e%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const zt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,vs=1e-7,bs=12;function Ts(t,e,n,s,r){let i,o,a=0;do o=e+(n-e)/2,i=zt(o,s,r)-t,i>0?n=o:e=o;while(Math.abs(i)>vs&&++aTs(i,0,1,t,n);return i=>i===0||i===1?i:zt(r(i),e,s)}const qt=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Yt=t=>e=>1-t(1-e),Xt=oe(.33,1.53,.69,.99),Ue=Yt(Xt),Ht=qt(Ue),Zt=t=>(t*=2)<1?.5*Ue(t):.5*(2-Math.pow(2,-10*(t-1))),$e=t=>1-Math.sin(Math.acos(t)),Vs=Yt($e),Qt=qt($e),Jt=t=>/^0[^.\s]+$/u.test(t);function Ss(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Jt(t):!0}const en=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),tn=t=>e=>typeof e=="string"&&e.startsWith(t),nn=tn("--"),As=tn("var(--"),ze=t=>As(t)?xs.test(t.split("/*")[0].trim()):!1,xs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ws=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ms(t){const e=ws.exec(t);if(!e)return[,];const[,n,s,r]=e;return[`--${n??s}`,r]}function sn(t,e,n=1){const[s,r]=Ms(t);if(!s)return;const i=window.getComputedStyle(e).getPropertyValue(s);if(i){const o=i.trim();return en(o)?parseFloat(o):o}return ze(r)?sn(r,e,n+1):r}const Y={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ne={...Y,transform:t=>G(0,1,t)},he={...Y,default:1},ae=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),N=ae("deg"),$=ae("%"),p=ae("px"),Fs=ae("vh"),Ps=ae("vw"),mt={...$,parse:t=>$.parse(t)/100,transform:t=>$.transform(t*100)},Cs=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),gt=t=>t===Y||t===p,yt=(t,e)=>parseFloat(t.split(", ")[e]),vt=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return yt(r[1],e);{const i=s.match(/^matrix\((.+)\)$/u);return i?yt(i[1],t):0}},Ds=new Set(["x","y","z"]),Rs=ie.filter(t=>!Ds.has(t));function Is(t){const e=[];return Rs.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const q={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:vt(4,13),y:vt(5,14)};q.translateX=q.x;q.translateY=q.y;const rn=t=>e=>e.test(t),Es={test:t=>t==="auto",parse:t=>t},on=[Y,p,$,N,Ps,Fs,Es],bt=t=>on.find(rn(t)),_=new Set;let Re=!1,Ie=!1;function an(){if(Ie){const t=Array.from(_).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const r=Is(s);r.length&&(n.set(s,r),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ie=!1,Re=!1,_.forEach(t=>t.complete()),_.clear()}function ln(){_.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ie=!0)})}function Os(){ln(),an()}class qe{constructor(e,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_.add(this),Re||(Re=!0,K.read(ln),K.resolveKeyframes(an))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:r}=this;for(let i=0;iMath.round(t*1e5)/1e5,Ye=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ks(t){return t==null}const Bs=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xe=(t,e)=>n=>!!(typeof n=="string"&&Bs.test(n)&&n.startsWith(t)||e&&!Ks(n)&&Object.prototype.hasOwnProperty.call(n,e)),un=(t,e,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Ye);return{[t]:parseFloat(r),[e]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ns=t=>G(0,255,t),we={...Y,transform:t=>Math.round(Ns(t))},L={test:Xe("rgb","red"),parse:un("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+we.transform(t)+", "+we.transform(e)+", "+we.transform(n)+", "+ee(ne.transform(s))+")"};function ks(t){let e="",n="",s="",r="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),r=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),r=t.substring(4,5),e+=e,n+=n,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Ee={test:Xe("#"),parse:ks,transform:L.transform},U={test:Xe("hsl","hue"),parse:un("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+$.transform(ee(e))+", "+$.transform(ee(n))+", "+ee(ne.transform(s))+")"},P={test:t=>L.test(t)||Ee.test(t)||U.test(t),parse:t=>L.test(t)?L.parse(t):U.test(t)?U.parse(t):Ee.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?L.transform(t):U.transform(t)},Ls=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _s(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Ye))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(Ls))===null||n===void 0?void 0:n.length)||0)>0}const cn="number",fn="color",Ws="var",Gs="var(",Tt="${}",js=/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 se(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=e.replace(js,l=>(P.test(l)?(s.color.push(i),r.push(fn),n.push(P.parse(l))):l.startsWith(Gs)?(s.var.push(i),r.push(Ws),n.push(l)):(s.number.push(i),r.push(cn),n.push(parseFloat(l))),++i,Tt)).split(Tt);return{values:n,split:a,indexes:s,types:r}}function hn(t){return se(t).values}function dn(t){const{split:e,types:n}=se(t),s=e.length;return r=>{let i="";for(let o=0;otypeof t=="number"?0:t;function $s(t){const e=hn(t);return dn(t)(e.map(Us))}const X={test:_s,parse:hn,createTransformer:dn,getAnimatableNone:$s},zs=new Set(["brightness","contrast","saturate","opacity"]);function qs(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Ye)||[];if(!s)return t;const r=n.replace(s,"");let i=zs.has(e)?1:0;return s!==n&&(i*=100),e+"("+i+r+")"}const Ys=/\b([a-z-]*)\(.*?\)/gu,Oe={...X,getAnimatableNone:t=>{const e=t.match(Ys);return e?e.map(qs).join(" "):t}},Xs={borderWidth:p,borderTopWidth:p,borderRightWidth:p,borderBottomWidth:p,borderLeftWidth:p,borderRadius:p,radius:p,borderTopLeftRadius:p,borderTopRightRadius:p,borderBottomRightRadius:p,borderBottomLeftRadius:p,width:p,maxWidth:p,height:p,maxHeight:p,top:p,right:p,bottom:p,left:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,backgroundPositionX:p,backgroundPositionY:p},Hs={rotate:N,rotateX:N,rotateY:N,rotateZ:N,scale:he,scaleX:he,scaleY:he,scaleZ:he,skew:N,skewX:N,skewY:N,distance:p,translateX:p,translateY:p,translateZ:p,x:p,y:p,z:p,perspective:p,transformPerspective:p,opacity:ne,originX:mt,originY:mt,originZ:p},Vt={...Y,transform:Math.round},He={...Xs,...Hs,zIndex:Vt,size:p,fillOpacity:ne,strokeOpacity:ne,numOctaves:Vt},Zs={...He,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:Oe,WebkitFilter:Oe},Ze=t=>Zs[t];function pn(t,e){let n=Ze(t);return n!==Oe&&(n=X),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Qs=new Set(["auto","none","0"]);function Js(t,e,n){let s=0,r;for(;s{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const St=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(X.test(t)||t==="0")&&!t.startsWith("url("));function er(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nnr?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Os(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=k.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!tr(e,s,r,i))if(o)this.options.duration=0;else{l?.(Se(e,this.options,n)),a?.(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,n);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function At({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=t[0],h={done:!1,value:f},g=y=>a!==void 0&&yl,v=y=>a===void 0?l:l===void 0||Math.abs(a-y)-b*Math.exp(-y/s),M=y=>d+V(y),w=y=>{const A=V(y),D=M(y);h.done=Math.abs(A)<=u,h.value=h.done?d:D};let m,S;const F=y=>{g(h.value)&&(m=y,S=Ge({keyframes:[h.value,v(h.value)],velocity:Lt(M,y,h.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return F(0),{calculatedDuration:null,next:y=>{let A=!1;return!S&&m===void 0&&(A=!0,w(y),F(y)),m!==void 0&&y>=m?S.next(y-m):(!A&&w(y),h)}}}const sr=oe(.42,0,1,1),rr=oe(0,0,.58,1),yn=oe(.42,0,.58,1),Qe=t=>Array.isArray(t)&&typeof t[0]=="number",xt={linear:W,easeIn:sr,easeInOut:yn,easeOut:rr,circIn:$e,circInOut:Qt,circOut:Vs,backIn:Ue,backInOut:Ht,backOut:Xt,anticipate:Zt},Ke=t=>{if(Qe(t)){Pe(t.length===4);const[e,n,s,r]=t;return oe(e,n,s,r)}else if(typeof t=="string")return Pe(xt[t]!==void 0),xt[t];return t},ir=(t,e)=>n=>e(t(n)),Je=(...t)=>t.reduce(ir);function Me(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function or({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let r=0,i=0,o=0;if(!e)r=i=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;r=Me(l,a,t+1/3),i=Me(l,a,t),o=Me(l,a,t-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function ge(t,e){return n=>n>0?e:t}const Fe=(t,e,n)=>{const s=t*t,r=n*(e*e-s)+s;return r<0?0:Math.sqrt(r)},ar=[Ee,L,U],lr=t=>ar.find(e=>e.test(t));function wt(t){const e=lr(t);if(!e)return!1;let n=e.parse(t);return e===U&&(n=or(n)),n}const Mt=(t,e)=>{const n=wt(t),s=wt(e);if(!n||!s)return ge(t,e);const r={...n};return i=>(r.red=Fe(n.red,s.red,i),r.green=Fe(n.green,s.green,i),r.blue=Fe(n.blue,s.blue,i),r.alpha=re(n.alpha,s.alpha,i),L.transform(r))},Be=new Set(["none","hidden"]);function ur(t,e){return Be.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function cr(t,e){return n=>re(t,e,n)}function et(t){return typeof t=="number"?cr:typeof t=="string"?ze(t)?ge:P.test(t)?Mt:dr:Array.isArray(t)?vn:typeof t=="object"?P.test(t)?Mt:fr:ge}function vn(t,e){const n=[...t],s=n.length,r=t.map((i,o)=>et(i)(i,e[o]));return i=>{for(let o=0;o{for(const i in s)n[i]=s[i](r);return n}}function hr(t,e){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i{const n=X.createTransformer(e),s=se(t),r=se(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Be.has(t)&&!r.values.length||Be.has(e)&&!s.values.length?ur(t,e):Je(vn(hr(s,r),r.values),n):ge(t,e)};function bn(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?re(t,e,n):et(t)(t,e)}function pr(t,e,n){const s=[],r=n||bn,i=t.length-1;for(let o=0;oe[0];if(i===2&&t[0]===t[1])return()=>e[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=pr(e,s,r),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(G(t[0],t[i-1],u)):l}function gr(t,e){return t.map(n=>n*e)}function yr(t,e){return t.map(()=>e||yn).splice(0,t.length-1)}function ye({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const r=jt(s)?s.map(Ke):Ke(s),i={done:!1,value:e[0]},o=gr(n&&n.length===e.length?n:Wt(e),t),a=mr(o,e,{ease:Array.isArray(r)?r:yr(e,r)});return{calculatedDuration:t,next:l=>(i.value=a(l),i.done=l>=t,i)}}const vr=t=>{const e=({timestamp:n})=>t(n);return{start:()=>K.update(e,!0),stop:()=>Ce(e),now:()=>pe.isProcessing?pe.timestamp:k.now()}},br={decay:At,inertia:At,tween:ye,keyframes:ye,spring:Ge},Tr=t=>t/100;class tt extends gn{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();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=r?.KeyframeResolver||qe,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Ve(n)?n:br[n]||ye;let l,u;a!==ye&&typeof e[0]!="number"&&(l=Je(Tr,bn(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});i==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=We(c));const{calculatedDuration:f}=c,h=f+r,g=h*(s+1)-r;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:g}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:y}=this.options;return{done:!0,value:y[y.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=s;if(this.startTime===null)return i.next(0);const{delay:h,repeat:g,repeatType:v,repeatDelay:b,onUpdate:T}=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)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const d=this.currentTime-h*(this.speed>=0?1:-1),V=this.speed>=0?d<0:d>c;this.currentTime=Math.max(d,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let M=this.currentTime,w=i;if(g){const y=Math.min(this.currentTime,c)/f;let A=Math.floor(y),D=y%1;!D&&y>=1&&(D=1),D===1&&A--,A=Math.min(A,g+1),!!(A%2)&&(v==="reverse"?(D=1-D,b&&(D-=b/f)):v==="mirror"&&(w=o)),M=G(0,1,D)*f}const m=V?{done:!1,value:l[0]}:w.next(M);a&&(m.value=a(m.value));let{done:S}=m;!V&&u!==null&&(S=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return F&&r!==void 0&&(m.value=Se(l,this.options,r)),T&&T(m.value),F&&this.finish(),m}get duration(){const{resolved:e}=this;return e?O(e.calculatedDuration):0}get time(){return O(this.currentTime)}set time(e){e=E(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){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=O(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=vr,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??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";const{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)}}const Vr=new Set(["opacity","clipPath","filter","transform"]),Sr={linearEasing:void 0};function Ar(t,e){const n=_e(t);return()=>{var s;return(s=Sr[e])!==null&&s!==void 0?s:n()}}const ve=Ar(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Tn(t){return!!(typeof t=="function"&&ve()||!t||typeof t=="string"&&(t in Ne||ve())||Qe(t)||Array.isArray(t)&&t.every(Tn))}const J=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Ne={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:J([0,.65,.55,1]),circOut:J([.55,0,1,.45]),backIn:J([.31,.01,.66,-.59]),backOut:J([.33,1.53,.69,.99])};function Vn(t,e){if(t)return typeof t=="function"&&ve()?kt(t,e):Qe(t)?J(t):Array.isArray(t)?t.map(n=>Vn(n,e)||Ne.easeOut):Ne[t]}function xr(t,e,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const c=Vn(a,r);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:s,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}function Ft(t,e){t.timeline=e,t.onfinish=null}const wr=_e(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),be=10,Mr=2e4;function Fr(t){return Ve(t.type)||t.type==="spring"||!Tn(t.ease)}function Pr(t,e){const n=new tt({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const r=[];let i=0;for(;!s.done&&ithis.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(e,n){var s;let{duration:r=300,times:i,ease:o,type:a,motionValue:l,name:u,startTime:c}=this.options;if(!(!((s=l.owner)===null||s===void 0)&&s.current))return!1;if(typeof o=="string"&&ve()&&Cr(o)&&(o=Sn[o]),Fr(this.options)){const{onComplete:h,onUpdate:g,motionValue:v,element:b,...T}=this.options,d=Pr(e,T);e=d.keyframes,e.length===1&&(e[1]=e[0]),r=d.duration,i=d.times,o=d.ease,a="keyframes"}const f=xr(l.owner.current,u,e,{...this.options,duration:r,times:i,ease:o});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(Ft(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:h}=this.options;l.set(Se(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return O(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return O(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=E(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return W;const{animation:s}=n;Ft(s,e)}return W}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:h,...g}=this.options,v=new tt({...g,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),b=E(this.time);u.setWithVelocity(v.sample(b-be).value,v.sample(b).value,be)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:r,repeatType:i,damping:o,type:a}=e;return wr()&&s&&Vr.has(s)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}function Dr({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const An=(t,e,n,s={},r,i)=>o=>{const a=$t(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-E(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:r};Dr(a)||(c={...c,...gs(t,c)}),c.duration&&(c.duration=E(c.duration)),c.repeatDelay&&(c.repeatDelay=E(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!i&&e.get()!==void 0){const h=Se(c.keyframes,a);if(h!==void 0)return K.update(()=>{c.onUpdate(h),c.onComplete()}),new Nt([])}return!i&&Pt.supports(c)?new Pt(c):new tt(c)},Rr=t=>Array.isArray(t),Ir=t=>Rr(t)?t[t.length-1]||0:t;function Ct(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function xn(t,e,n,s){if(typeof e=="function"){const[r,i]=Ct(s);e=e(n!==void 0?n:t.custom,r,i)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[r,i]=Ct(s);e=e(n!==void 0?n:t.custom,r,i)}return e}function Er(t,e,n){const s=t.getProps();return xn(s,e,s.custom,t)}function Or(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,te(n))}function Kr(t,e){const n=Er(t,e);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=Ir(i[o]);Or(t,o,a)}}const nt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Br="framerAppearId",Nr="data-"+nt(Br);function kr(t){return t.props[Nr]}function Lr(t){return!!(C(t)&&t.add)}function _r(t,e){const n=t.getValue("willChange");if(Lr(n))return n.add(e)}function Wr({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function Gr(t,e,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],c=r&&t.animationState&&t.animationState.getState()[r];for(const f in l){const h=t.getValue(f,(i=t.latestValues[f])!==null&&i!==void 0?i:null),g=l[f];if(g===void 0||c&&Wr(c,f))continue;const v={delay:n,...$t(o||{},f)};let b=!1;if(window.MotionHandoffAnimation){const d=kr(t);if(d){const V=window.MotionHandoffAnimation(d,f,K);V!==null&&(v.startTime=V,b=!0)}}_r(t,f),h.start(An(f,h,g,t.shouldReduceMotion&&j.has(f)?{type:!1}:v,t,b));const T=h.animation;T&&u.push(T)}return a&&Promise.all(u).then(()=>{K.update(()=>{a&&Kr(t,a)})}),u}function jr(t){return t instanceof SVGElement&&t.tagName!=="svg"}const Ur={};function $r(t,{layout:e,layoutId:n}){return j.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ur[t]||t==="opacity")}function wn(t,e,n){var s;const{style:r}=t,i={};for(const o in r)(C(r[o])||e.style&&C(e.style[o])||$r(o,t)||((s=n?.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function zr(t,e,n){const s=wn(t,e,n);for(const r in t)if(C(t[r])||C(e[r])){const i=ie.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=t[r]}return s}const qr=typeof window<"u",ke={current:null},Mn={current:!1};function Yr(){if(Mn.current=!0,!!qr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ke.current=t.matches;t.addListener(e),e()}else ke.current=!1}function Xr(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Hr(t){return typeof t=="string"||Array.isArray(t)}const Zr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Qr=["initial",...Zr];function Fn(t){return Xr(t.animate)||Qr.some(e=>Hr(t[e]))}function Jr(t){return!!(Fn(t)||t.variants)}function ei(t,e,n){for(const s in e){const r=e[s],i=n[s];if(C(r))t.addValue(s,r);else if(C(i))t.addValue(s,te(r,{owner:t}));else if(i!==r)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=t.getStaticValue(s);t.addValue(s,te(o!==void 0?o:r,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Dt={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"]},Le={};for(const t in Dt)Le[t]={isEnabled:e=>Dt[t].some(n=>!!e[n])};const ti=[...on,P,X],ni=t=>ti.find(rn(t)),Rt=()=>({min:0,max:0}),st=()=>({x:Rt(),y:Rt()}),It=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Pn{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=qe,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=()=>{const h=k.now();this.renderScheduledAtthis.bindToMotionValue(s,n)),Mn.current||Yr(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ke.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){z.delete(this.current),this.projection&&this.projection.unmount(),Ce(this.notifyUpdate),Ce(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=j.has(e),r=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&K.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{r(),i(),o&&o(),n.owner&&n.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 Le){const n=Le[e];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[e]&&r&&s(this.props)&&(this.features[e]=new r(this)),this.features[e]){const i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):st()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=te(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(en(r)||Jt(r))?r=parseFloat(r):!ni(r)&&X.test(n)&&(r=pn(e,n)),this.setBaseTarget(e,C(r)?r.get():r)),C(r)?r.get():r}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=xn(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[e])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!C(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Kt),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Cn extends Pn{constructor(){super(...arguments),this.KeyframeResolver=mn}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;C(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const Dn=(t,e)=>e&&typeof t=="number"?e.transform(t):t,si={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},ri=ie.length;function ii(t,e,n){let s="",r=!0;for(let i=0;itypeof t=="string"&&t.toLowerCase()==="svg";class di extends Cn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=st}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(j.has(n)){const s=Ze(n);return s&&s.default||0}return n=In.has(n)?n:nt(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return zr(e,n,s)}build(e,n,s){ci(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,r){fi(e,n,s,r)}mount(e){this.isSVGTag=hi(e.tagName),super.mount(e)}}function pi({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function mi(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function gi(t,e){return pi(mi(t.getBoundingClientRect(),e))}function yi(t){return window.getComputedStyle(t)}class vi extends Cn{constructor(){super(...arguments),this.type="html",this.renderInstance=En}readValueFromInstance(e,n){if(j.has(n)){const s=Ze(n);return s&&s.default||0}else{const s=yi(e),r=(nn(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return gi(e,n)}build(e,n,s){Rn(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return wn(e,n,s)}}function bi(t,e){return t in e}class Ti extends Pn{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,n){if(bi(n,e)){const s=e[n];if(typeof s=="string"||typeof s=="number")return s}}getBaseTargetFromProps(){}removeValueFromRenderState(e,n){delete n.output[e]}measureInstanceViewportBox(){return st()}build(e,n){Object.assign(e.output,n)}renderInstance(e,{output:n}){Object.assign(e,n)}sortInstanceNodePosition(){return 0}}function Vi(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=jr(t)?new di(e):new vi(e);n.mount(t),z.set(t,n)}function Si(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new Ti(e);n.mount(t),z.set(t,n)}function Ai(t,e,n){const s=C(t)?t:te(t);return s.start(An("",s,e,n)),s.animation}function xi(t,e){return C(t)||typeof t=="number"||typeof t=="string"&&!je(e)}function On(t,e,n,s){const r=[];if(xi(t,e))r.push(Ai(t,je(e)&&e.default||e,n&&(n.default||n)));else{const i=Gt(t,e,s),o=i.length;for(let a=0;a{s.push(...On(a,i,o))}),s}function Mi(t){return Array.isArray(t)&&Array.isArray(t[0])}function Fi(t){function e(n,s,r){let i=[];return Mi(n)?i=wi(n,s,t):i=On(n,s,r,t),new Nt(i)}return e}const Pi=Fi();function Ci(t,e){if(t==="first")return 0;{const n=e-1;return t==="last"?n:n/2}}function Di(t=.1,{startDelay:e=0,from:n=0,ease:s}={}){return(r,i)=>{const o=typeof n=="number"?n:Ci(n,i),a=Math.abs(o-r);let l=t*a;if(s){const u=i*t;l=Ke(s)(l/u)*u}return e+l}}const Ri=document.querySelectorAll("img, h1");Pi(Ri,{opacity:[0,1]},{duration:.6,delay:Di(.6,{startDelay:.2}),ease:"easeIn"}); diff --git a/dist/_astro/index.astro_astro_type_script_index_0_lang.CDlQ0f5C.js b/dist/_astro/index.astro_astro_type_script_index_0_lang.CDlQ0f5C.js deleted file mode 100644 index 7a16052..0000000 --- a/dist/_astro/index.astro_astro_type_script_index_0_lang.CDlQ0f5C.js +++ /dev/null @@ -1 +0,0 @@ -import"./404.astro_astro_type_script_index_0_lang.DM1z4ar6.js"; diff --git a/dist/_astro/index.astro_astro_type_script_index_0_lang.DfOSDEly.js b/dist/_astro/index.astro_astro_type_script_index_0_lang.DfOSDEly.js new file mode 100644 index 0000000..6c31ae8 --- /dev/null +++ b/dist/_astro/index.astro_astro_type_script_index_0_lang.DfOSDEly.js @@ -0,0 +1 @@ +import"./404.astro_astro_type_script_index_0_lang.BT4rBAk0.js"; diff --git a/dist/index.html b/dist/index.html index a1c2828..c5ab155 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,3 +1,3 @@ z0x
logo

z0x

\ No newline at end of file +
logo

z0x

\ No newline at end of file