diff options
-rw-r--r-- | client/client.c78b597d.js (renamed from client/client.b9472371.js) | 2 | ||||
-rw-r--r-- | client/index-c543e7aa.css (renamed from client/legacy/index-3231f19d.css) | 2 | ||||
-rw-r--r-- | client/index.e52d0c93.js | 1 | ||||
-rw-r--r-- | client/index.f58bd2e0.js | 1 | ||||
-rw-r--r-- | client/legacy/client.9db787ae.js (renamed from client/legacy/client.26d4afad.js) | 2 | ||||
-rw-r--r-- | client/legacy/index-c543e7aa.css (renamed from client/index-3231f19d.css) | 2 | ||||
-rw-r--r-- | client/legacy/index.4a50ca1a.js | 1 | ||||
-rw-r--r-- | client/legacy/index.87fbe324.js | 1 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | service-worker-index.html | 2 | ||||
-rw-r--r-- | service-worker.js | 2 |
11 files changed, 11 insertions, 7 deletions
diff --git a/client/client.b9472371.js b/client/client.c78b597d.js index 155f25d..ec7ca31 100644 --- a/client/client.b9472371.js +++ b/client/client.c78b597d.js @@ -1,4 +1,4 @@ -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;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function f(t,e,n,r,o,s){if(o){const i=l(e,n,r,s);t.p(i,o)}}function d(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}let p,h=!1;function m(t,e,n,r){for(;t<e;){const o=t+(e-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;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(o>0&&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<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const r=n<s.length?s[n]:null;t.insertBefore(i[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function $(t,e,n){h&&!n?g(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function _(t){t.parentNode.removeChild(t)}function y(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function b(t){return document.createTextNode(t)}function x(){return b(" ")}function E(){return b("")}function S(t,e,n,r){return t.addEventListener(e,n,r),()=>t.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<t.length;r++){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),s}}for(let r=t.claim_info.last_index-1;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;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,v)}function L(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 k(t){return L(t," ")}function P(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e,n){t.classList[n?"add":"remove"](e)}function q(t,e=document.body){return Array.from(e.querySelectorAll(t))}function C(t){p=t}function O(){if(!p)throw new Error("Function called outside component initialization");return p}const T=[],U=[],I=[],B=[],D=Promise.resolve();let J=!1;function z(t){I.push(t)}const H=new Set;let K=0;function M(){const t=p;do{for(;K<T.length;){const t=T[K];K++,C(t),V(t.$$)}for(C(null),T.length=0,K=0;U.length;)U.pop()();for(let t=0;t<I.length;t+=1){const e=I[t];H.has(e)||(H.add(e),e())}I.length=0}while(T.length);for(;B.length;)B.pop()();J=!1,H.clear(),C(t)}function V(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(z)}}const F=new Set;let G;function W(){G={r:0,c:[],p:G}}function Y(){G.r||o(G.c),G=G.p}function X(t,e){t&&t.i&&(F.delete(t),t.i(e))}function Q(t,e,n,r){if(t&&t.o){if(F.has(t))return;F.add(t),G.c.push((()=>{F.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function Z(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 tt(t){return"object"==typeof t&&null!==t?t:{}}function et(t){t&&t.c()}function nt(t,e){t&&t.l(e)}function rt(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||z((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(z)}function ot(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 st(t,e){-1===t.$$.dirty[0]&&(T.push(t),J||(J=!0,D.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function it(e,n,s,i,c,a,l,u=[-1]){const f=p;C(e);const d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};l&&l(d.root);let m=!1;if(d.ctx=s?s(e,n.props||{},((t,n,...r)=>{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&&st(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(_)}else d.fragment&&d.fragment.c();n.intro&&X(e.$$.fragment),rt(e,n.target,n.anchor,n.customElement),h=!1,M()}C(f)}class ct{$destroy(){ot(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 at=[];function lt(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!at.length;for(const t of o)t[1](),at.push(t,e);if(t){for(let t=0;t<at.length;t+=2)at[t][0](at[t+1]);at.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,c=t){const a=[i,c];return o.add(a),1===o.size&&(r=n(s)||t),i(e),()=>{o.delete(a),0===o.size&&(r(),r=null)}}}}const ut={};function ft(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(_),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||(X(o,t),n=!0)},o(t){Q(o,t),n=!1},d(t){t&&_(e),o&&o.d(t)}}}function dt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class pt extends ct{constructor(t){super(),it(this,t,dt,ft,i,{})}}function ht(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=L(o,r),o.forEach(_)},m(t,r){$(t,e,r),g(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&P(n,r)},d(t){t&&_(e)}}}function mt(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=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){q('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(_),r=k(t),o=R(t,"H1",{class:!0});var n=N(o);s=L(n,e[0]),n.forEach(_),i=k(t),c=R(t,"P",{class:!0});var p=N(c);a=L(p,f),p.forEach(_),l=k(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&&P(s,t[0]),2&e&&f!==(f=t[1].message+"")&&P(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),t&&_(o),t&&_(i),t&&_(c),t&&_(l),d&&d.d(t),t&&_(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 $t extends ct{constructor(t){super(),it(this,t,gt,mt,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<s.length;t+=1)n=e(n,s[t]);return{props:n}}return i&&(n=new i(c())),{c(){n&&et(n.$$.fragment),r=E()},l(t){n&&nt(n.$$.fragment,t),r=E()},m(t,e){n&&rt(n,t,e),$(t,r,e),o=!0},p(t,e){const o=16&e?Z(s,[tt(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){W();const t=n;Q(t.$$.fragment,1,0,(()=>{ot(t,1)})),Y()}i?(n=new i(c()),et(n.$$.fragment),X(n.$$.fragment,1),rt(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&X(n.$$.fragment,t),o=!0)},o(t){n&&Q(n.$$.fragment,t),o=!1},d(t){t&&_(r),n&&ot(n,t)}}}function yt(t){let e,n;return e=new $t({props:{error:t[0],status:t[1]}}),{c(){et(e.$$.fragment)},l(t){nt(e.$$.fragment,t)},m(t,r){rt(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||(X(e.$$.fragment,t),n=!0)},o(t){Q(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function vt(t){let e,n,r,o;const s=[yt,_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):(W(),Q(i[a],1,1,(()=>{i[a]=null})),Y(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),X(n,1),n.m(r.parentNode,r))},i(t){o||(X(n),o=!0)},o(t){Q(n),o=!1},d(t){i[e].d(t),t&&_(r)}}}function bt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[vt]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new pt({props:s}),{c(){et(n.$$.fragment)},l(t){nt(n.$$.fragment,t)},m(t,e){rt(n,t,e),r=!0},p(t,[e]){const r=12&e?Z(o,[4&e&&{segment:t[2][0]},8&e&&tt(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(X(n.$$.fragment,t),r=!0)},o(t){Q(n.$$.fragment,t),r=!1},d(t){ot(n,t)}}}function xt(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:i}=e,{level0:c}=e,{level1:a=null}=e,{notify:l}=e;var u,f,d;return u=l,O().$$.after_update.push(u),f=ut,d=r,O().$$.context.set(f,d),t.$$set=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 Et extends ct{constructor(t){super(),it(this,t,xt,bt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const St=[],wt=[{js:()=>Promise.all([import("./index.f58bd2e0.js"),__inject_styles(["client-ea61129f.css","index-3231f19d.css"])]).then((function(t){return t[0]}))}],Nt=[{pattern:/^\/$/,parts:[{i: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;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function f(t,e,n,r,o,s){if(o){const i=l(e,n,r,s);t.p(i,o)}}function d(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}let p,h=!1;function m(t,e,n,r){for(;t<e;){const o=t+(e-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;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(o>0&&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<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const r=n<s.length?s[n]:null;t.insertBefore(i[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function $(t,e,n){h&&!n?g(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function _(t){t.parentNode.removeChild(t)}function y(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function b(t){return document.createTextNode(t)}function x(){return b(" ")}function E(){return b("")}function S(t,e,n,r){return t.addEventListener(e,n,r),()=>t.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<t.length;r++){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),s}}for(let r=t.claim_info.last_index-1;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;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,v)}function L(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 k(t){return L(t," ")}function P(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e,n){t.classList[n?"add":"remove"](e)}function q(t,e=document.body){return Array.from(e.querySelectorAll(t))}function C(t){p=t}function O(){if(!p)throw new Error("Function called outside component initialization");return p}const T=[],U=[],I=[],B=[],D=Promise.resolve();let J=!1;function z(t){I.push(t)}const H=new Set;let K=0;function M(){const t=p;do{for(;K<T.length;){const t=T[K];K++,C(t),V(t.$$)}for(C(null),T.length=0,K=0;U.length;)U.pop()();for(let t=0;t<I.length;t+=1){const e=I[t];H.has(e)||(H.add(e),e())}I.length=0}while(T.length);for(;B.length;)B.pop()();J=!1,H.clear(),C(t)}function V(t){if(null!==t.fragment){t.update(),o(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(z)}}const F=new Set;let G;function W(){G={r:0,c:[],p:G}}function Y(){G.r||o(G.c),G=G.p}function X(t,e){t&&t.i&&(F.delete(t),t.i(e))}function Q(t,e,n,r){if(t&&t.o){if(F.has(t))return;F.add(t),G.c.push((()=>{F.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function Z(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 tt(t){return"object"==typeof t&&null!==t?t:{}}function et(t){t&&t.c()}function nt(t,e){t&&t.l(e)}function rt(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||z((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(z)}function ot(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 st(t,e){-1===t.$$.dirty[0]&&(T.push(t),J||(J=!0,D.then(M)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function it(e,n,s,i,c,a,l,u=[-1]){const f=p;C(e);const d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};l&&l(d.root);let m=!1;if(d.ctx=s?s(e,n.props||{},((t,n,...r)=>{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&&st(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(_)}else d.fragment&&d.fragment.c();n.intro&&X(e.$$.fragment),rt(e,n.target,n.anchor,n.customElement),h=!1,M()}C(f)}class ct{$destroy(){ot(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 at=[];function lt(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!at.length;for(const t of o)t[1](),at.push(t,e);if(t){for(let t=0;t<at.length;t+=2)at[t][0](at[t+1]);at.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,c=t){const a=[i,c];return o.add(a),1===o.size&&(r=n(s)||t),i(e),()=>{o.delete(a),0===o.size&&(r(),r=null)}}}}const ut={};function ft(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(_),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||(X(o,t),n=!0)},o(t){Q(o,t),n=!1},d(t){t&&_(e),o&&o.d(t)}}}function dt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class pt extends ct{constructor(t){super(),it(this,t,dt,ft,i,{})}}function ht(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=L(o,r),o.forEach(_)},m(t,r){$(t,e,r),g(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&P(n,r)},d(t){t&&_(e)}}}function mt(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=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){q('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(_),r=k(t),o=R(t,"H1",{class:!0});var n=N(o);s=L(n,e[0]),n.forEach(_),i=k(t),c=R(t,"P",{class:!0});var p=N(c);a=L(p,f),p.forEach(_),l=k(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&&P(s,t[0]),2&e&&f!==(f=t[1].message+"")&&P(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),t&&_(o),t&&_(i),t&&_(c),t&&_(l),d&&d.d(t),t&&_(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 $t extends ct{constructor(t){super(),it(this,t,gt,mt,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<s.length;t+=1)n=e(n,s[t]);return{props:n}}return i&&(n=new i(c())),{c(){n&&et(n.$$.fragment),r=E()},l(t){n&&nt(n.$$.fragment,t),r=E()},m(t,e){n&&rt(n,t,e),$(t,r,e),o=!0},p(t,e){const o=16&e?Z(s,[tt(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){W();const t=n;Q(t.$$.fragment,1,0,(()=>{ot(t,1)})),Y()}i?(n=new i(c()),et(n.$$.fragment),X(n.$$.fragment,1),rt(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&X(n.$$.fragment,t),o=!0)},o(t){n&&Q(n.$$.fragment,t),o=!1},d(t){t&&_(r),n&&ot(n,t)}}}function yt(t){let e,n;return e=new $t({props:{error:t[0],status:t[1]}}),{c(){et(e.$$.fragment)},l(t){nt(e.$$.fragment,t)},m(t,r){rt(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||(X(e.$$.fragment,t),n=!0)},o(t){Q(e.$$.fragment,t),n=!1},d(t){ot(e,t)}}}function vt(t){let e,n,r,o;const s=[yt,_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):(W(),Q(i[a],1,1,(()=>{i[a]=null})),Y(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),X(n,1),n.m(r.parentNode,r))},i(t){o||(X(n),o=!0)},o(t){Q(n),o=!1},d(t){i[e].d(t),t&&_(r)}}}function bt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[vt]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new pt({props:s}),{c(){et(n.$$.fragment)},l(t){nt(n.$$.fragment,t)},m(t,e){rt(n,t,e),r=!0},p(t,[e]){const r=12&e?Z(o,[4&e&&{segment:t[2][0]},8&e&&tt(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(X(n.$$.fragment,t),r=!0)},o(t){Q(n.$$.fragment,t),r=!1},d(t){ot(n,t)}}}function xt(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:i}=e,{level0:c}=e,{level1:a=null}=e,{notify:l}=e;var u,f,d;return u=l,O().$$.after_update.push(u),f=ut,d=r,O().$$.context.set(f,d),t.$$set=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 Et extends ct{constructor(t){super(),it(this,t,xt,bt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const St=[],wt=[{js:()=>Promise.all([import("./index.e52d0c93.js"),__inject_styles(["client-ea61129f.css","index-c543e7aa.css"])]).then((function(t){return t[0]}))}],Nt=[{pattern:/^\/$/,parts:[{i:0}]}]; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/client/legacy/index-3231f19d.css b/client/index-c543e7aa.css index 6ae505d..777381f 100644 --- a/client/legacy/index-3231f19d.css +++ b/client/index-c543e7aa.css @@ -8,5 +8,7 @@ .prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} .prediction-details.svelte-ghmp86.svelte-ghmp86{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-ghmp86.svelte-ghmp86:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-ghmp86>.svelte-ghmp86{margin:5px}.prediction-details.svelte-ghmp86 div.svelte-ghmp86:last-child{margin-left:auto}.prediction-details.svelte-ghmp86 h3.svelte-ghmp86{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-ghmp86 .data.svelte-ghmp86{display:flex;flex-direction:row}.prediction-details.svelte-ghmp86 .data h2.svelte-ghmp86{margin-right:1rem;font-size:1.5rem}.prediction-details.svelte-ghmp86 .data p.svelte-ghmp86{min-width:3.3rem}.prediction-details.svelte-ghmp86 .data i.svelte-ghmp86{width:1rem;text-align:center} .prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} +.prediction-details.svelte-ghmp86.svelte-ghmp86{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-ghmp86.svelte-ghmp86:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-ghmp86>.svelte-ghmp86{margin:5px}.prediction-details.svelte-ghmp86 div.svelte-ghmp86:last-child{margin-left:auto}.prediction-details.svelte-ghmp86 h3.svelte-ghmp86{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-ghmp86 .data.svelte-ghmp86{display:flex;flex-direction:row}.prediction-details.svelte-ghmp86 .data h2.svelte-ghmp86{margin-right:1rem;font-size:1.5rem}.prediction-details.svelte-ghmp86 .data p.svelte-ghmp86{min-width:3.3rem}.prediction-details.svelte-ghmp86 .data i.svelte-ghmp86{width:1rem;text-align:center} +.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.e52d0c93.js b/client/index.e52d0c93.js new file mode 100644 index 0000000..6297cdc --- /dev/null +++ b/client/index.e52d0c93.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 d,w as u,h,t as p,j as f,k as m,l as g,m as v,o as _,p as b,q as w,r as E,u as $,v as D,x as k,y,z as I,A as O,B as V,C as j,D as x,E as T,F as M,G as P,H as S,I as C}from"./client.c78b597d.js";function N(e){let t,a,u,h,p,f,m,g,v;return{c(){t=s("div"),a=s("div"),u=s("div"),h=s("div"),p=s("div"),f=s("div"),m=s("div"),g=s("div"),v=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),u=l(s,"DIV",{class:!0}),n(u).forEach(r),h=l(s,"DIV",{class:!0}),n(h).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),f=l(s,"DIV",{class:!0}),n(f).forEach(r),m=l(s,"DIV",{class:!0}),n(m).forEach(r),g=l(s,"DIV",{class:!0}),n(g).forEach(r),v=l(s,"DIV",{class:!0}),n(v).forEach(r),s.forEach(r),this.h()},h(){c(a,"class","svelte-7k6qu0"),c(u,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(e,s){i(e,t,s),o(t,a),o(t,u),o(t,h),o(t,p),o(t,f),o(t,m),o(t,g),o(t,v)},p:d,i:d,o:d,d(e){e&&r(t)}}}class q extends e{constructor(e){super(),t(this,e,null,N,a,{})}}const H={updated:!1,updating:!0},A=u(Object.assign(Object.assign({},H),{available:!1,longitude:null,latitude:null,city:null})),B=u(Object.assign(Object.assign({},H),{available:!1})),J=u(Object.assign({},H));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,d,u,v=e[0].city+"";return{c(){t=s("i"),a=h(),d=s("h1"),u=p(v),this.h()},l(e){t=l(e,"I",{class:!0}),n(t).forEach(r),a=f(e),d=l(e,"H1",{class:!0});var s=n(d);u=m(s,v),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),c(d,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),i(e,a,s),i(e,d,s),o(d,u)},p(e,t){1&t&&v!==(v=e[0].city+"")&&g(u,v)},d(e){e&&r(t),e&&r(a),e&&r(d)}}}function K(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?U:L}let l=s(e,-1),n=l(e);return{c(){n.c(),a=v()},l(e){n.l(e),a=v()},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 L(e){let t,a,c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),a=p(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"})+"")&&g(a,c)},d(e){e&&r(t)}}}function U(e){let t,a;return{c(){t=s("p"),a=p("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:d,d(e){e&&r(t)}}}function Z(e){let t,a,u,v,_,b,w,E,$,D,k,y,I=e[2].now.kp+"",O=e[2].now.kp_max+"",V=e[2].now.kp_min+"";return{c(){t=s("h2"),a=p("KP "),u=p(I),v=h(),_=s("p"),b=s("span"),w=p("↑ KP "),E=p(O),$=h(),D=s("span"),k=p("↓ KP "),y=p(V),this.h()},l(e){t=l(e,"H2",{class:!0});var s=n(t);a=m(s,"KP "),u=m(s,I),s.forEach(r),v=f(e),_=l(e,"P",{});var c=n(_);b=l(c,"SPAN",{classname:!0});var i=n(b);w=m(i,"↑ KP "),E=m(i,O),i.forEach(r),$=f(c),D=l(c,"SPAN",{classname:!0});var o=n(D);k=m(o,"↓ KP "),y=m(o,V),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s"),c(b,"classname","pr-2"),c(D,"classname","pl-2")},m(e,s){i(e,t,s),o(t,a),o(t,u),i(e,v,s),i(e,_,s),o(_,b),o(b,w),o(b,E),o(_,$),o(_,D),o(D,k),o(D,y)},p(e,t){4&t&&I!==(I=e[2].now.kp+"")&&g(u,I),4&t&&O!==(O=e[2].now.kp_max+"")&&g(E,O),4&t&&V!==(V=e[2].now.kp_min+"")&&g(y,V)},i:d,o:d,d(e){e&&r(t),e&&r(v),e&&r(_)}}}function G(e){let t,a;return t=new q({}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p:d,i(e){a||(E(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function Q(e){let t,a,d,u,_,b,w,E,$,D,k,y,I,O,V,j=e[2].now.bz+"",x=e[2].now.bt+"",T=e[1].available&&R(e);return{c(){t=s("div"),a=s("p"),d=p("BZ"),u=h(),_=s("p"),b=p(j),w=h(),E=s("div"),$=s("p"),D=p("BT"),k=h(),y=s("p"),I=p(x),O=h(),T&&T.c(),V=v(),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=m(c,"BZ"),c.forEach(r),u=f(s),_=l(s,"P",{class:!0});var i=n(_);b=m(i,j),i.forEach(r),s.forEach(r),w=f(e),E=l(e,"DIV",{});var o=n(E);$=l(o,"P",{class:!0});var h=n($);D=m(h,"BT"),h.forEach(r),k=f(o),y=l(o,"P",{class:!0});var p=n(y);I=m(p,x),p.forEach(r),o.forEach(r),O=f(e),T&&T.l(e),V=v(),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(_,"class","svelte-9kdo4s"),c($,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(t,u),o(t,_),o(_,b),i(e,w,s),i(e,E,s),o(E,$),o($,D),o(E,k),o(E,y),o(y,I),i(e,O,s),T&&T.m(e,s),i(e,V,s)},p(e,t){4&t&&j!==(j=e[2].now.bz+"")&&g(b,j),4&t&&x!==(x=e[2].now.bt+"")&&g(I,x),e[1].available?T?T.p(e,t):(T=R(e),T.c(),T.m(V.parentNode,V)):T&&(T.d(1),T=null)},d(e){e&&r(t),e&&r(w),e&&r(E),e&&r(O),T&&T.d(e),e&&r(V)}}}function R(e){let t,a,d,u,v,_,b,w,E,$,D,k,y,I,O,V=e[1].now.temp+"",j=e[1].now.clouds+"";return{c(){t=s("div"),a=s("p"),d=p("Temp"),u=h(),v=s("p"),_=p(V),b=p("°C"),w=h(),E=s("div"),$=s("p"),D=p("Clouds"),k=h(),y=s("p"),I=p(j),O=p("%"),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=m(c,"Temp"),c.forEach(r),u=f(s),v=l(s,"P",{class:!0});var i=n(v);_=m(i,V),b=m(i,"°C"),i.forEach(r),s.forEach(r),w=f(e),E=l(e,"DIV",{});var o=n(E);$=l(o,"P",{class:!0});var h=n($);D=m(h,"Clouds"),h.forEach(r),k=f(o),y=l(o,"P",{class:!0});var p=n(y);I=m(p,j),O=m(p,"%"),p.forEach(r),o.forEach(r),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(v,"class","svelte-9kdo4s"),c($,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(t,u),o(t,v),o(v,_),o(v,b),i(e,w,s),i(e,E,s),o(E,$),o($,D),o(E,k),o(E,y),o(y,I),o(y,O)},p(e,t){2&t&&V!==(V=e[1].now.temp+"")&&g(_,V),2&t&&j!==(j=e[1].now.clouds+"")&&g(I,j)},d(e){e&&r(t),e&&r(w),e&&r(E)}}}function W(e){let t,a,d,u,p,m,g,v,$,D,k,y,I=!e[0].updating&&e[0].available&&!e[1].updating&&!e[2].updating&&F(e),O=!e[1].updating&&!e[2].updating&&K(e);const V=[G,Z],j=[];function x(e,t){return e[2].updating||e[1].updating?0:1}v=x(e),$=j[v]=V[v](e);let T=!e[2].updating&&!e[1].updating&&Q(e);return{c(){t=s("div"),a=s("div"),d=s("div"),I&&I.c(),u=h(),p=s("div"),O&&O.c(),m=h(),g=s("div"),$.c(),D=h(),k=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);d=l(c,"DIV",{class:!0});var i=n(d);I&&I.l(i),i.forEach(r),u=f(c),p=l(c,"DIV",{class:!0});var o=n(p);O&&O.l(o),o.forEach(r),m=f(c),g=l(c,"DIV",{class:!0});var h=n(g);$.l(h),h.forEach(r),D=f(c),k=l(c,"DIV",{class:!0});var v=n(k);T&&T.l(v),v.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","weatherCurrent-data-location svelte-9kdo4s"),c(p,"class","weatherCurrent-data-date"),c(g,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(k,"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,d),I&&I.m(d,null),o(a,u),o(a,p),O&&O.m(p,null),o(a,m),o(a,g),j[v].m(g,null),o(a,D),o(a,k),T&&T.m(k,null),y=!0},p(e,[t]){e[0].updating||!e[0].available||e[1].updating||e[2].updating?I&&(I.d(1),I=null):I?I.p(e,t):(I=F(e),I.c(),I.m(d,null)),e[1].updating||e[2].updating?O&&(O.d(1),O=null):O?O.p(e,t):(O=K(e),O.c(),O.m(p,null));let a=v;v=x(e),v===a?j[v].p(e,t):(_(),b(j[a],1,1,(()=>{j[a]=null})),w(),$=j[v],$?$.p(e,t):($=j[v]=V[v](e),$.c()),E($,1),$.m(g,null)),e[2].updating||e[1].updating?T&&(T.d(1),T=null):T?T.p(e,t):(T=Q(e),T.c(),T.m(k,null))},i(e){y||(E($),y=!0)},o(e){b($),y=!1},d(e){e&&r(t),I&&I.d(),O&&O.d(),j[v].d(),T&&T.d()}}}function X(e,t,a){let s,l,n;return $(e,A,(e=>a(0,s=e))),$(e,B,(e=>a(1,l=e))),$(e,J,(e=>a(2,n=e))),[s,l,n]}!async function(){if("undefined"==typeof window)return;let e;z(A,!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),A.update((e=>Object.assign(Object.assign({},e),{available:!1,city:null,longitude:null,latitude:null}))),void z(A,!1)}let t=await fetch(`https://geocode.xyz/${e.latitude},${e.longitude}?geoit=json`),a=await t.json();A.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:a.city}),e))),z(A,!1)}(),A.subscribe((async function(e=null){if("undefined"==typeof window)return;if(null===e)return;if(e.updating)return;if(!e.available)return B.update((e=>Object.assign(Object.assign({},e),{available:!1}))),void z(B,!1);z(B,!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){}B.update((e=>Object.assign(Object.assign({},e),{yr_data_raw:a,now:s,available:!0}))),z(B,!1)})),async function(){if("undefined"==typeof window)return;z(J,!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(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],e=e.map((e=>Object.assign(Object.assign({},e.groups),{time:new Date(e.groups.time+" UTC")}))),t.usnoaa_data_raw.outlook_27_day=e,a=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=await a.json(),t.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let s=new Date,l=new Date(0,0,0),n=1e3,r=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((e,a)=>{e[1]>r&&(r=e[1]),e[1]<n&&(n=e[1]);let c=new Date(e[0]+" UTC");Math.abs(c.getTime()-s.getTime())<Math.abs(l.getTime()-s.getTime())&&(l=c,t.now.kp=e[1]),t.usnoaa_data_raw.noaa_planetary_k_index_forecast[a]={time:c,kp:e[1],observed:e[2]}})),t.now.kp_min=n.toString(),t.now.kp_max=r.toString(),console.log(t),t}();J.update((t=>Object.assign(Object.assign({},t),e))),z(J,!1)}();class Y extends e{constructor(e){super(),t(this,e,X,W,a,{})}}function ee(e){let t,a;const o=e[1].default,d=O(o,e,e[0],null);return{c(){t=s("div"),d&&d.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);d&&d.l(a),a.forEach(r),this.h()},h(){c(t,"class","chip svelte-6dfxfp")},m(e,s){i(e,t,s),d&&d.m(t,null),a=!0},p(e,[t]){d&&d.p&&(!a||1&t)&&V(d,o,e,e[0],a?x(o,e[0],t,null):j(e[0]),null)},i(e){a||(E(d,e),a=!0)},o(e){b(d,e),a=!1},d(e){e&&r(t),d&&d.d(e)}}}function te(e,t,a){let{$$slots:s={},$$scope:l}=t;return e.$$set=e=>{"$$scope"in e&&a(0,l=e.$$scope)},[l,s]}class ae extends e{constructor(e){super(),t(this,e,te,ee,a,{})}}function se(e){let t,a,u,g,v,_,b,w,E,$,D,k,y=e[5]&&function(e){let t,a,u,g,v,_,b,w,E,$,D,k,y=Math.round(e[3])+"",I=Math.round(e[4])+"";return{c(){t=s("div"),a=s("p"),u=s("i"),g=h(),v=p(y),_=p("°C"),b=h(),w=s("p"),E=s("i"),$=h(),D=p(I),k=p("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=l(c,"I",{class:!0}),n(u).forEach(r),g=f(c),v=m(c,y),_=m(c,"°C"),c.forEach(r),b=f(s),w=l(s,"P",{class:!0});var i=n(w);E=l(i,"I",{class:!0}),n(E).forEach(r),$=f(i),D=m(i,I),k=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","fas fa-thermometer-half svelte-ghmp86"),c(a,"class","svelte-ghmp86"),c(E,"class","fas fa-cloud svelte-ghmp86"),c(w,"class","svelte-ghmp86"),c(t,"class","svelte-ghmp86")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(a,g),o(a,v),o(a,_),o(t,b),o(t,w),o(w,E),o(w,$),o(w,D),o(w,k)},p:d,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),u=s("h3"),g=p(e[2]),v=h(),_=s("p"),b=p(e[1]),w=h(),E=s("div"),$=s("h2"),D=p(e[0]),k=h(),y&&y.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);g=m(o,e[2]),o.forEach(r),v=f(i),_=l(i,"P",{class:!0});var d=n(_);b=m(d,e[1]),d.forEach(r),i.forEach(r),w=f(c),E=l(c,"DIV",{class:!0});var h=n(E);$=l(h,"H2",{class:!0});var p=n($);D=m(p,e[0]),p.forEach(r),k=f(h),y&&y.l(h),h.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-ghmp86"),c(_,"class","svelte-ghmp86"),c(a,"class","svelte-ghmp86"),c($,"class","svelte-ghmp86"),c(E,"class","data svelte-ghmp86"),c(t,"class","prediction-details svelte-ghmp86")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,g),o(a,v),o(a,_),o(_,b),o(t,w),o(t,E),o(E,$),o($,D),o(E,k),y&&y.m(E,null)},p(e,[t]){e[5]&&y.p(e,t)},i:d,o:d,d(e){e&&r(t),y&&y.d()}}}function le(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function ne(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=le(s.time.getHours().toString())+":"+le(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(6,s=e.prediction)},[l,n,r,c,i,o,s]}class re extends e{constructor(e){super(),t(this,e,ne,se,a,{prediction:6})}}function ce(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function ie(e){let t,a;return t=new re({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(E(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function oe(e){let t,a,o=e[0],d=[];for(let t=0;t<o.length;t+=1)d[t]=ie(ce(e,o,t));const u=e=>b(d[e],1,1,(()=>{d[e]=null}));return{c(){t=s("div");for(let e=0;e<d.length;e+=1)d[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<d.length;e+=1)d[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-dqc8qx")},m(e,s){i(e,t,s);for(let e=0;e<d.length;e+=1)d[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=ce(e,o,s);d[s]?(d[s].p(l,a),E(d[s],1)):(d[s]=ie(l),d[s].c(),E(d[s],1),d[s].m(t,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);w()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)E(d[e]);a=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)b(d[e]);a=!1},d(e){e&&r(t),T(d,e)}}}function de(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((e=>e.model_prediction_time>=new Date));a(0,n=e.map((e=>({time:e.model_prediction_time,kp:Math.round(e.k),temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>18e6)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return $(e,B,(e=>a(1,s=e))),$(e,J,(e=>a(2,l=e))),J.subscribe(r),B.subscribe(r),[n]}class ue extends e{constructor(e){super(),t(this,e,de,oe,a,{})}}function he(e){let t,a,o;return a=new ae({props:{$$slots:{default:[pe]},$$scope:{ctx:e}}}),{c(){t=s("div"),D(a.$$.fragment),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);k(a.$$.fragment,s),s.forEach(r),this.h()},h(){c(t,"class","svelte-ghmp86")},m(e,s){i(e,t,s),y(a,t,null),o=!0},p(e,t){const s={};257&t&&(s.$$scope={dirty:t,ctx:e}),a.$set(s)},i(e){o||(E(a.$$.fragment,e),o=!0)},o(e){b(a.$$.fragment,e),o=!1},d(e){e&&r(t),I(a)}}}function pe(e){let t,a=e[0].observed+"";return{c(){t=p(a)},l(e){t=m(e,a)},m(e,a){i(e,t,a)},p(e,s){1&s&&a!==(a=e[0].observed+"")&&g(t,a)},d(e){e&&r(t)}}}function fe(e){let t,a,u,g,v,$,D,k,y,I,O,V,j,x,T="predicted"!=e[0].observed&&he(e),M=e[6]&&function(e){let t,a,u,g,v,_,b,w,E,$,D,k,y=Math.round(e[4])+"",I=Math.round(e[5])+"";return{c(){t=s("div"),a=s("p"),u=s("i"),g=h(),v=p(y),_=p("°C"),b=h(),w=s("p"),E=s("i"),$=h(),D=p(I),k=p("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=l(c,"I",{class:!0}),n(u).forEach(r),g=f(c),v=m(c,y),_=m(c,"°C"),c.forEach(r),b=f(s),w=l(s,"P",{class:!0});var i=n(w);E=l(i,"I",{class:!0}),n(E).forEach(r),$=f(i),D=m(i,I),k=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","fas fa-thermometer-half svelte-ghmp86"),c(a,"class","svelte-ghmp86"),c(E,"class","fas fa-cloud svelte-ghmp86"),c(w,"class","svelte-ghmp86"),c(t,"class","svelte-ghmp86")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(a,g),o(a,v),o(a,_),o(t,b),o(t,w),o(w,E),o(w,$),o(w,D),o(w,k)},p:d,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),u=s("h3"),g=p(e[3]),v=h(),$=s("p"),D=p(e[2]),k=h(),T&&T.c(),y=h(),I=s("div"),O=s("h2"),V=p(e[1]),j=h(),M&&M.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);g=m(o,e[3]),o.forEach(r),v=f(i),$=l(i,"P",{class:!0});var d=n($);D=m(d,e[2]),d.forEach(r),i.forEach(r),k=f(c),T&&T.l(c),y=f(c),I=l(c,"DIV",{class:!0});var h=n(I);O=l(h,"H2",{class:!0});var p=n(O);V=m(p,e[1]),p.forEach(r),j=f(h),M&&M.l(h),h.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-ghmp86"),c($,"class","svelte-ghmp86"),c(a,"class","svelte-ghmp86"),c(O,"class","svelte-ghmp86"),c(I,"class","data svelte-ghmp86"),c(t,"class","prediction-details svelte-ghmp86")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,g),o(a,v),o(a,$),o($,D),o(t,k),T&&T.m(t,null),o(t,y),o(t,I),o(I,O),o(O,V),o(I,j),M&&M.m(I,null),x=!0},p(e,[a]){"predicted"!=e[0].observed?T?(T.p(e,a),1&a&&E(T,1)):(T=he(e),T.c(),E(T,1),T.m(t,y)):T&&(_(),b(T,1,1,(()=>{T=null})),w()),e[6]&&M.p(e,a)},i(e){x||(E(T),x=!0)},o(e){b(T),x=!1},d(e){e&&r(t),T&&T.d(),M&&M.d()}}}function me(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function ge(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=me(s.time.getHours().toString())+":"+me(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(0,s=e.prediction)},[s,l,n,r,c,i,o]}class ve extends e{constructor(e){super(),t(this,e,ge,fe,a,{prediction:0})}}function _e(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function be(e){let t,a;return t=new ve({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(E(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function we(e){let t,a,o=e[0],d=[];for(let t=0;t<o.length;t+=1)d[t]=be(_e(e,o,t));const u=e=>b(d[e],1,1,(()=>{d[e]=null}));return{c(){t=s("div");for(let e=0;e<d.length;e+=1)d[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<d.length;e+=1)d[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-dqc8qx")},m(e,s){i(e,t,s);for(let e=0;e<d.length;e+=1)d[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=_e(e,o,s);d[s]?(d[s].p(l,a),E(d[s],1)):(d[s]=be(l),d[s].c(),E(d[s],1),d[s].m(t,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);w()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)E(d[e]);a=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)b(d[e]);a=!1},d(e){e&&r(t),T(d,e)}}}function Ee(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((e=>"observed"!==e.observed));a(0,n=e.map((e=>({time:e.time,kp:e.kp,observed:e.observed,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())&&(c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r}),n)}))}return $(e,B,(e=>a(1,s=e))),$(e,J,(e=>a(2,l=e))),J.subscribe(r),B.subscribe(r),[n]}class $e extends e{constructor(e){super(),t(this,e,Ee,we,a,{})}}function De(e){let t,a,u,g,v,_,b,w,E,$,D,k,y=e[5]&&function(e){let t,a,u,g,v,_,b,w,E,$,D,k,y=Math.round(e[3])+"",I=Math.round(e[4])+"";return{c(){t=s("div"),a=s("p"),u=s("i"),g=h(),v=p(y),_=p("°C"),b=h(),w=s("p"),E=s("i"),$=h(),D=p(I),k=p("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=l(c,"I",{class:!0}),n(u).forEach(r),g=f(c),v=m(c,y),_=m(c,"°C"),c.forEach(r),b=f(s),w=l(s,"P",{class:!0});var i=n(w);E=l(i,"I",{class:!0}),n(E).forEach(r),$=f(i),D=m(i,I),k=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","fas fa-thermometer-half svelte-ghmp86"),c(a,"class","svelte-ghmp86"),c(E,"class","fas fa-cloud svelte-ghmp86"),c(w,"class","svelte-ghmp86"),c(t,"class","svelte-ghmp86")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(a,g),o(a,v),o(a,_),o(t,b),o(t,w),o(w,E),o(w,$),o(w,D),o(w,k)},p:d,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),u=s("h3"),g=p(e[2]),v=h(),_=s("p"),b=p(e[1]),w=h(),E=s("div"),$=s("h2"),D=p(e[0]),k=h(),y&&y.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);g=m(o,e[2]),o.forEach(r),v=f(i),_=l(i,"P",{class:!0});var d=n(_);b=m(d,e[1]),d.forEach(r),i.forEach(r),w=f(c),E=l(c,"DIV",{class:!0});var h=n(E);$=l(h,"H2",{class:!0});var p=n($);D=m(p,e[0]),p.forEach(r),k=f(h),y&&y.l(h),h.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-ghmp86"),c(_,"class","svelte-ghmp86"),c(a,"class","svelte-ghmp86"),c($,"class","svelte-ghmp86"),c(E,"class","data svelte-ghmp86"),c(t,"class","prediction-details svelte-ghmp86")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,g),o(a,v),o(a,_),o(_,b),o(t,w),o(t,E),o(E,$),o($,D),o(E,k),y&&y.m(E,null)},p(e,[t]){e[5]&&y.p(e,t)},i:d,o:d,d(e){e&&r(t),y&&y.d()}}}function ke(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function ye(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=ke(s.time.getHours().toString())+":"+ke(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(6,s=e.prediction)},[l,n,r,c,i,o,s]}class Ie extends e{constructor(e){super(),t(this,e,ye,De,a,{prediction:6})}}function Oe(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function Ve(e){let t,a;return t=new Ie({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(E(t.$$.fragment,e),a=!0)},o(e){b(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function je(e){let t,a,o=e[0],d=[];for(let t=0;t<o.length;t+=1)d[t]=Ve(Oe(e,o,t));const u=e=>b(d[e],1,1,(()=>{d[e]=null}));return{c(){t=s("div");for(let e=0;e<d.length;e+=1)d[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<d.length;e+=1)d[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-dqc8qx")},m(e,s){i(e,t,s);for(let e=0;e<d.length;e+=1)d[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=Oe(e,o,s);d[s]?(d[s].p(l,a),E(d[s],1)):(d[s]=Ve(l),d[s].c(),E(d[s],1),d[s].m(t,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);w()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)E(d[e]);a=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)b(d[e]);a=!1},d(e){e&&r(t),T(d,e)}}}function xe(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.outlook_27_day.filter((e=>e.time>=new Date));a(0,n=e.map((e=>({time:e.time,kp:e.kindex,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>864e5)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return $(e,B,(e=>a(1,s=e))),$(e,J,(e=>a(2,l=e))),J.subscribe(r),B.subscribe(r),[n]}class Te extends e{constructor(e){super(),t(this,e,xe,je,a,{})}}function Me(e){let t,a,u,g,v;return{c(){t=s("div"),a=s("i"),u=h(),g=s("p"),v=p("No prediction data"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"I",{class:!0}),n(a).forEach(r),u=f(s),g=l(s,"P",{});var c=n(g);v=m(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(a,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-6c4yca")},m(e,s){i(e,t,s),o(t,a),o(t,u),o(t,g),o(g,v)},p:d,i:d,o:d,d(e){e&&r(t)}}}function Pe(e){let t,a,d,u,g,$,O,V,j,x,T,C,N,q,H,A,B,J,z;var F=e[0];return F&&(H=new F({})),{c(){t=s("div"),a=s("h2"),d=p("Forecast"),u=h(),g=s("div"),$=s("div"),O=p("hour"),V=h(),j=s("div"),x=p("3 day"),T=h(),C=s("div"),N=p("Long time"),q=h(),H&&D(H.$$.fragment),A=v(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"H2",{class:!0});var c=n(a);d=m(c,"Forecast"),c.forEach(r),u=f(s),g=l(s,"DIV",{class:!0});var i=n(g);$=l(i,"DIV",{class:!0});var o=n($);O=m(o,"hour"),o.forEach(r),V=f(i),j=l(i,"DIV",{class:!0});var h=n(j);x=m(h,"3 day"),h.forEach(r),T=f(i),C=l(i,"DIV",{class:!0});var p=n(C);N=m(p,"Long time"),p.forEach(r),i.forEach(r),s.forEach(r),q=f(e),H&&k(H.$$.fragment,e),A=v(),this.h()},h(){c(a,"class","svelte-6c4yca"),c($,"class","svelte-6c4yca"),M($,"selected",e[0]==ue),c(j,"class","svelte-6c4yca"),M(j,"selected",e[0]==$e),c(C,"class","svelte-6c4yca"),M(C,"selected",e[0]==Te),c(g,"class","version-picker svelte-6c4yca"),c(t,"class","header svelte-6c4yca")},m(s,l){i(s,t,l),o(t,a),o(a,d),o(t,u),o(t,g),o(g,$),o($,O),o(g,V),o(g,j),o(j,x),o(g,T),o(g,C),o(C,N),i(s,q,l),H&&y(H,s,l),i(s,A,l),B=!0,J||(z=[P($,"click",e[3]),P(j,"click",e[4]),P(C,"click",e[5])],J=!0)},p(e,t){if(1&t&&M($,"selected",e[0]==ue),1&t&&M(j,"selected",e[0]==$e),1&t&&M(C,"selected",e[0]==Te),F!==(F=e[0])){if(H){_();const e=H;b(e.$$.fragment,1,0,(()=>{I(e,1)})),w()}F?(H=new F({}),D(H.$$.fragment),E(H.$$.fragment,1),y(H,A.parentNode,A)):H=null}},i(e){B||(H&&E(H.$$.fragment,e),B=!0)},o(e){H&&b(H.$$.fragment,e),B=!1},d(e){e&&r(t),e&&r(q),e&&r(A),H&&I(H,e),J=!1,S(z)}}}function Se(e){let t,a,o,d;const u=[Pe,Me],h=[];function p(e,t){return e[1].updating||e[2].updating?1:0}return a=p(e),o=h[a]=u[a](e),{c(){t=s("div"),o.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);o.l(a),a.forEach(r),this.h()},h(){c(t,"class","drawer svelte-6c4yca")},m(e,s){i(e,t,s),h[a].m(t,null),d=!0},p(e,[s]){let l=a;a=p(e),a===l?h[a].p(e,s):(_(),b(h[l],1,1,(()=>{h[l]=null})),w(),o=h[a],o?o.p(e,s):(o=h[a]=u[a](e),o.c()),E(o,1),o.m(t,null))},i(e){d||(E(o),d=!0)},o(e){b(o),d=!1},d(e){e&&r(t),h[a].d()}}}function Ce(e,t,a){let s,l;$(e,B,(e=>a(1,s=e))),$(e,J,(e=>a(2,l=e)));let n=$e;return[n,s,l,()=>a(0,n=ue),()=>a(0,n=$e),()=>a(0,n=Te)]}class Ne extends e{constructor(e){super(),t(this,e,Ce,Se,a,{})}}function qe(e){let t,a,u,p,m,g;return u=new Y({}),m=new Ne({}),{c(){t=h(),a=s("div"),D(u.$$.fragment),p=h(),D(m.$$.fragment),this.h()},l(e){C('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=f(e),a=l(e,"DIV",{class:!0});var s=n(a);k(u.$$.fragment,s),p=f(s),k(m.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(a,"class","homescreen svelte-pf4p6y")},m(e,s){i(e,t,s),i(e,a,s),y(u,a,null),o(a,p),y(m,a,null),g=!0},p:d,i(e){g||(E(u.$$.fragment,e),E(m.$$.fragment,e),g=!0)},o(e){b(u.$$.fragment,e),b(m.$$.fragment,e),g=!1},d(e){e&&r(t),e&&r(a),I(u),I(m)}}}class He extends e{constructor(e){super(),t(this,e,null,qe,a,{})}}export{He as default}; diff --git a/client/index.f58bd2e0.js b/client/index.f58bd2e0.js deleted file mode 100644 index ac34197..0000000 --- a/client/index.f58bd2e0.js +++ /dev/null @@ -1 +0,0 @@ -import{S as a,i as e,s as t,e as s,c as l,a as n,d as r,b as c,f as i,g as o,n as d,w as u,h,t as p,j as f,k as m,l as v,m as g,o as _,p as w,q as b,r as $,u as E,v as k,x as D,y,z as I,A as j,B as V,C as O,D as x,E as P,F as T,G as M,H as S,I as C}from"./client.b9472371.js";function q(a){let e,t,u,h,p,f,m,v,g;return{c(){e=s("div"),t=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(a){e=l(a,"DIV",{class:!0});var s=n(e);t=l(s,"DIV",{class:!0}),n(t).forEach(r),u=l(s,"DIV",{class:!0}),n(u).forEach(r),h=l(s,"DIV",{class:!0}),n(h).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),f=l(s,"DIV",{class:!0}),n(f).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(t,"class","svelte-7k6qu0"),c(u,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(e,"class","lds-roller svelte-7k6qu0")},m(a,s){i(a,e,s),o(e,t),o(e,u),o(e,h),o(e,p),o(e,f),o(e,m),o(e,v),o(e,g)},p:d,i:d,o:d,d(a){a&&r(e)}}}class N extends a{constructor(a){super(),e(this,a,null,q,t,{})}}const H={updated:!1,updating:!0},B=u(Object.assign(Object.assign({},H),{available:!1,longitude:null,latitude:null,city:null})),A=u(Object.assign(Object.assign({},H),{available:!1})),z=u(Object.assign({},H));function J(a,e=!1){let t=e?{}:{updated:new Date};a.update((a=>Object.assign(Object.assign(Object.assign({},a),t),{updating:e})))}function K(a){let e,t,d,u,g=a[0].city+"";return{c(){e=s("i"),t=h(),d=s("h1"),u=p(g),this.h()},l(a){e=l(a,"I",{class:!0}),n(e).forEach(r),t=f(a),d=l(a,"H1",{class:!0});var s=n(d);u=m(s,g),s.forEach(r),this.h()},h(){c(e,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),c(d,"class","svelte-9kdo4s")},m(a,s){i(a,e,s),i(a,t,s),i(a,d,s),o(d,u)},p(a,e){1&e&&g!==(g=a[0].city+"")&&v(u,g)},d(a){a&&r(e),a&&r(t),a&&r(d)}}}function F(a){let e,t;function s(a,t){return 6&t&&(e=null),null==e&&(e=!!(Math.abs(a[1].updated-a[2].updated)>6e5)),e?U:L}let l=s(a,-1),n=l(a);return{c(){n.c(),t=g()},l(a){n.l(a),t=g()},m(a,e){n.m(a,e),i(a,t,e)},p(a,e){l===(l=s(a,e))&&n?n.p(a,e):(n.d(1),n=l(a),n&&(n.c(),n.m(t.parentNode,t)))},d(a){n.d(a),a&&r(t)}}}function L(a){let e,t,c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){e=s("p"),t=p(c)},l(a){e=l(a,"P",{});var s=n(e);t=m(s,c),s.forEach(r)},m(a,s){i(a,e,s),o(e,t)},p(a,e){2&e&&c!==(c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&v(t,c)},d(a){a&&r(e)}}}function U(a){let e,t;return{c(){e=s("p"),t=p("There is more than 10 minutes difference between data updates")},l(a){e=l(a,"P",{});var s=n(e);t=m(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(a,s){i(a,e,s),o(e,t)},p:d,d(a){a&&r(e)}}}function Z(a){let e,t,u,g,_,w,b,$,E,k,D,y,I=a[2].now.kp+"",j=a[2].now.kp_max+"",V=a[2].now.kp_min+"";return{c(){e=s("h2"),t=p("KP "),u=p(I),g=h(),_=s("p"),w=s("span"),b=p("↑ KP "),$=p(j),E=h(),k=s("span"),D=p("↓ KP "),y=p(V),this.h()},l(a){e=l(a,"H2",{class:!0});var s=n(e);t=m(s,"KP "),u=m(s,I),s.forEach(r),g=f(a),_=l(a,"P",{});var c=n(_);w=l(c,"SPAN",{classname:!0});var i=n(w);b=m(i,"↑ KP "),$=m(i,j),i.forEach(r),E=f(c),k=l(c,"SPAN",{classname:!0});var o=n(k);D=m(o,"↓ KP "),y=m(o,V),o.forEach(r),c.forEach(r),this.h()},h(){c(e,"class","svelte-9kdo4s"),c(w,"classname","pr-2"),c(k,"classname","pl-2")},m(a,s){i(a,e,s),o(e,t),o(e,u),i(a,g,s),i(a,_,s),o(_,w),o(w,b),o(w,$),o(_,E),o(_,k),o(k,D),o(k,y)},p(a,e){4&e&&I!==(I=a[2].now.kp+"")&&v(u,I),4&e&&j!==(j=a[2].now.kp_max+"")&&v($,j),4&e&&V!==(V=a[2].now.kp_min+"")&&v(y,V)},i:d,o:d,d(a){a&&r(e),a&&r(g),a&&r(_)}}}function G(a){let e,t;return e=new N({}),{c(){k(e.$$.fragment)},l(a){D(e.$$.fragment,a)},m(a,s){y(e,a,s),t=!0},p:d,i(a){t||($(e.$$.fragment,a),t=!0)},o(a){w(e.$$.fragment,a),t=!1},d(a){I(e,a)}}}function Q(a){let e,t,d,u,_,w,b,$,E,k,D,y,I,j,V,O=a[2].now.bz+"",x=a[2].now.bt+"",P=a[1].available&&R(a);return{c(){e=s("div"),t=s("p"),d=p("BZ"),u=h(),_=s("p"),w=p(O),b=h(),$=s("div"),E=s("p"),k=p("BT"),D=h(),y=s("p"),I=p(x),j=h(),P&&P.c(),V=g(),this.h()},l(a){e=l(a,"DIV",{});var s=n(e);t=l(s,"P",{class:!0});var c=n(t);d=m(c,"BZ"),c.forEach(r),u=f(s),_=l(s,"P",{class:!0});var i=n(_);w=m(i,O),i.forEach(r),s.forEach(r),b=f(a),$=l(a,"DIV",{});var o=n($);E=l(o,"P",{class:!0});var h=n(E);k=m(h,"BT"),h.forEach(r),D=f(o),y=l(o,"P",{class:!0});var p=n(y);I=m(p,x),p.forEach(r),o.forEach(r),j=f(a),P&&P.l(a),V=g(),this.h()},h(){c(t,"class","svelte-9kdo4s"),c(_,"class","svelte-9kdo4s"),c(E,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(a,s){i(a,e,s),o(e,t),o(t,d),o(e,u),o(e,_),o(_,w),i(a,b,s),i(a,$,s),o($,E),o(E,k),o($,D),o($,y),o(y,I),i(a,j,s),P&&P.m(a,s),i(a,V,s)},p(a,e){4&e&&O!==(O=a[2].now.bz+"")&&v(w,O),4&e&&x!==(x=a[2].now.bt+"")&&v(I,x),a[1].available?P?P.p(a,e):(P=R(a),P.c(),P.m(V.parentNode,V)):P&&(P.d(1),P=null)},d(a){a&&r(e),a&&r(b),a&&r($),a&&r(j),P&&P.d(a),a&&r(V)}}}function R(a){let e,t,d,u,g,_,w,b,$,E,k,D,y,I,j,V=a[1].now.temp+"",O=a[1].now.clouds+"";return{c(){e=s("div"),t=s("p"),d=p("Temp"),u=h(),g=s("p"),_=p(V),w=p("°C"),b=h(),$=s("div"),E=s("p"),k=p("Clouds"),D=h(),y=s("p"),I=p(O),j=p("%"),this.h()},l(a){e=l(a,"DIV",{});var s=n(e);t=l(s,"P",{class:!0});var c=n(t);d=m(c,"Temp"),c.forEach(r),u=f(s),g=l(s,"P",{class:!0});var i=n(g);_=m(i,V),w=m(i,"°C"),i.forEach(r),s.forEach(r),b=f(a),$=l(a,"DIV",{});var o=n($);E=l(o,"P",{class:!0});var h=n(E);k=m(h,"Clouds"),h.forEach(r),D=f(o),y=l(o,"P",{class:!0});var p=n(y);I=m(p,O),j=m(p,"%"),p.forEach(r),o.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s"),c(g,"class","svelte-9kdo4s"),c(E,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(a,s){i(a,e,s),o(e,t),o(t,d),o(e,u),o(e,g),o(g,_),o(g,w),i(a,b,s),i(a,$,s),o($,E),o(E,k),o($,D),o($,y),o(y,I),o(y,j)},p(a,e){2&e&&V!==(V=a[1].now.temp+"")&&v(_,V),2&e&&O!==(O=a[1].now.clouds+"")&&v(I,O)},d(a){a&&r(e),a&&r(b),a&&r($)}}}function W(a){let e,t,d,u,p,m,v,g,E,k,D,y,I=!a[0].updating&&a[0].available&&!a[1].updating&&!a[2].updating&&K(a),j=!a[1].updating&&!a[2].updating&&F(a);const V=[G,Z],O=[];function x(a,e){return a[2].updating||a[1].updating?0:1}g=x(a),E=O[g]=V[g](a);let P=!a[2].updating&&!a[1].updating&&Q(a);return{c(){e=s("div"),t=s("div"),d=s("div"),I&&I.c(),u=h(),p=s("div"),j&&j.c(),m=h(),v=s("div"),E.c(),k=h(),D=s("div"),P&&P.c(),this.h()},l(a){e=l(a,"DIV",{class:!0});var s=n(e);t=l(s,"DIV",{class:!0});var c=n(t);d=l(c,"DIV",{class:!0});var i=n(d);I&&I.l(i),i.forEach(r),u=f(c),p=l(c,"DIV",{class:!0});var o=n(p);j&&j.l(o),o.forEach(r),m=f(c),v=l(c,"DIV",{class:!0});var h=n(v);E.l(h),h.forEach(r),k=f(c),D=l(c,"DIV",{class:!0});var g=n(D);P&&P.l(g),g.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","weatherCurrent-data-location svelte-9kdo4s"),c(p,"class","weatherCurrent-data-date"),c(v,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(D,"class","current-details svelte-9kdo4s"),c(t,"class","weatherCurrent-data svelte-9kdo4s"),c(e,"class","weatherCurrent-wrapper svelte-9kdo4s")},m(a,s){i(a,e,s),o(e,t),o(t,d),I&&I.m(d,null),o(t,u),o(t,p),j&&j.m(p,null),o(t,m),o(t,v),O[g].m(v,null),o(t,k),o(t,D),P&&P.m(D,null),y=!0},p(a,[e]){a[0].updating||!a[0].available||a[1].updating||a[2].updating?I&&(I.d(1),I=null):I?I.p(a,e):(I=K(a),I.c(),I.m(d,null)),a[1].updating||a[2].updating?j&&(j.d(1),j=null):j?j.p(a,e):(j=F(a),j.c(),j.m(p,null));let t=g;g=x(a),g===t?O[g].p(a,e):(_(),w(O[t],1,1,(()=>{O[t]=null})),b(),E=O[g],E?E.p(a,e):(E=O[g]=V[g](a),E.c()),$(E,1),E.m(v,null)),a[2].updating||a[1].updating?P&&(P.d(1),P=null):P?P.p(a,e):(P=Q(a),P.c(),P.m(D,null))},i(a){y||($(E),y=!0)},o(a){w(E),y=!1},d(a){a&&r(e),I&&I.d(),j&&j.d(),O[g].d(),P&&P.d()}}}function X(a,e,t){let s,l,n;return E(a,B,(a=>t(0,s=a))),E(a,A,(a=>t(1,l=a))),E(a,z,(a=>t(2,n=a))),[s,l,n]}!async function(){if("undefined"==typeof window)return;let a;J(B,!0);try{a=await async function(){return new Promise(((a,e)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((e=>{a({longitude:e.coords.longitude,latitude:e.coords.latitude})}),(a=>{e(a)})):e(Error())}))}()}catch(a){return console.log(a),B.update((a=>Object.assign(Object.assign({},a),{available:!1,city:null,longitude:null,latitude:null}))),void J(B,!1)}let e=await fetch(`https://geocode.xyz/${a.latitude},${a.longitude}?geoit=json`),t=await e.json();B.update((e=>Object.assign(Object.assign(Object.assign({},e),{available:!0,city:t.city}),a))),J(B,!1)}(),B.subscribe((async function(a=null){if("undefined"==typeof window)return;if(null===a)return;if(a.updating)return;if(!a.available)return A.update((a=>Object.assign(Object.assign({},a),{available:!1}))),void J(A,!1);J(A,!0);let e=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a.latitude}&lon=${a.longitude}`),t=await e.json(),s={clouds:null,temp:null};try{s.clouds=t.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=t.properties.timeseries[0].data.instant.details.air_temperature,t.properties.timeseries=t.properties.timeseries.map((a=>Object.assign(Object.assign({},a),{time:new Date(a.time)})))}catch(a){}A.update((a=>Object.assign(Object.assign({},a),{yr_data_raw:t,now:s,available:!0}))),J(A,!1)})),async function(){if("undefined"==typeof window)return;J(z,!0);let a=await async function(){let a={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}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");a.usnoaa_data_raw.solar_wind_mag_field=await e.json(),a.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(a.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),a.now.bz=a.usnoaa_data_raw.solar_wind_mag_field.Bz,a.now.bt=a.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),a.usnoaa_data_raw.geospace_pred_est_kp_1_hour=(await e.json()).map((a=>Object.assign(Object.assign({},a),{model_prediction_time:new Date(a.model_prediction_time)}))),e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),a.usnoaa_data_raw.noaa_planetary_k_index_forecast=await e.json(),a.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let t=new Date,s=new Date(0,0,0),l=1e3,n=0;return a.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((e,r)=>{e[1]>n&&(n=e[1]),e[1]<l&&(l=e[1]);let c=new Date(e[0]+" UTC");Math.abs(c.getTime()-t.getTime())<Math.abs(s.getTime()-t.getTime())&&(s=c,a.now.kp=e[1]),a.usnoaa_data_raw.noaa_planetary_k_index_forecast[r]={time:c,kp:e[1],observed:e[2]}})),a.now.kp_min=l.toString(),a.now.kp_max=n.toString(),console.log(a),a}();z.update((e=>Object.assign(Object.assign({},e),a))),J(z,!1)}();class Y extends a{constructor(a){super(),e(this,a,X,W,t,{})}}function aa(a){let e,t;const o=a[1].default,d=j(o,a,a[0],null);return{c(){e=s("div"),d&&d.c(),this.h()},l(a){e=l(a,"DIV",{class:!0});var t=n(e);d&&d.l(t),t.forEach(r),this.h()},h(){c(e,"class","chip svelte-6dfxfp")},m(a,s){i(a,e,s),d&&d.m(e,null),t=!0},p(a,[e]){d&&d.p&&(!t||1&e)&&V(d,o,a,a[0],t?x(o,a[0],e,null):O(a[0]),null)},i(a){t||($(d,a),t=!0)},o(a){w(d,a),t=!1},d(a){a&&r(e),d&&d.d(a)}}}function ea(a,e,t){let{$$slots:s={},$$scope:l}=e;return a.$$set=a=>{"$$scope"in a&&t(0,l=a.$$scope)},[l,s]}class ta extends a{constructor(a){super(),e(this,a,ea,aa,t,{})}}function sa(a){let e,t,u,v,g,_,w,b,$,E,k,D,y=a[5]&&function(a){let e,t,u,v,g,_,w,b,$,E,k,D,y=Math.round(a[3])+"",I=Math.round(a[4])+"";return{c(){e=s("div"),t=s("p"),u=s("i"),v=h(),g=p(y),_=p("°C"),w=h(),b=s("p"),$=s("i"),E=h(),k=p(I),D=p("%"),this.h()},l(a){e=l(a,"DIV",{class:!0});var s=n(e);t=l(s,"P",{class:!0});var c=n(t);u=l(c,"I",{class:!0}),n(u).forEach(r),v=f(c),g=m(c,y),_=m(c,"°C"),c.forEach(r),w=f(s),b=l(s,"P",{class:!0});var i=n(b);$=l(i,"I",{class:!0}),n($).forEach(r),E=f(i),k=m(i,I),D=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","fas fa-thermometer-half svelte-ghmp86"),c(t,"class","svelte-ghmp86"),c($,"class","fas fa-cloud svelte-ghmp86"),c(b,"class","svelte-ghmp86"),c(e,"class","svelte-ghmp86")},m(a,s){i(a,e,s),o(e,t),o(t,u),o(t,v),o(t,g),o(t,_),o(e,w),o(e,b),o(b,$),o(b,E),o(b,k),o(b,D)},p:d,d(a){a&&r(e)}}}(a);return{c(){e=s("div"),t=s("div"),u=s("h3"),v=p(a[2]),g=h(),_=s("p"),w=p(a[1]),b=h(),$=s("div"),E=s("h2"),k=p(a[0]),D=h(),y&&y.c(),this.h()},l(s){e=l(s,"DIV",{class:!0});var c=n(e);t=l(c,"DIV",{class:!0});var i=n(t);u=l(i,"H3",{class:!0});var o=n(u);v=m(o,a[2]),o.forEach(r),g=f(i),_=l(i,"P",{class:!0});var d=n(_);w=m(d,a[1]),d.forEach(r),i.forEach(r),b=f(c),$=l(c,"DIV",{class:!0});var h=n($);E=l(h,"H2",{class:!0});var p=n(E);k=m(p,a[0]),p.forEach(r),D=f(h),y&&y.l(h),h.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-ghmp86"),c(_,"class","svelte-ghmp86"),c(t,"class","svelte-ghmp86"),c(E,"class","svelte-ghmp86"),c($,"class","data svelte-ghmp86"),c(e,"class","prediction-details svelte-ghmp86")},m(a,s){i(a,e,s),o(e,t),o(t,u),o(u,v),o(t,g),o(t,_),o(_,w),o(e,b),o(e,$),o($,E),o(E,k),o($,D),y&&y.m($,null)},p(a,[e]){a[5]&&y.p(a,e)},i:d,o:d,d(a){a&&r(e),y&&y.d()}}}function la(a,e=2){let t=a;for(let s=0;s<e-a.length;s++)t="0"+t;return t}function na(a,e,t){let{prediction:s}=e;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=la(s.time.getHours().toString())+":"+la(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return a.$$set=a=>{"prediction"in a&&t(6,s=a.prediction)},[l,n,r,c,i,o,s]}class ra extends a{constructor(a){super(),e(this,a,na,sa,t,{prediction:6})}}function ca(a,e,t){const s=a.slice();return s[5]=e[t],s[7]=t,s}function ia(a){let e,t;return e=new ra({props:{prediction:a[5]}}),{c(){k(e.$$.fragment)},l(a){D(e.$$.fragment,a)},m(a,s){y(e,a,s),t=!0},p(a,t){const s={};1&t&&(s.prediction=a[5]),e.$set(s)},i(a){t||($(e.$$.fragment,a),t=!0)},o(a){w(e.$$.fragment,a),t=!1},d(a){I(e,a)}}}function oa(a){let e,t,o=a[0],d=[];for(let e=0;e<o.length;e+=1)d[e]=ia(ca(a,o,e));const u=a=>w(d[a],1,1,(()=>{d[a]=null}));return{c(){e=s("div");for(let a=0;a<d.length;a+=1)d[a].c();this.h()},l(a){e=l(a,"DIV",{class:!0});var t=n(e);for(let a=0;a<d.length;a+=1)d[a].l(t);t.forEach(r),this.h()},h(){c(e,"class","prediction-table svelte-dqc8qx")},m(a,s){i(a,e,s);for(let a=0;a<d.length;a+=1)d[a].m(e,null);t=!0},p(a,[t]){if(1&t){let s;for(o=a[0],s=0;s<o.length;s+=1){const l=ca(a,o,s);d[s]?(d[s].p(l,t),$(d[s],1)):(d[s]=ia(l),d[s].c(),$(d[s],1),d[s].m(e,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);b()}},i(a){if(!t){for(let a=0;a<o.length;a+=1)$(d[a]);t=!0}},o(a){d=d.filter(Boolean);for(let a=0;a<d.length;a+=1)w(d[a]);t=!1},d(a){a&&r(e),P(d,a)}}}function da(a,e,t){let s,l,n;async function r(){if(l.updating||s.updating)return void t(0,n=null);let a=l.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((a=>a.model_prediction_time>=new Date));t(0,n=a.map((a=>({time:a.model_prediction_time,kp:Math.round(a.k),temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((a,e)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((e,t)=>{let s=new Date(e.time);Math.abs(s.getTime()-a.time.getTime())<Math.abs(c.getTime()-a.time.getTime())&&(c=s,l=e.data.instant.details.air_temperature,r=e.data.instant.details.cloud_area_fraction)})),t(0,n[e]=Object.assign(Object.assign({},n[e]),{temp:l,clouds:r}),n)}))}return E(a,A,(a=>t(1,s=a))),E(a,z,(a=>t(2,l=a))),z.subscribe(r),A.subscribe(r),[n]}class ua extends a{constructor(a){super(),e(this,a,da,oa,t,{})}}function ha(a){let e,t,o;return t=new ta({props:{$$slots:{default:[pa]},$$scope:{ctx:a}}}),{c(){e=s("div"),k(t.$$.fragment),this.h()},l(a){e=l(a,"DIV",{class:!0});var s=n(e);D(t.$$.fragment,s),s.forEach(r),this.h()},h(){c(e,"class","svelte-ghmp86")},m(a,s){i(a,e,s),y(t,e,null),o=!0},p(a,e){const s={};257&e&&(s.$$scope={dirty:e,ctx:a}),t.$set(s)},i(a){o||($(t.$$.fragment,a),o=!0)},o(a){w(t.$$.fragment,a),o=!1},d(a){a&&r(e),I(t)}}}function pa(a){let e,t=a[0].observed+"";return{c(){e=p(t)},l(a){e=m(a,t)},m(a,t){i(a,e,t)},p(a,s){1&s&&t!==(t=a[0].observed+"")&&v(e,t)},d(a){a&&r(e)}}}function fa(a){let e,t,u,v,g,E,k,D,y,I,j,V,O,x,P="predicted"!=a[0].observed&&ha(a),T=a[6]&&function(a){let e,t,u,v,g,_,w,b,$,E,k,D,y=Math.round(a[4])+"",I=Math.round(a[5])+"";return{c(){e=s("div"),t=s("p"),u=s("i"),v=h(),g=p(y),_=p("°C"),w=h(),b=s("p"),$=s("i"),E=h(),k=p(I),D=p("%"),this.h()},l(a){e=l(a,"DIV",{class:!0});var s=n(e);t=l(s,"P",{class:!0});var c=n(t);u=l(c,"I",{class:!0}),n(u).forEach(r),v=f(c),g=m(c,y),_=m(c,"°C"),c.forEach(r),w=f(s),b=l(s,"P",{class:!0});var i=n(b);$=l(i,"I",{class:!0}),n($).forEach(r),E=f(i),k=m(i,I),D=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","fas fa-thermometer-half svelte-ghmp86"),c(t,"class","svelte-ghmp86"),c($,"class","fas fa-cloud svelte-ghmp86"),c(b,"class","svelte-ghmp86"),c(e,"class","svelte-ghmp86")},m(a,s){i(a,e,s),o(e,t),o(t,u),o(t,v),o(t,g),o(t,_),o(e,w),o(e,b),o(b,$),o(b,E),o(b,k),o(b,D)},p:d,d(a){a&&r(e)}}}(a);return{c(){e=s("div"),t=s("div"),u=s("h3"),v=p(a[3]),g=h(),E=s("p"),k=p(a[2]),D=h(),P&&P.c(),y=h(),I=s("div"),j=s("h2"),V=p(a[1]),O=h(),T&&T.c(),this.h()},l(s){e=l(s,"DIV",{class:!0});var c=n(e);t=l(c,"DIV",{class:!0});var i=n(t);u=l(i,"H3",{class:!0});var o=n(u);v=m(o,a[3]),o.forEach(r),g=f(i),E=l(i,"P",{class:!0});var d=n(E);k=m(d,a[2]),d.forEach(r),i.forEach(r),D=f(c),P&&P.l(c),y=f(c),I=l(c,"DIV",{class:!0});var h=n(I);j=l(h,"H2",{class:!0});var p=n(j);V=m(p,a[1]),p.forEach(r),O=f(h),T&&T.l(h),h.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-ghmp86"),c(E,"class","svelte-ghmp86"),c(t,"class","svelte-ghmp86"),c(j,"class","svelte-ghmp86"),c(I,"class","data svelte-ghmp86"),c(e,"class","prediction-details svelte-ghmp86")},m(a,s){i(a,e,s),o(e,t),o(t,u),o(u,v),o(t,g),o(t,E),o(E,k),o(e,D),P&&P.m(e,null),o(e,y),o(e,I),o(I,j),o(j,V),o(I,O),T&&T.m(I,null),x=!0},p(a,[t]){"predicted"!=a[0].observed?P?(P.p(a,t),1&t&&$(P,1)):(P=ha(a),P.c(),$(P,1),P.m(e,y)):P&&(_(),w(P,1,1,(()=>{P=null})),b()),a[6]&&T.p(a,t)},i(a){x||($(P),x=!0)},o(a){w(P),x=!1},d(a){a&&r(e),P&&P.d(),T&&T.d()}}}function ma(a,e=2){let t=a;for(let s=0;s<e-a.length;s++)t="0"+t;return t}function va(a,e,t){let{prediction:s}=e;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=ma(s.time.getHours().toString())+":"+ma(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return a.$$set=a=>{"prediction"in a&&t(0,s=a.prediction)},[s,l,n,r,c,i,o]}class ga extends a{constructor(a){super(),e(this,a,va,fa,t,{prediction:0})}}function _a(a,e,t){const s=a.slice();return s[5]=e[t],s[7]=t,s}function wa(a){let e,t;return e=new ga({props:{prediction:a[5]}}),{c(){k(e.$$.fragment)},l(a){D(e.$$.fragment,a)},m(a,s){y(e,a,s),t=!0},p(a,t){const s={};1&t&&(s.prediction=a[5]),e.$set(s)},i(a){t||($(e.$$.fragment,a),t=!0)},o(a){w(e.$$.fragment,a),t=!1},d(a){I(e,a)}}}function ba(a){let e,t,o=a[0],d=[];for(let e=0;e<o.length;e+=1)d[e]=wa(_a(a,o,e));const u=a=>w(d[a],1,1,(()=>{d[a]=null}));return{c(){e=s("div");for(let a=0;a<d.length;a+=1)d[a].c();this.h()},l(a){e=l(a,"DIV",{class:!0});var t=n(e);for(let a=0;a<d.length;a+=1)d[a].l(t);t.forEach(r),this.h()},h(){c(e,"class","prediction-table svelte-dqc8qx")},m(a,s){i(a,e,s);for(let a=0;a<d.length;a+=1)d[a].m(e,null);t=!0},p(a,[t]){if(1&t){let s;for(o=a[0],s=0;s<o.length;s+=1){const l=_a(a,o,s);d[s]?(d[s].p(l,t),$(d[s],1)):(d[s]=wa(l),d[s].c(),$(d[s],1),d[s].m(e,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);b()}},i(a){if(!t){for(let a=0;a<o.length;a+=1)$(d[a]);t=!0}},o(a){d=d.filter(Boolean);for(let a=0;a<d.length;a+=1)w(d[a]);t=!1},d(a){a&&r(e),P(d,a)}}}function $a(a,e,t){let s,l,n;async function r(){if(l.updating||s.updating)return void t(0,n=null);let a=l.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((a=>"observed"!==a.observed));t(0,n=a.map((a=>({time:a.time,kp:a.kp,observed:a.observed,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((a,e)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((e,t)=>{let s=new Date(e.time);Math.abs(s.getTime()-a.time.getTime())<Math.abs(c.getTime()-a.time.getTime())&&(c=s,l=e.data.instant.details.air_temperature,r=e.data.instant.details.cloud_area_fraction)})),t(0,n[e]=Object.assign(Object.assign({},n[e]),{temp:l,clouds:r}),n)}))}return E(a,A,(a=>t(1,s=a))),E(a,z,(a=>t(2,l=a))),z.subscribe(r),A.subscribe(r),[n]}class Ea extends a{constructor(a){super(),e(this,a,$a,ba,t,{})}}function ka(a){let e,t,u,v,g;return{c(){e=s("div"),t=s("i"),u=h(),v=s("p"),g=p("No prediction data"),this.h()},l(a){e=l(a,"DIV",{class:!0});var s=n(e);t=l(s,"I",{class:!0}),n(t).forEach(r),u=f(s),v=l(s,"P",{});var c=n(v);g=m(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(t,"class","fas fa-7x fa-exclamation-triangle"),c(e,"class","no-data svelte-6c4yca")},m(a,s){i(a,e,s),o(e,t),o(e,u),o(e,v),o(v,g)},p:d,i:d,o:d,d(a){a&&r(e)}}}function Da(a){let e,t,d,u,v,E,j,V,O,x,P,C,q,N,H,B;var A=a[0];return A&&(C=new A({})),{c(){e=s("div"),t=s("h2"),d=p("Forecast"),u=h(),v=s("div"),E=s("div"),j=p("hour"),V=h(),O=s("div"),x=p("3 day"),P=h(),C&&k(C.$$.fragment),q=g(),this.h()},l(a){e=l(a,"DIV",{class:!0});var s=n(e);t=l(s,"H2",{class:!0});var c=n(t);d=m(c,"Forecast"),c.forEach(r),u=f(s),v=l(s,"DIV",{class:!0});var i=n(v);E=l(i,"DIV",{class:!0});var o=n(E);j=m(o,"hour"),o.forEach(r),V=f(i),O=l(i,"DIV",{class:!0});var h=n(O);x=m(h,"3 day"),h.forEach(r),i.forEach(r),s.forEach(r),P=f(a),C&&D(C.$$.fragment,a),q=g(),this.h()},h(){c(t,"class","svelte-6c4yca"),c(E,"class","svelte-6c4yca"),T(E,"selected",a[0]==ua),c(O,"class","svelte-6c4yca"),T(O,"selected",a[0]==Ea),c(v,"class","version-picker svelte-6c4yca"),c(e,"class","header svelte-6c4yca")},m(s,l){i(s,e,l),o(e,t),o(t,d),o(e,u),o(e,v),o(v,E),o(E,j),o(v,V),o(v,O),o(O,x),i(s,P,l),C&&y(C,s,l),i(s,q,l),N=!0,H||(B=[M(E,"click",a[3]),M(O,"click",a[4])],H=!0)},p(a,e){if(1&e&&T(E,"selected",a[0]==ua),1&e&&T(O,"selected",a[0]==Ea),A!==(A=a[0])){if(C){_();const a=C;w(a.$$.fragment,1,0,(()=>{I(a,1)})),b()}A?(C=new A({}),k(C.$$.fragment),$(C.$$.fragment,1),y(C,q.parentNode,q)):C=null}},i(a){N||(C&&$(C.$$.fragment,a),N=!0)},o(a){C&&w(C.$$.fragment,a),N=!1},d(a){a&&r(e),a&&r(P),a&&r(q),C&&I(C,a),H=!1,S(B)}}}function ya(a){let e,t,o,d;const u=[Da,ka],h=[];function p(a,e){return a[1].updating||a[2].updating?1:0}return t=p(a),o=h[t]=u[t](a),{c(){e=s("div"),o.c(),this.h()},l(a){e=l(a,"DIV",{class:!0});var t=n(e);o.l(t),t.forEach(r),this.h()},h(){c(e,"class","drawer svelte-6c4yca")},m(a,s){i(a,e,s),h[t].m(e,null),d=!0},p(a,[s]){let l=t;t=p(a),t===l?h[t].p(a,s):(_(),w(h[l],1,1,(()=>{h[l]=null})),b(),o=h[t],o?o.p(a,s):(o=h[t]=u[t](a),o.c()),$(o,1),o.m(e,null))},i(a){d||($(o),d=!0)},o(a){w(o),d=!1},d(a){a&&r(e),h[t].d()}}}function Ia(a,e,t){let s,l;E(a,A,(a=>t(1,s=a))),E(a,z,(a=>t(2,l=a)));let n=Ea;return[n,s,l,()=>t(0,n=ua),()=>t(0,n=Ea)]}class ja extends a{constructor(a){super(),e(this,a,Ia,ya,t,{})}}function Va(a){let e,t,u,p,m,v;return u=new Y({}),m=new ja({}),{c(){e=h(),t=s("div"),k(u.$$.fragment),p=h(),k(m.$$.fragment),this.h()},l(a){C('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),e=f(a),t=l(a,"DIV",{class:!0});var s=n(t);D(u.$$.fragment,s),p=f(s),D(m.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(t,"class","homescreen svelte-pf4p6y")},m(a,s){i(a,e,s),i(a,t,s),y(u,t,null),o(t,p),y(m,t,null),v=!0},p:d,i(a){v||($(u.$$.fragment,a),$(m.$$.fragment,a),v=!0)},o(a){w(u.$$.fragment,a),w(m.$$.fragment,a),v=!1},d(a){a&&r(e),a&&r(t),I(u),I(m)}}}class Oa extends a{constructor(a){super(),e(this,a,null,Va,t,{})}}export{Oa as default}; diff --git a/client/legacy/client.26d4afad.js b/client/legacy/client.9db787ae.js index 6b1781e..7edbefb 100644 --- a/client/legacy/client.26d4afad.js +++ b/client/legacy/client.9db787ae.js @@ -1,4 +1,4 @@ -function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o,i,a,u=(o=function(e){var n=function(e){var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var _={};f(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==r&&o.call(w,a)&&(_=w);var $=b.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,c,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){return t()}function x(){return Object.create(null)}function w(t){t.forEach(_)}function $(t){return"function"==typeof t}function E(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function S(t,e,n){t.$$.on_destroy.push(function(t){if(null==t)return g;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}(e,n))}function k(t,e,n,r){if(t){var o=L(t,e,n,r);return t[0](o)}}function L(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function j(e,n,r,o){if(e[2]&&o){var i=e[2](o(r));if(void 0===n.dirty)return i;if("object"===t(i)){for(var a=[],u=Math.max(n.dirty.length,i.length),c=0;c<u;c+=1)a[c]=n.dirty[c]|i[c];return a}return n.dirty|i}return n.dirty}function O(t,e,n,r,o,i){if(o){var a=L(e,n,r,i);t.p(a,o)}}function R(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,r=0;r<n;r++)e[r]=-1;return e}return-1}var A,P=!1;function N(){P=!0}function T(){P=!1}function I(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function q(t,e){if(P){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r<e.length;r++){var o=e[r];void 0!==o.claim_order&&n.push(o)}e=n}var i=new Int32Array(e.length+1),a=new Int32Array(e.length);i[0]=-1;for(var u=0,c=0;c<e.length;c++){var f=e[c].claim_order,s=(u>0&&e[i[u]].claim_order<=f?u+1:I(1,u,(function(t){return e[i[t]].claim_order}),f))-1;a[c]=i[s]+1;var l=s+1;i[l]=c,u=Math.max(l,u)}for(var h=[],p=[],d=e.length-1,v=i[u]+1;0!=v;v=a[v-1]){for(h.push(e[v-1]);d>=v;d--)p.push(e[d]);d--}for(;d>=0;d--)p.push(e[d]);h.reverse(),p.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m<p.length;m++){for(;y<h.length&&p[m].claim_order>=h[y].claim_order;)y++;var g=y<h.length?h[y]:null;t.insertBefore(p[m],g)}}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function C(t,e,n){P&&!n?q(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function B(t){t.parentNode.removeChild(t)}function U(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function G(t){return document.createElement(t)}function F(t){return document.createTextNode(t)}function D(){return F(" ")}function M(){return F("")}function J(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function K(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function z(t){return Array.from(t.childNodes)}function H(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function V(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];H(t);var i=function(){for(var i=t.claim_info.last_index;i<t.length;i++){var a=t[i];if(e(a)){var u=n(a);return void 0===u?t.splice(i,1):t[i]=u,o||(t.claim_info.last_index=i),a}}for(var c=t.claim_info.last_index-1;c>=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Y(t,e,n){return function(t,e,n,r){return V(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r<t.attributes.length;r++){var o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((function(e){return t.removeAttribute(e)}))}),(function(){return r(e)}))}(t,e,n,G)}function W(t,e){return V(t,(function(t){return 3===t.nodeType}),(function(t){var n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(function(){return F(e)}),!0)}function X(t){return W(t," ")}function Q(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Z(t,e,n){t.classList[n?"add":"remove"](e)}function tt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function et(t){A=t}function nt(){if(!A)throw new Error("Function called outside component initialization");return A}var rt=[],ot=[],it=[],at=[],ut=Promise.resolve(),ct=!1;function ft(t){it.push(t)}var st=new Set,lt=0;function ht(){var t=A;do{for(;lt<rt.length;){var e=rt[lt];lt++,et(e),pt(e.$$)}for(et(null),rt.length=0,lt=0;ot.length;)ot.pop()();for(var n=0;n<it.length;n+=1){var r=it[n];st.has(r)||(st.add(r),r())}it.length=0}while(rt.length);for(;at.length;)at.pop()();ct=!1,st.clear(),et(t)}function pt(t){if(null!==t.fragment){t.update(),w(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ft)}}var dt,vt=new Set;function mt(){dt={r:0,c:[],p:dt}}function yt(){dt.r||w(dt.c),dt=dt.p}function gt(t,e){t&&t.i&&(vt.delete(t),t.i(e))}function bt(t,e,n,r){if(t&&t.o){if(vt.has(t))return;vt.add(t),dt.c.push((function(){vt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function _t(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var a=t[i],u=e[i];if(u){for(var c in a)c in u||(r[c]=1);for(var f in u)o[f]||(n[f]=u[f],o[f]=1);t[i]=u}else for(var s in a)o[s]=1}for(var l in r)l in n||(n[l]=void 0);return n}function xt(e){return"object"===t(e)&&null!==e?e:{}}function wt(t){t&&t.c()}function $t(t,e){t&&t.l(e)}function Et(t,e,n,r){var o=t.$$,i=o.fragment,a=o.on_mount,u=o.on_destroy,c=o.after_update;i&&i.m(e,n),r||ft((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(ft)}function St(t,e){var n=t.$$;null!==n.fragment&&(w(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function kt(t,e){-1===t.$$.dirty[0]&&(rt.push(t),ct||(ct=!0,ut.then(ht)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Lt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=A;et(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:x(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&&kt(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){N();var l=z(e.target);f.fragment&&f.fragment.l(l),l.forEach(B)}else f.fragment&&f.fragment.c();e.intro&>(t.$$.fragment),Et(t,e.target,e.anchor,e.customElement),T(),ht()}et(c)}var jt=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){St(this,1),this.$destroy=g}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Ot(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var At=[];function Pt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(n){if(E(t,n)&&(t=n,e)){var o,i=!At.length,a=Ot(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),At.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<At.length;c+=2)At[c][0](At[c+1]);At.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,u=[i,a];return r.add(u),1===r.size&&(e=n(o)||g),i(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var Nt={};function Tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function It(t){var e,n,o=t[1].default,i=k(o,t,t[0],null);return{c:function(){e=G("div"),i&&i.c(),this.h()},l:function(t){var n=z(e=Y(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(B),this.h()},h:function(){K(e,"class","app-container svelte-lkkhqy")},m:function(t,r){C(t,e,r),i&&i.m(e,null),n=!0},p:function(t,e){var a=r(e,1)[0];i&&i.p&&(!n||1&a)&&O(i,o,t,t[0],n?j(o,t[0],a,null):R(t[0]),null)},i:function(t){n||(gt(i,t),n=!0)},o:function(t){bt(i,t),n=!1},d:function(t){t&&B(e),i&&i.d(t)}}}function qt(t,e,n){var r=e.$$slots,o=void 0===r?{}:r,i=e.$$scope;return t.$$set=function(t){"$$scope"in t&&n(0,i=t.$$scope)},[i,o]}var Ct=function(t){h(n,jt);var e=Tt(n);function n(t){var r;return v(this,n),Lt(p(r=e.call(this)),t,qt,It,E,{}),r}return y(n)}();function Bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Ut(t){var e,n,r=t[1].stack+"";return{c:function(){e=G("pre"),n=F(r)},l:function(t){var o=z(e=Y(t,"PRE",{}));n=W(o,r),o.forEach(B)},m:function(t,r){C(t,e,r),q(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&Q(n,r)},d:function(t){t&&B(e)}}}function Gt(t){var e,n,o,i,a,u,c,f,s,l=t[1].message+"";document.title=e=t[0];var h=t[2]&&t[1].stack&&Ut(t);return{c:function(){n=D(),o=G("h1"),i=F(t[0]),a=D(),u=G("p"),c=F(l),f=D(),h&&h.c(),s=M(),this.h()},l:function(e){tt('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(B),n=X(e);var r=z(o=Y(e,"H1",{class:!0}));i=W(r,t[0]),r.forEach(B),a=X(e);var p=z(u=Y(e,"P",{class:!0}));c=W(p,l),p.forEach(B),f=X(e),h&&h.l(e),s=M(),this.h()},h:function(){K(o,"class","svelte-jpshsi"),K(u,"class","svelte-jpshsi")},m:function(t,e){C(t,n,e),C(t,o,e),q(o,i),C(t,a,e),C(t,u,e),q(u,c),C(t,f,e),h&&h.m(t,e),C(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&Q(i,t[0]),2&o&&l!==(l=t[1].message+"")&&Q(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Ut(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&B(n),t&&B(o),t&&B(a),t&&B(u),t&&B(f),h&&h.d(t),t&&B(s)}}}function Ft(t,e,n){var r=e.status,o=e.error;return t.$$set=function(t){"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}var Dt=function(t){h(n,jt);var e=Bt(n);function n(t){var r;return v(this,n),Lt(p(r=e.call(this)),t,Ft,Gt,E,{status:0,error:1}),r}return y(n)}();function Mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Jt(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n<o.length;n+=1)e=b(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&wt(e.$$.fragment),n=M()},l:function(t){e&&$t(e.$$.fragment,t),n=M()},m:function(t,o){e&&Et(e,t,o),C(t,n,o),r=!0},p:function(t,r){var u=16&r?_t(o,[xt(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){mt();var c=e;bt(c.$$.fragment,1,0,(function(){St(c,1)})),yt()}i?(wt((e=new i(a())).$$.fragment),gt(e.$$.fragment,1),Et(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&>(e.$$.fragment,t),r=!0)},o:function(t){e&&bt(e.$$.fragment,t),r=!1},d:function(t){t&&B(n),e&&St(e,t)}}}function Kt(t){var e,n;return e=new Dt({props:{error:t[0],status:t[1]}}),{c:function(){wt(e.$$.fragment)},l:function(t){$t(e.$$.fragment,t)},m:function(t,r){Et(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i:function(t){n||(gt(e.$$.fragment,t),n=!0)},o:function(t){bt(e.$$.fragment,t),n=!1},d:function(t){St(e,t)}}}function zt(t){var e,n,r,o,i=[Kt,Jt],a=[];function u(t,e){return t[0]?0:1}return e=u(t),n=a[e]=i[e](t),{c:function(){n.c(),r=M()},l:function(t){n.l(t),r=M()},m:function(t,n){a[e].m(t,n),C(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(mt(),bt(a[c],1,1,(function(){a[c]=null})),yt(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),gt(n,1),n.m(r.parentNode,r))},i:function(t){o||(gt(n),o=!0)},o:function(t){bt(n),o=!1},d:function(t){a[e].d(t),t&&B(r)}}}function Ht(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[zt]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new Ct({props:i}),{c:function(){wt(e.$$.fragment)},l:function(t){$t(e.$$.fragment,t)},m:function(t,r){Et(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?_t(o,[4&i&&{segment:t[2][0]},8&i&&xt(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(gt(e.$$.fragment,t),n=!0)},o:function(t){bt(e.$$.fragment,t),n=!1},d:function(t){St(e,t)}}}function Vt(t,e,n){var r,o,i=e.stores,a=e.error,u=e.status,c=e.segments,f=e.level0,s=e.level1,l=void 0===s?null:s,h=e.notify;return function(t){nt().$$.after_update.push(t)}(h),r=Nt,o=i,nt().$$.context.set(r,o),t.$$set=function(t){"stores"in t&&n(5,i=t.stores),"error"in t&&n(0,a=t.error),"status"in t&&n(1,u=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,f=t.level0),"level1"in t&&n(4,l=t.level1),"notify"in t&&n(6,h=t.notify)},[a,u,c,f,l,i,h]}var Yt=function(t){h(n,jt);var e=Mt(n);function n(t){var r;return v(this,n),Lt(p(r=e.call(this)),t,Vt,Ht,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Wt=[],Xt=[{js:function(){return Promise.all([import("./index.4a50ca1a.js"),__inject_styles(["client-ea61129f.css","index-3231f19d.css"])]).then((function(t){return t[0]}))}}],Qt=[{pattern:/^\/$/,parts:[{i:0}]}]; +function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o,i,a,u=(o=function(e){var n=function(e){var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var _={};f(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==r&&o.call(w,a)&&(_=w);var $=b.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,c,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){return t()}function x(){return Object.create(null)}function w(t){t.forEach(_)}function $(t){return"function"==typeof t}function E(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function S(t,e,n){t.$$.on_destroy.push(function(t){if(null==t)return g;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}(e,n))}function k(t,e,n,r){if(t){var o=L(t,e,n,r);return t[0](o)}}function L(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function j(e,n,r,o){if(e[2]&&o){var i=e[2](o(r));if(void 0===n.dirty)return i;if("object"===t(i)){for(var a=[],u=Math.max(n.dirty.length,i.length),c=0;c<u;c+=1)a[c]=n.dirty[c]|i[c];return a}return n.dirty|i}return n.dirty}function O(t,e,n,r,o,i){if(o){var a=L(e,n,r,i);t.p(a,o)}}function R(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,r=0;r<n;r++)e[r]=-1;return e}return-1}var A,P=!1;function N(){P=!0}function T(){P=!1}function I(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function q(t,e){if(P){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r<e.length;r++){var o=e[r];void 0!==o.claim_order&&n.push(o)}e=n}var i=new Int32Array(e.length+1),a=new Int32Array(e.length);i[0]=-1;for(var u=0,c=0;c<e.length;c++){var f=e[c].claim_order,s=(u>0&&e[i[u]].claim_order<=f?u+1:I(1,u,(function(t){return e[i[t]].claim_order}),f))-1;a[c]=i[s]+1;var l=s+1;i[l]=c,u=Math.max(l,u)}for(var h=[],p=[],d=e.length-1,v=i[u]+1;0!=v;v=a[v-1]){for(h.push(e[v-1]);d>=v;d--)p.push(e[d]);d--}for(;d>=0;d--)p.push(e[d]);h.reverse(),p.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m<p.length;m++){for(;y<h.length&&p[m].claim_order>=h[y].claim_order;)y++;var g=y<h.length?h[y]:null;t.insertBefore(p[m],g)}}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function C(t,e,n){P&&!n?q(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function B(t){t.parentNode.removeChild(t)}function U(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function G(t){return document.createElement(t)}function F(t){return document.createTextNode(t)}function D(){return F(" ")}function M(){return F("")}function J(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function K(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function z(t){return Array.from(t.childNodes)}function H(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function V(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];H(t);var i=function(){for(var i=t.claim_info.last_index;i<t.length;i++){var a=t[i];if(e(a)){var u=n(a);return void 0===u?t.splice(i,1):t[i]=u,o||(t.claim_info.last_index=i),a}}for(var c=t.claim_info.last_index-1;c>=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Y(t,e,n){return function(t,e,n,r){return V(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r<t.attributes.length;r++){var o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((function(e){return t.removeAttribute(e)}))}),(function(){return r(e)}))}(t,e,n,G)}function W(t,e){return V(t,(function(t){return 3===t.nodeType}),(function(t){var n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(function(){return F(e)}),!0)}function X(t){return W(t," ")}function Q(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Z(t,e,n){t.classList[n?"add":"remove"](e)}function tt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function et(t){A=t}function nt(){if(!A)throw new Error("Function called outside component initialization");return A}var rt=[],ot=[],it=[],at=[],ut=Promise.resolve(),ct=!1;function ft(t){it.push(t)}var st=new Set,lt=0;function ht(){var t=A;do{for(;lt<rt.length;){var e=rt[lt];lt++,et(e),pt(e.$$)}for(et(null),rt.length=0,lt=0;ot.length;)ot.pop()();for(var n=0;n<it.length;n+=1){var r=it[n];st.has(r)||(st.add(r),r())}it.length=0}while(rt.length);for(;at.length;)at.pop()();ct=!1,st.clear(),et(t)}function pt(t){if(null!==t.fragment){t.update(),w(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ft)}}var dt,vt=new Set;function mt(){dt={r:0,c:[],p:dt}}function yt(){dt.r||w(dt.c),dt=dt.p}function gt(t,e){t&&t.i&&(vt.delete(t),t.i(e))}function bt(t,e,n,r){if(t&&t.o){if(vt.has(t))return;vt.add(t),dt.c.push((function(){vt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function _t(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var a=t[i],u=e[i];if(u){for(var c in a)c in u||(r[c]=1);for(var f in u)o[f]||(n[f]=u[f],o[f]=1);t[i]=u}else for(var s in a)o[s]=1}for(var l in r)l in n||(n[l]=void 0);return n}function xt(e){return"object"===t(e)&&null!==e?e:{}}function wt(t){t&&t.c()}function $t(t,e){t&&t.l(e)}function Et(t,e,n,r){var o=t.$$,i=o.fragment,a=o.on_mount,u=o.on_destroy,c=o.after_update;i&&i.m(e,n),r||ft((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(ft)}function St(t,e){var n=t.$$;null!==n.fragment&&(w(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function kt(t,e){-1===t.$$.dirty[0]&&(rt.push(t),ct||(ct=!0,ut.then(ht)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Lt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=A;et(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:x(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&&kt(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){N();var l=z(e.target);f.fragment&&f.fragment.l(l),l.forEach(B)}else f.fragment&&f.fragment.c();e.intro&>(t.$$.fragment),Et(t,e.target,e.anchor,e.customElement),T(),ht()}et(c)}var jt=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){St(this,1),this.$destroy=g}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Ot(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Rt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Rt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var At=[];function Pt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(n){if(E(t,n)&&(t=n,e)){var o,i=!At.length,a=Ot(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),At.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<At.length;c+=2)At[c][0](At[c+1]);At.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,u=[i,a];return r.add(u),1===r.size&&(e=n(o)||g),i(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var Nt={};function Tt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function It(t){var e,n,o=t[1].default,i=k(o,t,t[0],null);return{c:function(){e=G("div"),i&&i.c(),this.h()},l:function(t){var n=z(e=Y(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(B),this.h()},h:function(){K(e,"class","app-container svelte-lkkhqy")},m:function(t,r){C(t,e,r),i&&i.m(e,null),n=!0},p:function(t,e){var a=r(e,1)[0];i&&i.p&&(!n||1&a)&&O(i,o,t,t[0],n?j(o,t[0],a,null):R(t[0]),null)},i:function(t){n||(gt(i,t),n=!0)},o:function(t){bt(i,t),n=!1},d:function(t){t&&B(e),i&&i.d(t)}}}function qt(t,e,n){var r=e.$$slots,o=void 0===r?{}:r,i=e.$$scope;return t.$$set=function(t){"$$scope"in t&&n(0,i=t.$$scope)},[i,o]}var Ct=function(t){h(n,jt);var e=Tt(n);function n(t){var r;return v(this,n),Lt(p(r=e.call(this)),t,qt,It,E,{}),r}return y(n)}();function Bt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Ut(t){var e,n,r=t[1].stack+"";return{c:function(){e=G("pre"),n=F(r)},l:function(t){var o=z(e=Y(t,"PRE",{}));n=W(o,r),o.forEach(B)},m:function(t,r){C(t,e,r),q(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&Q(n,r)},d:function(t){t&&B(e)}}}function Gt(t){var e,n,o,i,a,u,c,f,s,l=t[1].message+"";document.title=e=t[0];var h=t[2]&&t[1].stack&&Ut(t);return{c:function(){n=D(),o=G("h1"),i=F(t[0]),a=D(),u=G("p"),c=F(l),f=D(),h&&h.c(),s=M(),this.h()},l:function(e){tt('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(B),n=X(e);var r=z(o=Y(e,"H1",{class:!0}));i=W(r,t[0]),r.forEach(B),a=X(e);var p=z(u=Y(e,"P",{class:!0}));c=W(p,l),p.forEach(B),f=X(e),h&&h.l(e),s=M(),this.h()},h:function(){K(o,"class","svelte-jpshsi"),K(u,"class","svelte-jpshsi")},m:function(t,e){C(t,n,e),C(t,o,e),q(o,i),C(t,a,e),C(t,u,e),q(u,c),C(t,f,e),h&&h.m(t,e),C(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&Q(i,t[0]),2&o&&l!==(l=t[1].message+"")&&Q(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Ut(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&B(n),t&&B(o),t&&B(a),t&&B(u),t&&B(f),h&&h.d(t),t&&B(s)}}}function Ft(t,e,n){var r=e.status,o=e.error;return t.$$set=function(t){"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}var Dt=function(t){h(n,jt);var e=Bt(n);function n(t){var r;return v(this,n),Lt(p(r=e.call(this)),t,Ft,Gt,E,{status:0,error:1}),r}return y(n)}();function Mt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Jt(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n<o.length;n+=1)e=b(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&wt(e.$$.fragment),n=M()},l:function(t){e&&$t(e.$$.fragment,t),n=M()},m:function(t,o){e&&Et(e,t,o),C(t,n,o),r=!0},p:function(t,r){var u=16&r?_t(o,[xt(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){mt();var c=e;bt(c.$$.fragment,1,0,(function(){St(c,1)})),yt()}i?(wt((e=new i(a())).$$.fragment),gt(e.$$.fragment,1),Et(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&>(e.$$.fragment,t),r=!0)},o:function(t){e&&bt(e.$$.fragment,t),r=!1},d:function(t){t&&B(n),e&&St(e,t)}}}function Kt(t){var e,n;return e=new Dt({props:{error:t[0],status:t[1]}}),{c:function(){wt(e.$$.fragment)},l:function(t){$t(e.$$.fragment,t)},m:function(t,r){Et(e,t,r),n=!0},p:function(t,n){var r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i:function(t){n||(gt(e.$$.fragment,t),n=!0)},o:function(t){bt(e.$$.fragment,t),n=!1},d:function(t){St(e,t)}}}function zt(t){var e,n,r,o,i=[Kt,Jt],a=[];function u(t,e){return t[0]?0:1}return e=u(t),n=a[e]=i[e](t),{c:function(){n.c(),r=M()},l:function(t){n.l(t),r=M()},m:function(t,n){a[e].m(t,n),C(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(mt(),bt(a[c],1,1,(function(){a[c]=null})),yt(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),gt(n,1),n.m(r.parentNode,r))},i:function(t){o||(gt(n),o=!0)},o:function(t){bt(n),o=!1},d:function(t){a[e].d(t),t&&B(r)}}}function Ht(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[zt]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new Ct({props:i}),{c:function(){wt(e.$$.fragment)},l:function(t){$t(e.$$.fragment,t)},m:function(t,r){Et(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?_t(o,[4&i&&{segment:t[2][0]},8&i&&xt(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(gt(e.$$.fragment,t),n=!0)},o:function(t){bt(e.$$.fragment,t),n=!1},d:function(t){St(e,t)}}}function Vt(t,e,n){var r,o,i=e.stores,a=e.error,u=e.status,c=e.segments,f=e.level0,s=e.level1,l=void 0===s?null:s,h=e.notify;return function(t){nt().$$.after_update.push(t)}(h),r=Nt,o=i,nt().$$.context.set(r,o),t.$$set=function(t){"stores"in t&&n(5,i=t.stores),"error"in t&&n(0,a=t.error),"status"in t&&n(1,u=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,f=t.level0),"level1"in t&&n(4,l=t.level1),"notify"in t&&n(6,h=t.notify)},[a,u,c,f,l,i,h]}var Yt=function(t){h(n,jt);var e=Mt(n);function n(t){var r;return v(this,n),Lt(p(r=e.call(this)),t,Vt,Ht,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Wt=[],Xt=[{js:function(){return Promise.all([import("./index.87fbe324.js"),__inject_styles(["client-ea61129f.css","index-c543e7aa.css"])]).then((function(t){return t[0]}))}}],Qt=[{pattern:/^\/$/,parts:[{i:0}]}]; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/client/index-3231f19d.css b/client/legacy/index-c543e7aa.css index 6ae505d..777381f 100644 --- a/client/index-3231f19d.css +++ b/client/legacy/index-c543e7aa.css @@ -8,5 +8,7 @@ .prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} .prediction-details.svelte-ghmp86.svelte-ghmp86{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-ghmp86.svelte-ghmp86:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-ghmp86>.svelte-ghmp86{margin:5px}.prediction-details.svelte-ghmp86 div.svelte-ghmp86:last-child{margin-left:auto}.prediction-details.svelte-ghmp86 h3.svelte-ghmp86{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-ghmp86 .data.svelte-ghmp86{display:flex;flex-direction:row}.prediction-details.svelte-ghmp86 .data h2.svelte-ghmp86{margin-right:1rem;font-size:1.5rem}.prediction-details.svelte-ghmp86 .data p.svelte-ghmp86{min-width:3.3rem}.prediction-details.svelte-ghmp86 .data i.svelte-ghmp86{width:1rem;text-align:center} .prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} +.prediction-details.svelte-ghmp86.svelte-ghmp86{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-ghmp86.svelte-ghmp86:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-ghmp86>.svelte-ghmp86{margin:5px}.prediction-details.svelte-ghmp86 div.svelte-ghmp86:last-child{margin-left:auto}.prediction-details.svelte-ghmp86 h3.svelte-ghmp86{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-ghmp86 .data.svelte-ghmp86{display:flex;flex-direction:row}.prediction-details.svelte-ghmp86 .data h2.svelte-ghmp86{margin-right:1rem;font-size:1.5rem}.prediction-details.svelte-ghmp86 .data p.svelte-ghmp86{min-width:3.3rem}.prediction-details.svelte-ghmp86 .data i.svelte-ghmp86{width:1rem;text-align:center} +.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/legacy/index.4a50ca1a.js b/client/legacy/index.4a50ca1a.js deleted file mode 100644 index 6668333..0000000 --- a/client/legacy/index.4a50ca1a.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,a as n,b as e,c as a,i as r,s as c,d as o,e as i,S as s,f as u,g as l,h as f,j as d,k as h,l as v,m as p,n as m,w as g,o as _,t as y,p as w,q as b,r as $,u as E,v as k,x as D,y as I,z as O,A as R,B as P,C as j,D as V,E as x,F as B,G as T,H as M,I as S,J as C,K as N,L as q,M as H,N as A,O as z,P as J}from"./client.26d4afad.js";function K(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function F(t){var n,e,a,r,c,o,i,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),o=u("div"),i=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"DIV",{class:!0}),f(e).forEach(d),a=l(u,"DIV",{class:!0}),f(a).forEach(d),r=l(u,"DIV",{class:!0}),f(r).forEach(d),c=l(u,"DIV",{class:!0}),f(c).forEach(d),o=l(u,"DIV",{class:!0}),f(o).forEach(d),i=l(u,"DIV",{class:!0}),f(i).forEach(d),s=l(u,"DIV",{class:!0}),f(s).forEach(d),g=l(u,"DIV",{class:!0}),f(g).forEach(d),u.forEach(d),this.h()},h:function(){h(e,"class","svelte-7k6qu0"),h(a,"class","svelte-7k6qu0"),h(r,"class","svelte-7k6qu0"),h(c,"class","svelte-7k6qu0"),h(o,"class","svelte-7k6qu0"),h(i,"class","svelte-7k6qu0"),h(s,"class","svelte-7k6qu0"),h(g,"class","svelte-7k6qu0"),h(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){v(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,o),p(n,i),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}var L=function(n){t(u,s);var e=K(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,null,F,c,{}),n}return i(u)}();const U={updated:!1,updating:!0},Z=g(Object.assign(Object.assign({},U),{available:!1,longitude:null,latitude:null,city:null})),G=g(Object.assign(Object.assign({},U),{available:!1})),Q=g(Object.assign({},U));function W(t,n=!1){let e=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),e),{updating:n})))}function X(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Y(t){var n,e,a,r,c=t[0].city+"";return{c:function(){n=u("i"),e=_(),a=u("h1"),r=y(c),this.h()},l:function(t){n=l(t,"I",{class:!0}),f(n).forEach(d),e=w(t),a=l(t,"H1",{class:!0});var o=f(a);r=b(o,c),o.forEach(d),this.h()},h:function(){h(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),h(a,"class","svelte-9kdo4s")},m:function(t,c){v(t,n,c),v(t,e,c),v(t,a,c),p(a,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&$(r,c)},d:function(t){t&&d(n),t&&d(e),t&&d(a)}}}function tt(t){var n,e;function a(t,e){return 6&e&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?et:nt}var r=a(t,-1),c=r(t);return{c:function(){c.c(),e=E()},l:function(t){c.l(t),e=E()},m:function(t,n){c.m(t,n),v(t,e,n)},p:function(t,n){r===(r=a(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(e.parentNode,e)))},d:function(t){c.d(t),t&&d(e)}}}function nt(t){var n,e,a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=y(a)},l:function(t){n=l(t,"P",{});var r=f(n);e=b(r,a),r.forEach(d)},m:function(t,a){v(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&$(e,a)},d:function(t){t&&d(n)}}}function et(t){var n,e;return{c:function(){n=u("p"),e=y("There is more than 10 minutes difference between data updates")},l:function(t){n=l(t,"P",{});var a=f(n);e=b(a,"There is more than 10 minutes difference between data updates"),a.forEach(d)},m:function(t,a){v(t,n,a),p(n,e)},p:m,d:function(t){t&&d(n)}}}function at(t){var n,e,a,r,c,o,i,s,g,E,k,D,I=t[2].now.kp+"",O=t[2].now.kp_max+"",R=t[2].now.kp_min+"";return{c:function(){n=u("h2"),e=y("KP "),a=y(I),r=_(),c=u("p"),o=u("span"),i=y("↑ KP "),s=y(O),g=_(),E=u("span"),k=y("↓ KP "),D=y(R),this.h()},l:function(t){n=l(t,"H2",{class:!0});var u=f(n);e=b(u,"KP "),a=b(u,I),u.forEach(d),r=w(t),c=l(t,"P",{});var h=f(c);o=l(h,"SPAN",{classname:!0});var v=f(o);i=b(v,"↑ KP "),s=b(v,O),v.forEach(d),g=w(h),E=l(h,"SPAN",{classname:!0});var p=f(E);k=b(p,"↓ KP "),D=b(p,R),p.forEach(d),h.forEach(d),this.h()},h:function(){h(n,"class","svelte-9kdo4s"),h(o,"classname","pr-2"),h(E,"classname","pl-2")},m:function(t,u){v(t,n,u),p(n,e),p(n,a),v(t,r,u),v(t,c,u),p(c,o),p(o,i),p(o,s),p(c,g),p(c,E),p(E,k),p(E,D)},p:function(t,n){4&n&&I!==(I=t[2].now.kp+"")&&$(a,I),4&n&&O!==(O=t[2].now.kp_max+"")&&$(s,O),4&n&&R!==(R=t[2].now.kp_min+"")&&$(D,R)},i:m,o:m,d:function(t){t&&d(n),t&&d(r),t&&d(c)}}}function rt(t){var n,e;return n=new L({}),{c:function(){j(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:m,i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function ct(t){var n,e,a,r,c,o,i,s,m,g,k,D,I,O,R,P=t[2].now.bz+"",j=t[2].now.bt+"",V=t[1].available&&ot(t);return{c:function(){n=u("div"),e=u("p"),a=y("BZ"),r=_(),c=u("p"),o=y(P),i=_(),s=u("div"),m=u("p"),g=y("BT"),k=_(),D=u("p"),I=y(j),O=_(),V&&V.c(),R=E(),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);e=l(u,"P",{class:!0});var h=f(e);a=b(h,"BZ"),h.forEach(d),r=w(u),c=l(u,"P",{class:!0});var v=f(c);o=b(v,P),v.forEach(d),u.forEach(d),i=w(t),s=l(t,"DIV",{});var p=f(s);m=l(p,"P",{class:!0});var _=f(m);g=b(_,"BT"),_.forEach(d),k=w(p),D=l(p,"P",{class:!0});var y=f(D);I=b(y,j),y.forEach(d),p.forEach(d),O=w(t),V&&V.l(t),R=E(),this.h()},h:function(){h(e,"class","svelte-9kdo4s"),h(c,"class","svelte-9kdo4s"),h(m,"class","svelte-9kdo4s"),h(D,"class","svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,o),v(t,i,u),v(t,s,u),p(s,m),p(m,g),p(s,k),p(s,D),p(D,I),v(t,O,u),V&&V.m(t,u),v(t,R,u)},p:function(t,n){4&n&&P!==(P=t[2].now.bz+"")&&$(o,P),4&n&&j!==(j=t[2].now.bt+"")&&$(I,j),t[1].available?V?V.p(t,n):((V=ot(t)).c(),V.m(R.parentNode,R)):V&&(V.d(1),V=null)},d:function(t){t&&d(n),t&&d(i),t&&d(s),t&&d(O),V&&V.d(t),t&&d(R)}}}function ot(t){var n,e,a,r,c,o,i,s,m,g,E,k,D,I,O,R=t[1].now.temp+"",P=t[1].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=y("Temp"),r=_(),c=u("p"),o=y(R),i=y("°C"),s=_(),m=u("div"),g=u("p"),E=y("Clouds"),k=_(),D=u("p"),I=y(P),O=y("%"),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);e=l(u,"P",{class:!0});var h=f(e);a=b(h,"Temp"),h.forEach(d),r=w(u),c=l(u,"P",{class:!0});var v=f(c);o=b(v,R),i=b(v,"°C"),v.forEach(d),u.forEach(d),s=w(t),m=l(t,"DIV",{});var p=f(m);g=l(p,"P",{class:!0});var _=f(g);E=b(_,"Clouds"),_.forEach(d),k=w(p),D=l(p,"P",{class:!0});var y=f(D);I=b(y,P),O=b(y,"%"),y.forEach(d),p.forEach(d),this.h()},h:function(){h(e,"class","svelte-9kdo4s"),h(c,"class","svelte-9kdo4s"),h(g,"class","svelte-9kdo4s"),h(D,"class","svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,o),p(c,i),v(t,s,u),v(t,m,u),p(m,g),p(g,E),p(m,k),p(m,D),p(D,I),p(D,O)},p:function(t,n){2&n&&R!==(R=t[1].now.temp+"")&&$(o,R),2&n&&P!==(P=t[1].now.clouds+"")&&$(I,P)},d:function(t){t&&d(n),t&&d(s),t&&d(m)}}}function it(t){var n,e,a,r,c,o,i,s,m,g,y,b,$=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&Y(t),E=!t[1].updating&&!t[2].updating&&tt(t),P=[rt,at],j=[];function V(t,n){return t[2].updating||t[1].updating?0:1}s=V(t),m=j[s]=P[s](t);var x=!t[2].updating&&!t[1].updating&&ct(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),$&&$.c(),r=_(),c=u("div"),E&&E.c(),o=_(),i=u("div"),m.c(),g=_(),y=u("div"),x&&x.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var s=f(n);e=l(s,"DIV",{class:!0});var u=f(e);a=l(u,"DIV",{class:!0});var h=f(a);$&&$.l(h),h.forEach(d),r=w(u),c=l(u,"DIV",{class:!0});var v=f(c);E&&E.l(v),v.forEach(d),o=w(u),i=l(u,"DIV",{class:!0});var p=f(i);m.l(p),p.forEach(d),g=w(u),y=l(u,"DIV",{class:!0});var _=f(y);x&&x.l(_),_.forEach(d),u.forEach(d),s.forEach(d),this.h()},h:function(){h(a,"class","weatherCurrent-data-location svelte-9kdo4s"),h(c,"class","weatherCurrent-data-date"),h(i,"class","weatherCurrent-data-kp svelte-9kdo4s"),h(y,"class","current-details svelte-9kdo4s"),h(e,"class","weatherCurrent-data svelte-9kdo4s"),h(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),$&&$.m(a,null),p(e,r),p(e,c),E&&E.m(c,null),p(e,o),p(e,i),j[s].m(i,null),p(e,g),p(e,y),x&&x.m(y,null),b=!0},p:function(t,n){var e=k(n,1)[0];t[0].updating||!t[0].available||t[1].updating||t[2].updating?$&&($.d(1),$=null):$?$.p(t,e):(($=Y(t)).c(),$.m(a,null)),t[1].updating||t[2].updating?E&&(E.d(1),E=null):E?E.p(t,e):((E=tt(t)).c(),E.m(c,null));var r=s;(s=V(t))===r?j[s].p(t,e):(D(),I(j[r],1,1,(function(){j[r]=null})),O(),(m=j[s])?m.p(t,e):(m=j[s]=P[s](t)).c(),R(m,1),m.m(i,null)),t[2].updating||t[1].updating?x&&(x.d(1),x=null):x?x.p(t,e):((x=ct(t)).c(),x.m(y,null))},i:function(t){b||(R(m),b=!0)},o:function(t){I(m),b=!1},d:function(t){t&&d(n),$&&$.d(),E&&E.d(),j[s].d(),x&&x.d()}}}function st(t,n,e){var a,r,c;return P(t,Z,(function(t){return e(0,a=t)})),P(t,G,(function(t){return e(1,r=t)})),P(t,Q,(function(t){return e(2,c=t)})),[a,r,c]}!async function(){if("undefined"==typeof window)return;let t;W(Z,!0);try{t=await async function(){return new Promise(((t,n)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((n=>{t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(t=>{n(t)})):n(Error())}))}()}catch(t){return console.log(t),Z.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void W(Z,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),e=await n.json();Z.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:e.city}),t))),W(Z,!1)}(),Z.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return G.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void W(G,!1);W(G,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}G.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),W(G,!1)})),async function(){if("undefined"==typeof window)return;W(Q,!0);let t=await async function(){let 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}},n=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t.usnoaa_data_raw.solar_wind_mag_field=await n.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,n=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=(await n.json()).map((t=>Object.assign(Object.assign({},t),{model_prediction_time:new Date(t.model_prediction_time)}))),n=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=await n.json(),t.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let e=new Date,a=new Date(0,0,0),r=1e3,c=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((n,o)=>{n[1]>c&&(c=n[1]),n[1]<r&&(r=n[1]);let i=new Date(n[0]+" UTC");Math.abs(i.getTime()-e.getTime())<Math.abs(a.getTime()-e.getTime())&&(a=i,t.now.kp=n[1]),t.usnoaa_data_raw.noaa_planetary_k_index_forecast[o]={time:i,kp:n[1],observed:n[2]}})),t.now.kp_min=r.toString(),t.now.kp_max=c.toString(),console.log(t),t}();Q.update((n=>Object.assign(Object.assign({},n),t))),W(Q,!1)}();var ut=function(n){t(u,s);var e=X(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,st,it,c,{}),n}return i(u)}();function lt(t,n,e,a,r,c,o){try{var i=t[c](o),s=i.value}catch(t){return void e(t)}i.done?n(s):Promise.resolve(s).then(a,r)}function ft(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function o(t){lt(c,a,r,o,i,"next",t)}function i(t){lt(c,a,r,o,i,"throw",t)}o(void 0)}))}}function dt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function ht(t){var n,e,a=t[1].default,r=T(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=f(n);r&&r.l(e),e.forEach(d),this.h()},h:function(){h(n,"class","chip svelte-6dfxfp")},m:function(t,a){v(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=k(n,1)[0];r&&r.p&&(!e||1&c)&&M(r,a,t,t[0],e?C(a,t[0],c,null):S(t[0]),null)},i:function(t){e||(R(r,t),e=!0)},o:function(t){I(r,t),e=!1},d:function(t){t&&d(n),r&&r.d(t)}}}function vt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var pt=function(n){t(u,s);var e=dt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,vt,ht,c,{}),n}return i(u)}();function mt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function gt(t){var n,e,a,r,c,o,i,s,g,$,E,D,I=t[5]&&function(t){var n,e,a,r,c,o,i,s,g,$,E,k,D=Math.round(t[3])+"",I=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=_(),c=y(D),o=y("°C"),i=_(),s=u("p"),g=u("i"),$=_(),E=y(I),k=y("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var h=f(e);a=l(h,"I",{class:!0}),f(a).forEach(d),r=w(h),c=b(h,D),o=b(h,"°C"),h.forEach(d),i=w(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(d),$=w(v),E=b(v,I),k=b(v,"%"),v.forEach(d),u.forEach(d),this.h()},h:function(){h(a,"class","fas fa-thermometer-half svelte-ghmp86"),h(e,"class","svelte-ghmp86"),h(g,"class","fas fa-cloud svelte-ghmp86"),h(s,"class","svelte-ghmp86"),h(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,o),p(n,i),p(n,s),p(s,g),p(s,$),p(s,E),p(s,k)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=y(t[2]),c=_(),o=u("p"),i=y(t[1]),s=_(),g=u("div"),$=u("h2"),E=y(t[0]),D=_(),I&&I.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var h=f(n);e=l(h,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=b(p,t[2]),p.forEach(d),c=w(v),o=l(v,"P",{class:!0});var m=f(o);i=b(m,t[1]),m.forEach(d),v.forEach(d),s=w(h),g=l(h,"DIV",{class:!0});var _=f(g);$=l(_,"H2",{class:!0});var y=f($);E=b(y,t[0]),y.forEach(d),D=w(_),I&&I.l(_),_.forEach(d),h.forEach(d),this.h()},h:function(){h(a,"class","svelte-ghmp86"),h(o,"class","svelte-ghmp86"),h(e,"class","svelte-ghmp86"),h($,"class","svelte-ghmp86"),h(g,"class","data svelte-ghmp86"),h(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,o),p(o,i),p(n,s),p(n,g),p(g,$),p($,E),p(g,D),I&&I.m(g,null)},p:function(t,n){var e=k(n,1)[0];t[5]&&I.p(t,e)},i:m,o:m,d:function(t){t&&d(n),I&&I.d()}}}function _t(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function yt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],o=_t(a.time.getHours().toString())+":"+_t(a.time.getMinutes().toString()),i=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,o,i,s,u,a]}var wt=function(n){t(u,s);var e=mt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,yt,gt,c,{prediction:6}),n}return i(u)}();function bt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function $t(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Et(t){var n,e;return n=new wt({props:{prediction:t[5]}}),{c:function(){j(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function kt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Et($t(t,a,c));var o=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){h(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var i;for(a=t[0],i=0;i<a.length;i+=1){var s=$t(t,a,i);r[i]?(r[i].p(s,c),R(r[i],1)):(r[i]=Et(s),r[i].c(),R(r[i],1),r[i].m(n,null))}for(D(),i=a.length;i<r.length;i+=1)o(i);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)R(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),N(r,t)}}}function Dt(t,n,e){var a,r,c;function o(){return i.apply(this,arguments)}function i(){return(i=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,o,i=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())&&(i=a,r=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:o}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return P(t,G,(function(t){return e(1,a=t)})),P(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(o),G.subscribe(o),[c]}var It=function(n){t(u,s);var e=bt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,Dt,kt,c,{}),n}return i(u)}();function Ot(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Rt(t){var n,e,a;return e=new pt({props:{$$slots:{default:[Pt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),j(e.$$.fragment),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var a=f(n);V(e.$$.fragment,a),a.forEach(d),this.h()},h:function(){h(n,"class","svelte-ghmp86")},m:function(t,r){v(t,n,r),x(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(R(e.$$.fragment,t),a=!0)},o:function(t){I(e.$$.fragment,t),a=!1},d:function(t){t&&d(n),B(e)}}}function Pt(t){var n,e=t[0].observed+"";return{c:function(){n=y(e)},l:function(t){n=b(t,e)},m:function(t,e){v(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&$(n,e)},d:function(t){t&&d(n)}}}function jt(t){var n,e,a,r,c,o,i,s,g,$,E,P,j,V,x="predicted"!=t[0].observed&&Rt(t),B=t[6]&&function(t){var n,e,a,r,c,o,i,s,g,$,E,k,D=Math.round(t[4])+"",I=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=_(),c=y(D),o=y("°C"),i=_(),s=u("p"),g=u("i"),$=_(),E=y(I),k=y("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var h=f(e);a=l(h,"I",{class:!0}),f(a).forEach(d),r=w(h),c=b(h,D),o=b(h,"°C"),h.forEach(d),i=w(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(d),$=w(v),E=b(v,I),k=b(v,"%"),v.forEach(d),u.forEach(d),this.h()},h:function(){h(a,"class","fas fa-thermometer-half svelte-ghmp86"),h(e,"class","svelte-ghmp86"),h(g,"class","fas fa-cloud svelte-ghmp86"),h(s,"class","svelte-ghmp86"),h(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,o),p(n,i),p(n,s),p(s,g),p(s,$),p(s,E),p(s,k)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=y(t[3]),c=_(),o=u("p"),i=y(t[2]),s=_(),x&&x.c(),g=_(),$=u("div"),E=u("h2"),P=y(t[1]),j=_(),B&&B.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var h=f(n);e=l(h,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=b(p,t[3]),p.forEach(d),c=w(v),o=l(v,"P",{class:!0});var m=f(o);i=b(m,t[2]),m.forEach(d),v.forEach(d),s=w(h),x&&x.l(h),g=w(h),$=l(h,"DIV",{class:!0});var _=f($);E=l(_,"H2",{class:!0});var y=f(E);P=b(y,t[1]),y.forEach(d),j=w(_),B&&B.l(_),_.forEach(d),h.forEach(d),this.h()},h:function(){h(a,"class","svelte-ghmp86"),h(o,"class","svelte-ghmp86"),h(e,"class","svelte-ghmp86"),h(E,"class","svelte-ghmp86"),h($,"class","data svelte-ghmp86"),h(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,o),p(o,i),p(n,s),x&&x.m(n,null),p(n,g),p(n,$),p($,E),p(E,P),p($,j),B&&B.m($,null),V=!0},p:function(t,e){var a=k(e,1)[0];"predicted"!=t[0].observed?x?(x.p(t,a),1&a&&R(x,1)):((x=Rt(t)).c(),R(x,1),x.m(n,g)):x&&(D(),I(x,1,1,(function(){x=null})),O()),t[6]&&B.p(t,a)},i:function(t){V||(R(x),V=!0)},o:function(t){I(x),V=!1},d:function(t){t&&d(n),x&&x.d(),B&&B.d()}}}function Vt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function xt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],o=Vt(a.time.getHours().toString())+":"+Vt(a.time.getMinutes().toString()),i=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,o,i,s,u]}var Bt=function(n){t(u,s);var e=Ot(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,xt,jt,c,{prediction:0}),n}return i(u)}();function Tt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Mt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function St(t){var n,e;return n=new Bt({props:{prediction:t[5]}}),{c:function(){j(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(R(n.$$.fragment,t),e=!0)},o:function(t){I(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function Ct(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=St(Mt(t,a,c));var o=function(t){return I(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){h(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var i;for(a=t[0],i=0;i<a.length;i+=1){var s=Mt(t,a,i);r[i]?(r[i].p(s,c),R(r[i],1)):(r[i]=St(s),r[i].c(),R(r[i],1),r[i].m(n,null))}for(D(),i=a.length;i<r.length;i+=1)o(i);O()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)R(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)I(r[n]);e=!1},d:function(t){t&&d(n),N(r,t)}}}function Nt(t,n,e){var a,r,c;function o(){return i.apply(this,arguments)}function i(){return(i=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,o,i=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())&&(i=a,r=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:o}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return P(t,G,(function(t){return e(1,a=t)})),P(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(o),G.subscribe(o),[c]}var qt=function(n){t(u,s);var e=Tt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,Nt,Ct,c,{}),n}return i(u)}();function Ht(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function At(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=_(),r=u("p"),c=y("No prediction data"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var o=f(n);e=l(o,"I",{class:!0}),f(e).forEach(d),a=w(o),r=l(o,"P",{});var i=f(r);c=b(i,"No prediction data"),i.forEach(d),o.forEach(d),this.h()},h:function(){h(e,"class","fas fa-7x fa-exclamation-triangle"),h(n,"class","no-data svelte-6c4yca")},m:function(t,o){v(t,n,o),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}function zt(t){var n,e,a,r,c,o,i,s,m,g,$,k,P,T,M,S,C=t[0];return C&&(k=new C({})),{c:function(){n=u("div"),e=u("h2"),a=y("Forecast"),r=_(),c=u("div"),o=u("div"),i=y("hour"),s=_(),m=u("div"),g=y("3 day"),$=_(),k&&j(k.$$.fragment),P=E(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"H2",{class:!0});var h=f(e);a=b(h,"Forecast"),h.forEach(d),r=w(u),c=l(u,"DIV",{class:!0});var v=f(c);o=l(v,"DIV",{class:!0});var p=f(o);i=b(p,"hour"),p.forEach(d),s=w(v),m=l(v,"DIV",{class:!0});var _=f(m);g=b(_,"3 day"),_.forEach(d),v.forEach(d),u.forEach(d),$=w(t),k&&V(k.$$.fragment,t),P=E(),this.h()},h:function(){h(e,"class","svelte-6c4yca"),h(o,"class","svelte-6c4yca"),H(o,"selected",t[0]==It),h(m,"class","svelte-6c4yca"),H(m,"selected",t[0]==qt),h(c,"class","version-picker svelte-6c4yca"),h(n,"class","header svelte-6c4yca")},m:function(u,l){v(u,n,l),p(n,e),p(e,a),p(n,r),p(n,c),p(c,o),p(o,i),p(c,s),p(c,m),p(m,g),v(u,$,l),k&&x(k,u,l),v(u,P,l),T=!0,M||(S=[A(o,"click",t[3]),A(m,"click",t[4])],M=!0)},p:function(t,n){if(1&n&&H(o,"selected",t[0]==It),1&n&&H(m,"selected",t[0]==qt),C!==(C=t[0])){if(k){D();var e=k;I(e.$$.fragment,1,0,(function(){B(e,1)})),O()}C?(k=new C({}),j(k.$$.fragment),R(k.$$.fragment,1),x(k,P.parentNode,P)):k=null}},i:function(t){T||(k&&R(k.$$.fragment,t),T=!0)},o:function(t){k&&I(k.$$.fragment,t),T=!1},d:function(t){t&&d(n),t&&d($),t&&d(P),k&&B(k,t),M=!1,z(S)}}}function Jt(t){var n,e,a,r,c=[zt,At],o=[];function i(t,n){return t[1].updating||t[2].updating?1:0}return e=i(t),a=o[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=f(n);a.l(e),e.forEach(d),this.h()},h:function(){h(n,"class","drawer svelte-6c4yca")},m:function(t,a){v(t,n,a),o[e].m(n,null),r=!0},p:function(t,r){var s=k(r,1)[0],u=e;(e=i(t))===u?o[e].p(t,s):(D(),I(o[u],1,1,(function(){o[u]=null})),O(),(a=o[e])?a.p(t,s):(a=o[e]=c[e](t)).c(),R(a,1),a.m(n,null))},i:function(t){r||(R(a),r=!0)},o:function(t){I(a),r=!1},d:function(t){t&&d(n),o[e].d()}}}function Kt(t,n,e){var a,r;P(t,G,(function(t){return e(1,a=t)})),P(t,Q,(function(t){return e(2,r=t)}));var c=qt;return[c,a,r,function(){return e(0,c=It)},function(){return e(0,c=qt)}]}var Ft=function(n){t(u,s);var e=Ht(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,Kt,Jt,c,{}),n}return i(u)}();function Lt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Ut(t){var n,e,a,r,c,o;return a=new ut({}),c=new Ft({}),{c:function(){n=_(),e=u("div"),j(a.$$.fragment),r=_(),j(c.$$.fragment),this.h()},l:function(t){J('[data-svelte="svelte-1q3846k"]',document.head).forEach(d),n=w(t),e=l(t,"DIV",{class:!0});var o=f(e);V(a.$$.fragment,o),r=w(o),V(c.$$.fragment,o),o.forEach(d),this.h()},h:function(){document.title="Aurora data",h(e,"class","homescreen svelte-pf4p6y")},m:function(t,i){v(t,n,i),v(t,e,i),x(a,e,null),p(e,r),x(c,e,null),o=!0},p:m,i:function(t){o||(R(a.$$.fragment,t),R(c.$$.fragment,t),o=!0)},o:function(t){I(a.$$.fragment,t),I(c.$$.fragment,t),o=!1},d:function(t){t&&d(n),t&&d(e),B(a),B(c)}}}var Zt=function(n){t(u,s);var e=Lt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,null,Ut,c,{}),n}return i(u)}();export{Zt as default}; diff --git a/client/legacy/index.87fbe324.js b/client/legacy/index.87fbe324.js new file mode 100644 index 0000000..2781b06 --- /dev/null +++ b/client/legacy/index.87fbe324.js @@ -0,0 +1 @@ +import{_ as t,a as n,b as e,c as a,i as r,s as c,d as i,e as o,S as s,f as u,g as l,h as f,j as h,k as d,l as v,m as p,n as m,w as g,o as y,t as _,p as b,q as w,r as E,u as $,v as k,x as D,y as O,z as R,A as I,B as x,C as P,D as V,E as j,F as M,G as T,H as B,I as S,J as N,K as C,L as q,M as H,N as A,O as J,P as z}from"./client.9db787ae.js";function K(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function F(t){var n,e,a,r,c,i,o,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),i=u("div"),o=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"DIV",{class:!0}),f(e).forEach(h),a=l(u,"DIV",{class:!0}),f(a).forEach(h),r=l(u,"DIV",{class:!0}),f(r).forEach(h),c=l(u,"DIV",{class:!0}),f(c).forEach(h),i=l(u,"DIV",{class:!0}),f(i).forEach(h),o=l(u,"DIV",{class:!0}),f(o).forEach(h),s=l(u,"DIV",{class:!0}),f(s).forEach(h),g=l(u,"DIV",{class:!0}),f(g).forEach(h),u.forEach(h),this.h()},h:function(){d(e,"class","svelte-7k6qu0"),d(a,"class","svelte-7k6qu0"),d(r,"class","svelte-7k6qu0"),d(c,"class","svelte-7k6qu0"),d(i,"class","svelte-7k6qu0"),d(o,"class","svelte-7k6qu0"),d(s,"class","svelte-7k6qu0"),d(g,"class","svelte-7k6qu0"),d(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){v(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,i),p(n,o),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&h(n)}}}var L=function(n){t(u,s);var e=K(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,F,c,{}),n}return o(u)}();const U={updated:!1,updating:!0},Z=g(Object.assign(Object.assign({},U),{available:!1,longitude:null,latitude:null,city:null})),G=g(Object.assign(Object.assign({},U),{available:!1})),Q=g(Object.assign({},U));function W(t,n=!1){let e=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),e),{updating:n})))}function X(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Y(t){var n,e,a,r,c=t[0].city+"";return{c:function(){n=u("i"),e=y(),a=u("h1"),r=_(c),this.h()},l:function(t){n=l(t,"I",{class:!0}),f(n).forEach(h),e=b(t),a=l(t,"H1",{class:!0});var i=f(a);r=w(i,c),i.forEach(h),this.h()},h:function(){d(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),d(a,"class","svelte-9kdo4s")},m:function(t,c){v(t,n,c),v(t,e,c),v(t,a,c),p(a,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&E(r,c)},d:function(t){t&&h(n),t&&h(e),t&&h(a)}}}function tt(t){var n,e;function a(t,e){return 6&e&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?et:nt}var r=a(t,-1),c=r(t);return{c:function(){c.c(),e=$()},l:function(t){c.l(t),e=$()},m:function(t,n){c.m(t,n),v(t,e,n)},p:function(t,n){r===(r=a(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(e.parentNode,e)))},d:function(t){c.d(t),t&&h(e)}}}function nt(t){var n,e,a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=_(a)},l:function(t){n=l(t,"P",{});var r=f(n);e=w(r,a),r.forEach(h)},m:function(t,a){v(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&E(e,a)},d:function(t){t&&h(n)}}}function et(t){var n,e;return{c:function(){n=u("p"),e=_("There is more than 10 minutes difference between data updates")},l:function(t){n=l(t,"P",{});var a=f(n);e=w(a,"There is more than 10 minutes difference between data updates"),a.forEach(h)},m:function(t,a){v(t,n,a),p(n,e)},p:m,d:function(t){t&&h(n)}}}function at(t){var n,e,a,r,c,i,o,s,g,$,k,D,O=t[2].now.kp+"",R=t[2].now.kp_max+"",I=t[2].now.kp_min+"";return{c:function(){n=u("h2"),e=_("KP "),a=_(O),r=y(),c=u("p"),i=u("span"),o=_("↑ KP "),s=_(R),g=y(),$=u("span"),k=_("↓ KP "),D=_(I),this.h()},l:function(t){n=l(t,"H2",{class:!0});var u=f(n);e=w(u,"KP "),a=w(u,O),u.forEach(h),r=b(t),c=l(t,"P",{});var d=f(c);i=l(d,"SPAN",{classname:!0});var v=f(i);o=w(v,"↑ KP "),s=w(v,R),v.forEach(h),g=b(d),$=l(d,"SPAN",{classname:!0});var p=f($);k=w(p,"↓ KP "),D=w(p,I),p.forEach(h),d.forEach(h),this.h()},h:function(){d(n,"class","svelte-9kdo4s"),d(i,"classname","pr-2"),d($,"classname","pl-2")},m:function(t,u){v(t,n,u),p(n,e),p(n,a),v(t,r,u),v(t,c,u),p(c,i),p(i,o),p(i,s),p(c,g),p(c,$),p($,k),p($,D)},p:function(t,n){4&n&&O!==(O=t[2].now.kp+"")&&E(a,O),4&n&&R!==(R=t[2].now.kp_max+"")&&E(s,R),4&n&&I!==(I=t[2].now.kp_min+"")&&E(D,I)},i:m,o:m,d:function(t){t&&h(n),t&&h(r),t&&h(c)}}}function rt(t){var n,e;return n=new L({}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:m,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function ct(t){var n,e,a,r,c,i,o,s,m,g,k,D,O,R,I,x=t[2].now.bz+"",P=t[2].now.bt+"",V=t[1].available&&it(t);return{c:function(){n=u("div"),e=u("p"),a=_("BZ"),r=y(),c=u("p"),i=_(x),o=y(),s=u("div"),m=u("p"),g=_("BT"),k=y(),D=u("p"),O=_(P),R=y(),V&&V.c(),I=$(),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=w(d,"BZ"),d.forEach(h),r=b(u),c=l(u,"P",{class:!0});var v=f(c);i=w(v,x),v.forEach(h),u.forEach(h),o=b(t),s=l(t,"DIV",{});var p=f(s);m=l(p,"P",{class:!0});var y=f(m);g=w(y,"BT"),y.forEach(h),k=b(p),D=l(p,"P",{class:!0});var _=f(D);O=w(_,P),_.forEach(h),p.forEach(h),R=b(t),V&&V.l(t),I=$(),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(m,"class","svelte-9kdo4s"),d(D,"class","svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),v(t,o,u),v(t,s,u),p(s,m),p(m,g),p(s,k),p(s,D),p(D,O),v(t,R,u),V&&V.m(t,u),v(t,I,u)},p:function(t,n){4&n&&x!==(x=t[2].now.bz+"")&&E(i,x),4&n&&P!==(P=t[2].now.bt+"")&&E(O,P),t[1].available?V?V.p(t,n):((V=it(t)).c(),V.m(I.parentNode,I)):V&&(V.d(1),V=null)},d:function(t){t&&h(n),t&&h(o),t&&h(s),t&&h(R),V&&V.d(t),t&&h(I)}}}function it(t){var n,e,a,r,c,i,o,s,m,g,$,k,D,O,R,I=t[1].now.temp+"",x=t[1].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=_("Temp"),r=y(),c=u("p"),i=_(I),o=_("°C"),s=y(),m=u("div"),g=u("p"),$=_("Clouds"),k=y(),D=u("p"),O=_(x),R=_("%"),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=w(d,"Temp"),d.forEach(h),r=b(u),c=l(u,"P",{class:!0});var v=f(c);i=w(v,I),o=w(v,"°C"),v.forEach(h),u.forEach(h),s=b(t),m=l(t,"DIV",{});var p=f(m);g=l(p,"P",{class:!0});var y=f(g);$=w(y,"Clouds"),y.forEach(h),k=b(p),D=l(p,"P",{class:!0});var _=f(D);O=w(_,x),R=w(_,"%"),_.forEach(h),p.forEach(h),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(g,"class","svelte-9kdo4s"),d(D,"class","svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(c,o),v(t,s,u),v(t,m,u),p(m,g),p(g,$),p(m,k),p(m,D),p(D,O),p(D,R)},p:function(t,n){2&n&&I!==(I=t[1].now.temp+"")&&E(i,I),2&n&&x!==(x=t[1].now.clouds+"")&&E(O,x)},d:function(t){t&&h(n),t&&h(s),t&&h(m)}}}function ot(t){var n,e,a,r,c,i,o,s,m,g,_,w,E=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&Y(t),$=!t[1].updating&&!t[2].updating&&tt(t),x=[rt,at],P=[];function V(t,n){return t[2].updating||t[1].updating?0:1}s=V(t),m=P[s]=x[s](t);var j=!t[2].updating&&!t[1].updating&&ct(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),E&&E.c(),r=y(),c=u("div"),$&&$.c(),i=y(),o=u("div"),m.c(),g=y(),_=u("div"),j&&j.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var s=f(n);e=l(s,"DIV",{class:!0});var u=f(e);a=l(u,"DIV",{class:!0});var d=f(a);E&&E.l(d),d.forEach(h),r=b(u),c=l(u,"DIV",{class:!0});var v=f(c);$&&$.l(v),v.forEach(h),i=b(u),o=l(u,"DIV",{class:!0});var p=f(o);m.l(p),p.forEach(h),g=b(u),_=l(u,"DIV",{class:!0});var y=f(_);j&&j.l(y),y.forEach(h),u.forEach(h),s.forEach(h),this.h()},h:function(){d(a,"class","weatherCurrent-data-location svelte-9kdo4s"),d(c,"class","weatherCurrent-data-date"),d(o,"class","weatherCurrent-data-kp svelte-9kdo4s"),d(_,"class","current-details svelte-9kdo4s"),d(e,"class","weatherCurrent-data svelte-9kdo4s"),d(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),E&&E.m(a,null),p(e,r),p(e,c),$&&$.m(c,null),p(e,i),p(e,o),P[s].m(o,null),p(e,g),p(e,_),j&&j.m(_,null),w=!0},p:function(t,n){var e=k(n,1)[0];t[0].updating||!t[0].available||t[1].updating||t[2].updating?E&&(E.d(1),E=null):E?E.p(t,e):((E=Y(t)).c(),E.m(a,null)),t[1].updating||t[2].updating?$&&($.d(1),$=null):$?$.p(t,e):(($=tt(t)).c(),$.m(c,null));var r=s;(s=V(t))===r?P[s].p(t,e):(D(),O(P[r],1,1,(function(){P[r]=null})),R(),(m=P[s])?m.p(t,e):(m=P[s]=x[s](t)).c(),I(m,1),m.m(o,null)),t[2].updating||t[1].updating?j&&(j.d(1),j=null):j?j.p(t,e):((j=ct(t)).c(),j.m(_,null))},i:function(t){w||(I(m),w=!0)},o:function(t){O(m),w=!1},d:function(t){t&&h(n),E&&E.d(),$&&$.d(),P[s].d(),j&&j.d()}}}function st(t,n,e){var a,r,c;return x(t,Z,(function(t){return e(0,a=t)})),x(t,G,(function(t){return e(1,r=t)})),x(t,Q,(function(t){return e(2,c=t)})),[a,r,c]}!async function(){if("undefined"==typeof window)return;let t;W(Z,!0);try{t=await async function(){return new Promise(((t,n)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((n=>{t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(t=>{n(t)})):n(Error())}))}()}catch(t){return console.log(t),Z.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void W(Z,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),e=await n.json();Z.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:e.city}),t))),W(Z,!1)}(),Z.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return G.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void W(G,!1);W(G,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}G.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),W(G,!1)})),async function(){if("undefined"==typeof window)return;W(Q,!0);let t=await async function(){let t,n={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}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");n.usnoaa_data_raw.solar_wind_mag_field=await e.json(),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t=await e.json(),t=t.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:new Date(t.model_prediction_time)}))),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t,e=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),t=await e.text(),t=[...t.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],t=t.map((t=>Object.assign(Object.assign({},t.groups),{time:new Date(t.groups.time+" UTC")}))),n.usnoaa_data_raw.outlook_27_day=t,e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=await e.json(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let a=new Date,r=new Date(0,0,0),c=1e3,i=0;return n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,e)=>{t[1]>i&&(i=t[1]),t[1]<c&&(c=t[1]);let o=new Date(t[0]+" UTC");Math.abs(o.getTime()-a.getTime())<Math.abs(r.getTime()-a.getTime())&&(r=o,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:o,kp:t[1],observed:t[2]}})),n.now.kp_min=c.toString(),n.now.kp_max=i.toString(),console.log(n),n}();Q.update((n=>Object.assign(Object.assign({},n),t))),W(Q,!1)}();var ut=function(n){t(u,s);var e=X(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,st,ot,c,{}),n}return o(u)}();function lt(t,n,e,a,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void e(t)}o.done?n(s):Promise.resolve(s).then(a,r)}function ft(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function i(t){lt(c,a,r,i,o,"next",t)}function o(t){lt(c,a,r,i,o,"throw",t)}i(void 0)}))}}function ht(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function dt(t){var n,e,a=t[1].default,r=T(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=f(n);r&&r.l(e),e.forEach(h),this.h()},h:function(){d(n,"class","chip svelte-6dfxfp")},m:function(t,a){v(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=k(n,1)[0];r&&r.p&&(!e||1&c)&&B(r,a,t,t[0],e?N(a,t[0],c,null):S(t[0]),null)},i:function(t){e||(I(r,t),e=!0)},o:function(t){O(r,t),e=!1},d:function(t){t&&h(n),r&&r.d(t)}}}function vt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var pt=function(n){t(u,s);var e=ht(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,vt,dt,c,{}),n}return o(u)}();function mt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function gt(t){var n,e,a,r,c,i,o,s,g,E,$,D,O=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,E,$,k,D=Math.round(t[3])+"",O=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),E=y(),$=_(O),k=_("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=l(d,"I",{class:!0}),f(a).forEach(h),r=b(d),c=w(d,D),i=w(d,"°C"),d.forEach(h),o=b(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(h),E=b(v),$=w(v,O),k=w(v,"%"),v.forEach(h),u.forEach(h),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(g,"class","fas fa-cloud svelte-ghmp86"),d(s,"class","svelte-ghmp86"),d(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,E),p(s,$),p(s,k)},p:m,d:function(t){t&&h(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[2]),c=y(),i=u("p"),o=_(t[1]),s=y(),g=u("div"),E=u("h2"),$=_(t[0]),D=y(),O&&O.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var d=f(n);e=l(d,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=w(p,t[2]),p.forEach(h),c=b(v),i=l(v,"P",{class:!0});var m=f(i);o=w(m,t[1]),m.forEach(h),v.forEach(h),s=b(d),g=l(d,"DIV",{class:!0});var y=f(g);E=l(y,"H2",{class:!0});var _=f(E);$=w(_,t[0]),_.forEach(h),D=b(y),O&&O.l(y),y.forEach(h),d.forEach(h),this.h()},h:function(){d(a,"class","svelte-ghmp86"),d(i,"class","svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(E,"class","svelte-ghmp86"),d(g,"class","data svelte-ghmp86"),d(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),p(g,E),p(E,$),p(g,D),O&&O.m(g,null)},p:function(t,n){var e=k(n,1)[0];t[5]&&O.p(t,e)},i:m,o:m,d:function(t){t&&h(n),O&&O.d()}}}function yt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function _t(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=yt(a.time.getHours().toString())+":"+yt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var bt=function(n){t(u,s);var e=mt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,_t,gt,c,{prediction:6}),n}return o(u)}();function wt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Et(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function $t(t){var n,e;return n=new bt({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function kt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=$t(Et(t,a,c));var i=function(t){return O(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(h),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Et(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=$t(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);R()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)O(r[n]);e=!1},d:function(t){t&&h(n),C(r,t)}}}function Dt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>18e6)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(i),G.subscribe(i),[c]}var Ot=function(n){t(u,s);var e=wt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Dt,kt,c,{}),n}return o(u)}();function Rt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function It(t){var n,e,a;return e=new pt({props:{$$slots:{default:[xt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),P(e.$$.fragment),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var a=f(n);V(e.$$.fragment,a),a.forEach(h),this.h()},h:function(){d(n,"class","svelte-ghmp86")},m:function(t,r){v(t,n,r),j(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(I(e.$$.fragment,t),a=!0)},o:function(t){O(e.$$.fragment,t),a=!1},d:function(t){t&&h(n),M(e)}}}function xt(t){var n,e=t[0].observed+"";return{c:function(){n=_(e)},l:function(t){n=w(t,e)},m:function(t,e){v(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&E(n,e)},d:function(t){t&&h(n)}}}function Pt(t){var n,e,a,r,c,i,o,s,g,E,$,x,P,V,j="predicted"!=t[0].observed&&It(t),M=t[6]&&function(t){var n,e,a,r,c,i,o,s,g,E,$,k,D=Math.round(t[4])+"",O=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),E=y(),$=_(O),k=_("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=l(d,"I",{class:!0}),f(a).forEach(h),r=b(d),c=w(d,D),i=w(d,"°C"),d.forEach(h),o=b(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(h),E=b(v),$=w(v,O),k=w(v,"%"),v.forEach(h),u.forEach(h),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(g,"class","fas fa-cloud svelte-ghmp86"),d(s,"class","svelte-ghmp86"),d(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,E),p(s,$),p(s,k)},p:m,d:function(t){t&&h(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[3]),c=y(),i=u("p"),o=_(t[2]),s=y(),j&&j.c(),g=y(),E=u("div"),$=u("h2"),x=_(t[1]),P=y(),M&&M.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var d=f(n);e=l(d,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=w(p,t[3]),p.forEach(h),c=b(v),i=l(v,"P",{class:!0});var m=f(i);o=w(m,t[2]),m.forEach(h),v.forEach(h),s=b(d),j&&j.l(d),g=b(d),E=l(d,"DIV",{class:!0});var y=f(E);$=l(y,"H2",{class:!0});var _=f($);x=w(_,t[1]),_.forEach(h),P=b(y),M&&M.l(y),y.forEach(h),d.forEach(h),this.h()},h:function(){d(a,"class","svelte-ghmp86"),d(i,"class","svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d($,"class","svelte-ghmp86"),d(E,"class","data svelte-ghmp86"),d(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),j&&j.m(n,null),p(n,g),p(n,E),p(E,$),p($,x),p(E,P),M&&M.m(E,null),V=!0},p:function(t,e){var a=k(e,1)[0];"predicted"!=t[0].observed?j?(j.p(t,a),1&a&&I(j,1)):((j=It(t)).c(),I(j,1),j.m(n,g)):j&&(D(),O(j,1,1,(function(){j=null})),R()),t[6]&&M.p(t,a)},i:function(t){V||(I(j),V=!0)},o:function(t){O(j),V=!1},d:function(t){t&&h(n),j&&j.d(),M&&M.d()}}}function Vt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function jt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Vt(a.time.getHours().toString())+":"+Vt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,i,o,s,u]}var Mt=function(n){t(u,s);var e=Rt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,jt,Pt,c,{prediction:0}),n}return o(u)}();function Tt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Bt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function St(t){var n,e;return n=new Mt({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function Nt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=St(Bt(t,a,c));var i=function(t){return O(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(h),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Bt(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=St(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);R()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)O(r[n]);e=!1},d:function(t){t&&h(n),C(r,t)}}}function Ct(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())&&(o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(i),G.subscribe(i),[c]}var qt=function(n){t(u,s);var e=Tt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Ct,Nt,c,{}),n}return o(u)}();function Ht(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function At(t){var n,e,a,r,c,i,o,s,g,E,$,D,O=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,E,$,k,D=Math.round(t[3])+"",O=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),E=y(),$=_(O),k=_("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=l(d,"I",{class:!0}),f(a).forEach(h),r=b(d),c=w(d,D),i=w(d,"°C"),d.forEach(h),o=b(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(h),E=b(v),$=w(v,O),k=w(v,"%"),v.forEach(h),u.forEach(h),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(g,"class","fas fa-cloud svelte-ghmp86"),d(s,"class","svelte-ghmp86"),d(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,E),p(s,$),p(s,k)},p:m,d:function(t){t&&h(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[2]),c=y(),i=u("p"),o=_(t[1]),s=y(),g=u("div"),E=u("h2"),$=_(t[0]),D=y(),O&&O.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var d=f(n);e=l(d,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=w(p,t[2]),p.forEach(h),c=b(v),i=l(v,"P",{class:!0});var m=f(i);o=w(m,t[1]),m.forEach(h),v.forEach(h),s=b(d),g=l(d,"DIV",{class:!0});var y=f(g);E=l(y,"H2",{class:!0});var _=f(E);$=w(_,t[0]),_.forEach(h),D=b(y),O&&O.l(y),y.forEach(h),d.forEach(h),this.h()},h:function(){d(a,"class","svelte-ghmp86"),d(i,"class","svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(E,"class","svelte-ghmp86"),d(g,"class","data svelte-ghmp86"),d(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),p(g,E),p(E,$),p(g,D),O&&O.m(g,null)},p:function(t,n){var e=k(n,1)[0];t[5]&&O.p(t,e)},i:m,o:m,d:function(t){t&&h(n),O&&O.d()}}}function Jt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function zt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Jt(a.time.getHours().toString())+":"+Jt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var Kt=function(n){t(u,s);var e=Ht(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,zt,At,c,{prediction:6}),n}return o(u)}();function Ft(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Lt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Ut(t){var n,e;return n=new Kt({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function Zt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Ut(Lt(t,a,c));var i=function(t){return O(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(h),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Lt(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=Ut(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);R()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)O(r[n]);e=!1},d:function(t){t&&h(n),C(r,t)}}}function Gt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>864e5)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(i),G.subscribe(i),[c]}var Qt=function(n){t(u,s);var e=Ft(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Gt,Zt,c,{}),n}return o(u)}();function Wt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Xt(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=y(),r=u("p"),c=_("No prediction data"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var i=f(n);e=l(i,"I",{class:!0}),f(e).forEach(h),a=b(i),r=l(i,"P",{});var o=f(r);c=w(o,"No prediction data"),o.forEach(h),i.forEach(h),this.h()},h:function(){d(e,"class","fas fa-7x fa-exclamation-triangle"),d(n,"class","no-data svelte-6c4yca")},m:function(t,i){v(t,n,i),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&h(n)}}}function Yt(t){var n,e,a,r,c,i,o,s,m,g,E,k,x,T,B,S,N,C,q,z=t[0];return z&&(B=new z({})),{c:function(){n=u("div"),e=u("h2"),a=_("Forecast"),r=y(),c=u("div"),i=u("div"),o=_("hour"),s=y(),m=u("div"),g=_("3 day"),E=y(),k=u("div"),x=_("Long time"),T=y(),B&&P(B.$$.fragment),S=$(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"H2",{class:!0});var d=f(e);a=w(d,"Forecast"),d.forEach(h),r=b(u),c=l(u,"DIV",{class:!0});var v=f(c);i=l(v,"DIV",{class:!0});var p=f(i);o=w(p,"hour"),p.forEach(h),s=b(v),m=l(v,"DIV",{class:!0});var y=f(m);g=w(y,"3 day"),y.forEach(h),E=b(v),k=l(v,"DIV",{class:!0});var _=f(k);x=w(_,"Long time"),_.forEach(h),v.forEach(h),u.forEach(h),T=b(t),B&&V(B.$$.fragment,t),S=$(),this.h()},h:function(){d(e,"class","svelte-6c4yca"),d(i,"class","svelte-6c4yca"),H(i,"selected",t[0]==Ot),d(m,"class","svelte-6c4yca"),H(m,"selected",t[0]==qt),d(k,"class","svelte-6c4yca"),H(k,"selected",t[0]==Qt),d(c,"class","version-picker svelte-6c4yca"),d(n,"class","header svelte-6c4yca")},m:function(u,l){v(u,n,l),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(i,o),p(c,s),p(c,m),p(m,g),p(c,E),p(c,k),p(k,x),v(u,T,l),B&&j(B,u,l),v(u,S,l),N=!0,C||(q=[A(i,"click",t[3]),A(m,"click",t[4]),A(k,"click",t[5])],C=!0)},p:function(t,n){if(1&n&&H(i,"selected",t[0]==Ot),1&n&&H(m,"selected",t[0]==qt),1&n&&H(k,"selected",t[0]==Qt),z!==(z=t[0])){if(B){D();var e=B;O(e.$$.fragment,1,0,(function(){M(e,1)})),R()}z?(B=new z({}),P(B.$$.fragment),I(B.$$.fragment,1),j(B,S.parentNode,S)):B=null}},i:function(t){N||(B&&I(B.$$.fragment,t),N=!0)},o:function(t){B&&O(B.$$.fragment,t),N=!1},d:function(t){t&&h(n),t&&h(T),t&&h(S),B&&M(B,t),C=!1,J(q)}}}function tn(t){var n,e,a,r,c=[Yt,Xt],i=[];function o(t,n){return t[1].updating||t[2].updating?1:0}return e=o(t),a=i[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=f(n);a.l(e),e.forEach(h),this.h()},h:function(){d(n,"class","drawer svelte-6c4yca")},m:function(t,a){v(t,n,a),i[e].m(n,null),r=!0},p:function(t,r){var s=k(r,1)[0],u=e;(e=o(t))===u?i[e].p(t,s):(D(),O(i[u],1,1,(function(){i[u]=null})),R(),(a=i[e])?a.p(t,s):(a=i[e]=c[e](t)).c(),I(a,1),a.m(n,null))},i:function(t){r||(I(a),r=!0)},o:function(t){O(a),r=!1},d:function(t){t&&h(n),i[e].d()}}}function nn(t,n,e){var a,r;x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)}));var c=qt;return[c,a,r,function(){return e(0,c=Ot)},function(){return e(0,c=qt)},function(){return e(0,c=Qt)}]}var en=function(n){t(u,s);var e=Wt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,nn,tn,c,{}),n}return o(u)}();function an(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function rn(t){var n,e,a,r,c,i;return a=new ut({}),c=new en({}),{c:function(){n=y(),e=u("div"),P(a.$$.fragment),r=y(),P(c.$$.fragment),this.h()},l:function(t){z('[data-svelte="svelte-1q3846k"]',document.head).forEach(h),n=b(t),e=l(t,"DIV",{class:!0});var i=f(e);V(a.$$.fragment,i),r=b(i),V(c.$$.fragment,i),i.forEach(h),this.h()},h:function(){document.title="Aurora data",d(e,"class","homescreen svelte-pf4p6y")},m:function(t,o){v(t,n,o),v(t,e,o),j(a,e,null),p(e,r),j(c,e,null),i=!0},p:m,i:function(t){i||(I(a.$$.fragment,t),I(c.$$.fragment,t),i=!0)},o:function(t){O(a.$$.fragment,t),O(c.$$.fragment,t),i=!1},d:function(t){t&&h(n),t&&h(e),M(a),M(c)}}}var cn=function(n){t(u,s);var e=an(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,rn,c,{}),n}return o(u)}();export{cn as default}; @@ -1 +1 @@ -<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0,{}]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.b9472371.js"}catch(e){main="/Aurora-data/client/legacy/client.26d4afad.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-3231f19d.css rel=stylesheet> <title>Aurora data</title> <link href=/Aurora-data/client/client.b9472371.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.f58bd2e0.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-3231f19d.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> <div class="homescreen svelte-pf4p6y"><div class="svelte-9kdo4s weatherCurrent-wrapper"><div class="svelte-9kdo4s weatherCurrent-data"><div class="svelte-9kdo4s weatherCurrent-data-location"></div> <div class=weatherCurrent-data-date></div> <div class="svelte-9kdo4s weatherCurrent-data-kp"><div class="svelte-7k6qu0 lds-roller"><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div></div></div> <div class="svelte-9kdo4s current-details"></div></div></div> <div class="svelte-6c4yca drawer"><div class="svelte-6c4yca no-data"><i class="fa-7x fa-exclamation-triangle fas"></i> <p>No prediction data</div></div></div></div> </div>
\ No newline at end of file +<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0,{}]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.c78b597d.js"}catch(e){main="/Aurora-data/client/legacy/client.9db787ae.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-c543e7aa.css rel=stylesheet> <title>Aurora data</title> <link href=/Aurora-data/client/client.c78b597d.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.e52d0c93.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-c543e7aa.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> <div class="homescreen svelte-pf4p6y"><div class="svelte-9kdo4s weatherCurrent-wrapper"><div class="svelte-9kdo4s weatherCurrent-data"><div class="svelte-9kdo4s weatherCurrent-data-location"></div> <div class=weatherCurrent-data-date></div> <div class="svelte-9kdo4s weatherCurrent-data-kp"><div class="svelte-7k6qu0 lds-roller"><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div><div class=svelte-7k6qu0></div></div></div> <div class="svelte-9kdo4s current-details"></div></div></div> <div class="svelte-6c4yca drawer"><div class="svelte-6c4yca no-data"><i class="fa-7x fa-exclamation-triangle fas"></i> <p>No prediction data</div></div></div></div> </div>
\ No newline at end of file diff --git a/service-worker-index.html b/service-worker-index.html index 5a41ff5..d225c76 100644 --- a/service-worker-index.html +++ b/service-worker-index.html @@ -1 +1 @@ -<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.b9472371.js"}catch(e){main="/Aurora-data/client/legacy/client.26d4afad.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-3231f19d.css rel=stylesheet> <link href=/Aurora-data/client/client.b9472371.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.f58bd2e0.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-3231f19d.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> </div> </div>
\ No newline at end of file +<!doctype html> <html lang=en> <head> <meta charset=utf-8> <meta content="width=device-width,initial-scale=1" name=viewport> <meta content=#333333 name=theme-color> <base href=/Aurora-data/ > <link href=index.css rel=stylesheet> <link href=manifest.json rel=manifest crossorigin=use-credentials> <link href=favicon.png rel=icon type=image/png> <script crossorigin=anonymous src=https://kit.fontawesome.com/9fa565d9ec.js></script> <script>__SAPPER__={baseUrl:"/Aurora-data",preloaded:[void 0]};if('serviceWorker' in navigator)navigator.serviceWorker.register('/Aurora-data/service-worker.js');(function(){try{eval("async function x(){}");var main="/Aurora-data/client/client.c78b597d.js"}catch(e){main="/Aurora-data/client/legacy/client.9db787ae.js"};var s=document.createElement("script");try{new Function("if(0)import('')")();s.src=main;s.type="module";s.crossOrigin="use-credentials";}catch(e){s.src="/Aurora-data/client/shimport@2.0.4.js";s.setAttribute("data-main",main);}document.head.appendChild(s);}());</script> <link href=client/client-ea61129f.css rel=stylesheet><link href=client/index-c543e7aa.css rel=stylesheet> <link href=/Aurora-data/client/client.c78b597d.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/client-ea61129f.css rel=preload as=style><link href=/Aurora-data/client/index.e52d0c93.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/inject_styles.5607aec6.js rel=modulepreload as=script crossorigin=use-credentials><link href=/Aurora-data/client/index-c543e7aa.css rel=preload as=style></head> <body> <div class=app id=svelte> <div class="app-container svelte-lkkhqy"> </div> </div>
\ No newline at end of file diff --git a/service-worker.js b/service-worker.js index ed5fee4..81f9260 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -!function(){"use strict";const e=1651102434778,t=[{pattern:/^\/$/}],s=`cache${e}`,n=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),a=["/client/client.b9472371.js","/client/inject_styles.5607aec6.js","/client/index.f58bd2e0.js"].map((e=>"/Aurora-data"+e)).concat(n),c=new Set(a);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(a))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const n=new URL(s.request.url);n.protocol.startsWith("http")&&(n.hostname===self.location.hostname&&n.port!==self.location.port||(n.host===self.location.host&&c.has(n.pathname)?s.respondWith(caches.match(s.request)):n.origin===self.origin&&t.find((e=>e.pattern.test(n.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open(`offline${e}`).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const n=await e.match(s.request);if(n)return n;throw t}})))))}))}(); +!function(){"use strict";const e=1651135918633,t=[{pattern:/^\/$/}],s=`cache${e}`,n=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),a=["/client/client.c78b597d.js","/client/inject_styles.5607aec6.js","/client/index.e52d0c93.js"].map((e=>"/Aurora-data"+e)).concat(n),c=new Set(a);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(a))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const n=new URL(s.request.url);n.protocol.startsWith("http")&&(n.hostname===self.location.hostname&&n.port!==self.location.port||(n.host===self.location.host&&c.has(n.pathname)?s.respondWith(caches.match(s.request)):n.origin===self.origin&&t.find((e=>e.pattern.test(n.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open(`offline${e}`).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const n=await e.match(s.request);if(n)return n;throw t}})))))}))}(); |