Anvil/assets/index-4ea67a12.js
André Jaenisch 8a1b1f1289
Updates
2024-02-09 21:15:08 +01:00

4 lines
8.1 KiB
JavaScript

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 D=(t,n,e)=>(ut(t,typeof n!="symbol"?n+"":n,e),e);import{v as ft,h as Y,w as ct,x as A,y as Z,z as lt,b as _t,A as dt,B as ht}from"./lifecycle-8571def4.js";function $(){}const J=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 q(t){return typeof t=="function"}function zt(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let P;function At(t,n){return t===n?!0:(P||(P=document.createElement("a")),P.href=n,t===P.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 Ct(t){let n;return nt(t,e=>n=e)(),n}function Pt(t,n,e){t.$$.on_destroy.push(nt(n,e))}function Bt(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 Ft(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 It(t,n,e,s,r,o){if(r){const f=et(n,e,s,o);t.p(f,r)}}function Nt(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 Rt(t){const n={};for(const e in t)e[0]!=="$"&&(n[e]=t[e]);return n}function Dt(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 Lt(t){const n={};for(const e in t)n[e]=!0;return n}function Gt(t,n,e){return t.set(e),n}function Ht(t){return t&&q(t.destroy)?t.destroy:$}function Jt(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 K=st?()=>window.performance.now():()=>Date.now(),U=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&&U(it)}function V(t){let n;return S.size===0&&U(it),{promise:new Promise(e=>{S.add(n={c:t,f:e})}),abort(){S.delete(n)}}}const F=new Map;let I=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 F.set(t,e),e}function N(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}=F.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`,I+=1,c}function R(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(", "),I-=r,I||$t())}function $t(){U(()=>{I||(F.forEach(t=>{const{ownerNode:n}=t.stylesheet;n&&Y(n)}),F.clear())})}const O=[],X=[];let j=[];const G=[],xt=Promise.resolve();let H=!1;function bt(){H||(H=!0,xt.then(rt))}function M(t){j.push(t)}function Kt(t){G.push(t)}const L=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++,A(n),wt(n.$$)}}catch(n){throw O.length=0,E=0,n}for(A(null),O.length=0,E=0;X.length;)X.pop()();for(let n=0;n<j.length;n+=1){const e=j[n];L.has(e)||(L.add(e),e())}j.length=0}while(O.length);for(;G.length;)G.pop()();H=!1,L.clear(),A(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(M)}}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 z;function Q(){return z||(z=Promise.resolve(),z.then(()=>{z=null})),z}function w(t,n,e){t.dispatchEvent(lt(`${n?"intro":"outro"}${e}`))}const B=new Set;let y;function Ut(){y={r:0,c:[],p:y}}function Vt(){y.r||v(y.c),y=y.p}function kt(t,n){t&&t.i&&(B.delete(t),t.i(n))}function Qt(t,n,e,s){if(t&&t.o){if(B.has(t))return;B.add(t),y.c.push(()=>{B.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&&R(t,f)}function _(){const{delay:p=0,duration:g=300,easing:u=J,tick:d=$,css:h}=r||T;h&&(f=N(t,0,1,g,p,u,h,l++)),d(0,1);const m=K()+p,x=m+g;i&&i.abort(),o=!0,M(()=>w(t,!0,"start")),i=V(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,R(t),q(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=J,tick:g=$,css:u}=r||T;u&&(f=N(t,1,0,c,_,p,u));const d=K()+_,h=d+c;M(()=>w(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),V(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 q(r)?Q().then(()=>{r=r(s),a()}):a(),{end(_){_&&"inert"in t&&(t.inert=l),_&&r.tick&&r.tick(1,0),o&&(f&&R(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&&R(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=J,tick:x=$,css:b}=o||T,k={start:K()+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=N(t,f,u,h,d,m,b)),u&&x(0,1),i=p(k,h),M(()=>w(t,u,"start")),V(C=>{if(l&&C>l.start&&(i=p(l,h),l=null,w(t,i.b,"start"),b&&(c(),a=N(t,f,i.b,i.duration,0,m,o.css))),i){if(C>=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(C>=i.start){const ot=C-i.start;f=i.a+i.d*m(ot/i.duration),x(f,1-f)}}return!!(i||l)}))}return{run(u){q(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),M(()=>{const o=t.$$.on_mount.map(tt).filter(q);t.$$.on_destroy?t.$$.on_destroy.push(...o):v(o),t.$$.on_mount=[]}),r.forEach(M)}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[0]===-1&&(O.push(t),bt(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function nn(t,n,e,s,r,o,f=null,i=[-1]){const l=Z;A(t);const a=t.$$={fragment:null,ctx:[],props:o,update:$,not_equal:r,bound:W(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(l?l.$$.context:[])),callbacks:W(),dirty:i,skip_bound:!1,root:n.target||l.$$.root};f&&f(a.root);let _=!1;if(a.ctx=e?e(t,n.props||{},(c,p,...g)=>{const u=g.length?g[0]:p;return a.ctx&&r(a.ctx[c],a.ctx[c]=u)&&(!a.skip_bound&&a.bound[c]&&a.bound[c](u),_&&St(t,c)),p}):[],a.update(),_=!0,v(a.before_update),a.fragment=s?s(a.ctx):!1,n.target){if(n.hydrate){dt();const c=_t(n.target);a.fragment&&a.fragment.l(c),c.forEach(Y)}else a.fragment&&a.fragment.c();n.intro&&kt(t.$$.fragment),Et(t,n.target,n.anchor),ht(),rt()}A(l)}class en{constructor(){D(this,"$$");D(this,"$$set")}$destroy(){Ot(this,1),this.$destroy=$}$on(n,e){if(!q(e))return $;const s=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return s.push(e),()=>{const r=s.indexOf(e);r!==-1&&s.splice(r,1)}}$set(n){this.$$set&&!pt(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const jt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jt);export{Rt as A,Lt as B,M as C,Tt as D,Wt as E,nt as F,Dt as G,Ht as H,At as I,q as J,Gt as K,rt as L,Yt as M,Kt as N,Xt as O,en as S,kt as a,Zt as b,Vt as c,tn as d,Ot as e,X as f,Ut as g,gt as h,nn as i,J as j,K as k,V as l,Et as m,$ as n,N as o,R as p,Ct as q,v as r,zt as s,Qt as t,Jt as u,Bt as v,It as w,Nt as x,Ft as y,Pt as z};