From 0b1940a71a3c1167408ed32078e79e45041e9e50 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Wed, 14 Oct 2020 14:01:22 +0200 Subject: Updates --- client/client.cead19b7.js | 18 ++++++++++++++++++ client/client.df220531.js | 18 ------------------ client/index.98d274eb.js | 1 + client/index.c01a634b.js | 1 - client/legacy/client.8f52d8e6.js | 18 ++++++++++++++++++ client/legacy/client.aaaa1a17.js | 18 ------------------ client/legacy/index.3620d9f2.js | 1 + client/legacy/index.77d07c99.js | 1 - index.html | 2 +- manifest.json | 2 +- service-worker-index.html | 2 +- service-worker.js | 2 +- 12 files changed, 42 insertions(+), 42 deletions(-) create mode 100644 client/client.cead19b7.js delete mode 100644 client/client.df220531.js create mode 100644 client/index.98d274eb.js delete mode 100644 client/index.c01a634b.js create mode 100644 client/legacy/client.8f52d8e6.js delete mode 100644 client/legacy/client.aaaa1a17.js create mode 100644 client/legacy/index.3620d9f2.js delete mode 100644 client/legacy/index.77d07c99.js diff --git a/client/client.cead19b7.js b/client/client.cead19b7.js new file mode 100644 index 0000000..8c9f465 --- /dev/null +++ b/client/client.cead19b7.js @@ -0,0 +1,18 @@ +function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function a(t,e,n,r,o,s,c){const a=function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r{B.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function z(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const c=t[s],i=e[s];if(i){for(const t in c)t in i||(r[t]=1);for(const t in i)o[t]||(n[t]=i[t],o[t]=1);t[s]=i}else for(const t in c)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function H(t){return"object"==typeof t&&null!==t?t:{}}function Y(t){t&&t.c()}function F(t,e){t&&t.l(e)}function G(t,e,r){const{fragment:c,on_mount:i,on_destroy:a,after_update:l}=t.$$;c&&c.m(e,r),O((()=>{const e=i.map(n).filter(s);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(O)}function W(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function X(t,e){-1===t.$$.dirty[0]&&(k.push(t),q||(q=!0,L.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return d.ctx&&i(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),h&&X(e,t)),n})):[],d.update(),h=!0,o(d.before_update),d.fragment=!!c&&c(d.ctx),n.target){if(n.hydrate){const t=y(n.target);d.fragment&&d.fragment.l(t),t.forEach(f)}else d.fragment&&d.fragment.c();n.intro&&D(e.$$.fragment),G(e,n.target,n.anchor),T()}S(u)}class Z{$destroy(){W(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const tt=[];function et(e,n=t){let r;const o=[];function s(t){if(c(e,t)&&(e=t,r)){const t=!tt.length;for(let t=0;t{const t=o.indexOf(a);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}const nt={};function rt(t){let e,n;const r=t[1].default,o=function(t,e,n,r){if(t){const o=i(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c(){e=d("div"),o&&o.c(),this.h()},l(t){e=v(t,"DIV",{class:!0});var n=y(e);o&&o.l(n),n.forEach(f),this.h()},h(){$(e,"class","app-container svelte-lkkhqy")},m(t,r){u(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&1&e&&a(o,r,t,t[0],e,null,null)},i(t){n||(D(o,t),n=!0)},o(t){M(o,t),n=!1},d(t){t&&f(e),o&&o.d(t)}}}function ot(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class st extends Z{constructor(t){super(),Q(this,t,ot,rt,c,{})}}function ct(t){let e,n,r=t[1].stack+"";return{c(){e=d("pre"),n=h(r)},l(t){e=v(t,"PRE",{});var o=y(e);n=b(o,r),o.forEach(f)},m(t,r){u(t,e,r),l(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&x(n,r)},d(t){t&&f(e)}}}function it(e){let n,r,o,s,c,i,a,p,E,S=e[1].message+"";document.title=n=e[0];let R=e[2]&&e[1].stack&&ct(e);return{c(){r=m(),o=d("h1"),s=h(e[0]),c=m(),i=d("p"),a=h(S),p=m(),R&&R.c(),E=g(),this.h()},l(t){w('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(f),r=_(t),o=v(t,"H1",{class:!0});var n=y(o);s=b(n,e[0]),n.forEach(f),c=_(t),i=v(t,"P",{class:!0});var l=y(i);a=b(l,S),l.forEach(f),p=_(t),R&&R.l(t),E=g(),this.h()},h(){$(o,"class","svelte-jpshsi"),$(i,"class","svelte-jpshsi")},m(t,e){u(t,r,e),u(t,o,e),l(o,s),u(t,c,e),u(t,i,e),l(i,a),u(t,p,e),R&&R.m(t,e),u(t,E,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&x(s,t[0]),2&e&&S!==(S=t[1].message+"")&&x(a,S),t[2]&&t[1].stack?R?R.p(t,e):(R=ct(t),R.c(),R.m(E.parentNode,E)):R&&(R.d(1),R=null)},i:t,o:t,d(t){t&&f(r),t&&f(o),t&&f(c),t&&f(i),t&&f(p),R&&R.d(t),t&&f(E)}}}function at(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class lt extends Z{constructor(t){super(),Q(this,t,at,it,c,{status:0,error:1})}}function ut(t){let n,r,o;const s=[t[4].props];var c=t[4].component;function i(t){let n={};for(let t=0;t{W(t,1)})),V()}c?(n=new c(i()),Y(n.$$.fragment),D(n.$$.fragment,1),G(n,r.parentNode,r)):n=null}else c&&n.$set(o)},i(t){o||(n&&D(n.$$.fragment,t),o=!0)},o(t){n&&M(n.$$.fragment,t),o=!1},d(t){t&&f(r),n&&W(n,t)}}}function ft(t){let e,n;return e=new lt({props:{error:t[0],status:t[1]}}),{c(){Y(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){G(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){W(e,t)}}}function pt(t){let e,n,r,o;const s=[ft,ut],c=[];function i(t,e){return t[0]?0:1}return e=i(t),n=c[e]=s[e](t),{c(){n.c(),r=g()},l(t){n.l(t),r=g()},m(t,n){c[e].m(t,n),u(t,r,n),o=!0},p(t,o){let a=e;e=i(t),e===a?c[e].p(t,o):(K(),M(c[a],1,1,(()=>{c[a]=null})),V(),n=c[e],n||(n=c[e]=s[e](t),n.c()),D(n,1),n.m(r.parentNode,r))},i(t){o||(D(n),o=!0)},o(t){M(n),o=!1},d(t){c[e].d(t),t&&f(r)}}}function dt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[pt]},$$scope:{ctx:t}};for(let t=0;t{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,i=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,c,i,a,r,l]}class mt extends Z{constructor(t){super(),Q(this,t,ht,dt,c,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const gt=[],$t=[{js:()=>Promise.all([import("./index.98d274eb.js"),__inject_styles(["client-ea61129f.css","index-183044ce.css"])]).then((function(t){return t[0]}))}],yt=[{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 vt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function c(t){try{a(r.next(t))}catch(t){s(t)}}function i(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,i)}a((r=r.apply(t,e||[])).next())}))}function bt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let _t,xt=1;const wt="undefined"!=typeof history?history:{pushState:(t,e,n)=>{},replaceState:(t,e,n)=>{},scrollRestoration:""},Et={};let St,Rt;function Nt(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function kt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(St))return null;let e=t.pathname.slice(St.length);if(""===e&&(e="/"),!gt.some((t=>t.test(e))))for(let n=0;n{Ct(t)}),20)}function It(t,e={noscroll:!1,replaceState:!1}){const n=kt(new URL(t,qt(document)));return n?(wt[e.replaceState?"replaceState":"pushState"]({id:_t},"",t),Lt(n,null,e.noscroll).then((()=>{}))):(location.href=t,new Promise((t=>{})))}const Bt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Jt,Kt,Vt,Dt=!1,Mt=[],zt="{}";const Ht={page:function(t){const e=et(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:et(null),session:et(Bt&&Bt.session)};let Yt,Ft,Gt;function Wt(t,e){const{error:n}=t;return Object.assign({error:n},e)}function Xt(t){return vt(this,void 0,void 0,(function*(){Jt&&Ht.preloading.set(!0);const e=function(t){return Ut&&Ut.href===t.href?Ut.promise:Zt(t)}(t),n=Kt={},r=yield e,{redirect:o}=r;if(n===Kt)if(o)yield It(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield Qt(n,e,Wt(e,t.page))}}))}function Qt(t,e,n){return vt(this,void 0,void 0,(function*(){Ht.page.set(n),Ht.preloading.set(!1),Jt?Jt.$set(e):(e.stores={page:{subscribe:Ht.page.subscribe},preloading:{subscribe:Ht.preloading.subscribe},session:Ht.session},e.level0={props:yield Vt},e.notify=Ht.page.notify,Jt=new mt({target:Gt,props:e,hydrate:!0})),Mt=t,zt=JSON.stringify(n.query),Dt=!0,Ft=!1}))}function Zt(t){return vt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},c={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Vt){const t=()=>({});Vt=Bt.preloaded[0]||t.call(c,{host:n.host,path:n.path,query:n.query,params:{}},Yt)}let i,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;i=yield Promise.all(e.parts.map(((e,i)=>vt(this,void 0,void 0,(function*(){const f=r[i];if(function(t,e,n,r){if(r!==zt)return!0;const o=Mt[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)}(i,f,l,o)&&(u=!0),s.segments[a]=r[i+1],!e)return{segment:f};const p=a++;if(!Ft&&!u&&Mt[i]&&Mt[i].part===e.i)return Mt[i];u=!1;const{default:d,preload:h}=yield $t[e.i].js();let m;return m=Dt||!Bt.preloaded[i+1]?h?yield h.call(c,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},Yt):{}:Bt.preloaded[i+1],s["level"+p]={component:d,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,i=[]}return{redirect:o,props:s,branch:i}}))}var te,ee,ne;Ht.session.subscribe((t=>vt(void 0,void 0,void 0,(function*(){if(Yt=t,!Dt)return;Ft=!0;const e=kt(new URL(location.href)),n=Kt={},{redirect:r,props:o,branch:s}=yield Zt(e);n===Kt&&(r?yield It(r.location,{replaceState:!0}):yield Qt(s,o,Wt(o,e.page)))})))),te={target:document.querySelector(".app")},ee=te.target,Gt=ee,ne=Bt.baseUrl,St=ne,Rt=Xt,"scrollRestoration"in wt&&(wt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{wt.scrollRestoration="auto"})),addEventListener("load",(()=>{wt.scrollRestoration="manual"})),addEventListener("click",Pt),addEventListener("popstate",At),addEventListener("touchstart",Ct),addEventListener("mousemove",Tt),Bt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:c}=Bt;Vt||(Vt=o&&o[0]);const i={error:c,status:s,session:r,level0:{props:Vt},level1:{props:{status:s,error:c},component:lt},segments:o},a=Nt(n);Qt([],i,{host:t,path:e,query:a,params:{},error:c})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;wt.replaceState({id:xt},"",e);const n=kt(new URL(location.href));if(n)return Lt(n,xt,!0,t)}));export{Z as S,m as a,y as b,v as c,f as d,d as e,_ as f,b as g,$ as h,Q as i,u as j,l as k,x as l,K as m,t as n,N as o,M as p,V as q,D as r,c as s,h as t,Y as u,F as v,G as w,W as x,p as y,w as z}; + +import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file diff --git a/client/client.df220531.js b/client/client.df220531.js deleted file mode 100644 index 80adac8..0000000 --- a/client/client.df220531.js +++ /dev/null @@ -1,18 +0,0 @@ -function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function a(t,e,n,r,o,s,c){const a=function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r{B.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function z(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const c=t[s],i=e[s];if(i){for(const t in c)t in i||(r[t]=1);for(const t in i)o[t]||(n[t]=i[t],o[t]=1);t[s]=i}else for(const t in c)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function H(t){return"object"==typeof t&&null!==t?t:{}}function Y(t){t&&t.c()}function F(t,e){t&&t.l(e)}function G(t,e,r){const{fragment:c,on_mount:i,on_destroy:a,after_update:l}=t.$$;c&&c.m(e,r),O((()=>{const e=i.map(n).filter(s);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(O)}function W(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function X(t,e){-1===t.$$.dirty[0]&&(k.push(t),q||(q=!0,L.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return d.ctx&&i(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),h&&X(e,t)),n})):[],d.update(),h=!0,o(d.before_update),d.fragment=!!c&&c(d.ctx),n.target){if(n.hydrate){const t=y(n.target);d.fragment&&d.fragment.l(t),t.forEach(f)}else d.fragment&&d.fragment.c();n.intro&&D(e.$$.fragment),G(e,n.target,n.anchor),T()}S(u)}class Z{$destroy(){W(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const tt=[];function et(e,n=t){let r;const o=[];function s(t){if(c(e,t)&&(e=t,r)){const t=!tt.length;for(let t=0;t{const t=o.indexOf(a);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}const nt={};function rt(t){let e,n;const r=t[1].default,o=function(t,e,n,r){if(t){const o=i(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c(){e=d("div"),o&&o.c(),this.h()},l(t){e=v(t,"DIV",{class:!0});var n=y(e);o&&o.l(n),n.forEach(f),this.h()},h(){$(e,"class","app-container svelte-lkkhqy")},m(t,r){u(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&1&e&&a(o,r,t,t[0],e,null,null)},i(t){n||(D(o,t),n=!0)},o(t){M(o,t),n=!1},d(t){t&&f(e),o&&o.d(t)}}}function ot(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class st extends Z{constructor(t){super(),Q(this,t,ot,rt,c,{})}}function ct(t){let e,n,r=t[1].stack+"";return{c(){e=d("pre"),n=h(r)},l(t){e=v(t,"PRE",{});var o=y(e);n=b(o,r),o.forEach(f)},m(t,r){u(t,e,r),l(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&x(n,r)},d(t){t&&f(e)}}}function it(e){let n,r,o,s,c,i,a,p,E,S=e[1].message+"";document.title=n=e[0];let R=e[2]&&e[1].stack&&ct(e);return{c(){r=m(),o=d("h1"),s=h(e[0]),c=m(),i=d("p"),a=h(S),p=m(),R&&R.c(),E=g(),this.h()},l(t){w('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(f),r=_(t),o=v(t,"H1",{class:!0});var n=y(o);s=b(n,e[0]),n.forEach(f),c=_(t),i=v(t,"P",{class:!0});var l=y(i);a=b(l,S),l.forEach(f),p=_(t),R&&R.l(t),E=g(),this.h()},h(){$(o,"class","svelte-jpshsi"),$(i,"class","svelte-jpshsi")},m(t,e){u(t,r,e),u(t,o,e),l(o,s),u(t,c,e),u(t,i,e),l(i,a),u(t,p,e),R&&R.m(t,e),u(t,E,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&x(s,t[0]),2&e&&S!==(S=t[1].message+"")&&x(a,S),t[2]&&t[1].stack?R?R.p(t,e):(R=ct(t),R.c(),R.m(E.parentNode,E)):R&&(R.d(1),R=null)},i:t,o:t,d(t){t&&f(r),t&&f(o),t&&f(c),t&&f(i),t&&f(p),R&&R.d(t),t&&f(E)}}}function at(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class lt extends Z{constructor(t){super(),Q(this,t,at,it,c,{status:0,error:1})}}function ut(t){let n,r,o;const s=[t[4].props];var c=t[4].component;function i(t){let n={};for(let t=0;t{W(t,1)})),V()}c?(n=new c(i()),Y(n.$$.fragment),D(n.$$.fragment,1),G(n,r.parentNode,r)):n=null}else c&&n.$set(o)},i(t){o||(n&&D(n.$$.fragment,t),o=!0)},o(t){n&&M(n.$$.fragment,t),o=!1},d(t){t&&f(r),n&&W(n,t)}}}function ft(t){let e,n;return e=new lt({props:{error:t[0],status:t[1]}}),{c(){Y(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){G(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){W(e,t)}}}function pt(t){let e,n,r,o;const s=[ft,ut],c=[];function i(t,e){return t[0]?0:1}return e=i(t),n=c[e]=s[e](t),{c(){n.c(),r=g()},l(t){n.l(t),r=g()},m(t,n){c[e].m(t,n),u(t,r,n),o=!0},p(t,o){let a=e;e=i(t),e===a?c[e].p(t,o):(K(),M(c[a],1,1,(()=>{c[a]=null})),V(),n=c[e],n||(n=c[e]=s[e](t),n.c()),D(n,1),n.m(r.parentNode,r))},i(t){o||(D(n),o=!0)},o(t){M(n),o=!1},d(t){c[e].d(t),t&&f(r)}}}function dt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[pt]},$$scope:{ctx:t}};for(let t=0;t{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,i=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,c,i,a,r,l]}class mt extends Z{constructor(t){super(),Q(this,t,ht,dt,c,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const gt=[],$t=[{js:()=>Promise.all([import("./index.c01a634b.js"),__inject_styles(["client-ea61129f.css","index-183044ce.css"])]).then((function(t){return t[0]}))}],yt=[{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 vt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function c(t){try{a(r.next(t))}catch(t){s(t)}}function i(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,i)}a((r=r.apply(t,e||[])).next())}))}function bt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let _t,xt=1;const wt="undefined"!=typeof history?history:{pushState:(t,e,n)=>{},replaceState:(t,e,n)=>{},scrollRestoration:""},Et={};let St,Rt;function Nt(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function kt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(St))return null;let e=t.pathname.slice(St.length);if(""===e&&(e="/"),!gt.some((t=>t.test(e))))for(let n=0;n{Ct(t)}),20)}function It(t,e={noscroll:!1,replaceState:!1}){const n=kt(new URL(t,qt(document)));return n?(wt[e.replaceState?"replaceState":"pushState"]({id:_t},"",t),Lt(n,null,e.noscroll).then((()=>{}))):(location.href=t,new Promise((t=>{})))}const Bt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Jt,Kt,Vt,Dt=!1,Mt=[],zt="{}";const Ht={page:function(t){const e=et(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:et(null),session:et(Bt&&Bt.session)};let Yt,Ft,Gt;function Wt(t,e){const{error:n}=t;return Object.assign({error:n},e)}function Xt(t){return vt(this,void 0,void 0,(function*(){Jt&&Ht.preloading.set(!0);const e=function(t){return Ut&&Ut.href===t.href?Ut.promise:Zt(t)}(t),n=Kt={},r=yield e,{redirect:o}=r;if(n===Kt)if(o)yield It(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield Qt(n,e,Wt(e,t.page))}}))}function Qt(t,e,n){return vt(this,void 0,void 0,(function*(){Ht.page.set(n),Ht.preloading.set(!1),Jt?Jt.$set(e):(e.stores={page:{subscribe:Ht.page.subscribe},preloading:{subscribe:Ht.preloading.subscribe},session:Ht.session},e.level0={props:yield Vt},e.notify=Ht.page.notify,Jt=new mt({target:Gt,props:e,hydrate:!0})),Mt=t,zt=JSON.stringify(n.query),Dt=!0,Ft=!1}))}function Zt(t){return vt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},c={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Vt){const t=()=>({});Vt=Bt.preloaded[0]||t.call(c,{host:n.host,path:n.path,query:n.query,params:{}},Yt)}let i,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;i=yield Promise.all(e.parts.map(((e,i)=>vt(this,void 0,void 0,(function*(){const f=r[i];if(function(t,e,n,r){if(r!==zt)return!0;const o=Mt[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)}(i,f,l,o)&&(u=!0),s.segments[a]=r[i+1],!e)return{segment:f};const p=a++;if(!Ft&&!u&&Mt[i]&&Mt[i].part===e.i)return Mt[i];u=!1;const{default:d,preload:h}=yield $t[e.i].js();let m;return m=Dt||!Bt.preloaded[i+1]?h?yield h.call(c,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},Yt):{}:Bt.preloaded[i+1],s["level"+p]={component:d,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,i=[]}return{redirect:o,props:s,branch:i}}))}var te,ee,ne;Ht.session.subscribe((t=>vt(void 0,void 0,void 0,(function*(){if(Yt=t,!Dt)return;Ft=!0;const e=kt(new URL(location.href)),n=Kt={},{redirect:r,props:o,branch:s}=yield Zt(e);n===Kt&&(r?yield It(r.location,{replaceState:!0}):yield Qt(s,o,Wt(o,e.page)))})))),te={target:document.querySelector(".app")},ee=te.target,Gt=ee,ne=Bt.baseUrl,St=ne,Rt=Xt,"scrollRestoration"in wt&&(wt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{wt.scrollRestoration="auto"})),addEventListener("load",(()=>{wt.scrollRestoration="manual"})),addEventListener("click",Pt),addEventListener("popstate",At),addEventListener("touchstart",Ct),addEventListener("mousemove",Tt),Bt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:c}=Bt;Vt||(Vt=o&&o[0]);const i={error:c,status:s,session:r,level0:{props:Vt},level1:{props:{status:s,error:c},component:lt},segments:o},a=Nt(n);Qt([],i,{host:t,path:e,query:a,params:{},error:c})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;wt.replaceState({id:xt},"",e);const n=kt(new URL(location.href));if(n)return Lt(n,xt,!0,t)}));export{Z as S,m as a,y as b,v as c,f as d,d as e,_ as f,b as g,$ as h,Q as i,u as j,l as k,x as l,K as m,t as n,N as o,M as p,V as q,D as r,c as s,h as t,Y as u,F as v,G as w,W as x,p as y,w as z}; - -import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file diff --git a/client/index.98d274eb.js b/client/index.98d274eb.js new file mode 100644 index 0000000..75c0ce5 --- /dev/null +++ b/client/index.98d274eb.js @@ -0,0 +1 @@ +import{S as t,i as e,s as a,e as s,a as r,t as o,c as n,b as c,d as i,f as l,g as h,h as f,j as u,k as p,l as d,n as v,o as m,m as g,p as E,q as $,r as w,u as y,v as D,w as P,x as b,y as I,z as x}from"./client.cead19b7.js";function V(t){let e,a,m,g,E,$,w,y,D,P,b,I,x,V,j,C,N,M,T,_,k,A,S,H,J,K,z,B,O,q,F,Z,G,L,Q,R,U,W,X,Y,tt,et,at,st,rt,ot,nt,ct,it;return{c(){e=s("div"),a=s("div"),m=s("div"),g=s("i"),E=r(),$=s("h1"),w=o(t[0]),y=r(),D=s("div"),P=s("p"),b=o(t[1]),I=r(),x=s("div"),V=s("h2"),j=o("KP "),C=o(t[2]),N=r(),M=s("p"),T=s("span"),_=o("↑ KP "),k=o(t[4]),A=r(),S=s("span"),H=o("↓ KP "),J=o(t[3]),K=r(),z=s("div"),B=s("div"),O=s("p"),q=o("BZ"),F=r(),Z=s("p"),G=o(t[5]),L=r(),Q=s("div"),R=s("p"),U=o("Temp"),W=r(),X=s("p"),Y=o(t[7]),tt=o("°C"),et=r(),at=s("div"),st=s("p"),rt=o("Clouds"),ot=r(),nt=s("p"),ct=o(t[6]),it=o("%"),this.h()},l(s){e=n(s,"DIV",{class:!0});var r=c(e);a=n(r,"DIV",{class:!0});var o=c(a);m=n(o,"DIV",{class:!0});var f=c(m);g=n(f,"I",{class:!0}),c(g).forEach(i),E=l(f),$=n(f,"H1",{class:!0});var u=c($);w=h(u,t[0]),u.forEach(i),f.forEach(i),y=l(o),D=n(o,"DIV",{class:!0});var p=c(D);P=n(p,"P",{});var d=c(P);b=h(d,t[1]),d.forEach(i),p.forEach(i),I=l(o),x=n(o,"DIV",{class:!0});var v=c(x);V=n(v,"H2",{class:!0});var lt=c(V);j=h(lt,"KP "),C=h(lt,t[2]),lt.forEach(i),N=l(v),M=n(v,"P",{});var ht=c(M);T=n(ht,"SPAN",{className:!0});var ft=c(T);_=h(ft,"↑ KP "),k=h(ft,t[4]),ft.forEach(i),A=l(ht),S=n(ht,"SPAN",{className:!0});var ut=c(S);H=h(ut,"↓ KP "),J=h(ut,t[3]),ut.forEach(i),ht.forEach(i),v.forEach(i),K=l(o),z=n(o,"DIV",{class:!0});var pt=c(z);B=n(pt,"DIV",{});var dt=c(B);O=n(dt,"P",{class:!0});var vt=c(O);q=h(vt,"BZ"),vt.forEach(i),F=l(dt),Z=n(dt,"P",{class:!0});var mt=c(Z);G=h(mt,t[5]),mt.forEach(i),dt.forEach(i),L=l(pt),Q=n(pt,"DIV",{});var gt=c(Q);R=n(gt,"P",{class:!0});var Et=c(R);U=h(Et,"Temp"),Et.forEach(i),W=l(gt),X=n(gt,"P",{class:!0});var $t=c(X);Y=h($t,t[7]),tt=h($t,"°C"),$t.forEach(i),gt.forEach(i),et=l(pt),at=n(pt,"DIV",{});var wt=c(at);st=n(wt,"P",{class:!0});var yt=c(st);rt=h(yt,"Clouds"),yt.forEach(i),ot=l(wt),nt=n(wt,"P",{class:!0});var Dt=c(nt);ct=h(Dt,t[6]),it=h(Dt,"%"),Dt.forEach(i),wt.forEach(i),pt.forEach(i),o.forEach(i),r.forEach(i),this.h()},h(){f(g,"class","symbol fas fa-map-marker-alt svelte-1oi7i0p"),f($,"class","svelte-1oi7i0p"),f(m,"class","weatherCurrent-data-location svelte-1oi7i0p"),f(D,"class","weatherCurrent-data-date"),f(V,"class","svelte-1oi7i0p"),f(T,"classname","pr-2"),f(S,"classname","pl-2"),f(x,"class","weatherCurrent-data-kp svelte-1oi7i0p"),f(O,"class","svelte-1oi7i0p"),f(Z,"class","svelte-1oi7i0p"),f(R,"class","svelte-1oi7i0p"),f(X,"class","svelte-1oi7i0p"),f(st,"class","svelte-1oi7i0p"),f(nt,"class","svelte-1oi7i0p"),f(z,"class","current-details svelte-1oi7i0p"),f(a,"class","weatherCurrent-data svelte-1oi7i0p"),f(e,"class","weatherCurrent-wrapper svelte-1oi7i0p")},m(t,s){u(t,e,s),p(e,a),p(a,m),p(m,g),p(m,E),p(m,$),p($,w),p(a,y),p(a,D),p(D,P),p(P,b),p(a,I),p(a,x),p(x,V),p(V,j),p(V,C),p(x,N),p(x,M),p(M,T),p(T,_),p(T,k),p(M,A),p(M,S),p(S,H),p(S,J),p(a,K),p(a,z),p(z,B),p(B,O),p(O,q),p(B,F),p(B,Z),p(Z,G),p(z,L),p(z,Q),p(Q,R),p(R,U),p(Q,W),p(Q,X),p(X,Y),p(X,tt),p(z,et),p(z,at),p(at,st),p(st,rt),p(at,ot),p(at,nt),p(nt,ct),p(nt,it)},p(t,[e]){1&e&&d(w,t[0]),2&e&&d(b,t[1]),4&e&&d(C,t[2]),16&e&&d(k,t[4]),8&e&&d(J,t[3]),32&e&&d(G,t[5]),128&e&&d(Y,t[7]),64&e&&d(ct,t[6])},i:v,o:v,d(t){t&&i(e)}}}function j(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,o){function n(t){try{i(s.next(t))}catch(t){o(t)}}function c(t){try{i(s.throw(t))}catch(t){o(t)}}function i(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(n,c)}i((s=s.apply(t,e||[])).next())}))};const r=["January","February","March","April","May","June","July","August","September","October","November","December"];let o,n,c="-",i="-",l="-",h="-",f="-",u="-",p="-",d="-";function v(t){o=t.coords.longitude,n=t.coords.latitude,function(t,e){s(this,void 0,void 0,(function*(){let s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e}&lon=${t}`).then((t=>t.json()));a(6,p=s.properties.timeseries[0].data.instant.details.cloud_area_fraction),a(7,d=s.properties.timeseries[0].data.instant.details.air_temperature)}))}(o,n),function(t,e){s(this,void 0,void 0,(function*(){console.log(`https://geocode.xyz/${t},${e}?geoit=json`);let s=yield fetch(`https://geocode.xyz/${e},${t}?geoit=json`).then((t=>t.json()));console.log(s),a(0,c=s.city)}))}(o,n)}function g(t){E()}function E(){o=28.283333,n=-15.416667}return m((function(){!function(){s(this,void 0,void 0,(function*(){a(5,u=(yield fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((t=>t.json()))).Bz);let t=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));t.shift();let e=new Date,s=new Date(0,0,0),o=1e3,n=0;t.forEach(((t,r)=>{t[1]>n&&(n=t[1]),t[1]{"prediction"in t&&a(6,s=t.prediction)},[r,n,c,i,l,h,s]}class T extends t{constructor(t){super(),e(this,t,M,N,a,{prediction:6})}}function _(t,e,a){const s=t.slice();return s[13]=e[a],s[15]=a,s}function k(t){let e,a,d,m,g;return{c(){e=s("div"),a=s("i"),d=r(),m=s("p"),g=o("No prediction data"),this.h()},l(t){e=n(t,"DIV",{class:!0});var s=c(e);a=n(s,"I",{class:!0}),c(a).forEach(i),d=l(s),m=n(s,"P",{});var r=c(m);g=h(r,"No prediction data"),r.forEach(i),s.forEach(i),this.h()},h(){f(a,"class","fas fa-7x fa-exclamation-triangle"),f(e,"class","no-data svelte-1romtap")},m(t,s){u(t,e,s),p(e,a),p(e,d),p(e,m),p(m,g)},p:v,i:v,o:v,d(t){t&&i(e)}}}function A(t){let e,a,d,v,m,y,D=t[0],P=[];for(let e=0;eE(P[t],1,1,(()=>{P[t]=null}));return{c(){e=s("div"),a=s("h2"),d=o("Predicted"),v=r(),m=s("div");for(let t=0;t{h[o]=null})),$(),r=h[a],r||(r=h[a]=l[a](t),r.c()),w(r,1),r.m(e,null))},i(t){o||(w(r),o=!0)},o(t){E(r),o=!1},d(t){t&&i(e),h[a].d()}}}function J(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,o){function n(t){try{i(s.next(t))}catch(t){o(t)}}function c(t){try{i(s.throw(t))}catch(t){o(t)}}function i(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(n,c)}i((s=s.apply(t,e||[])).next())}))};let r,o,n,c=!1;function i(t,e){return s(this,void 0,void 0,(function*(){let s;c&&(s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e}&lon=${t}`).then((t=>t.json())));let r=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));r.shift();let o=[];r.forEach(((t,e)=>{if("observed"!=t[2]){let e,a,r=new Date(t[0]),n=new Date(0,0,0);c&&s.properties.timeseries.forEach(((t,s)=>{let o=new Date(t.time);Math.abs(o.getTime()-r.getTime())t.json()));e(5,u=s.properties.timeseries[0].data.instant.details.cloud_area_fraction),e(6,p=s.properties.timeseries[0].data.instant.details.air_temperature)}))}(o,n)}function v(t){g()}function g(){o=28.283333,n=-15.416667}return m((function(){!function(){s(this,void 0,void 0,(function*(){e(4,f=(yield fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((t=>t.json()))).Bz);let t=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));t.shift();let a=new Date,s=new Date(0,0,0),o=1e3,n=0;t.forEach(((t,r)=>{t[1]>n&&(n=t[1]),t[1]{"prediction"in t&&e(6,s=t.prediction)},[r,n,c,i,l,h,s]}class _ extends t{constructor(t){super(),a(this,t,j,M,e,{prediction:6})}}function k(t,a,e){const s=t.slice();return s[13]=a[e],s[15]=e,s}function A(t){let a,e,d,m,g;return{c(){a=s("div"),e=s("i"),d=r(),m=s("p"),g=o("No prediction data"),this.h()},l(t){a=n(t,"DIV",{class:!0});var s=c(a);e=n(s,"I",{class:!0}),c(e).forEach(i),d=l(s),m=n(s,"P",{});var r=c(m);g=h(r,"No prediction data"),r.forEach(i),s.forEach(i),this.h()},h(){f(e,"class","fas fa-7x fa-exclamation-triangle"),f(a,"class","no-data svelte-1romtap")},m(t,s){u(t,a,s),p(a,e),p(a,d),p(a,m),p(m,g)},p:v,i:v,o:v,d(t){t&&i(a)}}}function S(t){let a,e,d,v,m,D,y=t[0],P=[];for(let a=0;aE(P[t],1,1,(()=>{P[t]=null}));return{c(){a=s("div"),e=s("h2"),d=o("Predicted"),v=r(),m=s("div");for(let t=0;t{h[o]=null})),w(),r=h[e],r||(r=h[e]=l[e](t),r.c()),$(r,1),r.m(a,null))},i(t){o||($(r),o=!0)},o(t){E(r),o=!1},d(t){t&&i(a),h[e].d()}}}function K(t,a,e){var s=this&&this.__awaiter||function(t,a,e,s){return new(e||(e=Promise))((function(r,o){function n(t){try{i(s.next(t))}catch(t){o(t)}}function c(t){try{i(s.throw(t))}catch(t){o(t)}}function i(t){var a;t.done?r(t.value):(a=t.value,a instanceof e?a:new e((function(t){t(a)}))).then(n,c)}i((s=s.apply(t,a||[])).next())}))};let r,o,n,c=!1;function i(t,a){return s(this,void 0,void 0,(function*(){let s;c&&(s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a}&lon=${t}`).then((t=>t.json())));let r=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));r.shift();let o=[];r.forEach(((t,a)=>{if("observed"!=t[2]){let a,e,r=new Date(t[0]),n=new Date(0,0,0);c&&s.properties.timeseries.forEach(((t,s)=>{let o=new Date(t.time);Math.abs(o.getTime()-r.getTime())=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=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=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(t){Function("r","regeneratorRuntime = r")(n)}}(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function G(t){r=t}function F(){if(!r)throw new Error("Function called outside component initialization");return r}function B(t){F().$$.on_mount.push(t)}var J=[],K=[],M=[],V=[],Y=Promise.resolve(),z=!1;function H(t){M.push(t)}var W=!1,X=new Set;function Q(){if(!W){W=!0;do{for(var t=0;t6&&void 0!==arguments[6]?arguments[6]:[-1],c=r;G(t);var f=e.props||{},s=t.$$={fragment:null,ctx:null,props:a,update:m,not_equal:i,bound:b(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:b(),dirty:u,skip_bound:!1},l=!1;if(s.ctx=n?n(t,f,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return s.ctx&&i(s.ctx[e],s.ctx[e]=r)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](r),l&&pt(t,e)),n})):[],s.update(),l=!0,w(s.before_update),s.fragment=!!o&&o(s.ctx),e.target){if(e.hydrate){var p=T(e.target);s.fragment&&s.fragment.l(p),p.forEach(L)}else s.fragment&&s.fragment.c();e.intro&&ot(t.$$.fragment),st(t,e.target,e.anchor),Q()}G(c)}var vt=function(){function t(){v(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){lt(this,1),this.$destroy=m}},{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)}}])&&d(e.prototype,n),r&&d(e,r),t}(),dt=[];function mt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,r=[];function o(n){if($(t,n)&&(t=n,e)){for(var o=!dt.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:m,u=[i,a];return r.push(u),1===r.length&&(e=n(o)||m),i(t),function(){var t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var yt={};function gt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function bt(t){var e,n,r=t[1].default,o=function(t,e,n,r){if(t){var o=_(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c:function(){e=O("div"),o&&o.c(),this.h()},l:function(t){var n=T(e=q(t,"DIV",{class:!0}));o&&o.l(n),n.forEach(L),this.h()},h:function(){N(e,"class","app-container svelte-lkkhqy")},m:function(t,r){k(t,e,r),o&&o.m(e,null),n=!0},p:function(t,e){var n=u(e,1)[0];o&&o.p&&1&n&&E(o,r,t,t[0],n,null,null)},i:function(t){n||(ot(o,t),n=!0)},o:function(t){it(o,t),n=!1},d:function(t){t&&L(e),o&&o.d(t)}}}function wt(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 xt=function(t){s(n,vt);var e=gt(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,wt,bt,$,{}),r}return n}();function $t(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function _t(t){var e,n,r=t[1].stack+"";return{c:function(){e=O("pre"),n=R(r)},l:function(t){var o=T(e=q(t,"PRE",{}));n=I(o,r),o.forEach(L)},m:function(t,r){k(t,e,r),S(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&U(n,r)},d:function(t){t&&L(e)}}}function Et(t){var e,n,r,o,i,a,c,f,s,l=t[1].message+"";document.title=e=t[0];var p=t[2]&&t[1].stack&&_t(t);return{c:function(){n=P(),r=O("h1"),o=R(t[0]),i=P(),a=O("p"),c=R(l),f=P(),p&&p.c(),s=A(),this.h()},l:function(e){D('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(L),n=C(e);var u=T(r=q(e,"H1",{class:!0}));o=I(u,t[0]),u.forEach(L),i=C(e);var h=T(a=q(e,"P",{class:!0}));c=I(h,l),h.forEach(L),f=C(e),p&&p.l(e),s=A(),this.h()},h:function(){N(r,"class","svelte-jpshsi"),N(a,"class","svelte-jpshsi")},m:function(t,e){k(t,n,e),k(t,r,e),S(r,o),k(t,i,e),k(t,a,e),S(a,c),k(t,f,e),p&&p.m(t,e),k(t,s,e)},p:function(t,n){var r=u(n,1)[0];1&r&&e!==(e=t[0])&&(document.title=e),1&r&&U(o,t[0]),2&r&&l!==(l=t[1].message+"")&&U(c,l),t[2]&&t[1].stack?p?p.p(t,r):((p=_t(t)).c(),p.m(s.parentNode,s)):p&&(p.d(1),p=null)},i:m,o:m,d:function(t){t&&L(n),t&&L(r),t&&L(i),t&&L(a),t&&L(f),p&&p.d(t),t&&L(s)}}}function St(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){s(n,vt);var e=$t(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,St,Et,$,{status:0,error:1}),r}return n}();function Lt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function jt(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n0&&e.slice(1).split("&").forEach((function(e){var r=u(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),o=r[1],i=r[2],a=void 0===i?"":i;"string"==typeof n[o]&&(n[o]=[n[o]]),"object"===t(n[o])?n[o].push(a):n[o]=a})),n}function Vt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Ft))return null;var e=t.pathname.slice(Ft.length);if(""===e&&(e="/"),!Tt.some((function(t){return t.test(e)})))for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=Vt(new URL(t,Xt(document)));return n?(Jt[e.replaceState?"replaceState":"pushState"]({id:Dt},"",t),Wt(n,null,e.noscroll).then((function(){}))):(location.href=t,new Promise((function(t){})))}var oe,ie,ae,ue,ce,fe,se,le,pe,he="undefined"!=typeof __SAPPER__&&__SAPPER__,ve=!1,de=[],me="{}",ye={page:function(t){var e=mt(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:mt(null),session:mt(he&&he.session)};function ge(t,e){var n=t.error;return Object.assign({error:n},e)}function be(t){return Ct(this,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe&&ye.preloading.set(!0),n=te(t),r=ie={},e.next=5,n;case 5:if(i=e.sent,a=i.redirect,r===ie){e.next=9;break}return e.abrupt("return");case 9:if(!a){e.next=14;break}return e.next=12,re(a.location,{replaceState:!0});case 12:e.next=17;break;case 14:return u=i.props,c=i.branch,e.next=17,we(c,u,ge(u,t.page));case 17:case"end":return e.stop()}}),e)})))}function we(t,e,n){return Ct(this,void 0,void 0,o.mark((function r(){return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(ye.page.set(n),ye.preloading.set(!1),!oe){r.next=6;break}oe.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:ye.page.subscribe},preloading:{subscribe:ye.preloading.subscribe},session:ye.session},r.next=9,ae;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=ye.page.notify,oe=new Nt({target:fe,props:e,hydrate:!0});case 13:de=t,me=JSON.stringify(n.query),ve=!0,ce=!1;case 17:case"end":return r.stop()}}),r)})))}function xe(t,e,n,r){if(r!==me)return!0;var o=de[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 $e(t){return Ct(this,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c,f,s,l,p,h,v,d=this;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,i=r.path.split("/").filter(Boolean),a=null,u={error:null,status:200,segments:[i[0]]},c={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(a&&(a.statusCode!==t||a.location!==e))throw new Error("Conflicting redirects");a={statusCode:t,location:e}},error:function(t,e){u.error="string"==typeof e?new Error(e):e,u.status=t}},ae||(f=function(){return{}},ae=he.preloaded[0]||f.call(c,{host:r.host,path:r.path,query:r.query,params:{}},ue)),l=1,e.prev=7,p=JSON.stringify(r.query),h=n.pattern.exec(r.path),v=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return Ct(d,void 0,void 0,o.mark((function a(){var f,s,d,m,y,g;return o.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(f=i[n],xe(n,f,h,p)&&(v=!0),u.segments[l]=i[n+1],e){o.next=5;break}return o.abrupt("return",{segment:f});case 5:if(s=l++,ce||v||!de[n]||de[n].part!==e.i){o.next=8;break}return o.abrupt("return",de[n]);case 8:return v=!1,o.next=11,qt[e.i].js();case 11:if(d=o.sent,m=d.default,y=d.preload,!ve&&he.preloaded[n+1]){o.next=25;break}if(!y){o.next=21;break}return o.next=18,y.call(c,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},ue);case 18:o.t0=o.sent,o.next=22;break;case 21:o.t0={};case 22:g=o.t0,o.next=26;break;case 25:g=he.preloaded[n+1];case 26:return o.abrupt("return",u["level".concat(s)]={component:m,props:g,segment:f,match:h,part:e.i});case 27:case"end":return o.stop()}}),a)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),u.error=e.t0,u.status=500,s=[];case 21:return e.abrupt("return",{redirect:a,props:u,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}ye.session.subscribe((function(t){return Ct(void 0,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ue=t,ve){e.next=3;break}return e.abrupt("return");case 3:return ce=!0,n=Vt(new URL(location.href)),r=ie={},e.next=8,$e(n);case 8:if(i=e.sent,a=i.redirect,u=i.props,c=i.branch,r===ie){e.next=14;break}return e.abrupt("return");case 14:if(!a){e.next=19;break}return e.next=17,re(a.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,we(c,u,ge(u,n.page));case 21:case"end":return e.stop()}}),e)})))})),se={target:document.querySelector(".app")},le=se.target,fe=le,pe=he.baseUrl,Ft=pe,Bt=be,"scrollRestoration"in Jt&&(Jt.scrollRestoration="manual"),addEventListener("beforeunload",(function(){Jt.scrollRestoration="auto"})),addEventListener("load",(function(){Jt.scrollRestoration="manual"})),addEventListener("click",Yt),addEventListener("popstate",Ht),addEventListener("touchstart",ee),addEventListener("mousemove",ne),he.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=he.session,i=he.preloaded,a=he.status,u=he.error;ae||(ae=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:ae},level1:{props:{status:a,error:u},component:kt},segments:i},f=Mt(r);we([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;Jt.replaceState({id:Gt},"",n);var r=Vt(new URL(location.href));if(r)return Wt(r,Gt,!0,e)}));export{ct as A,ft as B,st as C,lt as D,j as E,D as F,vt as S,s as _,c as a,p as b,v as c,l as d,O as e,P as f,q as g,T as h,ht as i,L as j,C as k,I as l,N as m,k as n,S as o,u as p,U as q,m as r,$ as s,R as t,B as u,o as v,nt as w,it as x,rt as y,ot as z}; + +import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file diff --git a/client/legacy/client.aaaa1a17.js b/client/legacy/client.aaaa1a17.js deleted file mode 100644 index d42f8be..0000000 --- a/client/legacy/client.aaaa1a17.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})(e)}var e,n,r,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=p;return function(o,i){if(r===v)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}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===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=v;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?d:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,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 p="suspendedStart",h="suspendedYield",v="executing",d="completed",m={};function y(){}function g(){}function b(){}var w={};w[a]=function(){return this};var x=Object.getPrototypeOf,$=x&&x(x(R([])));$&&$!==r&&o.call($,a)&&(w=$);var _=b.prototype=y.prototype=Object.create(w);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,p=s.value;return p&&"object"===t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(p).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=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=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=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(t){Function("r","regeneratorRuntime = r")(n)}}(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function G(t){r=t}function F(){if(!r)throw new Error("Function called outside component initialization");return r}function B(t){F().$$.on_mount.push(t)}var J=[],K=[],M=[],V=[],Y=Promise.resolve(),z=!1;function H(t){M.push(t)}var W=!1,X=new Set;function Q(){if(!W){W=!0;do{for(var t=0;t6&&void 0!==arguments[6]?arguments[6]:[-1],c=r;G(t);var f=e.props||{},s=t.$$={fragment:null,ctx:null,props:a,update:m,not_equal:i,bound:b(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:b(),dirty:u,skip_bound:!1},l=!1;if(s.ctx=n?n(t,f,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return s.ctx&&i(s.ctx[e],s.ctx[e]=r)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](r),l&&pt(t,e)),n})):[],s.update(),l=!0,w(s.before_update),s.fragment=!!o&&o(s.ctx),e.target){if(e.hydrate){var p=T(e.target);s.fragment&&s.fragment.l(p),p.forEach(L)}else s.fragment&&s.fragment.c();e.intro&&ot(t.$$.fragment),st(t,e.target,e.anchor),Q()}G(c)}var vt=function(){function t(){v(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){lt(this,1),this.$destroy=m}},{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)}}])&&d(e.prototype,n),r&&d(e,r),t}(),dt=[];function mt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,r=[];function o(n){if($(t,n)&&(t=n,e)){for(var o=!dt.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:m,u=[i,a];return r.push(u),1===r.length&&(e=n(o)||m),i(t),function(){var t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var yt={};function gt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function bt(t){var e,n,r=t[1].default,o=function(t,e,n,r){if(t){var o=_(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c:function(){e=O("div"),o&&o.c(),this.h()},l:function(t){var n=T(e=q(t,"DIV",{class:!0}));o&&o.l(n),n.forEach(L),this.h()},h:function(){N(e,"class","app-container svelte-lkkhqy")},m:function(t,r){k(t,e,r),o&&o.m(e,null),n=!0},p:function(t,e){var n=u(e,1)[0];o&&o.p&&1&n&&E(o,r,t,t[0],n,null,null)},i:function(t){n||(ot(o,t),n=!0)},o:function(t){it(o,t),n=!1},d:function(t){t&&L(e),o&&o.d(t)}}}function wt(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 xt=function(t){s(n,vt);var e=gt(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,wt,bt,$,{}),r}return n}();function $t(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function _t(t){var e,n,r=t[1].stack+"";return{c:function(){e=O("pre"),n=R(r)},l:function(t){var o=T(e=q(t,"PRE",{}));n=I(o,r),o.forEach(L)},m:function(t,r){k(t,e,r),S(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&U(n,r)},d:function(t){t&&L(e)}}}function Et(t){var e,n,r,o,i,a,c,f,s,l=t[1].message+"";document.title=e=t[0];var p=t[2]&&t[1].stack&&_t(t);return{c:function(){n=P(),r=O("h1"),o=R(t[0]),i=P(),a=O("p"),c=R(l),f=P(),p&&p.c(),s=A(),this.h()},l:function(e){D('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(L),n=C(e);var u=T(r=q(e,"H1",{class:!0}));o=I(u,t[0]),u.forEach(L),i=C(e);var h=T(a=q(e,"P",{class:!0}));c=I(h,l),h.forEach(L),f=C(e),p&&p.l(e),s=A(),this.h()},h:function(){N(r,"class","svelte-jpshsi"),N(a,"class","svelte-jpshsi")},m:function(t,e){k(t,n,e),k(t,r,e),S(r,o),k(t,i,e),k(t,a,e),S(a,c),k(t,f,e),p&&p.m(t,e),k(t,s,e)},p:function(t,n){var r=u(n,1)[0];1&r&&e!==(e=t[0])&&(document.title=e),1&r&&U(o,t[0]),2&r&&l!==(l=t[1].message+"")&&U(c,l),t[2]&&t[1].stack?p?p.p(t,r):((p=_t(t)).c(),p.m(s.parentNode,s)):p&&(p.d(1),p=null)},i:m,o:m,d:function(t){t&&L(n),t&&L(r),t&&L(i),t&&L(a),t&&L(f),p&&p.d(t),t&&L(s)}}}function St(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){s(n,vt);var e=$t(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,St,Et,$,{status:0,error:1}),r}return n}();function Lt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function jt(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n0&&e.slice(1).split("&").forEach((function(e){var r=u(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),o=r[1],i=r[2],a=void 0===i?"":i;"string"==typeof n[o]&&(n[o]=[n[o]]),"object"===t(n[o])?n[o].push(a):n[o]=a})),n}function Vt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Ft))return null;var e=t.pathname.slice(Ft.length);if(""===e&&(e="/"),!Tt.some((function(t){return t.test(e)})))for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=Vt(new URL(t,Xt(document)));return n?(Jt[e.replaceState?"replaceState":"pushState"]({id:Dt},"",t),Wt(n,null,e.noscroll).then((function(){}))):(location.href=t,new Promise((function(t){})))}var oe,ie,ae,ue,ce,fe,se,le,pe,he="undefined"!=typeof __SAPPER__&&__SAPPER__,ve=!1,de=[],me="{}",ye={page:function(t){var e=mt(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:mt(null),session:mt(he&&he.session)};function ge(t,e){var n=t.error;return Object.assign({error:n},e)}function be(t){return Ct(this,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe&&ye.preloading.set(!0),n=te(t),r=ie={},e.next=5,n;case 5:if(i=e.sent,a=i.redirect,r===ie){e.next=9;break}return e.abrupt("return");case 9:if(!a){e.next=14;break}return e.next=12,re(a.location,{replaceState:!0});case 12:e.next=17;break;case 14:return u=i.props,c=i.branch,e.next=17,we(c,u,ge(u,t.page));case 17:case"end":return e.stop()}}),e)})))}function we(t,e,n){return Ct(this,void 0,void 0,o.mark((function r(){return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(ye.page.set(n),ye.preloading.set(!1),!oe){r.next=6;break}oe.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:ye.page.subscribe},preloading:{subscribe:ye.preloading.subscribe},session:ye.session},r.next=9,ae;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=ye.page.notify,oe=new Nt({target:fe,props:e,hydrate:!0});case 13:de=t,me=JSON.stringify(n.query),ve=!0,ce=!1;case 17:case"end":return r.stop()}}),r)})))}function xe(t,e,n,r){if(r!==me)return!0;var o=de[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 $e(t){return Ct(this,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c,f,s,l,p,h,v,d=this;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,i=r.path.split("/").filter(Boolean),a=null,u={error:null,status:200,segments:[i[0]]},c={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(a&&(a.statusCode!==t||a.location!==e))throw new Error("Conflicting redirects");a={statusCode:t,location:e}},error:function(t,e){u.error="string"==typeof e?new Error(e):e,u.status=t}},ae||(f=function(){return{}},ae=he.preloaded[0]||f.call(c,{host:r.host,path:r.path,query:r.query,params:{}},ue)),l=1,e.prev=7,p=JSON.stringify(r.query),h=n.pattern.exec(r.path),v=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return Ct(d,void 0,void 0,o.mark((function a(){var f,s,d,m,y,g;return o.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(f=i[n],xe(n,f,h,p)&&(v=!0),u.segments[l]=i[n+1],e){o.next=5;break}return o.abrupt("return",{segment:f});case 5:if(s=l++,ce||v||!de[n]||de[n].part!==e.i){o.next=8;break}return o.abrupt("return",de[n]);case 8:return v=!1,o.next=11,qt[e.i].js();case 11:if(d=o.sent,m=d.default,y=d.preload,!ve&&he.preloaded[n+1]){o.next=25;break}if(!y){o.next=21;break}return o.next=18,y.call(c,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},ue);case 18:o.t0=o.sent,o.next=22;break;case 21:o.t0={};case 22:g=o.t0,o.next=26;break;case 25:g=he.preloaded[n+1];case 26:return o.abrupt("return",u["level".concat(s)]={component:m,props:g,segment:f,match:h,part:e.i});case 27:case"end":return o.stop()}}),a)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),u.error=e.t0,u.status=500,s=[];case 21:return e.abrupt("return",{redirect:a,props:u,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}ye.session.subscribe((function(t){return Ct(void 0,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ue=t,ve){e.next=3;break}return e.abrupt("return");case 3:return ce=!0,n=Vt(new URL(location.href)),r=ie={},e.next=8,$e(n);case 8:if(i=e.sent,a=i.redirect,u=i.props,c=i.branch,r===ie){e.next=14;break}return e.abrupt("return");case 14:if(!a){e.next=19;break}return e.next=17,re(a.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,we(c,u,ge(u,n.page));case 21:case"end":return e.stop()}}),e)})))})),se={target:document.querySelector(".app")},le=se.target,fe=le,pe=he.baseUrl,Ft=pe,Bt=be,"scrollRestoration"in Jt&&(Jt.scrollRestoration="manual"),addEventListener("beforeunload",(function(){Jt.scrollRestoration="auto"})),addEventListener("load",(function(){Jt.scrollRestoration="manual"})),addEventListener("click",Yt),addEventListener("popstate",Ht),addEventListener("touchstart",ee),addEventListener("mousemove",ne),he.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=he.session,i=he.preloaded,a=he.status,u=he.error;ae||(ae=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:ae},level1:{props:{status:a,error:u},component:kt},segments:i},f=Mt(r);we([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;Jt.replaceState({id:Gt},"",n);var r=Vt(new URL(location.href));if(r)return Wt(r,Gt,!0,e)}));export{ct as A,ft as B,st as C,lt as D,j as E,D as F,vt as S,s as _,c as a,p as b,v as c,l as d,O as e,P as f,q as g,T as h,ht as i,L as j,C as k,I as l,N as m,k as n,S as o,u as p,U as q,m as r,$ as s,R as t,B as u,o as v,nt as w,it as x,rt as y,ot as z}; - -import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file diff --git a/client/legacy/index.3620d9f2.js b/client/legacy/index.3620d9f2.js new file mode 100644 index 0000000..0f507e6 --- /dev/null +++ b/client/legacy/index.3620d9f2.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,S as i,e as s,f as u,t as f,g as l,h,j as v,k as p,l as d,m,n as g,o as y,p as E,q as w,r as D,u as P,v as x,w as $,x as b,y as I,z as R,A as V,B as j,C,D as k,E as N,F as M}from"./client.8f52d8e6.js";function T(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 Date.prototype.toString.call(Reflect.construct(Date,[],(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 S(t){var n,e,r,a,c,o,i,P,x,$,b,I,R,V,j,C,k,N,M,T,S,_,A,H,J,K,B,z,O,F,q,Z,G,L,Q,U,W,X,Y,tt,nt,et,rt,at,ct,ot,it,st,ut;return{c:function(){n=s("div"),e=s("div"),r=s("div"),a=s("i"),c=u(),o=s("h1"),i=f(t[0]),P=u(),x=s("div"),$=s("p"),b=f(t[1]),I=u(),R=s("div"),V=s("h2"),j=f("KP "),C=f(t[2]),k=u(),N=s("p"),M=s("span"),T=f("↑ KP "),S=f(t[4]),_=u(),A=s("span"),H=f("↓ KP "),J=f(t[3]),K=u(),B=s("div"),z=s("div"),O=s("p"),F=f("BZ"),q=u(),Z=s("p"),G=f(t[5]),L=u(),Q=s("div"),U=s("p"),W=f("Temp"),X=u(),Y=s("p"),tt=f(t[7]),nt=f("°C"),et=u(),rt=s("div"),at=s("p"),ct=f("Clouds"),ot=u(),it=s("p"),st=f(t[6]),ut=f("%"),this.h()},l:function(s){n=l(s,"DIV",{class:!0});var u=h(n);e=l(u,"DIV",{class:!0});var f=h(e);r=l(f,"DIV",{class:!0});var m=h(r);a=l(m,"I",{class:!0}),h(a).forEach(v),c=p(m),o=l(m,"H1",{class:!0});var g=h(o);i=d(g,t[0]),g.forEach(v),m.forEach(v),P=p(f),x=l(f,"DIV",{class:!0});var y=h(x);$=l(y,"P",{});var E=h($);b=d(E,t[1]),E.forEach(v),y.forEach(v),I=p(f),R=l(f,"DIV",{class:!0});var w=h(R);V=l(w,"H2",{class:!0});var D=h(V);j=d(D,"KP "),C=d(D,t[2]),D.forEach(v),k=p(w),N=l(w,"P",{});var ft=h(N);M=l(ft,"SPAN",{className:!0});var lt=h(M);T=d(lt,"↑ KP "),S=d(lt,t[4]),lt.forEach(v),_=p(ft),A=l(ft,"SPAN",{className:!0});var ht=h(A);H=d(ht,"↓ KP "),J=d(ht,t[3]),ht.forEach(v),ft.forEach(v),w.forEach(v),K=p(f),B=l(f,"DIV",{class:!0});var vt=h(B);z=l(vt,"DIV",{});var pt=h(z);O=l(pt,"P",{class:!0});var dt=h(O);F=d(dt,"BZ"),dt.forEach(v),q=p(pt),Z=l(pt,"P",{class:!0});var mt=h(Z);G=d(mt,t[5]),mt.forEach(v),pt.forEach(v),L=p(vt),Q=l(vt,"DIV",{});var gt=h(Q);U=l(gt,"P",{class:!0});var yt=h(U);W=d(yt,"Temp"),yt.forEach(v),X=p(gt),Y=l(gt,"P",{class:!0});var Et=h(Y);tt=d(Et,t[7]),nt=d(Et,"°C"),Et.forEach(v),gt.forEach(v),et=p(vt),rt=l(vt,"DIV",{});var wt=h(rt);at=l(wt,"P",{class:!0});var Dt=h(at);ct=d(Dt,"Clouds"),Dt.forEach(v),ot=p(wt),it=l(wt,"P",{class:!0});var Pt=h(it);st=d(Pt,t[6]),ut=d(Pt,"%"),Pt.forEach(v),wt.forEach(v),vt.forEach(v),f.forEach(v),u.forEach(v),this.h()},h:function(){m(a,"class","symbol fas fa-map-marker-alt svelte-1oi7i0p"),m(o,"class","svelte-1oi7i0p"),m(r,"class","weatherCurrent-data-location svelte-1oi7i0p"),m(x,"class","weatherCurrent-data-date"),m(V,"class","svelte-1oi7i0p"),m(M,"classname","pr-2"),m(A,"classname","pl-2"),m(R,"class","weatherCurrent-data-kp svelte-1oi7i0p"),m(O,"class","svelte-1oi7i0p"),m(Z,"class","svelte-1oi7i0p"),m(U,"class","svelte-1oi7i0p"),m(Y,"class","svelte-1oi7i0p"),m(at,"class","svelte-1oi7i0p"),m(it,"class","svelte-1oi7i0p"),m(B,"class","current-details svelte-1oi7i0p"),m(e,"class","weatherCurrent-data svelte-1oi7i0p"),m(n,"class","weatherCurrent-wrapper svelte-1oi7i0p")},m:function(t,s){g(t,n,s),y(n,e),y(e,r),y(r,a),y(r,c),y(r,o),y(o,i),y(e,P),y(e,x),y(x,$),y($,b),y(e,I),y(e,R),y(R,V),y(V,j),y(V,C),y(R,k),y(R,N),y(N,M),y(M,T),y(M,S),y(N,_),y(N,A),y(A,H),y(A,J),y(e,K),y(e,B),y(B,z),y(z,O),y(O,F),y(z,q),y(z,Z),y(Z,G),y(B,L),y(B,Q),y(Q,U),y(U,W),y(Q,X),y(Q,Y),y(Y,tt),y(Y,nt),y(B,et),y(B,rt),y(rt,at),y(at,ct),y(rt,ot),y(rt,it),y(it,st),y(it,ut)},p:function(t,n){var e=E(n,1)[0];1&e&&w(i,t[0]),2&e&&w(b,t[1]),4&e&&w(C,t[2]),16&e&&w(S,t[4]),8&e&&w(J,t[3]),32&e&&w(G,t[5]),128&e&&w(tt,t[7]),64&e&&w(st,t[6])},i:D,o:D,d:function(t){t&&v(n)}}}function _(t,n,e){var r,a,c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(a,c){function o(t){try{s(r.next(t))}catch(t){c(t)}}function i(t){try{s(r.throw(t))}catch(t){c(t)}}function s(t){var n;t.done?a(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,i)}s((r=r.apply(t,n||[])).next())}))},o=["January","February","March","April","May","June","July","August","September","October","November","December"],i="-",s="-",u="-",f="-",l="-",h="-",v="-",p="-";function d(t){r=t.coords.longitude,a=t.coords.latitude,function(t,n){c(this,void 0,void 0,x.mark((function r(){var a;return x.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch("https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=".concat(n,"&lon=").concat(t)).then((function(t){return t.json()}));case 2:a=r.sent,e(6,v=a.properties.timeseries[0].data.instant.details.cloud_area_fraction),e(7,p=a.properties.timeseries[0].data.instant.details.air_temperature);case 5:case"end":return r.stop()}}),r)})))}(r,a),function(t,n){c(this,void 0,void 0,x.mark((function r(){var a;return x.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("https://geocode.xyz/".concat(t,",").concat(n,"?geoit=json")),r.next=3,fetch("https://geocode.xyz/".concat(n,",").concat(t,"?geoit=json")).then((function(t){return t.json()}));case 3:a=r.sent,console.log(a),e(0,i=a.city);case 6:case"end":return r.stop()}}),r)})))}(r,a)}function m(t){g()}function g(){r=28.283333,a=-15.416667}return P((function(){!function(){c(this,void 0,void 0,x.mark((function t(){var n,r,a,c,i;return x.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((function(t){return t.json()}));case 3:return t.t1=h=t.sent.Bz,(0,t.t0)(5,t.t1),t.next=7,fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((function(t){return t.json()}));case 7:(n=t.sent).shift(),r=new Date,a=new Date(0,0,0),c=1e3,i=0,n.forEach((function(t,n){t[1]>i&&(i=t[1]),t[1]h&&(h=t[1]),t[1] Aurora data

The earth

-

KP -

↑ KP - ↓ KP -

BZ

-

Temp

-°C

Clouds

-%

No prediction data

\ No newline at end of file + Aurora data

-

-

KP -

↑ KP - ↓ KP -

BZ

-

Temp

-°C

Clouds

-%

No prediction data

\ No newline at end of file diff --git a/manifest.json b/manifest.json index d2499f0..a4026e3 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "background_color": "#464a47", "theme_color": "#5ac775", "name": "Aurora Data", - "short_name": "aurora data", + "short_name": "Aurora Data", "display": "fullscreen", "start_url": "/Aurora-data/", "orientation": "portrait", diff --git a/service-worker-index.html b/service-worker-index.html index 598725d..1fd053a 100644 --- a/service-worker-index.html +++ b/service-worker-index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/service-worker.js b/service-worker.js index 2a8116c..e398e1b 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -!function(){"use strict";const e=1602675272756,t=[{pattern:/^\/$/}],s="cache"+e,a=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),n=["/client/inject_styles.5607aec6.js","/client/index.c01a634b.js","/client/client.df220531.js"].map((e=>"/Aurora-data"+e)).concat(a),c=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(n))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const a=new URL(s.request.url);a.protocol.startsWith("http")&&(a.hostname===self.location.hostname&&a.port!==self.location.port||(a.host===self.location.host&&c.has(a.pathname)?s.respondWith(caches.match(s.request)):a.origin===self.origin&&t.find((e=>e.pattern.test(a.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open("offline"+e).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const a=await e.match(s.request);if(a)return a;throw t}})))))}))}(); +!function(){"use strict";const e=1602676878888,t=[{pattern:/^\/$/}],s="cache"+e,a=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),n=["/client/inject_styles.5607aec6.js","/client/index.98d274eb.js","/client/client.cead19b7.js"].map((e=>"/Aurora-data"+e)).concat(a),c=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(n))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const a=new URL(s.request.url);a.protocol.startsWith("http")&&(a.hostname===self.location.hostname&&a.port!==self.location.port||(a.host===self.location.host&&c.has(a.pathname)?s.respondWith(caches.match(s.request)):a.origin===self.origin&&t.find((e=>e.pattern.test(a.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open("offline"+e).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const a=await e.match(s.request);if(a)return a;throw t}})))))}))}(); -- cgit v1.2.3