1import{o as tt,s as xt}from"./DHQ00iRt.js";import{b as $t,H as ie,S as Ce,R as De}from"./3ilKiyX7.js";import{ae as Me,e as O,g as j,h as N,aV as de,bV as Ct}from"./D2SyU8iC.js";import{v as Dt}from"./odkwNm5L.js";(function(){try{var e=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{};e.__faroBundleId_app="1790166139183e90ec77a49"}catch{}})();new URL("sveltekit-internal://");function Mt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Bt(e){return e.split("%25").map(decodeURI).join("%25")}function Vt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Re({href:e}){return e.split("#")[0]}function Ft(e,t,r,n=!1){const o=new URL(e);Object.defineProperty(o,"searchParams",{value:new Proxy(o.searchParams,{get(s,a){if(a==="get"||a==="getAll"||a==="has")return(f,...l)=>(r(f),s[a](f,...l));t();const c=Reflect.get(s,a);return typeof c=="function"?c.bind(s):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];n&&i.push("hash");for(const s of i)Object.defineProperty(o,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return o}function T(){}function qt(...e){let t=5381;for(const r of e)if(typeof r=="string"){let n=r.length;for(;n;)t=t*33^r.charCodeAt(--n)}else if(ArrayBuffer.isView(r)){const n=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);let o=n.length;for(;o;)t=t*33^n[--o]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}const Ht=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&ee.delete(Be(e)),Ht(e,t));const ee=new Map;function Wt(e,t){const r=Be(e,t),n=document.querySelector(r);if(n?.textContent){n.remove();let{body:o,...i}=JSON.parse(n.textContent);n.getAttribute("data-b64")!==null&&(o=$t(o));const a=n.getAttribute("data-ttl");return a&&ee.set(r,{body:o,init:i,ttl:1e3*Number(a)}),Promise.resolve(new Response(o,i))}return window.fetch(e,t)}function Gt(e,t,r){if(ee.size>0){const n=Be(e,r),o=ee.get(n);if(o){if(performance.now()<o.ttl&&["default","force-cache","only-if-cached",void 0].includes(r?.cache))return new Response(o.body,o.init);ee.delete(n)}}return window.fetch(t,r)}function Be(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const o=[];t.headers&&o.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&o.push(t.body),n+=`[data-hash="${qt(...o)}"]`}return n}const Yt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Kt=/^\/\((?:[^)]+)\)$/;function Xt(e){const t=[];return{pattern:e==="/"||Kt.test(e)?/^\/$/:new RegExp(`^${ut(e).map(n=>{const o=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(o)return t.push({name:o[1],matcher:o[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const s=n.split(/\[(.+?)\](?!\])/);return"/"+s.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ie(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ie(String.fromCharCode(...c.slice(2).split("-").map(y=>parseInt(y,16))));const l=Yt.exec(c),[,h,d,u,p]=l;return t.push({name:u,matcher:p,optional:!!h,rest:!!d,chained:d?f===1&&s[0]==="":!1}),d?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return Ie(c)}).join("")}).join("")}/?$`),params:t}}function zt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function ut(e){return e.slice(1).split("/").filter(zt)}function Jt(e,t,r){const n={},o=e.slice(1),i=o.filter(a=>a!==void 0);let s=0;for(let a=0;a<t.length;a+=1){const c=t[a];let f=o[a-s];if(c.chained&&c.rest&&s&&(f=o.slice(a-s,a+1).filter(l=>l).join("/"),s=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[a+1],h=o[a+1];l&&!l.rest&&l.optional&&h&&c.chained&&(s=0),!l&&!h&&Object.keys(n).length===i.length&&(s=0);continue}if(c.optional&&c.chained){s++;continue}return}if(!s)return n}function Ie(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const Zt=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function Zr(e,t){const r=ut(e),n=e!="/"&&e.endsWith("/");return"/"+r.map(o=>o.replace(Zt,(i,s,a,c)=>{const f=t[c];if(!f){if(s||a&&f!==void 0)return"";throw new Error(`Missing parameter '${c}' in route ${e}`)}if(f.startsWith("/")||f.endsWith("/"))throw new Error(`Parameter '${c}' in route ${e}
1 cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return f})).filter(Boolean).join("/")+(n?"/":"")}function Qt({nodes:e,server_loads:t,dictionary:r,matchers:n}){const o=new Set(t);return Object.entries(r).map(([a,[c,f,l]])=>{const{pattern:h,params:d}=Xt(a),u={id:a,exec:p=>{const y=h.exec(p);if(y)return Jt(y,d,n)},errors:[1,...l||[]].map(p=>e[p]),layouts:[0,...f||[]].map(s),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(a){const c=a<0;return c&&(a=~a),[c,e[a]]}function s(a){return a===void 0?a:[o.has(a),e[a]]}}function dt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function rt(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const L=globalThis.__sveltekit_s50g1r?.base??"",er=globalThis.__sveltekit_s50g1r?.assets??L??"",ht="sveltekit:snapshot",pt="sveltekit:scroll",mt="sveltekit:states",tr="sveltekit:pageurl",Y="sveltekit:history",re="sveltekit:navigation",V={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ce=location.origin;function Ve(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const r=document.getElementsByTagName("base");t=r.length?r[0].href:document.URL}return new URL(e,t)}function q(){return{x:pageXOffset,y:pageYOffset}}function H(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const nt={...V,"":V.hover};function _t(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function gt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=_t(e)}}function Te(e,t,r){let n;try{if(n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),r&&n.hash.match(/^#[^/]/)){const a=location.hash.split("#")[1]||"/";n.hash=`#${a}${n.hash}`}}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,i=!n||!!o||ke(n,t,r)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=n?.origin===ce&&e.hasAttribute("download");return{url:n,external:i,target:o,download:s}}function he(e){let t=null,r=null,n=null,o=null,i=null,s=null,a=e;for(;a&&a!==document.documentElement;)n===null&&(n=H(a,"preload-code")),o===null&&(o=H(a,"preload-data")),t===null&&(t=H(a,"keepfocus")),r===null&&(r=H(a,"noscroll")),i===null&&(i=H(a,"reload")),s===null&&(s=H(a,"replacestate")),a=_t(a);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:nt[n??"off"],preload_data:nt[o??"off"],keepfocus:c(t),noscroll:c(r),reload:c(i),replace_state:c(s)}}function at(e){const t=Me(e);let r=!0;function n(){r=!0,t.update(s=>s)}function o(s){r=!1,t.set(s)}function i(s){let a;return t.subscribe(c=>{(a===void 0||r&&c!==a)&&s(a=c)})}return{notify:n,set:o,subscribe:i}}const wt={v:T};function rr(){const{set:e,subscribe:t}=Me(!1);let r;async function n(){clearTimeout(r);try{const o=await fetch(`${er}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!o.ok)return!1;const s=(await o.json()).version!==Dt;return s&&(e(!0),wt.v(),clearTimeout(r)),s}catch{return!1}}return{subscribe:t,check:n}}function ke(e,t,r){return e.origin!==ce||!e.pathname.startsWith(t)?!0:r?e.pathname!==location.pathname:!1}function Qr(e){}const nr=-1,ar=-2,or=-3,sr=-4,ir=-5,cr=-6,lr=-7,yt=2**32-1,Oe=yt-1;function fr(e){return!(!Number.isInteger(e)||e<0||e>Oe)}function ur(e){return!(!Number.isInteger(e)||e<0||e>yt)}function dr(e){return Uint8Array.fromBase64(e).buffer}function hr(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function pr(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let o=0;o<r;o++)n[o]=t.charCodeAt(o);return n.buffer}const mr=typeof Uint8Array.fromBase64=="function",_r=typeof process=="object"&&process.versions?.node!==void 0,gr=mr?dr:_r?hr:pr;function wr(e,t){return e}const yr={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{const o=globalThis[e];return r!==void 0?new o(t,r,n):new o(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Oe]=void 0,delete t[Oe],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>
1{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},vr=Object.freeze(yr);function br(e,t,r){const n=wr(vr);if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const o=e,i=Array(o.length);let s=null;function a(c,f=!1){if(c===nr)return n.fromPrimitive(void 0);if(c===or)return n.fromPrimitive(NaN);if(c===sr)return n.fromPrimitive(1/0);if(c===ir)return n.fromPrimitive(-1/0);if(c===cr)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in i)return i[c];const l=o[c];if(!l||typeof l!="object")i[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const h=l[0],d=t&&Object.hasOwn(t,h)?t[h]:void 0;if(d){let u=l[1];if(typeof u!="number"&&(u=o.push(l[1])-1),Object.hasOwn(i,u))return i[c]=d(i[u]);if(s??=new Set,s.has(u))throw new Error("Invalid circular reference");return s.add(u),i[c]=d(a(u)),s.delete(u),i[c]}switch(h){case"Date":i[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();i[c]=u;for(let m=1;m<l.length;m+=1)n.addValue(u,a(l[m]));break;case"Map":const p=n.createMap();i[c]=p;for(let m=1;m<l.length;m+=2)n.addEntry(p,a(l[m]),a(l[m+1]));break;case"RegExp":i[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const m=l[1];if(typeof o[m]=="object"&&o[m][0]!=="BigInt")throw new Error("Invalid input");i[c]=n.box(a(m));break}case"BigInt":i[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const y=n.createNullPrototypeObject();i[c]=y;for(let m=1;m<l.length;m+=2){if(l[m]==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(y,l[m],a(l[m+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(o[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const m=a(l[1]);i[c]=n.fromViewInfo(h,m,l[2],l[3]);break}case"ArrayBuffer":{const m=l[1];if(typeof m!="string")throw new Error("Invalid ArrayBuffer encoding");i[c]=n.fromArrayBuffer(gr(m));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{i[c]=n.fromStringValue(h,l[1]);break}default:throw new Error(`Unknown type ${h}`)}}else if(l[0]===lr){const h=l[1];if(!ur(h))throw new Error("Invalid input");const d=n.createSparseArray(h);i[c]=d;for(let u=2;u<l.length;u+=2){const p=l[u];if(!fr(p)||p>=h)throw new Error("Invalid input");n.set(d,p,a(l[u+1]))}}else{const h=n.createArray(l.length);i[c]=h;for(let d=0;d<l.length;d+=1){const u=l[d];u!==ar&&n.set(h,d,a(u))}}else{const h=n.createObject();i[c]=h;
1for(const d of Object.keys(l)){if(d==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(h,d,a(l[d]))}}return i[c]}return a(0)}const vt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...vt];const Er=new Set([...vt]);[...Er];function kr(e){return e.filter(t=>t!=null)}const Ar="x-sveltekit-invalidated",Sr="x-sveltekit-trailing-slash";function W(e,t){return e+"/"+t}function pe(e){return e instanceof ie||e instanceof Ce?e.status:500}function Rr(e){return e instanceof Ce?e.text:"Internal Error"}let R,ne,Pe;const Ir=tt.toString().includes("$$")||/function \w+\(\) \{\}/.test(tt.toString()),ot="a:";Ir?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ot)},ne={current:null},Pe={current:!1}):(R=new class{#e=O({});get data(){return j(this.#e)}set data(t){N(this.#e,t)}#t=O(null);get form(){return j(this.#t)}set form(t){N(this.#t,t)}#r=O(null);get error(){return j(this.#r)}set error(t){N(this.#r,t)}#n=O({});get params(){return j(this.#n)}set params(t){N(this.#n,t)}#a=O({id:null});get route(){return j(this.#a)}set route(t){N(this.#a,t)}#o=O({});get state(){return j(this.#o)}set state(t){N(this.#o,t)}#s=O(-1);get status(){return j(this.#s)}set status(t){N(this.#s,t)}#i=O(new URL(ot));get url(){return j(this.#i)}set url(t){N(this.#i,t)}},ne=new class{#e=O(null);get current(){return j(this.#e)}set current(t){N(this.#e,t)}},Pe=new class{#e=O(!1);get current(){return j(this.#e)}set current(t){N(this.#e,t)}},wt.v=()=>Pe.current=!0);function Fe(e){Object.assign(R,e)}const Pr="/__data.json",Ur=".html__data.json";function Lr(e){return e.endsWith(".html")?e.replace(/\.html$/,Ur):e.replace(/\/$/,"")+Pr}const st={spanContext(){return Tr},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Tr={traceId:"",spanId:"",traceFlags:0};async function*Or(e,t){let r=!1,n="";const o=new TextDecoder;for(;;){let i=n.indexOf(t);for(;i!==-1;)yield n.slice(0,i),n=n.slice(i+t.length),i=n.indexOf(t);if(r){n&&(yield n);return}const s=await e.read();r=s.done,s.value&&(n+=o.decode(s.value,{stream:!0})),r&&(n+=o.decode())}}async function*jr(e){for await(const t of Or(e,` 2`)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:Nr}=xt,xr=new Set(["icon","shortcut icon","apple-touch-icon"]);let Z=null;const M=dt(pt)??{},ae=dt(ht)??{},D={url:at({}),page:at({}),navigating:Me(null),updated:rr()};function qe(e){M[e]=q()}function $r(e,t){let r=e+1;for(;M[r];)delete M[r],r+=1;for(r=t+1;ae[r];)delete ae[r],r+=1}function z(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(T)}async function bt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let He,je,me,C,Ne,E;const _e=[],ge=[];let P=null;function oe(){P?.fork?.then(e=>e?.discard()),P=null,G={element:void 0,href:void 0}}const ue=new Map,We=new Set,Et=new Set,K=new Set;let g={branch:[],error:null,url:null,nav:null},Ge=!1,we=!1,it=!0,se=!1,Q=!1,kt=!1,le=!1,Ye,S,U,x;const te=new Set;let Ue;const ye=new Map,ve=new Map;async function nn(e,t,r){if(globalThis.__sveltekit_s50g1r.data){const{q:i={},p:s={},l:a={},f:c={}}=globalThis.__sveltekit_s50g1r.data;for(const f in i)i[f];for(const f in a)a[f];for(const f in c)c[f];for(const f in s)s[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),He=Qt(e),C=document.documentElement,Ne=t,je=e.nodes[0],me=e.nodes[1],je(),me(),S=history.state?.[Y],U=history.state?.[re],S||(S=U=Date.now(),history.replaceState({...history.state,[Y]:S,[re]:U},""));const n=M[S];function o(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(o(),await Hr(Ne,r)):(await X({type:"enter",url:Ve(E.hash?Yr(new URL(location.href)):location.href),replace_state:!0}),o()),qr()}async function At(e=!0,t=!0){if(await(Ue||=Promise.resolve()),!Ue)return;Ue=null;const r=x={},n=await fe(g.url,!0);oe();const o=new Map;if(le){for(const s of ye.values())for(const{resource:a}of s.values())a.refresh();for(const[s,a]of ve)for(const[c,{resource:f}]of a){const l=W(s,c),h=f.reconnect();h.catch(T),o.set(l,h)}}if(e){const s=R.state,a=n&&await Je(n);if(!a||r!==x)return;if(a.type==="redirect")return Ke(new URL(a.location,g.url).href,{replaceState:!0},1,r);t||(a.props.page.state=s),Fe(a.props.page),g={...a.state,nav:g.nav},xe(),Ye.$set(a.props)}else xe();const i=[];for(const s of ye.values())for(const{resource:a}of s.values())i.push(a);for(const[s,a]of ve)for(const c of a.keys()){const f=W(s,c),l=o.get(f);l&&i.push(l)}await Promise.all(i).catch(T)}function xe(){_e.length=0,le=!1}
2function St(e){ge.some(t=>t?.snapshot)&&(ae[e]=ge.map(t=>t?.snapshot?.capture()))}function Rt(e){ae[e]?.forEach((t,r)=>{ge[r]?.snapshot?.restore(t)})}function ct(){qe(S),rt(pt,M),St(U),rt(ht,ae)}async function Ke(e,t,r,n){let o,i;t.invalidateAll&&oe(),await X({type:"goto",url:Ve(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){le=!0,o=new Set;for(const[s,a]of ye)for(const[c,f]of a)f.resource?.reset(),o.add(W(s,c));i=new Set;for(const[s,a]of ve)for(const c of a.keys())i.add(W(s,c))}t.invalidate&&t.invalidate.forEach(Tt)}}),t.invalidateAll&&de().then(de).then(()=>{for(const[s,a]of ye)for(const[c,{resource:f}]of a)o?.has(W(s,c))&&f.start();for(const[s,a]of ve)for(const[c,{resource:f}]of a)i?.has(W(s,c))&&f.reconnect()})}async function Cr(e){if(e.id!==P?.id){oe();const t={};te.add(t),P={id:e.id,token:t,promise:Je({...e,preload:t}).then(r=>(te.delete(t),r.type==="loaded"&&r.state.error&&oe(),r)),fork:null}}return P.promise}async function Le(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function It(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},Fe(e.props.page),Ye=new E.root({target:t,props:{...e.props,stores:D,components:ge},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const o={from:null,to:{...n,scroll:M[S]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(i=>i(o))}Rt(U),we=!0}async function be({url:e,params:t,branch:r,errors:n,status:o,error:i,route:s,form:a}){let c="never";if(L&&(e.pathname===L||e.pathname===L+"/"))c="always";else for(const p of r)p?.slash!==void 0&&(c=p.slash);e.pathname=Mt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:i,route:s},props:{constructors:kr(r).map(p=>p.node.component),page:et(R)}};a!==void 0&&(f.props.form=a);let l={},h=!R,d=0;for(let p=0;p<Math.max(r.length,g.branch.length);p+=1){const y=r[p],m=g.branch[p];y?.data!==m?.data&&(h=!0),y&&(l={...l,...y.data},h&&(f.props[`data_${d}`]=l),d+=1)}return(!g.url||e.href!==g.url.href||g.error!==i||a!==void 0&&a!==R.form||h)&&(f.props.page={error:i,params:t,route:{id:s?.id??null},state:{},status:o,url:new URL(e),form:a??null,data:h?l:R.data}),f}async function Xe({loader:e,parent:t,url:r,params:n,route:o,server_data_node:i}){let s=null,a=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},f=await e();if(f.universal?.load){let l=function(...d){for(const u of d){const{href:p}=new URL(u,r);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:st,current:st},route:new Proxy(o,{get:(d,u)=>(a&&(c.route=!0),d[u])}),params:new Proxy(n,{get:(d,u)=>(a&&c.params.add(u),d[u])}),data:i?.data??null,url:Ft(r,()=>{a&&(c.url=!0)},d=>{a&&c.search_params.add(d)},E.hash),async fetch(d,u){d instanceof Request&&(u={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d?.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...u});const{resolved:p,promise:y}=Pt(d,u,r);return a&&l(p.href),y},setHeaders:T,depends:l,parent(){return a&&(c.parent=!0),t()},untrack(d){a=!1;try{return d()}finally{a=!0}}};s=await f.universal.load.call(null,h)??null}return{node:f,loader:e,server:i,universal:f.universal?.load?{type:"data",data:s,uses:c}:null,data:s??i?.data??null,slash:f.universal?.trailingSlash??i?.slash}}function Pt(e,t,r){let n=e instanceof Request?e.url:e;const o=new URL(n,r);o.origin===r.origin&&(n=o.href.slice(r.origin.length));const i=we?Gt(n,o.href,t):Wt(n,t);return{resolved:o,promise:i}}function lt(e,t,r,n,o,i){if(le)return!0;if(!o)return!1;if(o.parent&&e||o.route&&t||o.url&&r)return!0;for(const s of o.search_params)if(n.has(s))return!0;for(const s of o.params)if(i[s]!==g.params[s])return!0;for(const s of o.dependencies)if(_e.some(a=>a(new URL(s))))return!0;return!1}function ze(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Dr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const o=e.searchParams.getAll(n),i=t.searchParams.getAll(n);o.every(s=>i.includes(s))&&i.every(s=>o.includes(s))&&r.delete(n)}return r}function ft({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:et(R),constructors:[]}}}async function Je({id:e,invalidating:t,url:r,params:n,route:o,preload:i}){if(P?.id===e)return te.delete(P.token),P.promise;const{errors:s,layouts:a,leaf:c}=o,f=[...a,c];
2s.forEach(w=>w?.().catch(T)),f.forEach(w=>w?.[1]().catch(T));let l=null;const h=g.url?e!==Ee(g.url):!1,d=g.route?o.id!==g.route.id:!1,u=Dr(g.url,r);let p=!1;{const w=f.map((v,k)=>{const A=g.branch[k],b=!!v?.[0]&&(A?.loader!==v[1]||lt(p,d,h,u,A.server?.uses,n));return b&&(p=!0),b});if(w.some(Boolean)){try{l=await Ot(r,w)}catch(v){const k=await F(v,{url:r,params:n,route:{id:e}});return i&&te.has(i)?ft({error:k,url:r,params:n,route:o}):Ae({status:pe(v),error:k,url:r,route:o})}if(l.type==="redirect")return l}}const y=l?.nodes;let m=!1;const _=f.map(async(w,v)=>{if(!w)return;const k=g.branch[v],A=y?.[v];if((!A||A.type==="skip")&&w[1]===k?.loader&&!lt(m,d,h,u,k.universal?.uses,n))return k;if(m=!0,A?.type==="error")throw A;return Xe({loader:w[1],url:r,params:n,route:o,parent:async()=>{const $={};for(let B=0;B<v;B+=1)Object.assign($,(await _[B])?.data);return $},server_data_node:ze(A===void 0&&w[0]?{type:"skip"}:A??null,w[0]?k?.server:void 0)})});for(const w of _)w.catch(T);const I=[];for(let w=0;w<f.length;w+=1)if(f[w])try{I.push(await _[w])}catch(v){if(v instanceof De)return{type:"redirect",location:v.location};if(i&&te.has(i))return ft({error:await F(v,{params:n,url:r,route:{id:o.id}}),url:r,params:n,route:o});let k=pe(v),A;if(y?.includes(v))k=v.status??k,A=v.error;else if(v instanceof ie)A=v.body;else{if(await D.updated.check())return await bt(),await z(r);A=await F(v,{params:n,url:r,route:{id:o.id}})}const b=await Mr(w,I,s);return b?be({url:r,params:n,branch:I.slice(0,b.idx).concat(b.node),errors:s,status:k,error:A,route:o}):await Lt(r,{id:o.id},A,k)}else I.push(void 0);return be({url:r,params:n,branch:I,errors:s,status:200,error:null,route:o,form:t?void 0:null})}async function Mr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ae({status:e,error:t,url:r,route:n}){const o={};let i=null;if(E.server_loads[0]===0)try{const a=await Ot(r,[!0]);if(a.type!=="data"||a.nodes[0]&&a.nodes[0].type!=="data")throw 0;i=a.nodes[0]??null}catch(a){if(!(a instanceof ie&&a.status===404)&&(r.origin!==ce||r.pathname!==location.pathname||Ge))return await z(r)}try{const s=await Xe({loader:je,url:r,params:o,route:n,parent:()=>Promise.resolve({}),server_data_node:ze(i)}),a={node:await me(),loader:me,universal:null,server:null,data:null};return be({url:r,params:o,branch:[s,a],status:e,error:t,errors:[],route:null})}catch(s){if(s instanceof De){await Ke(new URL(s.location,location.href),{},0);return}const a=await E.get_error_template(),c=await F(s,{url:r,params:o,route:n}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=a({status:e,message:f}),h=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(h.head),document.head),document.documentElement.replaceChild(document.adoptNode(h.body),document.body),s}}async function Br(e){const t=e.href;if(ue.has(t))return ue.get(t);let r;try{const n=(async()=>{let o=await E.hooks.reroute({url:new URL(e),fetch:async(i,s)=>Pt(i,s,e).promise})??e;if(typeof o=="string"){const i=new URL(e);E.hash?i.hash=o:i.pathname=o,o=i}return o})();ue.set(t,n),r=await n}catch{ue.delete(t);return}return r}async function fe(e,t){if(e&&!ke(e,L,E.hash)){const r=await Br(e);if(!r)return;const n=Vr(r);for(const o of He){const i=o.exec(n);if(i)return{id:Ee(e),invalidating:t,route:o,params:Vt(i),url:e}}}}function Vr(e){return Bt(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function Ee(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Ut({url:e,type:t,intent:r,delta:n,event:o,scroll:i}){let s=!1;const a=Qe(g,r,e,t,i??null);n!==void 0&&(a.navigation.delta=n),o!==void 0&&(a.navigation.event=o);const c={...a.navigation,cancel:()=>{s=!0,a.reject(new Error("navigation cancelled"))}};return se||We.forEach(f=>f(c)),s?null:a}async function X({type:e,url:t,popped:r,keepfocus:n,noscroll:o,replace_state:i,state:s={},redirect_count:a=0,nav_token:c={},accept:f=T,block:l=T,event:h}){const d=x;x=c;const u=await fe(t,!1),p=e==="enter"?Qe(g,u,t,e):Ut({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:h});if(!p){l(),x===c&&(x=d);return}const y=S,m=U;f(),se=!0,we&&p.navigation.type!=="enter"&&D.navigating.set(ne.current=p.navigation);let _=u&&await Je(u);if(!_){if(ke(t,L,E.hash))return await z(t,i);_=await Lt(t,{id:null},await F(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,x!==c){p.reject(new Error("navigation aborted"));return}if(!_)return;if(_.type==="redirect"){if(a<20){await X({type:e,url:new URL(_.location,t),popped:r,keepfocus:n,noscroll:o,replace_state:i,state:s,redirect_count:a+1,nav_token:c}),p.fulfil(void 0);return}if(_=await Ae({status:500,error:await F(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!_)return}else if(_.props.page.status>=400&&await D.updated.check())return await bt(),await z(t,i);if(xe(),qe(y),St(m),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),s=r?r.state:s,!r){const b=i?0:1,$={[Y]:S+=b,[re]:U+=b,[mt]:s};(i?history.replaceState:history.pushState).call(history,$,"",t),i||$r(S,U)}const I=u&&P?.id===u.id?P.fork:null;P?.fork&&!I?oe():(P=null,G={element:void 0,href:void 0}),_.props.page.state=s;let w;if(we){const b=(await Promise.all(Array.from(Et,J=>J(p.navigation)))).filter(J=>typeof J=="function");if(b.length>0){let J=function(){b.forEach(Se=>{K.delete(Se)})};b.push(J),b.forEach(Se=>{K.add(Se)})}const $=p.navigation.to;g={..._.state,nav:{params:$.params,route:$.route,url:$.url}},_.props.page&&(_.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const B=I&&await I;B?w=B.commit():(Z=null,Ye.$set(_.props),Z&&Object.assign(_.props.page,Z),Fe(_.props.page),w=Ct?.()),kt=!0}else await It(_,Ne,!1);const{activeElement:v}=document;if(await w,await de(),await de(),x!==c){p.reject(new Error("navigation aborted"));return}_.props.page&&Z&&Object.assign(_.props.page,Z);let k=null;if(it){const b=r?r.scroll:o?q():null;b?scrollTo(b.x,b.y):(k=t.hash&&document.getElementById(Nt(t)))?k.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==v&&document.activeElement!==document.body;!n&&!A&&Gr(t,!k),it=!0,se=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=q()),K.forEac
2h(b=>b(p.navigation)),e==="popstate"&&Rt(U),D.navigating.set(ne.current=null)}async function Lt(e,t,r,n,o){return e.origin===ce&&e.pathname===location.pathname&&!Ge?await Ae({status:n,error:r,url:e,route:t}):await z(e,o)}let G={element:void 0,href:void 0};function Fr(){let e,t;C.addEventListener("mousemove",s=>{const a=s.target;clearTimeout(e),e=setTimeout(()=>{o(a,V.hover)},20)});function r(s){s.defaultPrevented||o(s.composedPath()[0],V.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(s=>{for(const a of s)a.isIntersecting&&(Le(new URL(a.target.href)),n.unobserve(a.target))},{threshold:0});async function o(s,a){const c=gt(s,C),f=c===G.element&&c?.href===G.href&&a>=t;if(!c||f)return;const{url:l,external:h,download:d}=Te(c,L,E.hash);if(h||d)return;const u=he(c),p=l&&Ee(g.url)===Ee(l);if(!(u.reload||p))if(a<=u.preload_data){G={element:c,href:c.href},t=V.tap;const y=await fe(l,!1);if(!y)return;Cr(y)}else a<=u.preload_code&&(G={element:c,href:c.href},t=a,Le(l))}function i(){n.disconnect();for(const s of C.querySelectorAll("a")){const{url:a,external:c,download:f}=Te(s,L,E.hash);if(c||f)continue;const l=he(s);l.reload||(l.preload_code===V.viewport&&n.observe(s),l.preload_code===V.eager&&Le(a))}}K.add(i),i()}function F(e,t){if(e instanceof ie)return e.body;const r=pe(e),n=Rr(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ze(e,t){Nr(()=>(e.add(t),()=>{e.delete(t)}))}function an(e){Ze(K,e)}function on(e){Ze(We,e)}function sn(e){Ze(Et,e)}function cn(e,t={}){return e=new URL(Ve(e)),e.origin!==ce?Promise.reject(new Error("goto: invalid URL")):Ke(e,t,0)}function ln(e){return Tt(e),At()}function Tt(e){if(typeof e=="function")_e.push(e);else{const{href:t}=new URL(e,location.href);_e.push(r=>r.href===t)}}function fn(){return le=!0,At()}function qr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(ct(),!se){const n=Qe(g,void 0,null,"leave"),o={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};We.forEach(i=>i(o))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ct()}),navigator.connection?.saveData||Fr(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=gt(t.composedPath()[0],C);if(!r)return;const{url:n,external:o,target:i,download:s}=Te(r,L,E.hash);if(!n)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const a=he(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||s)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),h=f===Re(location);if(o||a.reload&&(!h||!l)){Ut({url:n,type:"link",event:t})?se=!0:t.preventDefault();return}if(l!==void 0&&h){const[,d]=g.url.href.split("#");if(d===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(Q=!0,qe(S),e(n),!a.replace_state)return;Q=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await X({type:"link",url:n,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??n.href===location.href,event:t})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const s=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(ke(s,L,!1))return;const a=t.target,c=he(a);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(a,n);s.search=new URLSearchParams(f).toString(),X({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!$e){if(t.state?.[Y]){const r=t.state[Y];if(x={},r===S)return;const n=M[r],o=t.state[mt]??{},i=new URL(t.state[tr]??location.href),s=t.state[re],a=g.url?Re(location)===Re(g.url):!1;if(s===U&&(kt||a)){o!==R.state&&(R.state=o),e(i),M[S]=q(),n&&scrollTo(n.x,n.y),S=r;return}const f=r-S;await X({type:"popstate",url:i,popped:{state:o,scroll:n,delta:f},accept:()=>{S=r,U=s},block:()=>{history.go(-f)},nav_token:x,event:t})}
2else if(!Q){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Q&&(Q=!1,history.replaceState({...history.state,[Y]:++S,[re]:U},"",location.href))});for(const t of document.querySelectorAll("link"))xr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(ne.current=null)});function e(t){g.url=R.url=t,D.page.set(et(R)),D.page.notify()}}async function Hr(e,{status:t=200,error:r,node_ids:n,params:o,route:i,server_route:s,data:a,form:c}){Ge=!0;const f=new URL(location.href);let l;({params:o={},route:i={id:null}}=await fe(f,!1)||{}),l=He.find(({id:u})=>u===i.id);let h,d=!0;try{const u=n.map(async(y,m)=>{const _=a[m];return _?.uses&&(_.uses=jt(_.uses)),Xe({loader:E.nodes[y],url:f,params:o,route:i,parent:async()=>{const I={};for(let w=0;w<m;w+=1)Object.assign(I,(await u[w]).data);return I},server_data_node:ze(_)})}),p=await Promise.all(u);if(l){const y=l.layouts;for(let m=0;m<y.length;m++)y[m]||p.splice(m,0,void 0)}h=await be({url:f,params:o,branch:p,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof De)return await z(new URL(u.location,location.href));h=await Ae({status:pe(u),error:await F(u,{url:f,params:o,route:i}),url:f,route:i}),e.textContent="",d=!1}h&&(h.props.page&&(h.props.page.state={}),await It(h,e,d))}async function Ot(e,t){const r=new URL(e);r.pathname=Lr(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(Sr,"1"),r.searchParams.append(Ar,t.map(i=>i?"1":"0").join(""));const n=window.fetch,o=await n(r.href,{});if(!o.ok){let i;throw o.headers.get("content-type")?.includes("application/json")?i=await o.json():o.status===404?i="Not Found":o.status===500&&(i="Internal Error"),new ie(o.status,i)}return new Promise((i,s)=>{Wr(i,o).catch(s)})}async function Wr(e,t){const r=t.body.getReader(),n=new Map;function o(i){return br(i,{...E.decoders,Promise:s=>new Promise((a,c)=>{n.set(s,{fulfil:a,reject:c})})})}for await(const i of jr(r)){if(i.type==="redirect")return e(i);if(i.type==="data")i.nodes?.forEach(s=>{s?.type==="data"&&(s.uses=jt(s.uses),s.data=o(s.data))}),e(i);else if(i.type==="chunk"){const{id:s,data:a,error:c}=i,f=n.get(s);n.delete(s),c?f.reject(o(c)):f.fulfil(o(a))}}}function jt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let $e=!1;function Gr(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=Nt(e);if(n&&document.getElementById(n)){const{x:i,y:s}=q();setTimeout(()=>{const a=history.state;$e=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,"",e),t&&scrollTo(i,s),$e=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const o=getSelection();if(o&&o.type!=="None"){const i=[];for(let s=0;s<o.rangeCount;s+=1)i.push(o.getRangeAt(s));setTimeout(()=>{if(o.rangeCount===i.length){for(let s=0;s<o.rangeCount;s+=1){const a=i[s],c=o.getRangeAt(s);if(a.commonAncestorContainer!==c.commonAncestorContainer||a.startContainer!==c.startContainer||a.endContainer!==c.endContainer||a.startOffset!==c.startOffset||a.endOffset!==c.endOffset)return}o.removeAllRanges()}})}}}function Qe(e,t,r,n,o=null){let i,s;const a=new Promise((f,l)=>{i=f,s=l});return a.catch(T),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:o},willUnload:!t,type:n,complete:a},fulfil:i,reject:s}}function et(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Yr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Nt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{ln as a,on as b,an as c,L as d,nn as e,cn as g,fn as i,Qr as l,sn as o,R as p,Zr as r,D as s};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.