var dn=Object.defineProperty;var hn=(t,e,n)=>e in t?dn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var $=(t,e,n)=>hn(t,typeof e!="symbol"?e+"":e,n);function N(){}const pn=t=>t;function _n(t,e){for(const n in e)t[n]=e[n];return t}function ia(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function Te(t){return t()}function pe(){return Object.create(null)}function q(t){t.forEach(Te)}function ft(t){return typeof t=="function"}function mn(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}let dt;function ca(t,e){return t===e?!0:(dt||(dt=document.createElement("a")),dt.href=e,t===dt.href)}function gn(t){return Object.keys(t).length===0}function Yt(t,...e){if(t==null){for(const r of e)r(void 0);return N}const n=t.subscribe(...e);return n.unsubscribe?()=>n.unsubscribe():n}function la(t){let e;return Yt(t,n=>e=n)(),e}function fa(t,e,n){t.$$.on_destroy.push(Yt(e,n))}function ua(t,e,n,r){if(t){const a=Le(t,e,n,r);return t[0](a)}}function Le(t,e,n,r){return t[1]&&r?_n(n.ctx.slice(),t[1](r(e))):n.ctx}function da(t,e,n,r){if(t[2]&&r){const a=t[2](r(n));if(e.dirty===void 0)return a;if(typeof a=="object"){const s=[],i=Math.max(e.dirty.length,a.length);for(let o=0;o32){const e=[],n=t.ctx.length/32;for(let r=0;rwindow.performance.now():()=>Date.now(),Jt=Ne?t=>requestAnimationFrame(t):N;const z=new Set;function Ie(t){z.forEach(e=>{e.c(t)||(z.delete(e),e.f())}),z.size!==0&&Jt(Ie)}function wn(t){let e;return z.size===0&&Jt(Ie),{promise:new Promise(n=>{z.add(e={c:t,f:n})}),abort(){z.delete(e)}}}let St=!1;function vn(){St=!0}function bn(){St=!1}function $n(t,e,n,r){for(;t>1);n(a)<=r?t=a+1:e=a}return t}function En(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const c=[];for(let l=0;l0&&e[n[a]].claim_order<=l?a+1:$n(1,a,g=>e[n[g]].claim_order,l))-1;r[c]=n[d]+1;const f=d+1;n[f]=c,a=Math.max(f,a)}const s=[],i=[];let o=e.length-1;for(let c=n[a]+1;c!=0;c=r[c-1]){for(s.push(e[c-1]);o>=c;o--)i.push(e[o]);o--}for(;o>=0;o--)i.push(e[o]);s.reverse(),i.sort((c,l)=>c.claim_order-l.claim_order);for(let c=0,l=0;c=s[l].claim_order;)l++;const d=lt.removeEventListener(e,n,r)}function $a(t){return function(e){return e.preventDefault(),t.call(this,e)}}function Ea(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function Aa(t){return function(e){e.target===this&&t.call(this,e)}}function xa(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Sa(t){return t.dataset.svelteH}function Ln(t){return Array.from(t.childNodes)}function Pe(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function je(t,e,n,r,a=!1){Pe(t);const s=(()=>{for(let i=t.claim_info.last_index;i=0;i--){const o=t[i];if(e(o)){const c=n(o);return c===void 0?t.splice(i,1):t[i]=c,a?c===void 0&&t.claim_info.last_index--:t.claim_info.last_index=i,o}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function Oe(t,e,n,r){return je(t,a=>a.nodeName===e,a=>{const s=[];for(let i=0;ia.removeAttribute(i))},()=>r(e))}function ka(t,e,n){return Oe(t,e,n,Xt)}function Ra(t,e,n){return Oe(t,e,n,Ce)}function Nn(t,e){return je(t,n=>n.nodeType===3,n=>{const r=""+e;if(n.data.startsWith(r)){if(n.data.length!==r.length)return n.splitText(r.length)}else n.data=r},()=>Zt(e),!0)}function Ta(t){return Nn(t," ")}function _e(t,e,n){for(let r=n;r0&&n.push(a);return n}class In{constructor(e=!1){$(this,"is_svg",!1);$(this,"e");$(this,"n");$(this,"t");$(this,"a");this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,n,r=null){this.e||(this.is_svg?this.e=Ce(n.nodeName):this.e=Xt(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(e)),this.i(r)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(e){for(let n=0;n>>0}function Cn(t,e){const n={stylesheet:xn(e),rules:{}};return _t.set(t,n),n}function me(t,e,n,r,a,s,i,o=0){const c=16.666/r;let l=`{ `;for(let p=0;p<=1;p+=c){const y=e+(n-e)*s(p);l+=p*100+`%{${i(y,1-y)}} `}const d=l+`100% {${i(n,1-n)}} }`,f=`__svelte_${Un(d)}_${o}`,g=Ue(t),{stylesheet:u,rules:_}=_t.get(g)||Cn(g,t);_[f]||(_[f]=!0,u.insertRule(`@keyframes ${f} ${d}`,u.cssRules.length));const h=t.style.animation||"";return t.style.animation=`${h?`${h}, `:""}${f} ${r}ms linear ${a}ms 1 both`,mt+=1,f}function Pn(t,e){const n=(t.style.animation||"").split(", "),r=n.filter(e?s=>s.indexOf(e)<0:s=>s.indexOf("__svelte")===-1),a=n.length-r.length;a&&(t.style.animation=r.join(", "),mt-=a,mt||jn())}function jn(){Jt(()=>{mt||(_t.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&at(e)}),_t.clear())})}let ot;function tt(t){ot=t}function P(){if(!ot)throw new Error("Function called outside component initialization");return ot}function On(t){P().$$.before_update.push(t)}function Ht(t){P().$$.on_mount.push(t)}function Dn(t){P().$$.after_update.push(t)}function Mn(t){P().$$.on_destroy.push(t)}function Bn(){const t=P();return(e,n,{cancelable:r=!1}={})=>{const a=t.$$.callbacks[e];if(a){const s=De(e,n,{cancelable:r});return a.slice().forEach(i=>{i.call(t,s)}),!s.defaultPrevented}return!0}}function qn(t,e){return P().$$.context.set(t,e),e}function Hn(t){return P().$$.context.get(t)}function Fn(){return P().$$.context}function Vn(t){return P().$$.context.has(t)}function Ma(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach(r=>r.call(this,e))}const G=[],ge=[];let K=[];const Ft=[],Me=Promise.resolve();let Vt=!1;function Be(){Vt||(Vt=!0,Me.then(qe))}function Gn(){return Be(),Me}function gt(t){K.push(t)}function Ba(t){Ft.push(t)}const jt=new Set;let H=0;function qe(){if(H!==0)return;const t=ot;do{try{for(;Ht.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),K=e}let Z;function Wn(){return Z||(Z=Promise.resolve(),Z.then(()=>{Z=null})),Z}function Ot(t,e,n){t.dispatchEvent(De(`${e?"intro":"outro"}${n}`))}const pt=new Set;let C;function qa(){C={r:0,c:[],p:C}}function Ha(){C.r||q(C.c),C=C.p}function Yn(t,e){t&&t.i&&(pt.delete(t),t.i(e))}function Fa(t,e,n,r){if(t&&t.o){if(pt.has(t))return;pt.add(t),C.c.push(()=>{pt.delete(t),r&&(n&&t.d(1),r())}),t.o(e)}else r&&r()}const Jn={duration:0};function Va(t,e,n,r){let s=e(t,n,{direction:"both"}),i=r?0:1,o=null,c=null,l=null,d;function f(){l&&Pn(t,l)}function g(_,h){const p=_.b-i;return h*=Math.abs(p),{a:i,b:_.b,d:p,duration:h,start:_.start,end:_.start+h,group:_.group}}function u(_){const{delay:h=0,duration:p=300,easing:y=pn,tick:A=N,css:x}=s||Jn,m={start:yn()+h,b:_};_||(m.group=C,C.r+=1),"inert"in t&&(_?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),o||c?c=m:(x&&(f(),l=me(t,i,_,p,h,y,x)),_&&A(0,1),o=g(m,p),gt(()=>Ot(t,_,"start")),wn(w=>{if(c&&w>c.start&&(o=g(c,p),c=null,Ot(t,o.b,"start"),x&&(f(),l=me(t,i,o.b,o.duration,0,y,s.css))),o){if(w>=o.end)A(i=o.b,1-i),Ot(t,o.b,"end"),c||(o.b?f():--o.group.r||q(o.group.c)),o=null;else if(w>=o.start){const v=w-o.start;i=o.a+o.d*y(v/o.duration),A(i,1-i)}}return!!(o||c)}))}return{run(_){ft(s)?Wn().then(()=>{s=s({direction:_?"in":"out"}),u(_)}):u(_)},end(){f(),o=c=null}}}function Ga(t,e,n){const r=t.$$.props[e];r!==void 0&&(t.$$.bound[r]=n,n(t.$$.ctx[r]))}function za(t){t&&t.c()}function Ka(t,e){t&&t.l(e)}function Xn(t,e,n){const{fragment:r,after_update:a}=t.$$;r&&r.m(e,n),gt(()=>{const s=t.$$.on_mount.map(Te).filter(ft);t.$$.on_destroy?t.$$.on_destroy.push(...s):q(s),t.$$.on_mount=[]}),a.forEach(gt)}function Zn(t,e){const n=t.$$;n.fragment!==null&&(Kn(n.after_update),q(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Qn(t,e){t.$$.dirty[0]===-1&&(G.push(t),Be(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const _=u.length?u[0]:g;return l.ctx&&a(l.ctx[f],l.ctx[f]=_)&&(!l.skip_bound&&l.bound[f]&&l.bound[f](_),d&&Qn(t,f)),g}):[],l.update(),d=!0,q(l.before_update),l.fragment=r?r(l.ctx):!1,e.target){if(e.hydrate){vn();const f=Ln(e.target);l.fragment&&l.fragment.l(f),f.forEach(at)}else l.fragment&&l.fragment.c();e.intro&&Yn(t.$$.fragment),Xn(t,e.target,e.anchor),bn(),qe()}tt(c)}class tr{constructor(){$(this,"$$");$(this,"$$set")}$destroy(){Zn(this,1),this.$destroy=N}$on(e,n){if(!ft(n))return N;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const a=r.indexOf(n);a!==-1&&r.splice(a,1)}}$set(e){this.$$set&&!gn(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}class He extends tr{constructor(n){if(!n||!n.target&&!n.$$inline)throw new Error("'target' is a required option");super();$(this,"$$prop_def");$(this,"$$events_def");$(this,"$$slot_def")}$destroy(){super.$destroy(),this.$destroy=()=>{console.warn("Component was already destroyed")}}$capture_state(){}$inject_state(){}}class er extends He{}const nr=Object.freeze(Object.defineProperty({__proto__:null,SvelteComponent:He,SvelteComponentTyped:er,afterUpdate:Dn,beforeUpdate:On,createEventDispatcher:Bn,getAllContexts:Fn,getContext:Hn,hasContext:Vn,onDestroy:Mn,onMount:Ht,setContext:qn,tick:Gn},Symbol.toStringTag,{value:"Module"}));new URL("sveltekit-internal://");function rr(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function ar(t){return t.split("%25").map(decodeURI).join("%25")}function or(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function Dt({href:t}){return t.split("#")[0]}function sr(t,e,n,r=!1){const a=new URL(t);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));e();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return e(),t[i]},enumerable:!0,configurable:!0});return a}function ir(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*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;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}function cr(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&et.delete(Qt(t)),lr(t,e));const et=new Map;function fr(t,e){const n=Qt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&et.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=cr(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function ur(t,e,n){if(et.size>0){const r=Qt(t,n),a=et.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Mt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Mt(String.fromCharCode(...c.slice(2).split("-").map(h=>parseInt(h,16))));const d=dr.exec(c),[,f,g,u,_]=d;return e.push({name:u,matcher:_,optional:!!f,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":f?"([^/]*)?":"([^/]+?)"}return Mt(c)}).join("")}).join("")}/?$`),params:e}}function pr(t){return!/^\([^)]+\)$/.test(t)}function _r(t){return t.slice(1).split("/").filter(pr)}function mr(t,e,n){const r={},a=t.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;od).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=e[o+1],f=a[o+1];d&&!d.rest&&d.optional&&f&&c.chained&&(i=0),!d&&!f&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function Mt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function gr({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:f,params:g}=hr(o),u={id:o,exec:_=>{const h=f.exec(_);if(h)return mr(h,g,r)},errors:[1,...d||[]].map(_=>t[_]),layouts:[0,...l||[]].map(i),leaf:s(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function s(o){const c=o<0;return c&&(o=~o),[c,t[o]]}function i(o){return o===void 0?o:[a.has(o),t[o]]}}function Fe(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function ye(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}const F=[];function yr(t,e){return{subscribe:kt(t,e).subscribe}}function kt(t,e=N){let n;const r=new Set;function a(o){if(mn(t,o)&&(t=o,n)){const c=!F.length;for(const l of r)l[1](),F.push(l,t);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}function Ya(t,e,n){const r=!Array.isArray(t),a=r?[t]:t;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return yr(n,(i,o)=>{let c=!1;const l=[];let d=0,f=N;const g=()=>{if(d)return;f();const _=e(r?l[0]:l,i,o);s?i(_):f=ft(_)?_:N},u=a.map((_,h)=>Yt(_,p=>{l[h]=p,d&=~(1<{d|=1<i)}function a(i){n=!1,e.set(i)}function s(i){let o;return e.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const Ye={v:()=>{}};function $r(){const{set:t,subscribe:e}=kt(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${wr}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==vr;return i&&(t(!0),Ye.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:e,check:r}}function Tt(t,e,n){return t.origin!==ut||!t.pathname.startsWith(e)?!0:n?!(t.pathname===e+"/"||t.pathname===e+"/index.html"||t.protocol==="file:"&&t.pathname.replace(/\/[^/]+\.html?$/,"")===e):!1}function Ja(t){}function be(t){const e=Ar(t),n=new ArrayBuffer(e.length),r=new DataView(n);for(let a=0;a>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,e+=String.fromCharCode(n)):r===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const xr=-1,Sr=-2,kr=-3,Rr=-4,Tr=-5,Lr=-6;function Nr(t,e){if(typeof t=="number")return a(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,r=Array(n.length);function a(s,i=!1){if(s===xr)return;if(s===kr)return NaN;if(s===Rr)return 1/0;if(s===Tr)return-1/0;if(s===Lr)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=e==null?void 0:e[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let u=1;ue!=null)}class Lt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class ee{constructor(e,n){this.status=e,this.location=n}}class ne extends Error{constructor(e,n,r){super(r),this.status=e,this.text=n}}const Cr="x-sveltekit-invalidated",Pr="x-sveltekit-trailing-slash";function wt(t){return t instanceof Lt||t instanceof ne?t.status:500}function jr(t){return t instanceof ne?t.text:"Internal Error"}let R,it,Bt;const Or=Ht.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ht.toString());Or?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},it={current:null},Bt={current:!1}):(R=new class{constructor(){$(this,"data",$state.raw({}));$(this,"form",$state.raw(null));$(this,"error",$state.raw(null));$(this,"params",$state.raw({}));$(this,"route",$state.raw({id:null}));$(this,"state",$state.raw({}));$(this,"status",$state.raw(-1));$(this,"url",$state.raw(new URL("https://example.com")))}},it=new class{constructor(){$(this,"current",$state.raw(null))}},Bt=new class{constructor(){$(this,"current",$state.raw(!1))}},Ye.v=()=>Bt.current=!0);function Dr(t){Object.assign(R,t)}const Mr="/__data.json",Br=".html__data.json";function qr(t){return t.endsWith(".html")?t.replace(/\.html$/,Br):t.replace(/\/$/,"")+Mr}const{onMount:Hr,tick:Fr}=nr,Vr=new Set(["icon","shortcut icon","apple-touch-icon"]),B=Fe(Ge)??{},ct=Fe(Ve)??{},j={url:ve({}),page:ve({}),navigating:kt(null),updated:$r()};function re(t){B[t]=Rt()}function Gr(t,e){let n=t+1;for(;B[n];)delete B[n],n+=1;for(n=e+1;ct[n];)delete ct[n],n+=1}function X(t){return location.href=t.href,new Promise(()=>{})}async function Xe(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(I||"/");t&&await t.update()}}function $e(){}let ae,zt,vt,U,Kt,E;const bt=[],$t=[];let T=null;const ht=new Map,Ze=new Set,zr=new Set,Y=new Set;let b={branch:[],error:null,url:null},oe=!1,Et=!1,Ee=!0,lt=!1,Q=!1,Qe=!1,se=!1,tn,k,L,M;const nt=new Set;async function to(t,e,n){var s,i,o,c;document.URL!==location.href&&(location.href=location.href),E=t,await((i=(s=t.hooks).init)==null?void 0:i.call(s)),ae=gr(t),U=document.documentElement,Kt=e,zt=t.nodes[0],vt=t.nodes[1],zt(),vt(),k=(o=history.state)==null?void 0:o[W],L=(c=history.state)==null?void 0:c[st],k||(k=L=Date.now(),history.replaceState({...history.state,[W]:k,[st]:L},""));const r=B[k];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await ra(Kt,n)):(await rt({type:"enter",url:te(E.hash?oa(new URL(location.href)):location.href),replace_state:!0}),a()),na()}function Kr(){bt.length=0,se=!1}function en(t){$t.some(e=>e==null?void 0:e.snapshot)&&(ct[t]=$t.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function nn(t){var e;(e=ct[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=$t[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function Ae(){re(k),ye(Ge,B),en(L),ye(Ve,ct)}async function ie(t,e,n,r){return rt({type:"goto",url:te(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(se=!0),e.invalidate&&e.invalidate.forEach(ea)}})}async function Wr(t){if(t.id!==(T==null?void 0:T.id)){const e={};nt.add(e),T={id:t.id,token:e,promise:on({...t,preload:e}).then(n=>(nt.delete(e),n.type==="loaded"&&n.state.error&&(T=null),n))}}return T.promise}async function qt(t){var n;const e=(n=await It(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(r=>r==null?void 0:r[1]()))}function rn(t,e,n){var a;b=t.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(R,t.props.page),tn=new E.root({target:e,props:{...t.props,stores:j,components:$t},hydrate:n,sync:!1}),nn(L),n){const s={from:null,to:{params:b.params,route:{id:((a=b.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(i=>i(s))}Et=!0}function At({url:t,params:e,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(I&&(t.pathname===I||t.pathname===I+"/"))o="always";else for(const u of n)(u==null?void 0:u.slash)!==void 0&&(o=u.slash);t.pathname=rr(t.pathname,o),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:a,route:s},props:{constructors:Ur(n).map(u=>u.node.component),page:ue(R)}};i!==void 0&&(c.props.form=i);let l={},d=!R,f=0;for(let u=0;u(o&&(c.route=!0),h[p])}),params:new Proxy(r,{get:(h,p)=>(o&&c.params.add(p),h[p])}),data:(s==null?void 0:s.data)??null,url:sr(n,()=>{o&&(c.url=!0)},h=>{o&&c.search_params.add(h)},E.hash),async fetch(h,p){h instanceof Request&&(p={body:h.method==="GET"||h.method==="HEAD"?void 0:await h.blob(),cache:h.cache,credentials:h.credentials,headers:[...h.headers].length>0?h==null?void 0:h.headers:void 0,integrity:h.integrity,keepalive:h.keepalive,method:h.method,mode:h.mode,redirect:h.redirect,referrer:h.referrer,referrerPolicy:h.referrerPolicy,signal:h.signal,...p});const{resolved:y,promise:A}=an(h,p,n);return o&&u(y.href),A},setHeaders:()=>{},depends:u,parent(){return o&&(c.parent=!0),e()},untrack(h){o=!1;try{return h()}finally{o=!0}}};i=await l.universal.load.call(null,_)??null}return{node:l,loader:t,server:s,universal:(f=l.universal)!=null&&f.load?{type:"data",data:i,uses:c}:null,data:i??(s==null?void 0:s.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(s==null?void 0:s.slash)}}function an(t,e,n){let r=t instanceof Request?t.url:t;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=Et?ur(r,a.href,e):fr(r,e);return{resolved:a,promise:s}}function xe(t,e,n,r,a,s){if(se)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==b.params[i])return!0;for(const i of a.dependencies)if(bt.some(o=>o(new URL(i))))return!0;return!1}function le(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function Yr(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function Se({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:ue(R),constructors:[]}}}async function on({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((T==null?void 0:T.id)===t)return nt.delete(T.token),T.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(m=>m==null?void 0:m().catch(()=>{})),l.forEach(m=>m==null?void 0:m[1]().catch(()=>{}));let d=null;const f=b.url?t!==xt(b.url):!1,g=b.route?a.id!==b.route.id:!1,u=Yr(b.url,n);let _=!1;const h=l.map((m,w)=>{var O;const v=b.branch[w],S=!!(m!=null&&m[0])&&((v==null?void 0:v.loader)!==m[1]||xe(_,g,f,u,(O=v.server)==null?void 0:O.uses,r));return S&&(_=!0),S});if(h.some(Boolean)){try{d=await ln(n,h)}catch(m){const w=await J(m,{url:n,params:r,route:{id:t}});return nt.has(s)?Se({error:w,url:n,params:r,route:a}):Nt({status:wt(m),error:w,url:n,route:a})}if(d.type==="redirect")return d}const p=d==null?void 0:d.nodes;let y=!1;const A=l.map(async(m,w)=>{var Ut;if(!m)return;const v=b.branch[w],S=p==null?void 0:p[w];if((!S||S.type==="skip")&&m[1]===(v==null?void 0:v.loader)&&!xe(y,g,f,u,(Ut=v.universal)==null?void 0:Ut.uses,r))return v;if(y=!0,(S==null?void 0:S.type)==="error")throw S;return ce({loader:m[1],url:n,params:r,route:a,parent:async()=>{var he;const de={};for(let Ct=0;Ct{});const x=[];for(let m=0;mPromise.resolve({}),server_data_node:le(s)}),c={node:await vt(),loader:vt,universal:null,server:null,data:null};return At({url:n,params:a,branch:[o,c],status:t,error:e,route:null})}catch(o){if(o instanceof ee)return ie(new URL(o.location,location.href),{},0);throw o}}async function Xr(t){const e=t.href;if(ht.has(e))return ht.get(e);let n;try{const r=(async()=>{let a=await E.hooks.reroute({url:new URL(t),fetch:async(s,i)=>an(s,i,t).promise})??t;if(typeof a=="string"){const s=new URL(t);E.hash?s.hash=a:s.pathname=a,a=s}return a})();ht.set(e,r),n=await r}catch{ht.delete(e);return}return n}async function It(t,e){if(t&&!Tt(t,I,E.hash)){const n=await Xr(t);if(!n)return;const r=Zr(n);for(const a of ae){const s=a.exec(r);if(s)return{id:xt(t),invalidating:e,route:a,params:or(s),url:t}}}}function Zr(t){return ar(E.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(I.length))||"/"}function xt(t){return(E.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function sn({url:t,type:e,intent:n,delta:r}){let a=!1;const s=fe(b,n,t,e);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return lt||Ze.forEach(o=>o(i)),a?null:s}async function rt({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=$e,block:d=$e}){const f=M;M=c;const g=await It(e,!1),u=t==="enter"?fe(b,g,e,t):sn({url:e,type:t,delta:n==null?void 0:n.delta,intent:g});if(!u){d(),M===c&&(M=f);return}const _=k,h=L;l(),lt=!0,Et&&u.navigation.type!=="enter"&&j.navigating.set(it.current=u.navigation);let p=g&&await on(g);if(!p){if(Tt(e,I,E.hash))return await X(e);p=await cn(e,{id:null},await J(new ne(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(g==null?void 0:g.url)||e,M!==c)return u.reject(new Error("navigation aborted")),!1;if(p.type==="redirect")if(o>=20)p=await Nt({status:500,error:await J(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return await ie(new URL(p.location,e).href,{},o+1,c),!1;else p.props.page.status>=400&&await j.updated.check()&&(await Xe(),await X(e));if(Kr(),re(_),en(h),p.props.page.url.pathname!==e.pathname&&(e.pathname=p.props.page.url.pathname),i=n?n.state:i,!n){const m=s?0:1,w={[W]:k+=m,[st]:L+=m,[ze]:i};(s?history.replaceState:history.pushState).call(history,w,"",e),s||Gr(k,L)}if(T=null,p.props.page.state=i,Et){b=p.state,p.props.page&&(p.props.page.url=e);const m=(await Promise.all(Array.from(zr,w=>w(u.navigation)))).filter(w=>typeof w=="function");if(m.length>0){let w=function(){m.forEach(v=>{Y.delete(v)})};m.push(w),m.forEach(v=>{Y.add(v)})}tn.$set(p.props),Dr(p.props.page),Qe=!0}else rn(p,Kt,!1);const{activeElement:y}=document;await Fr();const A=n?n.scroll:a?Rt():null;if(Ee){const m=e.hash&&document.getElementById(un(e));A?scrollTo(A.x,A.y):m?m.scrollIntoView():scrollTo(0,0)}const x=document.activeElement!==y&&document.activeElement!==document.body;!r&&!x&&aa(e),Ee=!0,p.props.page&&Object.assign(R,p.props.page),lt=!1,t==="popstate"&&nn(L),u.fulfil(void 0),Y.forEach(m=>m(u.navigation)),j.navigating.set(it.current=null)}async function cn(t,e,n,r){return t.origin===ut&&t.pathname===location.pathname&&!oe?await Nt({status:r,error:n,url:t,route:e}):await X(t)}function Qr(){let t,e,n;U.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(t),t=setTimeout(()=>{s(c,D.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],D.tap)}U.addEventListener("mousedown",r),U.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(qt(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=We(o,U),d=l===e&&c>=n;if(!l||d)return;const{url:f,external:g,download:u}=Gt(l,I,E.hash);if(g||u)return;const _=yt(l),h=f&&xt(b.url)===xt(f);if(!(_.reload||h))if(c<=_.preload_data){e=l,n=d.tap;const p=await It(f,!1);if(!p)return;Wr(p)}else c<=_.preload_code&&(e=l,n=c,qt(f))}function i(){a.disconnect();for(const o of U.querySelectorAll("a")){const{url:c,external:l,download:d}=Gt(o,I,E.hash);if(l||d)continue;const f=yt(o);f.reload||(f.preload_code===D.viewport&&a.observe(o),f.preload_code===D.eager&&qt(c))}}Y.add(i),i()}function J(t,e){if(t instanceof Lt)return t.body;const n=wt(t),r=jr(t);return E.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function ta(t,e){Hr(()=>(t.add(e),()=>{t.delete(e)}))}function eo(t){ta(Y,t)}function no(t,e={}){return t=new URL(te(t)),t.origin!==ut?Promise.reject(new Error("goto: invalid URL")):ie(t,e,0)}function ea(t){if(typeof t=="function")bt.push(t);else{const{href:e}=new URL(t,location.href);bt.push(n=>n.href===e)}}function na(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Ae(),!lt){const a=fe(b,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Ze.forEach(i=>i(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ae()}),(e=navigator.connection)!=null&&e.saveData||Qr(),U.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=We(n.composedPath()[0],U);if(!r)return;const{url:a,external:s,target:i,download:o}=Gt(r,I,E.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=yt(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[d,f]=(E.hash?a.hash.replace(/^#/,""):a.href).split("#"),g=d===Dt(location);if(s||c.reload&&(!g||!f)){sn({url:a,type:"link"})?lt=!0:n.preventDefault();return}if(f!==void 0&&g){const[,u]=b.url.href.split("#");if(u===f){if(n.preventDefault(),f===""||f==="top"&&r.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const _=r.ownerDocument.getElementById(decodeURIComponent(f));_&&(_.scrollIntoView(),_.focus())}return}if(Q=!0,re(k),t(a),!c.replace_state)return;Q=!1}n.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await rt({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),U.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(Tt(o,I,!1))return;const c=n.target,l=yt(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(c),f=a==null?void 0:a.getAttribute("name");f&&d.append(f,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(d).toString(),rt({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href})}),addEventListener("popstate",async n=>{var r;if(!Wt){if((r=n.state)!=null&&r[W]){const a=n.state[W];if(M={},a===k)return;const s=B[a],i=n.state[ze]??{},o=new URL(n.state[br]??location.href),c=n.state[st],l=b.url?Dt(location)===Dt(b.url):!1;if(c===L&&(Qe||l)){i!==R.state&&(R.state=i),t(o),B[k]=Rt(),s&&scrollTo(s.x,s.y),k=a;return}const f=a-k;await rt({type:"popstate",url:o,popped:{state:i,scroll:s,delta:f},accept:()=>{k=a,L=c},block:()=>{history.go(-f)},nav_token:M})}else if(!Q){const a=new URL(location.href);t(a),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Q&&(Q=!1,history.replaceState({...history.state,[W]:++k,[st]:L},"",location.href))});for(const n of document.querySelectorAll("link"))Vr.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&j.navigating.set(it.current=null)});function t(n){b.url=R.url=n,j.page.set(ue(R)),j.page.notify()}}async function ra(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){oe=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await It(l,!1)||{}),d=ae.find(({id:u})=>u===s.id);let f,g=!0;try{const u=r.map(async(h,p)=>{const y=o[p];return y!=null&&y.uses&&(y.uses=fn(y.uses)),ce({loader:E.nodes[h],url:l,params:a,route:s,parent:async()=>{const A={};for(let x=0;xi?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let i;throw(s=a.headers.get("content-type"))!=null&&s.includes("application/json")?i=await a.json():a.status===404?i="Not Found":a.status===500&&(i="Internal Error"),new Lt(a.status,i)}return new Promise(async i=>{var g;const o=new Map,c=a.body.getReader(),l=new TextDecoder;function d(u){return Nr(u,{...E.decoders,Promise:_=>new Promise((h,p)=>{o.set(_,{fulfil:h,reject:p})})})}let f="";for(;;){const{done:u,value:_}=await c.read();if(u&&!f)break;for(f+=!_&&f?` `:l.decode(_,{stream:!0});;){const h=f.indexOf(` `);if(h===-1)break;const p=JSON.parse(f.slice(0,h));if(f=f.slice(h+1),p.type==="redirect")return i(p);if(p.type==="data")(g=p.nodes)==null||g.forEach(y=>{(y==null?void 0:y.type)==="data"&&(y.uses=fn(y.uses),y.data=d(y.data))}),i(p);else if(p.type==="chunk"){const{id:y,data:A,error:x}=p,m=o.get(y);o.delete(y),x?m.reject(d(x)):m.fulfil(d(A))}}}})}function fn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let Wt=!1;function aa(t){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const n=un(t);if(n&&document.getElementById(n)){const{x:a,y:s}=Rt();setTimeout(()=>{const i=history.state;Wt=!0,location.replace(`#${n}`),E.hash&&location.replace(t.hash),history.replaceState(i,"",t.hash),scrollTo(a,s),Wt=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s{if(r.rangeCount===a.length){for(let s=0;s{a=d,s=f});return i.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((l=e==null?void 0:e.route)==null?void 0:l.id)??null},url:n},willUnload:!e,type:r,complete:i},fulfil:a,reject:s}}function ue(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function oa(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function un(t){let e;if(E.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Dn as ,ドルqa as A,j as B,va as C,_a as D,ua as E,ha as F,pa as G,da as H,ge as I,Na as J,Nn as K,Zt as L,Ea as M,Aa as N,Bn as O,Ma as P,ya as Q,ca as R,tr as S,Ua as T,ia as U,P as V,tt as W,qe as X,La as Y,Pt as Z,eo as _,Zn as a,Ia as a0,kt as a1,la as a2,Da as a3,_n as a4,Ga as a5,Ba as a6,I as a7,no as a8,Mn as a9,qn as aa,Hn as ab,Va as ac,gt as ad,ma as ae,Gn as af,$a as ag,Ca as ah,Pa as ai,ga as aj,Ya as ak,Ra as al,Ce as am,pn as an,yn as ao,wn as ap,to as aq,Ja as ar,Yn as b,kn as c,at as d,Tn as e,xa as f,ka as g,Oa as h,Wa as i,Ta as j,Ka as k,Ln as l,Xn as m,Sa as n,Xt as o,wa as p,za as q,fa as r,mn as s,Fa as t,Ht as u,q as v,ja as w,ba as x,Ha as y,N as z};

AltStyle によって変換されたページ (->オリジナル) /