From 74e78f01293e3f0836de38502d4c84aff961f396 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Sat, 21 May 2022 13:37:59 +0200 Subject: Updates --- client/client-a97f3910.css | 4 ++++ client/client-ea61129f.css | 2 -- client/client.4b77ae53.js | 18 ++++++++++++++++++ client/client.bf228d93.js | 18 ------------------ client/index-2bfb1750.css | 15 +++++++++++++++ client/index-8f3929f0.css | 15 --------------- client/index.bde7dba7.js | 1 + client/index.c61d0cc0.js | 1 - client/legacy/client-a97f3910.css | 4 ++++ client/legacy/client-ea61129f.css | 2 -- client/legacy/client.b2e3ee4d.js | 18 ++++++++++++++++++ client/legacy/client.b77ea58c.js | 18 ------------------ client/legacy/index-2bfb1750.css | 15 +++++++++++++++ client/legacy/index-8f3929f0.css | 15 --------------- client/legacy/index.8f5d05d4.js | 1 + client/legacy/index.c0543b4c.js | 1 - index.html | 2 +- service-worker-index.html | 2 +- service-worker.js | 2 +- theme.css | 3 +++ 20 files changed, 82 insertions(+), 75 deletions(-) create mode 100644 client/client-a97f3910.css delete mode 100644 client/client-ea61129f.css create mode 100644 client/client.4b77ae53.js delete mode 100644 client/client.bf228d93.js create mode 100644 client/index-2bfb1750.css delete mode 100644 client/index-8f3929f0.css create mode 100644 client/index.bde7dba7.js delete mode 100644 client/index.c61d0cc0.js create mode 100644 client/legacy/client-a97f3910.css delete mode 100644 client/legacy/client-ea61129f.css create mode 100644 client/legacy/client.b2e3ee4d.js delete mode 100644 client/legacy/client.b77ea58c.js create mode 100644 client/legacy/index-2bfb1750.css delete mode 100644 client/legacy/index-8f3929f0.css create mode 100644 client/legacy/index.8f5d05d4.js delete mode 100644 client/legacy/index.c0543b4c.js diff --git a/client/client-a97f3910.css b/client/client-a97f3910.css new file mode 100644 index 0000000..cecb36f --- /dev/null +++ b/client/client-a97f3910.css @@ -0,0 +1,4 @@ +.snack.svelte-oh5xo5{display:flex;width:100%;background-color:var(--error, red);color:var(--on-error, black);border-radius:15px;padding:5px;box-sizing:border-box}.message.svelte-oh5xo5{margin-left:5px}.close.svelte-oh5xo5{background-color:var(--error, red);margin-left:auto;padding-left:10px;padding-right:10px;border-radius:15px;text-align:center}.close.svelte-oh5xo5:hover{filter:brightness(0.85)}.close.svelte-oh5xo5:active{filter:brightness(0.75)} +.snack-container.svelte-ktpiag{position:absolute;bottom:10px;left:10px;right:10px} +.app-container.svelte-f4gvfq{position:relative;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;width:100%;height:100%;margin:0;padding:0;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background-size:cover;background-repeat:no-repeat;background-position:center}@media(min-width: 640px){.app-container.svelte-f4gvfq{border-radius:1rem;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center;width:375px;height:812px}} +h1.svelte-jpshsi,p.svelte-jpshsi{margin:0 auto}h1.svelte-jpshsi{font-size:2.8em;font-weight:700;margin:0 0 0.5em 0}p.svelte-jpshsi{margin:1em auto}@media(min-width: 480px){h1.svelte-jpshsi{font-size:4em}} diff --git a/client/client-ea61129f.css b/client/client-ea61129f.css deleted file mode 100644 index 52c9a0d..0000000 --- a/client/client-ea61129f.css +++ /dev/null @@ -1,2 +0,0 @@ -.app-container.svelte-lkkhqy{font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;width:100%;height:100%;margin:0;padding:0;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background-size:cover;background-repeat:no-repeat;background-position:center}@media(min-width: 640px){.app-container.svelte-lkkhqy{border-radius:1rem;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center;width:375px;height:812px}} -h1.svelte-jpshsi,p.svelte-jpshsi{margin:0 auto}h1.svelte-jpshsi{font-size:2.8em;font-weight:700;margin:0 0 0.5em 0}p.svelte-jpshsi{margin:1em auto}@media(min-width: 480px){h1.svelte-jpshsi{font-size:4em}} diff --git a/client/client.4b77ae53.js b/client/client.4b77ae53.js new file mode 100644 index 0000000..55b7a4e --- /dev/null +++ b/client/client.4b77ae53.js @@ -0,0 +1,18 @@ +function t(){}const e=t=>t;function n(t,e){for(const n in e)t[n]=e[n];return t}function r(t){return t()}function o(){return Object.create(null)}function s(t){t.forEach(r)}function i(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function l(t){let e;return a(t,(t=>e=t))(),e}function u(t,e,n){t.$$.on_destroy.push(a(e,n))}function f(t,e,n,r){if(t){const o=d(t,e,n,r);return t[0](o)}}function d(t,e,r,o){return t[1]&&o?n(r.ctx.slice(),t[1](o(e))):r.ctx}function h(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r32){const e=[],n=t.ctx.length/32;for(let t=0;twindow.performance.now():()=>Date.now(),y=g?t=>requestAnimationFrame(t):t;const v=new Set;function _(t){v.forEach((e=>{e.c(t)||(v.delete(e),e.f())})),0!==v.size&&y(_)}let b=!1;function x(t,e,n,r){for(;t>1);n(o)<=r?t=o+1:e=o}return t}function w(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function E(t){const e=A("style");return function(t,e){!function(t,e){t.appendChild(e)}(t.head||t,e)}(w(t),e),e.sheet}function S(t,e){if(b){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n0&&e[n[o]].claim_order<=s?o+1:x(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const c=i+1;n[c]=t,o=Math.max(c,o)}const s=[],i=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e=s[n].claim_order;)n++;const r=nt.removeEventListener(e,n,r)}function O(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function q(t){return Array.from(t.childNodes)}function I(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let r=t.claim_info.last_index;r=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function T(t,e,n){return function(t,e,n,r){return I(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;rt.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,A)}function U(t,e){return I(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>P(e)),!0)}function D(t){return U(t," ")}function B(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function M(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function V(t,e,n){t.classList[n?"add":"remove"](e)}function z(t,e=document.body){return Array.from(e.querySelectorAll(t))}const J=new Map;let K,H=0;function F(t,e,n,r,o,s,i,c=0){const a=16.666/r;let l="{\n";for(let t=0;t<=1;t+=a){const r=e+(n-e)*s(t);l+=100*t+`%{${i(r,1-r)}}\n`}const u=l+`100% {${i(n,1-n)}}\n}`,f=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${c}`,d=w(t),{stylesheet:h,rules:p}=J.get(d)||function(t,e){const n={stylesheet:E(e),rules:{}};return J.set(t,n),n}(d,t);p[f]||(p[f]=!0,h.insertRule(`@keyframes ${f} ${u}`,h.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${f} ${r}ms linear ${o}ms 1 both`,H+=1,f}function G(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),o=n.length-r.length;o&&(t.style.animation=r.join(", "),H-=o,H||y((()=>{H||(J.forEach((t=>{const{stylesheet:e}=t;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.rules={}})),J.clear())})))}function W(t){K=t}function Y(){if(!K)throw new Error("Function called outside component initialization");return K}const X=[],Q=[],Z=[],tt=[],et=Promise.resolve();let nt=!1;function rt(t){Z.push(t)}const ot=new Set;let st,it=0;function ct(){const t=K;do{for(;it{ut.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}const gt={duration:0};function $t(n,r,o,c){let a=r(n,o),l=c?0:1,u=null,f=null,d=null;function h(){d&&G(n,d)}function p(t,e){const n=t.b-l;return e*=Math.abs(n),{a:l,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function m(r){const{delay:o=0,duration:i=300,easing:c=e,tick:m=t,css:g}=a||gt,b={start:$()+o,b:r};r||(b.group=ft,ft.r+=1),u||f?f=b:(g&&(h(),d=F(n,l,r,i,o,c,g)),r&&m(0,1),u=p(b,i),rt((()=>lt(n,r,"start"))),function(t){let e;0===v.size&&y(_),new Promise((n=>{v.add(e={c:t,f:n})}))}((t=>{if(f&&t>f.start&&(u=p(f,i),f=null,lt(n,u.b,"start"),g&&(h(),d=F(n,l,u.b,u.duration,0,c,a.css))),u)if(t>=u.end)m(l=u.b,1-l),lt(n,u.b,"end"),f||(u.b?h():--u.group.r||s(u.group.c)),u=null;else if(t>=u.start){const e=t-u.start;l=u.a+u.d*c(e/u.duration),m(l,1-l)}return!(!u&&!f)})))}return{run(t){i(a)?(st||(st=Promise.resolve(),st.then((()=>{st=null}))),st).then((()=>{a=a(),m(t)})):m(t)},end(){h(),u=f=null}}}function yt(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function vt(t){return"object"==typeof t&&null!==t?t:{}}function _t(t){t&&t.c()}function bt(t,e){t&&t.l(e)}function xt(t,e,n,o){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,n),o||rt((()=>{const e=a.map(r).filter(i);l?l.push(...e):s(e),t.$$.on_mount=[]})),u.forEach(rt)}function wt(t,e){const n=t.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Et(t,e){-1===t.$$.dirty[0]&&(X.push(t),nt||(nt=!0,et.then(ct)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return d.ctx&&c(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),h&&Et(e,t)),n})):[],d.update(),h=!0,s(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){b=!0;const t=q(n.target);d.fragment&&d.fragment.l(t),t.forEach(R)}else d.fragment&&d.fragment.c();n.intro&&pt(e.$$.fragment),xt(e,n.target,n.anchor,n.customElement),b=!1,ct()}W(f)}class kt{$destroy(){wt(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Rt=[];function Nt(e,n=t){let r;const o=new Set;function s(t){if(c(e,t)&&(e=t,r)){const t=!Rt.length;for(const t of o)t[1](),Rt.push(t,e);if(t){for(let t=0;t{o.delete(a),0===o.size&&(r(),r=null)}}}}const At={},Pt=Nt("light");function Lt(t){const e=t-1;return e*e*e+1}function Ct(t,{delay:e=0,duration:n=400,easing:r=Lt,x:o=0,y:s=0,opacity:i=0}={}){const c=getComputedStyle(t),a=+c.opacity,l="none"===c.transform?"":c.transform,u=a*(1-i);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${l} translate(${(1-t)*o}px, ${(1-t)*s}px);\n\t\t\topacity: ${a-u*e}`}}setInterval((function(){if("undefined"==typeof window)return;let t=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light";t!=l(Pt)&&Pt.set(t)}),1e3),Pt.subscribe((t=>{"undefined"!=typeof window&&("dark"==t?window.document.body.classList.add("dark"):window.document.body.classList.remove("dark"))}));let jt=1;const Ot=function(){const{set:t,subscribe:e,update:n}=Nt([]);return{subscribe:e,add:t=>function(t,e){const n={id:jt,...t};e((t=>[...t,n])),jt+=1}(t,n),del:t=>function(t,e){e((e=>e.filter((e=>e.id!==t))))}(t,n),reset:()=>t([])}}();function qt(t){let e,n,r,o,s,i,c,a,l,u,f=t[0].message+"";return{c(){e=A("div"),n=A("div"),r=P(f),o=L(),s=A("button"),i=A("i"),this.h()},l(t){e=T(t,"DIV",{class:!0});var c=q(e);n=T(c,"DIV",{class:!0});var a=q(n);r=U(a,f),a.forEach(R),o=D(c),s=T(c,"BUTTON",{class:!0});var l=q(s);i=T(l,"I",{class:!0}),q(i).forEach(R),l.forEach(R),c.forEach(R),this.h()},h(){O(n,"class","message svelte-oh5xo5"),O(i,"class","fas fa-times"),O(s,"class","close svelte-oh5xo5"),O(e,"class","snack svelte-oh5xo5")},m(c,f){k(c,e,f),S(e,n),S(n,r),S(e,o),S(e,s),S(s,i),a=!0,l||(u=j(s,"click",t[1]),l=!0)},p(t,[e]){(!a||1&e)&&f!==(f=t[0].message+"")&&B(r,f)},i(t){a||(rt((()=>{c||(c=$t(e,Ct,{},!0)),c.run(1)})),a=!0)},o(t){c||(c=$t(e,Ct,{},!1)),c.run(0),a=!1},d(t){t&&R(e),t&&c&&c.end(),l=!1,u()}}}function It(t,e,n){let{opts:r}=e;return t.$$set=t=>{"opts"in t&&n(0,r=t.opts)},[r,function(){Ot.del(r.id)}]}class Tt extends kt{constructor(t){super(),St(this,t,It,qt,c,{opts:0})}}function Ut(t,e,n){const r=t.slice();return r[1]=e[n],r}function Dt(t){let e,n;return e=new Tt({props:{opts:t[1]}}),{c(){_t(e.$$.fragment)},l(t){bt(e.$$.fragment,t)},m(t,r){xt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.opts=t[1]),e.$set(r)},i(t){n||(pt(e.$$.fragment,t),n=!0)},o(t){mt(e.$$.fragment,t),n=!1},d(t){wt(e,t)}}}function Bt(t){let e,n,r=t[0],o=[];for(let e=0;emt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=A("div");for(let t=0;tn(0,r=t))),[r]}class Vt extends kt{constructor(t){super(),St(this,t,Mt,Bt,c,{})}}function zt(t){let e,n,r,o;const s=t[1].default,i=f(s,t,t[0],null);return r=new Vt({}),{c(){e=A("div"),i&&i.c(),n=L(),_t(r.$$.fragment),this.h()},l(t){e=T(t,"DIV",{class:!0});var o=q(e);i&&i.l(o),n=D(o),bt(r.$$.fragment,o),o.forEach(R),this.h()},h(){O(e,"class","app-container svelte-f4gvfq")},m(t,s){k(t,e,s),i&&i.m(e,null),S(e,n),xt(r,e,null),o=!0},p(t,[e]){i&&i.p&&(!o||1&e)&&p(i,s,t,t[0],o?h(s,t[0],e,null):m(t[0]),null)},i(t){o||(pt(i,t),pt(r.$$.fragment,t),o=!0)},o(t){mt(i,t),mt(r.$$.fragment,t),o=!1},d(t){t&&R(e),i&&i.d(t),wt(r)}}}function Jt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class Kt extends kt{constructor(t){super(),St(this,t,Jt,zt,c,{})}}function Ht(t){let e,n,r=t[1].stack+"";return{c(){e=A("pre"),n=P(r)},l(t){e=T(t,"PRE",{});var o=q(e);n=U(o,r),o.forEach(R)},m(t,r){k(t,e,r),S(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&B(n,r)},d(t){t&&R(e)}}}function Ft(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let d=e[2]&&e[1].stack&&Ht(e);return{c(){r=L(),o=A("h1"),s=P(e[0]),i=L(),c=A("p"),a=P(f),l=L(),d&&d.c(),u=C(),this.h()},l(t){z('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(R),r=D(t),o=T(t,"H1",{class:!0});var n=q(o);s=U(n,e[0]),n.forEach(R),i=D(t),c=T(t,"P",{class:!0});var h=q(c);a=U(h,f),h.forEach(R),l=D(t),d&&d.l(t),u=C(),this.h()},h(){O(o,"class","svelte-jpshsi"),O(c,"class","svelte-jpshsi")},m(t,e){k(t,r,e),k(t,o,e),S(o,s),k(t,i,e),k(t,c,e),S(c,a),k(t,l,e),d&&d.m(t,e),k(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&B(s,t[0]),2&e&&f!==(f=t[1].message+"")&&B(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=Ht(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&R(r),t&&R(o),t&&R(i),t&&R(c),t&&R(l),d&&d.d(t),t&&R(u)}}}function Gt(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class Wt extends kt{constructor(t){super(),St(this,t,Gt,Ft,c,{status:0,error:1})}}function Yt(t){let e,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let e={};for(let t=0;t{wt(t,1)})),ht()}i?(e=new i(c()),_t(e.$$.fragment),pt(e.$$.fragment,1),xt(e,r.parentNode,r)):e=null}else i&&e.$set(o)},i(t){o||(e&&pt(e.$$.fragment,t),o=!0)},o(t){e&&mt(e.$$.fragment,t),o=!1},d(t){t&&R(r),e&&wt(e,t)}}}function Xt(t){let e,n;return e=new Wt({props:{error:t[0],status:t[1]}}),{c(){_t(e.$$.fragment)},l(t){bt(e.$$.fragment,t)},m(t,r){xt(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(pt(e.$$.fragment,t),n=!0)},o(t){mt(e.$$.fragment,t),n=!1},d(t){wt(e,t)}}}function Qt(t){let e,n,r,o;const s=[Xt,Yt],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=C()},l(t){n.l(t),r=C()},m(t,n){i[e].m(t,n),k(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(dt(),mt(i[a],1,1,(()=>{i[a]=null})),ht(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),pt(n,1),n.m(r.parentNode,r))},i(t){o||(pt(n),o=!0)},o(t){mt(n),o=!1},d(t){i[e].d(t),t&&R(r)}}}function Zt(t){let e,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[Qt]},$$scope:{ctx:t}};for(let t=0;t{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,c=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,c,a,r,l]}class ee extends kt{constructor(t){super(),St(this,t,te,Zt,c,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const ne=[],re=[{js:()=>Promise.all([import("./index.bde7dba7.js"),__inject_styles(["client-a97f3910.css","index-2bfb1750.css"])]).then((function(t){return t[0]}))}],oe=[{pattern:/^\/$/,parts:[{i:0}]}]; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +function se(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function ie(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let ce,ae=1;const le="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},ue={};let fe,de;function he(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function pe(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(fe))return null;let e=t.pathname.slice(fe.length);if(""===e&&(e="/"),!ne.some((t=>t.test(e))))for(let n=0;n{xe(t)}),20)}function Ee(t,e={noscroll:!1,replaceState:!1}){const n=pe(new URL(t,ve(document)));return n?(le[e.replaceState?"replaceState":"pushState"]({id:ce},"",t),ye(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Se="undefined"!=typeof __SAPPER__&&__SAPPER__;let ke,Re,Ne,Ae=!1,Pe=[],Le="{}";const Ce={page:function(t){const e=Nt(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:Nt(null),session:Nt(Se&&Se.session)};let je,Oe,qe;function Ie(t,e){const{error:n}=t;return Object.assign({error:n},e)}function Te(t){return se(this,void 0,void 0,(function*(){ke&&Ce.preloading.set(!0);const e=function(t){return be&&be.href===t.href?be.promise:De(t)}(t),n=Re={},r=yield e,{redirect:o}=r;if(n===Re)if(o)yield Ee(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield Ue(n,e,Ie(e,t.page))}}))}function Ue(t,e,n){return se(this,void 0,void 0,(function*(){Ce.page.set(n),Ce.preloading.set(!1),ke?ke.$set(e):(e.stores={page:{subscribe:Ce.page.subscribe},preloading:{subscribe:Ce.preloading.subscribe},session:Ce.session},e.level0={props:yield Ne},e.notify=Ce.page.notify,ke=new ee({target:qe,props:e,hydrate:!0})),Pe=t,Le=JSON.stringify(n.query),Ae=!0,Oe=!1}))}function De(t){return se(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Ne){const t=()=>({});Ne=Se.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},je)}let c,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>se(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==Le)return!0;const o=Pe[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const d=a++;if(!Oe&&!u&&Pe[c]&&Pe[c].part===e.i)return Pe[c];u=!1;const{default:h,preload:p}=yield re[e.i].js();let m;return m=Ae||!Se.preloaded[c+1]?p?yield p.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},je):{}:Se.preloaded[c+1],s[`level${d}`]={component:h,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}var Be,Me,Ve;Ce.session.subscribe((t=>se(void 0,void 0,void 0,(function*(){if(je=t,!Ae)return;Oe=!0;const e=pe(new URL(location.href)),n=Re={},{redirect:r,props:o,branch:s}=yield De(e);n===Re&&(r?yield Ee(r.location,{replaceState:!0}):yield Ue(s,o,Ie(o,e.page)))})))),Be={target:document.querySelector(".app")},Me=Be.target,qe=Me,Ve=Se.baseUrl,fe=Ve,de=Te,"scrollRestoration"in le&&(le.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{le.scrollRestoration="auto"})),addEventListener("load",(()=>{le.scrollRestoration="manual"})),addEventListener("click",me),addEventListener("popstate",$e),addEventListener("touchstart",xe),addEventListener("mousemove",we),Se.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Se;Ne||(Ne=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Ne},level1:{props:{status:s,error:i},component:Wt},segments:o},a=he(n);Ue([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;le.replaceState({id:ae},"",e);const n=pe(new URL(location.href));if(n)return ye(n,ae,!0,t)}));export{xt as A,wt as B,f as C,p as D,m as E,h as F,N as G,V as H,j as I,s as J,z as K,kt as S,q as a,O as b,T as c,R as d,A as e,k as f,S as g,l as h,St as i,L as j,C as k,D as l,U as m,t as n,M as o,B as p,dt as q,mt as r,c as s,P as t,ht as u,pt as v,Nt as w,u as x,_t as y,bt as z}; + +import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file diff --git a/client/client.bf228d93.js b/client/client.bf228d93.js deleted file mode 100644 index e4d5033..0000000 --- a/client/client.bf228d93.js +++ /dev/null @@ -1,18 +0,0 @@ -function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function a(t){let e;return c(t,(t=>e=t))(),e}function l(t,e,n){t.$$.on_destroy.push(c(e,n))}function u(t,e,n,r){if(t){const o=f(t,e,n,r);return t[0](o)}}function f(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function d(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r32){const e=[],n=t.ctx.length/32;for(let t=0;t>1);n(o)<=r?t=o+1:e=o}return t}function y(t,e){if(g){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n0&&e[n[o]].claim_order<=s?o+1:$(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const c=i+1;n[c]=t,o=Math.max(c,o)}const s=[],i=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e=s[n].claim_order;)n++;const r=nt.removeEventListener(e,n,r)}function A(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function R(t){return Array.from(t.childNodes)}function P(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let r=t.claim_info.last_index;r=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function L(t,e,n){return function(t,e,n,r){return P(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;rt.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,x)}function k(t,e){return P(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>E(e)),!0)}function j(t){return k(t," ")}function q(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function C(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function O(t,e,n){t.classList[n?"add":"remove"](e)}function T(t,e=document.body){return Array.from(e.querySelectorAll(t))}function U(t){m=t}function I(){if(!m)throw new Error("Function called outside component initialization");return m}const B=[],J=[],D=[],K=[],z=Promise.resolve();let H=!1;function M(t){D.push(t)}const V=new Set;let F=0;function G(){const t=m;do{for(;F{Y.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function nt(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function rt(t){return"object"==typeof t&&null!==t?t:{}}function ot(t){t&&t.c()}function st(t,e){t&&t.l(e)}function it(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||M((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(M)}function ct(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function at(t,e){-1===t.$$.dirty[0]&&(B.push(t),H||(H=!0,z.then(G)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return d.ctx&&c(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),p&&at(e,t)),n})):[],d.update(),p=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){g=!0;const t=R(n.target);d.fragment&&d.fragment.l(t),t.forEach(v)}else d.fragment&&d.fragment.c();n.intro&&tt(e.$$.fragment),it(e,n.target,n.anchor,n.customElement),g=!1,G()}U(f)}class ut{$destroy(){ct(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ft=[];function dt(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!ft.length;for(const t of o)t[1](),ft.push(t,e);if(t){for(let t=0;t{o.delete(a),0===o.size&&(r(),r=null)}}}}const pt={};function ht(t){let e,n;const r=t[1].default,o=u(r,t,t[0],null);return{c(){e=x("div"),o&&o.c(),this.h()},l(t){e=L(t,"DIV",{class:!0});var n=R(e);o&&o.l(n),n.forEach(v),this.h()},h(){A(e,"class","app-container svelte-lkkhqy")},m(t,r){_(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&p(o,r,t,t[0],n?d(r,t[0],e,null):h(t[0]),null)},i(t){n||(tt(o,t),n=!0)},o(t){et(o,t),n=!1},d(t){t&&v(e),o&&o.d(t)}}}function mt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class gt extends ut{constructor(t){super(),lt(this,t,mt,ht,i,{})}}function $t(t){let e,n,r=t[1].stack+"";return{c(){e=x("pre"),n=E(r)},l(t){e=L(t,"PRE",{});var o=R(e);n=k(o,r),o.forEach(v)},m(t,r){_(t,e,r),y(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&q(n,r)},d(t){t&&v(e)}}}function yt(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let d=e[2]&&e[1].stack&&$t(e);return{c(){r=S(),o=x("h1"),s=E(e[0]),i=S(),c=x("p"),a=E(f),l=S(),d&&d.c(),u=w(),this.h()},l(t){T('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(v),r=j(t),o=L(t,"H1",{class:!0});var n=R(o);s=k(n,e[0]),n.forEach(v),i=j(t),c=L(t,"P",{class:!0});var p=R(c);a=k(p,f),p.forEach(v),l=j(t),d&&d.l(t),u=w(),this.h()},h(){A(o,"class","svelte-jpshsi"),A(c,"class","svelte-jpshsi")},m(t,e){_(t,r,e),_(t,o,e),y(o,s),_(t,i,e),_(t,c,e),y(c,a),_(t,l,e),d&&d.m(t,e),_(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&q(s,t[0]),2&e&&f!==(f=t[1].message+"")&&q(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=$t(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&v(r),t&&v(o),t&&v(i),t&&v(c),t&&v(l),d&&d.d(t),t&&v(u)}}}function _t(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class vt extends ut{constructor(t){super(),lt(this,t,_t,yt,i,{status:0,error:1})}}function bt(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let n={};for(let t=0;t{ct(t,1)})),Z()}i?(n=new i(c()),ot(n.$$.fragment),tt(n.$$.fragment,1),it(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&tt(n.$$.fragment,t),o=!0)},o(t){n&&et(n.$$.fragment,t),o=!1},d(t){t&&v(r),n&&ct(n,t)}}}function xt(t){let e,n;return e=new vt({props:{error:t[0],status:t[1]}}),{c(){ot(e.$$.fragment)},l(t){st(e.$$.fragment,t)},m(t,r){it(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(tt(e.$$.fragment,t),n=!0)},o(t){et(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Et(t){let e,n,r,o;const s=[xt,bt],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=w()},l(t){n.l(t),r=w()},m(t,n){i[e].m(t,n),_(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(Q(),et(i[a],1,1,(()=>{i[a]=null})),Z(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),tt(n,1),n.m(r.parentNode,r))},i(t){o||(tt(n),o=!0)},o(t){et(n),o=!1},d(t){i[e].d(t),t&&v(r)}}}function St(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[Et]},$$scope:{ctx:t}};for(let t=0;t{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,c=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,c,a,r,l]}class Nt extends ut{constructor(t){super(),lt(this,t,wt,St,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const At=[],Rt=[{js:()=>Promise.all([import("./index.c61d0cc0.js"),__inject_styles(["client-ea61129f.css","index-8f3929f0.css"])]).then((function(t){return t[0]}))}],Pt=[{pattern:/^\/$/,parts:[{i:0}]}]; -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -function Lt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function kt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let jt,qt=1;const Ct="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Ot={};let Tt,Ut;function It(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function Bt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Tt))return null;let e=t.pathname.slice(Tt.length);if(""===e&&(e="/"),!At.some((t=>t.test(e))))for(let n=0;n{Ft(t)}),20)}function Wt(t,e={noscroll:!1,replaceState:!1}){const n=Bt(new URL(t,Ht(document)));return n?(Ct[e.replaceState?"replaceState":"pushState"]({id:jt},"",t),zt(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Yt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Xt,Qt,Zt,te=!1,ee=[],ne="{}";const re={page:function(t){const e=dt(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:dt(null),session:dt(Yt&&Yt.session)};let oe,se,ie;function ce(t,e){const{error:n}=t;return Object.assign({error:n},e)}function ae(t){return Lt(this,void 0,void 0,(function*(){Xt&&re.preloading.set(!0);const e=function(t){return Vt&&Vt.href===t.href?Vt.promise:ue(t)}(t),n=Qt={},r=yield e,{redirect:o}=r;if(n===Qt)if(o)yield Wt(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield le(n,e,ce(e,t.page))}}))}function le(t,e,n){return Lt(this,void 0,void 0,(function*(){re.page.set(n),re.preloading.set(!1),Xt?Xt.$set(e):(e.stores={page:{subscribe:re.page.subscribe},preloading:{subscribe:re.preloading.subscribe},session:re.session},e.level0={props:yield Zt},e.notify=re.page.notify,Xt=new Nt({target:ie,props:e,hydrate:!0})),ee=t,ne=JSON.stringify(n.query),te=!0,se=!1}))}function ue(t){return Lt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Zt){const t=()=>({});Zt=Yt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},oe)}let c,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>Lt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==ne)return!0;const o=ee[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const d=a++;if(!se&&!u&&ee[c]&&ee[c].part===e.i)return ee[c];u=!1;const{default:p,preload:h}=yield Rt[e.i].js();let m;return m=te||!Yt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},oe):{}:Yt.preloaded[c+1],s[`level${d}`]={component:p,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}var fe,de,pe;re.session.subscribe((t=>Lt(void 0,void 0,void 0,(function*(){if(oe=t,!te)return;se=!0;const e=Bt(new URL(location.href)),n=Qt={},{redirect:r,props:o,branch:s}=yield ue(e);n===Qt&&(r?yield Wt(r.location,{replaceState:!0}):yield le(s,o,ce(o,e.page)))})))),fe={target:document.querySelector(".app")},de=fe.target,ie=de,pe=Yt.baseUrl,Tt=pe,Ut=ae,"scrollRestoration"in Ct&&(Ct.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{Ct.scrollRestoration="auto"})),addEventListener("load",(()=>{Ct.scrollRestoration="manual"})),addEventListener("click",Jt),addEventListener("popstate",Kt),addEventListener("touchstart",Ft),addEventListener("mousemove",Gt),Yt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Yt;Zt||(Zt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Zt},level1:{props:{status:s,error:i},component:vt},segments:o},a=It(n);le([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;Ct.replaceState({id:qt},"",e);const n=Bt(new URL(location.href));if(n)return zt(n,qt,!0,t)}));export{it as A,ct as B,u as C,p as D,h as E,d as F,b as G,O as H,N as I,o as J,T as K,ut as S,R as a,A as b,L as c,v as d,x as e,_ as f,y as g,a as h,lt as i,S as j,w as k,j as l,k as m,t as n,C as o,q as p,Q as q,et as r,i as s,E as t,Z as u,tt as v,dt as w,l as x,ot as y,st as z}; - -import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file diff --git a/client/index-2bfb1750.css b/client/index-2bfb1750.css new file mode 100644 index 0000000..d7cccd0 --- /dev/null +++ b/client/index-2bfb1750.css @@ -0,0 +1,15 @@ +.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} +.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( + rgba(0, 0, 0, 0.5), + rgba(0, 0, 0, 0.5) + ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9kdo4s.svelte-9kdo4s{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} +.chip.svelte-1jb0ny7{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:var(--gradient-1, green);color:white} +:root{--progress:100%}.wrapper.svelte-1mo8cjf{position:relative;border-radius:15px;width:100%;height:100%}.bar-wrapper.svelte-1mo8cjf{overflow:hidden;position:relative;border-radius:15px;height:100%;width:100%;left:calc(100% - var(--progress))}.bar.svelte-1mo8cjf{position:absolute;height:100%;width:100%;right:calc(100% - var(--progress));overflow:hidden;background:var(--gradient-2, green);border-radius:15px}.value.svelte-1mo8cjf{position:absolute;right:0.1rem;top:0;font-size:1.5rem} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.drawer.svelte-1soiua.svelte-1soiua{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-1soiua.svelte-1soiua{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-1soiua.svelte-1soiua{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-1soiua .header.svelte-1soiua{display:flex;align-items:flex-start}.drawer.svelte-1soiua h2.svelte-1soiua{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-1soiua.svelte-1soiua{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-1soiua>.svelte-1soiua{padding:3px 5px;border-radius:10px;box-sizing:border-box;transition:all 0.1s ease}.version-picker.svelte-1soiua .selected.svelte-1soiua{background-color:var(--elevation-1, #c2c2c2);color:var(--on-elevation-1, #000000)}.no-data.svelte-1soiua.svelte-1soiua{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1soiua.svelte-1soiua{margin-top:1rem} +.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25} diff --git a/client/index-8f3929f0.css b/client/index-8f3929f0.css deleted file mode 100644 index aa46831..0000000 --- a/client/index-8f3929f0.css +++ /dev/null @@ -1,15 +0,0 @@ -.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} -.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( - rgba(0, 0, 0, 0.5), - rgba(0, 0, 0, 0.5) - ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9kdo4s.svelte-9kdo4s{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} -.chip.svelte-1jb0ny7{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:var(--gradient-1, green);color:white} -:root{--progress:100%}.wrapper.svelte-1mo8cjf{position:relative;border-radius:15px;width:100%;height:100%}.bar-wrapper.svelte-1mo8cjf{overflow:hidden;position:relative;border-radius:15px;height:100%;width:100%;left:calc(100% - var(--progress))}.bar.svelte-1mo8cjf{position:absolute;height:100%;width:100%;right:calc(100% - var(--progress));overflow:hidden;background:var(--gradient-2, green);border-radius:15px}.value.svelte-1mo8cjf{position:absolute;right:0.1rem;top:0;font-size:1.5rem} -.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} -.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} -.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} -.drawer.svelte-11gsg4a.svelte-11gsg4a{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-11gsg4a.svelte-11gsg4a{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-11gsg4a.svelte-11gsg4a{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-11gsg4a .header.svelte-11gsg4a{display:flex;align-items:flex-start}.drawer.svelte-11gsg4a h2.svelte-11gsg4a{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-11gsg4a.svelte-11gsg4a{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-11gsg4a>.svelte-11gsg4a{transition:all 0.1s ease}.version-picker.svelte-11gsg4a .selected.svelte-11gsg4a{background-color:var(--elevation-1, #c2c2c2);padding:3px 5px;box-sizing:border-box;border-radius:10px;color:var(--on-elevation-1, #000000)}.no-data.svelte-11gsg4a.svelte-11gsg4a{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-11gsg4a.svelte-11gsg4a{margin-top:1rem} -.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25} diff --git a/client/index.bde7dba7.js b/client/index.bde7dba7.js new file mode 100644 index 0000000..320a981 --- /dev/null +++ b/client/index.bde7dba7.js @@ -0,0 +1 @@ +import{S as e,i as t,s as a,e as s,c as r,a as n,d as l,b as o,f as i,g as c,n as d,w as u,h,j as p,k as f,l as m,t as v,m as g,o as _,p as w,q as $,r as k,u as b,v as E,x as y,y as D,z as I,A as V,B as x,C as T,D as q,E as S,F as P,G as M,H as N,I as j,J as A,K as C}from"./client.4b77ae53.js";function O(e){let t,a,u,h,p,f,m,v,g;return{c(){t=s("div"),a=s("div"),u=s("div"),h=s("div"),p=s("div"),f=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(e){t=r(e,"DIV",{class:!0});var s=n(t);a=r(s,"DIV",{class:!0}),n(a).forEach(l),u=r(s,"DIV",{class:!0}),n(u).forEach(l),h=r(s,"DIV",{class:!0}),n(h).forEach(l),p=r(s,"DIV",{class:!0}),n(p).forEach(l),f=r(s,"DIV",{class:!0}),n(f).forEach(l),m=r(s,"DIV",{class:!0}),n(m).forEach(l),v=r(s,"DIV",{class:!0}),n(v).forEach(l),g=r(s,"DIV",{class:!0}),n(g).forEach(l),s.forEach(l),this.h()},h(){o(a,"class","svelte-7k6qu0"),o(u,"class","svelte-7k6qu0"),o(h,"class","svelte-7k6qu0"),o(p,"class","svelte-7k6qu0"),o(f,"class","svelte-7k6qu0"),o(m,"class","svelte-7k6qu0"),o(v,"class","svelte-7k6qu0"),o(g,"class","svelte-7k6qu0"),o(t,"class","lds-roller svelte-7k6qu0")},m(e,s){i(e,t,s),c(t,a),c(t,u),c(t,h),c(t,p),c(t,f),c(t,m),c(t,v),c(t,g)},p:d,i:d,o:d,d(e){e&&l(t)}}}class F extends e{constructor(e){super(),t(this,e,null,O,a,{})}}const J=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];function B(e){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(e))return e;if(/^\d{4}\s[a-z,A-Z]+\s\d{2}$/.test(e)){let t=e.split(" ");return e=`${t[0]}-${function(e,t=2){let a=e.toString();for(;t-a.length>0;)a="0"+a;return a}(function(e){if("string"!=typeof e)throw new Error(`Cannot get month number of ${typeof e}...`);if(e.length<3)throw new Error(`Cannot get month number string "${e}" of length ${e.length}...`);e=e.substring(0,3).toLowerCase();let t=J.indexOf(e)+1;if(-1===t)throw new Error(`Could not find the month ${e}.`);return t}(t[1]))}-${t[2]}T00:00:00Z`}return/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/.test(e)?e.replace(" ","T")+"Z":/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{4}/.test(e)?e.replace(" ","T").split(".")[0]+"Z":(console.warn(e),e)}function H(e){return e=B(e),new Date(e)}const K={updated:new Date(0,0,0),updating:!0};let z=U("navigator_location"),Z=U("earth_weather"),L=U("space_weather");const W=u(X("navigator_location")?function(e){return e.updated=new Date(e.updated),e}(z):{...K,available:!1,longitude:null,latitude:null,city:null}),G=u(X("earth_weather")?function(e){let t=e;return t.updated=new Date(t.updated),t.yr_data_raw.properties.meta.updated_at=new Date(t.yr_data_raw.properties.meta.updated_at),t.yr_data_raw.properties.timeseries=t.yr_data_raw.properties.timeseries.map((e=>({...e,time:new Date(e.time)}))),t}(Z):{...K,available:!1}),R=u(X("space_weather")?function(e){let t=e;return t.updated=new Date(t.updated),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t.usnoaa_data_raw.geospace_pred_est_kp_1_hour.map((e=>({...e,model_prediction_time:new Date(e.model_prediction_time)}))),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=t.usnoaa_data_raw.noaa_planetary_k_index_forecast.map((e=>({...e,time:new Date(e.time)}))),t.usnoaa_data_raw.outlook_27_day=t.usnoaa_data_raw.outlook_27_day.map((e=>({...e,time:new Date(e.time)}))),t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp),t}(L):{...K});function Q(e,t){"undefined"!=typeof window&&localStorage.setItem(e,JSON.stringify(t))}function U(e){if("undefined"!=typeof window)return JSON.parse(localStorage.getItem(e))}function X(e){return"undefined"!=typeof window&&localStorage.hasOwnProperty(e)}async function Y(){if("undefined"==typeof window)return;let e;te(W,!0),console.debug("Attempting to get browser geolocation.");try{e=await async function(){return new Promise(((e,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{e({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(e=>{t(e)})):t(Error())}))}()}catch(e){if(0==h(W).available)return;return console.warn(`Could not get browser geolocation (${e}).`),W.update((e=>({...e,available:!1,city:null,longitude:null,latitude:null}))),void te(W,!1)}if(console.debug("Got geolocation from browser."),h(W).available&&Date.now()-h(W).updated<3e5)return console.debug("Not fetching city name, as the location a short time ago."),void te(W,!1,!1);console.debug("Attempting to get city name from geolocation.");let t={city:void 0};try{let a=await fetch(`https://geocode.xyz/${e.latitude},${e.longitude}?geoit=json`);t=await a.json()}catch(e){console.error(`Could not get city name (${e})`)}console.debug("Got city name from browser."),W.update((a=>({...a,available:!0,city:t.city,...e}))),te(W,!1)}async function ee(){if("undefined"==typeof window)return;if(Date.now()-h(R).updated<3e5)return void console.debug("Skipping fetch of space weather as the data was fetched very recently.");let e;te(R,!0),console.debug("Attempting to fetch space weather data.");try{e=await async function(){let e,t={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}};console.debug("Fetch solar-wind-mag-field data from SWPC-NOAA.");let a=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");e=await a.json(),e.TimeStamp=H(e.TimeStamp),t.usnoaa_data_raw.solar_wind_mag_field=e,t.now.bz=t.usnoaa_data_raw.solar_wind_mag_field.Bz,t.now.bt=t.usnoaa_data_raw.solar_wind_mag_field.Bt,console.debug(e),console.debug("Fetch 1-hour kp predictions from SWPC-NOAA."),a=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),e=await a.json(),e=e.map((e=>({...e,model_prediction_time:H(e.model_prediction_time)}))),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=e,console.debug(e),console.debug("Fetch 27-day outlook from SWPC-NOAA."),a=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),e=await a.text(),console.debug(e),e=[...e.matchAll(/^(?