diff options
author | jakobst1n <undefined> | 2022-04-27 03:00:14 +0200 |
---|---|---|
committer | jakobst1n <undefined> | 2022-04-27 03:00:14 +0200 |
commit | 9c27a6d63a26dde4b300c90e727846912a83ed97 (patch) | |
tree | 2f2e2ad9c0c49c32cf625a54bd9faa97797b3fdf | |
parent | e2ff737bd6e39e2af6211fbcb9b10e6d6ec9e4f5 (diff) | |
download | Aurora-data-9c27a6d63a26dde4b300c90e727846912a83ed97.tar.gz Aurora-data-9c27a6d63a26dde4b300c90e727846912a83ed97.zip |
Updates
-rw-r--r-- | client/client.6ce3f24e.js | 18 | ||||
-rw-r--r-- | client/client.8dd81e75.js | 18 | ||||
-rw-r--r-- | client/index-39e875ff.css (renamed from client/legacy/index-5b63c830.css) | 7 | ||||
-rw-r--r-- | client/index.4a80f6bf.js | 1 | ||||
-rw-r--r-- | client/index.d235304e.js | 1 | ||||
-rw-r--r-- | client/legacy/client.03ab3887.js | 18 | ||||
-rw-r--r-- | client/legacy/client.652277bf.js | 18 | ||||
-rw-r--r-- | client/legacy/index-39e875ff.css (renamed from client/index-5b63c830.css) | 7 | ||||
-rw-r--r-- | client/legacy/index.11be7e82.js | 1 | ||||
-rw-r--r-- | client/legacy/index.b1d86915.js | 1 | ||||
-rw-r--r-- | index.html | 2 | ||||
-rw-r--r-- | service-worker-index.html | 2 | ||||
-rw-r--r-- | service-worker.js | 2 |
13 files changed, 49 insertions, 47 deletions
diff --git a/client/client.6ce3f24e.js b/client/client.6ce3f24e.js deleted file mode 100644 index 5916919..0000000 --- a/client/client.6ce3f24e.js +++ /dev/null @@ -1,18 +0,0 @@ -function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}let l,u=!1;function f(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function d(t,e){if(u){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:f(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 p(t,e,n){u&&!n?d(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function h(t){t.parentNode.removeChild(t)}function m(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function g(t){return document.createElement(t)}function $(t){return document.createTextNode(t)}function _(){return $(" ")}function y(){return $("")}function v(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function b(t){return Array.from(t.childNodes)}function x(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 E(t,e,n){return function(t,e,n,r){return x(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,g)}function S(t,e){return x(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>$(e)),!0)}function w(t){return S(t," ")}function N(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function A(t,e=document.body){return Array.from(e.querySelectorAll(t))}function R(t){l=t}function k(){if(!l)throw new Error("Function called outside component initialization");return l}const P=[],j=[],L=[],q=[],O=Promise.resolve();let C=!1;function T(t){L.push(t)}const U=new Set;let B=0;function I(){const t=l;do{for(;B<P.length;){const t=P[B];B++,R(t),J(t.$$)}for(R(null),P.length=0,B=0;j.length;)j.pop()();for(let t=0;t<L.length;t+=1){const e=L[t];U.has(e)||(U.add(e),e())}L.length=0}while(P.length);for(;q.length;)q.pop()();C=!1,U.clear(),R(t)}function J(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(T)}}const z=new Set;let D;function K(){D={r:0,c:[],p:D}}function M(){D.r||o(D.c),D=D.p}function V(t,e){t&&t.i&&(z.delete(t),t.i(e))}function H(t,e,n,r){if(t&&t.o){if(z.has(t))return;z.add(t),D.c.push((()=>{z.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function W(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 Y(t){return"object"==typeof t&&null!==t?t:{}}function F(t){t&&t.c()}function G(t,e){t&&t.l(e)}function X(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||T((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(T)}function Q(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 Z(t,e){-1===t.$$.dirty[0]&&(P.push(t),C||(C=!0,O.then(I)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function tt(e,n,s,i,c,a,f,d=[-1]){const p=l;R(e);const m=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||(p?p.$$.context:[])),callbacks:r(),dirty:d,skip_bound:!1,root:n.target||p.$$.root};f&&f(m.root);let g=!1;if(m.ctx=s?s(e,n.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return m.ctx&&c(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),g&&Z(e,t)),n})):[],m.update(),g=!0,o(m.before_update),m.fragment=!!i&&i(m.ctx),n.target){if(n.hydrate){u=!0;const t=b(n.target);m.fragment&&m.fragment.l(t),t.forEach(h)}else m.fragment&&m.fragment.c();n.intro&&V(e.$$.fragment),X(e,n.target,n.anchor,n.customElement),u=!1,I()}R(p)}class et{$destroy(){Q(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 nt=[];function rt(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!nt.length;for(const t of o)t[1](),nt.push(t,e);if(t){for(let t=0;t<nt.length;t+=2)nt[t][0](nt[t+1]);nt.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 ot={};function st(t){let e,n;const r=t[1].default,o=function(t,e,n,r){if(t){const o=a(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c(){e=g("div"),o&&o.c(),this.h()},l(t){e=E(t,"DIV",{class:!0});var n=b(e);o&&o.l(n),n.forEach(h),this.h()},h(){v(e,"class","app-container svelte-lkkhqy")},m(t,r){p(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&function(t,e,n,r,o,s){if(o){const i=a(e,n,r,s);t.p(i,o)}}(o,r,t,t[0],n?function(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}(r,t[0],e,null):function(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}(t[0]),null)},i(t){n||(V(o,t),n=!0)},o(t){H(o,t),n=!1},d(t){t&&h(e),o&&o.d(t)}}}function it(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class ct extends et{constructor(t){super(),tt(this,t,it,st,i,{})}}function at(t){let e,n,r=t[1].stack+"";return{c(){e=g("pre"),n=$(r)},l(t){e=E(t,"PRE",{});var o=b(e);n=S(o,r),o.forEach(h)},m(t,r){p(t,e,r),d(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&N(n,r)},d(t){t&&h(e)}}}function lt(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let m=e[2]&&e[1].stack&&at(e);return{c(){r=_(),o=g("h1"),s=$(e[0]),i=_(),c=g("p"),a=$(f),l=_(),m&&m.c(),u=y(),this.h()},l(t){A('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(h),r=w(t),o=E(t,"H1",{class:!0});var n=b(o);s=S(n,e[0]),n.forEach(h),i=w(t),c=E(t,"P",{class:!0});var d=b(c);a=S(d,f),d.forEach(h),l=w(t),m&&m.l(t),u=y(),this.h()},h(){v(o,"class","svelte-jpshsi"),v(c,"class","svelte-jpshsi")},m(t,e){p(t,r,e),p(t,o,e),d(o,s),p(t,i,e),p(t,c,e),d(c,a),p(t,l,e),m&&m.m(t,e),p(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&N(s,t[0]),2&e&&f!==(f=t[1].message+"")&&N(a,f),t[2]&&t[1].stack?m?m.p(t,e):(m=at(t),m.c(),m.m(u.parentNode,u)):m&&(m.d(1),m=null)},i:t,o:t,d(t){t&&h(r),t&&h(o),t&&h(i),t&&h(c),t&&h(l),m&&m.d(t),t&&h(u)}}}function ut(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 ft extends et{constructor(t){super(),tt(this,t,ut,lt,i,{status:0,error:1})}}function dt(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&&F(n.$$.fragment),r=y()},l(t){n&&G(n.$$.fragment,t),r=y()},m(t,e){n&&X(n,t,e),p(t,r,e),o=!0},p(t,e){const o=16&e?W(s,[Y(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){K();const t=n;H(t.$$.fragment,1,0,(()=>{Q(t,1)})),M()}i?(n=new i(c()),F(n.$$.fragment),V(n.$$.fragment,1),X(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&V(n.$$.fragment,t),o=!0)},o(t){n&&H(n.$$.fragment,t),o=!1},d(t){t&&h(r),n&&Q(n,t)}}}function pt(t){let e,n;return e=new ft({props:{error:t[0],status:t[1]}}),{c(){F(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,r){X(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||(V(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function ht(t){let e,n,r,o;const s=[pt,dt],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=y()},l(t){n.l(t),r=y()},m(t,n){i[e].m(t,n),p(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(K(),H(i[a],1,1,(()=>{i[a]=null})),M(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),V(n,1),n.m(r.parentNode,r))},i(t){o||(V(n),o=!0)},o(t){H(n),o=!1},d(t){i[e].d(t),t&&h(r)}}}function mt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[ht]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new ct({props:s}),{c(){F(n.$$.fragment)},l(t){G(n.$$.fragment,t)},m(t,e){X(n,t,e),r=!0},p(t,[e]){const r=12&e?W(o,[4&e&&{segment:t[2][0]},8&e&&Y(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(V(n.$$.fragment,t),r=!0)},o(t){H(n.$$.fragment,t),r=!1},d(t){Q(n,t)}}}function gt(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,k().$$.after_update.push(u),f=ot,d=r,k().$$.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 $t extends et{constructor(t){super(),tt(this,t,gt,mt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const _t=[],yt=[{js:()=>Promise.all([import("./index.4a80f6bf.js"),__inject_styles(["client-ea61129f.css","index-5b63c830.css"])]).then((function(t){return t[0]}))}],vt=[{pattern:/^\/$/,parts:[{i:0}]}]; -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -function bt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function xt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let Et,St=1;const wt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Nt={};let At,Rt;function kt(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function Pt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(At))return null;let e=t.pathname.slice(At.length);if(""===e&&(e="/"),!_t.some((t=>t.test(e))))for(let n=0;n<vt.length;n+=1){const r=vt[n],o=r.pattern.exec(e);if(o){const n=kt(t.search),s=r.parts[r.parts.length-1],i=s.params?s.params(o):{},c={host:location.host,path:e,query:n,params:i};return{href:t.href,route:r,match:o,page:c}}}}function jt(t){if(1!==function(t){return null===t.which?t.button:t.which}(t))return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(t.defaultPrevented)return;const e=xt(t.target);if(!e)return;if(!e.href)return;const n="object"==typeof e.href&&"SVGAnimatedString"===e.href.constructor.name,r=String(n?e.href.baseVal:e.href);if(r===location.href)return void(location.hash||t.preventDefault());if(e.hasAttribute("download")||"external"===e.getAttribute("rel"))return;if(n?e.target.baseVal:e.target)return;const o=new URL(r);if(o.pathname===location.pathname&&o.search===location.search)return;const s=Pt(o);if(s){Ot(s,null,e.hasAttribute("sapper:noscroll"),o.hash),t.preventDefault(),wt.pushState({id:Et},"",o.href)}}function Lt(){return{x:pageXOffset,y:pageYOffset}}function qt(t){if(Nt[Et]=Lt(),t.state){const e=Pt(new URL(location.href));e?Ot(e,t.state.id):location.href=location.href}else St=St+1,function(t){Et=t}(St),wt.replaceState({id:Et},"",location.href)}function Ot(t,e,n,r){return bt(this,void 0,void 0,(function*(){const o=!!e;if(o)Et=e;else{const t=Lt();Nt[Et]=t,Et=e=++St,Nt[Et]=n?t:{x:0,y:0}}if(yield Rt(t),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let t,n=Nt[e];r&&(t=document.getElementById(r.slice(1)),t&&(n={x:0,y:t.getBoundingClientRect().top+scrollY})),Nt[Et]=n,o||t?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function Ct(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}let Tt,Ut=null;function Bt(t){const e=xt(t.target);e&&"prefetch"===e.rel&&function(t){const e=Pt(new URL(t,Ct(document)));if(e)Ut&&t===Ut.href||(Ut={href:t,promise:ee(e)}),Ut.promise}(e.href)}function It(t){clearTimeout(Tt),Tt=setTimeout((()=>{Bt(t)}),20)}function Jt(t,e={noscroll:!1,replaceState:!1}){const n=Pt(new URL(t,Ct(document)));return n?(wt[e.replaceState?"replaceState":"pushState"]({id:Et},"",t),Ot(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const zt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Dt,Kt,Mt,Vt=!1,Ht=[],Wt="{}";const Yt={page:function(t){const e=rt(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:rt(null),session:rt(zt&&zt.session)};let Ft,Gt,Xt;function Qt(t,e){const{error:n}=t;return Object.assign({error:n},e)}function Zt(t){return bt(this,void 0,void 0,(function*(){Dt&&Yt.preloading.set(!0);const e=function(t){return Ut&&Ut.href===t.href?Ut.promise:ee(t)}(t),n=Kt={},r=yield e,{redirect:o}=r;if(n===Kt)if(o)yield Jt(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield te(n,e,Qt(e,t.page))}}))}function te(t,e,n){return bt(this,void 0,void 0,(function*(){Yt.page.set(n),Yt.preloading.set(!1),Dt?Dt.$set(e):(e.stores={page:{subscribe:Yt.page.subscribe},preloading:{subscribe:Yt.preloading.subscribe},session:Yt.session},e.level0={props:yield Mt},e.notify=Yt.page.notify,Dt=new $t({target:Xt,props:e,hydrate:!0})),Ht=t,Wt=JSON.stringify(n.query),Vt=!0,Gt=!1}))}function ee(t){return bt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Mt){const t=()=>({});Mt=zt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},Ft)}let c,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>bt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==Wt)return!0;const o=Ht[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const d=a++;if(!Gt&&!u&&Ht[c]&&Ht[c].part===e.i)return Ht[c];u=!1;const{default:p,preload:h}=yield yt[e.i].js();let m;return m=Vt||!zt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},Ft):{}:zt.preloaded[c+1],s[`level${d}`]={component:p,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}var ne,re,oe;Yt.session.subscribe((t=>bt(void 0,void 0,void 0,(function*(){if(Ft=t,!Vt)return;Gt=!0;const e=Pt(new URL(location.href)),n=Kt={},{redirect:r,props:o,branch:s}=yield ee(e);n===Kt&&(r?yield Jt(r.location,{replaceState:!0}):yield te(s,o,Qt(o,e.page)))})))),ne={target:document.querySelector(".app")},re=ne.target,Xt=re,oe=zt.baseUrl,At=oe,Rt=Zt,"scrollRestoration"in wt&&(wt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{wt.scrollRestoration="auto"})),addEventListener("load",(()=>{wt.scrollRestoration="manual"})),addEventListener("click",jt),addEventListener("popstate",qt),addEventListener("touchstart",Bt),addEventListener("mousemove",It),zt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=zt;Mt||(Mt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Mt},level1:{props:{status:s,error:i},component:ft},segments:o},a=kt(n);te([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;wt.replaceState({id:St},"",e);const n=Pt(new URL(location.href));if(n)return Ot(n,St,!0,t)}));export{m as A,A as B,et as S,b as a,v as b,E as c,h as d,g as e,p as f,d as g,_ as h,tt as i,w as j,S as k,N as l,y as m,t as n,K as o,H as p,M as q,V as r,i as s,$ as t,c as u,F as v,rt as w,G as x,X as y,Q as z}; - -import __inject_styles from './inject_styles.5607aec6.js';
\ No newline at end of file diff --git a/client/client.8dd81e75.js b/client/client.8dd81e75.js new file mode 100644 index 0000000..e96ddb4 --- /dev/null +++ b/client/client.8dd81e75.js @@ -0,0 +1,18 @@ +function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,e,n,r){if(t){const o=l(t,e,n,r);return t[0](o)}}function l(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function u(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;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){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function w(t){return Array.from(t.childNodes)}function N(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 A(t,e,n){return function(t,e,n,r){return N(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 R(t,e){return N(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 R(t," ")}function P(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e=document.body){return Array.from(e.querySelectorAll(t))}function L(t){p=t}function q(){if(!p)throw new Error("Function called outside component initialization");return p}const C=[],O=[],T=[],U=[],B=Promise.resolve();let I=!1;function D(t){T.push(t)}const J=new Set;let z=0;function K(){const t=p;do{for(;z<C.length;){const t=C[z];z++,L(t),M(t.$$)}for(L(null),C.length=0,z=0;O.length;)O.pop()();for(let t=0;t<T.length;t+=1){const e=T[t];J.has(e)||(J.add(e),e())}T.length=0}while(C.length);for(;U.length;)U.pop()();I=!1,J.clear(),L(t)}function M(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(D)}}const V=new Set;let H;function F(){H={r:0,c:[],p:H}}function W(){H.r||o(H.c),H=H.p}function Y(t,e){t&&t.i&&(V.delete(t),t.i(e))}function G(t,e,n,r){if(t&&t.o){if(V.has(t))return;V.add(t),H.c.push((()=>{V.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function X(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 Q(t){return"object"==typeof t&&null!==t?t:{}}function Z(t){t&&t.c()}function tt(t,e){t&&t.l(e)}function et(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||D((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(D)}function nt(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 rt(t,e){-1===t.$$.dirty[0]&&(C.push(t),I||(I=!0,B.then(K)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ot(e,n,s,i,c,a,l,u=[-1]){const f=p;L(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&&rt(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=w(n.target);d.fragment&&d.fragment.l(t),t.forEach(_)}else d.fragment&&d.fragment.c();n.intro&&Y(e.$$.fragment),et(e,n.target,n.anchor,n.customElement),h=!1,K()}L(f)}class st{$destroy(){nt(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 it=[];function ct(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!it.length;for(const t of o)t[1](),it.push(t,e);if(t){for(let t=0;t<it.length;t+=2)it[t][0](it[t+1]);it.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 at={};function lt(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=A(t,"DIV",{class:!0});var n=w(e);o&&o.l(n),n.forEach(_),this.h()},h(){S(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||(Y(o,t),n=!0)},o(t){G(o,t),n=!1},d(t){t&&_(e),o&&o.d(t)}}}function ut(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class ft extends st{constructor(t){super(),ot(this,t,ut,lt,i,{})}}function dt(t){let e,n,r=t[1].stack+"";return{c(){e=v("pre"),n=b(r)},l(t){e=A(t,"PRE",{});var o=w(e);n=R(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 pt(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&&dt(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){j('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(_),r=k(t),o=A(t,"H1",{class:!0});var n=w(o);s=R(n,e[0]),n.forEach(_),i=k(t),c=A(t,"P",{class:!0});var p=w(c);a=R(p,f),p.forEach(_),l=k(t),d&&d.l(t),u=E(),this.h()},h(){S(o,"class","svelte-jpshsi"),S(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=dt(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 ht(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 mt extends st{constructor(t){super(),ot(this,t,ht,pt,i,{status:0,error:1})}}function gt(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&&Z(n.$$.fragment),r=E()},l(t){n&&tt(n.$$.fragment,t),r=E()},m(t,e){n&&et(n,t,e),$(t,r,e),o=!0},p(t,e){const o=16&e?X(s,[Q(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){F();const t=n;G(t.$$.fragment,1,0,(()=>{nt(t,1)})),W()}i?(n=new i(c()),Z(n.$$.fragment),Y(n.$$.fragment,1),et(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&Y(n.$$.fragment,t),o=!0)},o(t){n&&G(n.$$.fragment,t),o=!1},d(t){t&&_(r),n&&nt(n,t)}}}function $t(t){let e,n;return e=new mt({props:{error:t[0],status:t[1]}}),{c(){Z(e.$$.fragment)},l(t){tt(e.$$.fragment,t)},m(t,r){et(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||(Y(e.$$.fragment,t),n=!0)},o(t){G(e.$$.fragment,t),n=!1},d(t){nt(e,t)}}}function _t(t){let e,n,r,o;const s=[$t,gt],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):(F(),G(i[a],1,1,(()=>{i[a]=null})),W(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),Y(n,1),n.m(r.parentNode,r))},i(t){o||(Y(n),o=!0)},o(t){G(n),o=!1},d(t){i[e].d(t),t&&_(r)}}}function yt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[_t]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new ft({props:s}),{c(){Z(n.$$.fragment)},l(t){tt(n.$$.fragment,t)},m(t,e){et(n,t,e),r=!0},p(t,[e]){const r=12&e?X(o,[4&e&&{segment:t[2][0]},8&e&&Q(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(Y(n.$$.fragment,t),r=!0)},o(t){G(n.$$.fragment,t),r=!1},d(t){nt(n,t)}}}function vt(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,q().$$.after_update.push(u),f=at,d=r,q().$$.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 bt extends st{constructor(t){super(),ot(this,t,vt,yt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const xt=[],Et=[{js:()=>Promise.all([import("./index.d235304e.js"),__inject_styles(["client-ea61129f.css","index-39e875ff.css"])]).then((function(t){return t[0]}))}],St=[{pattern:/^\/$/,parts:[{i:0}]}]; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +function wt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function Nt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let At,Rt=1;const kt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Pt={};let jt,Lt;function qt(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function Ct(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(jt))return null;let e=t.pathname.slice(jt.length);if(""===e&&(e="/"),!xt.some((t=>t.test(e))))for(let n=0;n<St.length;n+=1){const r=St[n],o=r.pattern.exec(e);if(o){const n=qt(t.search),s=r.parts[r.parts.length-1],i=s.params?s.params(o):{},c={host:location.host,path:e,query:n,params:i};return{href:t.href,route:r,match:o,page:c}}}}function Ot(t){if(1!==function(t){return null===t.which?t.button:t.which}(t))return;if(t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;if(t.defaultPrevented)return;const e=Nt(t.target);if(!e)return;if(!e.href)return;const n="object"==typeof e.href&&"SVGAnimatedString"===e.href.constructor.name,r=String(n?e.href.baseVal:e.href);if(r===location.href)return void(location.hash||t.preventDefault());if(e.hasAttribute("download")||"external"===e.getAttribute("rel"))return;if(n?e.target.baseVal:e.target)return;const o=new URL(r);if(o.pathname===location.pathname&&o.search===location.search)return;const s=Ct(o);if(s){Bt(s,null,e.hasAttribute("sapper:noscroll"),o.hash),t.preventDefault(),kt.pushState({id:At},"",o.href)}}function Tt(){return{x:pageXOffset,y:pageYOffset}}function Ut(t){if(Pt[At]=Tt(),t.state){const e=Ct(new URL(location.href));e?Bt(e,t.state.id):location.href=location.href}else Rt=Rt+1,function(t){At=t}(Rt),kt.replaceState({id:At},"",location.href)}function Bt(t,e,n,r){return wt(this,void 0,void 0,(function*(){const o=!!e;if(o)At=e;else{const t=Tt();Pt[At]=t,At=e=++Rt,Pt[At]=n?t:{x:0,y:0}}if(yield Lt(t),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let t,n=Pt[e];r&&(t=document.getElementById(r.slice(1)),t&&(n={x:0,y:t.getBoundingClientRect().top+scrollY})),Pt[At]=n,o||t?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function It(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}let Dt,Jt=null;function zt(t){const e=Nt(t.target);e&&"prefetch"===e.rel&&function(t){const e=Ct(new URL(t,It(document)));if(e)Jt&&t===Jt.href||(Jt={href:t,promise:se(e)}),Jt.promise}(e.href)}function Kt(t){clearTimeout(Dt),Dt=setTimeout((()=>{zt(t)}),20)}function Mt(t,e={noscroll:!1,replaceState:!1}){const n=Ct(new URL(t,It(document)));return n?(kt[e.replaceState?"replaceState":"pushState"]({id:At},"",t),Bt(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const Vt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Ht,Ft,Wt,Yt=!1,Gt=[],Xt="{}";const Qt={page:function(t){const e=ct(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:ct(null),session:ct(Vt&&Vt.session)};let Zt,te,ee;function ne(t,e){const{error:n}=t;return Object.assign({error:n},e)}function re(t){return wt(this,void 0,void 0,(function*(){Ht&&Qt.preloading.set(!0);const e=function(t){return Jt&&Jt.href===t.href?Jt.promise:se(t)}(t),n=Ft={},r=yield e,{redirect:o}=r;if(n===Ft)if(o)yield Mt(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield oe(n,e,ne(e,t.page))}}))}function oe(t,e,n){return wt(this,void 0,void 0,(function*(){Qt.page.set(n),Qt.preloading.set(!1),Ht?Ht.$set(e):(e.stores={page:{subscribe:Qt.page.subscribe},preloading:{subscribe:Qt.preloading.subscribe},session:Qt.session},e.level0={props:yield Wt},e.notify=Qt.page.notify,Ht=new bt({target:ee,props:e,hydrate:!0})),Gt=t,Xt=JSON.stringify(n.query),Yt=!0,te=!1}))}function se(t){return wt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Wt){const t=()=>({});Wt=Vt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},Zt)}let c,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>wt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==Xt)return!0;const o=Gt[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const d=a++;if(!te&&!u&&Gt[c]&&Gt[c].part===e.i)return Gt[c];u=!1;const{default:p,preload:h}=yield Et[e.i].js();let m;return m=Yt||!Vt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},Zt):{}:Vt.preloaded[c+1],s[`level${d}`]={component:p,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}var ie,ce,ae;Qt.session.subscribe((t=>wt(void 0,void 0,void 0,(function*(){if(Zt=t,!Yt)return;te=!0;const e=Ct(new URL(location.href)),n=Ft={},{redirect:r,props:o,branch:s}=yield se(e);n===Ft&&(r?yield Mt(r.location,{replaceState:!0}):yield oe(s,o,ne(o,e.page)))})))),ie={target:document.querySelector(".app")},ce=ie.target,ee=ce,ae=Vt.baseUrl,jt=ae,Lt=re,"scrollRestoration"in kt&&(kt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{kt.scrollRestoration="auto"})),addEventListener("load",(()=>{kt.scrollRestoration="manual"})),addEventListener("click",Ot),addEventListener("popstate",Ut),addEventListener("touchstart",zt),addEventListener("mousemove",Kt),Vt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=Vt;Wt||(Wt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Wt},level1:{props:{status:s,error:i},component:mt},segments:o},a=qt(n);oe([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;kt.replaceState({id:Rt},"",e);const n=Ct(new URL(location.href));if(n)return Bt(n,Rt,!0,t)}));export{a as A,f as B,d as C,u as D,y as E,j as F,st as S,w as a,S as b,A as c,_ as d,v as e,$ as f,g,x as h,ot as i,k as j,R as k,P as l,E as m,t as n,F as o,G as p,W as q,Y as r,i as s,b as t,c as u,Z as v,ct as w,tt as x,et as y,nt as z}; + +import __inject_styles from './inject_styles.5607aec6.js';
\ No newline at end of file diff --git a/client/legacy/index-5b63c830.css b/client/index-39e875ff.css index 1c2cb5b..350d2c1 100644 --- a/client/legacy/index-5b63c830.css +++ b/client/index-39e875ff.css @@ -1,8 +1,9 @@ .lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} -.weatherCurrent-wrapper.svelte-9mqc59.svelte-9mqc59{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( +.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) - ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9mqc59.svelte-9mqc59{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9mqc59.svelte-9mqc59{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9mqc59 .symbol.svelte-9mqc59{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9mqc59 h1.svelte-9mqc59{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9mqc59 h2.svelte-9mqc59{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9mqc59.svelte-9mqc59{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9mqc59 p.svelte-9mqc59{line-height:1.375} -.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} + ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9kdo4s.svelte-9kdo4s{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} +.chip.svelte-6dfxfp{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:linear-gradient(90deg, #84fab0, #8fd3f4 51%, #84fab0) 100% / 200%;color:white} +.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} .predicted-weather.svelte-1romtap.svelte-1romtap{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){.predicted-weather.svelte-1romtap.svelte-1romtap{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-1romtap.svelte-1romtap{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-1romtap h2.svelte-1romtap{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-1romtap.svelte-1romtap{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-1romtap.svelte-1romtap::-webkit-scrollbar{display:none}.no-data.svelte-1romtap.svelte-1romtap{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1romtap.svelte-1romtap{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.4a80f6bf.js b/client/index.4a80f6bf.js deleted file mode 100644 index 659d7e9..0000000 --- a/client/index.4a80f6bf.js +++ /dev/null @@ -1 +0,0 @@ -import{S as a,i as t,s as e,e as s,c as n,a as l,d as r,b as c,f as i,g as o,n as u,w as d,h as p,t as h,j as f,k as m,l as v,m as g,o as w,p as _,q as b,r as E,u as y,v as D,x as $,y as k,z as j,A as I,B as O}from"./client.6ce3f24e.js";function V(a){let t,e,d,p,h,f,m,v,g;return{c(){t=s("div"),e=s("div"),d=s("div"),p=s("div"),h=s("div"),f=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(a){t=n(a,"DIV",{class:!0});var s=l(t);e=n(s,"DIV",{class:!0}),l(e).forEach(r),d=n(s,"DIV",{class:!0}),l(d).forEach(r),p=n(s,"DIV",{class:!0}),l(p).forEach(r),h=n(s,"DIV",{class:!0}),l(h).forEach(r),f=n(s,"DIV",{class:!0}),l(f).forEach(r),m=n(s,"DIV",{class:!0}),l(m).forEach(r),v=n(s,"DIV",{class:!0}),l(v).forEach(r),g=n(s,"DIV",{class:!0}),l(g).forEach(r),s.forEach(r),this.h()},h(){c(e,"class","svelte-7k6qu0"),c(d,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(a,s){i(a,t,s),o(t,e),o(t,d),o(t,p),o(t,h),o(t,f),o(t,m),o(t,v),o(t,g)},p:u,i:u,o:u,d(a){a&&r(t)}}}class q extends a{constructor(a){super(),t(this,a,null,V,e,{})}}const P={updated:!1,updating:!0},x=d(Object.assign(Object.assign({},P),{available:!1,longitude:null,latitude:null,city:null})),T=d(Object.assign(Object.assign({},P),{available:!1})),S=d(Object.assign({},P));function C(a,t=!1){let e=t?{}:{updated:new Date};a.update((a=>Object.assign(Object.assign(Object.assign({},a),e),{updating:t})))}function M(a){let t,e,u,d,g=a[0].city+"";return{c(){t=s("i"),e=p(),u=s("h1"),d=h(g),this.h()},l(a){t=n(a,"I",{class:!0}),l(t).forEach(r),e=f(a),u=n(a,"H1",{class:!0});var s=l(u);d=m(s,g),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9mqc59"),c(u,"class","svelte-9mqc59")},m(a,s){i(a,t,s),i(a,e,s),i(a,u,s),o(u,d)},p(a,t){1&t&&g!==(g=a[0].city+"")&&v(d,g)},d(a){a&&r(t),a&&r(e),a&&r(u)}}}function N(a){let t,e,c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),e=h(c)},l(a){t=n(a,"P",{});var s=l(t);e=m(s,c),s.forEach(r)},m(a,s){i(a,t,s),o(t,e)},p(a,t){2&t&&c!==(c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&v(e,c)},d(a){a&&r(t)}}}function z(a){let t,e;return{c(){t=s("p"),e=h("There is more than 10 minutes difference between data updates")},l(a){t=n(a,"P",{});var s=l(t);e=m(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(a,s){i(a,t,s),o(t,e)},p:u,d(a){a&&r(t)}}}function A(a){return{c:u,l:u,m:u,p:u,d:u}}function H(a){let t,e,d,g,w,_,b,E,y,D,$,k,j=a[2].now.kp+"",I=a[2].now.kp_max+"",O=a[2].now.kp_min+"";return{c(){t=s("h2"),e=h("KP "),d=h(j),g=p(),w=s("p"),_=s("span"),b=h("↑ KP "),E=h(I),y=p(),D=s("span"),$=h("↓ KP "),k=h(O),this.h()},l(a){t=n(a,"H2",{class:!0});var s=l(t);e=m(s,"KP "),d=m(s,j),s.forEach(r),g=f(a),w=n(a,"P",{});var c=l(w);_=n(c,"SPAN",{classname:!0});var i=l(_);b=m(i,"↑ KP "),E=m(i,I),i.forEach(r),y=f(c),D=n(c,"SPAN",{classname:!0});var o=l(D);$=m(o,"↓ KP "),k=m(o,O),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9mqc59"),c(_,"classname","pr-2"),c(D,"classname","pl-2")},m(a,s){i(a,t,s),o(t,e),o(t,d),i(a,g,s),i(a,w,s),o(w,_),o(_,b),o(_,E),o(w,y),o(w,D),o(D,$),o(D,k)},p(a,t){4&t&&j!==(j=a[2].now.kp+"")&&v(d,j),4&t&&I!==(I=a[2].now.kp_max+"")&&v(E,I),4&t&&O!==(O=a[2].now.kp_min+"")&&v(k,O)},i:u,o:u,d(a){a&&r(t),a&&r(g),a&&r(w)}}}function K(a){let t,e;return t=new q({}),{c(){D(t.$$.fragment)},l(a){$(t.$$.fragment,a)},m(a,s){k(t,a,s),e=!0},p:u,i(a){e||(E(t.$$.fragment,a),e=!0)},o(a){_(t.$$.fragment,a),e=!1},d(a){j(t,a)}}}function B(a){let t,e,u,d,w,_,b,E,y=a[2].now.bz+"",D=a[1].available&&J(a);return{c(){t=s("div"),e=s("p"),u=h("BZ"),d=p(),w=s("p"),_=h(y),b=p(),D&&D.c(),E=g(),this.h()},l(a){t=n(a,"DIV",{});var s=l(t);e=n(s,"P",{class:!0});var c=l(e);u=m(c,"BZ"),c.forEach(r),d=f(s),w=n(s,"P",{class:!0});var i=l(w);_=m(i,y),i.forEach(r),s.forEach(r),b=f(a),D&&D.l(a),E=g(),this.h()},h(){c(e,"class","svelte-9mqc59"),c(w,"class","svelte-9mqc59")},m(a,s){i(a,t,s),o(t,e),o(e,u),o(t,d),o(t,w),o(w,_),i(a,b,s),D&&D.m(a,s),i(a,E,s)},p(a,t){4&t&&y!==(y=a[2].now.bz+"")&&v(_,y),a[1].available?D?D.p(a,t):(D=J(a),D.c(),D.m(E.parentNode,E)):D&&(D.d(1),D=null)},d(a){a&&r(t),a&&r(b),D&&D.d(a),a&&r(E)}}}function J(a){let t,e,u,d,g,w,_,b,E,y,D,$,k,j,I,O=a[1].now.temp+"",V=a[1].now.clouds+"";return{c(){t=s("div"),e=s("p"),u=h("Temp"),d=p(),g=s("p"),w=h(O),_=h("°C"),b=p(),E=s("div"),y=s("p"),D=h("Clouds"),$=p(),k=s("p"),j=h(V),I=h("%"),this.h()},l(a){t=n(a,"DIV",{});var s=l(t);e=n(s,"P",{class:!0});var c=l(e);u=m(c,"Temp"),c.forEach(r),d=f(s),g=n(s,"P",{class:!0});var i=l(g);w=m(i,O),_=m(i,"°C"),i.forEach(r),s.forEach(r),b=f(a),E=n(a,"DIV",{});var o=l(E);y=n(o,"P",{class:!0});var p=l(y);D=m(p,"Clouds"),p.forEach(r),$=f(o),k=n(o,"P",{class:!0});var h=l(k);j=m(h,V),I=m(h,"%"),h.forEach(r),o.forEach(r),this.h()},h(){c(e,"class","svelte-9mqc59"),c(g,"class","svelte-9mqc59"),c(y,"class","svelte-9mqc59"),c(k,"class","svelte-9mqc59")},m(a,s){i(a,t,s),o(t,e),o(e,u),o(t,d),o(t,g),o(g,w),o(g,_),i(a,b,s),i(a,E,s),o(E,y),o(y,D),o(E,$),o(E,k),o(k,j),o(k,I)},p(a,t){2&t&&O!==(O=a[1].now.temp+"")&&v(w,O),2&t&&V!==(V=a[1].now.clouds+"")&&v(j,V)},d(a){a&&r(t),a&&r(b),a&&r(E)}}}function L(a){let t,e,u,d,h,m,v,g,y,D,$,k,j,I=!a[0].updating&&a[0].available&&M(a);function O(a,t){return 6&t&&(m=null),a[1].updating||a[2].updating?A:(null==m&&(m=!!(Math.abs(a[1].updated-a[2].updated)>6e5)),m?z:N)}let V=O(a,-1),q=V(a);const P=[K,H],x=[];function T(a,t){return a[2].updating||a[1].updating?0:1}y=T(a),D=x[y]=P[y](a);let S=!a[2].updating&&!a[1].updating&&B(a);return{c(){t=s("div"),e=s("div"),u=s("div"),I&&I.c(),d=p(),h=s("div"),q.c(),v=p(),g=s("div"),D.c(),$=p(),k=s("div"),S&&S.c(),this.h()},l(a){t=n(a,"DIV",{class:!0});var s=l(t);e=n(s,"DIV",{class:!0});var c=l(e);u=n(c,"DIV",{class:!0});var i=l(u);I&&I.l(i),i.forEach(r),d=f(c),h=n(c,"DIV",{class:!0});var o=l(h);q.l(o),o.forEach(r),v=f(c),g=n(c,"DIV",{class:!0});var p=l(g);D.l(p),p.forEach(r),$=f(c),k=n(c,"DIV",{class:!0});var m=l(k);S&&S.l(m),m.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","weatherCurrent-data-location svelte-9mqc59"),c(h,"class","weatherCurrent-data-date"),c(g,"class","weatherCurrent-data-kp svelte-9mqc59"),c(k,"class","current-details svelte-9mqc59"),c(e,"class","weatherCurrent-data svelte-9mqc59"),c(t,"class","weatherCurrent-wrapper svelte-9mqc59")},m(a,s){i(a,t,s),o(t,e),o(e,u),I&&I.m(u,null),o(e,d),o(e,h),q.m(h,null),o(e,v),o(e,g),x[y].m(g,null),o(e,$),o(e,k),S&&S.m(k,null),j=!0},p(a,[t]){!a[0].updating&&a[0].available?I?I.p(a,t):(I=M(a),I.c(),I.m(u,null)):I&&(I.d(1),I=null),V===(V=O(a,t))&&q?q.p(a,t):(q.d(1),q=V(a),q&&(q.c(),q.m(h,null)));let e=y;y=T(a),y===e?x[y].p(a,t):(w(),_(x[e],1,1,(()=>{x[e]=null})),b(),D=x[y],D?D.p(a,t):(D=x[y]=P[y](a),D.c()),E(D,1),D.m(g,null)),a[2].updating||a[1].updating?S&&(S.d(1),S=null):S?S.p(a,t):(S=B(a),S.c(),S.m(k,null))},i(a){j||(E(D),j=!0)},o(a){_(D),j=!1},d(a){a&&r(t),I&&I.d(),q.d(),x[y].d(),S&&S.d()}}}function U(a,t,e){let s,n,l;return y(a,x,(a=>e(0,s=a))),y(a,T,(a=>e(1,n=a))),y(a,S,(a=>e(2,l=a))),[s,n,l]}!async function(){if("undefined"==typeof window)return;let a;C(x,!0);try{a=await async function(){return new Promise(((a,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{a({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(a=>{t(a)})):t(Error())}))}()}catch(a){return console.log(a),x.update((a=>Object.assign(Object.assign({},a),{available:!1,city:null,longitude:null,latitude:null}))),void C(x,!1)}let t=await fetch(`https://geocode.xyz/${a.latitude},${a.longitude}?geoit=json`),e=await t.json();x.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:e.city}),a))),C(x,!1)}(),x.subscribe((async function(a=null){if("undefined"==typeof window)return;if(null===a)return;if(a.updating)return;if(!a.available)return T.update((a=>Object.assign(Object.assign({},a),{available:!1}))),void C(T,!1);C(T,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a.latitude}&lon=${a.longitude}`),e=await t.json(),s={clouds:null,temp:null};try{s.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((a=>Object.assign(Object.assign({},a),{time:new Date(a.time)})))}catch(a){}T.update((a=>Object.assign(Object.assign({},a),{yr_data_raw:e,now:s,available:!0}))),C(T,!1)})),async function(){if("undefined"==typeof window)return;C(S,!0);let a=await async function(){let a={now:{bz:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1}},t=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");a.usnoaa_data_raw.solar_wind_mag_field=await t.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,t=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),a.usnoaa_data_raw.noaa_planetary_k_index_forecast=await t.json(),a.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let e=new Date,s=new Date(0,0,0),n=1e3,l=0;return a.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,r)=>{t[1]>l&&(l=t[1]),t[1]<n&&(n=t[1]);let c=new Date(t[0]+" UTC");Math.abs(c.getTime()-e.getTime())<Math.abs(s.getTime()-e.getTime())&&(s=c,a.now.kp=t[1]),a.usnoaa_data_raw.noaa_planetary_k_index_forecast[r]={time:c,kp:t[1],observed:t[2]}})),a.now.kp_min=n.toString(),a.now.kp_max=l.toString(),a}();S.update((t=>Object.assign(Object.assign({},t),a))),C(S,!1)}();class Z extends a{constructor(a){super(),t(this,a,U,L,e,{})}}function F(a){let t,e,d,v,g,w,_,b,E,y,D,$,k=a[5]&&function(a){let t,e,d,v,g,w,_,b,E,y,D,$;return{c(){t=s("div"),e=s("p"),d=s("i"),v=p(),g=h(a[3]),w=h("°C"),_=p(),b=s("p"),E=s("i"),y=p(),D=h(a[4]),$=h("%"),this.h()},l(s){t=n(s,"DIV",{});var c=l(t);e=n(c,"P",{});var i=l(e);d=n(i,"I",{class:!0}),l(d).forEach(r),v=f(i),g=m(i,a[3]),w=m(i,"°C"),i.forEach(r),_=f(c),b=n(c,"P",{});var o=l(b);E=n(o,"I",{class:!0}),l(E).forEach(r),y=f(o),D=m(o,a[4]),$=m(o,"%"),o.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half"),c(E,"class","fas fa-cloud")},m(a,s){i(a,t,s),o(t,e),o(e,d),o(e,v),o(e,g),o(e,w),o(t,_),o(t,b),o(b,E),o(b,y),o(b,D),o(b,$)},p:u,d(a){a&&r(t)}}}(a);return{c(){t=s("div"),e=s("div"),d=s("h3"),v=h(a[2]),g=p(),w=s("p"),_=h(a[1]),b=p(),E=s("div"),y=s("h2"),D=h(a[0]),$=p(),k&&k.c(),this.h()},l(s){t=n(s,"DIV",{class:!0});var c=l(t);e=n(c,"DIV",{});var i=l(e);d=n(i,"H3",{class:!0});var o=l(d);v=m(o,a[2]),o.forEach(r),g=f(i),w=n(i,"P",{});var u=l(w);_=m(u,a[1]),u.forEach(r),i.forEach(r),b=f(c),E=n(c,"DIV",{class:!0});var p=l(E);y=n(p,"H2",{class:!0});var h=l(y);D=m(h,a[0]),h.forEach(r),$=f(p),k&&k.l(p),p.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-u548p6"),c(y,"class","svelte-u548p6"),c(E,"class","data svelte-u548p6"),c(t,"class","prediction-details svelte-u548p6")},m(a,s){i(a,t,s),o(t,e),o(e,d),o(d,v),o(e,g),o(e,w),o(w,_),o(t,b),o(t,E),o(E,y),o(y,D),o(E,$),k&&k.m(E,null)},p(a,[t]){a[5]&&k.p(a,t)},i:u,o:u,d(a){a&&r(t),k&&k.d()}}}function G(a,t=2){let e=a;for(let s=0;s<t-a.length;s++)e="0"+e;return e}function Q(a,t,e){let{prediction:s}=t;let n=s.kp,l=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=G(s.time.getHours().toString())+":"+G(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return a.$$set=a=>{"prediction"in a&&e(6,s=a.prediction)},[n,l,r,c,i,o,s]}class R extends a{constructor(a){super(),t(this,a,Q,F,e,{prediction:6})}}function W(a,t,e){const s=a.slice();return s[5]=t[e],s[7]=e,s}function X(a){let t,e,d,v,g;return{c(){t=s("div"),e=s("i"),d=p(),v=s("p"),g=h("No prediction data"),this.h()},l(a){t=n(a,"DIV",{class:!0});var s=l(t);e=n(s,"I",{class:!0}),l(e).forEach(r),d=f(s),v=n(s,"P",{});var c=l(v);g=m(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(e,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-1romtap")},m(a,s){i(a,t,s),o(t,e),o(t,d),o(t,v),o(v,g)},p:u,i:u,o:u,d(a){a&&r(t)}}}function Y(a){let t,e,u,d,v,g,y=a[0],D=[];for(let t=0;t<y.length;t+=1)D[t]=aa(W(a,y,t));const $=a=>_(D[a],1,1,(()=>{D[a]=null}));return{c(){t=s("div"),e=s("h2"),u=h("Predicted"),d=p(),v=s("div");for(let a=0;a<D.length;a+=1)D[a].c();this.h()},l(a){t=n(a,"DIV",{classname:!0});var s=l(t);e=n(s,"H2",{class:!0});var c=l(e);u=m(c,"Predicted"),c.forEach(r),s.forEach(r),d=f(a),v=n(a,"DIV",{class:!0});var i=l(v);for(let a=0;a<D.length;a+=1)D[a].l(i);i.forEach(r),this.h()},h(){c(e,"class","svelte-1romtap"),c(t,"classname","flex flex-row justify-between items-top"),c(v,"class","prediction-table svelte-1romtap")},m(a,s){i(a,t,s),o(t,e),o(e,u),i(a,d,s),i(a,v,s);for(let a=0;a<D.length;a+=1)D[a].m(v,null);g=!0},p(a,t){if(1&t){let e;for(y=a[0],e=0;e<y.length;e+=1){const s=W(a,y,e);D[e]?(D[e].p(s,t),E(D[e],1)):(D[e]=aa(s),D[e].c(),E(D[e],1),D[e].m(v,null))}for(w(),e=y.length;e<D.length;e+=1)$(e);b()}},i(a){if(!g){for(let a=0;a<y.length;a+=1)E(D[a]);g=!0}},o(a){D=D.filter(Boolean);for(let a=0;a<D.length;a+=1)_(D[a]);g=!1},d(a){a&&r(t),a&&r(d),a&&r(v),I(D,a)}}}function aa(a){let t,e;return t=new R({props:{prediction:a[5]}}),{c(){D(t.$$.fragment)},l(a){$(t.$$.fragment,a)},m(a,s){k(t,a,s),e=!0},p(a,e){const s={};1&e&&(s.prediction=a[5]),t.$set(s)},i(a){e||(E(t.$$.fragment,a),e=!0)},o(a){_(t.$$.fragment,a),e=!1},d(a){j(t,a)}}}function ta(a){let t,e,o,u;const d=[Y,X],p=[];function h(a,t){return a[0]?0:1}return e=h(a),o=p[e]=d[e](a),{c(){t=s("div"),o.c(),this.h()},l(a){t=n(a,"DIV",{class:!0});var e=l(t);o.l(e),e.forEach(r),this.h()},h(){c(t,"class","predicted-weather svelte-1romtap")},m(a,s){i(a,t,s),p[e].m(t,null),u=!0},p(a,[s]){let n=e;e=h(a),e===n?p[e].p(a,s):(w(),_(p[n],1,1,(()=>{p[n]=null})),b(),o=p[e],o?o.p(a,s):(o=p[e]=d[e](a),o.c()),E(o,1),o.m(t,null))},i(a){u||(E(o),u=!0)},o(a){_(o),u=!1},d(a){a&&r(t),p[e].d()}}}function ea(a,t,e){let s,n,l;async function r(){n.updating||s.updating?e(0,l=null):(e(0,l=n.usnoaa_data_raw.noaa_planetary_k_index_forecast.map((a=>({time:a.time,kp:a.kp,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&l.forEach(((a,t)=>{let n,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,e)=>{let s=new Date(t.time);Math.abs(s.getTime()-a.time.getTime())<Math.abs(c.getTime()-a.time.getTime())&&(c=s,n=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),e(0,l[t]=Object.assign(Object.assign({},l[t]),{temp:n,clouds:r}),l)})))}return y(a,T,(a=>e(1,s=a))),y(a,S,(a=>e(2,n=a))),S.subscribe(r),T.subscribe(r),[l]}class sa extends a{constructor(a){super(),t(this,a,ea,ta,e,{})}}function na(a){let t,e,d,h,m,v;return d=new Z({}),m=new sa({}),{c(){t=p(),e=s("div"),D(d.$$.fragment),h=p(),D(m.$$.fragment),this.h()},l(a){O('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=f(a),e=n(a,"DIV",{class:!0});var s=l(e);$(d.$$.fragment,s),h=f(s),$(m.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(e,"class","homescreen svelte-pf4p6y")},m(a,s){i(a,t,s),i(a,e,s),k(d,e,null),o(e,h),k(m,e,null),v=!0},p:u,i(a){v||(E(d.$$.fragment,a),E(m.$$.fragment,a),v=!0)},o(a){_(d.$$.fragment,a),_(m.$$.fragment,a),v=!1},d(a){a&&r(t),a&&r(e),j(d),j(m)}}}class la extends a{constructor(a){super(),t(this,a,null,na,e,{})}}export{la as default}; diff --git a/client/index.d235304e.js b/client/index.d235304e.js new file mode 100644 index 0000000..9516ceb --- /dev/null +++ b/client/index.d235304e.js @@ -0,0 +1 @@ +import{S as a,i as t,s as e,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 as p,t as h,j as f,k as m,l as v,m as g,o as w,p as _,q as b,r as E,u as $,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}from"./client.8dd81e75.js";function S(a){let t,e,u,p,h,f,m,v,g;return{c(){t=s("div"),e=s("div"),u=s("div"),p=s("div"),h=s("div"),f=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(a){t=l(a,"DIV",{class:!0});var s=n(t);e=l(s,"DIV",{class:!0}),n(e).forEach(r),u=l(s,"DIV",{class:!0}),n(u).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),h=l(s,"DIV",{class:!0}),n(h).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(e,"class","svelte-7k6qu0"),c(u,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(a,s){i(a,t,s),o(t,e),o(t,u),o(t,p),o(t,h),o(t,f),o(t,m),o(t,v),o(t,g)},p:d,i:d,o:d,d(a){a&&r(t)}}}class C extends a{constructor(a){super(),t(this,a,null,S,e,{})}}const M={updated:!1,updating:!0},q=u(Object.assign(Object.assign({},M),{available:!1,longitude:null,latitude:null,city:null})),N=u(Object.assign(Object.assign({},M),{available:!1})),B=u(Object.assign({},M));function z(a,t=!1){let e=t?{}:{updated:new Date};a.update((a=>Object.assign(Object.assign(Object.assign({},a),e),{updating:t})))}function A(a){let t,e,d,u,g=a[0].city+"";return{c(){t=s("i"),e=p(),d=s("h1"),u=h(g),this.h()},l(a){t=l(a,"I",{class:!0}),n(t).forEach(r),e=f(a),d=l(a,"H1",{class:!0});var s=n(d);u=m(s,g),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),c(d,"class","svelte-9kdo4s")},m(a,s){i(a,t,s),i(a,e,s),i(a,d,s),o(d,u)},p(a,t){1&t&&g!==(g=a[0].city+"")&&v(u,g)},d(a){a&&r(t),a&&r(e),a&&r(d)}}}function H(a){let t,e;function s(a,e){return 6&e&&(t=null),null==t&&(t=!!(Math.abs(a[1].updated-a[2].updated)>6e5)),t?J:K}let l=s(a,-1),n=l(a);return{c(){n.c(),e=g()},l(a){n.l(a),e=g()},m(a,t){n.m(a,t),i(a,e,t)},p(a,t){l===(l=s(a,t))&&n?n.p(a,t):(n.d(1),n=l(a),n&&(n.c(),n.m(e.parentNode,e)))},d(a){n.d(a),a&&r(e)}}}function K(a){let t,e,c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),e=h(c)},l(a){t=l(a,"P",{});var s=n(t);e=m(s,c),s.forEach(r)},m(a,s){i(a,t,s),o(t,e)},p(a,t){2&t&&c!==(c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&v(e,c)},d(a){a&&r(t)}}}function J(a){let t,e;return{c(){t=s("p"),e=h("There is more than 10 minutes difference between data updates")},l(a){t=l(a,"P",{});var s=n(t);e=m(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(a,s){i(a,t,s),o(t,e)},p:d,d(a){a&&r(t)}}}function F(a){let t,e,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(){t=s("h2"),e=h("KP "),u=h(I),g=p(),w=s("p"),_=s("span"),b=h("↑ KP "),E=h(j),$=p(),k=s("span"),D=h("↓ KP "),y=h(V),this.h()},l(a){t=l(a,"H2",{class:!0});var s=n(t);e=m(s,"KP "),u=m(s,I),s.forEach(r),g=f(a),w=l(a,"P",{});var c=n(w);_=l(c,"SPAN",{classname:!0});var i=n(_);b=m(i,"↑ KP "),E=m(i,j),i.forEach(r),$=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(t,"class","svelte-9kdo4s"),c(_,"classname","pr-2"),c(k,"classname","pl-2")},m(a,s){i(a,t,s),o(t,e),o(t,u),i(a,g,s),i(a,w,s),o(w,_),o(_,b),o(_,E),o(w,$),o(w,k),o(k,D),o(k,y)},p(a,t){4&t&&I!==(I=a[2].now.kp+"")&&v(u,I),4&t&&j!==(j=a[2].now.kp_max+"")&&v(E,j),4&t&&V!==(V=a[2].now.kp_min+"")&&v(y,V)},i:d,o:d,d(a){a&&r(t),a&&r(g),a&&r(w)}}}function L(a){let t,e;return t=new C({}),{c(){k(t.$$.fragment)},l(a){D(t.$$.fragment,a)},m(a,s){y(t,a,s),e=!0},p:d,i(a){e||(E(t.$$.fragment,a),e=!0)},o(a){_(t.$$.fragment,a),e=!1},d(a){I(t,a)}}}function U(a){let t,e,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&&Z(a);return{c(){t=s("div"),e=s("p"),d=h("BZ"),u=p(),w=s("p"),_=h(O),b=p(),E=s("div"),$=s("p"),k=h("BT"),D=p(),y=s("p"),I=h(x),j=p(),P&&P.c(),V=g(),this.h()},l(a){t=l(a,"DIV",{});var s=n(t);e=l(s,"P",{class:!0});var c=n(e);d=m(c,"BZ"),c.forEach(r),u=f(s),w=l(s,"P",{class:!0});var i=n(w);_=m(i,O),i.forEach(r),s.forEach(r),b=f(a),E=l(a,"DIV",{});var o=n(E);$=l(o,"P",{class:!0});var p=n($);k=m(p,"BT"),p.forEach(r),D=f(o),y=l(o,"P",{class:!0});var h=n(y);I=m(h,x),h.forEach(r),o.forEach(r),j=f(a),P&&P.l(a),V=g(),this.h()},h(){c(e,"class","svelte-9kdo4s"),c(w,"class","svelte-9kdo4s"),c($,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(a,s){i(a,t,s),o(t,e),o(e,d),o(t,u),o(t,w),o(w,_),i(a,b,s),i(a,E,s),o(E,$),o($,k),o(E,D),o(E,y),o(y,I),i(a,j,s),P&&P.m(a,s),i(a,V,s)},p(a,t){4&t&&O!==(O=a[2].now.bz+"")&&v(_,O),4&t&&x!==(x=a[2].now.bt+"")&&v(I,x),a[1].available?P?P.p(a,t):(P=Z(a),P.c(),P.m(V.parentNode,V)):P&&(P.d(1),P=null)},d(a){a&&r(t),a&&r(b),a&&r(E),a&&r(j),P&&P.d(a),a&&r(V)}}}function Z(a){let t,e,d,u,g,w,_,b,E,$,k,D,y,I,j,V=a[1].now.temp+"",O=a[1].now.clouds+"";return{c(){t=s("div"),e=s("p"),d=h("Temp"),u=p(),g=s("p"),w=h(V),_=h("°C"),b=p(),E=s("div"),$=s("p"),k=h("Clouds"),D=p(),y=s("p"),I=h(O),j=h("%"),this.h()},l(a){t=l(a,"DIV",{});var s=n(t);e=l(s,"P",{class:!0});var c=n(e);d=m(c,"Temp"),c.forEach(r),u=f(s),g=l(s,"P",{class:!0});var i=n(g);w=m(i,V),_=m(i,"°C"),i.forEach(r),s.forEach(r),b=f(a),E=l(a,"DIV",{});var o=n(E);$=l(o,"P",{class:!0});var p=n($);k=m(p,"Clouds"),p.forEach(r),D=f(o),y=l(o,"P",{class:!0});var h=n(y);I=m(h,O),j=m(h,"%"),h.forEach(r),o.forEach(r),this.h()},h(){c(e,"class","svelte-9kdo4s"),c(g,"class","svelte-9kdo4s"),c($,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(a,s){i(a,t,s),o(t,e),o(e,d),o(t,u),o(t,g),o(g,w),o(g,_),i(a,b,s),i(a,E,s),o(E,$),o($,k),o(E,D),o(E,y),o(y,I),o(y,j)},p(a,t){2&t&&V!==(V=a[1].now.temp+"")&&v(w,V),2&t&&O!==(O=a[1].now.clouds+"")&&v(I,O)},d(a){a&&r(t),a&&r(b),a&&r(E)}}}function G(a){let t,e,d,u,h,m,v,g,$,k,D,y,I=!a[0].updating&&a[0].available&&!a[1].updating&&!a[2].updating&&A(a),j=!a[1].updating&&!a[2].updating&&H(a);const V=[L,F],O=[];function x(a,t){return a[2].updating||a[1].updating?0:1}g=x(a),$=O[g]=V[g](a);let P=!a[2].updating&&!a[1].updating&&U(a);return{c(){t=s("div"),e=s("div"),d=s("div"),I&&I.c(),u=p(),h=s("div"),j&&j.c(),m=p(),v=s("div"),$.c(),k=p(),D=s("div"),P&&P.c(),this.h()},l(a){t=l(a,"DIV",{class:!0});var s=n(t);e=l(s,"DIV",{class:!0});var c=n(e);d=l(c,"DIV",{class:!0});var i=n(d);I&&I.l(i),i.forEach(r),u=f(c),h=l(c,"DIV",{class:!0});var o=n(h);j&&j.l(o),o.forEach(r),m=f(c),v=l(c,"DIV",{class:!0});var p=n(v);$.l(p),p.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(h,"class","weatherCurrent-data-date"),c(v,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(D,"class","current-details svelte-9kdo4s"),c(e,"class","weatherCurrent-data svelte-9kdo4s"),c(t,"class","weatherCurrent-wrapper svelte-9kdo4s")},m(a,s){i(a,t,s),o(t,e),o(e,d),I&&I.m(d,null),o(e,u),o(e,h),j&&j.m(h,null),o(e,m),o(e,v),O[g].m(v,null),o(e,k),o(e,D),P&&P.m(D,null),y=!0},p(a,[t]){a[0].updating||!a[0].available||a[1].updating||a[2].updating?I&&(I.d(1),I=null):I?I.p(a,t):(I=A(a),I.c(),I.m(d,null)),a[1].updating||a[2].updating?j&&(j.d(1),j=null):j?j.p(a,t):(j=H(a),j.c(),j.m(h,null));let e=g;g=x(a),g===e?O[g].p(a,t):(w(),_(O[e],1,1,(()=>{O[e]=null})),b(),$=O[g],$?$.p(a,t):($=O[g]=V[g](a),$.c()),E($,1),$.m(v,null)),a[2].updating||a[1].updating?P&&(P.d(1),P=null):P?P.p(a,t):(P=U(a),P.c(),P.m(D,null))},i(a){y||(E($),y=!0)},o(a){_($),y=!1},d(a){a&&r(t),I&&I.d(),j&&j.d(),O[g].d(),P&&P.d()}}}function Q(a,t,e){let s,l,n;return $(a,q,(a=>e(0,s=a))),$(a,N,(a=>e(1,l=a))),$(a,B,(a=>e(2,n=a))),[s,l,n]}!async function(){if("undefined"==typeof window)return;let a;z(q,!0);try{a=await async function(){return new Promise(((a,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{a({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(a=>{t(a)})):t(Error())}))}()}catch(a){return console.log(a),q.update((a=>Object.assign(Object.assign({},a),{available:!1,city:null,longitude:null,latitude:null}))),void z(q,!1)}let t=await fetch(`https://geocode.xyz/${a.latitude},${a.longitude}?geoit=json`),e=await t.json();q.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:e.city}),a))),z(q,!1)}(),q.subscribe((async function(a=null){if("undefined"==typeof window)return;if(null===a)return;if(a.updating)return;if(!a.available)return N.update((a=>Object.assign(Object.assign({},a),{available:!1}))),void z(N,!1);z(N,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a.latitude}&lon=${a.longitude}`),e=await t.json(),s={clouds:null,temp:null};try{s.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((a=>Object.assign(Object.assign({},a),{time:new Date(a.time)})))}catch(a){}N.update((a=>Object.assign(Object.assign({},a),{yr_data_raw:e,now:s,available:!0}))),z(N,!1)})),async function(){if("undefined"==typeof window)return;z(B,!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}},t=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");a.usnoaa_data_raw.solar_wind_mag_field=await t.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,t=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),a.usnoaa_data_raw.noaa_planetary_k_index_forecast=await t.json(),a.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let e=new Date,s=new Date(0,0,0),l=1e3,n=0;return a.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,r)=>{t[1]>n&&(n=t[1]),t[1]<l&&(l=t[1]);let c=new Date(t[0]+" UTC");Math.abs(c.getTime()-e.getTime())<Math.abs(s.getTime()-e.getTime())&&(s=c,a.now.kp=t[1]),a.usnoaa_data_raw.noaa_planetary_k_index_forecast[r]={time:c,kp:t[1],observed:t[2]}})),a.now.kp_min=l.toString(),a.now.kp_max=n.toString(),console.log(a),a}();B.update((t=>Object.assign(Object.assign({},t),a))),z(B,!1)}();class R extends a{constructor(a){super(),t(this,a,Q,G,e,{})}}function W(a){let t,e;const o=a[1].default,d=j(o,a,a[0],null);return{c(){t=s("div"),d&&d.c(),this.h()},l(a){t=l(a,"DIV",{class:!0});var e=n(t);d&&d.l(e),e.forEach(r),this.h()},h(){c(t,"class","chip svelte-6dfxfp")},m(a,s){i(a,t,s),d&&d.m(t,null),e=!0},p(a,[t]){d&&d.p&&(!e||1&t)&&V(d,o,a,a[0],e?x(o,a[0],t,null):O(a[0]),null)},i(a){e||(E(d,a),e=!0)},o(a){_(d,a),e=!1},d(a){a&&r(t),d&&d.d(a)}}}function X(a,t,e){let{$$slots:s={},$$scope:l}=t;return a.$$set=a=>{"$$scope"in a&&e(0,l=a.$$scope)},[l,s]}class Y extends a{constructor(a){super(),t(this,a,X,W,e,{})}}function aa(a){let t,e,o;return e=new Y({props:{$$slots:{default:[ta]},$$scope:{ctx:a}}}),{c(){t=s("div"),k(e.$$.fragment),this.h()},l(a){t=l(a,"DIV",{class:!0});var s=n(t);D(e.$$.fragment,s),s.forEach(r),this.h()},h(){c(t,"class","svelte-ghmp86")},m(a,s){i(a,t,s),y(e,t,null),o=!0},p(a,t){const s={};257&t&&(s.$$scope={dirty:t,ctx:a}),e.$set(s)},i(a){o||(E(e.$$.fragment,a),o=!0)},o(a){_(e.$$.fragment,a),o=!1},d(a){a&&r(t),I(e)}}}function ta(a){let t,e=a[0].observed+"";return{c(){t=h(e)},l(a){t=m(a,e)},m(a,e){i(a,t,e)},p(a,s){1&s&&e!==(e=a[0].observed+"")&&v(t,e)},d(a){a&&r(t)}}}function ea(a){let t,e,u,v,g,$,k,D,y,I,j,V,O,x,P="predicted"!=a[0].observed&&aa(a),T=a[6]&&function(a){let t,e,u,v,g,w,_,b,E,$,k,D,y=Math.round(a[4])+"",I=Math.round(a[5])+"";return{c(){t=s("div"),e=s("p"),u=s("i"),v=p(),g=h(y),w=h("°C"),_=p(),b=s("p"),E=s("i"),$=p(),k=h(I),D=h("%"),this.h()},l(a){t=l(a,"DIV",{class:!0});var s=n(t);e=l(s,"P",{class:!0});var c=n(e);u=l(c,"I",{class:!0}),n(u).forEach(r),v=f(c),g=m(c,y),w=m(c,"°C"),c.forEach(r),_=f(s),b=l(s,"P",{class:!0});var i=n(b);E=l(i,"I",{class:!0}),n(E).forEach(r),$=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(e,"class","svelte-ghmp86"),c(E,"class","fas fa-cloud svelte-ghmp86"),c(b,"class","svelte-ghmp86"),c(t,"class","svelte-ghmp86")},m(a,s){i(a,t,s),o(t,e),o(e,u),o(e,v),o(e,g),o(e,w),o(t,_),o(t,b),o(b,E),o(b,$),o(b,k),o(b,D)},p:d,d(a){a&&r(t)}}}(a);return{c(){t=s("div"),e=s("div"),u=s("h3"),v=h(a[3]),g=p(),$=s("p"),k=h(a[2]),D=p(),P&&P.c(),y=p(),I=s("div"),j=s("h2"),V=h(a[1]),O=p(),T&&T.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);e=l(c,"DIV",{class:!0});var i=n(e);u=l(i,"H3",{class:!0});var o=n(u);v=m(o,a[3]),o.forEach(r),g=f(i),$=l(i,"P",{class:!0});var d=n($);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 p=n(I);j=l(p,"H2",{class:!0});var h=n(j);V=m(h,a[1]),h.forEach(r),O=f(p),T&&T.l(p),p.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-ghmp86"),c($,"class","svelte-ghmp86"),c(e,"class","svelte-ghmp86"),c(j,"class","svelte-ghmp86"),c(I,"class","data svelte-ghmp86"),c(t,"class","prediction-details svelte-ghmp86")},m(a,s){i(a,t,s),o(t,e),o(e,u),o(u,v),o(e,g),o(e,$),o($,k),o(t,D),P&&P.m(t,null),o(t,y),o(t,I),o(I,j),o(j,V),o(I,O),T&&T.m(I,null),x=!0},p(a,[e]){"predicted"!=a[0].observed?P?(P.p(a,e),1&e&&E(P,1)):(P=aa(a),P.c(),E(P,1),P.m(t,y)):P&&(w(),_(P,1,1,(()=>{P=null})),b()),a[6]&&T.p(a,e)},i(a){x||(E(P),x=!0)},o(a){_(P),x=!1},d(a){a&&r(t),P&&P.d(),T&&T.d()}}}function sa(a,t=2){let e=a;for(let s=0;s<t-a.length;s++)e="0"+e;return e}function la(a,t,e){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=sa(s.time.getHours().toString())+":"+sa(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return a.$$set=a=>{"prediction"in a&&e(0,s=a.prediction)},[s,l,n,r,c,i,o]}class na extends a{constructor(a){super(),t(this,a,la,ea,e,{prediction:0})}}function ra(a,t,e){const s=a.slice();return s[5]=t[e],s[7]=e,s}function ca(a){let t,e,u,v,g;return{c(){t=s("div"),e=s("i"),u=p(),v=s("p"),g=h("No prediction data"),this.h()},l(a){t=l(a,"DIV",{class:!0});var s=n(t);e=l(s,"I",{class:!0}),n(e).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(e,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-1romtap")},m(a,s){i(a,t,s),o(t,e),o(t,u),o(t,v),o(v,g)},p:d,i:d,o:d,d(a){a&&r(t)}}}function ia(a){let t,e,d,u,v,g,$=a[0],k=[];for(let t=0;t<$.length;t+=1)k[t]=oa(ra(a,$,t));const D=a=>_(k[a],1,1,(()=>{k[a]=null}));return{c(){t=s("div"),e=s("h2"),d=h("Predicted"),u=p(),v=s("div");for(let a=0;a<k.length;a+=1)k[a].c();this.h()},l(a){t=l(a,"DIV",{classname:!0});var s=n(t);e=l(s,"H2",{class:!0});var c=n(e);d=m(c,"Predicted"),c.forEach(r),s.forEach(r),u=f(a),v=l(a,"DIV",{class:!0});var i=n(v);for(let a=0;a<k.length;a+=1)k[a].l(i);i.forEach(r),this.h()},h(){c(e,"class","svelte-1romtap"),c(t,"classname","flex flex-row justify-between items-top"),c(v,"class","prediction-table svelte-1romtap")},m(a,s){i(a,t,s),o(t,e),o(e,d),i(a,u,s),i(a,v,s);for(let a=0;a<k.length;a+=1)k[a].m(v,null);g=!0},p(a,t){if(1&t){let e;for($=a[0],e=0;e<$.length;e+=1){const s=ra(a,$,e);k[e]?(k[e].p(s,t),E(k[e],1)):(k[e]=oa(s),k[e].c(),E(k[e],1),k[e].m(v,null))}for(w(),e=$.length;e<k.length;e+=1)D(e);b()}},i(a){if(!g){for(let a=0;a<$.length;a+=1)E(k[a]);g=!0}},o(a){k=k.filter(Boolean);for(let a=0;a<k.length;a+=1)_(k[a]);g=!1},d(a){a&&r(t),a&&r(u),a&&r(v),P(k,a)}}}function oa(a){let t,e;return t=new na({props:{prediction:a[5]}}),{c(){k(t.$$.fragment)},l(a){D(t.$$.fragment,a)},m(a,s){y(t,a,s),e=!0},p(a,e){const s={};1&e&&(s.prediction=a[5]),t.$set(s)},i(a){e||(E(t.$$.fragment,a),e=!0)},o(a){_(t.$$.fragment,a),e=!1},d(a){I(t,a)}}}function da(a){let t,e,o,d;const u=[ia,ca],p=[];function h(a,t){return a[0]?0:1}return e=h(a),o=p[e]=u[e](a),{c(){t=s("div"),o.c(),this.h()},l(a){t=l(a,"DIV",{class:!0});var e=n(t);o.l(e),e.forEach(r),this.h()},h(){c(t,"class","predicted-weather svelte-1romtap")},m(a,s){i(a,t,s),p[e].m(t,null),d=!0},p(a,[s]){let l=e;e=h(a),e===l?p[e].p(a,s):(w(),_(p[l],1,1,(()=>{p[l]=null})),b(),o=p[e],o?o.p(a,s):(o=p[e]=u[e](a),o.c()),E(o,1),o.m(t,null))},i(a){d||(E(o),d=!0)},o(a){_(o),d=!1},d(a){a&&r(t),p[e].d()}}}function ua(a,t,e){let s,l,n;async function r(){if(l.updating||s.updating)return void e(0,n=null);let a=l.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((a=>"observed"!==a.observed));e(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,t)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,e)=>{let s=new Date(t.time);Math.abs(s.getTime()-a.time.getTime())<Math.abs(c.getTime()-a.time.getTime())&&(c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),e(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r}),n)}))}return $(a,N,(a=>e(1,s=a))),$(a,B,(a=>e(2,l=a))),B.subscribe(r),N.subscribe(r),[n]}class pa extends a{constructor(a){super(),t(this,a,ua,da,e,{})}}function ha(a){let t,e,u,h,m,v;return u=new R({}),m=new pa({}),{c(){t=p(),e=s("div"),k(u.$$.fragment),h=p(),k(m.$$.fragment),this.h()},l(a){T('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=f(a),e=l(a,"DIV",{class:!0});var s=n(e);D(u.$$.fragment,s),h=f(s),D(m.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(e,"class","homescreen svelte-pf4p6y")},m(a,s){i(a,t,s),i(a,e,s),y(u,e,null),o(e,h),y(m,e,null),v=!0},p:d,i(a){v||(E(u.$$.fragment,a),E(m.$$.fragment,a),v=!0)},o(a){_(u.$$.fragment,a),_(m.$$.fragment,a),v=!1},d(a){a&&r(t),a&&r(e),I(u),I(m)}}}class fa extends a{constructor(a){super(),t(this,a,null,ha,e,{})}}export{fa as default}; diff --git a/client/legacy/client.03ab3887.js b/client/legacy/client.03ab3887.js new file mode 100644 index 0000000..8ffd4f2 --- /dev/null +++ b/client/legacy/client.03ab3887.js @@ -0,0 +1,18 @@ +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 j(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 L(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,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(L),!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),L(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;L(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=j(t,e,n,r);return t[0](o)}}function j(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function L(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=j(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){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function K(t){return Array.from(t.childNodes)}function z(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function H(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];z(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 V(t,e,n){return function(t,e,n,r){return H(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 Y(t,e){return H(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 W(t){return Y(t," ")}function X(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function Z(t){A=t}function tt(){if(!A)throw new Error("Function called outside component initialization");return A}var et=[],nt=[],rt=[],ot=[],it=Promise.resolve(),at=!1;function ut(t){rt.push(t)}var ct=new Set,ft=0;function st(){var t=A;do{for(;ft<et.length;){var e=et[ft];ft++,Z(e),lt(e.$$)}for(Z(null),et.length=0,ft=0;nt.length;)nt.pop()();for(var n=0;n<rt.length;n+=1){var r=rt[n];ct.has(r)||(ct.add(r),r())}rt.length=0}while(et.length);for(;ot.length;)ot.pop()();at=!1,ct.clear(),Z(t)}function lt(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(ut)}}var ht,pt=new Set;function dt(){ht={r:0,c:[],p:ht}}function vt(){ht.r||w(ht.c),ht=ht.p}function mt(t,e){t&&t.i&&(pt.delete(t),t.i(e))}function yt(t,e,n,r){if(t&&t.o){if(pt.has(t))return;pt.add(t),ht.c.push((function(){pt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function gt(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 bt(e){return"object"===t(e)&&null!==e?e:{}}function _t(t){t&&t.c()}function xt(t,e){t&&t.l(e)}function wt(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||ut((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(ut)}function $t(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 Et(t,e){-1===t.$$.dirty[0]&&(et.push(t),at||(at=!0,it.then(st)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function St(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=A;Z(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&&Et(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=K(e.target);f.fragment&&f.fragment.l(l),l.forEach(B)}else f.fragment&&f.fragment.c();e.intro&&mt(t.$$.fragment),wt(t,e.target,e.anchor,e.customElement),T(),st()}Z(c)}var kt=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){$t(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 jt(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 Lt(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 Lt(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 Lt(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 Ot=[];function Rt(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=!Ot.length,a=jt(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),Ot.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<Ot.length;c+=2)Ot[c][0](Ot[c+1]);Ot.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 At={};function Pt(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 Nt(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=K(e=V(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(B),this.h()},h:function(){J(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?L(o,t[0],a,null):R(t[0]),null)},i:function(t){n||(mt(i,t),n=!0)},o:function(t){yt(i,t),n=!1},d:function(t){t&&B(e),i&&i.d(t)}}}function Tt(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 It=function(t){h(n,kt);var e=Pt(n);function n(t){var r;return v(this,n),St(p(r=e.call(this)),t,Tt,Nt,E,{}),r}return y(n)}();function qt(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 Ct(t){var e,n,r=t[1].stack+"";return{c:function(){e=G("pre"),n=F(r)},l:function(t){var o=K(e=V(t,"PRE",{}));n=Y(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+"")&&X(n,r)},d:function(t){t&&B(e)}}}function Bt(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&&Ct(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){Q('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(B),n=W(e);var r=K(o=V(e,"H1",{class:!0}));i=Y(r,t[0]),r.forEach(B),a=W(e);var p=K(u=V(e,"P",{class:!0}));c=Y(p,l),p.forEach(B),f=W(e),h&&h.l(e),s=M(),this.h()},h:function(){J(o,"class","svelte-jpshsi"),J(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&&X(i,t[0]),2&o&&l!==(l=t[1].message+"")&&X(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Ct(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 Ut(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 Gt=function(t){h(n,kt);var e=qt(n);function n(t){var r;return v(this,n),St(p(r=e.call(this)),t,Ut,Bt,E,{status:0,error:1}),r}return y(n)}();function Ft(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 Dt(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&&_t(e.$$.fragment),n=M()},l:function(t){e&&xt(e.$$.fragment,t),n=M()},m:function(t,o){e&&wt(e,t,o),C(t,n,o),r=!0},p:function(t,r){var u=16&r?gt(o,[bt(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){dt();var c=e;yt(c.$$.fragment,1,0,(function(){$t(c,1)})),vt()}i?(_t((e=new i(a())).$$.fragment),mt(e.$$.fragment,1),wt(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&mt(e.$$.fragment,t),r=!0)},o:function(t){e&&yt(e.$$.fragment,t),r=!1},d:function(t){t&&B(n),e&&$t(e,t)}}}function Mt(t){var e,n;return e=new Gt({props:{error:t[0],status:t[1]}}),{c:function(){_t(e.$$.fragment)},l:function(t){xt(e.$$.fragment,t)},m:function(t,r){wt(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||(mt(e.$$.fragment,t),n=!0)},o:function(t){yt(e.$$.fragment,t),n=!1},d:function(t){$t(e,t)}}}function Jt(t){var e,n,r,o,i=[Mt,Dt],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):(dt(),yt(a[c],1,1,(function(){a[c]=null})),vt(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),mt(n,1),n.m(r.parentNode,r))},i:function(t){o||(mt(n),o=!0)},o:function(t){yt(n),o=!1},d:function(t){a[e].d(t),t&&B(r)}}}function Kt(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[Jt]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new It({props:i}),{c:function(){_t(e.$$.fragment)},l:function(t){xt(e.$$.fragment,t)},m:function(t,r){wt(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?gt(o,[4&i&&{segment:t[2][0]},8&i&&bt(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(mt(e.$$.fragment,t),n=!0)},o:function(t){yt(e.$$.fragment,t),n=!1},d:function(t){$t(e,t)}}}function zt(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){tt().$$.after_update.push(t)}(h),r=At,o=i,tt().$$.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 Ht=function(t){h(n,kt);var e=Ft(n);function n(t){var r;return v(this,n),St(p(r=e.call(this)),t,zt,Kt,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Vt=[],Yt=[{js:function(){return Promise.all([import("./index.11be7e82.js"),__inject_styles(["client-ea61129f.css","index-39e875ff.css"])]).then((function(t){return t[0]}))}}],Wt=[{pattern:/^\/$/,parts:[{i:0}]}]; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +function Xt(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function Qt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}var Zt,te=1;var ee,ne,re="undefined"!=typeof history?history:{pushState:function(){},replaceState:function(){},scrollRestoration:"auto"},oe={};function ie(e){var n=Object.create(null);return e.length>0&&e.slice(1).split("&").forEach((function(e){var o=r(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),i=o[1],a=o[2],u=void 0===a?"":a;"string"==typeof n[i]&&(n[i]=[n[i]]),"object"===t(n[i])?n[i].push(u):n[i]=u})),n}function ae(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(ee))return null;var e=t.pathname.slice(ee.length);if(""===e&&(e="/"),!Vt.some((function(t){return t.test(e)})))for(var n=0;n<Wt.length;n+=1){var r=Wt[n],o=r.pattern.exec(e);if(o){var i=ie(t.search),a=r.parts[r.parts.length-1],u=a.params?a.params(o):{},c={host:location.host,path:e,query:i,params:u};return{href:t.href,route:r,match:o,page:c}}}}function ue(e){if(1===function(t){return null===t.which?t.button:t.which}(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)){var n=Qt(e.target);if(n&&n.href){var r="object"===t(n.href)&&"SVGAnimatedString"===n.href.constructor.name,o=String(r?n.href.baseVal:n.href);if(o!==location.href){if(!n.hasAttribute("download")&&"external"!==n.getAttribute("rel")&&!(r?n.target.baseVal:n.target)){var i=new URL(o);if(i.pathname!==location.pathname||i.search!==location.search){var a=ae(i);if(a)se(a,null,n.hasAttribute("sapper:noscroll"),i.hash),e.preventDefault(),re.pushState({id:Zt},"",i.href)}}}else location.hash||e.preventDefault()}}}function ce(){return{x:pageXOffset,y:pageYOffset}}function fe(t){if(oe[Zt]=ce(),t.state){var e=ae(new URL(location.href));e?se(e,t.state.id):location.href=location.href}else(function(t){Zt=t})(te=te+1),re.replaceState({id:Zt},"",location.href)}function se(t,e,n,r){return Xt(this,void 0,void 0,c.mark((function o(){var i,a,u,f;return c.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return(i=!!e)?Zt=e:(a=ce(),oe[Zt]=a,Zt=e=++te,oe[Zt]=n?a:{x:0,y:0}),o.next=4,ne(t);case 4:document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n||(u=oe[e],r&&(f=document.getElementById(r.slice(1)))&&(u={x:0,y:f.getBoundingClientRect().top+scrollY}),oe[Zt]=u,i||f?scrollTo(u.x,u.y):scrollTo(0,0));case 6:case"end":return o.stop()}}),o)})))}function le(t){var e=t.baseURI;if(!e){var n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}var he,pe=null;function de(t){return pe&&pe.href===t.href?pe.promise:qe(t)}function ve(t){var e=Qt(t.target);e&&"prefetch"===e.rel&&function(t){var e=ae(new URL(t,le(document)));if(e)pe&&t===pe.href||(pe={href:t,promise:qe(e)}),pe.promise}(e.href)}function me(t){clearTimeout(he),he=setTimeout((function(){ve(t)}),20)}function ye(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=ae(new URL(t,le(document)));return n?(re[e.replaceState?"replaceState":"pushState"]({id:Zt},"",t),se(n,null,e.noscroll)):(location.href=t,new Promise((function(){})))}var ge,be,_e,xe,we,$e,Ee,Se,ke,je="undefined"!=typeof __SAPPER__&&__SAPPER__,Le=!1,Oe=[],Re="{}",Ae={page:function(t){var e=Rt(t),n=!0;return{notify:function(){n=!0,e.update((function(t){return t}))},set:function(t){n=!1,e.set(t)},subscribe:function(t){var r;return e.subscribe((function(e){(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:Rt(null),session:Rt(je&&je.session)};function Pe(t,e){var n=t.error;return Object.assign({error:n},e)}function Ne(t){return Xt(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ge&&Ae.preloading.set(!0),n=de(t),r=be={},e.next=5,n;case 5:if(o=e.sent,i=o.redirect,r===be){e.next=9;break}return e.abrupt("return");case 9:if(!i){e.next=14;break}return e.next=12,ye(i.location,{replaceState:!0});case 12:e.next=17;break;case 14:return a=o.props,u=o.branch,e.next=17,Te(u,a,Pe(a,t.page));case 17:case"end":return e.stop()}}),e)})))}function Te(t,e,n){return Xt(this,void 0,void 0,c.mark((function r(){return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(Ae.page.set(n),Ae.preloading.set(!1),!ge){r.next=6;break}ge.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:Ae.page.subscribe},preloading:{subscribe:Ae.preloading.subscribe},session:Ae.session},r.next=9,_e;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=Ae.page.notify,ge=new Ht({target:$e,props:e,hydrate:!0});case 13:Oe=t,Re=JSON.stringify(n.query),Le=!0,we=!1;case 17:case"end":return r.stop()}}),r)})))}function Ie(t,e,n,r){if(r!==Re)return!0;var o=Oe[t];return!!o&&(e!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0))}function qe(t){return Xt(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u,f,s,l,h,p,d,v=this;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,o=r.path.split("/").filter(Boolean),i=null,a={error:null,status:200,segments:[o[0]]},u={fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return fetch(t,e)})),redirect:function(t,e){if(i&&(i.statusCode!==t||i.location!==e))throw new Error("Conflicting redirects");i={statusCode:t,location:e}},error:function(t,e){a.error="string"==typeof e?new Error(e):e,a.status=t}},_e||(f=function(){return{}},_e=je.preloaded[0]||f.call(u,{host:r.host,path:r.path,query:r.query,params:{}},xe)),l=1,e.prev=7,h=JSON.stringify(r.query),p=n.pattern.exec(r.path),d=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return Xt(v,void 0,void 0,c.mark((function i(){var f,s,v,m,y,g;return c.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(f=o[n],Ie(n,f,p,h)&&(d=!0),a.segments[l]=o[n+1],e){i.next=5;break}return i.abrupt("return",{segment:f});case 5:if(s=l++,we||d||!Oe[n]||Oe[n].part!==e.i){i.next=8;break}return i.abrupt("return",Oe[n]);case 8:return d=!1,i.next=11,Yt[e.i].js();case 11:if(v=i.sent,m=v.default,y=v.preload,!Le&&je.preloaded[n+1]){i.next=25;break}if(!y){i.next=21;break}return i.next=18,y.call(u,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},xe);case 18:i.t0=i.sent,i.next=22;break;case 21:i.t0={};case 22:g=i.t0,i.next=26;break;case 25:g=je.preloaded[n+1];case 26:return i.abrupt("return",a["level".concat(s)]={component:m,props:g,segment:f,match:p,part:e.i});case 27:case"end":return i.stop()}}),i)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),a.error=e.t0,a.status=500,s=[];case 21:return e.abrupt("return",{redirect:i,props:a,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}Ae.session.subscribe((function(t){return Xt(void 0,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(xe=t,Le){e.next=3;break}return e.abrupt("return");case 3:return we=!0,n=ae(new URL(location.href)),r=be={},e.next=8,qe(n);case 8:if(o=e.sent,i=o.redirect,a=o.props,u=o.branch,r===be){e.next=14;break}return e.abrupt("return");case 14:if(!i){e.next=19;break}return e.next=17,ye(i.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,Te(u,a,Pe(a,n.page));case 21:case"end":return e.stop()}}),e)})))})),Ee={target:document.querySelector(".app")},Se=Ee.target,$e=Se,ke=je.baseUrl,ee=ke,ne=Ne,"scrollRestoration"in re&&(re.scrollRestoration="manual"),addEventListener("beforeunload",(function(){re.scrollRestoration="auto"})),addEventListener("load",(function(){re.scrollRestoration="manual"})),addEventListener("click",ue),addEventListener("popstate",fe),addEventListener("touchstart",ve),addEventListener("mousemove",me),je.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=je.session,i=je.preloaded,a=je.status,u=je.error;_e||(_e=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:_e},level1:{props:{status:a,error:u},component:Gt},segments:i},f=ie(r);Te([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;re.replaceState({id:te},"",n);var r=ae(new URL(location.href));if(r)return se(r,te,!0,e)}));export{mt as A,S as B,_t as C,xt as D,wt as E,$t as F,k as G,O as H,R as I,L as J,c as K,U as L,Q as M,kt as S,h as _,f as a,d as b,v as c,p as d,y as e,G as f,V as g,K as h,St as i,B as j,J as k,C as l,q as m,g as n,D as o,W as p,Y as q,X as r,E as s,F as t,M as u,r as v,Rt as w,dt as x,yt as y,vt as z}; + +import __inject_styles from './inject_styles.fe622066.js';
\ No newline at end of file diff --git a/client/legacy/client.652277bf.js b/client/legacy/client.652277bf.js deleted file mode 100644 index eeacd07..0000000 --- a/client/legacy/client.652277bf.js +++ /dev/null @@ -1,18 +0,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 L(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 j(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,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,L.prototype={constructor:L,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(O),!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),O(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;O(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){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}var j,O=!1;function L(){O=!0}function R(){O=!1}function A(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function P(t,e){if(O){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:A(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 N(t,e,n){O&&!n?P(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function T(t){t.parentNode.removeChild(t)}function I(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function q(t){return document.createElement(t)}function C(t){return document.createTextNode(t)}function B(){return C(" ")}function U(){return C("")}function G(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function F(t){return Array.from(t.childNodes)}function D(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function M(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];D(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 J(t,e,n){return function(t,e,n,r){return M(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,q)}function z(t,e){return M(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 C(e)}),!0)}function H(t){return z(t," ")}function K(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function V(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function Y(t){j=t}function W(){if(!j)throw new Error("Function called outside component initialization");return j}var X=[],Q=[],Z=[],tt=[],et=Promise.resolve(),nt=!1;function rt(t){Z.push(t)}var ot=new Set,it=0;function at(){var t=j;do{for(;it<X.length;){var e=X[it];it++,Y(e),ut(e.$$)}for(Y(null),X.length=0,it=0;Q.length;)Q.pop()();for(var n=0;n<Z.length;n+=1){var r=Z[n];ot.has(r)||(ot.add(r),r())}Z.length=0}while(X.length);for(;tt.length;)tt.pop()();nt=!1,ot.clear(),Y(t)}function ut(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(rt)}}var ct,ft=new Set;function st(){ct={r:0,c:[],p:ct}}function lt(){ct.r||w(ct.c),ct=ct.p}function ht(t,e){t&&t.i&&(ft.delete(t),t.i(e))}function pt(t,e,n,r){if(t&&t.o){if(ft.has(t))return;ft.add(t),ct.c.push((function(){ft.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function dt(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 vt(e){return"object"===t(e)&&null!==e?e:{}}function mt(t){t&&t.c()}function yt(t,e){t&&t.l(e)}function gt(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||rt((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(rt)}function bt(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 _t(t,e){-1===t.$$.dirty[0]&&(X.push(t),nt||(nt=!0,et.then(at)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function xt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=j;Y(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&&_t(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){L();var l=F(e.target);f.fragment&&f.fragment.l(l),l.forEach(T)}else f.fragment&&f.fragment.c();e.intro&&ht(t.$$.fragment),gt(t,e.target,e.anchor,e.customElement),R(),at()}Y(c)}var wt=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){bt(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 $t(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 Et(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 Et(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 Et(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 St=[];function kt(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=!St.length,a=$t(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),St.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<St.length;c+=2)St[c][0](St[c+1]);St.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 jt={};function Ot(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 Lt(e){var n,o,i=e[1].default,a=function(t,e,n,r){if(t){var o=k(t,e,n,r);return t[0](o)}}(i,e,e[0],null);return{c:function(){n=q("div"),a&&a.c(),this.h()},l:function(t){var e=F(n=J(t,"DIV",{class:!0}));a&&a.l(e),e.forEach(T),this.h()},h:function(){G(n,"class","app-container svelte-lkkhqy")},m:function(t,e){N(t,n,e),a&&a.m(n,null),o=!0},p:function(e,n){var u=r(n,1)[0];a&&a.p&&(!o||1&u)&&function(t,e,n,r,o,i){if(o){var a=k(e,n,r,i);t.p(a,o)}}(a,i,e,e[0],o?function(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}(i,e[0],u,null):function(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}(e[0]),null)},i:function(t){o||(ht(a,t),o=!0)},o:function(t){pt(a,t),o=!1},d:function(t){t&&T(n),a&&a.d(t)}}}function Rt(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 At=function(t){h(n,wt);var e=Ot(n);function n(t){var r;return v(this,n),xt(p(r=e.call(this)),t,Rt,Lt,E,{}),r}return y(n)}();function Pt(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 Nt(t){var e,n,r=t[1].stack+"";return{c:function(){e=q("pre"),n=C(r)},l:function(t){var o=F(e=J(t,"PRE",{}));n=z(o,r),o.forEach(T)},m:function(t,r){N(t,e,r),P(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&K(n,r)},d:function(t){t&&T(e)}}}function Tt(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&&Nt(t);return{c:function(){n=B(),o=q("h1"),i=C(t[0]),a=B(),u=q("p"),c=C(l),f=B(),h&&h.c(),s=U(),this.h()},l:function(e){V('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(T),n=H(e);var r=F(o=J(e,"H1",{class:!0}));i=z(r,t[0]),r.forEach(T),a=H(e);var p=F(u=J(e,"P",{class:!0}));c=z(p,l),p.forEach(T),f=H(e),h&&h.l(e),s=U(),this.h()},h:function(){G(o,"class","svelte-jpshsi"),G(u,"class","svelte-jpshsi")},m:function(t,e){N(t,n,e),N(t,o,e),P(o,i),N(t,a,e),N(t,u,e),P(u,c),N(t,f,e),h&&h.m(t,e),N(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&K(i,t[0]),2&o&&l!==(l=t[1].message+"")&&K(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Nt(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&T(n),t&&T(o),t&&T(a),t&&T(u),t&&T(f),h&&h.d(t),t&&T(s)}}}function It(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 qt=function(t){h(n,wt);var e=Pt(n);function n(t){var r;return v(this,n),xt(p(r=e.call(this)),t,It,Tt,E,{status:0,error:1}),r}return y(n)}();function Ct(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 Bt(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&&mt(e.$$.fragment),n=U()},l:function(t){e&&yt(e.$$.fragment,t),n=U()},m:function(t,o){e&>(e,t,o),N(t,n,o),r=!0},p:function(t,r){var u=16&r?dt(o,[vt(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){st();var c=e;pt(c.$$.fragment,1,0,(function(){bt(c,1)})),lt()}i?(mt((e=new i(a())).$$.fragment),ht(e.$$.fragment,1),gt(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&ht(e.$$.fragment,t),r=!0)},o:function(t){e&&pt(e.$$.fragment,t),r=!1},d:function(t){t&&T(n),e&&bt(e,t)}}}function Ut(t){var e,n;return e=new qt({props:{error:t[0],status:t[1]}}),{c:function(){mt(e.$$.fragment)},l:function(t){yt(e.$$.fragment,t)},m:function(t,r){gt(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||(ht(e.$$.fragment,t),n=!0)},o:function(t){pt(e.$$.fragment,t),n=!1},d:function(t){bt(e,t)}}}function Gt(t){var e,n,r,o,i=[Ut,Bt],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=U()},l:function(t){n.l(t),r=U()},m:function(t,n){a[e].m(t,n),N(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(st(),pt(a[c],1,1,(function(){a[c]=null})),lt(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),ht(n,1),n.m(r.parentNode,r))},i:function(t){o||(ht(n),o=!0)},o:function(t){pt(n),o=!1},d:function(t){a[e].d(t),t&&T(r)}}}function Ft(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[Gt]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new At({props:i}),{c:function(){mt(e.$$.fragment)},l:function(t){yt(e.$$.fragment,t)},m:function(t,r){gt(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?dt(o,[4&i&&{segment:t[2][0]},8&i&&vt(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(ht(e.$$.fragment,t),n=!0)},o:function(t){pt(e.$$.fragment,t),n=!1},d:function(t){bt(e,t)}}}function Dt(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){W().$$.after_update.push(t)}(h),r=jt,o=i,W().$$.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 Mt=function(t){h(n,wt);var e=Ct(n);function n(t){var r;return v(this,n),xt(p(r=e.call(this)),t,Dt,Ft,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Jt=[],zt=[{js:function(){return Promise.all([import("./index.b1d86915.js"),__inject_styles(["client-ea61129f.css","index-5b63c830.css"])]).then((function(t){return t[0]}))}}],Ht=[{pattern:/^\/$/,parts:[{i:0}]}]; -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -function Kt(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,u)}c((r=r.apply(t,e||[])).next())}))}function Vt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}var Yt,Wt=1;var Xt,Qt,Zt="undefined"!=typeof history?history:{pushState:function(){},replaceState:function(){},scrollRestoration:"auto"},te={};function ee(e){var n=Object.create(null);return e.length>0&&e.slice(1).split("&").forEach((function(e){var o=r(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),i=o[1],a=o[2],u=void 0===a?"":a;"string"==typeof n[i]&&(n[i]=[n[i]]),"object"===t(n[i])?n[i].push(u):n[i]=u})),n}function ne(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Xt))return null;var e=t.pathname.slice(Xt.length);if(""===e&&(e="/"),!Jt.some((function(t){return t.test(e)})))for(var n=0;n<Ht.length;n+=1){var r=Ht[n],o=r.pattern.exec(e);if(o){var i=ee(t.search),a=r.parts[r.parts.length-1],u=a.params?a.params(o):{},c={host:location.host,path:e,query:i,params:u};return{href:t.href,route:r,match:o,page:c}}}}function re(e){if(1===function(t){return null===t.which?t.button:t.which}(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)){var n=Vt(e.target);if(n&&n.href){var r="object"===t(n.href)&&"SVGAnimatedString"===n.href.constructor.name,o=String(r?n.href.baseVal:n.href);if(o!==location.href){if(!n.hasAttribute("download")&&"external"!==n.getAttribute("rel")&&!(r?n.target.baseVal:n.target)){var i=new URL(o);if(i.pathname!==location.pathname||i.search!==location.search){var a=ne(i);if(a)ae(a,null,n.hasAttribute("sapper:noscroll"),i.hash),e.preventDefault(),Zt.pushState({id:Yt},"",i.href)}}}else location.hash||e.preventDefault()}}}function oe(){return{x:pageXOffset,y:pageYOffset}}function ie(t){if(te[Yt]=oe(),t.state){var e=ne(new URL(location.href));e?ae(e,t.state.id):location.href=location.href}else(function(t){Yt=t})(Wt=Wt+1),Zt.replaceState({id:Yt},"",location.href)}function ae(t,e,n,r){return Kt(this,void 0,void 0,c.mark((function o(){var i,a,u,f;return c.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return(i=!!e)?Yt=e:(a=oe(),te[Yt]=a,Yt=e=++Wt,te[Yt]=n?a:{x:0,y:0}),o.next=4,Qt(t);case 4:document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n||(u=te[e],r&&(f=document.getElementById(r.slice(1)))&&(u={x:0,y:f.getBoundingClientRect().top+scrollY}),te[Yt]=u,i||f?scrollTo(u.x,u.y):scrollTo(0,0));case 6:case"end":return o.stop()}}),o)})))}function ue(t){var e=t.baseURI;if(!e){var n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}var ce,fe=null;function se(t){return fe&&fe.href===t.href?fe.promise:Pe(t)}function le(t){var e=Vt(t.target);e&&"prefetch"===e.rel&&function(t){var e=ne(new URL(t,ue(document)));if(e)fe&&t===fe.href||(fe={href:t,promise:Pe(e)}),fe.promise}(e.href)}function he(t){clearTimeout(ce),ce=setTimeout((function(){le(t)}),20)}function pe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=ne(new URL(t,ue(document)));return n?(Zt[e.replaceState?"replaceState":"pushState"]({id:Yt},"",t),ae(n,null,e.noscroll)):(location.href=t,new Promise((function(){})))}var de,ve,me,ye,ge,be,_e,xe,we,$e="undefined"!=typeof __SAPPER__&&__SAPPER__,Ee=!1,Se=[],ke="{}",je={page:function(t){var e=kt(t),n=!0;return{notify:function(){n=!0,e.update((function(t){return t}))},set:function(t){n=!1,e.set(t)},subscribe:function(t){var r;return e.subscribe((function(e){(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:kt(null),session:kt($e&&$e.session)};function Oe(t,e){var n=t.error;return Object.assign({error:n},e)}function Le(t){return Kt(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return de&&je.preloading.set(!0),n=se(t),r=ve={},e.next=5,n;case 5:if(o=e.sent,i=o.redirect,r===ve){e.next=9;break}return e.abrupt("return");case 9:if(!i){e.next=14;break}return e.next=12,pe(i.location,{replaceState:!0});case 12:e.next=17;break;case 14:return a=o.props,u=o.branch,e.next=17,Re(u,a,Oe(a,t.page));case 17:case"end":return e.stop()}}),e)})))}function Re(t,e,n){return Kt(this,void 0,void 0,c.mark((function r(){return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(je.page.set(n),je.preloading.set(!1),!de){r.next=6;break}de.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:je.page.subscribe},preloading:{subscribe:je.preloading.subscribe},session:je.session},r.next=9,me;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=je.page.notify,de=new Mt({target:be,props:e,hydrate:!0});case 13:Se=t,ke=JSON.stringify(n.query),Ee=!0,ge=!1;case 17:case"end":return r.stop()}}),r)})))}function Ae(t,e,n,r){if(r!==ke)return!0;var o=Se[t];return!!o&&(e!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0))}function Pe(t){return Kt(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u,f,s,l,h,p,d,v=this;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,o=r.path.split("/").filter(Boolean),i=null,a={error:null,status:200,segments:[o[0]]},u={fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return fetch(t,e)})),redirect:function(t,e){if(i&&(i.statusCode!==t||i.location!==e))throw new Error("Conflicting redirects");i={statusCode:t,location:e}},error:function(t,e){a.error="string"==typeof e?new Error(e):e,a.status=t}},me||(f=function(){return{}},me=$e.preloaded[0]||f.call(u,{host:r.host,path:r.path,query:r.query,params:{}},ye)),l=1,e.prev=7,h=JSON.stringify(r.query),p=n.pattern.exec(r.path),d=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return Kt(v,void 0,void 0,c.mark((function i(){var f,s,v,m,y,g;return c.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(f=o[n],Ae(n,f,p,h)&&(d=!0),a.segments[l]=o[n+1],e){i.next=5;break}return i.abrupt("return",{segment:f});case 5:if(s=l++,ge||d||!Se[n]||Se[n].part!==e.i){i.next=8;break}return i.abrupt("return",Se[n]);case 8:return d=!1,i.next=11,zt[e.i].js();case 11:if(v=i.sent,m=v.default,y=v.preload,!Ee&&$e.preloaded[n+1]){i.next=25;break}if(!y){i.next=21;break}return i.next=18,y.call(u,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},ye);case 18:i.t0=i.sent,i.next=22;break;case 21:i.t0={};case 22:g=i.t0,i.next=26;break;case 25:g=$e.preloaded[n+1];case 26:return i.abrupt("return",a["level".concat(s)]={component:m,props:g,segment:f,match:p,part:e.i});case 27:case"end":return i.stop()}}),i)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),a.error=e.t0,a.status=500,s=[];case 21:return e.abrupt("return",{redirect:i,props:a,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}je.session.subscribe((function(t){return Kt(void 0,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ye=t,Ee){e.next=3;break}return e.abrupt("return");case 3:return ge=!0,n=ne(new URL(location.href)),r=ve={},e.next=8,Pe(n);case 8:if(o=e.sent,i=o.redirect,a=o.props,u=o.branch,r===ve){e.next=14;break}return e.abrupt("return");case 14:if(!i){e.next=19;break}return e.next=17,pe(i.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,Re(u,a,Oe(a,n.page));case 21:case"end":return e.stop()}}),e)})))})),_e={target:document.querySelector(".app")},xe=_e.target,be=xe,we=$e.baseUrl,Xt=we,Qt=Le,"scrollRestoration"in Zt&&(Zt.scrollRestoration="manual"),addEventListener("beforeunload",(function(){Zt.scrollRestoration="auto"})),addEventListener("load",(function(){Zt.scrollRestoration="manual"})),addEventListener("click",re),addEventListener("popstate",ie),addEventListener("touchstart",le),addEventListener("mousemove",he),$e.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=$e.session,i=$e.preloaded,a=$e.status,u=$e.error;me||(me=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:me},level1:{props:{status:a,error:u},component:qt},segments:i},f=ee(r);Re([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;Zt.replaceState({id:Wt},"",n);var r=ne(new URL(location.href));if(r)return ae(r,Wt,!0,e)}));export{ht as A,S as B,mt as C,yt as D,gt as E,bt as F,c as G,I as H,V as I,wt as S,h as _,f as a,d as b,v as c,p as d,y as e,q as f,J as g,F as h,xt as i,T as j,G as k,N as l,P as m,g as n,B as o,H as p,z as q,K as r,E as s,C as t,U as u,r as v,kt as w,st as x,pt as y,lt as z}; - -import __inject_styles from './inject_styles.fe622066.js';
\ No newline at end of file diff --git a/client/index-5b63c830.css b/client/legacy/index-39e875ff.css index 1c2cb5b..350d2c1 100644 --- a/client/index-5b63c830.css +++ b/client/legacy/index-39e875ff.css @@ -1,8 +1,9 @@ .lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} -.weatherCurrent-wrapper.svelte-9mqc59.svelte-9mqc59{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( +.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5) - ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9mqc59.svelte-9mqc59{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9mqc59.svelte-9mqc59{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9mqc59 .symbol.svelte-9mqc59{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9mqc59 h1.svelte-9mqc59{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9mqc59 h2.svelte-9mqc59{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9mqc59.svelte-9mqc59{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9mqc59 p.svelte-9mqc59{line-height:1.375} -.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} + ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9kdo4s.svelte-9kdo4s{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} +.chip.svelte-6dfxfp{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:linear-gradient(90deg, #84fab0, #8fd3f4 51%, #84fab0) 100% / 200%;color:white} +.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} .predicted-weather.svelte-1romtap.svelte-1romtap{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){.predicted-weather.svelte-1romtap.svelte-1romtap{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-1romtap.svelte-1romtap{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-1romtap h2.svelte-1romtap{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-1romtap.svelte-1romtap{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-1romtap.svelte-1romtap::-webkit-scrollbar{display:none}.no-data.svelte-1romtap.svelte-1romtap{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1romtap.svelte-1romtap{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.11be7e82.js b/client/legacy/index.11be7e82.js new file mode 100644 index 0000000..6293d8e --- /dev/null +++ b/client/legacy/index.11be7e82.js @@ -0,0 +1 @@ +import{_ as t,a as n,b as a,c as e,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 p,l as h,m as v,n as m,w as g,o as w,t as _,p as y,q as b,r as E,u as $,v as k,x as D,y as I,z as P,A as O,B as j,C as x,D as R,E as V,F as B,G as T,H as S,I as C,J as M,K as q,L as N,M as z}from"./client.03ab3887.js";function H(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 r,c=n(t);if(e){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return a(this,r)}}function K(t){var n,a,e,r,c,o,i,s,g;return{c:function(){n=u("div"),a=u("div"),e=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);a=l(u,"DIV",{class:!0}),f(a).forEach(d),e=l(u,"DIV",{class:!0}),f(e).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(){p(a,"class","svelte-7k6qu0"),p(e,"class","svelte-7k6qu0"),p(r,"class","svelte-7k6qu0"),p(c,"class","svelte-7k6qu0"),p(o,"class","svelte-7k6qu0"),p(i,"class","svelte-7k6qu0"),p(s,"class","svelte-7k6qu0"),p(g,"class","svelte-7k6qu0"),p(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){h(t,n,u),v(n,a),v(n,e),v(n,r),v(n,c),v(n,o),v(n,i),v(n,s),v(n,g)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}var A=function(n){t(u,s);var a=H(u);function u(t){var n;return e(this,u),n=a.call(this),r(o(n),t,null,K,c,{}),n}return i(u)}();const J={updated:!1,updating:!0},L=g(Object.assign(Object.assign({},J),{available:!1,longitude:null,latitude:null,city:null})),F=g(Object.assign(Object.assign({},J),{available:!1})),U=g(Object.assign({},J));function Z(t,n=!1){let a=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),a),{updating:n})))}function G(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 r,c=n(t);if(e){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return a(this,r)}}function Q(t){var n,a,e,r,c=t[0].city+"";return{c:function(){n=u("i"),a=w(),e=u("h1"),r=_(c),this.h()},l:function(t){n=l(t,"I",{class:!0}),f(n).forEach(d),a=y(t),e=l(t,"H1",{class:!0});var o=f(e);r=b(o,c),o.forEach(d),this.h()},h:function(){p(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),p(e,"class","svelte-9kdo4s")},m:function(t,c){h(t,n,c),h(t,a,c),h(t,e,c),v(e,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&E(r,c)},d:function(t){t&&d(n),t&&d(a),t&&d(e)}}}function W(t){var n,a;function e(t,a){return 6&a&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?Y:X}var r=e(t,-1),c=r(t);return{c:function(){c.c(),a=$()},l:function(t){c.l(t),a=$()},m:function(t,n){c.m(t,n),h(t,a,n)},p:function(t,n){r===(r=e(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(a.parentNode,a)))},d:function(t){c.d(t),t&&d(a)}}}function X(t){var n,a,e=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),a=_(e)},l:function(t){n=l(t,"P",{});var r=f(n);a=b(r,e),r.forEach(d)},m:function(t,e){h(t,n,e),v(n,a)},p:function(t,n){2&n&&e!==(e=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&E(a,e)},d:function(t){t&&d(n)}}}function Y(t){var n,a;return{c:function(){n=u("p"),a=_("There is more than 10 minutes difference between data updates")},l:function(t){n=l(t,"P",{});var e=f(n);a=b(e,"There is more than 10 minutes difference between data updates"),e.forEach(d)},m:function(t,e){h(t,n,e),v(n,a)},p:m,d:function(t){t&&d(n)}}}function tt(t){var n,a,e,r,c,o,i,s,g,$,k,D,I=t[2].now.kp+"",P=t[2].now.kp_max+"",O=t[2].now.kp_min+"";return{c:function(){n=u("h2"),a=_("KP "),e=_(I),r=w(),c=u("p"),o=u("span"),i=_("↑ KP "),s=_(P),g=w(),$=u("span"),k=_("↓ KP "),D=_(O),this.h()},l:function(t){n=l(t,"H2",{class:!0});var u=f(n);a=b(u,"KP "),e=b(u,I),u.forEach(d),r=y(t),c=l(t,"P",{});var p=f(c);o=l(p,"SPAN",{classname:!0});var h=f(o);i=b(h,"↑ KP "),s=b(h,P),h.forEach(d),g=y(p),$=l(p,"SPAN",{classname:!0});var v=f($);k=b(v,"↓ KP "),D=b(v,O),v.forEach(d),p.forEach(d),this.h()},h:function(){p(n,"class","svelte-9kdo4s"),p(o,"classname","pr-2"),p($,"classname","pl-2")},m:function(t,u){h(t,n,u),v(n,a),v(n,e),h(t,r,u),h(t,c,u),v(c,o),v(o,i),v(o,s),v(c,g),v(c,$),v($,k),v($,D)},p:function(t,n){4&n&&I!==(I=t[2].now.kp+"")&&E(e,I),4&n&&P!==(P=t[2].now.kp_max+"")&&E(s,P),4&n&&O!==(O=t[2].now.kp_min+"")&&E(D,O)},i:m,o:m,d:function(t){t&&d(n),t&&d(r),t&&d(c)}}}function nt(t){var n,a;return n=new A({}),{c:function(){x(n.$$.fragment)},l:function(t){R(n.$$.fragment,t)},m:function(t,e){V(n,t,e),a=!0},p:m,i:function(t){a||(O(n.$$.fragment,t),a=!0)},o:function(t){I(n.$$.fragment,t),a=!1},d:function(t){B(n,t)}}}function at(t){var n,a,e,r,c,o,i,s,m,g,k,D,I,P,O,j=t[2].now.bz+"",x=t[2].now.bt+"",R=t[1].available&&et(t);return{c:function(){n=u("div"),a=u("p"),e=_("BZ"),r=w(),c=u("p"),o=_(j),i=w(),s=u("div"),m=u("p"),g=_("BT"),k=w(),D=u("p"),I=_(x),P=w(),R&&R.c(),O=$(),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);a=l(u,"P",{class:!0});var p=f(a);e=b(p,"BZ"),p.forEach(d),r=y(u),c=l(u,"P",{class:!0});var h=f(c);o=b(h,j),h.forEach(d),u.forEach(d),i=y(t),s=l(t,"DIV",{});var v=f(s);m=l(v,"P",{class:!0});var w=f(m);g=b(w,"BT"),w.forEach(d),k=y(v),D=l(v,"P",{class:!0});var _=f(D);I=b(_,x),_.forEach(d),v.forEach(d),P=y(t),R&&R.l(t),O=$(),this.h()},h:function(){p(a,"class","svelte-9kdo4s"),p(c,"class","svelte-9kdo4s"),p(m,"class","svelte-9kdo4s"),p(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),v(n,a),v(a,e),v(n,r),v(n,c),v(c,o),h(t,i,u),h(t,s,u),v(s,m),v(m,g),v(s,k),v(s,D),v(D,I),h(t,P,u),R&&R.m(t,u),h(t,O,u)},p:function(t,n){4&n&&j!==(j=t[2].now.bz+"")&&E(o,j),4&n&&x!==(x=t[2].now.bt+"")&&E(I,x),t[1].available?R?R.p(t,n):((R=et(t)).c(),R.m(O.parentNode,O)):R&&(R.d(1),R=null)},d:function(t){t&&d(n),t&&d(i),t&&d(s),t&&d(P),R&&R.d(t),t&&d(O)}}}function et(t){var n,a,e,r,c,o,i,s,m,g,$,k,D,I,P,O=t[1].now.temp+"",j=t[1].now.clouds+"";return{c:function(){n=u("div"),a=u("p"),e=_("Temp"),r=w(),c=u("p"),o=_(O),i=_("°C"),s=w(),m=u("div"),g=u("p"),$=_("Clouds"),k=w(),D=u("p"),I=_(j),P=_("%"),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);a=l(u,"P",{class:!0});var p=f(a);e=b(p,"Temp"),p.forEach(d),r=y(u),c=l(u,"P",{class:!0});var h=f(c);o=b(h,O),i=b(h,"°C"),h.forEach(d),u.forEach(d),s=y(t),m=l(t,"DIV",{});var v=f(m);g=l(v,"P",{class:!0});var w=f(g);$=b(w,"Clouds"),w.forEach(d),k=y(v),D=l(v,"P",{class:!0});var _=f(D);I=b(_,j),P=b(_,"%"),_.forEach(d),v.forEach(d),this.h()},h:function(){p(a,"class","svelte-9kdo4s"),p(c,"class","svelte-9kdo4s"),p(g,"class","svelte-9kdo4s"),p(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),v(n,a),v(a,e),v(n,r),v(n,c),v(c,o),v(c,i),h(t,s,u),h(t,m,u),v(m,g),v(g,$),v(m,k),v(m,D),v(D,I),v(D,P)},p:function(t,n){2&n&&O!==(O=t[1].now.temp+"")&&E(o,O),2&n&&j!==(j=t[1].now.clouds+"")&&E(I,j)},d:function(t){t&&d(n),t&&d(s),t&&d(m)}}}function rt(t){var n,a,e,r,c,o,i,s,m,g,_,b,E=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&Q(t),$=!t[1].updating&&!t[2].updating&&W(t),j=[nt,tt],x=[];function R(t,n){return t[2].updating||t[1].updating?0:1}s=R(t),m=x[s]=j[s](t);var V=!t[2].updating&&!t[1].updating&&at(t);return{c:function(){n=u("div"),a=u("div"),e=u("div"),E&&E.c(),r=w(),c=u("div"),$&&$.c(),o=w(),i=u("div"),m.c(),g=w(),_=u("div"),V&&V.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var s=f(n);a=l(s,"DIV",{class:!0});var u=f(a);e=l(u,"DIV",{class:!0});var p=f(e);E&&E.l(p),p.forEach(d),r=y(u),c=l(u,"DIV",{class:!0});var h=f(c);$&&$.l(h),h.forEach(d),o=y(u),i=l(u,"DIV",{class:!0});var v=f(i);m.l(v),v.forEach(d),g=y(u),_=l(u,"DIV",{class:!0});var w=f(_);V&&V.l(w),w.forEach(d),u.forEach(d),s.forEach(d),this.h()},h:function(){p(e,"class","weatherCurrent-data-location svelte-9kdo4s"),p(c,"class","weatherCurrent-data-date"),p(i,"class","weatherCurrent-data-kp svelte-9kdo4s"),p(_,"class","current-details svelte-9kdo4s"),p(a,"class","weatherCurrent-data svelte-9kdo4s"),p(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){h(t,n,u),v(n,a),v(a,e),E&&E.m(e,null),v(a,r),v(a,c),$&&$.m(c,null),v(a,o),v(a,i),x[s].m(i,null),v(a,g),v(a,_),V&&V.m(_,null),b=!0},p:function(t,n){var a=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,a):((E=Q(t)).c(),E.m(e,null)),t[1].updating||t[2].updating?$&&($.d(1),$=null):$?$.p(t,a):(($=W(t)).c(),$.m(c,null));var r=s;(s=R(t))===r?x[s].p(t,a):(D(),I(x[r],1,1,(function(){x[r]=null})),P(),(m=x[s])?m.p(t,a):(m=x[s]=j[s](t)).c(),O(m,1),m.m(i,null)),t[2].updating||t[1].updating?V&&(V.d(1),V=null):V?V.p(t,a):((V=at(t)).c(),V.m(_,null))},i:function(t){b||(O(m),b=!0)},o:function(t){I(m),b=!1},d:function(t){t&&d(n),E&&E.d(),$&&$.d(),x[s].d(),V&&V.d()}}}function ct(t,n,a){var e,r,c;return j(t,L,(function(t){return a(0,e=t)})),j(t,F,(function(t){return a(1,r=t)})),j(t,U,(function(t){return a(2,c=t)})),[e,r,c]}!async function(){if("undefined"==typeof window)return;let t;Z(L,!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),L.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void Z(L,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),a=await n.json();L.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:a.city}),t))),Z(L,!1)}(),L.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return F.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void Z(F,!1);Z(F,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),a=await n.json(),e={clouds:null,temp:null};try{e.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,e.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}F.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:a,now:e,available:!0}))),Z(F,!1)})),async function(){if("undefined"==typeof window)return;Z(U,!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}},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/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 a=new Date,e=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()-a.getTime())<Math.abs(e.getTime()-a.getTime())&&(e=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}();U.update((n=>Object.assign(Object.assign({},n),t))),Z(U,!1)}();var ot=function(n){t(u,s);var a=G(u);function u(t){var n;return e(this,u),n=a.call(this),r(o(n),t,ct,rt,c,{}),n}return i(u)}();function it(t,n,a,e,r,c,o){try{var i=t[c](o),s=i.value}catch(t){return void a(t)}i.done?n(s):Promise.resolve(s).then(e,r)}function st(t){return function(){var n=this,a=arguments;return new Promise((function(e,r){var c=t.apply(n,a);function o(t){it(c,e,r,o,i,"next",t)}function i(t){it(c,e,r,o,i,"throw",t)}o(void 0)}))}}function ut(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 r,c=n(t);if(e){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return a(this,r)}}function lt(t){var n,a,e=t[1].default,r=T(e,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 a=f(n);r&&r.l(a),a.forEach(d),this.h()},h:function(){p(n,"class","chip svelte-6dfxfp")},m:function(t,e){h(t,n,e),r&&r.m(n,null),a=!0},p:function(t,n){var c=k(n,1)[0];r&&r.p&&(!a||1&c)&&S(r,e,t,t[0],a?M(e,t[0],c,null):C(t[0]),null)},i:function(t){a||(O(r,t),a=!0)},o:function(t){I(r,t),a=!1},d:function(t){t&&d(n),r&&r.d(t)}}}function ft(t,n,a){var e=n.$$slots,r=void 0===e?{}:e,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&a(0,c=t.$$scope)},[c,r]}var dt=function(n){t(u,s);var a=ut(u);function u(t){var n;return e(this,u),n=a.call(this),r(o(n),t,ft,lt,c,{}),n}return i(u)}();function pt(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 r,c=n(t);if(e){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return a(this,r)}}function ht(t){var n,a,e;return a=new dt({props:{$$slots:{default:[vt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),x(a.$$.fragment),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=f(n);R(a.$$.fragment,e),e.forEach(d),this.h()},h:function(){p(n,"class","svelte-ghmp86")},m:function(t,r){h(t,n,r),V(a,n,null),e=!0},p:function(t,n){var e={};257&n&&(e.$$scope={dirty:n,ctx:t}),a.$set(e)},i:function(t){e||(O(a.$$.fragment,t),e=!0)},o:function(t){I(a.$$.fragment,t),e=!1},d:function(t){t&&d(n),B(a)}}}function vt(t){var n,a=t[0].observed+"";return{c:function(){n=_(a)},l:function(t){n=b(t,a)},m:function(t,a){h(t,n,a)},p:function(t,e){1&e&&a!==(a=t[0].observed+"")&&E(n,a)},d:function(t){t&&d(n)}}}function mt(t){var n,a,e,r,c,o,i,s,g,E,$,j,x,R,V="predicted"!=t[0].observed&&ht(t),B=t[6]&&function(t){var n,a,e,r,c,o,i,s,g,E,$,k,D=Math.round(t[4])+"",I=Math.round(t[5])+"";return{c:function(){n=u("div"),a=u("p"),e=u("i"),r=w(),c=_(D),o=_("°C"),i=w(),s=u("p"),g=u("i"),E=w(),$=_(I),k=_("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);a=l(u,"P",{class:!0});var p=f(a);e=l(p,"I",{class:!0}),f(e).forEach(d),r=y(p),c=b(p,D),o=b(p,"°C"),p.forEach(d),i=y(u),s=l(u,"P",{class:!0});var h=f(s);g=l(h,"I",{class:!0}),f(g).forEach(d),E=y(h),$=b(h,I),k=b(h,"%"),h.forEach(d),u.forEach(d),this.h()},h:function(){p(e,"class","fas fa-thermometer-half svelte-ghmp86"),p(a,"class","svelte-ghmp86"),p(g,"class","fas fa-cloud svelte-ghmp86"),p(s,"class","svelte-ghmp86"),p(n,"class","svelte-ghmp86")},m:function(t,u){h(t,n,u),v(n,a),v(a,e),v(a,r),v(a,c),v(a,o),v(n,i),v(n,s),v(s,g),v(s,E),v(s,$),v(s,k)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),a=u("div"),e=u("h3"),r=_(t[3]),c=w(),o=u("p"),i=_(t[2]),s=w(),V&&V.c(),g=w(),E=u("div"),$=u("h2"),j=_(t[1]),x=w(),B&&B.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var p=f(n);a=l(p,"DIV",{class:!0});var h=f(a);e=l(h,"H3",{class:!0});var v=f(e);r=b(v,t[3]),v.forEach(d),c=y(h),o=l(h,"P",{class:!0});var m=f(o);i=b(m,t[2]),m.forEach(d),h.forEach(d),s=y(p),V&&V.l(p),g=y(p),E=l(p,"DIV",{class:!0});var w=f(E);$=l(w,"H2",{class:!0});var _=f($);j=b(_,t[1]),_.forEach(d),x=y(w),B&&B.l(w),w.forEach(d),p.forEach(d),this.h()},h:function(){p(e,"class","svelte-ghmp86"),p(o,"class","svelte-ghmp86"),p(a,"class","svelte-ghmp86"),p($,"class","svelte-ghmp86"),p(E,"class","data svelte-ghmp86"),p(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){h(t,n,u),v(n,a),v(a,e),v(e,r),v(a,c),v(a,o),v(o,i),v(n,s),V&&V.m(n,null),v(n,g),v(n,E),v(E,$),v($,j),v(E,x),B&&B.m(E,null),R=!0},p:function(t,a){var e=k(a,1)[0];"predicted"!=t[0].observed?V?(V.p(t,e),1&e&&O(V,1)):((V=ht(t)).c(),O(V,1),V.m(n,g)):V&&(D(),I(V,1,1,(function(){V=null})),P()),t[6]&&B.p(t,e)},i:function(t){R||(O(V),R=!0)},o:function(t){I(V),R=!1},d:function(t){t&&d(n),V&&V.d(),B&&B.d()}}}function gt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,a=t,e=0;e<n-t.length;e++)a="0"+a;return a}function wt(t,n,a){var e=n.prediction,r=e.kp,c=e.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][e.time.getMonth()],o=gt(e.time.getHours().toString())+":"+gt(e.time.getMinutes().toString()),i=e.temp,s=e.clouds,u=e.hasNOMETData;return t.$$set=function(t){"prediction"in t&&a(0,e=t.prediction)},[e,r,c,o,i,s,u]}var _t=function(n){t(u,s);var a=pt(u);function u(t){var n;return e(this,u),n=a.call(this),r(o(n),t,wt,mt,c,{prediction:0}),n}return i(u)}();function yt(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 r,c=n(t);if(e){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return a(this,r)}}function bt(t,n,a){var e=t.slice();return e[5]=n[a],e[7]=a,e}function Et(t){var n,a,e,r,c;return{c:function(){n=u("div"),a=u("i"),e=w(),r=u("p"),c=_("No prediction data"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var o=f(n);a=l(o,"I",{class:!0}),f(a).forEach(d),e=y(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(){p(a,"class","fas fa-7x fa-exclamation-triangle"),p(n,"class","no-data svelte-1romtap")},m:function(t,o){h(t,n,o),v(n,a),v(n,e),v(n,r),v(r,c)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}function $t(t){for(var n,a,e,r,c,o,i=t[0],s=[],m=0;m<i.length;m+=1)s[m]=kt(bt(t,i,m));var g=function(t){return I(s[t],1,1,(function(){s[t]=null}))};return{c:function(){n=u("div"),a=u("h2"),e=_("Predicted"),r=w(),c=u("div");for(var t=0;t<s.length;t+=1)s[t].c();this.h()},l:function(t){n=l(t,"DIV",{classname:!0});var o=f(n);a=l(o,"H2",{class:!0});var i=f(a);e=b(i,"Predicted"),i.forEach(d),o.forEach(d),r=y(t),c=l(t,"DIV",{class:!0});for(var u=f(c),p=0;p<s.length;p+=1)s[p].l(u);u.forEach(d),this.h()},h:function(){p(a,"class","svelte-1romtap"),p(n,"classname","flex flex-row justify-between items-top"),p(c,"class","prediction-table svelte-1romtap")},m:function(t,i){h(t,n,i),v(n,a),v(a,e),h(t,r,i),h(t,c,i);for(var u=0;u<s.length;u+=1)s[u].m(c,null);o=!0},p:function(t,n){if(1&n){var a;for(i=t[0],a=0;a<i.length;a+=1){var e=bt(t,i,a);s[a]?(s[a].p(e,n),O(s[a],1)):(s[a]=kt(e),s[a].c(),O(s[a],1),s[a].m(c,null))}for(D(),a=i.length;a<s.length;a+=1)g(a);P()}},i:function(t){if(!o){for(var n=0;n<i.length;n+=1)O(s[n]);o=!0}},o:function(t){s=s.filter(Boolean);for(var n=0;n<s.length;n+=1)I(s[n]);o=!1},d:function(t){t&&d(n),t&&d(r),t&&d(c),N(s,t)}}}function kt(t){var n,a;return n=new _t({props:{prediction:t[5]}}),{c:function(){x(n.$$.fragment)},l:function(t){R(n.$$.fragment,t)},m:function(t,e){V(n,t,e),a=!0},p:function(t,a){var e={};1&a&&(e.prediction=t[5]),n.$set(e)},i:function(t){a||(O(n.$$.fragment,t),a=!0)},o:function(t){I(n.$$.fragment,t),a=!1},d:function(t){B(n,t)}}}function Dt(t){var n,a,e,r,c=[$t,Et],o=[];function i(t,n){return t[0]?0:1}return a=i(t),e=o[a]=c[a](t),{c:function(){n=u("div"),e.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var a=f(n);e.l(a),a.forEach(d),this.h()},h:function(){p(n,"class","predicted-weather svelte-1romtap")},m:function(t,e){h(t,n,e),o[a].m(n,null),r=!0},p:function(t,r){var s=k(r,1)[0],u=a;(a=i(t))===u?o[a].p(t,s):(D(),I(o[u],1,1,(function(){o[u]=null})),P(),(e=o[a])?e.p(t,s):(e=o[a]=c[a](t)).c(),O(e,1),e.m(n,null))},i:function(t){r||(O(e),r=!0)},o:function(t){I(e),r=!1},d:function(t){t&&d(n),o[a].d()}}}function It(t,n,a){var e,r,c;function o(){return i.apply(this,arguments)}function i(){return(i=st(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!e.updating){t.next=3;break}return a(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})),a(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:e.available}}))),e.available&&c.forEach((function(t,n){var r,o,i=new Date(0,0,0);e.yr_data_raw.properties.timeseries.forEach((function(n,a){var e=new Date(n.time);Math.abs(e.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())&&(i=e,r=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction)})),a(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 j(t,F,(function(t){return a(1,e=t)})),j(t,U,(function(t){return a(2,r=t)})),U.subscribe(o),F.subscribe(o),[c]}var Pt=function(n){t(u,s);var a=yt(u);function u(t){var n;return e(this,u),n=a.call(this),r(o(n),t,It,Dt,c,{}),n}return i(u)}();function Ot(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 r,c=n(t);if(e){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return a(this,r)}}function jt(t){var n,a,e,r,c,o;return e=new ot({}),c=new Pt({}),{c:function(){n=w(),a=u("div"),x(e.$$.fragment),r=w(),x(c.$$.fragment),this.h()},l:function(t){z('[data-svelte="svelte-1q3846k"]',document.head).forEach(d),n=y(t),a=l(t,"DIV",{class:!0});var o=f(a);R(e.$$.fragment,o),r=y(o),R(c.$$.fragment,o),o.forEach(d),this.h()},h:function(){document.title="Aurora data",p(a,"class","homescreen svelte-pf4p6y")},m:function(t,i){h(t,n,i),h(t,a,i),V(e,a,null),v(a,r),V(c,a,null),o=!0},p:m,i:function(t){o||(O(e.$$.fragment,t),O(c.$$.fragment,t),o=!0)},o:function(t){I(e.$$.fragment,t),I(c.$$.fragment,t),o=!1},d:function(t){t&&d(n),t&&d(a),B(e),B(c)}}}var xt=function(n){t(u,s);var a=Ot(u);function u(t){var n;return e(this,u),n=a.call(this),r(o(n),t,null,jt,c,{}),n}return i(u)}();export{xt as default}; diff --git a/client/legacy/index.b1d86915.js b/client/legacy/index.b1d86915.js deleted file mode 100644 index cdc803d..0000000 --- a/client/legacy/index.b1d86915.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,a as n,b as a,c as e,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 d,k as h,l as p,m as v,n as m,w as g,o as w,t as _,p as y,q as b,r as E,u as D,v as $,x as k,y as j,z as O,A as I,B as P,C as V,D as x,E as q,F as R,G as T,H as S,I as B}from"./client.652277bf.js";function C(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 r,c=n(t);if(e){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return a(this,r)}}function M(t){var n,a,e,r,c,i,o,s,g;return{c:function(){n=u("div"),a=u("div"),e=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);a=l(u,"DIV",{class:!0}),f(a).forEach(d),e=l(u,"DIV",{class:!0}),f(e).forEach(d),r=l(u,"DIV",{class:!0}),f(r).forEach(d),c=l(u,"DIV",{class:!0}),f(c).forEach(d),i=l(u,"DIV",{class:!0}),f(i).forEach(d),o=l(u,"DIV",{class:!0}),f(o).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(a,"class","svelte-7k6qu0"),h(e,"class","svelte-7k6qu0"),h(r,"class","svelte-7k6qu0"),h(c,"class","svelte-7k6qu0"),h(i,"class","svelte-7k6qu0"),h(o,"class","svelte-7k6qu0"),h(s,"class","svelte-7k6qu0"),h(g,"class","svelte-7k6qu0"),h(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){p(t,n,u),v(n,a),v(n,e),v(n,r),v(n,c),v(n,i),v(n,o),v(n,s),v(n,g)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}var N=function(n){t(u,s);var a=C(u);function u(t){var n;return e(this,u),n=a.call(this),r(i(n),t,null,M,c,{}),n}return o(u)}();const z={updated:!1,updating:!0},H=g(Object.assign(Object.assign({},z),{available:!1,longitude:null,latitude:null,city:null})),A=g(Object.assign(Object.assign({},z),{available:!1})),K=g(Object.assign({},z));function J(t,n=!1){let a=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),a),{updating:n})))}function F(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 r,c=n(t);if(e){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return a(this,r)}}function L(t){var n,a,e,r,c=t[0].city+"";return{c:function(){n=u("i"),a=w(),e=u("h1"),r=_(c),this.h()},l:function(t){n=l(t,"I",{class:!0}),f(n).forEach(d),a=y(t),e=l(t,"H1",{class:!0});var i=f(e);r=b(i,c),i.forEach(d),this.h()},h:function(){h(n,"class","symbol fas fa-map-marker-alt svelte-9mqc59"),h(e,"class","svelte-9mqc59")},m:function(t,c){p(t,n,c),p(t,a,c),p(t,e,c),v(e,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&E(r,c)},d:function(t){t&&d(n),t&&d(a),t&&d(e)}}}function U(t){var n,a,e=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),a=_(e)},l:function(t){n=l(t,"P",{});var r=f(n);a=b(r,e),r.forEach(d)},m:function(t,e){p(t,n,e),v(n,a)},p:function(t,n){2&n&&e!==(e=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&E(a,e)},d:function(t){t&&d(n)}}}function Z(t){var n,a;return{c:function(){n=u("p"),a=_("There is more than 10 minutes difference between data updates")},l:function(t){n=l(t,"P",{});var e=f(n);a=b(e,"There is more than 10 minutes difference between data updates"),e.forEach(d)},m:function(t,e){p(t,n,e),v(n,a)},p:m,d:function(t){t&&d(n)}}}function G(t){return{c:m,l:m,m:m,p:m,d:m}}function Q(t){var n,a,e,r,c,i,o,s,g,D,$,k,j=t[2].now.kp+"",O=t[2].now.kp_max+"",I=t[2].now.kp_min+"";return{c:function(){n=u("h2"),a=_("KP "),e=_(j),r=w(),c=u("p"),i=u("span"),o=_("↑ KP "),s=_(O),g=w(),D=u("span"),$=_("↓ KP "),k=_(I),this.h()},l:function(t){n=l(t,"H2",{class:!0});var u=f(n);a=b(u,"KP "),e=b(u,j),u.forEach(d),r=y(t),c=l(t,"P",{});var h=f(c);i=l(h,"SPAN",{classname:!0});var p=f(i);o=b(p,"↑ KP "),s=b(p,O),p.forEach(d),g=y(h),D=l(h,"SPAN",{classname:!0});var v=f(D);$=b(v,"↓ KP "),k=b(v,I),v.forEach(d),h.forEach(d),this.h()},h:function(){h(n,"class","svelte-9mqc59"),h(i,"classname","pr-2"),h(D,"classname","pl-2")},m:function(t,u){p(t,n,u),v(n,a),v(n,e),p(t,r,u),p(t,c,u),v(c,i),v(i,o),v(i,s),v(c,g),v(c,D),v(D,$),v(D,k)},p:function(t,n){4&n&&j!==(j=t[2].now.kp+"")&&E(e,j),4&n&&O!==(O=t[2].now.kp_max+"")&&E(s,O),4&n&&I!==(I=t[2].now.kp_min+"")&&E(k,I)},i:m,o:m,d:function(t){t&&d(n),t&&d(r),t&&d(c)}}}function W(t){var n,a;return n=new N({}),{c:function(){V(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,e){q(n,t,e),a=!0},p:m,i:function(t){a||(I(n.$$.fragment,t),a=!0)},o:function(t){j(n.$$.fragment,t),a=!1},d:function(t){R(n,t)}}}function X(t){var n,a,e,r,c,i,o,s,m=t[2].now.bz+"",g=t[1].available&&Y(t);return{c:function(){n=u("div"),a=u("p"),e=_("BZ"),r=w(),c=u("p"),i=_(m),o=w(),g&&g.c(),s=D(),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);a=l(u,"P",{class:!0});var h=f(a);e=b(h,"BZ"),h.forEach(d),r=y(u),c=l(u,"P",{class:!0});var p=f(c);i=b(p,m),p.forEach(d),u.forEach(d),o=y(t),g&&g.l(t),s=D(),this.h()},h:function(){h(a,"class","svelte-9mqc59"),h(c,"class","svelte-9mqc59")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(n,r),v(n,c),v(c,i),p(t,o,u),g&&g.m(t,u),p(t,s,u)},p:function(t,n){4&n&&m!==(m=t[2].now.bz+"")&&E(i,m),t[1].available?g?g.p(t,n):((g=Y(t)).c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},d:function(t){t&&d(n),t&&d(o),g&&g.d(t),t&&d(s)}}}function Y(t){var n,a,e,r,c,i,o,s,m,g,D,$,k,j,O,I=t[1].now.temp+"",P=t[1].now.clouds+"";return{c:function(){n=u("div"),a=u("p"),e=_("Temp"),r=w(),c=u("p"),i=_(I),o=_("°C"),s=w(),m=u("div"),g=u("p"),D=_("Clouds"),$=w(),k=u("p"),j=_(P),O=_("%"),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);a=l(u,"P",{class:!0});var h=f(a);e=b(h,"Temp"),h.forEach(d),r=y(u),c=l(u,"P",{class:!0});var p=f(c);i=b(p,I),o=b(p,"°C"),p.forEach(d),u.forEach(d),s=y(t),m=l(t,"DIV",{});var v=f(m);g=l(v,"P",{class:!0});var w=f(g);D=b(w,"Clouds"),w.forEach(d),$=y(v),k=l(v,"P",{class:!0});var _=f(k);j=b(_,P),O=b(_,"%"),_.forEach(d),v.forEach(d),this.h()},h:function(){h(a,"class","svelte-9mqc59"),h(c,"class","svelte-9mqc59"),h(g,"class","svelte-9mqc59"),h(k,"class","svelte-9mqc59")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(n,r),v(n,c),v(c,i),v(c,o),p(t,s,u),p(t,m,u),v(m,g),v(g,D),v(m,$),v(m,k),v(k,j),v(k,O)},p:function(t,n){2&n&&I!==(I=t[1].now.temp+"")&&E(i,I),2&n&&P!==(P=t[1].now.clouds+"")&&E(j,P)},d:function(t){t&&d(n),t&&d(s),t&&d(m)}}}function tt(t){var n,a,e,r,c,i,o,s,m,g,_,b,E,D=!t[0].updating&&t[0].available&&L(t);function P(t,n){return 6&n&&(i=null),t[1].updating||t[2].updating?G:(null==i&&(i=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),i?Z:U)}var V=P(t,-1),x=V(t),q=[W,Q],R=[];function T(t,n){return t[2].updating||t[1].updating?0:1}m=T(t),g=R[m]=q[m](t);var S=!t[2].updating&&!t[1].updating&&X(t);return{c:function(){n=u("div"),a=u("div"),e=u("div"),D&&D.c(),r=w(),c=u("div"),x.c(),o=w(),s=u("div"),g.c(),_=w(),b=u("div"),S&&S.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var i=f(n);a=l(i,"DIV",{class:!0});var u=f(a);e=l(u,"DIV",{class:!0});var h=f(e);D&&D.l(h),h.forEach(d),r=y(u),c=l(u,"DIV",{class:!0});var p=f(c);x.l(p),p.forEach(d),o=y(u),s=l(u,"DIV",{class:!0});var v=f(s);g.l(v),v.forEach(d),_=y(u),b=l(u,"DIV",{class:!0});var m=f(b);S&&S.l(m),m.forEach(d),u.forEach(d),i.forEach(d),this.h()},h:function(){h(e,"class","weatherCurrent-data-location svelte-9mqc59"),h(c,"class","weatherCurrent-data-date"),h(s,"class","weatherCurrent-data-kp svelte-9mqc59"),h(b,"class","current-details svelte-9mqc59"),h(a,"class","weatherCurrent-data svelte-9mqc59"),h(n,"class","weatherCurrent-wrapper svelte-9mqc59")},m:function(t,i){p(t,n,i),v(n,a),v(a,e),D&&D.m(e,null),v(a,r),v(a,c),x.m(c,null),v(a,o),v(a,s),R[m].m(s,null),v(a,_),v(a,b),S&&S.m(b,null),E=!0},p:function(t,n){var a=$(n,1)[0];!t[0].updating&&t[0].available?D?D.p(t,a):((D=L(t)).c(),D.m(e,null)):D&&(D.d(1),D=null),V===(V=P(t,a))&&x?x.p(t,a):(x.d(1),(x=V(t))&&(x.c(),x.m(c,null)));var r=m;(m=T(t))===r?R[m].p(t,a):(k(),j(R[r],1,1,(function(){R[r]=null})),O(),(g=R[m])?g.p(t,a):(g=R[m]=q[m](t)).c(),I(g,1),g.m(s,null)),t[2].updating||t[1].updating?S&&(S.d(1),S=null):S?S.p(t,a):((S=X(t)).c(),S.m(b,null))},i:function(t){E||(I(g),E=!0)},o:function(t){j(g),E=!1},d:function(t){t&&d(n),D&&D.d(),x.d(),R[m].d(),S&&S.d()}}}function nt(t,n,a){var e,r,c;return P(t,H,(function(t){return a(0,e=t)})),P(t,A,(function(t){return a(1,r=t)})),P(t,K,(function(t){return a(2,c=t)})),[e,r,c]}!async function(){if("undefined"==typeof window)return;let t;J(H,!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),H.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void J(H,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),a=await n.json();H.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:a.city}),t))),J(H,!1)}(),H.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return A.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void J(A,!1);J(A,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),a=await n.json(),e={clouds:null,temp:null};try{e.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,e.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}A.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:a,now:e,available:!0}))),J(A,!1)})),async function(){if("undefined"==typeof window)return;J(K,!0);let t=await async function(){let t={now:{bz:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!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,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 a=new Date,e=new Date(0,0,0),r=1e3,c=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((n,i)=>{n[1]>c&&(c=n[1]),n[1]<r&&(r=n[1]);let o=new Date(n[0]+" UTC");Math.abs(o.getTime()-a.getTime())<Math.abs(e.getTime()-a.getTime())&&(e=o,t.now.kp=n[1]),t.usnoaa_data_raw.noaa_planetary_k_index_forecast[i]={time:o,kp:n[1],observed:n[2]}})),t.now.kp_min=r.toString(),t.now.kp_max=c.toString(),t}();K.update((n=>Object.assign(Object.assign({},n),t))),J(K,!1)}();var at=function(n){t(u,s);var a=F(u);function u(t){var n;return e(this,u),n=a.call(this),r(i(n),t,nt,tt,c,{}),n}return o(u)}();function et(t,n,a,e,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void a(t)}o.done?n(s):Promise.resolve(s).then(e,r)}function rt(t){return function(){var n=this,a=arguments;return new Promise((function(e,r){var c=t.apply(n,a);function i(t){et(c,e,r,i,o,"next",t)}function o(t){et(c,e,r,i,o,"throw",t)}i(void 0)}))}}function ct(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 r,c=n(t);if(e){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return a(this,r)}}function it(t){var n,a,e,r,c,i,o,s,g,E,D,k,j=t[5]&&function(t){var n,a,e,r,c,i,o,s,g,E,D,$;return{c:function(){n=u("div"),a=u("p"),e=u("i"),r=w(),c=_(t[3]),i=_("°C"),o=w(),s=u("p"),g=u("i"),E=w(),D=_(t[4]),$=_("%"),this.h()},l:function(u){n=l(u,"DIV",{});var h=f(n);a=l(h,"P",{});var p=f(a);e=l(p,"I",{class:!0}),f(e).forEach(d),r=y(p),c=b(p,t[3]),i=b(p,"°C"),p.forEach(d),o=y(h),s=l(h,"P",{});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(d),E=y(v),D=b(v,t[4]),$=b(v,"%"),v.forEach(d),h.forEach(d),this.h()},h:function(){h(e,"class","fas fa-thermometer-half"),h(g,"class","fas fa-cloud")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(a,r),v(a,c),v(a,i),v(n,o),v(n,s),v(s,g),v(s,E),v(s,D),v(s,$)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),a=u("div"),e=u("h3"),r=_(t[2]),c=w(),i=u("p"),o=_(t[1]),s=w(),g=u("div"),E=u("h2"),D=_(t[0]),k=w(),j&&j.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var h=f(n);a=l(h,"DIV",{});var p=f(a);e=l(p,"H3",{class:!0});var v=f(e);r=b(v,t[2]),v.forEach(d),c=y(p),i=l(p,"P",{});var m=f(i);o=b(m,t[1]),m.forEach(d),p.forEach(d),s=y(h),g=l(h,"DIV",{class:!0});var w=f(g);E=l(w,"H2",{class:!0});var _=f(E);D=b(_,t[0]),_.forEach(d),k=y(w),j&&j.l(w),w.forEach(d),h.forEach(d),this.h()},h:function(){h(e,"class","svelte-u548p6"),h(E,"class","svelte-u548p6"),h(g,"class","data svelte-u548p6"),h(n,"class","prediction-details svelte-u548p6")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(e,r),v(a,c),v(a,i),v(i,o),v(n,s),v(n,g),v(g,E),v(E,D),v(g,k),j&&j.m(g,null)},p:function(t,n){var a=$(n,1)[0];t[5]&&j.p(t,a)},i:m,o:m,d:function(t){t&&d(n),j&&j.d()}}}function ot(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,a=t,e=0;e<n-t.length;e++)a="0"+a;return a}function st(t,n,a){var e=n.prediction,r=e.kp,c=e.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][e.time.getMonth()],i=ot(e.time.getHours().toString())+":"+ot(e.time.getMinutes().toString()),o=e.temp,s=e.clouds,u=e.hasNOMETData;return t.$$set=function(t){"prediction"in t&&a(6,e=t.prediction)},[r,c,i,o,s,u,e]}var ut=function(n){t(u,s);var a=ct(u);function u(t){var n;return e(this,u),n=a.call(this),r(i(n),t,st,it,c,{prediction:6}),n}return o(u)}();function lt(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 r,c=n(t);if(e){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return a(this,r)}}function ft(t,n,a){var e=t.slice();return e[5]=n[a],e[7]=a,e}function dt(t){var n,a,e,r,c;return{c:function(){n=u("div"),a=u("i"),e=w(),r=u("p"),c=_("No prediction data"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var i=f(n);a=l(i,"I",{class:!0}),f(a).forEach(d),e=y(i),r=l(i,"P",{});var o=f(r);c=b(o,"No prediction data"),o.forEach(d),i.forEach(d),this.h()},h:function(){h(a,"class","fas fa-7x fa-exclamation-triangle"),h(n,"class","no-data svelte-1romtap")},m:function(t,i){p(t,n,i),v(n,a),v(n,e),v(n,r),v(r,c)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}function ht(t){for(var n,a,e,r,c,i,o=t[0],s=[],m=0;m<o.length;m+=1)s[m]=pt(ft(t,o,m));var g=function(t){return j(s[t],1,1,(function(){s[t]=null}))};return{c:function(){n=u("div"),a=u("h2"),e=_("Predicted"),r=w(),c=u("div");for(var t=0;t<s.length;t+=1)s[t].c();this.h()},l:function(t){n=l(t,"DIV",{classname:!0});var i=f(n);a=l(i,"H2",{class:!0});var o=f(a);e=b(o,"Predicted"),o.forEach(d),i.forEach(d),r=y(t),c=l(t,"DIV",{class:!0});for(var u=f(c),h=0;h<s.length;h+=1)s[h].l(u);u.forEach(d),this.h()},h:function(){h(a,"class","svelte-1romtap"),h(n,"classname","flex flex-row justify-between items-top"),h(c,"class","prediction-table svelte-1romtap")},m:function(t,o){p(t,n,o),v(n,a),v(a,e),p(t,r,o),p(t,c,o);for(var u=0;u<s.length;u+=1)s[u].m(c,null);i=!0},p:function(t,n){if(1&n){var a;for(o=t[0],a=0;a<o.length;a+=1){var e=ft(t,o,a);s[a]?(s[a].p(e,n),I(s[a],1)):(s[a]=pt(e),s[a].c(),I(s[a],1),s[a].m(c,null))}for(k(),a=o.length;a<s.length;a+=1)g(a);O()}},i:function(t){if(!i){for(var n=0;n<o.length;n+=1)I(s[n]);i=!0}},o:function(t){s=s.filter(Boolean);for(var n=0;n<s.length;n+=1)j(s[n]);i=!1},d:function(t){t&&d(n),t&&d(r),t&&d(c),S(s,t)}}}function pt(t){var n,a;return n=new ut({props:{prediction:t[5]}}),{c:function(){V(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,e){q(n,t,e),a=!0},p:function(t,a){var e={};1&a&&(e.prediction=t[5]),n.$set(e)},i:function(t){a||(I(n.$$.fragment,t),a=!0)},o:function(t){j(n.$$.fragment,t),a=!1},d:function(t){R(n,t)}}}function vt(t){var n,a,e,r,c=[ht,dt],i=[];function o(t,n){return t[0]?0:1}return a=o(t),e=i[a]=c[a](t),{c:function(){n=u("div"),e.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var a=f(n);e.l(a),a.forEach(d),this.h()},h:function(){h(n,"class","predicted-weather svelte-1romtap")},m:function(t,e){p(t,n,e),i[a].m(n,null),r=!0},p:function(t,r){var s=$(r,1)[0],u=a;(a=o(t))===u?i[a].p(t,s):(k(),j(i[u],1,1,(function(){i[u]=null})),O(),(e=i[a])?e.p(t,s):(e=i[a]=c[a](t)).c(),I(e,1),e.m(n,null))},i:function(t){r||(I(e),r=!0)},o:function(t){j(e),r=!1},d:function(t){t&&d(n),i[a].d()}}}function mt(t,n,a){var e,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=rt(T.mark((function t(){return T.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!e.updating){t.next=3;break}return a(0,c=null),t.abrupt("return");case 3:a(0,c=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.map((function(t){return{time:t.time,kp:t.kp,temp:null,clouds:null,hasNOMETData:e.available}}))),e.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0);e.yr_data_raw.properties.timeseries.forEach((function(n,a){var e=new Date(n.time);Math.abs(e.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())&&(o=e,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction)})),a(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i}),c)}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return P(t,A,(function(t){return a(1,e=t)})),P(t,K,(function(t){return a(2,r=t)})),K.subscribe(i),A.subscribe(i),[c]}var gt=function(n){t(u,s);var a=lt(u);function u(t){var n;return e(this,u),n=a.call(this),r(i(n),t,mt,vt,c,{}),n}return o(u)}();function wt(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 r,c=n(t);if(e){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return a(this,r)}}function _t(t){var n,a,e,r,c,i;return e=new at({}),c=new gt({}),{c:function(){n=w(),a=u("div"),V(e.$$.fragment),r=w(),V(c.$$.fragment),this.h()},l:function(t){B('[data-svelte="svelte-1q3846k"]',document.head).forEach(d),n=y(t),a=l(t,"DIV",{class:!0});var i=f(a);x(e.$$.fragment,i),r=y(i),x(c.$$.fragment,i),i.forEach(d),this.h()},h:function(){document.title="Aurora data",h(a,"class","homescreen svelte-pf4p6y")},m:function(t,o){p(t,n,o),p(t,a,o),q(e,a,null),v(a,r),q(c,a,null),i=!0},p:m,i:function(t){i||(I(e.$$.fragment,t),I(c.$$.fragment,t),i=!0)},o:function(t){j(e.$$.fragment,t),j(c.$$.fragment,t),i=!1},d:function(t){t&&d(n),t&&d(a),R(e),R(c)}}}var yt=function(n){t(u,s);var a=wt(u);function u(t){var n;return e(this,u),n=a.call(this),r(i(n),t,null,_t,c,{}),n}return o(u)}();export{yt 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.6ce3f24e.js"}catch(e){main="/Aurora-data/client/legacy/client.652277bf.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-5b63c830.css rel=stylesheet> <title>Aurora data</title> <link href=/Aurora-data/client/client.6ce3f24e.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.4a80f6bf.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-5b63c830.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-9mqc59 weatherCurrent-wrapper"><div class="svelte-9mqc59 weatherCurrent-data"><div class="svelte-9mqc59 weatherCurrent-data-location"></div> <div class=weatherCurrent-data-date></div> <div class="svelte-9mqc59 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-9mqc59 current-details"></div></div></div> <div class="svelte-1romtap predicted-weather"><div class="svelte-1romtap 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.8dd81e75.js"}catch(e){main="/Aurora-data/client/legacy/client.03ab3887.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-39e875ff.css rel=stylesheet> <title>Aurora data</title> <link href=/Aurora-data/client/client.8dd81e75.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.d235304e.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-39e875ff.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-1romtap predicted-weather"><div class="svelte-1romtap 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 8b10cc2..c402794 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.6ce3f24e.js"}catch(e){main="/Aurora-data/client/legacy/client.652277bf.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-5b63c830.css rel=stylesheet> <link href=/Aurora-data/client/client.6ce3f24e.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.4a80f6bf.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-5b63c830.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.8dd81e75.js"}catch(e){main="/Aurora-data/client/legacy/client.03ab3887.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-39e875ff.css rel=stylesheet> <link href=/Aurora-data/client/client.8dd81e75.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.d235304e.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-39e875ff.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 da8a2a7..6674ebb 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -!function(){"use strict";const e=1651013491030,t=[{pattern:/^\/$/}],s=`cache${e}`,a=["/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)),n=["/client/client.6ce3f24e.js","/client/inject_styles.5607aec6.js","/client/index.4a80f6bf.js"].map((e=>"/Aurora-data"+e)).concat(a),c=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(n))).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 a=new URL(s.request.url);a.protocol.startsWith("http")&&(a.hostname===self.location.hostname&&a.port!==self.location.port||(a.host===self.location.host&&c.has(a.pathname)?s.respondWith(caches.match(s.request)):a.origin===self.origin&&t.find((e=>e.pattern.test(a.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 a=await e.match(s.request);if(a)return a;throw t}})))))}))}(); +!function(){"use strict";const e=1651021209315,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.8dd81e75.js","/client/inject_styles.5607aec6.js","/client/index.d235304e.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}})))))}))}(); |