var $=Object.defineProperty;var x=(e,t,n)=>t in e?$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var c=(e,t,n)=>x(e,typeof t!="symbol"?t+"":t,n);import{x as p}from"./wWjeKwgK.js";import{w as v}from"./DzEwxqd5.js";import{a as E}from"./CjqRYzcs.js";new URL("sveltekit-internal://");function G(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Y(e){return e.split("%25").map(decodeURI).join("%25")}function q(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function D({href:e}){return e.split("#")[0]}function H(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return d=>(n(d),s[o](d));t();const i=Reflect.get(s,o);return typeof i=="function"?i.bind(s):i}}),enumerable:!0,configurable:!0});const l=["href","pathname","search","toString","toJSON"];r&&l.push("hash");for(const s of l)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function U(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const K=new TextDecoder;function k(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const T=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&f.delete(g(e)),T(e,t));const f=new Map;function B(e,t){const n=g(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...l}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&f.set(n,{body:a,init:l,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=k(a)),Promise.resolve(new Response(a,l))}return window.fetch(e,t)}function J(e,t,n){if(f.size>0){const r=g(e,n),a=f.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);f.delete(r)}}return window.fetch(t,n)}function g(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&t.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${U(...a)}"]`}return r}const O="1760062016811",W="sveltekit:snapshot",X="sveltekit:scroll",z="sveltekit:states",M="sveltekit:pageurl",F="sveltekit:history",Q="sveltekit:navigation",m={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},y=location.origin;function Z(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ee(){return{x:pageXOffset,y:pageYOffset}}function u(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const _={...m,"":m.hover};function R(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function te(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=R(e)}}function ne(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,l=!r||!!a||N(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=(r==null?void 0:r.origin)===y&&e.hasAttribute("download");return{url:r,external:l,target:a,download:s}}function re(e){let t=null,n=null,r=null,a=null,l=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=u(o,"preload-code")),a===null&&(a=u(o,"preload-data")),t===null&&(t=u(o,"keepfocus")),n===null&&(n=u(o,"noscroll")),l===null&&(l=u(o,"reload")),s===null&&(s=u(o,"replacestate")),o=R(o);function i(d){switch(d){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:_[r??"off"],preload_data:_[a??"off"],keepfocus:i(t),noscroll:i(n),reload:i(l),replace_state:i(s)}}function ae(e){const t=v(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function l(s){let o;return t.subscribe(i=>{(o===void 0||n&&i!==o)&&s(o=i)})}return{notify:r,set:a,subscribe:l}}const S={v:()=>{}};function se(){const{set:e,subscribe:t}=v(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${E}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==O;return s&&(e(!0),S.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function N(e,t,n){return e.origin!==y||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function oe(e){}const A=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...A];const I=new Set([...A]);[...I];let w,b,h;const L=p.toString().includes("$$")||/function \w+\(\) \{\}/.test(p.toString());L?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},b={current:null},h={current:!1}):(w=new class{constructor(){c(this,"data",$state.raw({}));c(this,"form",$state.raw(null));c(this,"error",$state.raw(null));c(this,"params",$state.raw({}));c(this,"route",$state.raw({id:null}));c(this,"state",$state.raw({}));c(this,"status",$state.raw(-1));c(this,"url",$state.raw(new URL("https://example.com")))}},b=new class{constructor(){c(this,"current",$state.raw(null))}},h=new class{constructor(){c(this,"current",$state.raw(!1))}},S.v=()=>h.current=!0);function ue(e){Object.assign(w,e)}export{F as H,Q as N,M as P,z as S,re as a,D as b,se as c,ae as d,q as e,te as f,ne as g,G as h,N as i,Y as j,W as k,m as l,H as m,b as n,y as o,w as p,J as q,Z as r,ee as s,K as t,B as u,X as v,ue as w,oe as x};
