import{S as ie,i as oe,s as re,e as _,t as j,c as v,a as p,h as y,d as f,b as r,g as O,H as i,j as x,k as I,w as ce,$ as fe,m as H,x as ue,K as z,y as de,q as me,o as _e,B as ve}from"../../chunks/index-14ba15f6.js";/* empty css                                                          */import{I as he}from"../../chunks/Icon-e557c26e.js";import{s as pe}from"../../chunks/hovers-6dcf44b2.js";function ne(s){let e,l=s[0].title+"",o,c;return{c(){e=_("a"),o=j(l),this.h()},l(t){e=v(t,"A",{href:!0});var a=p(e);o=y(a,l),a.forEach(f),this.h()},h(){r(e,"href",c="/docs/"+s[0].slug)},m(t,a){O(t,e,a),i(e,o)},p(t,a){a&1&&l!==(l=t[0].title+"")&&x(o,l),a&1&&c!==(c="/docs/"+t[0].slug)&&r(e,"href",c)},d(t){t&&f(e)}}}function le(s){let e,l=s[1].title+"",o,c;return{c(){e=_("a"),o=j(l),this.h()},l(t){e=v(t,"A",{href:!0});var a=p(e);o=y(a,l),a.forEach(f),this.h()},h(){r(e,"href",c="/docs/"+s[1].slug)},m(t,a){O(t,e,a),i(e,o)},p(t,a){a&2&&l!==(l=t[1].title+"")&&x(o,l),a&2&&c!==(c="/docs/"+t[1].slug)&&r(e,"href",c)},d(t){t&&f(e)}}}function ge(s){let e,l,o,c,t,a,q,h,M,V=s[2].title+"",N,U,E,w,F,B,J,T,C=s[2].content+"",Q,A,S,D,R,W,X,b,K,Y,Z,g;document.title=e=s[2].title+" \u2022 Docs \u2022 SvelteKit",w=new he({props:{size:50,name:"edit"}});let d=s[0]&&ne(s),m=s[1]&&le(s);return{c(){l=_("meta"),o=_("meta"),t=_("meta"),q=I(),h=_("div"),M=_("h1"),N=j(V),U=I(),E=_("a"),ce(w.$$.fragment),F=j(" Edit this page on GitHub"),J=I(),T=_("section"),Q=I(),A=_("div"),S=_("div"),D=_("span"),R=j("previous"),W=I(),d&&d.c(),X=I(),b=_("div"),K=_("span"),Y=j("next"),Z=I(),m&&m.c(),this.h()},l(n){const u=fe('[data-svelte="svelte-1yre68c"]',document.head);l=v(u,"META",{name:!0,content:!0}),o=v(u,"META",{name:!0,content:!0}),t=v(u,"META",{name:!0,content:!0}),u.forEach(f),q=H(n),h=v(n,"DIV",{class:!0});var k=p(h);M=v(k,"H1",{});var ee=p(M);N=y(ee,V),ee.forEach(f),U=H(k),E=v(k,"A",{class:!0,href:!0});var $=p(E);ue(w.$$.fragment,$),F=y($," Edit this page on GitHub"),$.forEach(f),J=H(k),T=v(k,"SECTION",{});var se=p(T);se.forEach(f),Q=H(k),A=v(k,"DIV",{class:!0});var G=p(A);S=v(G,"DIV",{class:!0});var L=p(S);D=v(L,"SPAN",{class:!0});var te=p(D);R=y(te,"previous"),te.forEach(f),W=H(L),d&&d.l(L),L.forEach(f),X=H(G),b=v(G,"DIV",{class:!0});var P=p(b);K=v(P,"SPAN",{class:!0});var ae=p(K);Y=y(ae,"next"),ae.forEach(f),Z=H(P),m&&m.l(P),P.forEach(f),G.forEach(f),k.forEach(f),this.h()},h(){r(l,"name","twitter:title"),r(l,"content","SvelteKit docs"),r(o,"name","twitter:description"),r(o,"content",c=s[2].title+" \u2022 SvelteKit documentation"),r(t,"name","Description"),r(t,"content",a=s[2].title+" \u2022 SvelteKit documentation"),r(E,"class","edit svelte-46pciy"),r(E,"href",B="https://github.com/sveltejs/kit/edit/master/documentation/"+s[2].file),r(D,"class","svelte-46pciy"),z(D,"faded",!s[0]),r(S,"class","svelte-46pciy"),r(K,"class","svelte-46pciy"),z(K,"faded",!s[1]),r(b,"class","svelte-46pciy"),r(A,"class","controls svelte-46pciy"),r(h,"class","content listify")},m(n,u){i(document.head,l),i(document.head,o),i(document.head,t),O(n,q,u),O(n,h,u),i(h,M),i(M,N),i(h,U),i(h,E),de(w,E,null),i(E,F),i(h,J),i(h,T),T.innerHTML=C,i(h,Q),i(h,A),i(A,S),i(S,D),i(D,R),i(S,W),d&&d.m(S,null),i(A,X),i(A,b),i(b,K),i(K,Y),i(b,Z),m&&m.m(b,null),g=!0},p(n,[u]){(!g||u&4)&&e!==(e=n[2].title+" \u2022 Docs \u2022 SvelteKit")&&(document.title=e),(!g||u&4&&c!==(c=n[2].title+" \u2022 SvelteKit documentation"))&&r(o,"content",c),(!g||u&4&&a!==(a=n[2].title+" \u2022 SvelteKit documentation"))&&r(t,"content",a),(!g||u&4)&&V!==(V=n[2].title+"")&&x(N,V),(!g||u&4&&B!==(B="https://github.com/sveltejs/kit/edit/master/documentation/"+n[2].file))&&r(E,"href",B),(!g||u&4)&&C!==(C=n[2].content+"")&&(T.innerHTML=C),u&1&&z(D,"faded",!n[0]),n[0]?d?d.p(n,u):(d=ne(n),d.c(),d.m(S,null)):d&&(d.d(1),d=null),u&2&&z(K,"faded",!n[1]),n[1]?m?m.p(n,u):(m=le(n),m.c(),m.m(b,null)):m&&(m.d(1),m=null)},i(n){g||(me(w.$$.fragment,n),g=!0)},o(n){_e(w.$$.fragment,n),g=!1},d(n){f(l),f(o),f(t),n&&f(q),n&&f(h),ve(w),d&&d.d(),m&&m.d()}}}async function Ke({fetch:s,params:e}){const l=await s(`/docs/${e.slug}.json`),{prev:o,next:c,section:t}=await l.json();return{props:{prev:o,next:c,section:t}}}function Ee(s,e,l){let{prev:o}=e,{next:c}=e,{section:t}=e;return pe(),s.$$set=a=>{"prev"in a&&l(0,o=a.prev),"next"in a&&l(1,c=a.next),"section"in a&&l(2,t=a.section)},[o,c,t]}class ke extends ie{constructor(e){super(),oe(this,e,Ee,ge,re,{prev:0,next:1,section:2})}}export{ke as default,Ke as load};
