diff --git a/docs/_app/manifest.json b/docs/_app/manifest.json index 83a65120d..539381764 100644 --- a/docs/_app/manifest.json +++ b/docs/_app/manifest.json @@ -1,6 +1,6 @@ { ".svelte-kit/runtime/client/start.js": { - "file": "start-a4c4a10a.js", + "file": "start-d23075dc.js", "src": ".svelte-kit/runtime/client/start.js", "isEntry": true, "imports": [ @@ -13,7 +13,7 @@ ] }, "src/routes/__layout.svelte": { - "file": "pages/__layout.svelte-b87d0c05.js", + "file": "pages/__layout.svelte-6869b5a4.js", "src": "src/routes/__layout.svelte", "isEntry": true, "isDynamicEntry": true, diff --git a/docs/_app/pages/__layout.svelte-6869b5a4.js b/docs/_app/pages/__layout.svelte-6869b5a4.js new file mode 100644 index 000000000..f9758aa21 --- /dev/null +++ b/docs/_app/pages/__layout.svelte-6869b5a4.js @@ -0,0 +1 @@ +import{S as Q,i as W,s as Z,F as x,G as ee,e as v,c as _,a as r,d as s,H as se,b as o,f as w,g as y,I as d,J as j,K as te,L as U,k as P,M as X,m as q,N as le,O as ae,P as oe,q as re,o as ie}from"../chunks/vendor-dedc54d0.js";function Y(b){let t,m,p,a,h;return{c(){t=v("button"),m=v("span"),p=v("ion-icon"),this.h()},l(i){t=_(i,"BUTTON",{class:!0,style:!0});var n=r(t);m=_(n,"SPAN",{class:!0});var g=r(m);p=_(g,"ION-ICON",{name:!0}),r(p).forEach(s),g.forEach(s),n.forEach(s),this.h()},h(){se(p,"name","arrow-up-outline"),o(m,"class","icon is-small"),o(t,"class","button level-item is-hidden-mobile"),w(t,"pointer-events","auto")},m(i,n){y(i,t,n),d(t,m),d(m,p),a||(h=j(t,"click",ce),a=!0)},p:te,d(i){i&&s(t),a=!1,h()}}}function ne(b){let t=!1,m=()=>{t=!1},p,a,h,i,n,g,T,D,N,$,c,O,E,V,S,I,k,A,F;x(b[3]);const B=b[2].default,u=ee(B,b,b[1],null);let l=b[0]>100&&Y();return{c(){a=v("div"),h=v("div"),i=v("div"),n=v("a"),g=v("span"),T=U("svg"),D=U("path"),N=P(),u&&u.c(),$=P(),c=v("footer"),O=v("div"),E=v("div"),V=v("div"),S=P(),I=v("div"),l&&l.c(),this.h()},l(e){a=_(e,"DIV",{class:!0,style:!0});var f=r(a);h=_(f,"DIV",{class:!0});var M=r(h);i=_(M,"DIV",{class:!0});var z=r(i);n=_(z,"A",{href:!0});var G=r(n);g=_(G,"SPAN",{class:!0});var H=r(g);T=X(H,"svg",{xmlns:!0,viewBox:!0});var J=r(T);D=X(J,"path",{d:!0}),r(D).forEach(s),J.forEach(s),H.forEach(s),G.forEach(s),z.forEach(s),M.forEach(s),f.forEach(s),N=q(e),u&&u.l(e),$=q(e),c=_(e,"FOOTER",{class:!0,style:!0});var K=r(c);O=_(K,"DIV",{class:!0});var L=r(O);E=_(L,"DIV",{class:!0});var C=r(E);V=_(C,"DIV",{class:!0}),r(V).forEach(s),S=q(C),I=_(C,"DIV",{class:!0});var R=r(I);l&&l.l(R),R.forEach(s),C.forEach(s),L.forEach(s),K.forEach(s),this.h()},h(){o(D,"d","M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 003.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 01-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0025.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 015-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 01112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 015 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 004-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"),o(T,"xmlns","http://www.w3.org/2000/svg"),o(T,"viewBox","0 0 512 512"),o(g,"class","icon"),o(n,"href","https://github.com/iptv-org/api"),o(i,"class","navbar-item"),o(h,"class","navbar-end"),o(a,"class","navbar"),w(a,"background-color","transparent"),o(V,"class","level-left"),o(I,"class","level-right"),o(E,"class","level"),o(O,"class","content"),o(c,"class","footer"),w(c,"background-color","transparent"),w(c,"position","fixed"),w(c,"bottom","0"),w(c,"width","100%"),w(c,"padding","3rem 1.5rem"),w(c,"pointer-events","none")},m(e,f){y(e,a,f),d(a,h),d(h,i),d(i,n),d(n,g),d(g,T),d(T,D),y(e,N,f),u&&u.m(e,f),y(e,$,f),y(e,c,f),d(c,O),d(O,E),d(E,V),d(E,S),d(E,I),l&&l.m(I,null),k=!0,A||(F=j(window,"scroll",()=>{t=!0,clearTimeout(p),p=setTimeout(m,100),b[3]()}),A=!0)},p(e,[f]){f&1&&!t&&(t=!0,clearTimeout(p),scrollTo(window.pageXOffset,e[0]),p=setTimeout(m,100)),u&&u.p&&(!k||f&2)&&le(u,B,e,e[1],k?oe(B,e[1],f,null):ae(e[1]),null),e[0]>100?l?l.p(e,f):(l=Y(),l.c(),l.m(I,null)):l&&(l.d(1),l=null)},i(e){k||(re(u,e),k=!0)},o(e){ie(u,e),k=!1},d(e){e&&s(a),e&&s(N),u&&u.d(e),e&&s($),e&&s(c),l&&l.d(),A=!1,F()}}}function ce(b){document.body.scrollTop=0,document.documentElement.scrollTop=0}function ue(b,t,m){let{$$slots:p={},$$scope:a}=t,h=0;function i(){m(0,h=window.pageYOffset)}return b.$$set=n=>{"$$scope"in n&&m(1,a=n.$$scope)},[h,a,p,i]}class de extends Q{constructor(t){super();W(this,t,ue,ne,Z,{})}}export{de as default}; diff --git a/docs/_app/pages/__layout.svelte-b87d0c05.js b/docs/_app/pages/__layout.svelte-b87d0c05.js deleted file mode 100644 index b0a762307..000000000 --- a/docs/_app/pages/__layout.svelte-b87d0c05.js +++ /dev/null @@ -1 +0,0 @@ -import{S as Q,i as W,s as Z,F as x,G as ee,e as v,c as _,a as r,d as s,H as se,b as o,f as w,g as y,I as d,J as j,K as te,L as U,k as P,M as X,m as q,N as le,O as ae,P as oe,q as re,o as ne}from"../chunks/vendor-dedc54d0.js";function Y(b){let t,m,p,a,h;return{c(){t=v("button"),m=v("span"),p=v("ion-icon"),this.h()},l(n){t=_(n,"BUTTON",{class:!0,style:!0});var i=r(t);m=_(i,"SPAN",{class:!0});var g=r(m);p=_(g,"ION-ICON",{name:!0}),r(p).forEach(s),g.forEach(s),i.forEach(s),this.h()},h(){se(p,"name","arrow-up-outline"),o(m,"class","icon is-small"),o(t,"class","button level-item is-hidden-mobile"),w(t,"pointer-events","auto")},m(n,i){y(n,t,i),d(t,m),d(m,p),a||(h=j(t,"click",ce),a=!0)},p:te,d(n){n&&s(t),a=!1,h()}}}function ie(b){let t=!1,m=()=>{t=!1},p,a,h,n,i,g,T,D,N,$,c,O,E,V,S,I,k,A,F;x(b[3]);const B=b[2].default,u=ee(B,b,b[1],null);let l=b[0]>100&&Y();return{c(){a=v("div"),h=v("div"),n=v("div"),i=v("a"),g=v("span"),T=U("svg"),D=U("path"),N=P(),u&&u.c(),$=P(),c=v("footer"),O=v("div"),E=v("div"),V=v("div"),S=P(),I=v("div"),l&&l.c(),this.h()},l(e){a=_(e,"DIV",{class:!0,style:!0});var f=r(a);h=_(f,"DIV",{class:!0});var M=r(h);n=_(M,"DIV",{class:!0});var z=r(n);i=_(z,"A",{href:!0});var G=r(i);g=_(G,"SPAN",{class:!0});var H=r(g);T=X(H,"svg",{xmlns:!0,viewBox:!0});var J=r(T);D=X(J,"path",{d:!0}),r(D).forEach(s),J.forEach(s),H.forEach(s),G.forEach(s),z.forEach(s),M.forEach(s),f.forEach(s),N=q(e),u&&u.l(e),$=q(e),c=_(e,"FOOTER",{class:!0,style:!0});var K=r(c);O=_(K,"DIV",{class:!0});var L=r(O);E=_(L,"DIV",{class:!0});var C=r(E);V=_(C,"DIV",{class:!0}),r(V).forEach(s),S=q(C),I=_(C,"DIV",{class:!0});var R=r(I);l&&l.l(R),R.forEach(s),C.forEach(s),L.forEach(s),K.forEach(s),this.h()},h(){o(D,"d","M256 32C132.3 32 32 134.9 32 261.7c0 101.5 64.2 187.5 153.2 217.9a17.56 17.56 0 003.8.4c8.3 0 11.5-6.1 11.5-11.4 0-5.5-.2-19.9-.3-39.1a102.4 102.4 0 01-22.6 2.7c-43.1 0-52.9-33.5-52.9-33.5-10.2-26.5-24.9-33.6-24.9-33.6-19.5-13.7-.1-14.1 1.4-14.1h.1c22.5 2 34.3 23.8 34.3 23.8 11.2 19.6 26.2 25.1 39.6 25.1a63 63 0 0025.6-6c2-14.8 7.8-24.9 14.2-30.7-49.7-5.8-102-25.5-102-113.5 0-25.1 8.7-45.6 23-61.6-2.3-5.8-10-29.2 2.2-60.8a18.64 18.64 0 015-.5c8.1 0 26.4 3.1 56.6 24.1a208.21 208.21 0 01112.2 0c30.2-21 48.5-24.1 56.6-24.1a18.64 18.64 0 015 .5c12.2 31.6 4.5 55 2.2 60.8 14.3 16.1 23 36.6 23 61.6 0 88.2-52.4 107.6-102.3 113.3 8 7.1 15.2 21.1 15.2 42.5 0 30.7-.3 55.5-.3 63 0 5.4 3.1 11.5 11.4 11.5a19.35 19.35 0 004-.4C415.9 449.2 480 363.1 480 261.7 480 134.9 379.7 32 256 32z"),o(T,"xmlns","http://www.w3.org/2000/svg"),o(T,"viewBox","0 0 512 512"),o(g,"class","icon"),o(i,"href","https://github.com/iptv-org/database"),o(n,"class","navbar-item"),o(h,"class","navbar-end"),o(a,"class","navbar"),w(a,"background-color","transparent"),o(V,"class","level-left"),o(I,"class","level-right"),o(E,"class","level"),o(O,"class","content"),o(c,"class","footer"),w(c,"background-color","transparent"),w(c,"position","fixed"),w(c,"bottom","0"),w(c,"width","100%"),w(c,"padding","3rem 1.5rem"),w(c,"pointer-events","none")},m(e,f){y(e,a,f),d(a,h),d(h,n),d(n,i),d(i,g),d(g,T),d(T,D),y(e,N,f),u&&u.m(e,f),y(e,$,f),y(e,c,f),d(c,O),d(O,E),d(E,V),d(E,S),d(E,I),l&&l.m(I,null),k=!0,A||(F=j(window,"scroll",()=>{t=!0,clearTimeout(p),p=setTimeout(m,100),b[3]()}),A=!0)},p(e,[f]){f&1&&!t&&(t=!0,clearTimeout(p),scrollTo(window.pageXOffset,e[0]),p=setTimeout(m,100)),u&&u.p&&(!k||f&2)&&le(u,B,e,e[1],k?oe(B,e[1],f,null):ae(e[1]),null),e[0]>100?l?l.p(e,f):(l=Y(),l.c(),l.m(I,null)):l&&(l.d(1),l=null)},i(e){k||(re(u,e),k=!0)},o(e){ne(u,e),k=!1},d(e){e&&s(a),e&&s(N),u&&u.d(e),e&&s($),e&&s(c),l&&l.d(),A=!1,F()}}}function ce(b){document.body.scrollTop=0,document.documentElement.scrollTop=0}function ue(b,t,m){let{$$slots:p={},$$scope:a}=t,h=0;function n(){m(0,h=window.pageYOffset)}return b.$$set=i=>{"$$scope"in i&&m(1,a=i.$$scope)},[h,a,p,n]}class de extends Q{constructor(t){super();W(this,t,ue,ie,Z,{})}}export{de as default}; diff --git a/docs/_app/start-a4c4a10a.js b/docs/_app/start-d23075dc.js similarity index 99% rename from docs/_app/start-a4c4a10a.js rename to docs/_app/start-d23075dc.js index c28a98d76..c50c97d2a 100644 --- a/docs/_app/start-a4c4a10a.js +++ b/docs/_app/start-d23075dc.js @@ -1 +1 @@ -var me=Object.defineProperty,we=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var se=(i,e,t)=>e in i?me(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,w=(i,e)=>{for(var t in e||(e={}))re.call(e,t)&&se(i,t,e[t]);if(B)for(var t of B(e))ie.call(e,t)&&se(i,t,e[t]);return i},W=(i,e)=>we(i,be(e));var ne=(i,e)=>{var t={};for(var r in i)re.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&B)for(var r of B(i))e.indexOf(r)<0&&ie.call(i,r)&&(t[r]=i[r]);return t};var ve=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var ae=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)};var Y=(i,e,t)=>(ve(i,e,"access private method"),t);import{S as ye,i as ke,s as $e,e as Ee,c as Se,a as Re,d as $,b as M,f as N,g as R,t as Le,h as Ue,j as xe,k as Ne,l as b,m as Oe,n as C,o as v,p as P,q as y,r as Ae,u as Ce,v as Q,w as L,x as I,y as U,z as D,A as q,B as x,C as z,D as G,E as oe}from"./chunks/vendor-dedc54d0.js";function Pe(i){let e,t,r;const o=[i[1]||{}];var n=i[0][0];function l(s){let a={};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l()),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function Te(i){let e,t,r;const o=[i[1]||{}];var n=i[0][0];function l(s){let a={$$slots:{default:[De]},$$scope:{ctx:s}};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l(s)),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function je(i){let e,t,r;const o=[i[2]||{}];var n=i[0][1];function l(s){let a={};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l()),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function Ve(i){let e,t,r;const o=[i[2]||{}];var n=i[0][1];function l(s){let a={$$slots:{default:[Ie]},$$scope:{ctx:s}};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l(s)),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function Ie(i){let e,t,r;const o=[i[3]||{}];var n=i[0][2];function l(s){let a={};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l()),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function De(i){let e,t,r,o;const n=[Ve,je],l=[];function s(a,c){return a[0][2]?0:1}return e=s(i),t=l[e]=n[e](i),{c(){t.c(),r=b()},l(a){t.l(a),r=b()},m(a,c){l[e].m(a,c),R(a,r,c),o=!0},p(a,c){let f=e;e=s(a),e===f?l[e].p(a,c):(C(),v(l[f],1,1,()=>{l[f]=null}),P(),t=l[e],t?t.p(a,c):(t=l[e]=n[e](a),t.c()),y(t,1),t.m(r.parentNode,r))},i(a){o||(y(t),o=!0)},o(a){v(t),o=!1},d(a){l[e].d(a),a&&$(r)}}}function le(i){let e,t=i[5]&&ce(i);return{c(){e=Ee("div"),t&&t.c(),this.h()},l(r){e=Se(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var o=Re(e);t&&t.l(o),o.forEach($),this.h()},h(){M(e,"id","svelte-announcer"),M(e,"aria-live","assertive"),M(e,"aria-atomic","true"),N(e,"position","absolute"),N(e,"left","0"),N(e,"top","0"),N(e,"clip","rect(0 0 0 0)"),N(e,"clip-path","inset(50%)"),N(e,"overflow","hidden"),N(e,"white-space","nowrap"),N(e,"width","1px"),N(e,"height","1px")},m(r,o){R(r,e,o),t&&t.m(e,null)},p(r,o){r[5]?t?t.p(r,o):(t=ce(r),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(r){r&&$(e),t&&t.d()}}}function ce(i){let e;return{c(){e=Le(i[6])},l(t){e=Ue(t,i[6])},m(t,r){R(t,e,r)},p(t,r){r&64&&xe(e,t[6])},d(t){t&&$(e)}}}function qe(i){let e,t,r,o,n;const l=[Te,Pe],s=[];function a(f,h){return f[0][1]?0:1}e=a(i),t=s[e]=l[e](i);let c=i[4]&&le(i);return{c(){t.c(),r=Ne(),c&&c.c(),o=b()},l(f){t.l(f),r=Oe(f),c&&c.l(f),o=b()},m(f,h){s[e].m(f,h),R(f,r,h),c&&c.m(f,h),R(f,o,h),n=!0},p(f,[h]){let u=e;e=a(f),e===u?s[e].p(f,h):(C(),v(s[u],1,1,()=>{s[u]=null}),P(),t=s[e],t?t.p(f,h):(t=s[e]=l[e](f),t.c()),y(t,1),t.m(r.parentNode,r)),f[4]?c?c.p(f,h):(c=le(f),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null)},i(f){n||(y(t),n=!0)},o(f){v(t),n=!1},d(f){s[e].d(f),f&&$(r),c&&c.d(f),f&&$(o)}}}function ze(i,e,t){let{stores:r}=e,{page:o}=e,{components:n}=e,{props_0:l=null}=e,{props_1:s=null}=e,{props_2:a=null}=e;Ae("__svelte__",r),Ce(r.page.notify);let c=!1,f=!1,h=null;return Q(()=>{const u=r.page.subscribe(()=>{c&&(t(5,f=!0),t(6,h=document.title||"untitled page"))});return t(4,c=!0),u}),i.$$set=u=>{"stores"in u&&t(7,r=u.stores),"page"in u&&t(8,o=u.page),"components"in u&&t(0,n=u.components),"props_0"in u&&t(1,l=u.props_0),"props_1"in u&&t(2,s=u.props_1),"props_2"in u&&t(3,a=u.props_2)},i.$$.update=()=>{i.$$.dirty&384&&r.page.set(o)},[n,l,s,a,c,f,h,r,o]}class Je extends ye{constructor(e){super();ke(this,e,ze,qe,$e,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Ke="modulepreload",fe={},Be="/_app/",F=function(e,t){return!t||t.length===0?e():Promise.all(t.map(r=>{if(r=`${Be}${r}`,r in fe)return;fe[r]=!0;const o=r.endsWith(".css"),n=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${n}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":Ke,o||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),o)return new Promise((s,a)=>{l.addEventListener("load",s),l.addEventListener("error",a)})})).then(()=>e())},V=[()=>F(()=>import("./pages/__layout.svelte-b87d0c05.js"),["pages/__layout.svelte-b87d0c05.js","chunks/vendor-dedc54d0.js"]),()=>F(()=>import("./error.svelte-aa63ee3d.js"),["error.svelte-aa63ee3d.js","chunks/vendor-dedc54d0.js"]),()=>F(()=>import("./pages/index.svelte-1502efd3.js"),["pages/index.svelte-1502efd3.js","chunks/vendor-dedc54d0.js"])],We=[[/^\/$/,[V[0],V[2]],[V[1]]]],Ye=[V[0](),V[1]()];function Ge(i){let e=i.baseURI;if(!e){const t=i.getElementsByTagName("base");e=t.length?t[0].href:i.URL}return e}let Z="";function Me(i){Z=i.base,i.assets}function Fe(i,e){return i==="/"||e==="ignore"?i:e==="never"?i.endsWith("/")?i.slice(0,-1):i:e==="always"&&/\/[^./]+$/.test(i)?i+"/":i}const ge="sveltekit:scroll";let j={};try{j=JSON.parse(sessionStorage[ge])}catch{}function X(){return{x:pageXOffset,y:pageYOffset}}function ue(i){return i.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function he(i){return i instanceof SVGAElement?new URL(i.href.baseVal,document.baseURI):new URL(i.href)}var T,H;class Xe{constructor({base:e,routes:t,trailing_slash:r,renderer:o}){ae(this,T);var l,s;this.base=e,this.routes=t,this.trailing_slash=r,this.navigating=0,this.renderer=o,o.router=this,this.enabled=!0,this.initialized=!1,document.body.setAttribute("tabindex","-1"),this.current_history_index=(s=(l=history.state)==null?void 0:l["sveltekit:index"])!=null?s:0,this.current_history_index===0&&history.replaceState(W(w({},history.state),{"sveltekit:index":0}),"",location.href);const n=j[this.current_history_index];n&&scrollTo(n.x,n.y),this.hash_navigating=!1,this.callbacks={before_navigate:[],after_navigate:[]}}init_listeners(){history.scrollRestoration="manual",addEventListener("beforeunload",o=>{let n=!1;const l={from:this.renderer.current.url,to:null,cancel:()=>n=!0};this.callbacks.before_navigate.forEach(s=>s(l)),n?(o.preventDefault(),o.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Y(this,T,H).call(this);try{sessionStorage[ge]=JSON.stringify(j)}catch{}}});const e=o=>{const n=ue(o);n&&n.href&&n.hasAttribute("sveltekit:prefetch")&&this.prefetch(he(n))};let t;const r=o=>{clearTimeout(t),t=setTimeout(()=>{var n;(n=o.target)==null||n.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",e),addEventListener("mousemove",r),addEventListener("sveltekit:trigger_prefetch",e),addEventListener("click",o=>{if(!this.enabled||o.button||o.which!==1||o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.defaultPrevented)return;const n=ue(o);if(!n||!n.href)return;const l=he(n);if(l.toString()===location.href){location.hash||o.preventDefault();return}const a=(n.getAttribute("rel")||"").split(/\s+/);if(n.hasAttribute("download")||a&&a.includes("external")||(n instanceof SVGAElement?n.target.baseVal:n.target))return;const[c,f]=l.href.split("#");if(f!==void 0&&c===location.href.split("#")[0]){this.hash_navigating=!0,Y(this,T,H).call(this),this.renderer.update_page_store(new URL(l.href));return}this._navigate({url:l,scroll:n.hasAttribute("sveltekit:noscroll")?X():null,keepfocus:!1,chain:[],details:{state:{},replaceState:!1},accepted:()=>o.preventDefault(),blocked:()=>o.preventDefault()})}),addEventListener("popstate",o=>{if(o.state&&this.enabled){if(o.state["sveltekit:index"]===this.current_history_index)return;this._navigate({url:new URL(location.href),scroll:j[o.state["sveltekit:index"]],keepfocus:!1,chain:[],details:null,accepted:()=>{this.current_history_index=o.state["sveltekit:index"]},blocked:()=>{const n=this.current_history_index-o.state["sveltekit:index"];history.go(n)}})}}),addEventListener("hashchange",()=>{this.hash_navigating&&(this.hash_navigating=!1,history.replaceState(W(w({},history.state),{"sveltekit:index":++this.current_history_index}),"",location.href))}),this.initialized=!0}owns(e){return e.origin===location.origin&&e.pathname.startsWith(this.base)}parse(e){if(this.owns(e)){const t=decodeURI(e.pathname.slice(this.base.length)||"/");return{id:e.pathname+e.search,routes:this.routes.filter(([r])=>r.test(t)),url:e,path:t,initial:!this.initialized}}}async goto(e,{noscroll:t=!1,replaceState:r=!1,keepfocus:o=!1,state:n={}}={},l){const s=new URL(e,Ge(document));return this.enabled?this._navigate({url:s,scroll:t?X():null,keepfocus:o,chain:l,details:{state:n,replaceState:r},accepted:()=>{},blocked:()=>{}}):(location.href=s.href,new Promise(()=>{}))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(e){const t=this.parse(e);if(!t)throw new Error("Attempted to prefetch a URL that does not belong to this app");return this.renderer.load(t)}after_navigate(e){Q(()=>(this.callbacks.after_navigate.push(e),()=>{const t=this.callbacks.after_navigate.indexOf(e);this.callbacks.after_navigate.splice(t,1)}))}before_navigate(e){Q(()=>(this.callbacks.before_navigate.push(e),()=>{const t=this.callbacks.before_navigate.indexOf(e);this.callbacks.before_navigate.splice(t,1)}))}async _navigate({url:e,scroll:t,keepfocus:r,chain:o,details:n,accepted:l,blocked:s}){const a=this.renderer.current.url;let c=!1;const f={from:a,to:e,cancel:()=>c=!0};if(this.callbacks.before_navigate.forEach(d=>d(f)),c){s();return}const h=this.parse(e);if(!h)return location.href=e.href,new Promise(()=>{});Y(this,T,H).call(this),l(),this.navigating||dispatchEvent(new CustomEvent("sveltekit:navigation-start")),this.navigating++;const u=Fe(e.pathname,this.trailing_slash);if(h.url=new URL(e.origin+u+e.search+e.hash),n){const d=n.replaceState?0:1;n.state["sveltekit:index"]=this.current_history_index+=d,history[n.replaceState?"replaceState":"pushState"](n.state,"",h.url)}if(await this.renderer.handle_navigation(h,o,!1,{scroll:t,keepfocus:r}),this.navigating--,!this.navigating){dispatchEvent(new CustomEvent("sveltekit:navigation-end"));const d={from:a,to:e};this.callbacks.after_navigate.forEach(_=>_(d))}}}T=new WeakSet,H=function(){j[this.current_history_index]=X()};function de(i){return i instanceof Error||i&&i.name&&i.message?i:new Error(JSON.stringify(i))}function He(i){let e=5381,t=i.length;if(typeof i=="string")for(;t;)e=e*33^i.charCodeAt(--t);else for(;t;)e=e*33^i[--t];return(e>>>0).toString(36)}function _e(i){const e=i.status&&i.status>=400&&i.status<=599&&!i.redirect;if(i.error||e){const t=i.status;if(!i.error&&e)return{status:t||500,error:new Error};const r=typeof i.error=="string"?new Error(i.error):i.error;return r instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:r}):{status:t,error:r}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof r}"`)}}if(i.redirect){if(!i.status||Math.floor(i.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof i.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(i.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return i}function pe(i){const e=G(i);let t=!0;function r(){t=!0,e.update(l=>l)}function o(l){t=!1,e.set(l)}function n(l){let s;return e.subscribe(a=>{(s===void 0||t&&a!==s)&&l(s=a)})}return{notify:r,set:o,subscribe:n}}function Qe(){const{set:i,subscribe:e}=G(!1),t="1645520472985";let r;async function o(){clearTimeout(r);const l=await fetch(`${Z}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(l.ok){const{version:s}=await l.json(),a=s!==t;return a&&(i(!0),clearTimeout(r)),a}else throw new Error(`Version check failed: ${l.status}`)}return{subscribe:e,check:o}}function Ze(i,e){const t=typeof i=="string"?i:i.url;let r=`script[data-type="svelte-data"][data-url=${JSON.stringify(t)}]`;e&&typeof e.body=="string"&&(r+=`[data-body="${He(e.body)}"]`);const o=document.querySelector(r);if(o&&o.textContent){const n=JSON.parse(o.textContent),{body:l}=n,s=ne(n,["body"]);return Promise.resolve(new Response(l,s))}return fetch(i,e)}class et{constructor({Root:e,fallback:t,target:r,session:o}){this.Root=e,this.fallback=t,this.router,this.target=r,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.autoscroll=!0,this.updating=!1,this.current={url:null,session_id:0,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={url:pe({}),page:pe({}),navigating:G(null),session:G(o),updated:Qe()},this.$session=null,this.root=null;let n=!1;this.stores.session.subscribe(async l=>{if(this.$session=l,!n||!this.router)return;this.session_id+=1;const s=this.router.parse(new URL(location.href));s&&this.update(s,[],!0)}),n=!0}disable_scroll_handling(){(this.updating||!this.started)&&(this.autoscroll=!1)}async start({status:e,error:t,nodes:r,params:o}){const n=new URL(location.href),l=[];let s={},a,c;try{for(let f=0;f10||t.includes(e.url.pathname))l=await this._load_error({status:500,error:new Error("Redirect loop"),url:e.url});else{this.router?this.router.goto(new URL(l.redirect,e.url).href,{replaceState:!0},[...t,e.url.pathname]):location.href=new URL(l.redirect,location.href).href;return}else if(((c=(a=l.props)==null?void 0:a.page)==null?void 0:c.status)>=400&&await this.stores.updated.check()){location.href=e.url.href;return}if(this.updating=!0,this.started?(this.current=l.state,this.root.$set(l.props),this.stores.navigating.set(null)):this._init(l),o){const{scroll:h,keepfocus:u}=o;if(u||((f=getSelection())==null||f.removeAllRanges(),document.body.focus()),await oe(),this.autoscroll){const d=e.url.hash&&document.getElementById(e.url.hash.slice(1));h?scrollTo(h.x,h.y):d?d.scrollIntoView():scrollTo(0,0)}}else await oe();if(this.loading.promise=null,this.loading.id=null,this.autoscroll=!0,this.updating=!1,l.props.page&&(this.page=l.props.page),!this.router)return;const s=l.state.branch[l.state.branch.length-1];s&&s.module.router===!1?this.router.disable():this.router.enable()}load(e){return this.loading.promise=this._get_navigation_result(e,!1),this.loading.id=e.id,this.loading.promise}invalidate(e){return this.invalid.add(e),this.invalidating||(this.invalidating=Promise.resolve().then(async()=>{const t=this.router&&this.router.parse(new URL(location.href));t&&await this.update(t,[],!0),this.invalidating=null})),this.invalidating}update_page_store(e){this.stores.page.set(W(w({},this.page),{url:e})),this.stores.page.notify()}_init(e){this.current=e.state;const t=document.querySelector("style[data-svelte]");if(t&&t.remove(),this.page=e.props.page,this.root=new this.Root({target:this.target,props:w({stores:this.stores},e.props),hydrate:!0}),this.started=!0,this.router){const r={from:null,to:new URL(location.href)};this.router.callbacks.after_navigate.forEach(o=>o(r))}}async _get_navigation_result(e,t){if(this.loading.id===e.id&&this.loading.promise)return this.loading.promise;for(let r=0;ra()),n+=1;else break}const l=await this._load({route:o,info:e},t);if(l)return l}if(e.initial)return await this._load_error({status:404,error:new Error(`Not found: ${e.url.pathname}`),url:e.url})}async _get_navigation_result_from_branch({url:e,params:t,stuff:r,branch:o,status:n,error:l}){const s=o.filter(Boolean),a=s.find(u=>u.loaded&&u.loaded.redirect),c={redirect:a&&a.loaded?a.loaded.redirect:void 0,state:{url:e,params:t,branch:o,session_id:this.session_id},props:{components:s.map(u=>u.module.default)}};for(let u=0;u{Object.defineProperty(c.props.page,d,{get:()=>{throw new Error(`$page.${d} has been replaced by $page.url.${_}`)}})};u("origin","origin"),u("path","pathname"),u("query","searchParams")}const f=s[s.length-1],h=f.loaded&&f.loaded.maxage;if(h){const u=e.pathname+e.search;let d=!1;const _=()=>{this.cache.get(u)===c&&this.cache.delete(u),E(),clearTimeout(O)},O=setTimeout(_,h*1e3),E=this.stores.session.subscribe(()=>{d&&_()});d=!0,this.cache.set(u,c)}return c}async _load_node({status:e,error:t,module:r,url:o,params:n,stuff:l,props:s}){const a={module:r,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:l};s&&a.uses.dependencies.add(o.href);const c={};for(const h in n)Object.defineProperty(c,h,{get(){return a.uses.params.add(h),n[h]},enumerable:!0});const f=this.$session;if(r.load){const{started:h}=this,u={params:c,props:s||{},get url(){return a.uses.url=!0,o},get session(){return a.uses.session=!0,f},get stuff(){return a.uses.stuff=!0,w({},l)},fetch(_,O){const E=typeof _=="string"?_:_.url,{href:S}=new URL(E,o);return a.uses.dependencies.add(S),h?fetch(_,O):Ze(_,O)}};t&&(u.status=e,u.error=t);const d=await r.load.call(null,u);if(!d)throw new Error("load function must return a value");a.loaded=_e(d),a.loaded.stuff&&(a.stuff=a.loaded.stuff)}else s&&(a.loaded=_e({props:s}));return a}async _load({route:e,info:{url:t,path:r}},o){const n=t.pathname+t.search;if(!o){const p=this.cache.get(n);if(p)return p}const[l,s,a,c,f]=e,h=c?c(l.exec(r)):{},u=this.current.url&&{url:n!==this.current.url.pathname+this.current.url.search,params:Object.keys(h).filter(p=>this.current.params[p]!==h[p]),session:this.session_id!==this.current.session_id};let d=[],_={},O=!1,E=200,S;s.forEach(p=>p());e:for(let p=0;pk.uses.params.has(A))||u.session&&k.uses.session||Array.from(k.uses.dependencies).some(A=>this.invalid.has(A))||O&&k.uses.stuff){let A={};const ee=f&&p===s.length-1;if(ee){const K=await fetch(`${t.pathname}${t.pathname.endsWith("/")?"":"/"}__data.json${t.search}`,{headers:{"x-sveltekit-load":"true"}});if(K.ok){const te=K.headers.get("x-sveltekit-location");if(te)return{redirect:te,props:{},state:this.current};A=await K.json()}else E=K.status,S=new Error("Failed to load data")}if(S||(g=await this._load_node({module:m,url:t,params:h,props:A,stuff:_})),g&&(ee&&(g.uses.url=!0),g.loaded)){if(g.loaded.fallthrough)return;if(g.loaded.error&&(E=g.loaded.status,S=g.loaded.error),g.loaded.redirect)return{redirect:g.loaded.redirect,props:{},state:this.current};g.loaded.stuff&&(O=!0)}}else g=k}catch(m){E=500,S=de(m)}if(S){for(;p--;)if(a[p]){let m,k,J=p;for(;!(k=d[J]);)J-=1;try{if(m=await this._load_node({status:E,error:S,module:await a[p](),url:t,params:h,stuff:k.stuff}),m&&m.loaded&&m.loaded.error)continue;m&&m.loaded&&m.loaded.stuff&&(_=w(w({},_),m.loaded.stuff)),d=d.slice(0,J+1).concat(m);break e}catch{continue}}return await this._load_error({status:E,error:S,url:t})}else g&&g.loaded&&g.loaded.stuff&&(_=w(w({},_),g.loaded.stuff)),d.push(g)}return await this._get_navigation_result_from_branch({url:t,params:h,stuff:_,branch:d,status:E,error:S})}async _load_error({status:e,error:t,url:r}){var c,f;const o={},n=await this._load_node({module:await this.fallback[0],url:r,params:o,stuff:{}}),l=await this._load_node({status:e,error:t,module:await this.fallback[1],url:r,params:o,stuff:n&&n.loaded&&n.loaded.stuff||{}}),s=[n,l],a=w(w({},(c=n==null?void 0:n.loaded)==null?void 0:c.stuff),(f=l==null?void 0:l.loaded)==null?void 0:f.stuff);return await this._get_navigation_result_from_branch({url:r,params:o,stuff:a,branch:s,status:e,error:t})}}async function rt({paths:i,target:e,session:t,route:r,spa:o,trailing_slash:n,hydrate:l}){const s=new et({Root:Je,fallback:Ye,target:e,session:t}),a=r?new Xe({base:i.base,routes:We,trailing_slash:n,renderer:s}):null;Me(i),l&&await s.start(l),a&&(o&&a.goto(location.href,{replaceState:!0},[]),a.init_listeners()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{rt as start}; +var me=Object.defineProperty,we=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var B=Object.getOwnPropertySymbols;var re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var se=(i,e,t)=>e in i?me(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,w=(i,e)=>{for(var t in e||(e={}))re.call(e,t)&&se(i,t,e[t]);if(B)for(var t of B(e))ie.call(e,t)&&se(i,t,e[t]);return i},W=(i,e)=>we(i,be(e));var ne=(i,e)=>{var t={};for(var r in i)re.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&B)for(var r of B(i))e.indexOf(r)<0&&ie.call(i,r)&&(t[r]=i[r]);return t};var ve=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var ae=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)};var Y=(i,e,t)=>(ve(i,e,"access private method"),t);import{S as ye,i as ke,s as $e,e as Ee,c as Se,a as Re,d as $,b as M,f as N,g as R,t as Le,h as Ue,j as xe,k as Ne,l as b,m as Oe,n as C,o as v,p as P,q as y,r as Ae,u as Ce,v as Q,w as L,x as I,y as U,z as D,A as q,B as x,C as z,D as G,E as oe}from"./chunks/vendor-dedc54d0.js";function Pe(i){let e,t,r;const o=[i[1]||{}];var n=i[0][0];function l(s){let a={};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l()),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function Te(i){let e,t,r;const o=[i[1]||{}];var n=i[0][0];function l(s){let a={$$slots:{default:[De]},$$scope:{ctx:s}};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l(s)),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function je(i){let e,t,r;const o=[i[2]||{}];var n=i[0][1];function l(s){let a={};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l()),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function Ve(i){let e,t,r;const o=[i[2]||{}];var n=i[0][1];function l(s){let a={$$slots:{default:[Ie]},$$scope:{ctx:s}};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l(s)),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function Ie(i){let e,t,r;const o=[i[3]||{}];var n=i[0][2];function l(s){let a={};for(let c=0;c{x(f,1)}),P()}n?(e=new n(l()),L(e.$$.fragment),y(e.$$.fragment,1),U(e,t.parentNode,t)):e=null}else n&&e.$set(c)},i(s){r||(e&&y(e.$$.fragment,s),r=!0)},o(s){e&&v(e.$$.fragment,s),r=!1},d(s){s&&$(t),e&&x(e,s)}}}function De(i){let e,t,r,o;const n=[Ve,je],l=[];function s(a,c){return a[0][2]?0:1}return e=s(i),t=l[e]=n[e](i),{c(){t.c(),r=b()},l(a){t.l(a),r=b()},m(a,c){l[e].m(a,c),R(a,r,c),o=!0},p(a,c){let f=e;e=s(a),e===f?l[e].p(a,c):(C(),v(l[f],1,1,()=>{l[f]=null}),P(),t=l[e],t?t.p(a,c):(t=l[e]=n[e](a),t.c()),y(t,1),t.m(r.parentNode,r))},i(a){o||(y(t),o=!0)},o(a){v(t),o=!1},d(a){l[e].d(a),a&&$(r)}}}function le(i){let e,t=i[5]&&ce(i);return{c(){e=Ee("div"),t&&t.c(),this.h()},l(r){e=Se(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var o=Re(e);t&&t.l(o),o.forEach($),this.h()},h(){M(e,"id","svelte-announcer"),M(e,"aria-live","assertive"),M(e,"aria-atomic","true"),N(e,"position","absolute"),N(e,"left","0"),N(e,"top","0"),N(e,"clip","rect(0 0 0 0)"),N(e,"clip-path","inset(50%)"),N(e,"overflow","hidden"),N(e,"white-space","nowrap"),N(e,"width","1px"),N(e,"height","1px")},m(r,o){R(r,e,o),t&&t.m(e,null)},p(r,o){r[5]?t?t.p(r,o):(t=ce(r),t.c(),t.m(e,null)):t&&(t.d(1),t=null)},d(r){r&&$(e),t&&t.d()}}}function ce(i){let e;return{c(){e=Le(i[6])},l(t){e=Ue(t,i[6])},m(t,r){R(t,e,r)},p(t,r){r&64&&xe(e,t[6])},d(t){t&&$(e)}}}function qe(i){let e,t,r,o,n;const l=[Te,Pe],s=[];function a(f,h){return f[0][1]?0:1}e=a(i),t=s[e]=l[e](i);let c=i[4]&&le(i);return{c(){t.c(),r=Ne(),c&&c.c(),o=b()},l(f){t.l(f),r=Oe(f),c&&c.l(f),o=b()},m(f,h){s[e].m(f,h),R(f,r,h),c&&c.m(f,h),R(f,o,h),n=!0},p(f,[h]){let u=e;e=a(f),e===u?s[e].p(f,h):(C(),v(s[u],1,1,()=>{s[u]=null}),P(),t=s[e],t?t.p(f,h):(t=s[e]=l[e](f),t.c()),y(t,1),t.m(r.parentNode,r)),f[4]?c?c.p(f,h):(c=le(f),c.c(),c.m(o.parentNode,o)):c&&(c.d(1),c=null)},i(f){n||(y(t),n=!0)},o(f){v(t),n=!1},d(f){s[e].d(f),f&&$(r),c&&c.d(f),f&&$(o)}}}function ze(i,e,t){let{stores:r}=e,{page:o}=e,{components:n}=e,{props_0:l=null}=e,{props_1:s=null}=e,{props_2:a=null}=e;Ae("__svelte__",r),Ce(r.page.notify);let c=!1,f=!1,h=null;return Q(()=>{const u=r.page.subscribe(()=>{c&&(t(5,f=!0),t(6,h=document.title||"untitled page"))});return t(4,c=!0),u}),i.$$set=u=>{"stores"in u&&t(7,r=u.stores),"page"in u&&t(8,o=u.page),"components"in u&&t(0,n=u.components),"props_0"in u&&t(1,l=u.props_0),"props_1"in u&&t(2,s=u.props_1),"props_2"in u&&t(3,a=u.props_2)},i.$$.update=()=>{i.$$.dirty&384&&r.page.set(o)},[n,l,s,a,c,f,h,r,o]}class Je extends ye{constructor(e){super();ke(this,e,ze,qe,$e,{stores:7,page:8,components:0,props_0:1,props_1:2,props_2:3})}}const Ke="modulepreload",fe={},Be="/_app/",F=function(e,t){return!t||t.length===0?e():Promise.all(t.map(r=>{if(r=`${Be}${r}`,r in fe)return;fe[r]=!0;const o=r.endsWith(".css"),n=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${n}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":Ke,o||(l.as="script",l.crossOrigin=""),l.href=r,document.head.appendChild(l),o)return new Promise((s,a)=>{l.addEventListener("load",s),l.addEventListener("error",a)})})).then(()=>e())},V=[()=>F(()=>import("./pages/__layout.svelte-6869b5a4.js"),["pages/__layout.svelte-6869b5a4.js","chunks/vendor-dedc54d0.js"]),()=>F(()=>import("./error.svelte-aa63ee3d.js"),["error.svelte-aa63ee3d.js","chunks/vendor-dedc54d0.js"]),()=>F(()=>import("./pages/index.svelte-1502efd3.js"),["pages/index.svelte-1502efd3.js","chunks/vendor-dedc54d0.js"])],We=[[/^\/$/,[V[0],V[2]],[V[1]]]],Ye=[V[0](),V[1]()];function Ge(i){let e=i.baseURI;if(!e){const t=i.getElementsByTagName("base");e=t.length?t[0].href:i.URL}return e}let Z="";function Me(i){Z=i.base,i.assets}function Fe(i,e){return i==="/"||e==="ignore"?i:e==="never"?i.endsWith("/")?i.slice(0,-1):i:e==="always"&&/\/[^./]+$/.test(i)?i+"/":i}const ge="sveltekit:scroll";let j={};try{j=JSON.parse(sessionStorage[ge])}catch{}function X(){return{x:pageXOffset,y:pageYOffset}}function ue(i){return i.composedPath().find(t=>t instanceof Node&&t.nodeName.toUpperCase()==="A")}function he(i){return i instanceof SVGAElement?new URL(i.href.baseVal,document.baseURI):new URL(i.href)}var T,H;class Xe{constructor({base:e,routes:t,trailing_slash:r,renderer:o}){ae(this,T);var l,s;this.base=e,this.routes=t,this.trailing_slash=r,this.navigating=0,this.renderer=o,o.router=this,this.enabled=!0,this.initialized=!1,document.body.setAttribute("tabindex","-1"),this.current_history_index=(s=(l=history.state)==null?void 0:l["sveltekit:index"])!=null?s:0,this.current_history_index===0&&history.replaceState(W(w({},history.state),{"sveltekit:index":0}),"",location.href);const n=j[this.current_history_index];n&&scrollTo(n.x,n.y),this.hash_navigating=!1,this.callbacks={before_navigate:[],after_navigate:[]}}init_listeners(){history.scrollRestoration="manual",addEventListener("beforeunload",o=>{let n=!1;const l={from:this.renderer.current.url,to:null,cancel:()=>n=!0};this.callbacks.before_navigate.forEach(s=>s(l)),n?(o.preventDefault(),o.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{if(document.visibilityState==="hidden"){Y(this,T,H).call(this);try{sessionStorage[ge]=JSON.stringify(j)}catch{}}});const e=o=>{const n=ue(o);n&&n.href&&n.hasAttribute("sveltekit:prefetch")&&this.prefetch(he(n))};let t;const r=o=>{clearTimeout(t),t=setTimeout(()=>{var n;(n=o.target)==null||n.dispatchEvent(new CustomEvent("sveltekit:trigger_prefetch",{bubbles:!0}))},20)};addEventListener("touchstart",e),addEventListener("mousemove",r),addEventListener("sveltekit:trigger_prefetch",e),addEventListener("click",o=>{if(!this.enabled||o.button||o.which!==1||o.metaKey||o.ctrlKey||o.shiftKey||o.altKey||o.defaultPrevented)return;const n=ue(o);if(!n||!n.href)return;const l=he(n);if(l.toString()===location.href){location.hash||o.preventDefault();return}const a=(n.getAttribute("rel")||"").split(/\s+/);if(n.hasAttribute("download")||a&&a.includes("external")||(n instanceof SVGAElement?n.target.baseVal:n.target))return;const[c,f]=l.href.split("#");if(f!==void 0&&c===location.href.split("#")[0]){this.hash_navigating=!0,Y(this,T,H).call(this),this.renderer.update_page_store(new URL(l.href));return}this._navigate({url:l,scroll:n.hasAttribute("sveltekit:noscroll")?X():null,keepfocus:!1,chain:[],details:{state:{},replaceState:!1},accepted:()=>o.preventDefault(),blocked:()=>o.preventDefault()})}),addEventListener("popstate",o=>{if(o.state&&this.enabled){if(o.state["sveltekit:index"]===this.current_history_index)return;this._navigate({url:new URL(location.href),scroll:j[o.state["sveltekit:index"]],keepfocus:!1,chain:[],details:null,accepted:()=>{this.current_history_index=o.state["sveltekit:index"]},blocked:()=>{const n=this.current_history_index-o.state["sveltekit:index"];history.go(n)}})}}),addEventListener("hashchange",()=>{this.hash_navigating&&(this.hash_navigating=!1,history.replaceState(W(w({},history.state),{"sveltekit:index":++this.current_history_index}),"",location.href))}),this.initialized=!0}owns(e){return e.origin===location.origin&&e.pathname.startsWith(this.base)}parse(e){if(this.owns(e)){const t=decodeURI(e.pathname.slice(this.base.length)||"/");return{id:e.pathname+e.search,routes:this.routes.filter(([r])=>r.test(t)),url:e,path:t,initial:!this.initialized}}}async goto(e,{noscroll:t=!1,replaceState:r=!1,keepfocus:o=!1,state:n={}}={},l){const s=new URL(e,Ge(document));return this.enabled?this._navigate({url:s,scroll:t?X():null,keepfocus:o,chain:l,details:{state:n,replaceState:r},accepted:()=>{},blocked:()=>{}}):(location.href=s.href,new Promise(()=>{}))}enable(){this.enabled=!0}disable(){this.enabled=!1}async prefetch(e){const t=this.parse(e);if(!t)throw new Error("Attempted to prefetch a URL that does not belong to this app");return this.renderer.load(t)}after_navigate(e){Q(()=>(this.callbacks.after_navigate.push(e),()=>{const t=this.callbacks.after_navigate.indexOf(e);this.callbacks.after_navigate.splice(t,1)}))}before_navigate(e){Q(()=>(this.callbacks.before_navigate.push(e),()=>{const t=this.callbacks.before_navigate.indexOf(e);this.callbacks.before_navigate.splice(t,1)}))}async _navigate({url:e,scroll:t,keepfocus:r,chain:o,details:n,accepted:l,blocked:s}){const a=this.renderer.current.url;let c=!1;const f={from:a,to:e,cancel:()=>c=!0};if(this.callbacks.before_navigate.forEach(d=>d(f)),c){s();return}const h=this.parse(e);if(!h)return location.href=e.href,new Promise(()=>{});Y(this,T,H).call(this),l(),this.navigating||dispatchEvent(new CustomEvent("sveltekit:navigation-start")),this.navigating++;const u=Fe(e.pathname,this.trailing_slash);if(h.url=new URL(e.origin+u+e.search+e.hash),n){const d=n.replaceState?0:1;n.state["sveltekit:index"]=this.current_history_index+=d,history[n.replaceState?"replaceState":"pushState"](n.state,"",h.url)}if(await this.renderer.handle_navigation(h,o,!1,{scroll:t,keepfocus:r}),this.navigating--,!this.navigating){dispatchEvent(new CustomEvent("sveltekit:navigation-end"));const d={from:a,to:e};this.callbacks.after_navigate.forEach(_=>_(d))}}}T=new WeakSet,H=function(){j[this.current_history_index]=X()};function de(i){return i instanceof Error||i&&i.name&&i.message?i:new Error(JSON.stringify(i))}function He(i){let e=5381,t=i.length;if(typeof i=="string")for(;t;)e=e*33^i.charCodeAt(--t);else for(;t;)e=e*33^i[--t];return(e>>>0).toString(36)}function _e(i){const e=i.status&&i.status>=400&&i.status<=599&&!i.redirect;if(i.error||e){const t=i.status;if(!i.error&&e)return{status:t||500,error:new Error};const r=typeof i.error=="string"?new Error(i.error):i.error;return r instanceof Error?!t||t<400||t>599?(console.warn('"error" returned from load() without a valid status code \u2014 defaulting to 500'),{status:500,error:r}):{status:t,error:r}:{status:500,error:new Error(`"error" property returned from load() must be a string or instance of Error, received type "${typeof r}"`)}}if(i.redirect){if(!i.status||Math.floor(i.status/100)!==3)return{status:500,error:new Error('"redirect" property returned from load() must be accompanied by a 3xx status code')};if(typeof i.redirect!="string")return{status:500,error:new Error('"redirect" property returned from load() must be a string')}}if(i.context)throw new Error('You are returning "context" from a load function. "context" was renamed to "stuff", please adjust your code accordingly.');return i}function pe(i){const e=G(i);let t=!0;function r(){t=!0,e.update(l=>l)}function o(l){t=!1,e.set(l)}function n(l){let s;return e.subscribe(a=>{(s===void 0||t&&a!==s)&&l(s=a)})}return{notify:r,set:o,subscribe:n}}function Qe(){const{set:i,subscribe:e}=G(!1),t="1645521886104";let r;async function o(){clearTimeout(r);const l=await fetch(`${Z}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(l.ok){const{version:s}=await l.json(),a=s!==t;return a&&(i(!0),clearTimeout(r)),a}else throw new Error(`Version check failed: ${l.status}`)}return{subscribe:e,check:o}}function Ze(i,e){const t=typeof i=="string"?i:i.url;let r=`script[data-type="svelte-data"][data-url=${JSON.stringify(t)}]`;e&&typeof e.body=="string"&&(r+=`[data-body="${He(e.body)}"]`);const o=document.querySelector(r);if(o&&o.textContent){const n=JSON.parse(o.textContent),{body:l}=n,s=ne(n,["body"]);return Promise.resolve(new Response(l,s))}return fetch(i,e)}class et{constructor({Root:e,fallback:t,target:r,session:o}){this.Root=e,this.fallback=t,this.router,this.target=r,this.started=!1,this.session_id=1,this.invalid=new Set,this.invalidating=null,this.autoscroll=!0,this.updating=!1,this.current={url:null,session_id:0,branch:[]},this.cache=new Map,this.loading={id:null,promise:null},this.stores={url:pe({}),page:pe({}),navigating:G(null),session:G(o),updated:Qe()},this.$session=null,this.root=null;let n=!1;this.stores.session.subscribe(async l=>{if(this.$session=l,!n||!this.router)return;this.session_id+=1;const s=this.router.parse(new URL(location.href));s&&this.update(s,[],!0)}),n=!0}disable_scroll_handling(){(this.updating||!this.started)&&(this.autoscroll=!1)}async start({status:e,error:t,nodes:r,params:o}){const n=new URL(location.href),l=[];let s={},a,c;try{for(let f=0;f10||t.includes(e.url.pathname))l=await this._load_error({status:500,error:new Error("Redirect loop"),url:e.url});else{this.router?this.router.goto(new URL(l.redirect,e.url).href,{replaceState:!0},[...t,e.url.pathname]):location.href=new URL(l.redirect,location.href).href;return}else if(((c=(a=l.props)==null?void 0:a.page)==null?void 0:c.status)>=400&&await this.stores.updated.check()){location.href=e.url.href;return}if(this.updating=!0,this.started?(this.current=l.state,this.root.$set(l.props),this.stores.navigating.set(null)):this._init(l),o){const{scroll:h,keepfocus:u}=o;if(u||((f=getSelection())==null||f.removeAllRanges(),document.body.focus()),await oe(),this.autoscroll){const d=e.url.hash&&document.getElementById(e.url.hash.slice(1));h?scrollTo(h.x,h.y):d?d.scrollIntoView():scrollTo(0,0)}}else await oe();if(this.loading.promise=null,this.loading.id=null,this.autoscroll=!0,this.updating=!1,l.props.page&&(this.page=l.props.page),!this.router)return;const s=l.state.branch[l.state.branch.length-1];s&&s.module.router===!1?this.router.disable():this.router.enable()}load(e){return this.loading.promise=this._get_navigation_result(e,!1),this.loading.id=e.id,this.loading.promise}invalidate(e){return this.invalid.add(e),this.invalidating||(this.invalidating=Promise.resolve().then(async()=>{const t=this.router&&this.router.parse(new URL(location.href));t&&await this.update(t,[],!0),this.invalidating=null})),this.invalidating}update_page_store(e){this.stores.page.set(W(w({},this.page),{url:e})),this.stores.page.notify()}_init(e){this.current=e.state;const t=document.querySelector("style[data-svelte]");if(t&&t.remove(),this.page=e.props.page,this.root=new this.Root({target:this.target,props:w({stores:this.stores},e.props),hydrate:!0}),this.started=!0,this.router){const r={from:null,to:new URL(location.href)};this.router.callbacks.after_navigate.forEach(o=>o(r))}}async _get_navigation_result(e,t){if(this.loading.id===e.id&&this.loading.promise)return this.loading.promise;for(let r=0;ra()),n+=1;else break}const l=await this._load({route:o,info:e},t);if(l)return l}if(e.initial)return await this._load_error({status:404,error:new Error(`Not found: ${e.url.pathname}`),url:e.url})}async _get_navigation_result_from_branch({url:e,params:t,stuff:r,branch:o,status:n,error:l}){const s=o.filter(Boolean),a=s.find(u=>u.loaded&&u.loaded.redirect),c={redirect:a&&a.loaded?a.loaded.redirect:void 0,state:{url:e,params:t,branch:o,session_id:this.session_id},props:{components:s.map(u=>u.module.default)}};for(let u=0;u{Object.defineProperty(c.props.page,d,{get:()=>{throw new Error(`$page.${d} has been replaced by $page.url.${_}`)}})};u("origin","origin"),u("path","pathname"),u("query","searchParams")}const f=s[s.length-1],h=f.loaded&&f.loaded.maxage;if(h){const u=e.pathname+e.search;let d=!1;const _=()=>{this.cache.get(u)===c&&this.cache.delete(u),E(),clearTimeout(O)},O=setTimeout(_,h*1e3),E=this.stores.session.subscribe(()=>{d&&_()});d=!0,this.cache.set(u,c)}return c}async _load_node({status:e,error:t,module:r,url:o,params:n,stuff:l,props:s}){const a={module:r,uses:{params:new Set,url:!1,session:!1,stuff:!1,dependencies:new Set},loaded:null,stuff:l};s&&a.uses.dependencies.add(o.href);const c={};for(const h in n)Object.defineProperty(c,h,{get(){return a.uses.params.add(h),n[h]},enumerable:!0});const f=this.$session;if(r.load){const{started:h}=this,u={params:c,props:s||{},get url(){return a.uses.url=!0,o},get session(){return a.uses.session=!0,f},get stuff(){return a.uses.stuff=!0,w({},l)},fetch(_,O){const E=typeof _=="string"?_:_.url,{href:S}=new URL(E,o);return a.uses.dependencies.add(S),h?fetch(_,O):Ze(_,O)}};t&&(u.status=e,u.error=t);const d=await r.load.call(null,u);if(!d)throw new Error("load function must return a value");a.loaded=_e(d),a.loaded.stuff&&(a.stuff=a.loaded.stuff)}else s&&(a.loaded=_e({props:s}));return a}async _load({route:e,info:{url:t,path:r}},o){const n=t.pathname+t.search;if(!o){const p=this.cache.get(n);if(p)return p}const[l,s,a,c,f]=e,h=c?c(l.exec(r)):{},u=this.current.url&&{url:n!==this.current.url.pathname+this.current.url.search,params:Object.keys(h).filter(p=>this.current.params[p]!==h[p]),session:this.session_id!==this.current.session_id};let d=[],_={},O=!1,E=200,S;s.forEach(p=>p());e:for(let p=0;pk.uses.params.has(A))||u.session&&k.uses.session||Array.from(k.uses.dependencies).some(A=>this.invalid.has(A))||O&&k.uses.stuff){let A={};const ee=f&&p===s.length-1;if(ee){const K=await fetch(`${t.pathname}${t.pathname.endsWith("/")?"":"/"}__data.json${t.search}`,{headers:{"x-sveltekit-load":"true"}});if(K.ok){const te=K.headers.get("x-sveltekit-location");if(te)return{redirect:te,props:{},state:this.current};A=await K.json()}else E=K.status,S=new Error("Failed to load data")}if(S||(g=await this._load_node({module:m,url:t,params:h,props:A,stuff:_})),g&&(ee&&(g.uses.url=!0),g.loaded)){if(g.loaded.fallthrough)return;if(g.loaded.error&&(E=g.loaded.status,S=g.loaded.error),g.loaded.redirect)return{redirect:g.loaded.redirect,props:{},state:this.current};g.loaded.stuff&&(O=!0)}}else g=k}catch(m){E=500,S=de(m)}if(S){for(;p--;)if(a[p]){let m,k,J=p;for(;!(k=d[J]);)J-=1;try{if(m=await this._load_node({status:E,error:S,module:await a[p](),url:t,params:h,stuff:k.stuff}),m&&m.loaded&&m.loaded.error)continue;m&&m.loaded&&m.loaded.stuff&&(_=w(w({},_),m.loaded.stuff)),d=d.slice(0,J+1).concat(m);break e}catch{continue}}return await this._load_error({status:E,error:S,url:t})}else g&&g.loaded&&g.loaded.stuff&&(_=w(w({},_),g.loaded.stuff)),d.push(g)}return await this._get_navigation_result_from_branch({url:t,params:h,stuff:_,branch:d,status:E,error:S})}async _load_error({status:e,error:t,url:r}){var c,f;const o={},n=await this._load_node({module:await this.fallback[0],url:r,params:o,stuff:{}}),l=await this._load_node({status:e,error:t,module:await this.fallback[1],url:r,params:o,stuff:n&&n.loaded&&n.loaded.stuff||{}}),s=[n,l],a=w(w({},(c=n==null?void 0:n.loaded)==null?void 0:c.stuff),(f=l==null?void 0:l.loaded)==null?void 0:f.stuff);return await this._get_navigation_result_from_branch({url:r,params:o,stuff:a,branch:s,status:e,error:t})}}async function rt({paths:i,target:e,session:t,route:r,spa:o,trailing_slash:n,hydrate:l}){const s=new et({Root:Je,fallback:Ye,target:e,session:t}),a=r?new Xe({base:i.base,routes:We,trailing_slash:n,renderer:s}):null;Me(i),l&&await s.start(l),a&&(o&&a.goto(location.href,{replaceState:!0},[]),a.init_listeners()),dispatchEvent(new CustomEvent("sveltekit:start"))}export{rt as start}; diff --git a/docs/_app/version.json b/docs/_app/version.json index 760971812..55703a891 100644 --- a/docs/_app/version.json +++ b/docs/_app/version.json @@ -1 +1 @@ -{"version":"1645520472985"} \ No newline at end of file +{"version":"1645521886104"} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 73b1d8cec..3e9c1ad5b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -11,9 +11,9 @@ src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js" > - + - + @@ -22,7 +22,7 @@ - +
@@ -34,10 +34,10 @@
-