summaryrefslogtreecommitdiff
path: root/client/legacy
diff options
context:
space:
mode:
Diffstat (limited to 'client/legacy')
-rw-r--r--client/legacy/client-a97f3910.css4
-rw-r--r--client/legacy/client-ea61129f.css2
-rw-r--r--client/legacy/client.b2e3ee4d.js18
-rw-r--r--client/legacy/client.b77ea58c.js18
-rw-r--r--client/legacy/index-2bfb1750.css (renamed from client/legacy/index-8f3929f0.css)2
-rw-r--r--client/legacy/index.8f5d05d4.js1
-rw-r--r--client/legacy/index.c0543b4c.js1
7 files changed, 24 insertions, 22 deletions
diff --git a/client/legacy/client-a97f3910.css b/client/legacy/client-a97f3910.css
new file mode 100644
index 0000000..cecb36f
--- /dev/null
+++ b/client/legacy/client-a97f3910.css
@@ -0,0 +1,4 @@
+.snack.svelte-oh5xo5{display:flex;width:100%;background-color:var(--error, red);color:var(--on-error, black);border-radius:15px;padding:5px;box-sizing:border-box}.message.svelte-oh5xo5{margin-left:5px}.close.svelte-oh5xo5{background-color:var(--error, red);margin-left:auto;padding-left:10px;padding-right:10px;border-radius:15px;text-align:center}.close.svelte-oh5xo5:hover{filter:brightness(0.85)}.close.svelte-oh5xo5:active{filter:brightness(0.75)}
+.snack-container.svelte-ktpiag{position:absolute;bottom:10px;left:10px;right:10px}
+.app-container.svelte-f4gvfq{position:relative;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;width:100%;height:100%;margin:0;padding:0;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background-size:cover;background-repeat:no-repeat;background-position:center}@media(min-width: 640px){.app-container.svelte-f4gvfq{border-radius:1rem;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center;width:375px;height:812px}}
+h1.svelte-jpshsi,p.svelte-jpshsi{margin:0 auto}h1.svelte-jpshsi{font-size:2.8em;font-weight:700;margin:0 0 0.5em 0}p.svelte-jpshsi{margin:1em auto}@media(min-width: 480px){h1.svelte-jpshsi{font-size:4em}}
diff --git a/client/legacy/client-ea61129f.css b/client/legacy/client-ea61129f.css
deleted file mode 100644
index 52c9a0d..0000000
--- a/client/legacy/client-ea61129f.css
+++ /dev/null
@@ -1,2 +0,0 @@
-.app-container.svelte-lkkhqy{font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;width:100%;height:100%;margin:0;padding:0;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background-size:cover;background-repeat:no-repeat;background-position:center}@media(min-width: 640px){.app-container.svelte-lkkhqy{border-radius:1rem;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;height:100%;background-size:cover;background-repeat:no-repeat;background-position:center;width:375px;height:812px}}
-h1.svelte-jpshsi,p.svelte-jpshsi{margin:0 auto}h1.svelte-jpshsi{font-size:2.8em;font-weight:700;margin:0 0 0.5em 0}p.svelte-jpshsi{margin:1em auto}@media(min-width: 480px){h1.svelte-jpshsi{font-size:4em}}
diff --git a/client/legacy/client.b2e3ee4d.js b/client/legacy/client.b2e3ee4d.js
new file mode 100644
index 0000000..a4fce04
--- /dev/null
+++ b/client/legacy/client.b2e3ee4d.js
@@ -0,0 +1,18 @@
+function t(n){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(n)}function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function e(t,e){if(t){if("string"==typeof t)return n(t,e);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)?n(t,e):void 0}}function r(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i=[],a=!0,c=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(t){c=!0,o=t}finally{try{a||null==e.return||e.return()}finally{if(c)throw o}}return i}}(t,n)||e(t,n)||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,c=(o=function(n){var e=function(n){var e,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{f({},"")}catch(t){f=function(t,n,e){return t[n]=e}}function s(t,n,e,r){var o=n&&n.prototype instanceof y?n:y,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(t,n,e){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 P()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=S(a,e);if(c){if(c===m)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(r===h)throw r=v,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);r=d;var u=l(t,n,e);if("normal"===u.type){if(r=e.done?v:p,u.arg===m)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(r=v,e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function l(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}n.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var w={};f(w,a,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(L([])));_&&_!==r&&o.call(_,a)&&(w=_);var $=b.prototype=y.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(n){f(t,n,(function(t){return this._invoke(n,t)}))}))}function O(n,e){function r(i,a,c,u){var f=l(n[i],n,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(h).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(f.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}}function S(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function j(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function n(){for(;++r<t.length;)if(o.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}return{next:P}}function P(){return{value:e,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===g||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,u,"GeneratorFunction")),t.prototype=Object.create($),t},n.awrap=function(t){return{__await:t}},E(O.prototype),f(O.prototype,c,(function(){return this})),n.AsyncIterator=O,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new O(s(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,u,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var n=[];for(var e in t)n.push(e);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=L,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},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 n=this;function r(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(u&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){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,n){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=n&&n<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=n,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,n){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&&n&&(this.next=n),m},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),m}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var o=r.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},n}(n.exports);try{regeneratorRuntime=e}catch(n){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},o(a={path:i,exports:{},require:function(t,n){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==n&&a.path)}},a.exports),a.exports),u=c;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,n){return s=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t},s(t,n)}function l(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(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,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&s(t,n)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(n,e){if(e&&("object"===t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(n)}function v(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function m(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,n,e){return n&&m(t.prototype,n),e&&m(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}var b=function(t){return t};function w(t,n){for(var e in n)t[e]=n[e];return t}function x(t){return t()}function _(){return Object.create(null)}function $(t){t.forEach(x)}function E(t){return"function"==typeof t}function O(n,e){return n!=n?e==e:n!==e||n&&"object"===t(n)||"function"==typeof n}function S(t){if(null==t)return g;for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];var o=t.subscribe.apply(t,e);return o.unsubscribe?function(){return o.unsubscribe()}:o}function k(t){var n;return S(t,(function(t){return n=t}))(),n}function j(t,n,e){t.$$.on_destroy.push(S(n,e))}function R(t,n,e,r){if(t){var o=L(t,n,e,r);return t[0](o)}}function L(t,n,e,r){return t[1]&&r?w(e.ctx.slice(),t[1](r(n))):e.ctx}function P(n,e,r,o){if(n[2]&&o){var i=n[2](o(r));if(void 0===e.dirty)return i;if("object"===t(i)){for(var a=[],c=Math.max(e.dirty.length,i.length),u=0;u<c;u+=1)a[u]=e.dirty[u]|i[u];return a}return e.dirty|i}return e.dirty}function A(t,n,e,r,o,i){if(o){var a=L(n,e,r,i);t.p(a,o)}}function N(t){if(t.ctx.length>32){for(var n=[],e=t.ctx.length/32,r=0;r<e;r++)n[r]=-1;return n}return-1}var T="undefined"!=typeof window,I=T?function(){return window.performance.now()}:function(){return Date.now()},B=T?function(t){return requestAnimationFrame(t)}:g,C=new Set;function D(t){C.forEach((function(n){n.c(t)||(C.delete(n),n.f())})),0!==C.size&&B(D)}var q=!1;function U(){q=!0}function G(){q=!1}function M(t,n,e,r){for(;t<n;){var o=t+(n-t>>1);e(o)<=r?t=o+1:n=o}return t}function F(t){if(!t)return document;var n=t.getRootNode?t.getRootNode():t.ownerDocument;return n&&n.host?n:t.ownerDocument}function V(t){var n=Y("style");return function(t,n){!function(t,n){t.appendChild(n)}(t.head||t,n)}(F(t),n),n.sheet}function z(t,n){if(q){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var n=t.childNodes;if("HEAD"===t.nodeName){for(var e=[],r=0;r<n.length;r++){var o=n[r];void 0!==o.claim_order&&e.push(o)}n=e}var i=new Int32Array(n.length+1),a=new Int32Array(n.length);i[0]=-1;for(var c=0,u=0;u<n.length;u++){var f=n[u].claim_order,s=(c>0&&n[i[c]].claim_order<=f?c+1:M(1,c,(function(t){return n[i[t]].claim_order}),f))-1;a[u]=i[s]+1;var l=s+1;i[l]=u,c=Math.max(l,c)}for(var h=[],p=[],d=n.length-1,v=i[c]+1;0!=v;v=a[v-1]){for(h.push(n[v-1]);d>=v;d--)p.push(n[d]);d--}for(;d>=0;d--)p.push(n[d]);h.reverse(),p.sort((function(t,n){return t.claim_order-n.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;n!==t.actual_end_child?void 0===n.claim_order&&n.parentNode===t||t.insertBefore(n,t.actual_end_child):t.actual_end_child=n.nextSibling}else n.parentNode===t&&null===n.nextSibling||t.appendChild(n)}function J(t,n,e){q&&!e?z(t,n):n.parentNode===t&&n.nextSibling==e||t.insertBefore(n,e||null)}function K(t){t.parentNode.removeChild(t)}function H(t,n){for(var e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function Y(t){return document.createElement(t)}function W(t){return document.createTextNode(t)}function Q(){return W(" ")}function X(){return W("")}function Z(t,n,e,r){return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function tt(t,n,e){null==e?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function nt(t){return Array.from(t.childNodes)}function et(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function rt(t,n,e,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];et(t);var i=function(){for(var i=t.claim_info.last_index;i<t.length;i++){var a=t[i];if(n(a)){var c=e(a);return void 0===c?t.splice(i,1):t[i]=c,o||(t.claim_info.last_index=i),a}}for(var u=t.claim_info.last_index-1;u>=0;u--){var f=t[u];if(n(f)){var s=e(f);return void 0===s?t.splice(u,1):t[u]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=u,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function ot(t,n,e){return function(t,n,e,r){return rt(t,(function(t){return t.nodeName===n}),(function(t){for(var n=[],r=0;r<t.attributes.length;r++){var o=t.attributes[r];e[o.name]||n.push(o.name)}n.forEach((function(n){return t.removeAttribute(n)}))}),(function(){return r(n)}))}(t,n,e,Y)}function it(t,n){return rt(t,(function(t){return 3===t.nodeType}),(function(t){var e=""+n;if(t.data.startsWith(e)){if(t.data.length!==e.length)return t.splitText(e.length)}else t.data=e}),(function(){return W(n)}),!0)}function at(t){return it(t," ")}function ct(t,n){n=""+n,t.wholeText!==n&&(t.data=n)}function ut(t,n,e,r){null===e?t.style.removeProperty(n):t.style.setProperty(n,e,r?"important":"")}function ft(t,n,e){t.classList[e?"add":"remove"](n)}function st(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(n.querySelectorAll(t))}var lt,ht=new Map,pt=0;function dt(t){for(var n=5381,e=t.length;e--;)n=(n<<5)-n^t.charCodeAt(e);return n>>>0}function vt(t,n){var e={stylesheet:V(n),rules:{}};return ht.set(t,e),e}function mt(t,n,e,r,o,i,a){for(var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=16.666/r,f="{\n",s=0;s<=1;s+=u){var l=n+(e-n)*i(s);f+=100*s+"%{".concat(a(l,1-l),"}\n")}var h=f+"100% {".concat(a(e,1-e),"}\n}"),p="__svelte_".concat(dt(h),"_").concat(c),d=F(t),v=ht.get(d)||vt(d,t),m=v.stylesheet,y=v.rules;y[p]||(y[p]=!0,m.insertRule("@keyframes ".concat(p," ").concat(h),m.cssRules.length));var g=t.style.animation||"";return t.style.animation="".concat(g?"".concat(g,", "):"").concat(p," ").concat(r,"ms linear ").concat(o,"ms 1 both"),pt+=1,p}function yt(t,n){var e=(t.style.animation||"").split(", "),r=e.filter(n?function(t){return t.indexOf(n)<0}:function(t){return-1===t.indexOf("__svelte")}),o=e.length-r.length;o&&(t.style.animation=r.join(", "),(pt-=o)||B((function(){pt||(ht.forEach((function(t){for(var n=t.stylesheet,e=n.cssRules.length;e--;)n.deleteRule(e);t.rules={}})),ht.clear())})))}function gt(t){lt=t}function bt(){if(!lt)throw new Error("Function called outside component initialization");return lt}var wt=[],xt=[],_t=[],$t=[],Et=Promise.resolve(),Ot=!1;function St(t){_t.push(t)}var kt,jt=new Set,Rt=0;function Lt(){var t=lt;do{for(;Rt<wt.length;){var n=wt[Rt];Rt++,gt(n),Pt(n.$$)}for(gt(null),wt.length=0,Rt=0;xt.length;)xt.pop()();for(var e=0;e<_t.length;e+=1){var r=_t[e];jt.has(r)||(jt.add(r),r())}_t.length=0}while(wt.length);for(;$t.length;)$t.pop()();Ot=!1,jt.clear(),gt(t)}function Pt(t){if(null!==t.fragment){t.update(),$(t.before_update);var n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(St)}}function At(t,n,e){t.dispatchEvent(function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e,!1,n),r}("".concat(n?"intro":"outro").concat(e)))}var Nt,Tt=new Set;function It(){Nt={r:0,c:[],p:Nt}}function Bt(){Nt.r||$(Nt.c),Nt=Nt.p}function Ct(t,n){t&&t.i&&(Tt.delete(t),t.i(n))}function Dt(t,n,e,r){if(t&&t.o){if(Tt.has(t))return;Tt.add(t),Nt.c.push((function(){Tt.delete(t),r&&(e&&t.d(1),r())})),t.o(n)}}var qt={duration:0};function Ut(t,n,e,r){var o=n(t,e),i=r?0:1,a=null,c=null,u=null;function f(){u&&yt(t,u)}function s(t,n){var e=t.b-i;return n*=Math.abs(e),{a:i,b:t.b,d:e,duration:n,start:t.start,end:t.start+n,group:t.group}}function l(n){var e,r=o||qt,l=r.delay,h=void 0===l?0:l,p=r.duration,d=void 0===p?300:p,v=r.easing,m=void 0===v?b:v,y=r.tick,w=void 0===y?g:y,x=r.css,_={start:I()+h,b:n};n||(_.group=Nt,Nt.r+=1),a||c?c=_:(x&&(f(),u=mt(t,i,n,d,h,m,x)),n&&w(0,1),a=s(_,d),St((function(){return At(t,n,"start")})),e=function(n){if(c&&n>c.start&&(a=s(c,d),c=null,At(t,a.b,"start"),x&&(f(),u=mt(t,i,a.b,a.duration,0,m,o.css))),a)if(n>=a.end)w(i=a.b,1-i),At(t,a.b,"end"),c||(a.b?f():--a.group.r||$(a.group.c)),a=null;else if(n>=a.start){var e=n-a.start;i=a.a+a.d*m(e/a.duration),w(i,1-i)}return!(!a&&!c)},0===C.size&&B(D),new Promise((function(t){C.add({c:e,f:t})})))}return{run:function(t){E(o)?(kt||(kt=Promise.resolve()).then((function(){kt=null})),kt).then((function(){o=o(),l(t)})):l(t)},end:function(){f(),a=c=null}}}function Gt(t,n){for(var e={},r={},o={$$scope:1},i=t.length;i--;){var a=t[i],c=n[i];if(c){for(var u in a)u in c||(r[u]=1);for(var f in c)o[f]||(e[f]=c[f],o[f]=1);t[i]=c}else for(var s in a)o[s]=1}for(var l in r)l in e||(e[l]=void 0);return e}function Mt(n){return"object"===t(n)&&null!==n?n:{}}function Ft(t){t&&t.c()}function Vt(t,n){t&&t.l(n)}function zt(t,n,e,r){var o=t.$$,i=o.fragment,a=o.on_mount,c=o.on_destroy,u=o.after_update;i&&i.m(n,e),r||St((function(){var n=a.map(x).filter(E);c?c.push.apply(c,l(n)):$(n),t.$$.on_mount=[]})),u.forEach(St)}function Jt(t,n){var e=t.$$;null!==e.fragment&&($(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function Kt(t,n){-1===t.$$.dirty[0]&&(wt.push(t),Ot||(Ot=!0,Et.then(Lt)),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function Ht(t,n,e,r,o,i,a){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],u=lt;gt(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:_(),dirty:c,skip_bound:!1,root:n.target||u.$$.root};a&&a(f.root);var s=!1;if(f.ctx=e?e(t,n.props||{},(function(n,e){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:e;return f.ctx&&o(f.ctx[n],f.ctx[n]=r)&&(!f.skip_bound&&f.bound[n]&&f.bound[n](r),s&&Kt(t,n)),e})):[],f.update(),s=!0,$(f.before_update),f.fragment=!!r&&r(f.ctx),n.target){if(n.hydrate){U();var l=nt(n.target);f.fragment&&f.fragment.l(l),l.forEach(K)}else f.fragment&&f.fragment.c();n.intro&&Ct(t.$$.fragment),zt(t,n.target,n.anchor,n.customElement),G(),Lt()}gt(u)}var Yt=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){Jt(this,1),this.$destroy=g}},{key:"$on",value:function(t,n){var e=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return e.push(n),function(){var t=e.indexOf(n);-1!==t&&e.splice(t,1)}}},{key:"$set",value:function(t){var n;this.$$set&&(n=t,0!==Object.keys(n).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Wt(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,n){if(!t)return;if("string"==typeof t)return Qt(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Qt(t,n)}(t))||n&&t&&"number"==typeof t.length){e&&(t=e);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,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(c)throw i}}}}function Qt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var Xt=[];function Zt(t){var n,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(e){if(O(t,e)&&(t=e,n)){var o,i=!Xt.length,a=Wt(r);try{for(a.s();!(o=a.n()).done;){var c=o.value;c[1](),Xt.push(c,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var u=0;u<Xt.length;u+=2)Xt[u][0](Xt[u+1]);Xt.length=0}}}function i(n){o(n(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,c=[i,a];return r.add(c),1===r.size&&(n=e(o)||g),i(t),function(){r.delete(c),0===r.size&&(n(),n=null)}}return{set:o,update:i,subscribe:a}}var tn={},nn=Zt("light");function en(t){var n=t-1;return n*n*n+1}function rn(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.delay,r=void 0===e?0:e,o=n.duration,i=void 0===o?400:o,a=n.easing,c=void 0===a?en:a,u=n.x,f=void 0===u?0:u,s=n.y,l=void 0===s?0:s,h=n.opacity,p=void 0===h?0:h,d=getComputedStyle(t),v=+d.opacity,m="none"===d.transform?"":d.transform,y=v*(1-p);return{delay:r,duration:i,easing:c,css:function(t,n){return"\n\t\t\ttransform: ".concat(m," translate(").concat((1-t)*f,"px, ").concat((1-t)*l,"px);\n\t\t\topacity: ").concat(v-y*n)}}}function on(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function an(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}setInterval((function(){if("undefined"!=typeof window){var t=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light";t!=k(nn)&&nn.set(t)}}),1e3),nn.subscribe((function(t){"undefined"!=typeof window&&("dark"==t?window.document.body.classList.add("dark"):window.document.body.classList.remove("dark"))}));var cn=1;function un(t,n){var e=function(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?an(Object(e),!0).forEach((function(n){on(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):an(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}({id:cn},t);n((function(t){return[].concat(l(t),[e])})),cn+=1}var fn=function(){var t=Zt([]),n=t.set,e=t.subscribe,r=t.update;return{subscribe:e,add:function(t){return un(t,r)},del:function(t){return function(t,n){n((function(n){return n.filter((function(n){return n.id!==t}))}))}(t,r)},reset:function(){return n([])}}}();function sn(t){var n=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 e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)}}function ln(t){var n,e,o,i,a,c,u,f,s,l,h=t[0].message+"";return{c:function(){n=Y("div"),e=Y("div"),o=W(h),i=Q(),a=Y("button"),c=Y("i"),this.h()},l:function(t){var r=nt(n=ot(t,"DIV",{class:!0})),u=nt(e=ot(r,"DIV",{class:!0}));o=it(u,h),u.forEach(K),i=at(r);var f=nt(a=ot(r,"BUTTON",{class:!0}));nt(c=ot(f,"I",{class:!0})).forEach(K),f.forEach(K),r.forEach(K),this.h()},h:function(){tt(e,"class","message svelte-oh5xo5"),tt(c,"class","fas fa-times"),tt(a,"class","close svelte-oh5xo5"),tt(n,"class","snack svelte-oh5xo5")},m:function(r,u){J(r,n,u),z(n,e),z(e,o),z(n,i),z(n,a),z(a,c),f=!0,s||(l=Z(a,"click",t[1]),s=!0)},p:function(t,n){var e=r(n,1)[0];(!f||1&e)&&h!==(h=t[0].message+"")&&ct(o,h)},i:function(t){f||(St((function(){u||(u=Ut(n,rn,{},!0)),u.run(1)})),f=!0)},o:function(t){u||(u=Ut(n,rn,{},!1)),u.run(0),f=!1},d:function(t){t&&K(n),t&&u&&u.end(),s=!1,l()}}}function hn(t,n,e){var r=n.opts;return t.$$set=function(t){"opts"in t&&e(0,r=t.opts)},[r,function(){fn.del(r.id)}]}var pn=function(t){h(e,Yt);var n=sn(e);function e(t){var r;return v(this,e),Ht(p(r=n.call(this)),t,hn,ln,O,{opts:0}),r}return y(e)}();function dn(t){var n=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 e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)}}function vn(t,n,e){var r=t.slice();return r[1]=n[e],r}function mn(t){var n,e;return n=new pn({props:{opts:t[1]}}),{c:function(){Ft(n.$$.fragment)},l:function(t){Vt(n.$$.fragment,t)},m:function(t,r){zt(n,t,r),e=!0},p:function(t,e){var r={};1&e&&(r.opts=t[1]),n.$set(r)},i:function(t){e||(Ct(n.$$.fragment,t),e=!0)},o:function(t){Dt(n.$$.fragment,t),e=!1},d:function(t){Jt(n,t)}}}function yn(t){for(var n,e,o=t[0],i=[],a=0;a<o.length;a+=1)i[a]=mn(vn(t,o,a));var c=function(t){return Dt(i[t],1,1,(function(){i[t]=null}))};return{c:function(){n=Y("div");for(var t=0;t<i.length;t+=1)i[t].c();this.h()},l:function(t){for(var e=nt(n=ot(t,"DIV",{class:!0})),r=0;r<i.length;r+=1)i[r].l(e);e.forEach(K),this.h()},h:function(){tt(n,"class","snack-container svelte-ktpiag")},m:function(t,r){J(t,n,r);for(var o=0;o<i.length;o+=1)i[o].m(n,null);e=!0},p:function(t,e){var a=r(e,1)[0];if(1&a){var u;for(o=t[0],u=0;u<o.length;u+=1){var f=vn(t,o,u);i[u]?(i[u].p(f,a),Ct(i[u],1)):(i[u]=mn(f),i[u].c(),Ct(i[u],1),i[u].m(n,null))}for(It(),u=o.length;u<i.length;u+=1)c(u);Bt()}},i:function(t){if(!e){for(var n=0;n<o.length;n+=1)Ct(i[n]);e=!0}},o:function(t){i=i.filter(Boolean);for(var n=0;n<i.length;n+=1)Dt(i[n]);e=!1},d:function(t){t&&K(n),H(i,t)}}}function gn(t,n,e){var r;return j(t,fn,(function(t){return e(0,r=t)})),[r]}var bn=function(t){h(e,Yt);var n=dn(e);function e(t){var r;return v(this,e),Ht(p(r=n.call(this)),t,gn,yn,O,{}),r}return y(e)}();function wn(t){var n=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 e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)}}function xn(t){var n,e,o,i,a=t[1].default,c=R(a,t,t[0],null);return o=new bn({}),{c:function(){n=Y("div"),c&&c.c(),e=Q(),Ft(o.$$.fragment),this.h()},l:function(t){var r=nt(n=ot(t,"DIV",{class:!0}));c&&c.l(r),e=at(r),Vt(o.$$.fragment,r),r.forEach(K),this.h()},h:function(){tt(n,"class","app-container svelte-f4gvfq")},m:function(t,r){J(t,n,r),c&&c.m(n,null),z(n,e),zt(o,n,null),i=!0},p:function(t,n){var e=r(n,1)[0];c&&c.p&&(!i||1&e)&&A(c,a,t,t[0],i?P(a,t[0],e,null):N(t[0]),null)},i:function(t){i||(Ct(c,t),Ct(o.$$.fragment,t),i=!0)},o:function(t){Dt(c,t),Dt(o.$$.fragment,t),i=!1},d:function(t){t&&K(n),c&&c.d(t),Jt(o)}}}function _n(t,n,e){var r=n.$$slots,o=void 0===r?{}:r,i=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,i=t.$$scope)},[i,o]}var $n=function(t){h(e,Yt);var n=wn(e);function e(t){var r;return v(this,e),Ht(p(r=n.call(this)),t,_n,xn,O,{}),r}return y(e)}();function En(t){var n=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 e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)}}function On(t){var n,e,r=t[1].stack+"";return{c:function(){n=Y("pre"),e=W(r)},l:function(t){var o=nt(n=ot(t,"PRE",{}));e=it(o,r),o.forEach(K)},m:function(t,r){J(t,n,r),z(n,e)},p:function(t,n){2&n&&r!==(r=t[1].stack+"")&&ct(e,r)},d:function(t){t&&K(n)}}}function Sn(t){var n,e,o,i,a,c,u,f,s,l=t[1].message+"";document.title=n=t[0];var h=t[2]&&t[1].stack&&On(t);return{c:function(){e=Q(),o=Y("h1"),i=W(t[0]),a=Q(),c=Y("p"),u=W(l),f=Q(),h&&h.c(),s=X(),this.h()},l:function(n){st('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(K),e=at(n);var r=nt(o=ot(n,"H1",{class:!0}));i=it(r,t[0]),r.forEach(K),a=at(n);var p=nt(c=ot(n,"P",{class:!0}));u=it(p,l),p.forEach(K),f=at(n),h&&h.l(n),s=X(),this.h()},h:function(){tt(o,"class","svelte-jpshsi"),tt(c,"class","svelte-jpshsi")},m:function(t,n){J(t,e,n),J(t,o,n),z(o,i),J(t,a,n),J(t,c,n),z(c,u),J(t,f,n),h&&h.m(t,n),J(t,s,n)},p:function(t,e){var o=r(e,1)[0];1&o&&n!==(n=t[0])&&(document.title=n),1&o&&ct(i,t[0]),2&o&&l!==(l=t[1].message+"")&&ct(u,l),t[2]&&t[1].stack?h?h.p(t,o):((h=On(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&K(e),t&&K(o),t&&K(a),t&&K(c),t&&K(f),h&&h.d(t),t&&K(s)}}}function kn(t,n,e){var r=n.status,o=n.error;return t.$$set=function(t){"status"in t&&e(0,r=t.status),"error"in t&&e(1,o=t.error)},[r,o,false]}var jn=function(t){h(e,Yt);var n=En(e);function e(t){var r;return v(this,e),Ht(p(r=n.call(this)),t,kn,Sn,O,{status:0,error:1}),r}return y(e)}();function Rn(t){var n=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 e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return d(this,e)}}function Ln(t){var n,e,r,o=[t[4].props],i=t[4].component;function a(t){for(var n={},e=0;e<o.length;e+=1)n=w(n,o[e]);return{props:n}}return i&&(n=new i(a())),{c:function(){n&&Ft(n.$$.fragment),e=X()},l:function(t){n&&Vt(n.$$.fragment,t),e=X()},m:function(t,o){n&&zt(n,t,o),J(t,e,o),r=!0},p:function(t,r){var c=16&r?Gt(o,[Mt(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){It();var u=n;Dt(u.$$.fragment,1,0,(function(){Jt(u,1)})),Bt()}i?(Ft((n=new i(a())).$$.fragment),Ct(n.$$.fragment,1),zt(n,e.parentNode,e)):n=null}else i&&n.$set(c)},i:function(t){r||(n&&Ct(n.$$.fragment,t),r=!0)},o:function(t){n&&Dt(n.$$.fragment,t),r=!1},d:function(t){t&&K(e),n&&Jt(n,t)}}}function Pn(t){var n,e;return n=new jn({props:{error:t[0],status:t[1]}}),{c:function(){Ft(n.$$.fragment)},l:function(t){Vt(n.$$.fragment,t)},m:function(t,r){zt(n,t,r),e=!0},p:function(t,e){var r={};1&e&&(r.error=t[0]),2&e&&(r.status=t[1]),n.$set(r)},i:function(t){e||(Ct(n.$$.fragment,t),e=!0)},o:function(t){Dt(n.$$.fragment,t),e=!1},d:function(t){Jt(n,t)}}}function An(t){var n,e,r,o,i=[Pn,Ln],a=[];function c(t,n){return t[0]?0:1}return n=c(t),e=a[n]=i[n](t),{c:function(){e.c(),r=X()},l:function(t){e.l(t),r=X()},m:function(t,e){a[n].m(t,e),J(t,r,e),o=!0},p:function(t,o){var u=n;(n=c(t))===u?a[n].p(t,o):(It(),Dt(a[u],1,1,(function(){a[u]=null})),Bt(),(e=a[n])?e.p(t,o):(e=a[n]=i[n](t)).c(),Ct(e,1),e.m(r.parentNode,r))},i:function(t){o||(Ct(e),o=!0)},o:function(t){Dt(e),o=!1},d:function(t){a[n].d(t),t&&K(r)}}}function Nn(t){for(var n,e,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[An]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=w(i,o[a]);return n=new $n({props:i}),{c:function(){Ft(n.$$.fragment)},l:function(t){Vt(n.$$.fragment,t)},m:function(t,r){zt(n,t,r),e=!0},p:function(t,e){var i=r(e,1)[0],a=12&i?Gt(o,[4&i&&{segment:t[2][0]},8&i&&Mt(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),n.$set(a)},i:function(t){e||(Ct(n.$$.fragment,t),e=!0)},o:function(t){Dt(n.$$.fragment,t),e=!1},d:function(t){Jt(n,t)}}}function Tn(t,n,e){var r,o,i=n.stores,a=n.error,c=n.status,u=n.segments,f=n.level0,s=n.level1,l=void 0===s?null:s,h=n.notify;return function(t){bt().$$.after_update.push(t)}(h),r=tn,o=i,bt().$$.context.set(r,o),t.$$set=function(t){"stores"in t&&e(5,i=t.stores),"error"in t&&e(0,a=t.error),"status"in t&&e(1,c=t.status),"segments"in t&&e(2,u=t.segments),"level0"in t&&e(3,f=t.level0),"level1"in t&&e(4,l=t.level1),"notify"in t&&e(6,h=t.notify)},[a,c,u,f,l,i,h]}var In=function(t){h(e,Yt);var n=Rn(e);function e(t){var r;return v(this,e),Ht(p(r=n.call(this)),t,Tn,Nn,O,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(e)}(),Bn=[],Cn=[{js:function(){return Promise.all([import("./index.8f5d05d4.js"),__inject_styles(["client-a97f3910.css","index-2bfb1750.css"])]).then((function(t){return t[0]}))}}],Dn=[{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 qn(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))}function Un(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}var Gn,Mn=1;var Fn,Vn,zn="undefined"!=typeof history?history:{pushState:function(){},replaceState:function(){},scrollRestoration:"auto"},Jn={};function Kn(n){var e=Object.create(null);return n.length>0&&n.slice(1).split("&").forEach((function(n){var o=r(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(n.replace(/\+/g," "))),3),i=o[1],a=o[2],c=void 0===a?"":a;"string"==typeof e[i]&&(e[i]=[e[i]]),"object"===t(e[i])?e[i].push(c):e[i]=c})),e}function Hn(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Fn))return null;var n=t.pathname.slice(Fn.length);if(""===n&&(n="/"),!Bn.some((function(t){return t.test(n)})))for(var e=0;e<Dn.length;e+=1){var r=Dn[e],o=r.pattern.exec(n);if(o){var i=Kn(t.search),a=r.parts[r.parts.length-1],c=a.params?a.params(o):{},u={host:location.host,path:n,query:i,params:c};return{href:t.href,route:r,match:o,page:u}}}}function Yn(n){if(1===function(t){return null===t.which?t.button:t.which}(n)&&!(n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)){var e=Un(n.target);if(e&&e.href){var r="object"===t(e.href)&&"SVGAnimatedString"===e.href.constructor.name,o=String(r?e.href.baseVal:e.href);if(o!==location.href){if(!e.hasAttribute("download")&&"external"!==e.getAttribute("rel")&&!(r?e.target.baseVal:e.target)){var i=new URL(o);if(i.pathname!==location.pathname||i.search!==location.search){var a=Hn(i);if(a)Xn(a,null,e.hasAttribute("sapper:noscroll"),i.hash),n.preventDefault(),zn.pushState({id:Gn},"",i.href)}}}else location.hash||n.preventDefault()}}}function Wn(){return{x:pageXOffset,y:pageYOffset}}function Qn(t){if(Jn[Gn]=Wn(),t.state){var n=Hn(new URL(location.href));n?Xn(n,t.state.id):location.href=location.href}else(function(t){Gn=t})(Mn=Mn+1),zn.replaceState({id:Gn},"",location.href)}function Xn(t,n,e,r){return qn(this,void 0,void 0,u.mark((function o(){var i,a,c,f;return u.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return(i=!!n)?Gn=n:(a=Wn(),Jn[Gn]=a,Gn=n=++Mn,Jn[Gn]=e?a:{x:0,y:0}),o.next=4,Vn(t);case 4:document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),e||(c=Jn[n],r&&(f=document.getElementById(r.slice(1)))&&(c={x:0,y:f.getBoundingClientRect().top+scrollY}),Jn[Gn]=c,i||f?scrollTo(c.x,c.y):scrollTo(0,0));case 6:case"end":return o.stop()}}),o)})))}function Zn(t){var n=t.baseURI;if(!n){var e=t.getElementsByTagName("base");n=e.length?e[0].href:t.URL}return n}var te,ne=null;function ee(t){return ne&&ne.href===t.href?ne.promise:Ee(t)}function re(t){var n=Un(t.target);n&&"prefetch"===n.rel&&function(t){var n=Hn(new URL(t,Zn(document)));if(n)ne&&t===ne.href||(ne={href:t,promise:Ee(n)}),ne.promise}(n.href)}function oe(t){clearTimeout(te),te=setTimeout((function(){re(t)}),20)}function ie(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},e=Hn(new URL(t,Zn(document)));return e?(zn[n.replaceState?"replaceState":"pushState"]({id:Gn},"",t),Xn(e,null,n.noscroll)):(location.href=t,new Promise((function(){})))}var ae,ce,ue,fe,se,le,he,pe,de,ve="undefined"!=typeof __SAPPER__&&__SAPPER__,me=!1,ye=[],ge="{}",be={page:function(t){var n=Zt(t),e=!0;return{notify:function(){e=!0,n.update((function(t){return t}))},set:function(t){e=!1,n.set(t)},subscribe:function(t){var r;return n.subscribe((function(n){(void 0===r||e&&n!==r)&&t(r=n)}))}}}({}),preloading:Zt(null),session:Zt(ve&&ve.session)};function we(t,n){var e=t.error;return Object.assign({error:e},n)}function xe(t){return qn(this,void 0,void 0,u.mark((function n(){var e,r,o,i,a,c;return u.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return ae&&be.preloading.set(!0),e=ee(t),r=ce={},n.next=5,e;case 5:if(o=n.sent,i=o.redirect,r===ce){n.next=9;break}return n.abrupt("return");case 9:if(!i){n.next=14;break}return n.next=12,ie(i.location,{replaceState:!0});case 12:n.next=17;break;case 14:return a=o.props,c=o.branch,n.next=17,_e(c,a,we(a,t.page));case 17:case"end":return n.stop()}}),n)})))}function _e(t,n,e){return qn(this,void 0,void 0,u.mark((function r(){return u.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(be.page.set(e),be.preloading.set(!1),!ae){r.next=6;break}ae.$set(n),r.next=13;break;case 6:return n.stores={page:{subscribe:be.page.subscribe},preloading:{subscribe:be.preloading.subscribe},session:be.session},r.next=9,ue;case 9:r.t0=r.sent,n.level0={props:r.t0},n.notify=be.page.notify,ae=new In({target:le,props:n,hydrate:!0});case 13:ye=t,ge=JSON.stringify(e.query),me=!0,se=!1;case 17:case"end":return r.stop()}}),r)})))}function $e(t,n,e,r){if(r!==ge)return!0;var o=ye[t];return!!o&&(n!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(e.slice(1,t+2)))||void 0))}function Ee(t){return qn(this,void 0,void 0,u.mark((function n(){var e,r,o,i,a,c,f,s,l,h,p,d,v=this;return u.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e=t.route,r=t.page,o=r.path.split("/").filter(Boolean),i=null,a={error:null,status:200,segments:[o[0]]},c={fetch:function(t){function n(n,e){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n}((function(t,n){return fetch(t,n)})),redirect:function(t,n){if(i&&(i.statusCode!==t||i.location!==n))throw new Error("Conflicting redirects");i={statusCode:t,location:n}},error:function(t,n){a.error="string"==typeof n?new Error(n):n,a.status=t}},ue||(f=function(){return{}},ue=ve.preloaded[0]||f.call(c,{host:r.host,path:r.path,query:r.query,params:{}},fe)),l=1,n.prev=7,h=JSON.stringify(r.query),p=e.pattern.exec(r.path),d=!1,n.next=13,Promise.all(e.parts.map((function(n,e){return qn(v,void 0,void 0,u.mark((function i(){var f,s,v,m,y,g;return u.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(f=o[e],$e(e,f,p,h)&&(d=!0),a.segments[l]=o[e+1],n){i.next=5;break}return i.abrupt("return",{segment:f});case 5:if(s=l++,se||d||!ye[e]||ye[e].part!==n.i){i.next=8;break}return i.abrupt("return",ye[e]);case 8:return d=!1,i.next=11,Cn[n.i].js();case 11:if(v=i.sent,m=v.default,y=v.preload,!me&&ve.preloaded[e+1]){i.next=25;break}if(!y){i.next=21;break}return i.next=18,y.call(c,{host:r.host,path:r.path,query:r.query,params:n.params?n.params(t.match):{}},fe);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=ve.preloaded[e+1];case 26:return i.abrupt("return",a["level".concat(s)]={component:m,props:g,segment:f,match:p,part:n.i});case 27:case"end":return i.stop()}}),i)})))})));case 13:s=n.sent,n.next=21;break;case 16:n.prev=16,n.t0=n.catch(7),a.error=n.t0,a.status=500,s=[];case 21:return n.abrupt("return",{redirect:i,props:a,branch:s});case 22:case"end":return n.stop()}}),n,null,[[7,16]])})))}be.session.subscribe((function(t){return qn(void 0,void 0,void 0,u.mark((function n(){var e,r,o,i,a,c;return u.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(fe=t,me){n.next=3;break}return n.abrupt("return");case 3:return se=!0,e=Hn(new URL(location.href)),r=ce={},n.next=8,Ee(e);case 8:if(o=n.sent,i=o.redirect,a=o.props,c=o.branch,r===ce){n.next=14;break}return n.abrupt("return");case 14:if(!i){n.next=19;break}return n.next=17,ie(i.location,{replaceState:!0});case 17:n.next=21;break;case 19:return n.next=21,_e(c,a,we(a,e.page));case 21:case"end":return n.stop()}}),n)})))})),he={target:document.querySelector(".app")},pe=he.target,le=pe,de=ve.baseUrl,Fn=de,Vn=xe,"scrollRestoration"in zn&&(zn.scrollRestoration="manual"),addEventListener("beforeunload",(function(){zn.scrollRestoration="auto"})),addEventListener("load",(function(){zn.scrollRestoration="manual"})),addEventListener("click",Yn),addEventListener("popstate",Qn),addEventListener("touchstart",re),addEventListener("mousemove",oe),ve.error?Promise.resolve().then((function(){return function(){var t=location,n=t.host,e=t.pathname,r=t.search,o=ve.session,i=ve.preloaded,a=ve.status,c=ve.error;ue||(ue=i&&i[0]);var u={error:c,status:a,session:o,level0:{props:ue},level1:{props:{status:a,error:c},component:jn},segments:i},f=Kn(r);_e([],u,{host:n,path:e,query:f,params:{},error:c})}()})):Promise.resolve().then((function(){var t=location,n=t.hash,e=t.href;zn.replaceState({id:Mn},"",e);var r=Hn(new URL(location.href));if(r)return Xn(r,Mn,!0,n)}));export{it as A,ut as B,ct as C,r as D,It as E,Dt as F,Bt as G,Ct as H,j as I,Ft as J,Vt as K,zt as L,Jt as M,R as N,A as O,N as P,P as Q,H as R,Yt as S,ft as T,Z as U,$ as V,st as W,h as _,f as a,d as b,v as c,p as d,y as e,Y as f,ot as g,nt as h,Ht as i,K as j,tt as k,J as l,z as m,g as n,t as o,k as p,l as q,u as r,O as s,s as t,on as u,Q as v,Zt as w,X as x,at as y,W as z};
+
+import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file
diff --git a/client/legacy/client.b77ea58c.js b/client/legacy/client.b77ea58c.js
deleted file mode 100644
index 27ad0d2..0000000
--- a/client/legacy/client.b77ea58c.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 O(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var _={};f(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==r&&o.call(w,a)&&(_=w);var $=b.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,c,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){return t()}function x(){return Object.create(null)}function w(t){t.forEach(_)}function $(t){return"function"==typeof t}function E(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function S(t){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}function k(t){var e;return S(t,(function(t){return e=t}))(),e}function L(t,e,n){t.$$.on_destroy.push(S(e,n))}function j(t,e,n,r){if(t){var o=O(t,e,n,r);return t[0](o)}}function O(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function R(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 A(t,e,n,r,o,i){if(o){var a=O(e,n,r,i);t.p(a,o)}}function P(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 N,T=!1;function I(){T=!0}function q(){T=!1}function C(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function B(t,e){if(T){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:C(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 U(t,e,n){T&&!n?B(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function G(t){t.parentNode.removeChild(t)}function F(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function D(t){return document.createElement(t)}function M(t){return document.createTextNode(t)}function J(){return M(" ")}function K(){return M("")}function z(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function H(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function V(t){return Array.from(t.childNodes)}function Y(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function W(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Y(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 Q(t,e,n){return function(t,e,n,r){return W(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,D)}function X(t,e){return W(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 M(e)}),!0)}function Z(t){return X(t," ")}function tt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function et(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function nt(t,e,n){t.classList[n?"add":"remove"](e)}function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function ot(t){N=t}function it(){if(!N)throw new Error("Function called outside component initialization");return N}var at=[],ut=[],ct=[],ft=[],st=Promise.resolve(),lt=!1;function ht(t){ct.push(t)}var pt=new Set,dt=0;function vt(){var t=N;do{for(;dt<at.length;){var e=at[dt];dt++,ot(e),mt(e.$$)}for(ot(null),at.length=0,dt=0;ut.length;)ut.pop()();for(var n=0;n<ct.length;n+=1){var r=ct[n];pt.has(r)||(pt.add(r),r())}ct.length=0}while(at.length);for(;ft.length;)ft.pop()();lt=!1,pt.clear(),ot(t)}function mt(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(ht)}}var yt,gt=new Set;function bt(){yt={r:0,c:[],p:yt}}function _t(){yt.r||w(yt.c),yt=yt.p}function xt(t,e){t&&t.i&&(gt.delete(t),t.i(e))}function wt(t,e,n,r){if(t&&t.o){if(gt.has(t))return;gt.add(t),yt.c.push((function(){gt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function $t(t,e){for(var n={},r={},o={$$scope:1},i=t.length;i--;){var a=t[i],u=e[i];if(u){for(var c in a)c in u||(r[c]=1);for(var f in u)o[f]||(n[f]=u[f],o[f]=1);t[i]=u}else for(var s in a)o[s]=1}for(var l in r)l in n||(n[l]=void 0);return n}function Et(e){return"object"===t(e)&&null!==e?e:{}}function St(t){t&&t.c()}function kt(t,e){t&&t.l(e)}function Lt(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||ht((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(ht)}function jt(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 Ot(t,e){-1===t.$$.dirty[0]&&(at.push(t),lt||(lt=!0,st.then(vt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Rt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=N;ot(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&&Ot(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){I();var l=V(e.target);f.fragment&&f.fragment.l(l),l.forEach(G)}else f.fragment&&f.fragment.c();e.intro&&xt(t.$$.fragment),Lt(t,e.target,e.anchor,e.customElement),q(),vt()}ot(c)}var At=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){jt(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 Pt(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 Nt(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 Nt(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 Nt(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 Tt=[];function It(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=!Tt.length,a=Pt(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),Tt.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<Tt.length;c+=2)Tt[c][0](Tt[c+1]);Tt.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 qt={};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,o=t[1].default,i=j(o,t,t[0],null);return{c:function(){e=D("div"),i&&i.c(),this.h()},l:function(t){var n=V(e=Q(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(G),this.h()},h:function(){H(e,"class","app-container svelte-lkkhqy")},m:function(t,r){U(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)&&A(i,o,t,t[0],n?R(o,t[0],a,null):P(t[0]),null)},i:function(t){n||(xt(i,t),n=!0)},o:function(t){wt(i,t),n=!1},d:function(t){t&&G(e),i&&i.d(t)}}}function Ut(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 Gt=function(t){h(n,At);var e=Ct(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Ut,Bt,E,{}),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=t[1].stack+"";return{c:function(){e=D("pre"),n=M(r)},l:function(t){var o=V(e=Q(t,"PRE",{}));n=X(o,r),o.forEach(G)},m:function(t,r){U(t,e,r),B(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&tt(n,r)},d:function(t){t&&G(e)}}}function Mt(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&&Dt(t);return{c:function(){n=J(),o=D("h1"),i=M(t[0]),a=J(),u=D("p"),c=M(l),f=J(),h&&h.c(),s=K(),this.h()},l:function(e){rt('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(G),n=Z(e);var r=V(o=Q(e,"H1",{class:!0}));i=X(r,t[0]),r.forEach(G),a=Z(e);var p=V(u=Q(e,"P",{class:!0}));c=X(p,l),p.forEach(G),f=Z(e),h&&h.l(e),s=K(),this.h()},h:function(){H(o,"class","svelte-jpshsi"),H(u,"class","svelte-jpshsi")},m:function(t,e){U(t,n,e),U(t,o,e),B(o,i),U(t,a,e),U(t,u,e),B(u,c),U(t,f,e),h&&h.m(t,e),U(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&tt(i,t[0]),2&o&&l!==(l=t[1].message+"")&&tt(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Dt(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&G(n),t&&G(o),t&&G(a),t&&G(u),t&&G(f),h&&h.d(t),t&&G(s)}}}function Jt(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 Kt=function(t){h(n,At);var e=Ft(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Jt,Mt,E,{status:0,error:1}),r}return y(n)}();function zt(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 Ht(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&&St(e.$$.fragment),n=K()},l:function(t){e&&kt(e.$$.fragment,t),n=K()},m:function(t,o){e&&Lt(e,t,o),U(t,n,o),r=!0},p:function(t,r){var u=16&r?$t(o,[Et(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){bt();var c=e;wt(c.$$.fragment,1,0,(function(){jt(c,1)})),_t()}i?(St((e=new i(a())).$$.fragment),xt(e.$$.fragment,1),Lt(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&xt(e.$$.fragment,t),r=!0)},o:function(t){e&&wt(e.$$.fragment,t),r=!1},d:function(t){t&&G(n),e&&jt(e,t)}}}function Vt(t){var e,n;return e=new Kt({props:{error:t[0],status:t[1]}}),{c:function(){St(e.$$.fragment)},l:function(t){kt(e.$$.fragment,t)},m:function(t,r){Lt(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||(xt(e.$$.fragment,t),n=!0)},o:function(t){wt(e.$$.fragment,t),n=!1},d:function(t){jt(e,t)}}}function Yt(t){var e,n,r,o,i=[Vt,Ht],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=K()},l:function(t){n.l(t),r=K()},m:function(t,n){a[e].m(t,n),U(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(bt(),wt(a[c],1,1,(function(){a[c]=null})),_t(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),xt(n,1),n.m(r.parentNode,r))},i:function(t){o||(xt(n),o=!0)},o:function(t){wt(n),o=!1},d:function(t){a[e].d(t),t&&G(r)}}}function Wt(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[Yt]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new Gt({props:i}),{c:function(){St(e.$$.fragment)},l:function(t){kt(e.$$.fragment,t)},m:function(t,r){Lt(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?$t(o,[4&i&&{segment:t[2][0]},8&i&&Et(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(xt(e.$$.fragment,t),n=!0)},o:function(t){wt(e.$$.fragment,t),n=!1},d:function(t){jt(e,t)}}}function Qt(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){it().$$.after_update.push(t)}(h),r=qt,o=i,it().$$.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 Xt=function(t){h(n,At);var e=zt(n);function n(t){var r;return v(this,n),Rt(p(r=e.call(this)),t,Qt,Wt,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Zt=[],te=[{js:function(){return Promise.all([import("./index.c0543b4c.js"),__inject_styles(["client-ea61129f.css","index-8f3929f0.css"])]).then((function(t){return t[0]}))}}],ee=[{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 ne(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 re(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}var oe,ie=1;var ae,ue,ce="undefined"!=typeof history?history:{pushState:function(){},replaceState:function(){},scrollRestoration:"auto"},fe={};function se(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 le(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(ae))return null;var e=t.pathname.slice(ae.length);if(""===e&&(e="/"),!Zt.some((function(t){return t.test(e)})))for(var n=0;n<ee.length;n+=1){var r=ee[n],o=r.pattern.exec(e);if(o){var i=se(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 he(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=re(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=le(i);if(a)ve(a,null,n.hasAttribute("sapper:noscroll"),i.hash),e.preventDefault(),ce.pushState({id:oe},"",i.href)}}}else location.hash||e.preventDefault()}}}function pe(){return{x:pageXOffset,y:pageYOffset}}function de(t){if(fe[oe]=pe(),t.state){var e=le(new URL(location.href));e?ve(e,t.state.id):location.href=location.href}else(function(t){oe=t})(ie=ie+1),ce.replaceState({id:oe},"",location.href)}function ve(t,e,n,r){return ne(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)?oe=e:(a=pe(),fe[oe]=a,oe=e=++ie,fe[oe]=n?a:{x:0,y:0}),o.next=4,ue(t);case 4:document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),n||(u=fe[e],r&&(f=document.getElementById(r.slice(1)))&&(u={x:0,y:f.getBoundingClientRect().top+scrollY}),fe[oe]=u,i||f?scrollTo(u.x,u.y):scrollTo(0,0));case 6:case"end":return o.stop()}}),o)})))}function me(t){var e=t.baseURI;if(!e){var n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}var ye,ge=null;function be(t){return ge&&ge.href===t.href?ge.promise:Fe(t)}function _e(t){var e=re(t.target);e&&"prefetch"===e.rel&&function(t){var e=le(new URL(t,me(document)));if(e)ge&&t===ge.href||(ge={href:t,promise:Fe(e)}),ge.promise}(e.href)}function xe(t){clearTimeout(ye),ye=setTimeout((function(){_e(t)}),20)}function we(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=le(new URL(t,me(document)));return n?(ce[e.replaceState?"replaceState":"pushState"]({id:oe},"",t),ve(n,null,e.noscroll)):(location.href=t,new Promise((function(){})))}var $e,Ee,Se,ke,Le,je,Oe,Re,Ae,Pe="undefined"!=typeof __SAPPER__&&__SAPPER__,Ne=!1,Te=[],Ie="{}",qe={page:function(t){var e=It(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:It(null),session:It(Pe&&Pe.session)};function Ce(t,e){var n=t.error;return Object.assign({error:n},e)}function Be(t){return ne(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 $e&&qe.preloading.set(!0),n=be(t),r=Ee={},e.next=5,n;case 5:if(o=e.sent,i=o.redirect,r===Ee){e.next=9;break}return e.abrupt("return");case 9:if(!i){e.next=14;break}return e.next=12,we(i.location,{replaceState:!0});case 12:e.next=17;break;case 14:return a=o.props,u=o.branch,e.next=17,Ue(u,a,Ce(a,t.page));case 17:case"end":return e.stop()}}),e)})))}function Ue(t,e,n){return ne(this,void 0,void 0,c.mark((function r(){return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(qe.page.set(n),qe.preloading.set(!1),!$e){r.next=6;break}$e.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:qe.page.subscribe},preloading:{subscribe:qe.preloading.subscribe},session:qe.session},r.next=9,Se;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=qe.page.notify,$e=new Xt({target:je,props:e,hydrate:!0});case 13:Te=t,Ie=JSON.stringify(n.query),Ne=!0,Le=!1;case 17:case"end":return r.stop()}}),r)})))}function Ge(t,e,n,r){if(r!==Ie)return!0;var o=Te[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 Fe(t){return ne(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}},Se||(f=function(){return{}},Se=Pe.preloaded[0]||f.call(u,{host:r.host,path:r.path,query:r.query,params:{}},ke)),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 ne(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],Ge(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++,Le||d||!Te[n]||Te[n].part!==e.i){i.next=8;break}return i.abrupt("return",Te[n]);case 8:return d=!1,i.next=11,te[e.i].js();case 11:if(v=i.sent,m=v.default,y=v.preload,!Ne&&Pe.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):{}},ke);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=Pe.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]])})))}qe.session.subscribe((function(t){return ne(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(ke=t,Ne){e.next=3;break}return e.abrupt("return");case 3:return Le=!0,n=le(new URL(location.href)),r=Ee={},e.next=8,Fe(n);case 8:if(o=e.sent,i=o.redirect,a=o.props,u=o.branch,r===Ee){e.next=14;break}return e.abrupt("return");case 14:if(!i){e.next=19;break}return e.next=17,we(i.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,Ue(u,a,Ce(a,n.page));case 21:case"end":return e.stop()}}),e)})))})),Oe={target:document.querySelector(".app")},Re=Oe.target,je=Re,Ae=Pe.baseUrl,ae=Ae,ue=Be,"scrollRestoration"in ce&&(ce.scrollRestoration="manual"),addEventListener("beforeunload",(function(){ce.scrollRestoration="auto"})),addEventListener("load",(function(){ce.scrollRestoration="manual"})),addEventListener("click",he),addEventListener("popstate",de),addEventListener("touchstart",_e),addEventListener("mousemove",xe),Pe.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=Pe.session,i=Pe.preloaded,a=Pe.status,u=Pe.error;Se||(Se=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:Se},level1:{props:{status:a,error:u},component:Kt},segments:i},f=se(r);Ue([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;ce.replaceState({id:ie},"",n);var r=le(new URL(location.href));if(r)return ve(r,ie,!0,e)}));export{bt as A,wt as B,_t as C,xt as D,L as E,St as F,kt as G,Lt as H,jt as I,j as J,A as K,P as L,R as M,F as N,c as O,nt as P,z as Q,w as R,At as S,rt as T,h as _,f as a,d as b,v as c,p as d,y as e,D as f,Q as g,V as h,Rt as i,G as j,H as k,U as l,B as m,g as n,t as o,k as p,J as q,K as r,E as s,Z as t,M as u,X as v,It as w,et as x,tt as y,r as z};
-
-import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file
diff --git a/client/legacy/index-8f3929f0.css b/client/legacy/index-2bfb1750.css
index aa46831..d7cccd0 100644
--- a/client/legacy/index-8f3929f0.css
+++ b/client/legacy/index-2bfb1750.css
@@ -11,5 +11,5 @@
.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none}
.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem}
.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none}
-.drawer.svelte-11gsg4a.svelte-11gsg4a{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-11gsg4a.svelte-11gsg4a{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-11gsg4a.svelte-11gsg4a{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-11gsg4a .header.svelte-11gsg4a{display:flex;align-items:flex-start}.drawer.svelte-11gsg4a h2.svelte-11gsg4a{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-11gsg4a.svelte-11gsg4a{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-11gsg4a>.svelte-11gsg4a{transition:all 0.1s ease}.version-picker.svelte-11gsg4a .selected.svelte-11gsg4a{background-color:var(--elevation-1, #c2c2c2);padding:3px 5px;box-sizing:border-box;border-radius:10px;color:var(--on-elevation-1, #000000)}.no-data.svelte-11gsg4a.svelte-11gsg4a{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-11gsg4a.svelte-11gsg4a{margin-top:1rem}
+.drawer.svelte-1soiua.svelte-1soiua{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:var(--elevation-1-shadow)}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-1soiua.svelte-1soiua{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-1soiua.svelte-1soiua{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-1soiua .header.svelte-1soiua{display:flex;align-items:flex-start}.drawer.svelte-1soiua h2.svelte-1soiua{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-1soiua.svelte-1soiua{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-1soiua>.svelte-1soiua{padding:3px 5px;border-radius:10px;box-sizing:border-box;transition:all 0.1s ease}.version-picker.svelte-1soiua .selected.svelte-1soiua{background-color:var(--elevation-1, #c2c2c2);color:var(--on-elevation-1, #000000)}.no-data.svelte-1soiua.svelte-1soiua{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1soiua.svelte-1soiua{margin-top:1rem}
.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25}
diff --git a/client/legacy/index.8f5d05d4.js b/client/legacy/index.8f5d05d4.js
new file mode 100644
index 0000000..430a2b5
--- /dev/null
+++ b/client/legacy/index.8f5d05d4.js
@@ -0,0 +1 @@
+import{_ as t,a as n,b as e,c as r,i as a,s as c,d as o,e as i,S as u,f as s,g as f,h as l,j as p,k as d,l as h,m as v,n as m,o as g,w as y,r as b,p as _,q as w,t as k,u as $,v as E,x as D,y as x,z as R,A as I,B as P,C as O,D as V,E as S,F as T,G as j,H as q,I as M,J as B,K as N,L as A,M as C,N as F,O as J,P as H,Q as K,R as z,T as Z,U as L,V as W,W as G}from"./client.b2e3ee4d.js";function Q(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function U(t){var n,e,r,a,c,o,i,u,g;return{c:function(){n=s("div"),e=s("div"),r=s("div"),a=s("div"),c=s("div"),o=s("div"),i=s("div"),u=s("div"),g=s("div"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"DIV",{class:!0}),l(e).forEach(p),r=f(s,"DIV",{class:!0}),l(r).forEach(p),a=f(s,"DIV",{class:!0}),l(a).forEach(p),c=f(s,"DIV",{class:!0}),l(c).forEach(p),o=f(s,"DIV",{class:!0}),l(o).forEach(p),i=f(s,"DIV",{class:!0}),l(i).forEach(p),u=f(s,"DIV",{class:!0}),l(u).forEach(p),g=f(s,"DIV",{class:!0}),l(g).forEach(p),s.forEach(p),this.h()},h:function(){d(e,"class","svelte-7k6qu0"),d(r,"class","svelte-7k6qu0"),d(a,"class","svelte-7k6qu0"),d(c,"class","svelte-7k6qu0"),d(o,"class","svelte-7k6qu0"),d(i,"class","svelte-7k6qu0"),d(u,"class","svelte-7k6qu0"),d(g,"class","svelte-7k6qu0"),d(n,"class","lds-roller svelte-7k6qu0")},m:function(t,s){h(t,n,s),v(n,e),v(n,r),v(n,a),v(n,c),v(n,o),v(n,i),v(n,u),v(n,g)},p:m,i:m,o:m,d:function(t){t&&p(n)}}}var X=function(n){t(s,u);var e=Q(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,null,U,c,{}),n}return i(s)}();function Y(t,n,e,r,a,c,o){try{var i=t[c](o),u=i.value}catch(t){return void e(t)}i.done?n(u):Promise.resolve(u).then(r,a)}function tt(t){return function(){var n=this,e=arguments;return new Promise((function(r,a){var c=t.apply(n,e);function o(t){Y(c,r,a,o,i,"next",t)}function i(t){Y(c,r,a,o,i,"throw",t)}o(void 0)}))}}var nt=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];function et(t){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(t))return t;if(/^\d{4}\s[a-z,A-Z]+\s\d{2}$/.test(t)){var n=t.split(" ");return t="".concat(n[0],"-").concat(function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t.toString();n-e.length>0;)e="0"+e;return e}(function(t){if("string"!=typeof t)throw new Error("Cannot get month number of ".concat(g(t),"..."));if(t.length<3)throw new Error('Cannot get month number string "'.concat(t,'" of length ').concat(t.length,"..."));t=t.substring(0,3).toLowerCase();var n=nt.indexOf(t)+1;if(-1===n)throw new Error("Could not find the month ".concat(t,"."));return n}(n[1])),"-").concat(n[2],"T00:00:00Z"),t}return/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/.test(t)?t.replace(" ","T")+"Z":/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{4}/.test(t)?t.replace(" ","T").split(".")[0]+"Z":(console.warn(t),t)}function rt(t){return t=et(t),new Date(t)}function at(){at=function(t,n){return new r(t,void 0,n)};var n=RegExp.prototype,e=new WeakMap;function r(t,n,a){var c=new RegExp(t,n);return e.set(c,a||e.get(t)),k(c,r.prototype)}function a(t,n){var r=e.get(n);return Object.keys(r).reduce((function(n,e){return n[e]=t[r[e]],n}),Object.create(null))}return t(r,RegExp),r.prototype.exec=function(t){var e=n.exec.call(this,t);return e&&(e.groups=a(e,this)),e},r.prototype[Symbol.replace]=function(t,r){if("string"==typeof r){var c=e.get(this);return n[Symbol.replace].call(this,t,r.replace(/\$<([^>]+)>/g,(function(t,n){return"$"+c[n]})))}if("function"==typeof r){var o=this;return n[Symbol.replace].call(this,t,(function(){var t=arguments;return"object"!=g(t[t.length-1])&&(t=[].slice.call(t)).push(a(t,o)),r.apply(this,t)}))}return n[Symbol.replace].call(this,t,r)},at.apply(this,arguments)}function ct(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function ot(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?ct(Object(e),!0).forEach((function(n){$(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):ct(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}var it={updated:new Date(0,0,0),updating:!0},ut=vt("navigator_location"),st=vt("earth_weather"),ft=vt("space_weather"),lt=y(mt("navigator_location")?function(t){return t.updated=new Date(t.updated),t}(ut):ot(ot({},it),{},{available:!1,longitude:null,latitude:null,city:null})),pt=y(mt("earth_weather")?function(t){var n=t;return n.updated=new Date(n.updated),n.yr_data_raw.properties.meta.updated_at=new Date(n.yr_data_raw.properties.meta.updated_at),n.yr_data_raw.properties.timeseries=n.yr_data_raw.properties.timeseries.map((function(t){return ot(ot({},t),{},{time:new Date(t.time)})})),n}(st):ot(ot({},it),{},{available:!1})),dt=y(mt("space_weather")?function(t){var n=t;return n.updated=new Date(n.updated),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=n.usnoaa_data_raw.geospace_pred_est_kp_1_hour.map((function(t){return ot(ot({},t),{},{model_prediction_time:new Date(t.model_prediction_time)})})),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=n.usnoaa_data_raw.noaa_planetary_k_index_forecast.map((function(t){return ot(ot({},t),{},{time:new Date(t.time)})})),n.usnoaa_data_raw.outlook_27_day=n.usnoaa_data_raw.outlook_27_day.map((function(t){return ot(ot({},t),{},{time:new Date(t.time)})})),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp),n}(ft):ot({},it));function ht(t,n){"undefined"!=typeof window&&localStorage.setItem(t,JSON.stringify(n))}function vt(t){if("undefined"!=typeof window)return JSON.parse(localStorage.getItem(t))}function mt(t){return"undefined"!=typeof window&&localStorage.hasOwnProperty(t)}function gt(){return yt.apply(this,arguments)}function yt(){return(yt=tt(b.mark((function t(){var n,e,r;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof window){t.next=2;break}return t.abrupt("return");case 2:return xt(lt,!0),console.debug("Attempting to get browser geolocation."),t.prev=4,t.next=7,bt();case 7:n=t.sent,t.next=18;break;case 10:if(t.prev=10,t.t0=t.catch(4),0!=_(lt).available){t.next=14;break}return t.abrupt("return");case 14:return console.warn("Could not get browser geolocation (".concat(t.t0,").")),lt.update((function(t){return ot(ot({},t),{},{available:!1,city:null,longitude:null,latitude:null})})),xt(lt,!1),t.abrupt("return");case 18:if(console.debug("Got geolocation from browser."),!(_(lt).available&&Date.now()-_(lt).updated<3e5)){t.next=23;break}return console.debug("Not fetching city name, as the location a short time ago."),xt(lt,!1,!1),t.abrupt("return");case 23:return console.debug("Attempting to get city name from geolocation."),e={city:void 0},t.prev=25,t.next=28,fetch("https://geocode.xyz/".concat(n.latitude,",").concat(n.longitude,"?geoit=json"));case 28:return r=t.sent,t.next=31,r.json();case 31:e=t.sent,t.next=37;break;case 34:t.prev=34,t.t1=t.catch(25),console.error("Could not get city name (".concat(t.t1,")"));case 37:console.debug("Got city name from browser."),lt.update((function(t){return ot(ot({},t),{},{available:!0,city:e.city},n)})),xt(lt,!1);case 40:case"end":return t.stop()}}),t,null,[[4,10],[25,34]])})))).apply(this,arguments)}function bt(){return _t.apply(this,arguments)}function _t(){return(_t=tt(b.mark((function t(){return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((function(n){t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(function(t){n(t)})):n(Error())})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function wt(){return wt=tt(b.mark((function t(){var n,e,r,a,c=arguments;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=c.length>0&&void 0!==c[0]?c[0]:null,"undefined"!=typeof window){t.next=3;break}return t.abrupt("return");case 3:if(null!==n){t.next=5;break}return t.abrupt("return");case 5:if(!n.updating){t.next=7;break}return t.abrupt("return");case 7:if(n.available){t.next=11;break}return pt.update((function(t){return ot(ot({},t),{},{available:!1})})),xt(pt,!1),t.abrupt("return");case 11:if(!(_(pt).available&&Date.now()-_(pt).updated<3e5)){t.next=14;break}return console.debug("Skipping fetch of earth weather as the data was fetched very recently."),t.abrupt("return");case 14:return xt(pt,!0),console.debug("Attempting to fetch earth weather data from api-met."),t.next=18,fetch("https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=".concat(n.latitude,"&lon=").concat(n.longitude));case 18:return e=t.sent,t.next=21,e.json();case 21:r=t.sent,a={clouds:null,temp:null},t.prev=23,a.clouds=r.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=r.properties.timeseries[0].data.instant.details.air_temperature,r.properties.timeseries=r.properties.timeseries.map((function(t){return ot(ot({},t),{},{time:rt(t.time)})})),t.next=34;break;case 29:return t.prev=29,t.t0=t.catch(23),console.errpr("Could not get earth weather data (".concat(t.t0,")")),xt(pt,!1,!1),t.abrupt("return");case 34:console.debug("Fetched earth weather successfully."),pt.update((function(t){return ot(ot({},t),{},{yr_data_raw:r,now:a,available:!0})})),xt(pt,!1);case 37:case"end":return t.stop()}}),t,null,[[23,29]])}))),wt.apply(this,arguments)}function kt(){return $t.apply(this,arguments)}function $t(){return($t=tt(b.mark((function t(){var n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!=typeof window){t.next=2;break}return t.abrupt("return");case 2:if(!(Date.now()-_(dt).updated<3e5)){t.next=5;break}return console.debug("Skipping fetch of space weather as the data was fetched very recently."),t.abrupt("return");case 5:return xt(dt,!0),console.debug("Attempting to fetch space weather data."),t.prev=7,t.next=10,Et();case 10:n=t.sent,t.next=18;break;case 13:return t.prev=13,t.t0=t.catch(7),console.error(t.t0),xt(dt,!1,!1),t.abrupt("return");case 18:dt.update((function(t){return ot(ot({},t),n)})),xt(dt,!1);case 20:case"end":return t.stop()}}),t,null,[[7,13]])})))).apply(this,arguments)}function Et(){return Dt.apply(this,arguments)}function Dt(){return(Dt=tt(b.mark((function t(){var n,e,r,a,c,o,i;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},console.debug("Fetch solar-wind-mag-field data from SWPC-NOAA."),t.next=4,fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");case 4:return r=t.sent,t.next=7,r.json();case 7:return(e=t.sent).TimeStamp=rt(e.TimeStamp),n.usnoaa_data_raw.solar_wind_mag_field=e,n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,console.debug(e),console.debug("Fetch 1-hour kp predictions from SWPC-NOAA."),t.next=16,fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json");case 16:return r=t.sent,t.next=19,r.json();case 19:return e=(e=t.sent).map((function(t){return ot(ot({},t),{},{model_prediction_time:rt(t.model_prediction_time)})})),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=e,console.debug(e),console.debug("Fetch 27-day outlook from SWPC-NOAA."),t.next=26,fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt");case 26:return r=t.sent,t.next=29,r.text();case 29:return e=t.sent,console.debug(e),e=w(e.matchAll(at(/^(\d{4}\s.{3}\s\d{2})\s+(\d+)\s+(\d+)\s+(\d+)$/gm,{time:1,flux107:2,aindex:3,kindex:4}))),console.debug(e),e=e.map((function(t){return ot(ot({},t.groups),{},{time:rt(t.groups.time)})})),n.usnoaa_data_raw.outlook_27_day=e,console.debug(e),console.debug("Fetch planetary k-index forecast from SWPC-NOAA."),t.next=39,fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json");case 39:return r=t.sent,t.next=42,r.json();case 42:return(e=t.sent).shift(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=e,console.debug(e),a=new Date,c=new Date(0,0,0),o=1e3,i=0,n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach((function(t,e){t[1]>i&&(i=t[1]),t[1]<o&&(o=t[1]);var r=rt(t[0]);Math.abs(r.getTime()-a.getTime())<Math.abs(c.getTime()-a.getTime())&&(c=r,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:r,kp:t[1],observed:t[2]}})),n.now.kp_min=o.toString(),n.now.kp_max=i.toString(),console.debug("Fetched Space weather"),console.log(n),t.abrupt("return",n);case 56:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xt(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r={};e&&!n&&(r={updated:new Date}),t.update((function(t){return ot(ot(ot({},t),r),{},{updating:n})}))}function Rt(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function It(t){var n,e,r;function a(t,n){return void 0!==t[2].city?Ot:Pt}var c=a(t),o=c(t);return{c:function(){n=s("i"),e=E(),o.c(),r=D(),this.h()},l:function(t){n=f(t,"I",{class:!0}),l(n).forEach(p),e=x(t),o.l(t),r=D(),this.h()},h:function(){d(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s")},m:function(t,a){h(t,n,a),h(t,e,a),o.m(t,a),h(t,r,a)},p:function(t,n){c===(c=a(t))&&o?o.p(t,n):(o.d(1),(o=c(t))&&(o.c(),o.m(r.parentNode,r)))},d:function(t){t&&p(n),t&&p(e),o.d(t),t&&p(r)}}}function Pt(t){var n,e,r,a,c,o,i=t[2].longitude+"",u=t[2].latitude+"";return{c:function(){n=s("h1"),e=R("long: "),r=R(i),a=s("br"),c=R("lat: "),o=R(u),this.h()},l:function(t){n=f(t,"H1",{class:!0});var s=l(n);e=I(s,"long: "),r=I(s,i),a=f(s,"BR",{}),c=I(s,"lat: "),o=I(s,u),s.forEach(p),this.h()},h:function(){d(n,"class","svelte-9kdo4s")},m:function(t,i){h(t,n,i),v(n,e),v(n,r),v(n,a),v(n,c),v(n,o)},p:function(t,n){4&n&&i!==(i=t[2].longitude+"")&&O(r,i),4&n&&u!==(u=t[2].latitude+"")&&O(o,u)},d:function(t){t&&p(n)}}}function Ot(t){var n,e,r=t[2].city+"";return{c:function(){n=s("h1"),e=R(r),this.h()},l:function(t){n=f(t,"H1",{class:!0});var a=l(n);e=I(a,r),a.forEach(p),this.h()},h:function(){d(n,"class","svelte-9kdo4s")},m:function(t,r){h(t,n,r),v(n,e)},p:function(t,n){4&n&&r!==(r=t[2].city+"")&&O(e,r)},d:function(t){t&&p(n)}}}function Vt(t){var n,e,r;function a(t,e){return 24&e&&(n=null),null==n&&(n=!!(Math.abs(t[3].updated-t[4].updated)>6e5)),n?Tt:St}var c=a(t,-1),o=c(t),i=t[1]>=3e5&&jt(t);return{c:function(){o.c(),e=E(),i&&i.c(),r=D()},l:function(t){o.l(t),e=x(t),i&&i.l(t),r=D()},m:function(t,n){o.m(t,n),h(t,e,n),i&&i.m(t,n),h(t,r,n)},p:function(t,n){c===(c=a(t,n))&&o?o.p(t,n):(o.d(1),(o=c(t))&&(o.c(),o.m(e.parentNode,e))),t[1]>=3e5?i?i.p(t,n):((i=jt(t)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null)},d:function(t){o.d(t),t&&p(e),i&&i.d(t),t&&p(r)}}}function St(t){var n,e,r=t[0].toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=s("p"),e=R(r)},l:function(t){n=f(t,"P",{});var a=l(n);e=I(a,r),a.forEach(p)},m:function(t,r){h(t,n,r),v(n,e)},p:function(t,n){1&n&&r!==(r=t[0].toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&O(e,r)},d:function(t){t&&p(n)}}}function Tt(t){var n,e;return{c:function(){n=s("p"),e=R("There is more than 10 minutes difference between data updates")},l:function(t){n=f(t,"P",{});var r=l(n);e=I(r,"There is more than 10 minutes difference between data updates"),r.forEach(p)},m:function(t,r){h(t,n,r),v(n,e)},p:m,d:function(t){t&&p(n)}}}function jt(t){var n,e,r,a,c,o=Math.round(t[1]/60/1e3)+"";return{c:function(){n=s("span"),e=s("i"),r=R(" Data is "),a=R(o),c=R(" minutes old!"),this.h()},l:function(t){n=f(t,"SPAN",{style:!0});var i=l(n);e=f(i,"I",{class:!0}),l(e).forEach(p),r=I(i," Data is "),a=I(i,o),c=I(i," minutes old!"),i.forEach(p),this.h()},h:function(){d(e,"class","symbol fas fa-exclamation-circle"),P(n,"color","red")},m:function(t,o){h(t,n,o),v(n,e),v(n,r),v(n,a),v(n,c)},p:function(t,n){2&n&&o!==(o=Math.round(t[1]/60/1e3)+"")&&O(a,o)},d:function(t){t&&p(n)}}}function qt(t){var n,e,r,a,c,o,i,u,g,y,b,_,w=t[4].now.kp+"",k=t[4].now.kp_max+"",$=t[4].now.kp_min+"";return{c:function(){n=s("h2"),e=R("KP "),r=R(w),a=E(),c=s("p"),o=s("span"),i=R("↑ KP "),u=R(k),g=E(),y=s("span"),b=R("↓ KP "),_=R($),this.h()},l:function(t){n=f(t,"H2",{class:!0});var s=l(n);e=I(s,"KP "),r=I(s,w),s.forEach(p),a=x(t),c=f(t,"P",{});var d=l(c);o=f(d,"SPAN",{classname:!0});var h=l(o);i=I(h,"↑ KP "),u=I(h,k),h.forEach(p),g=x(d),y=f(d,"SPAN",{classname:!0});var v=l(y);b=I(v,"↓ KP "),_=I(v,$),v.forEach(p),d.forEach(p),this.h()},h:function(){d(n,"class","svelte-9kdo4s"),d(o,"classname","pr-2"),d(y,"classname","pl-2")},m:function(t,s){h(t,n,s),v(n,e),v(n,r),h(t,a,s),h(t,c,s),v(c,o),v(o,i),v(o,u),v(c,g),v(c,y),v(y,b),v(y,_)},p:function(t,n){16&n&&w!==(w=t[4].now.kp+"")&&O(r,w),16&n&&k!==(k=t[4].now.kp_max+"")&&O(u,k),16&n&&$!==($=t[4].now.kp_min+"")&&O(_,$)},i:m,o:m,d:function(t){t&&p(n),t&&p(a),t&&p(c)}}}function Mt(t){var n,e;return n=new X({}),{c:function(){B(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,r){A(n,t,r),e=!0},p:m,i:function(t){e||(q(n.$$.fragment,t),e=!0)},o:function(t){T(n.$$.fragment,t),e=!1},d:function(t){C(n,t)}}}function Bt(t){var n,e,r,a,c,o,i,u,m,g,y,b,_,w,k,$=t[4].now.bz+"",P=t[4].now.bt+"",V=t[3].available&&Nt(t);return{c:function(){n=s("div"),e=s("p"),r=R("BZ"),a=E(),c=s("p"),o=R($),i=E(),u=s("div"),m=s("p"),g=R("BT"),y=E(),b=s("p"),_=R(P),w=E(),V&&V.c(),k=D(),this.h()},l:function(t){n=f(t,"DIV",{});var s=l(n);e=f(s,"P",{class:!0});var d=l(e);r=I(d,"BZ"),d.forEach(p),a=x(s),c=f(s,"P",{class:!0});var h=l(c);o=I(h,$),h.forEach(p),s.forEach(p),i=x(t),u=f(t,"DIV",{});var v=l(u);m=f(v,"P",{class:!0});var E=l(m);g=I(E,"BT"),E.forEach(p),y=x(v),b=f(v,"P",{class:!0});var R=l(b);_=I(R,P),R.forEach(p),v.forEach(p),w=x(t),V&&V.l(t),k=D(),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(m,"class","svelte-9kdo4s"),d(b,"class","svelte-9kdo4s")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),v(n,a),v(n,c),v(c,o),h(t,i,s),h(t,u,s),v(u,m),v(m,g),v(u,y),v(u,b),v(b,_),h(t,w,s),V&&V.m(t,s),h(t,k,s)},p:function(t,n){16&n&&$!==($=t[4].now.bz+"")&&O(o,$),16&n&&P!==(P=t[4].now.bt+"")&&O(_,P),t[3].available?V?V.p(t,n):((V=Nt(t)).c(),V.m(k.parentNode,k)):V&&(V.d(1),V=null)},d:function(t){t&&p(n),t&&p(i),t&&p(u),t&&p(w),V&&V.d(t),t&&p(k)}}}function Nt(t){var n,e,r,a,c,o,i,u,m,g,y,b,_,w,k,$=t[3].now.temp+"",D=t[3].now.clouds+"";return{c:function(){n=s("div"),e=s("p"),r=R("Temp"),a=E(),c=s("p"),o=R($),i=R("°C"),u=E(),m=s("div"),g=s("p"),y=R("Clouds"),b=E(),_=s("p"),w=R(D),k=R("%"),this.h()},l:function(t){n=f(t,"DIV",{});var s=l(n);e=f(s,"P",{class:!0});var d=l(e);r=I(d,"Temp"),d.forEach(p),a=x(s),c=f(s,"P",{class:!0});var h=l(c);o=I(h,$),i=I(h,"°C"),h.forEach(p),s.forEach(p),u=x(t),m=f(t,"DIV",{});var v=l(m);g=f(v,"P",{class:!0});var E=l(g);y=I(E,"Clouds"),E.forEach(p),b=x(v),_=f(v,"P",{class:!0});var R=l(_);w=I(R,D),k=I(R,"%"),R.forEach(p),v.forEach(p),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(g,"class","svelte-9kdo4s"),d(_,"class","svelte-9kdo4s")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),v(n,a),v(n,c),v(c,o),v(c,i),h(t,u,s),h(t,m,s),v(m,g),v(g,y),v(m,b),v(m,_),v(_,w),v(_,k)},p:function(t,n){8&n&&$!==($=t[3].now.temp+"")&&O(o,$),8&n&&D!==(D=t[3].now.clouds+"")&&O(w,D)},d:function(t){t&&p(n),t&&p(u),t&&p(m)}}}function At(t){var n,e,r,a,c,o,i,u,m,g,y,b,_=!t[2].updating&&t[2].available&&!t[3].updating&&!t[4].updating&&It(t),w=!t[3].updating&&!t[4].updating&&Vt(t),k=[Mt,qt],$=[];function D(t,n){return t[4].updating||t[3].updating?0:1}u=D(t),m=$[u]=k[u](t);var R=!t[4].updating&&!t[3].updating&&Bt(t);return{c:function(){n=s("div"),e=s("div"),r=s("div"),_&&_.c(),a=E(),c=s("div"),w&&w.c(),o=E(),i=s("div"),m.c(),g=E(),y=s("div"),R&&R.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"DIV",{class:!0});var s=l(e);r=f(s,"DIV",{class:!0});var d=l(r);_&&_.l(d),d.forEach(p),a=x(s),c=f(s,"DIV",{class:!0});var h=l(c);w&&w.l(h),h.forEach(p),o=x(s),i=f(s,"DIV",{class:!0});var v=l(i);m.l(v),v.forEach(p),g=x(s),y=f(s,"DIV",{class:!0});var b=l(y);R&&R.l(b),b.forEach(p),s.forEach(p),u.forEach(p),this.h()},h:function(){d(r,"class","weatherCurrent-data-location svelte-9kdo4s"),d(c,"class","weatherCurrent-data-date"),d(i,"class","weatherCurrent-data-kp svelte-9kdo4s"),d(y,"class","current-details svelte-9kdo4s"),d(e,"class","weatherCurrent-data svelte-9kdo4s"),d(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),_&&_.m(r,null),v(e,a),v(e,c),w&&w.m(c,null),v(e,o),v(e,i),$[u].m(i,null),v(e,g),v(e,y),R&&R.m(y,null),b=!0},p:function(t,n){var e=V(n,1)[0];t[2].updating||!t[2].available||t[3].updating||t[4].updating?_&&(_.d(1),_=null):_?_.p(t,e):((_=It(t)).c(),_.m(r,null)),t[3].updating||t[4].updating?w&&(w.d(1),w=null):w?w.p(t,e):((w=Vt(t)).c(),w.m(c,null));var a=u;(u=D(t))===a?$[u].p(t,e):(S(),T($[a],1,1,(function(){$[a]=null})),j(),(m=$[u])?m.p(t,e):(m=$[u]=k[u](t)).c(),q(m,1),m.m(i,null)),t[4].updating||t[3].updating?R&&(R.d(1),R=null):R?R.p(t,e):((R=Bt(t)).c(),R.m(y,null))},i:function(t){b||(q(m),b=!0)},o:function(t){T(m),b=!1},d:function(t){t&&p(n),_&&_.d(),w&&w.d(),$[u].d(),R&&R.d()}}}function Ct(t,n,e){var r,a,c;M(t,lt,(function(t){return e(2,r=t)})),M(t,pt,(function(t){return e(3,a=t)})),M(t,dt,(function(t){return e(4,c=t)}));var o=new Date(0,0,0),i=0;return setInterval((function(){var t=_(pt).updated,n=_(dt).updated,r=new Date;r-n>r-t?(e(0,o=n),e(1,i=r-n)):(e(0,o=t),e(1,i=r-t))}),500),[o,i,r,a,c]}gt(),lt.subscribe((function(){return wt.apply(this,arguments)})),kt(),setInterval(gt,15e4),setInterval(kt,15e4),lt.subscribe((function(t){return ht("navigator_location",t)})),pt.subscribe((function(t){return ht("earth_weather",t)})),dt.subscribe((function(t){return ht("space_weather",t)}));var Ft=function(n){t(s,u);var e=Rt(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,Ct,At,c,{}),n}return i(s)}();function Jt(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function Ht(t){var n,e,r=t[1].default,a=F(r,t,t[0],null);return{c:function(){n=s("div"),a&&a.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);a&&a.l(e),e.forEach(p),this.h()},h:function(){d(n,"class","chip svelte-1jb0ny7")},m:function(t,r){h(t,n,r),a&&a.m(n,null),e=!0},p:function(t,n){var c=V(n,1)[0];a&&a.p&&(!e||1&c)&&J(a,r,t,t[0],e?K(r,t[0],c,null):H(t[0]),null)},i:function(t){e||(q(a,t),e=!0)},o:function(t){T(a,t),e=!1},d:function(t){t&&p(n),a&&a.d(t)}}}function Kt(t,n,e){var r=n.$$slots,a=void 0===r?{}:r,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,a]}var zt=function(n){t(s,u);var e=Jt(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,Kt,Ht,c,{}),n}return i(s)}();function Zt(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function Lt(t){var n,e,r,a,c,o;return{c:function(){n=s("div"),e=s("div"),r=s("div"),a=E(),c=s("span"),o=R(t[1]),this.h()},l:function(i){n=f(i,"DIV",{class:!0,style:!0});var u=l(n);e=f(u,"DIV",{class:!0});var s=l(e);r=f(s,"DIV",{class:!0}),l(r).forEach(p),s.forEach(p),a=x(u),c=f(u,"SPAN",{class:!0});var d=l(c);o=I(d,t[1]),d.forEach(p),u.forEach(p),this.h()},h:function(){d(r,"class","bar svelte-1mo8cjf"),d(e,"class","bar-wrapper svelte-1mo8cjf"),d(c,"class","value svelte-1mo8cjf"),d(n,"class","wrapper svelte-1mo8cjf"),P(n,"--progress",100*t[0]+"%")},m:function(t,i){h(t,n,i),v(n,e),v(e,r),v(n,a),v(n,c),v(c,o)},p:function(t,e){var r=V(e,1)[0];2&r&&O(o,t[1]),1&r&&P(n,"--progress",100*t[0]+"%")},i:m,o:m,d:function(t){t&&p(n)}}}function Wt(t,n,e){var r=n.percentage,a=n.value;return t.$$set=function(t){"percentage"in t&&e(0,r=t.percentage),"value"in t&&e(1,a=t.value)},[r,a]}var Gt=function(n){t(s,u);var e=Zt(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,Wt,Lt,c,{percentage:0,value:1}),n}return i(s)}();function Qt(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function Ut(t){var n,e,r,a,c,o,i,u,g,y,b,_,w;y=new Gt({props:{percentage:t[0]/9,value:t[0]}});var k=t[5]&&function(t){var n,e,r,a,c,o,i,u,g,y,b,_,w=Math.round(t[3])+"",k=Math.round(t[4])+"";return{c:function(){n=s("div"),e=s("p"),r=s("i"),a=E(),c=R(w),o=R("°C"),i=E(),u=s("p"),g=s("i"),y=E(),b=R(k),_=R("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"P",{class:!0});var d=l(e);r=f(d,"I",{class:!0}),l(r).forEach(p),a=x(d),c=I(d,w),o=I(d,"°C"),d.forEach(p),i=x(s),u=f(s,"P",{class:!0});var h=l(u);g=f(h,"I",{class:!0}),l(g).forEach(p),y=x(h),b=I(h,k),_=I(h,"%"),h.forEach(p),s.forEach(p),this.h()},h:function(){d(r,"class","fas fa-thermometer-half svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(g,"class","fas fa-cloud svelte-m9qkku"),d(u,"class","svelte-m9qkku"),d(n,"class","svelte-m9qkku")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),v(e,a),v(e,c),v(e,o),v(n,i),v(n,u),v(u,g),v(u,y),v(u,b),v(u,_)},p:m,d:function(t){t&&p(n)}}}(t);return{c:function(){n=s("div"),e=s("div"),r=s("h3"),a=R(t[2]),c=E(),o=s("p"),i=R(t[1]),u=E(),g=s("div"),B(y.$$.fragment),b=E(),_=s("div"),k&&k.c(),this.h()},l:function(s){n=f(s,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);r=f(h,"H3",{class:!0});var v=l(r);a=I(v,t[2]),v.forEach(p),c=x(h),o=f(h,"P",{class:!0});var m=l(o);i=I(m,t[1]),m.forEach(p),h.forEach(p),u=x(d),g=f(d,"DIV",{class:!0});var w=l(g);N(y.$$.fragment,w),w.forEach(p),b=x(d),_=f(d,"DIV",{class:!0});var $=l(_);k&&k.l($),$.forEach(p),d.forEach(p),this.h()},h:function(){d(r,"class","svelte-m9qkku"),d(o,"class","svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(g,"class","KP svelte-m9qkku"),d(_,"class","data svelte-m9qkku"),d(n,"class","prediction-details svelte-m9qkku")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),v(r,a),v(e,c),v(e,o),v(o,i),v(n,u),v(n,g),A(y,g,null),v(n,b),v(n,_),k&&k.m(_,null),w=!0},p:function(t,n){var e=V(n,1)[0];t[5]&&k.p(t,e)},i:function(t){w||(q(y.$$.fragment,t),w=!0)},o:function(t){T(y.$$.fragment,t),w=!1},d:function(t){t&&p(n),C(y),k&&k.d()}}}function Xt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,r=0;r<n-t.length;r++)e="0"+e;return e}function Yt(t,n,e){var r=n.prediction,a=r.kp,c=r.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][r.time.getMonth()],o=Xt(r.time.getHours().toString())+":"+Xt(r.time.getMinutes().toString()),i=r.temp,u=r.clouds,s=r.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,r=t.prediction)},[a,c,o,i,u,s,r]}var tn=function(n){t(s,u);var e=Qt(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,Yt,Ut,c,{prediction:6}),n}return i(s)}();function nn(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function en(t,n,e){var r=t.slice();return r[5]=n[e],r[7]=e,r}function rn(t){var n,e;return n=new tn({props:{prediction:t[5]}}),{c:function(){B(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,r){A(n,t,r),e=!0},p:function(t,e){var r={};1&e&&(r.prediction=t[5]),n.$set(r)},i:function(t){e||(q(n.$$.fragment,t),e=!0)},o:function(t){T(n.$$.fragment,t),e=!1},d:function(t){C(n,t)}}}function an(t){for(var n,e,r=t[0],a=[],c=0;c<r.length;c+=1)a[c]=rn(en(t,r,c));var o=function(t){return T(a[t],1,1,(function(){a[t]=null}))};return{c:function(){n=s("div");for(var t=0;t<a.length;t+=1)a[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),r=0;r<a.length;r+=1)a[r].l(e);e.forEach(p),this.h()},h:function(){d(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,r){h(t,n,r);for(var c=0;c<a.length;c+=1)a[c].m(n,null);e=!0},p:function(t,e){var c=V(e,1)[0];if(1&c){var i;for(r=t[0],i=0;i<r.length;i+=1){var u=en(t,r,i);a[i]?(a[i].p(u,c),q(a[i],1)):(a[i]=rn(u),a[i].c(),q(a[i],1),a[i].m(n,null))}for(S(),i=r.length;i<a.length;i+=1)o(i);j()}},i:function(t){if(!e){for(var n=0;n<r.length;n+=1)q(a[n]);e=!0}},o:function(t){a=a.filter(Boolean);for(var n=0;n<a.length;n+=1)T(a[n]);e=!1},d:function(t){t&&p(n),z(a,t)}}}function cn(t,n,e){var r,a,c;function o(){return i.apply(this,arguments)}function i(){return(i=tt(b.mark((function t(){var n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.updating&&!r.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=a.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:r.available}}))),r.available&&c.forEach((function(t,n){var a,o,i=new Date(0,0,0),u=!0;r.yr_data_raw.properties.timeseries.forEach((function(n,e){var r=new Date(n.time);if(Math.abs(r.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())){if(Math.abs(r.getTime()-t.time.getTime())>18e6)return void(u=!1);i=r,a=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:a,clouds:o,hasNOMETData:u}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return M(t,pt,(function(t){return e(1,r=t)})),M(t,dt,(function(t){return e(2,a=t)})),dt.subscribe(o),pt.subscribe(o),[c]}var on=function(n){t(s,u);var e=nn(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,cn,an,c,{}),n}return i(s)}();function un(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function sn(t){var n,e,r;return e=new zt({props:{$$slots:{default:[fn]},$$scope:{ctx:t}}}),{c:function(){n=s("div"),B(e.$$.fragment),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var r=l(n);N(e.$$.fragment,r),r.forEach(p),this.h()},h:function(){d(n,"class","svelte-m9qkku")},m:function(t,a){h(t,n,a),A(e,n,null),r=!0},p:function(t,n){var r={};257&n&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i:function(t){r||(q(e.$$.fragment,t),r=!0)},o:function(t){T(e.$$.fragment,t),r=!1},d:function(t){t&&p(n),C(e)}}}function fn(t){var n,e=t[0].observed+"";return{c:function(){n=R(e)},l:function(t){n=I(t,e)},m:function(t,e){h(t,n,e)},p:function(t,r){1&r&&e!==(e=t[0].observed+"")&&O(n,e)},d:function(t){t&&p(n)}}}function ln(t){var n,e,r,a,c,o,i,u,g,y,b,_,w,k,$="predicted"!=t[0].observed&&sn(t);b=new Gt({props:{percentage:t[1]/9,value:t[1]}});var D=t[6]&&function(t){var n,e,r,a,c,o,i,u,g,y,b,_,w=Math.round(t[4])+"",k=Math.round(t[5])+"";return{c:function(){n=s("div"),e=s("p"),r=s("i"),a=E(),c=R(w),o=R("°C"),i=E(),u=s("p"),g=s("i"),y=E(),b=R(k),_=R("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"P",{class:!0});var d=l(e);r=f(d,"I",{class:!0}),l(r).forEach(p),a=x(d),c=I(d,w),o=I(d,"°C"),d.forEach(p),i=x(s),u=f(s,"P",{class:!0});var h=l(u);g=f(h,"I",{class:!0}),l(g).forEach(p),y=x(h),b=I(h,k),_=I(h,"%"),h.forEach(p),s.forEach(p),this.h()},h:function(){d(r,"class","fas fa-thermometer-half svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(g,"class","fas fa-cloud svelte-m9qkku"),d(u,"class","svelte-m9qkku"),d(n,"class","svelte-m9qkku")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),v(e,a),v(e,c),v(e,o),v(n,i),v(n,u),v(u,g),v(u,y),v(u,b),v(u,_)},p:m,d:function(t){t&&p(n)}}}(t);return{c:function(){n=s("div"),e=s("div"),r=s("h3"),a=R(t[3]),c=E(),o=s("p"),i=R(t[2]),u=E(),$&&$.c(),g=E(),y=s("div"),B(b.$$.fragment),_=E(),w=s("div"),D&&D.c(),this.h()},l:function(s){n=f(s,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);r=f(h,"H3",{class:!0});var v=l(r);a=I(v,t[3]),v.forEach(p),c=x(h),o=f(h,"P",{class:!0});var m=l(o);i=I(m,t[2]),m.forEach(p),h.forEach(p),u=x(d),$&&$.l(d),g=x(d),y=f(d,"DIV",{class:!0});var k=l(y);N(b.$$.fragment,k),k.forEach(p),_=x(d),w=f(d,"DIV",{class:!0});var E=l(w);D&&D.l(E),E.forEach(p),d.forEach(p),this.h()},h:function(){d(r,"class","svelte-m9qkku"),d(o,"class","svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(y,"class","KP svelte-m9qkku"),d(w,"class","data svelte-m9qkku"),d(n,"class","prediction-details svelte-m9qkku")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),v(r,a),v(e,c),v(e,o),v(o,i),v(n,u),$&&$.m(n,null),v(n,g),v(n,y),A(b,y,null),v(n,_),v(n,w),D&&D.m(w,null),k=!0},p:function(t,e){var r=V(e,1)[0];"predicted"!=t[0].observed?$?($.p(t,r),1&r&&q($,1)):(($=sn(t)).c(),q($,1),$.m(n,g)):$&&(S(),T($,1,1,(function(){$=null})),j()),t[6]&&D.p(t,r)},i:function(t){k||(q($),q(b.$$.fragment,t),k=!0)},o:function(t){T($),T(b.$$.fragment,t),k=!1},d:function(t){t&&p(n),$&&$.d(),C(b),D&&D.d()}}}function pn(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,r=0;r<n-t.length;r++)e="0"+e;return e}function dn(t,n,e){var r=n.prediction,a=r.kp,c=r.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][r.time.getMonth()],o=pn(r.time.getHours().toString())+":"+pn(r.time.getMinutes().toString()),i=r.temp,u=r.clouds,s=r.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,r=t.prediction)},[r,a,c,o,i,u,s]}var hn=function(n){t(s,u);var e=un(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,dn,ln,c,{prediction:0}),n}return i(s)}();function vn(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function mn(t,n,e){var r=t.slice();return r[5]=n[e],r[7]=e,r}function gn(t){var n,e;return n=new hn({props:{prediction:t[5]}}),{c:function(){B(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,r){A(n,t,r),e=!0},p:function(t,e){var r={};1&e&&(r.prediction=t[5]),n.$set(r)},i:function(t){e||(q(n.$$.fragment,t),e=!0)},o:function(t){T(n.$$.fragment,t),e=!1},d:function(t){C(n,t)}}}function yn(t){for(var n,e,r=t[0],a=[],c=0;c<r.length;c+=1)a[c]=gn(mn(t,r,c));var o=function(t){return T(a[t],1,1,(function(){a[t]=null}))};return{c:function(){n=s("div");for(var t=0;t<a.length;t+=1)a[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),r=0;r<a.length;r+=1)a[r].l(e);e.forEach(p),this.h()},h:function(){d(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,r){h(t,n,r);for(var c=0;c<a.length;c+=1)a[c].m(n,null);e=!0},p:function(t,e){var c=V(e,1)[0];if(1&c){var i;for(r=t[0],i=0;i<r.length;i+=1){var u=mn(t,r,i);a[i]?(a[i].p(u,c),q(a[i],1)):(a[i]=gn(u),a[i].c(),q(a[i],1),a[i].m(n,null))}for(S(),i=r.length;i<a.length;i+=1)o(i);j()}},i:function(t){if(!e){for(var n=0;n<r.length;n+=1)q(a[n]);e=!0}},o:function(t){a=a.filter(Boolean);for(var n=0;n<a.length;n+=1)T(a[n]);e=!1},d:function(t){t&&p(n),z(a,t)}}}function bn(t,n,e){var r,a,c;function o(){return i.apply(this,arguments)}function i(){return(i=tt(b.mark((function t(){var n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.updating&&!r.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=a.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:r.available}}))),r.available&&c.forEach((function(t,n){var a,o,i=new Date(0,0,0);r.yr_data_raw.properties.timeseries.forEach((function(n,e){var r=new Date(n.time);Math.abs(r.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())&&(i=r,a=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:a,clouds:o}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return M(t,pt,(function(t){return e(1,r=t)})),M(t,dt,(function(t){return e(2,a=t)})),dt.subscribe(o),pt.subscribe(o),[c]}var _n=function(n){t(s,u);var e=vn(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,bn,yn,c,{}),n}return i(s)}();function wn(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function kn(t){var n,e,r,a,c,o,i,u,m,g;return i=new Gt({props:{percentage:t[0]/9,value:t[0]}}),{c:function(){n=s("div"),e=s("div"),r=s("h3"),a=R(t[1]),c=E(),o=s("div"),B(i.$$.fragment),u=E(),m=s("div"),this.h()},l:function(s){n=f(s,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);r=f(h,"H3",{class:!0});var v=l(r);a=I(v,t[1]),v.forEach(p),h.forEach(p),c=x(d),o=f(d,"DIV",{class:!0});var g=l(o);N(i.$$.fragment,g),g.forEach(p),u=x(d),m=f(d,"DIV",{class:!0}),l(m).forEach(p),d.forEach(p),this.h()},h:function(){d(r,"class","svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(o,"class","KP svelte-m9qkku"),d(m,"class","data svelte-m9qkku"),d(n,"class","prediction-details svelte-m9qkku")},m:function(t,s){h(t,n,s),v(n,e),v(e,r),v(r,a),v(n,c),v(n,o),A(i,o,null),v(n,u),v(n,m),g=!0},p:function(t,n){V(n,1)[0]},i:function(t){g||(q(i.$$.fragment,t),g=!0)},o:function(t){T(i.$$.fragment,t),g=!1},d:function(t){t&&p(n),C(i)}}}function $n(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,r=0;r<n-t.length;r++)e="0"+e;return e}function En(t,n,e){var r=n.prediction,a=r.kp,c=r.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][r.time.getMonth()];$n(r.time.getHours().toString()),$n(r.time.getMinutes().toString());var o=r.temp,i=r.clouds;return t.$$set=function(t){"prediction"in t&&e(4,r=t.prediction)},[a,c,o,i,r]}var Dn=function(n){t(s,u);var e=wn(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,En,kn,c,{prediction:4}),n}return i(s)}();function xn(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function Rn(t,n,e){var r=t.slice();return r[5]=n[e],r[7]=e,r}function In(t){var n,e;return n=new Dn({props:{prediction:t[5]}}),{c:function(){B(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,r){A(n,t,r),e=!0},p:function(t,e){var r={};1&e&&(r.prediction=t[5]),n.$set(r)},i:function(t){e||(q(n.$$.fragment,t),e=!0)},o:function(t){T(n.$$.fragment,t),e=!1},d:function(t){C(n,t)}}}function Pn(t){for(var n,e,r=t[0],a=[],c=0;c<r.length;c+=1)a[c]=In(Rn(t,r,c));var o=function(t){return T(a[t],1,1,(function(){a[t]=null}))};return{c:function(){n=s("div");for(var t=0;t<a.length;t+=1)a[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),r=0;r<a.length;r+=1)a[r].l(e);e.forEach(p),this.h()},h:function(){d(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,r){h(t,n,r);for(var c=0;c<a.length;c+=1)a[c].m(n,null);e=!0},p:function(t,e){var c=V(e,1)[0];if(1&c){var i;for(r=t[0],i=0;i<r.length;i+=1){var u=Rn(t,r,i);a[i]?(a[i].p(u,c),q(a[i],1)):(a[i]=In(u),a[i].c(),q(a[i],1),a[i].m(n,null))}for(S(),i=r.length;i<a.length;i+=1)o(i);j()}},i:function(t){if(!e){for(var n=0;n<r.length;n+=1)q(a[n]);e=!0}},o:function(t){a=a.filter(Boolean);for(var n=0;n<a.length;n+=1)T(a[n]);e=!1},d:function(t){t&&p(n),z(a,t)}}}function On(t,n,e){var r,a,c;function o(){return i.apply(this,arguments)}function i(){return(i=tt(b.mark((function t(){var n;return b.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!a.updating&&!r.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=a.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:r.available}}))),r.available&&c.forEach((function(t,n){var a,o,i=new Date(0,0,0),u=!0;r.yr_data_raw.properties.timeseries.forEach((function(n,e){var r=new Date(n.time);if(Math.abs(r.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())){if(Math.abs(r.getTime()-t.time.getTime())>864e5)return void(u=!1);i=r,a=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:a,clouds:o,hasNOMETData:u}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return M(t,pt,(function(t){return e(1,r=t)})),M(t,dt,(function(t){return e(2,a=t)})),dt.subscribe(o),pt.subscribe(o),[c]}var Vn=function(n){t(s,u);var e=xn(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,On,Pn,c,{}),n}return i(s)}();function Sn(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function Tn(t){var n,e,r,a,c;return{c:function(){n=s("div"),e=s("i"),r=E(),a=s("p"),c=R("No prediction data"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var o=l(n);e=f(o,"I",{class:!0}),l(e).forEach(p),r=x(o),a=f(o,"P",{});var i=l(a);c=I(i,"No prediction data"),i.forEach(p),o.forEach(p),this.h()},h:function(){d(e,"class","fas fa-7x fa-exclamation-triangle"),d(n,"class","no-data svelte-1soiua")},m:function(t,o){h(t,n,o),v(n,e),v(n,r),v(n,a),v(a,c)},p:m,i:m,o:m,d:function(t){t&&p(n)}}}function jn(t){var n,e,r,a,c,o,i,u,m,g,y,b,_,w,k,$,P,O,V,M=t[0];return M&&(k=new M({})),{c:function(){n=s("div"),e=s("h2"),r=R("Forecast"),a=E(),c=s("div"),o=s("div"),i=R("hour"),u=E(),m=s("div"),g=R("3 day"),y=E(),b=s("div"),_=R("Longterm"),w=E(),k&&B(k.$$.fragment),$=D(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"H2",{class:!0});var d=l(e);r=I(d,"Forecast"),d.forEach(p),a=x(s),c=f(s,"DIV",{class:!0});var h=l(c);o=f(h,"DIV",{class:!0});var v=l(o);i=I(v,"hour"),v.forEach(p),u=x(h),m=f(h,"DIV",{class:!0});var E=l(m);g=I(E,"3 day"),E.forEach(p),y=x(h),b=f(h,"DIV",{class:!0});var R=l(b);_=I(R,"Longterm"),R.forEach(p),h.forEach(p),s.forEach(p),w=x(t),k&&N(k.$$.fragment,t),$=D(),this.h()},h:function(){d(e,"class","svelte-1soiua"),d(o,"class","svelte-1soiua"),Z(o,"selected",t[0]==on),d(m,"class","svelte-1soiua"),Z(m,"selected",t[0]==_n),d(b,"class","svelte-1soiua"),Z(b,"selected",t[0]==Vn),d(c,"class","version-picker svelte-1soiua"),d(n,"class","header svelte-1soiua")},m:function(s,f){h(s,n,f),v(n,e),v(e,r),v(n,a),v(n,c),v(c,o),v(o,i),v(c,u),v(c,m),v(m,g),v(c,y),v(c,b),v(b,_),h(s,w,f),k&&A(k,s,f),h(s,$,f),P=!0,O||(V=[L(o,"click",t[3]),L(m,"click",t[4]),L(b,"click",t[5])],O=!0)},p:function(t,n){if(1&n&&Z(o,"selected",t[0]==on),1&n&&Z(m,"selected",t[0]==_n),1&n&&Z(b,"selected",t[0]==Vn),M!==(M=t[0])){if(k){S();var e=k;T(e.$$.fragment,1,0,(function(){C(e,1)})),j()}M?(k=new M({}),B(k.$$.fragment),q(k.$$.fragment,1),A(k,$.parentNode,$)):k=null}},i:function(t){P||(k&&q(k.$$.fragment,t),P=!0)},o:function(t){k&&T(k.$$.fragment,t),P=!1},d:function(t){t&&p(n),t&&p(w),t&&p($),k&&C(k,t),O=!1,W(V)}}}function qn(t){var n,e,r,a,c=[jn,Tn],o=[];function i(t,n){return t[1].updating||t[2].updating?1:0}return e=i(t),r=o[e]=c[e](t),{c:function(){n=s("div"),r.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);r.l(e),e.forEach(p),this.h()},h:function(){d(n,"class","drawer svelte-1soiua")},m:function(t,r){h(t,n,r),o[e].m(n,null),a=!0},p:function(t,a){var u=V(a,1)[0],s=e;(e=i(t))===s?o[e].p(t,u):(S(),T(o[s],1,1,(function(){o[s]=null})),j(),(r=o[e])?r.p(t,u):(r=o[e]=c[e](t)).c(),q(r,1),r.m(n,null))},i:function(t){a||(q(r),a=!0)},o:function(t){T(r),a=!1},d:function(t){t&&p(n),o[e].d()}}}function Mn(t,n,e){var r,a;M(t,pt,(function(t){return e(1,r=t)})),M(t,dt,(function(t){return e(2,a=t)}));var c=_n;return[c,r,a,function(){return e(0,c=on)},function(){return e(0,c=_n)},function(){return e(0,c=Vn)}]}var Bn=function(n){t(s,u);var e=Sn(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,Mn,qn,c,{}),n}return i(s)}();function Nn(t){var r=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 a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function An(t){var n,e,r,a,c,o;return r=new Ft({}),c=new Bn({}),{c:function(){n=E(),e=s("div"),B(r.$$.fragment),a=E(),B(c.$$.fragment),this.h()},l:function(t){G('[data-svelte="svelte-1q3846k"]',document.head).forEach(p),n=x(t),e=f(t,"DIV",{class:!0});var o=l(e);N(r.$$.fragment,o),a=x(o),N(c.$$.fragment,o),o.forEach(p),this.h()},h:function(){document.title="Aurora data",d(e,"class","homescreen svelte-pf4p6y")},m:function(t,i){h(t,n,i),h(t,e,i),A(r,e,null),v(e,a),A(c,e,null),o=!0},p:m,i:function(t){o||(q(r.$$.fragment,t),q(c.$$.fragment,t),o=!0)},o:function(t){T(r.$$.fragment,t),T(c.$$.fragment,t),o=!1},d:function(t){t&&p(n),t&&p(e),C(r),C(c)}}}var Cn=function(n){t(s,u);var e=Nn(s);function s(t){var n;return r(this,s),n=e.call(this),a(o(n),t,null,An,c,{}),n}return i(s)}();export{Cn as default};
diff --git a/client/legacy/index.c0543b4c.js b/client/legacy/index.c0543b4c.js
deleted file mode 100644
index 56d60ee..0000000
--- a/client/legacy/index.c0543b4c.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as t,a as n,b as e,c as a,i as r,s as c,d as o,e as i,S as s,f as u,g as f,h as l,j as d,k as v,l as h,m as p,n as m,o as g,w as _,p as w,q as y,r as b,t as k,u as $,v as E,x as D,y as O,z as I,A as R,B as j,C as P,D as V,E as x,F as T,G as q,H as M,I as B,J as S,K as N,L as C,M as A,N as J,O as H,P as K,Q as z,R as L,T as Z}from"./client.b77ea58c.js";function F(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function G(t){var n,e,a,r,c,o,i,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),o=u("div"),i=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"DIV",{class:!0}),l(e).forEach(d),a=f(u,"DIV",{class:!0}),l(a).forEach(d),r=f(u,"DIV",{class:!0}),l(r).forEach(d),c=f(u,"DIV",{class:!0}),l(c).forEach(d),o=f(u,"DIV",{class:!0}),l(o).forEach(d),i=f(u,"DIV",{class:!0}),l(i).forEach(d),s=f(u,"DIV",{class:!0}),l(s).forEach(d),g=f(u,"DIV",{class:!0}),l(g).forEach(d),u.forEach(d),this.h()},h:function(){v(e,"class","svelte-7k6qu0"),v(a,"class","svelte-7k6qu0"),v(r,"class","svelte-7k6qu0"),v(c,"class","svelte-7k6qu0"),v(o,"class","svelte-7k6qu0"),v(i,"class","svelte-7k6qu0"),v(s,"class","svelte-7k6qu0"),v(g,"class","svelte-7k6qu0"),v(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,o),p(n,i),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}var Q=function(n){t(u,s);var e=F(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,null,G,c,{}),n}return i(u)}(),U=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"];function W(t){if(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$/.test(t))return t;if(/^\d{4}\s[a-z,A-Z]+\s\d{2}$/.test(t)){var n=t.split(" ");return t="".concat(n[0],"-").concat(function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t.toString();n-e.length>0;)e="0"+e;return e}(function(t){if("string"!=typeof t)throw new Error("Cannot get month number of ".concat(g(t),"..."));if(t.length<3)throw new Error('Cannot get month number string "'.concat(t,'" of length ').concat(t.length,"..."));t=t.substring(0,3).toLowerCase();var n=U.indexOf(t);if(-1===n)throw new Error("Could not find the month ".concat(t,"."));return n}(n[1])),"-").concat(n[2],"T00:00:00Z"),t}return/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}/.test(t)?t.replace(" ","T")+"Z":/^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{4}/.test(t)?t.replace(" ","T").split(".")[0]+"Z":(console.warn(t),t)}function X(t){return t=W(t),new Date(t)}const Y=_("light");setInterval((function(){if("undefined"==typeof window)return;let t=window.matchMedia("(prefers-color-scheme:dark)").matches?"dark":"light";t!=w(Y)&&Y.set(t)}),1e3),Y.subscribe((t=>{"undefined"!=typeof window&&("dark"==t?window.document.body.classList.add("dark"):window.document.body.classList.remove("dark"))}));const tt={updated:new Date(0,0,0),updating:!0};let nt=st("navigator_location"),et=st("earth_weather"),at=st("space_weather");const rt=_(ut("navigator_location")?function(t){return t.updated=new Date(t.updated),t}(nt):Object.assign(Object.assign({},tt),{available:!1,longitude:null,latitude:null,city:null})),ct=_(ut("earth_weather")?function(t){let n=t;return n.updated=new Date(n.updated),n.yr_data_raw.properties.meta.updated_at=new Date(n.yr_data_raw.properties.meta.updated_at),n.yr_data_raw.properties.timeseries=n.yr_data_raw.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)}))),n}(et):Object.assign(Object.assign({},tt),{available:!1})),ot=_(ut("space_weather")?function(t){let n=t;return n.updated=new Date(n.updated),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=n.usnoaa_data_raw.geospace_pred_est_kp_1_hour.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:new Date(t.model_prediction_time)}))),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=n.usnoaa_data_raw.noaa_planetary_k_index_forecast.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)}))),n.usnoaa_data_raw.outlook_27_day=n.usnoaa_data_raw.outlook_27_day.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)}))),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp),n}(at):Object.assign({},tt));function it(t,n){"undefined"!=typeof window&&localStorage.setItem(t,JSON.stringify(n))}function st(t){if("undefined"!=typeof window)return JSON.parse(localStorage.getItem(t))}function ut(t){return"undefined"!=typeof window&&localStorage.hasOwnProperty(t)}async function ft(){if("undefined"==typeof window)return;let t;dt(rt,!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){if(0==w(rt).available)return;return console.log(t),rt.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void dt(rt,!1)}if(w(rt).available&&Date.now()-w(rt).updated<3e5)return void dt(rt,!1,!1);let n={city:void 0};try{let e=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`);n=await e.json()}catch(t){console.log(t)}rt.update((e=>Object.assign(Object.assign(Object.assign({},e),{available:!0,city:n.city}),t))),dt(rt,!1)}async function lt(){if("undefined"==typeof window)return;if(Date.now()-w(ot).updated<3e5)return;let t;dt(ot,!0);try{t=await async function(){let t,n={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t=await e.json(),t.TimeStamp=X(t.TimeStamp),n.usnoaa_data_raw.solar_wind_mag_field=t,n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t=await e.json(),t=t.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:X(t.model_prediction_time)}))),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t,e=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),t=await e.text(),t=[...t.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],t=t.map((t=>Object.assign(Object.assign({},t.groups),{time:X(t.groups.time)}))),n.usnoaa_data_raw.outlook_27_day=t,e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t=await e.json(),t.shift(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=t;let a=new Date,r=new Date(0,0,0),c=1e3,o=0;return n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,e)=>{t[1]>o&&(o=t[1]),t[1]<c&&(c=t[1]);let i=X(t[0]);Math.abs(i.getTime()-a.getTime())<Math.abs(r.getTime()-a.getTime())&&(r=i,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:i,kp:t[1],observed:t[2]}})),n.now.kp_min=c.toString(),n.now.kp_max=o.toString(),console.log(n),n}()}catch(t){return console.error(t),void dt(ot,!1,!1)}ot.update((n=>Object.assign(Object.assign({},n),t))),dt(ot,!1)}function dt(t,n=!1,e=!0){let a={};e&&!n&&(a={updated:new Date}),t.update((t=>Object.assign(Object.assign(Object.assign({},t),a),{updating:n})))}function vt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function ht(t){var n,e,a;function r(t,n){return void 0!==t[2].city?mt:pt}var c=r(t),o=c(t);return{c:function(){n=u("i"),e=y(),o.c(),a=b(),this.h()},l:function(t){n=f(t,"I",{class:!0}),l(n).forEach(d),e=k(t),o.l(t),a=b(),this.h()},h:function(){v(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s")},m:function(t,r){h(t,n,r),h(t,e,r),o.m(t,r),h(t,a,r)},p:function(t,n){c===(c=r(t))&&o?o.p(t,n):(o.d(1),(o=c(t))&&(o.c(),o.m(a.parentNode,a)))},d:function(t){t&&d(n),t&&d(e),o.d(t),t&&d(a)}}}function pt(t){var n,e,a,r,c,o,i=t[2].longitude+"",s=t[2].latitude+"";return{c:function(){n=u("h1"),e=$("long: "),a=$(i),r=u("br"),c=$("lat: "),o=$(s),this.h()},l:function(t){n=f(t,"H1",{class:!0});var u=l(n);e=E(u,"long: "),a=E(u,i),r=f(u,"BR",{}),c=E(u,"lat: "),o=E(u,s),u.forEach(d),this.h()},h:function(){v(n,"class","svelte-9kdo4s")},m:function(t,i){h(t,n,i),p(n,e),p(n,a),p(n,r),p(n,c),p(n,o)},p:function(t,n){4&n&&i!==(i=t[2].longitude+"")&&O(a,i),4&n&&s!==(s=t[2].latitude+"")&&O(o,s)},d:function(t){t&&d(n)}}}function mt(t){var n,e,a=t[2].city+"";return{c:function(){n=u("h1"),e=$(a),this.h()},l:function(t){n=f(t,"H1",{class:!0});var r=l(n);e=E(r,a),r.forEach(d),this.h()},h:function(){v(n,"class","svelte-9kdo4s")},m:function(t,a){h(t,n,a),p(n,e)},p:function(t,n){4&n&&a!==(a=t[2].city+"")&&O(e,a)},d:function(t){t&&d(n)}}}function gt(t){var n,e,a;function r(t,e){return 24&e&&(n=null),null==n&&(n=!!(Math.abs(t[3].updated-t[4].updated)>6e5)),n?wt:_t}var c=r(t,-1),o=c(t),i=t[1]>=3e5&&yt(t);return{c:function(){o.c(),e=y(),i&&i.c(),a=b()},l:function(t){o.l(t),e=k(t),i&&i.l(t),a=b()},m:function(t,n){o.m(t,n),h(t,e,n),i&&i.m(t,n),h(t,a,n)},p:function(t,n){c===(c=r(t,n))&&o?o.p(t,n):(o.d(1),(o=c(t))&&(o.c(),o.m(e.parentNode,e))),t[1]>=3e5?i?i.p(t,n):((i=yt(t)).c(),i.m(a.parentNode,a)):i&&(i.d(1),i=null)},d:function(t){o.d(t),t&&d(e),i&&i.d(t),t&&d(a)}}}function _t(t){var n,e,a=t[0].toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=$(a)},l:function(t){n=f(t,"P",{});var r=l(n);e=E(r,a),r.forEach(d)},m:function(t,a){h(t,n,a),p(n,e)},p:function(t,n){1&n&&a!==(a=t[0].toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&O(e,a)},d:function(t){t&&d(n)}}}function wt(t){var n,e;return{c:function(){n=u("p"),e=$("There is more than 10 minutes difference between data updates")},l:function(t){n=f(t,"P",{});var a=l(n);e=E(a,"There is more than 10 minutes difference between data updates"),a.forEach(d)},m:function(t,a){h(t,n,a),p(n,e)},p:m,d:function(t){t&&d(n)}}}function yt(t){var n,e,a,r,c,o=Math.round(t[1]/60/1e3)+"";return{c:function(){n=u("span"),e=u("i"),a=$(" Data is "),r=$(o),c=$(" minutes old!"),this.h()},l:function(t){n=f(t,"SPAN",{style:!0});var i=l(n);e=f(i,"I",{class:!0}),l(e).forEach(d),a=E(i," Data is "),r=E(i,o),c=E(i," minutes old!"),i.forEach(d),this.h()},h:function(){v(e,"class","symbol fas fa-exclamation-circle"),D(n,"color","red")},m:function(t,o){h(t,n,o),p(n,e),p(n,a),p(n,r),p(n,c)},p:function(t,n){2&n&&o!==(o=Math.round(t[1]/60/1e3)+"")&&O(r,o)},d:function(t){t&&d(n)}}}function bt(t){var n,e,a,r,c,o,i,s,g,_,w,b,D=t[4].now.kp+"",I=t[4].now.kp_max+"",R=t[4].now.kp_min+"";return{c:function(){n=u("h2"),e=$("KP "),a=$(D),r=y(),c=u("p"),o=u("span"),i=$("↑ KP "),s=$(I),g=y(),_=u("span"),w=$("↓ KP "),b=$(R),this.h()},l:function(t){n=f(t,"H2",{class:!0});var u=l(n);e=E(u,"KP "),a=E(u,D),u.forEach(d),r=k(t),c=f(t,"P",{});var v=l(c);o=f(v,"SPAN",{classname:!0});var h=l(o);i=E(h,"↑ KP "),s=E(h,I),h.forEach(d),g=k(v),_=f(v,"SPAN",{classname:!0});var p=l(_);w=E(p,"↓ KP "),b=E(p,R),p.forEach(d),v.forEach(d),this.h()},h:function(){v(n,"class","svelte-9kdo4s"),v(o,"classname","pr-2"),v(_,"classname","pl-2")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),h(t,r,u),h(t,c,u),p(c,o),p(o,i),p(o,s),p(c,g),p(c,_),p(_,w),p(_,b)},p:function(t,n){16&n&&D!==(D=t[4].now.kp+"")&&O(a,D),16&n&&I!==(I=t[4].now.kp_max+"")&&O(s,I),16&n&&R!==(R=t[4].now.kp_min+"")&&O(b,R)},i:m,o:m,d:function(t){t&&d(n),t&&d(r),t&&d(c)}}}function kt(t){var n,e;return n=new Q({}),{c:function(){T(n.$$.fragment)},l:function(t){q(n.$$.fragment,t)},m:function(t,a){M(n,t,a),e=!0},p:m,i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){j(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function $t(t){var n,e,a,r,c,o,i,s,m,g,_,w,D,I,R,j=t[4].now.bz+"",P=t[4].now.bt+"",V=t[3].available&&Et(t);return{c:function(){n=u("div"),e=u("p"),a=$("BZ"),r=y(),c=u("p"),o=$(j),i=y(),s=u("div"),m=u("p"),g=$("BT"),_=y(),w=u("p"),D=$(P),I=y(),V&&V.c(),R=b(),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=E(v,"BZ"),v.forEach(d),r=k(u),c=f(u,"P",{class:!0});var h=l(c);o=E(h,j),h.forEach(d),u.forEach(d),i=k(t),s=f(t,"DIV",{});var p=l(s);m=f(p,"P",{class:!0});var y=l(m);g=E(y,"BT"),y.forEach(d),_=k(p),w=f(p,"P",{class:!0});var $=l(w);D=E($,P),$.forEach(d),p.forEach(d),I=k(t),V&&V.l(t),R=b(),this.h()},h:function(){v(e,"class","svelte-9kdo4s"),v(c,"class","svelte-9kdo4s"),v(m,"class","svelte-9kdo4s"),v(w,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,o),h(t,i,u),h(t,s,u),p(s,m),p(m,g),p(s,_),p(s,w),p(w,D),h(t,I,u),V&&V.m(t,u),h(t,R,u)},p:function(t,n){16&n&&j!==(j=t[4].now.bz+"")&&O(o,j),16&n&&P!==(P=t[4].now.bt+"")&&O(D,P),t[3].available?V?V.p(t,n):((V=Et(t)).c(),V.m(R.parentNode,R)):V&&(V.d(1),V=null)},d:function(t){t&&d(n),t&&d(i),t&&d(s),t&&d(I),V&&V.d(t),t&&d(R)}}}function Et(t){var n,e,a,r,c,o,i,s,m,g,_,w,b,D,I,R=t[3].now.temp+"",j=t[3].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=$("Temp"),r=y(),c=u("p"),o=$(R),i=$("°C"),s=y(),m=u("div"),g=u("p"),_=$("Clouds"),w=y(),b=u("p"),D=$(j),I=$("%"),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=E(v,"Temp"),v.forEach(d),r=k(u),c=f(u,"P",{class:!0});var h=l(c);o=E(h,R),i=E(h,"°C"),h.forEach(d),u.forEach(d),s=k(t),m=f(t,"DIV",{});var p=l(m);g=f(p,"P",{class:!0});var y=l(g);_=E(y,"Clouds"),y.forEach(d),w=k(p),b=f(p,"P",{class:!0});var $=l(b);D=E($,j),I=E($,"%"),$.forEach(d),p.forEach(d),this.h()},h:function(){v(e,"class","svelte-9kdo4s"),v(c,"class","svelte-9kdo4s"),v(g,"class","svelte-9kdo4s"),v(b,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,o),p(c,i),h(t,s,u),h(t,m,u),p(m,g),p(g,_),p(m,w),p(m,b),p(b,D),p(b,I)},p:function(t,n){8&n&&R!==(R=t[3].now.temp+"")&&O(o,R),8&n&&j!==(j=t[3].now.clouds+"")&&O(D,j)},d:function(t){t&&d(n),t&&d(s),t&&d(m)}}}function Dt(t){var n,e,a,r,c,o,i,s,m,g,_,w,b=!t[2].updating&&t[2].available&&!t[3].updating&&!t[4].updating&&ht(t),$=!t[3].updating&&!t[4].updating&&gt(t),E=[kt,bt],D=[];function O(t,n){return t[4].updating||t[3].updating?0:1}s=O(t),m=D[s]=E[s](t);var x=!t[4].updating&&!t[3].updating&&$t(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),b&&b.c(),r=y(),c=u("div"),$&&$.c(),o=y(),i=u("div"),m.c(),g=y(),_=u("div"),x&&x.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0});var v=l(a);b&&b.l(v),v.forEach(d),r=k(u),c=f(u,"DIV",{class:!0});var h=l(c);$&&$.l(h),h.forEach(d),o=k(u),i=f(u,"DIV",{class:!0});var p=l(i);m.l(p),p.forEach(d),g=k(u),_=f(u,"DIV",{class:!0});var w=l(_);x&&x.l(w),w.forEach(d),u.forEach(d),s.forEach(d),this.h()},h:function(){v(a,"class","weatherCurrent-data-location svelte-9kdo4s"),v(c,"class","weatherCurrent-data-date"),v(i,"class","weatherCurrent-data-kp svelte-9kdo4s"),v(_,"class","current-details svelte-9kdo4s"),v(e,"class","weatherCurrent-data svelte-9kdo4s"),v(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),b&&b.m(a,null),p(e,r),p(e,c),$&&$.m(c,null),p(e,o),p(e,i),D[s].m(i,null),p(e,g),p(e,_),x&&x.m(_,null),w=!0},p:function(t,n){var e=I(n,1)[0];t[2].updating||!t[2].available||t[3].updating||t[4].updating?b&&(b.d(1),b=null):b?b.p(t,e):((b=ht(t)).c(),b.m(a,null)),t[3].updating||t[4].updating?$&&($.d(1),$=null):$?$.p(t,e):(($=gt(t)).c(),$.m(c,null));var r=s;(s=O(t))===r?D[s].p(t,e):(R(),j(D[r],1,1,(function(){D[r]=null})),P(),(m=D[s])?m.p(t,e):(m=D[s]=E[s](t)).c(),V(m,1),m.m(i,null)),t[4].updating||t[3].updating?x&&(x.d(1),x=null):x?x.p(t,e):((x=$t(t)).c(),x.m(_,null))},i:function(t){w||(V(m),w=!0)},o:function(t){j(m),w=!1},d:function(t){t&&d(n),b&&b.d(),$&&$.d(),D[s].d(),x&&x.d()}}}function Ot(t,n,e){var a,r,c;x(t,rt,(function(t){return e(2,a=t)})),x(t,ct,(function(t){return e(3,r=t)})),x(t,ot,(function(t){return e(4,c=t)}));var o=new Date(0,0,0),i=0;return setInterval((function(){var t=w(ct).updated,n=w(ot).updated,a=new Date;a-n>a-t?(e(0,o=n),e(1,i=a-n)):(e(0,o=t),e(1,i=a-t))}),500),[o,i,a,r,c]}ft(),rt.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return ct.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void dt(ct,!1);if(w(ct).available&&Date.now()-w(ct).updated<3e5)return;dt(ct,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:X(t.time)})))}catch(t){return console.error(t),void dt(ct,!1,!1)}ct.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),dt(ct,!1)})),lt(),setInterval(ft,15e4),setInterval(lt,15e4),rt.subscribe((t=>it("navigator_location",t))),ct.subscribe((t=>it("earth_weather",t))),ot.subscribe((t=>it("space_weather",t)));var It=function(n){t(u,s);var e=vt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,Ot,Dt,c,{}),n}return i(u)}();function Rt(t,n,e,a,r,c,o){try{var i=t[c](o),s=i.value}catch(t){return void e(t)}i.done?n(s):Promise.resolve(s).then(a,r)}function jt(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function o(t){Rt(c,a,r,o,i,"next",t)}function i(t){Rt(c,a,r,o,i,"throw",t)}o(void 0)}))}}function Pt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Vt(t){var n,e,a=t[1].default,r=S(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);r&&r.l(e),e.forEach(d),this.h()},h:function(){v(n,"class","chip svelte-1jb0ny7")},m:function(t,a){h(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=I(n,1)[0];r&&r.p&&(!e||1&c)&&N(r,a,t,t[0],e?A(a,t[0],c,null):C(t[0]),null)},i:function(t){e||(V(r,t),e=!0)},o:function(t){j(r,t),e=!1},d:function(t){t&&d(n),r&&r.d(t)}}}function xt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var Tt=function(n){t(u,s);var e=Pt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,xt,Vt,c,{}),n}return i(u)}();function qt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Mt(t){var n,e,a,r,c,o;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=y(),c=u("span"),o=$(t[1]),this.h()},l:function(i){n=f(i,"DIV",{class:!0,style:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0}),l(a).forEach(d),u.forEach(d),r=k(s),c=f(s,"SPAN",{class:!0});var v=l(c);o=E(v,t[1]),v.forEach(d),s.forEach(d),this.h()},h:function(){v(a,"class","bar svelte-1mo8cjf"),v(e,"class","bar-wrapper svelte-1mo8cjf"),v(c,"class","value svelte-1mo8cjf"),v(n,"class","wrapper svelte-1mo8cjf"),D(n,"--progress",100*t[0]+"%")},m:function(t,i){h(t,n,i),p(n,e),p(e,a),p(n,r),p(n,c),p(c,o)},p:function(t,e){var a=I(e,1)[0];2&a&&O(o,t[1]),1&a&&D(n,"--progress",100*t[0]+"%")},i:m,o:m,d:function(t){t&&d(n)}}}function Bt(t,n,e){var a=n.percentage,r=n.value;return t.$$set=function(t){"percentage"in t&&e(0,a=t.percentage),"value"in t&&e(1,r=t.value)},[a,r]}var St=function(n){t(u,s);var e=qt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,Bt,Mt,c,{percentage:0,value:1}),n}return i(u)}();function Nt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Ct(t){var n,e,a,r,c,o,i,s,g,_,w,b,D;_=new St({props:{percentage:t[0]/9,value:t[0]}});var O=t[5]&&function(t){var n,e,a,r,c,o,i,s,g,_,w,b,D=Math.round(t[3])+"",O=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=$(D),o=$("°C"),i=y(),s=u("p"),g=u("i"),_=y(),w=$(O),b=$("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=f(v,"I",{class:!0}),l(a).forEach(d),r=k(v),c=E(v,D),o=E(v,"°C"),v.forEach(d),i=k(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(d),_=k(h),w=E(h,O),b=E(h,"%"),h.forEach(d),u.forEach(d),this.h()},h:function(){v(a,"class","fas fa-thermometer-half svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","fas fa-cloud svelte-m9qkku"),v(s,"class","svelte-m9qkku"),v(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,o),p(n,i),p(n,s),p(s,g),p(s,_),p(s,w),p(s,b)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=$(t[2]),c=y(),o=u("p"),i=$(t[1]),s=y(),g=u("div"),T(_.$$.fragment),w=y(),b=u("div"),O&&O.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=E(p,t[2]),p.forEach(d),c=k(h),o=f(h,"P",{class:!0});var m=l(o);i=E(m,t[1]),m.forEach(d),h.forEach(d),s=k(v),g=f(v,"DIV",{class:!0});var y=l(g);q(_.$$.fragment,y),y.forEach(d),w=k(v),b=f(v,"DIV",{class:!0});var $=l(b);O&&O.l($),$.forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(o,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","KP svelte-m9qkku"),v(b,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,o),p(o,i),p(n,s),p(n,g),M(_,g,null),p(n,w),p(n,b),O&&O.m(b,null),D=!0},p:function(t,n){var e=I(n,1)[0];t[5]&&O.p(t,e)},i:function(t){D||(V(_.$$.fragment,t),D=!0)},o:function(t){j(_.$$.fragment,t),D=!1},d:function(t){t&&d(n),B(_),O&&O.d()}}}function At(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Jt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],o=At(a.time.getHours().toString())+":"+At(a.time.getMinutes().toString()),i=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,o,i,s,u,a]}var Ht=function(n){t(u,s);var e=Nt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,Jt,Ct,c,{prediction:6}),n}return i(u)}();function Kt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function zt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Lt(t){var n,e;return n=new Ht({props:{prediction:t[5]}}),{c:function(){T(n.$$.fragment)},l:function(t){q(n.$$.fragment,t)},m:function(t,a){M(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){j(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function Zt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Lt(zt(t,a,c));var o=function(t){return j(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=I(e,1)[0];if(1&c){var i;for(a=t[0],i=0;i<a.length;i+=1){var s=zt(t,a,i);r[i]?(r[i].p(s,c),V(r[i],1)):(r[i]=Lt(s),r[i].c(),V(r[i],1),r[i].m(n,null))}for(R(),i=a.length;i<r.length;i+=1)o(i);P()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)j(r[n]);e=!1},d:function(t){t&&d(n),J(r,t)}}}function Ft(t,n,e){var a,r,c;function o(){return i.apply(this,arguments)}function i(){return(i=jt(H.mark((function t(){var n;return H.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,o,i=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>18e6)return void(s=!1);i=a,r=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:o,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,ct,(function(t){return e(1,a=t)})),x(t,ot,(function(t){return e(2,r=t)})),ot.subscribe(o),ct.subscribe(o),[c]}var Gt=function(n){t(u,s);var e=Kt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,Ft,Zt,c,{}),n}return i(u)}();function Qt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function Ut(t){var n,e,a;return e=new Tt({props:{$$slots:{default:[Wt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),T(e.$$.fragment),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var a=l(n);q(e.$$.fragment,a),a.forEach(d),this.h()},h:function(){v(n,"class","svelte-m9qkku")},m:function(t,r){h(t,n,r),M(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(V(e.$$.fragment,t),a=!0)},o:function(t){j(e.$$.fragment,t),a=!1},d:function(t){t&&d(n),B(e)}}}function Wt(t){var n,e=t[0].observed+"";return{c:function(){n=$(e)},l:function(t){n=E(t,e)},m:function(t,e){h(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&O(n,e)},d:function(t){t&&d(n)}}}function Xt(t){var n,e,a,r,c,o,i,s,g,_,w,b,D,O,x="predicted"!=t[0].observed&&Ut(t);w=new St({props:{percentage:t[1]/9,value:t[1]}});var S=t[6]&&function(t){var n,e,a,r,c,o,i,s,g,_,w,b,D=Math.round(t[4])+"",O=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=$(D),o=$("°C"),i=y(),s=u("p"),g=u("i"),_=y(),w=$(O),b=$("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var v=l(e);a=f(v,"I",{class:!0}),l(a).forEach(d),r=k(v),c=E(v,D),o=E(v,"°C"),v.forEach(d),i=k(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(d),_=k(h),w=E(h,O),b=E(h,"%"),h.forEach(d),u.forEach(d),this.h()},h:function(){v(a,"class","fas fa-thermometer-half svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(g,"class","fas fa-cloud svelte-m9qkku"),v(s,"class","svelte-m9qkku"),v(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,o),p(n,i),p(n,s),p(s,g),p(s,_),p(s,w),p(s,b)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=$(t[3]),c=y(),o=u("p"),i=$(t[2]),s=y(),x&&x.c(),g=y(),_=u("div"),T(w.$$.fragment),b=y(),D=u("div"),S&&S.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=E(p,t[3]),p.forEach(d),c=k(h),o=f(h,"P",{class:!0});var m=l(o);i=E(m,t[2]),m.forEach(d),h.forEach(d),s=k(v),x&&x.l(v),g=k(v),_=f(v,"DIV",{class:!0});var y=l(_);q(w.$$.fragment,y),y.forEach(d),b=k(v),D=f(v,"DIV",{class:!0});var $=l(D);S&&S.l($),$.forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(o,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(_,"class","KP svelte-m9qkku"),v(D,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,o),p(o,i),p(n,s),x&&x.m(n,null),p(n,g),p(n,_),M(w,_,null),p(n,b),p(n,D),S&&S.m(D,null),O=!0},p:function(t,e){var a=I(e,1)[0];"predicted"!=t[0].observed?x?(x.p(t,a),1&a&&V(x,1)):((x=Ut(t)).c(),V(x,1),x.m(n,g)):x&&(R(),j(x,1,1,(function(){x=null})),P()),t[6]&&S.p(t,a)},i:function(t){O||(V(x),V(w.$$.fragment,t),O=!0)},o:function(t){j(x),j(w.$$.fragment,t),O=!1},d:function(t){t&&d(n),x&&x.d(),B(w),S&&S.d()}}}function Yt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function tn(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],o=Yt(a.time.getHours().toString())+":"+Yt(a.time.getMinutes().toString()),i=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,o,i,s,u]}var nn=function(n){t(u,s);var e=Qt(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,tn,Xt,c,{prediction:0}),n}return i(u)}();function en(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function an(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function rn(t){var n,e;return n=new nn({props:{prediction:t[5]}}),{c:function(){T(n.$$.fragment)},l:function(t){q(n.$$.fragment,t)},m:function(t,a){M(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){j(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function cn(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=rn(an(t,a,c));var o=function(t){return j(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=I(e,1)[0];if(1&c){var i;for(a=t[0],i=0;i<a.length;i+=1){var s=an(t,a,i);r[i]?(r[i].p(s,c),V(r[i],1)):(r[i]=rn(s),r[i].c(),V(r[i],1),r[i].m(n,null))}for(R(),i=a.length;i<r.length;i+=1)o(i);P()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)j(r[n]);e=!1},d:function(t){t&&d(n),J(r,t)}}}function on(t,n,e){var a,r,c;function o(){return i.apply(this,arguments)}function i(){return(i=jt(H.mark((function t(){var n;return H.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,o,i=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())&&(i=a,r=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:o}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,ct,(function(t){return e(1,a=t)})),x(t,ot,(function(t){return e(2,r=t)})),ot.subscribe(o),ct.subscribe(o),[c]}var sn=function(n){t(u,s);var e=en(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,on,cn,c,{}),n}return i(u)}();function un(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function fn(t){var n,e,a,r,c,o,i,s,m,g;return i=new St({props:{percentage:t[0]/9,value:t[0]}}),{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=$(t[1]),c=y(),o=u("div"),T(i.$$.fragment),s=y(),m=u("div"),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var v=l(n);e=f(v,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=E(p,t[1]),p.forEach(d),h.forEach(d),c=k(v),o=f(v,"DIV",{class:!0});var g=l(o);q(i.$$.fragment,g),g.forEach(d),s=k(v),m=f(v,"DIV",{class:!0}),l(m).forEach(d),v.forEach(d),this.h()},h:function(){v(a,"class","svelte-m9qkku"),v(e,"class","svelte-m9qkku"),v(o,"class","KP svelte-m9qkku"),v(m,"class","data svelte-m9qkku"),v(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(n,c),p(n,o),M(i,o,null),p(n,s),p(n,m),g=!0},p:function(t,n){I(n,1)[0]},i:function(t){g||(V(i.$$.fragment,t),g=!0)},o:function(t){j(i.$$.fragment,t),g=!1},d:function(t){t&&d(n),B(i)}}}function ln(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function dn(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()];ln(a.time.getHours().toString()),ln(a.time.getMinutes().toString());var o=a.temp,i=a.clouds;return t.$$set=function(t){"prediction"in t&&e(4,a=t.prediction)},[r,c,o,i,a]}var vn=function(n){t(u,s);var e=un(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,dn,fn,c,{prediction:4}),n}return i(u)}();function hn(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function pn(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function mn(t){var n,e;return n=new vn({props:{prediction:t[5]}}),{c:function(){T(n.$$.fragment)},l:function(t){q(n.$$.fragment,t)},m:function(t,a){M(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(V(n.$$.fragment,t),e=!0)},o:function(t){j(n.$$.fragment,t),e=!1},d:function(t){B(n,t)}}}function gn(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=mn(pn(t,a,c));var o=function(t){return j(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(d),this.h()},h:function(){v(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=I(e,1)[0];if(1&c){var i;for(a=t[0],i=0;i<a.length;i+=1){var s=pn(t,a,i);r[i]?(r[i].p(s,c),V(r[i],1)):(r[i]=mn(s),r[i].c(),V(r[i],1),r[i].m(n,null))}for(R(),i=a.length;i<r.length;i+=1)o(i);P()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)V(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)j(r[n]);e=!1},d:function(t){t&&d(n),J(r,t)}}}function _n(t,n,e){var a,r,c;function o(){return i.apply(this,arguments)}function i(){return(i=jt(H.mark((function t(){var n;return H.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,o,i=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(i.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>864e5)return void(s=!1);i=a,r=n.data.instant.details.air_temperature,o=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:o,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,ct,(function(t){return e(1,a=t)})),x(t,ot,(function(t){return e(2,r=t)})),ot.subscribe(o),ct.subscribe(o),[c]}var wn=function(n){t(u,s);var e=hn(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,_n,gn,c,{}),n}return i(u)}();function yn(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function bn(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=y(),r=u("p"),c=$("No prediction data"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var o=l(n);e=f(o,"I",{class:!0}),l(e).forEach(d),a=k(o),r=f(o,"P",{});var i=l(r);c=E(i,"No prediction data"),i.forEach(d),o.forEach(d),this.h()},h:function(){v(e,"class","fas fa-7x fa-exclamation-triangle"),v(n,"class","no-data svelte-11gsg4a")},m:function(t,o){h(t,n,o),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&d(n)}}}function kn(t){var n,e,a,r,c,o,i,s,m,g,_,w,D,O,I,x,S,N,C,A=t[0];return A&&(I=new A({})),{c:function(){n=u("div"),e=u("h2"),a=$("Forecast"),r=y(),c=u("div"),o=u("div"),i=$("hour"),s=y(),m=u("div"),g=$("3 day"),_=y(),w=u("div"),D=$("Longterm"),O=y(),I&&T(I.$$.fragment),x=b(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"H2",{class:!0});var v=l(e);a=E(v,"Forecast"),v.forEach(d),r=k(u),c=f(u,"DIV",{class:!0});var h=l(c);o=f(h,"DIV",{class:!0});var p=l(o);i=E(p,"hour"),p.forEach(d),s=k(h),m=f(h,"DIV",{class:!0});var y=l(m);g=E(y,"3 day"),y.forEach(d),_=k(h),w=f(h,"DIV",{class:!0});var $=l(w);D=E($,"Longterm"),$.forEach(d),h.forEach(d),u.forEach(d),O=k(t),I&&q(I.$$.fragment,t),x=b(),this.h()},h:function(){v(e,"class","svelte-11gsg4a"),v(o,"class","svelte-11gsg4a"),K(o,"selected",t[0]==Gt),v(m,"class","svelte-11gsg4a"),K(m,"selected",t[0]==sn),v(w,"class","svelte-11gsg4a"),K(w,"selected",t[0]==wn),v(c,"class","version-picker svelte-11gsg4a"),v(n,"class","header svelte-11gsg4a")},m:function(u,f){h(u,n,f),p(n,e),p(e,a),p(n,r),p(n,c),p(c,o),p(o,i),p(c,s),p(c,m),p(m,g),p(c,_),p(c,w),p(w,D),h(u,O,f),I&&M(I,u,f),h(u,x,f),S=!0,N||(C=[z(o,"click",t[3]),z(m,"click",t[4]),z(w,"click",t[5])],N=!0)},p:function(t,n){if(1&n&&K(o,"selected",t[0]==Gt),1&n&&K(m,"selected",t[0]==sn),1&n&&K(w,"selected",t[0]==wn),A!==(A=t[0])){if(I){R();var e=I;j(e.$$.fragment,1,0,(function(){B(e,1)})),P()}A?(I=new A({}),T(I.$$.fragment),V(I.$$.fragment,1),M(I,x.parentNode,x)):I=null}},i:function(t){S||(I&&V(I.$$.fragment,t),S=!0)},o:function(t){I&&j(I.$$.fragment,t),S=!1},d:function(t){t&&d(n),t&&d(O),t&&d(x),I&&B(I,t),N=!1,L(C)}}}function $n(t){var n,e,a,r,c=[kn,bn],o=[];function i(t,n){return t[1].updating||t[2].updating?1:0}return e=i(t),a=o[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);a.l(e),e.forEach(d),this.h()},h:function(){v(n,"class","drawer svelte-11gsg4a")},m:function(t,a){h(t,n,a),o[e].m(n,null),r=!0},p:function(t,r){var s=I(r,1)[0],u=e;(e=i(t))===u?o[e].p(t,s):(R(),j(o[u],1,1,(function(){o[u]=null})),P(),(a=o[e])?a.p(t,s):(a=o[e]=c[e](t)).c(),V(a,1),a.m(n,null))},i:function(t){r||(V(a),r=!0)},o:function(t){j(a),r=!1},d:function(t){t&&d(n),o[e].d()}}}function En(t,n,e){var a,r;x(t,ct,(function(t){return e(1,a=t)})),x(t,ot,(function(t){return e(2,r=t)}));var c=sn;return[c,a,r,function(){return e(0,c=Gt)},function(){return e(0,c=sn)},function(){return e(0,c=wn)}]}var Dn=function(n){t(u,s);var e=yn(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,En,$n,c,{}),n}return i(u)}();function On(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var o=n(this).constructor;r=Reflect.construct(c,arguments,o)}else r=c.apply(this,arguments);return e(this,r)}}function In(t){var n,e,a,r,c,o;return a=new It({}),c=new Dn({}),{c:function(){n=y(),e=u("div"),T(a.$$.fragment),r=y(),T(c.$$.fragment),this.h()},l:function(t){Z('[data-svelte="svelte-1q3846k"]',document.head).forEach(d),n=k(t),e=f(t,"DIV",{class:!0});var o=l(e);q(a.$$.fragment,o),r=k(o),q(c.$$.fragment,o),o.forEach(d),this.h()},h:function(){document.title="Aurora data",v(e,"class","homescreen svelte-pf4p6y")},m:function(t,i){h(t,n,i),h(t,e,i),M(a,e,null),p(e,r),M(c,e,null),o=!0},p:m,i:function(t){o||(V(a.$$.fragment,t),V(c.$$.fragment,t),o=!0)},o:function(t){j(a.$$.fragment,t),j(c.$$.fragment,t),o=!1},d:function(t){t&&d(n),t&&d(e),B(a),B(c)}}}var Rn=function(n){t(u,s);var e=On(u);function u(t){var n;return a(this,u),n=e.call(this),r(o(n),t,null,In,c,{}),n}return i(u)}();export{Rn as default};