import{o as b}from"./DukJHxi2.js";import{i as l,g as c,j as u}from"./krC2xWPP.js";import{w as A}from"./CddAxf8c.js";new URL("sveltekit-internal://");function Y(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function q(t){return t.split("%25").map(decodeURI).join("%25")}function D(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function B({href:t}){return t.split("#")[0]}function U(...t){let e=5381;for(const s of t)if(typeof s=="string"){let n=s.length;for(;n;)e=e*33^s.charCodeAt(--n)}else if(ArrayBuffer.isView(s)){const n=new Uint8Array(s.buffer,s.byteOffset,s.byteLength);let r=n.length;for(;r;)e=e*33^n[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;new TextDecoder;function I(t){const e=atob(t),s=new Uint8Array(e.length);for(let n=0;n((t instanceof Request?t.method:e?.method||"GET")!=="GET"&&h.delete(p(t)),N(t,e));const h=new Map;function H(t,e){const s=p(t,e),n=document.querySelector(s);if(n?.textContent){n.remove();let{body:r,...i}=JSON.parse(n.textContent);const a=n.getAttribute("data-ttl");return a&&h.set(s,{body:r,init:i,ttl:1e3*Number(a)}),n.getAttribute("data-b64")!==null&&(r=I(r)),Promise.resolve(new Response(r,i))}return window.fetch(t,e)}function K(t,e,s){if(h.size>0){const n=p(t,s),r=h.get(n);if(r){if(performance.now()a)}function r(a){s=!1,e.set(a)}function i(a){let o;return e.subscribe(f=>{(o===void 0||s&&f!==o)&&a(o=f)})}return{notify:n,set:r,subscribe:i}}const T={v:()=>{}};function re(){const{set:t,subscribe:e}=A(!1),s=6e4;let n;async function r(){clearTimeout(n),n=setTimeout(r,s);try{const i=await fetch(`${L}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!i.ok)return!1;const o=(await i.json()).version!==O;return o&&(t(!0),T.v(),clearTimeout(n)),o}catch{return!1}}return n=setTimeout(r,s),{subscribe:e,check:r}}function $(t,e,s){return t.origin!==R||!t.pathname.startsWith(e)?!0:s?t.pathname!==location.pathname:!1}function oe(t){}const k=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...k];const V=new Set([...k]);[...V];let _,v,g;const j=b.toString().includes("$$")||/function \w+\(\) \{\}/.test(b.toString()),y="a:";j?(_={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(y)},v={current:null},g={current:!1}):(_=new class{#e=l({});get data(){return c(this.#e)}set data(e){u(this.#e,e)}#t=l(null);get form(){return c(this.#t)}set form(e){u(this.#t,e)}#n=l(null);get error(){return c(this.#n)}set error(e){u(this.#n,e)}#s=l({});get params(){return c(this.#s)}set params(e){u(this.#s,e)}#r=l({id:null});get route(){return c(this.#r)}set route(e){u(this.#r,e)}#o=l({});get state(){return c(this.#o)}set state(e){u(this.#o,e)}#a=l(-1);get status(){return c(this.#a)}set status(e){u(this.#a,e)}#i=l(new URL(y));get url(){return c(this.#i)}set url(e){u(this.#i,e)}},v=new class{#e=l(null);get current(){return c(this.#e)}set current(e){u(this.#e,e)}},g=new class{#e=l(!1);get current(){return c(this.#e)}set current(e){u(this.#e,e)}},T.v=()=>g.current=!0);function ce(t){Object.assign(_,t)}export{J as H,F as N,z as P,X as S,ne as a,x as b,re as c,B as d,D as e,ee as f,te as g,Y as h,$ as i,w as j,q as k,M as l,K as m,v as n,R as o,_ as p,H as q,Q as r,Z as s,W as t,g as u,se as v,ce as w,oe as x};