From bd63e45d2d03af7dd55c48450915f9b63567c3d4 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Thu, 28 Apr 2022 14:03:34 +0200 Subject: Updates --- client/client.0760ad6c.js | 18 ++++++++++++++++++ client/client.e4b23ecd.js | 18 ------------------ client/index-ae7087a9.css | 19 ------------------- client/index-c3b4413a.css | 15 +++++++++++++++ client/index.0db72640.js | 1 + client/index.18661d3d.js | 1 - client/legacy/client.1a413fbb.js | 18 ------------------ client/legacy/client.c55e0741.js | 18 ++++++++++++++++++ client/legacy/index-ae7087a9.css | 19 ------------------- client/legacy/index-c3b4413a.css | 15 +++++++++++++++ client/legacy/index.3cd72d89.js | 1 + client/legacy/index.7f481a6e.js | 1 - index.html | 2 +- service-worker-index.html | 2 +- service-worker.js | 2 +- theme.css | 24 ++++++++++++++++++++++++ 16 files changed, 95 insertions(+), 79 deletions(-) create mode 100644 client/client.0760ad6c.js delete mode 100644 client/client.e4b23ecd.js delete mode 100644 client/index-ae7087a9.css create mode 100644 client/index-c3b4413a.css create mode 100644 client/index.0db72640.js delete mode 100644 client/index.18661d3d.js delete mode 100644 client/legacy/client.1a413fbb.js create mode 100644 client/legacy/client.c55e0741.js delete mode 100644 client/legacy/index-ae7087a9.css create mode 100644 client/legacy/index-c3b4413a.css create mode 100644 client/legacy/index.3cd72d89.js delete mode 100644 client/legacy/index.7f481a6e.js create mode 100644 theme.css diff --git a/client/client.0760ad6c.js b/client/client.0760ad6c.js new file mode 100644 index 0000000..2b600d3 --- /dev/null +++ b/client/client.0760ad6c.js @@ -0,0 +1,18 @@ +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,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,e,n,r){if(t){const o=l(t,e,n,r);return t[0](o)}}function l(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function u(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 g(t,e){if(h){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:m(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 w(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function N(t){return Array.from(t.childNodes)}function A(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 R(t,e,n){return function(t,e,n,r){return A(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;rt.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,v)}function P(t,e){return A(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}),(()=>b(e)),!0)}function L(t){return P(t," ")}function k(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function q(t,e,n){t.classList[n?"add":"remove"](e)}function C(t,e=document.body){return Array.from(e.querySelectorAll(t))}function O(t){p=t}function T(){if(!p)throw new Error("Function called outside component initialization");return p}const U=[],I=[],B=[],J=[],D=Promise.resolve();let z=!1;function H(t){B.push(t)}const K=new Set;let M=0;function V(){const t=p;do{for(;M{G.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function tt(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 et(t){return"object"==typeof t&&null!==t?t:{}}function nt(t){t&&t.c()}function rt(t,e){t&&t.l(e)}function ot(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||H((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(H)}function st(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 it(t,e){-1===t.$$.dirty[0]&&(U.push(t),z||(z=!0,D.then(V)),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),m&&it(e,t)),n})):[],d.update(),m=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){h=!0;const t=N(n.target);d.fragment&&d.fragment.l(t),t.forEach(y)}else d.fragment&&d.fragment.c();n.intro&&Q(e.$$.fragment),ot(e,n.target,n.anchor,n.customElement),h=!1,V()}O(f)}class at{$destroy(){st(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 lt=[];function ut(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!lt.length;for(const t of o)t[1](),lt.push(t,e);if(t){for(let t=0;t{o.delete(a),0===o.size&&(r(),r=null)}}}}const ft={};function dt(t){let e,n;const r=t[1].default,o=a(r,t,t[0],null);return{c(){e=v("div"),o&&o.c(),this.h()},l(t){e=R(t,"DIV",{class:!0});var n=N(e);o&&o.l(n),n.forEach(y),this.h()},h(){w(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)&&f(o,r,t,t[0],n?u(r,t[0],e,null):d(t[0]),null)},i(t){n||(Q(o,t),n=!0)},o(t){Z(o,t),n=!1},d(t){t&&y(e),o&&o.d(t)}}}function pt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class ht extends at{constructor(t){super(),ct(this,t,pt,dt,i,{})}}function mt(t){let e,n,r=t[1].stack+"";return{c(){e=v("pre"),n=b(r)},l(t){e=R(t,"PRE",{});var o=N(e);n=P(o,r),o.forEach(y)},m(t,r){$(t,e,r),g(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&k(n,r)},d(t){t&&y(e)}}}function gt(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&&mt(e);return{c(){r=x(),o=v("h1"),s=b(e[0]),i=x(),c=v("p"),a=b(f),l=x(),d&&d.c(),u=E(),this.h()},l(t){C('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(y),r=L(t),o=R(t,"H1",{class:!0});var n=N(o);s=P(n,e[0]),n.forEach(y),i=L(t),c=R(t,"P",{class:!0});var p=N(c);a=P(p,f),p.forEach(y),l=L(t),d&&d.l(t),u=E(),this.h()},h(){w(o,"class","svelte-jpshsi"),w(c,"class","svelte-jpshsi")},m(t,e){$(t,r,e),$(t,o,e),g(o,s),$(t,i,e),$(t,c,e),g(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&&k(s,t[0]),2&e&&f!==(f=t[1].message+"")&&k(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=mt(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&y(r),t&&y(o),t&&y(i),t&&y(c),t&&y(l),d&&d.d(t),t&&y(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 yt extends at{constructor(t){super(),ct(this,t,$t,gt,i,{status:0,error:1})}}function _t(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{st(t,1)})),X()}i?(n=new i(c()),nt(n.$$.fragment),Q(n.$$.fragment,1),ot(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&Q(n.$$.fragment,t),o=!0)},o(t){n&&Z(n.$$.fragment,t),o=!1},d(t){t&&y(r),n&&st(n,t)}}}function vt(t){let e,n;return e=new yt({props:{error:t[0],status:t[1]}}),{c(){nt(e.$$.fragment)},l(t){rt(e.$$.fragment,t)},m(t,r){ot(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||(Q(e.$$.fragment,t),n=!0)},o(t){Z(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function bt(t){let e,n,r,o;const s=[vt,_t],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=E()},l(t){n.l(t),r=E()},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):(Y(),Z(i[a],1,1,(()=>{i[a]=null})),X(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),Q(n,1),n.m(r.parentNode,r))},i(t){o||(Q(n),o=!0)},o(t){Z(n),o=!1},d(t){i[e].d(t),t&&y(r)}}}function xt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[bt]},$$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 St extends at{constructor(t){super(),ct(this,t,Et,xt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const wt=[],Nt=[{js:()=>Promise.all([import("./index.0db72640.js"),__inject_styles(["client-ea61129f.css","index-c3b4413a.css"])]).then((function(t){return t[0]}))}],At=[{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 Rt(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 Pt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let Lt,kt=1;const jt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},qt={};let Ct,Ot;function Tt(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 Ut(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Ct))return null;let e=t.pathname.slice(Ct.length);if(""===e&&(e="/"),!wt.some((t=>t.test(e))))for(let n=0;n{Mt(t)}),20)}function Ft(t,e={noscroll:!1,replaceState:!1}){const n=Ut(new URL(t,zt(document)));return n?(jt[e.replaceState?"replaceState":"pushState"]({id:Lt},"",t),Dt(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Gt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Wt,Yt,Xt,Qt=!1,Zt=[],te="{}";const ee={page:function(t){const e=ut(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:ut(null),session:ut(Gt&&Gt.session)};let ne,re,oe;function se(t,e){const{error:n}=t;return Object.assign({error:n},e)}function ie(t){return Rt(this,void 0,void 0,(function*(){Wt&&ee.preloading.set(!0);const e=function(t){return Kt&&Kt.href===t.href?Kt.promise:ae(t)}(t),n=Yt={},r=yield e,{redirect:o}=r;if(n===Yt)if(o)yield Ft(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield ce(n,e,se(e,t.page))}}))}function ce(t,e,n){return Rt(this,void 0,void 0,(function*(){ee.page.set(n),ee.preloading.set(!1),Wt?Wt.$set(e):(e.stores={page:{subscribe:ee.page.subscribe},preloading:{subscribe:ee.preloading.subscribe},session:ee.session},e.level0={props:yield Xt},e.notify=ee.page.notify,Wt=new St({target:oe,props:e,hydrate:!0})),Zt=t,te=JSON.stringify(n.query),Qt=!0,re=!1}))}function ae(t){return Rt(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(!Xt){const t=()=>({});Xt=Gt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},ne)}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)=>Rt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==te)return!0;const o=Zt[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(!re&&!u&&Zt[c]&&Zt[c].part===e.i)return Zt[c];u=!1;const{default:p,preload:h}=yield Nt[e.i].js();let m;return m=Qt||!Gt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},ne):{}:Gt.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 le,ue,fe;ee.session.subscribe((t=>Rt(void 0,void 0,void 0,(function*(){if(ne=t,!Qt)return;re=!0;const e=Ut(new URL(location.href)),n=Yt={},{redirect:r,props:o,branch:s}=yield ae(e);n===Yt&&(r?yield Ft(r.location,{replaceState:!0}):yield ce(s,o,se(o,e.page)))})))),le={target:document.querySelector(".app")},ue=le.target,oe=ue,fe=Gt.baseUrl,Ct=fe,Ot=ie,"scrollRestoration"in jt&&(jt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{jt.scrollRestoration="auto"})),addEventListener("load",(()=>{jt.scrollRestoration="manual"})),addEventListener("click",It),addEventListener("popstate",Jt),addEventListener("touchstart",Mt),addEventListener("mousemove",Vt),Gt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Gt;Xt||(Xt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Xt},level1:{props:{status:s,error:i},component:yt},segments:o},a=Tt(n);ce([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;jt.replaceState({id:kt},"",e);const n=Ut(new URL(location.href));if(n)return Dt(n,kt,!0,t)}));export{a as A,f as B,d as C,u as D,j as E,_ as F,q as G,S as H,o as I,C as J,at as S,N as a,w as b,R as c,y as d,v as e,$ as f,g,x as h,ct as i,L as j,P as k,k as l,E as m,t as n,Y as o,Z as p,X as q,Q as r,i as s,b as t,c as u,nt as v,ut as w,rt 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/client.e4b23ecd.js b/client/client.e4b23ecd.js deleted file mode 100644 index b8abed3..0000000 --- a/client/client.e4b23ecd.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,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,e,n,r){if(t){const o=l(t,e,n,r);return t[0](o)}}function l(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function u(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 g(t,e){if(h){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:m(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 w(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function N(t){return Array.from(t.childNodes)}function A(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 R(t,e,n){return function(t,e,n,r){return A(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;rt.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,v)}function P(t,e){return A(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}),(()=>b(e)),!0)}function L(t){return P(t," ")}function k(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function q(t,e,n){t.classList[n?"add":"remove"](e)}function C(t,e=document.body){return Array.from(e.querySelectorAll(t))}function O(t){p=t}function T(){if(!p)throw new Error("Function called outside component initialization");return p}const U=[],I=[],B=[],J=[],D=Promise.resolve();let z=!1;function H(t){B.push(t)}const K=new Set;let M=0;function V(){const t=p;do{for(;M{G.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function tt(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 et(t){return"object"==typeof t&&null!==t?t:{}}function nt(t){t&&t.c()}function rt(t,e){t&&t.l(e)}function ot(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||H((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(H)}function st(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 it(t,e){-1===t.$$.dirty[0]&&(U.push(t),z||(z=!0,D.then(V)),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),m&&it(e,t)),n})):[],d.update(),m=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){h=!0;const t=N(n.target);d.fragment&&d.fragment.l(t),t.forEach(y)}else d.fragment&&d.fragment.c();n.intro&&Q(e.$$.fragment),ot(e,n.target,n.anchor,n.customElement),h=!1,V()}O(f)}class at{$destroy(){st(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 lt=[];function ut(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!lt.length;for(const t of o)t[1](),lt.push(t,e);if(t){for(let t=0;t{o.delete(a),0===o.size&&(r(),r=null)}}}}const ft={};function dt(t){let e,n;const r=t[1].default,o=a(r,t,t[0],null);return{c(){e=v("div"),o&&o.c(),this.h()},l(t){e=R(t,"DIV",{class:!0});var n=N(e);o&&o.l(n),n.forEach(y),this.h()},h(){w(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)&&f(o,r,t,t[0],n?u(r,t[0],e,null):d(t[0]),null)},i(t){n||(Q(o,t),n=!0)},o(t){Z(o,t),n=!1},d(t){t&&y(e),o&&o.d(t)}}}function pt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class ht extends at{constructor(t){super(),ct(this,t,pt,dt,i,{})}}function mt(t){let e,n,r=t[1].stack+"";return{c(){e=v("pre"),n=b(r)},l(t){e=R(t,"PRE",{});var o=N(e);n=P(o,r),o.forEach(y)},m(t,r){$(t,e,r),g(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&k(n,r)},d(t){t&&y(e)}}}function gt(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&&mt(e);return{c(){r=x(),o=v("h1"),s=b(e[0]),i=x(),c=v("p"),a=b(f),l=x(),d&&d.c(),u=E(),this.h()},l(t){C('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(y),r=L(t),o=R(t,"H1",{class:!0});var n=N(o);s=P(n,e[0]),n.forEach(y),i=L(t),c=R(t,"P",{class:!0});var p=N(c);a=P(p,f),p.forEach(y),l=L(t),d&&d.l(t),u=E(),this.h()},h(){w(o,"class","svelte-jpshsi"),w(c,"class","svelte-jpshsi")},m(t,e){$(t,r,e),$(t,o,e),g(o,s),$(t,i,e),$(t,c,e),g(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&&k(s,t[0]),2&e&&f!==(f=t[1].message+"")&&k(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=mt(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&y(r),t&&y(o),t&&y(i),t&&y(c),t&&y(l),d&&d.d(t),t&&y(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 yt extends at{constructor(t){super(),ct(this,t,$t,gt,i,{status:0,error:1})}}function _t(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{st(t,1)})),X()}i?(n=new i(c()),nt(n.$$.fragment),Q(n.$$.fragment,1),ot(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&Q(n.$$.fragment,t),o=!0)},o(t){n&&Z(n.$$.fragment,t),o=!1},d(t){t&&y(r),n&&st(n,t)}}}function vt(t){let e,n;return e=new yt({props:{error:t[0],status:t[1]}}),{c(){nt(e.$$.fragment)},l(t){rt(e.$$.fragment,t)},m(t,r){ot(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||(Q(e.$$.fragment,t),n=!0)},o(t){Z(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function bt(t){let e,n,r,o;const s=[vt,_t],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=E()},l(t){n.l(t),r=E()},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):(Y(),Z(i[a],1,1,(()=>{i[a]=null})),X(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),Q(n,1),n.m(r.parentNode,r))},i(t){o||(Q(n),o=!0)},o(t){Z(n),o=!1},d(t){i[e].d(t),t&&y(r)}}}function xt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[bt]},$$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 St extends at{constructor(t){super(),ct(this,t,Et,xt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const wt=[],Nt=[{js:()=>Promise.all([import("./index.18661d3d.js"),__inject_styles(["client-ea61129f.css","index-ae7087a9.css"])]).then((function(t){return t[0]}))}],At=[{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 Rt(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 Pt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let Lt,kt=1;const jt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},qt={};let Ct,Ot;function Tt(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 Ut(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Ct))return null;let e=t.pathname.slice(Ct.length);if(""===e&&(e="/"),!wt.some((t=>t.test(e))))for(let n=0;n{Mt(t)}),20)}function Ft(t,e={noscroll:!1,replaceState:!1}){const n=Ut(new URL(t,zt(document)));return n?(jt[e.replaceState?"replaceState":"pushState"]({id:Lt},"",t),Dt(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Gt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Wt,Yt,Xt,Qt=!1,Zt=[],te="{}";const ee={page:function(t){const e=ut(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:ut(null),session:ut(Gt&&Gt.session)};let ne,re,oe;function se(t,e){const{error:n}=t;return Object.assign({error:n},e)}function ie(t){return Rt(this,void 0,void 0,(function*(){Wt&&ee.preloading.set(!0);const e=function(t){return Kt&&Kt.href===t.href?Kt.promise:ae(t)}(t),n=Yt={},r=yield e,{redirect:o}=r;if(n===Yt)if(o)yield Ft(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield ce(n,e,se(e,t.page))}}))}function ce(t,e,n){return Rt(this,void 0,void 0,(function*(){ee.page.set(n),ee.preloading.set(!1),Wt?Wt.$set(e):(e.stores={page:{subscribe:ee.page.subscribe},preloading:{subscribe:ee.preloading.subscribe},session:ee.session},e.level0={props:yield Xt},e.notify=ee.page.notify,Wt=new St({target:oe,props:e,hydrate:!0})),Zt=t,te=JSON.stringify(n.query),Qt=!0,re=!1}))}function ae(t){return Rt(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(!Xt){const t=()=>({});Xt=Gt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},ne)}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)=>Rt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==te)return!0;const o=Zt[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(!re&&!u&&Zt[c]&&Zt[c].part===e.i)return Zt[c];u=!1;const{default:p,preload:h}=yield Nt[e.i].js();let m;return m=Qt||!Gt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},ne):{}:Gt.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 le,ue,fe;ee.session.subscribe((t=>Rt(void 0,void 0,void 0,(function*(){if(ne=t,!Qt)return;re=!0;const e=Ut(new URL(location.href)),n=Yt={},{redirect:r,props:o,branch:s}=yield ae(e);n===Yt&&(r?yield Ft(r.location,{replaceState:!0}):yield ce(s,o,se(o,e.page)))})))),le={target:document.querySelector(".app")},ue=le.target,oe=ue,fe=Gt.baseUrl,Ct=fe,Ot=ie,"scrollRestoration"in jt&&(jt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{jt.scrollRestoration="auto"})),addEventListener("load",(()=>{jt.scrollRestoration="manual"})),addEventListener("click",It),addEventListener("popstate",Jt),addEventListener("touchstart",Mt),addEventListener("mousemove",Vt),Gt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Gt;Xt||(Xt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Xt},level1:{props:{status:s,error:i},component:yt},segments:o},a=Tt(n);ce([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;jt.replaceState({id:kt},"",e);const n=Ut(new URL(location.href));if(n)return Dt(n,kt,!0,t)}));export{a as A,f as B,d as C,u as D,j as E,_ as F,q as G,S as H,o as I,C as J,at as S,N as a,w as b,R as c,y as d,v as e,$ as f,g,x as h,ct as i,L as j,P as k,k as l,E as m,t as n,Y as o,Z as p,X as q,Q as r,i as s,b as t,c as u,nt as v,ut as w,rt 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-ae7087a9.css b/client/index-ae7087a9.css deleted file mode 100644 index e3f81fa..0000000 --- a/client/index-ae7087a9.css +++ /dev/null @@ -1,19 +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-6dfxfp{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:linear-gradient(90deg, #84fab0, #8fd3f4 51%, #84fab0) 100% / 200%;color:white} -:root{--progress:100%}.wrapper.svelte-13cwtm1{position:relative;border-radius:15px;width:100%;height:100%}.bar-wrapper.svelte-13cwtm1{overflow:hidden;position:relative;border-radius:15px;height:100%;width:100%;left:calc(100% - var(--progress))}.bar.svelte-13cwtm1{position:absolute;height:100%;width:100%;right:calc(100% - var(--progress));overflow:hidden;background:linear-gradient(90deg, - rgba(255, 42,228,1) 0%, - rgba(164,255,177,1) 60%, - rgba(214,255,241,1) 85%, - rgba(255,255,255,1) 100%);border-radius:15px}.value.svelte-13cwtm1{position:absolute;right:0.1rem;top:0;font-size:1.5rem} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.drawer.svelte-6c4yca.svelte-6c4yca{border-top-left-radius:2rem;border-top-right-radius:2rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-6c4yca.svelte-6c4yca{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-6c4yca.svelte-6c4yca{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-6c4yca .header.svelte-6c4yca{display:flex;align-items:flex-start}.drawer.svelte-6c4yca h2.svelte-6c4yca{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-6c4yca.svelte-6c4yca{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-6c4yca>.svelte-6c4yca{transition:all 0.1s ease}.version-picker.svelte-6c4yca .selected.svelte-6c4yca{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-6c4yca.svelte-6c4yca{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-6c4yca.svelte-6c4yca{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-c3b4413a.css b/client/index-c3b4413a.css new file mode 100644 index 0000000..30d5236 --- /dev/null +++ b/client/index-c3b4413a.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-5bytj.svelte-5bytj{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:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-5bytj.svelte-5bytj{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-5bytj.svelte-5bytj{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-5bytj .header.svelte-5bytj{display:flex;align-items:flex-start}.drawer.svelte-5bytj h2.svelte-5bytj{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-5bytj.svelte-5bytj{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-5bytj>.svelte-5bytj{transition:all 0.1s ease}.version-picker.svelte-5bytj .selected.svelte-5bytj{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-5bytj.svelte-5bytj{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-5bytj.svelte-5bytj{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.0db72640.js b/client/index.0db72640.js new file mode 100644 index 0000000..c507dd4 --- /dev/null +++ b/client/index.0db72640.js @@ -0,0 +1 @@ +import{S as e,i as t,s as a,e as s,c as l,a as n,d as r,b as c,f as i,g as o,n as u,w as d,h,t as f,j as p,k as m,l as v,m as g,o as _,p as k,q as $,r as b,u as w,v as E,x as D,y,z as j,A as I,B as V,C as O,D as q,E as T,F as x,G as M,H as P,I as S,J as N}from"./client.0760ad6c.js";function C(e){let t,a,d,h,f,p,m,v,g;return{c(){t=s("div"),a=s("div"),d=s("div"),h=s("div"),f=s("div"),p=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0}),n(a).forEach(r),d=l(s,"DIV",{class:!0}),n(d).forEach(r),h=l(s,"DIV",{class:!0}),n(h).forEach(r),f=l(s,"DIV",{class:!0}),n(f).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),m=l(s,"DIV",{class:!0}),n(m).forEach(r),v=l(s,"DIV",{class:!0}),n(v).forEach(r),g=l(s,"DIV",{class:!0}),n(g).forEach(r),s.forEach(r),this.h()},h(){c(a,"class","svelte-7k6qu0"),c(d,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(e,s){i(e,t,s),o(t,a),o(t,d),o(t,h),o(t,f),o(t,p),o(t,m),o(t,v),o(t,g)},p:u,i:u,o:u,d(e){e&&r(t)}}}class A extends e{constructor(e){super(),t(this,e,null,C,a,{})}}const B={updated:!1,updating:!0},H=d(Object.assign(Object.assign({},B),{available:!1,longitude:null,latitude:null,city:null})),J=d(Object.assign(Object.assign({},B),{available:!1})),K=d(Object.assign({},B));function z(e,t=!1){let a=t?{}:{updated:new Date};e.update((e=>Object.assign(Object.assign(Object.assign({},e),a),{updating:t})))}function F(e){let t,a,u,d,g=e[0].city+"";return{c(){t=s("i"),a=h(),u=s("h1"),d=f(g),this.h()},l(e){t=l(e,"I",{class:!0}),n(t).forEach(r),a=p(e),u=l(e,"H1",{class:!0});var s=n(u);d=m(s,g),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),c(u,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),i(e,a,s),i(e,u,s),o(u,d)},p(e,t){1&t&&g!==(g=e[0].city+"")&&v(d,g)},d(e){e&&r(t),e&&r(a),e&&r(u)}}}function L(e){let t,a;function s(e,a){return 6&a&&(t=null),null==t&&(t=!!(Math.abs(e[1].updated-e[2].updated)>6e5)),t?Z:U}let l=s(e,-1),n=l(e);return{c(){n.c(),a=g()},l(e){n.l(e),a=g()},m(e,t){n.m(e,t),i(e,a,t)},p(e,t){l===(l=s(e,t))&&n?n.p(e,t):(n.d(1),n=l(e),n&&(n.c(),n.m(a.parentNode,a)))},d(e){n.d(e),e&&r(a)}}}function U(e){let t,a,c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),a=f(c)},l(e){t=l(e,"P",{});var s=n(t);a=m(s,c),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p(e,t){2&t&&c!==(c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&v(a,c)},d(e){e&&r(t)}}}function Z(e){let t,a;return{c(){t=s("p"),a=f("There is more than 10 minutes difference between data updates")},l(e){t=l(e,"P",{});var s=n(t);a=m(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p:u,d(e){e&&r(t)}}}function G(e){let t,a,d,g,_,k,$,b,w,E,D,y,j=e[2].now.kp+"",I=e[2].now.kp_max+"",V=e[2].now.kp_min+"";return{c(){t=s("h2"),a=f("KP "),d=f(j),g=h(),_=s("p"),k=s("span"),$=f("↑ KP "),b=f(I),w=h(),E=s("span"),D=f("↓ KP "),y=f(V),this.h()},l(e){t=l(e,"H2",{class:!0});var s=n(t);a=m(s,"KP "),d=m(s,j),s.forEach(r),g=p(e),_=l(e,"P",{});var c=n(_);k=l(c,"SPAN",{classname:!0});var i=n(k);$=m(i,"↑ KP "),b=m(i,I),i.forEach(r),w=p(c),E=l(c,"SPAN",{classname:!0});var o=n(E);D=m(o,"↓ KP "),y=m(o,V),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s"),c(k,"classname","pr-2"),c(E,"classname","pl-2")},m(e,s){i(e,t,s),o(t,a),o(t,d),i(e,g,s),i(e,_,s),o(_,k),o(k,$),o(k,b),o(_,w),o(_,E),o(E,D),o(E,y)},p(e,t){4&t&&j!==(j=e[2].now.kp+"")&&v(d,j),4&t&&I!==(I=e[2].now.kp_max+"")&&v(b,I),4&t&&V!==(V=e[2].now.kp_min+"")&&v(y,V)},i:u,o:u,d(e){e&&r(t),e&&r(g),e&&r(_)}}}function Q(e){let t,a;return t=new A({}),{c(){E(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p:u,i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){k(t.$$.fragment,e),a=!1},d(e){j(t,e)}}}function R(e){let t,a,u,d,_,k,$,b,w,E,D,y,j,I,V,O=e[2].now.bz+"",q=e[2].now.bt+"",T=e[1].available&&W(e);return{c(){t=s("div"),a=s("p"),u=f("BZ"),d=h(),_=s("p"),k=f(O),$=h(),b=s("div"),w=s("p"),E=f("BT"),D=h(),y=s("p"),j=f(q),I=h(),T&&T.c(),V=g(),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=m(c,"BZ"),c.forEach(r),d=p(s),_=l(s,"P",{class:!0});var i=n(_);k=m(i,O),i.forEach(r),s.forEach(r),$=p(e),b=l(e,"DIV",{});var o=n(b);w=l(o,"P",{class:!0});var h=n(w);E=m(h,"BT"),h.forEach(r),D=p(o),y=l(o,"P",{class:!0});var f=n(y);j=m(f,q),f.forEach(r),o.forEach(r),I=p(e),T&&T.l(e),V=g(),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(_,"class","svelte-9kdo4s"),c(w,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,_),o(_,k),i(e,$,s),i(e,b,s),o(b,w),o(w,E),o(b,D),o(b,y),o(y,j),i(e,I,s),T&&T.m(e,s),i(e,V,s)},p(e,t){4&t&&O!==(O=e[2].now.bz+"")&&v(k,O),4&t&&q!==(q=e[2].now.bt+"")&&v(j,q),e[1].available?T?T.p(e,t):(T=W(e),T.c(),T.m(V.parentNode,V)):T&&(T.d(1),T=null)},d(e){e&&r(t),e&&r($),e&&r(b),e&&r(I),T&&T.d(e),e&&r(V)}}}function W(e){let t,a,u,d,g,_,k,$,b,w,E,D,y,j,I,V=e[1].now.temp+"",O=e[1].now.clouds+"";return{c(){t=s("div"),a=s("p"),u=f("Temp"),d=h(),g=s("p"),_=f(V),k=f("°C"),$=h(),b=s("div"),w=s("p"),E=f("Clouds"),D=h(),y=s("p"),j=f(O),I=f("%"),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=m(c,"Temp"),c.forEach(r),d=p(s),g=l(s,"P",{class:!0});var i=n(g);_=m(i,V),k=m(i,"°C"),i.forEach(r),s.forEach(r),$=p(e),b=l(e,"DIV",{});var o=n(b);w=l(o,"P",{class:!0});var h=n(w);E=m(h,"Clouds"),h.forEach(r),D=p(o),y=l(o,"P",{class:!0});var f=n(y);j=m(f,O),I=m(f,"%"),f.forEach(r),o.forEach(r),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(g,"class","svelte-9kdo4s"),c(w,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,g),o(g,_),o(g,k),i(e,$,s),i(e,b,s),o(b,w),o(w,E),o(b,D),o(b,y),o(y,j),o(y,I)},p(e,t){2&t&&V!==(V=e[1].now.temp+"")&&v(_,V),2&t&&O!==(O=e[1].now.clouds+"")&&v(j,O)},d(e){e&&r(t),e&&r($),e&&r(b)}}}function X(e){let t,a,u,d,f,m,v,g,w,E,D,y,j=!e[0].updating&&e[0].available&&!e[1].updating&&!e[2].updating&&F(e),I=!e[1].updating&&!e[2].updating&&L(e);const V=[Q,G],O=[];function q(e,t){return e[2].updating||e[1].updating?0:1}g=q(e),w=O[g]=V[g](e);let T=!e[2].updating&&!e[1].updating&&R(e);return{c(){t=s("div"),a=s("div"),u=s("div"),j&&j.c(),d=h(),f=s("div"),I&&I.c(),m=h(),v=s("div"),w.c(),E=h(),D=s("div"),T&&T.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0});var c=n(a);u=l(c,"DIV",{class:!0});var i=n(u);j&&j.l(i),i.forEach(r),d=p(c),f=l(c,"DIV",{class:!0});var o=n(f);I&&I.l(o),o.forEach(r),m=p(c),v=l(c,"DIV",{class:!0});var h=n(v);w.l(h),h.forEach(r),E=p(c),D=l(c,"DIV",{class:!0});var g=n(D);T&&T.l(g),g.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","weatherCurrent-data-location svelte-9kdo4s"),c(f,"class","weatherCurrent-data-date"),c(v,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(D,"class","current-details svelte-9kdo4s"),c(a,"class","weatherCurrent-data svelte-9kdo4s"),c(t,"class","weatherCurrent-wrapper svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),j&&j.m(u,null),o(a,d),o(a,f),I&&I.m(f,null),o(a,m),o(a,v),O[g].m(v,null),o(a,E),o(a,D),T&&T.m(D,null),y=!0},p(e,[t]){e[0].updating||!e[0].available||e[1].updating||e[2].updating?j&&(j.d(1),j=null):j?j.p(e,t):(j=F(e),j.c(),j.m(u,null)),e[1].updating||e[2].updating?I&&(I.d(1),I=null):I?I.p(e,t):(I=L(e),I.c(),I.m(f,null));let a=g;g=q(e),g===a?O[g].p(e,t):(_(),k(O[a],1,1,(()=>{O[a]=null})),$(),w=O[g],w?w.p(e,t):(w=O[g]=V[g](e),w.c()),b(w,1),w.m(v,null)),e[2].updating||e[1].updating?T&&(T.d(1),T=null):T?T.p(e,t):(T=R(e),T.c(),T.m(D,null))},i(e){y||(b(w),y=!0)},o(e){k(w),y=!1},d(e){e&&r(t),j&&j.d(),I&&I.d(),O[g].d(),T&&T.d()}}}function Y(e,t,a){let s,l,n;return w(e,H,(e=>a(0,s=e))),w(e,J,(e=>a(1,l=e))),w(e,K,(e=>a(2,n=e))),[s,l,n]}!async function(){if("undefined"==typeof window)return;let e;z(H,!0);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){return console.log(e),H.update((e=>Object.assign(Object.assign({},e),{available:!1,city:null,longitude:null,latitude:null}))),void z(H,!1)}let t=await fetch(`https://geocode.xyz/${e.latitude},${e.longitude}?geoit=json`),a=await t.json();H.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:a.city}),e))),z(H,!1)}(),H.subscribe((async function(e=null){if("undefined"==typeof window)return;if(null===e)return;if(e.updating)return;if(!e.available)return J.update((e=>Object.assign(Object.assign({},e),{available:!1}))),void z(J,!1);z(J,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e.latitude}&lon=${e.longitude}`),a=await t.json(),s={clouds:null,temp:null};try{s.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((e=>Object.assign(Object.assign({},e),{time:new Date(e.time)})))}catch(e){}J.update((e=>Object.assign(Object.assign({},e),{yr_data_raw:a,now:s,available:!0}))),z(J,!1)})),async function(){if("undefined"==typeof window)return;z(K,!0);let 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}},a=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t.usnoaa_data_raw.solar_wind_mag_field=await a.json(),t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),t.now.bz=t.usnoaa_data_raw.solar_wind_mag_field.Bz,t.now.bt=t.usnoaa_data_raw.solar_wind_mag_field.Bt,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=>Object.assign(Object.assign({},e),{model_prediction_time:new Date(e.model_prediction_time)}))),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=e,a=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),e=await a.text(),e=[...e.matchAll(/^(?