import{am as p,an as d,a8 as E,a9 as a}from"./singletons-79165f10.js";import{p as I}from"./stores-1c9d0b64.js";function D(t){return t===null}function F(t){return typeof t>"u"}function C(t){return typeof t=="string"}function j(t){return typeof t=="function"}function G(t){return t===window}function O(t){return t instanceof RegExp}function N(t){var n,s,e="";if(typeof t=="string"||typeof t=="number")e+=t;else if(typeof t=="object")if(Array.isArray(t))for(n=0;n" "+n[1].toUpperCase()))??"")}function v(t){return(t==null?void 0:t.replace(/\s/g,"-").toLowerCase())??""}const h=Symbol(""),X={canUpdateHash:()=>!0,cleanHash:t=>t};function Y(){try{return p(h)}catch(t){console.error(t),console.warn("[kit-docs]: attempted to get navigation context before setting it.")}}function M(t){d(h,t)}const T=Symbol("");function P(){try{return p(T)}catch(t){console.error(t),console.warn("[kit-docs]: attempted to get navbar context before setting it.")}}function V(t){d(T,t)}function w(t=null){var e;if(!t)return{links:{}};const n={},s=((e=t.baseUrl)==null?void 0:e.replace(/\/$/,""))??"";for(const i of Object.keys(t.links)){const u=t.links[i],g=v(i),l=C(t.links[i][0])?x(i):i;for(const c of u){const b=C(c)?{title:x(c),slug:`${s}/${g}/${c}`}:c;n[l]||(n[l]=[]),n[l].push(b)}}return{...t,links:n}}function R({match:t,slug:n},s){const e=s.replace(/\.html/,"");return t==="deep"?e===n||e.startsWith(n)&&e[n.length]==="/":O(t)?t.test(n):e===n}const k=Symbol();function W(t){const n=t&&"subscribe"in t?t:E(t),s=a(n,o=>w(o)),e=a(s,o=>Object.values(o.links).flat()),i=a([e,I],([o,r])=>o.findIndex(f=>R(f,r.url.pathname))),u=a([e,i],([o,r])=>o[r]),g=a([e,i],([o,r])=>o[r-1]),l=a([e,i],([o,r])=>o[r+1]),c=a([s,u],([o,r])=>{const f=Object.keys(o.links).find(A=>{var m;return(m=o.links[A])==null?void 0:m.some(y=>y.title===(r==null?void 0:r.title)&&y.slug===(r==null?void 0:r.slug))});return f!=="."?f:null});return{config:s,allLinks:e,activeLinkIndex:i,activeLink:u,previousLink:g,nextLink:l,activeCategory:c}}function z(t){d(k,t)}function B(){try{return p(k)}catch(t){console.error(t),console.warn("[kit-docs]: attempted to get sidebar context before setting it.")}}const H={nav:{previous:"Previous",next:"Next",mainMenu:"Main navigation menu",openSidebar:"Open main sidebar",options:"Options",links:"Links"},toc:{title:"On this page"},colorScheme:{title:"Color Scheme",light:"Light",dark:"Dark",system:"System",theme:"Theme"},dialog:{close:"Close dialog"},admonition:{note:"NOTE",info:"INFO",tip:"TIP",warning:"WARNING",danger:"DANGER",experimental:"EXPERIMENTAL"},code:{copy:"Copy code",copied:"Copied!"}},S=Symbol();function q(){try{return p(S)}catch(t){console.error(t),console.warn("[kit-docs]: attempted to get i18n context before setting it.")}}function J(t){d(S,t)}export{X as D,G as a,D as b,K as c,P as d,j as e,B as f,q as g,R as h,F as i,Y as j,V as k,z as l,W as m,J as n,H as o,M as s,_ as u};