Anvil/assets/index-C1iGU3rq.js

5 lines
8.1 KiB
JavaScript
Raw Normal View History

2024-07-05 16:28:36 +02:00
var at=Object.defineProperty;var ut=(t,n,e)=>n in t?at(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e;var F=(t,n,e)=>ut(t,typeof n!="symbol"?n+"":n,e);import{x as ft,d as Y,y as ct,z,A as Z,B as lt,h as _t,C as dt,D as ht}from"./lifecycle-B8I1Hqtw.js";function $(){}const H=t=>t;function gt(t,n){for(const e in n)t[e]=n[e];return t}function tt(t){return t()}function W(){return Object.create(null)}function v(t){t.forEach(tt)}function M(t){return typeof t=="function"}function qt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let I;function zt(t,n){return t===n?!0:(I||(I=document.createElement("a")),I.href=n,t===I.href)}function pt(t){return Object.keys(t).length===0}function nt(t,...n){if(t==null){for(const s of n)s(void 0);return $}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function At(t){let n;return nt(t,e=>n=e)(),n}function It(t,n,e){t.$$.on_destroy.push(nt(n,e))}function Nt(t,n,e,s){if(t){const r=et(t,n,e,s);return t[0](r)}}function et(t,n,e,s){return t[1]&&s?gt(e.ctx.slice(),t[1](s(n))):e.ctx}function Pt(t,n,e,s){if(t[2]&&s){const r=t[2](s(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const o=[],f=Math.max(n.dirty.length,r.length);for(let i=0;i<f;i+=1)o[i]=n.dirty[i]|r[i];return o}return n.dirty|r}return n.dirty}function Rt(t,n,e,s,r,o){if(r){const f=et(n,e,s,o);t.p(f,r)}}function Bt(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let s=0;s<e;s++)n[s]=-1;return n}return-1}function Dt(t){const n={};for(const e in t)e[0]!=="$"&&(n[e]=t[e]);return n}function Ft(t,n){const e={};n=new Set(n);for(const s in t)!n.has(s)&&s[0]!=="$"&&(e[s]=t[s]);return e}function Vt(t){const n={};for(const e in t)n[e]=!0;return n}function Lt(t,n,e){return t.set(e),n}function Gt(t){return t&&M(t.destroy)?t.destroy:$}function Ht(t){const n=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return n?[parseFloat(n[1]),n[2]||"px"]:[t,"px"]}const st=typeof window<"u";let J=st?()=>window.performance.now():()=>Date.now(),K=st?t=>requestAnimationFrame(t):$;const S=new Set;function it(t){S.forEach(n=>{n.c(t)||(S.delete(n),n.f())}),S.size!==0&&K(it)}function U(t){let n;return S.size===0&&K(it),{promise:new Promise(e=>{S.add(n={c:t,f:e})}),abort(){S.delete(n)}}}const P=new Map;let R=0;function mt(t){let n=5381,e=t.length;for(;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}function yt(t,n){const e={stylesheet:ct(n),rules:{}};return P.set(t,e),e}function B(t,n,e,s,r,o,f,i=0){const l=16.666/s;let a=`{
`;for(let h=0;h<=1;h+=l){const m=n+(e-n)*o(h);a+=h*100+`%{${f(m,1-m)}}
`}const _=a+`100% {${f(e,1-e)}}
}`,c=`__svelte_${mt(_)}_${i}`,p=ft(t),{stylesheet:g,rules:u}=P.get(p)||yt(p,t);u[c]||(u[c]=!0,g.insertRule(`@keyframes ${c} ${_}`,g.cssRules.length));const d=t.style.animation||"";return t.style.animation=`${d?`${d}, `:""}${c} ${s}ms linear ${r}ms 1 both`,R+=1,c}function D(t,n){const e=(t.style.animation||"").split(", "),s=e.filter(n?o=>o.indexOf(n)<0:o=>o.indexOf("__svelte")===-1),r=e.length-s.length;r&&(t.style.animation=s.join(", "),R-=r,R||$t())}function $t(){K(()=>{R||(P.forEach(t=>{const{ownerNode:n}=t.stylesheet;n&&Y(n)}),P.clear())})}const O=[],X=[];let j=[];const L=[],xt=Promise.resolve();let G=!1;function bt(){G||(G=!0,xt.then(rt))}function C(t){j.push(t)}function Jt(t){L.push(t)}const V=new Set;let E=0;function rt(){if(E!==0)return;const t=Z;do{try{for(;E<O.length;){const n=O[E];E++,z(n),wt(n.$$)}}catch(n){throw O.length=0,E=0,n}for(z(null),O.length=0,E=0;X.length;)X.pop()();for(let n=0;n<j.length;n+=1){const e=j[n];V.has(e)||(V.add(e),e())}j.length=0}while(O.length);for(;L.length;)L.pop()();G=!1,V.clear(),z(t)}function wt(t){if(t.fragment!==null){t.update(),v(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(C)}}function vt(t){const n=[],e=[];j.forEach(s=>t.indexOf(s)===-1?n.push(s):e.push(s)),e.forEach(s=>s()),j=n}let q;function Q(){return q||(q=Promise.resolve(),q.then(()=>{q=null})),q}function w(t,n,e){t.dispatchEvent(lt(`${n?"intro":"outro"}${e}`))}const N=new Set;let y;function Kt(){y={r:0,c:[],p:y}}function Ut(){y.r||v(y.c),y=y.p}function kt(t,n){t&&t.i&&(N.delete(t),t.i(n))}function Qt(t,n,e,s){if(t&&t.o){if(N.has(t))return;N.add(t),y.c.push(()=>{N.delete(t),s&&(e&&t.d(1),s())}),t.o(n)}else s&&s()}const T={duration:0};function Tt(t,n,e){const s={direction:"in"};let r=n(t,e,s),o=!1,f,i,l=0;function a(){f&&D(t,f)}function _(){const{delay:p=0,duration:g=300,easing:u=H,tick:d=$,css:h}=r||T;h&&(f=B(t,0,1,g,p,u,h,l++)),d(0,1);const m=J()+p,x=m+g;i&&i.abort(),o=!0,C(()=>w(t,!0,"start")),i=U(b=>{if(o){if(b>=x)return d(1,0),w(t,!0,"end"),a(),o=!1;if(b>=m){const k=u((b-m)/g);d(k,1-k)}}return o})}let c=!1;return{start(){c||(c=!0,D(t),M(r)?(r=r(s),Q().then(_)):_())},invalidate(){c=!1},end(){o&&(a(),o=!1)}}}function Wt(t,n,e){const s={direction:"out"};let r=n(t,e,s),o=!0,f;const i=y;i.r+=1;let l;function a(){const{delay:_=0,duration:c=300,easing:p=H,tick:g=$,css:u}=r||T;u&&(f=B(t,1,0,c,_,p,u));const d=J()+_,h=d+c;C(()=>w(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),U(m=>{if(o){if(m>=h)return g(0,1),w(t,!1,"end"),--i.r||v(i.c),!1;if(m>=d){const x=p((m-d)/c);g(1-x,x)}}return o})}return M(r)?Q().then(()=>{r=r(s),a()}):a(),{end(_){_&&"inert"in t&&(t.inert=l),_&&r.tick&&r.tick(1,0),o&&(f&&D(t,f),o=!1)}}}function Xt(t,n,e,s){let o=n(t,e,{direction:"both"}),f=s?0:1,i=null,l=null,a=null,_;function c(){a&&D(t,a)}function p(u,d){const h=u.b-f;return d*=Math.abs(h),{a:f,b:u.b,d:h,duration:d,start:u.start,end:u.start+d,group:u.group}}function g(u){const{delay:d=0,duration:h=300,easing:m=H,tick:x=$,css:b}=o||T,k={start:J()+d,b:u};u||(k.group=y,y.r+=1),"inert"in t&&(u?_!==void 0&&(t.inert=_):(_=t.inert,t.inert=!0)),i||l?l=k:(b&&(c(),a=B(t,f,u,h,d,m,b)),u&&x(0,1),i=p(k,h),C(()=>w(t,u,"start")),U(A=>{if(l&&A>l.start&&(i=p(l,h),l=null,w(t,i.b,"start"),b&&(c(),a=B(t,f,i.b,i.duration,0,m,o.css))),i){if(A>=i.end)x(f=i.b,1-f),w(t,i.b,"end"),l||(i.b?c():--i.group.r||v(i.group.c)),i=null;else if(A>=i.start){const ot=A-i.start;f=i.a+i.d*m(ot/i.duration),x(f,1-f)}}return!!(i||l)}))}return{run(u){M(o)?Q().then(()=>{o=o({direction:u?"in":"out"}),g(u)}):g(u)},end(){c(),i=l=null}}}function Yt(t,n,e){const s=t.$$.props[n];s!==void 0&&(t.$$.bound[s]=e,e(t.$$.ctx[s]))}function Zt(t){t&&t.c()}function tn(t,n){t&&t.l(n)}function Et(t,n,e){const{fragment:s,after_update:r}=t.$$;s&&s.m(n,e),C(()=>{const o=t.$$.on_mount.map(tt).filter(M);t.$$.on_destroy?t.$$.on_destroy.push(...o):v(o),t.$$.on_mount=[]}),r.forEach(C)}function Ot(t,n){const e=t.$$;e.fragment!==null&&(vt(e.after_update),v(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function St(t,n){t.$$.dirty[