pages/assets/chunks/theme.BjoghVOU.js

2 lines
64 KiB
JavaScript
Raw Normal View History

import{d as k,o as r,c as p,r as d,n as A,a as J,t as M,b as S,w as v,e as g,T as Ne,_ as L,u as We,i as mt,f as _t,g as me,h as V,j as h,k as l,p as z,l as j,m as ee,q as Le,s as I,v as X,x as _e,y as te,z as Me,A as Je,B as gt,C as kt,D as Z,F as C,E as F,G as Xe,H as ge,I as y,J as oe,K as Ye,L as ie,M as ue,N as ke,O as bt,P as Qe,Q as $t,R as Ae,S as Ze,U as be,V as yt,W as Pt,X as Vt,Y as ze,Z as Lt,$ as et,a0 as St,a1 as wt,a2 as tt,a3 as nt,a4 as It,a5 as Tt,a6 as Nt,a7 as Mt,a8 as je}from"./framework.D8PMdl4T.js";const At=k({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(t,n)=>(r(),p("span",{class:A(["VPBadge",t.type])},[d(t.$slots,"default",{},()=>[J(M(t.text),1)])],2))}}),Ct={key:0,class:"VPBackdrop"},Ht=k({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(r(),S(Ne,{name:"fade"},{default:v(()=>[t.show?(r(),p("div",Ct)):g("",!0)]),_:1}))}}),Bt=L(Ht,[["__scopeId","data-v-c79a1216"]]),T=We;function Et(e,t){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(e,t):(e(),(s=!0)&&setTimeout(()=>s=!1,t))}}function Se(e){return/^\//.test(e)?e:`/${e}`}function Ce(e){const{pathname:t,search:n,hash:s,protocol:o}=new URL(e,"http://a.com");if(mt(e)||e.startsWith("#")||!o.startsWith("http")||!_t(t))return e;const{site:a}=T(),i=t.endsWith("/")||t.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${t.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);return me(i)}function re({correspondingLink:e=!1}={}){const{site:t,localeIndex:n,page:s,theme:o,hash:a}=T(),i=V(()=>{var u,f;return{label:(u=t.value.locales[n.value])==null?void 0:u.label,link:((f=t.value.locales[n.value])==null?void 0:f.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:V(()=>Object.entries(t.value.locales).flatMap(([u,f])=>i.value.label===f.label?[]:{text:f.label,link:Ot(f.link||(u==="root"?"/":`/${u}/`),o.value.i18nRouting!==!1&&e,s.value.relativePath.slice(i.value.link.length-1),!t.value.cleanUrls)+a.value})),currentLang:i}}function Ot(e,t,n,s){return t?e.replace(/\/$/,"")+Se(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):e}const Dt=e=>(z("data-v-d6be1790"),e=e(),j(),e),Ft={class:"NotFound"},zt={class:"code"},jt={class:"title"},Ut=Dt(()=>h("div",{class:"divider"},null,-1)),qt={class:"quote"},Gt={class:"action"},Rt=["href","aria-label"],xt=k({__name:"NotFound",setup(e){const{theme:t}=T(),{currentLang:n}=re();return(s,o)=>{var a,i,c,u,f;return r(),p("div",Ft,[h("p",zt,M(((a=l(t).notFound)==null?void 0:a.code)??"404"),1),h("h1",jt,M(((i=l(t).notFound)==null?void 0:i.title)??"PAGE NOT FOUND"),1),Ut,h("blockquote",qt,M(((c=l(t).notFound)==null?void 0:c.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),h("div",Gt,[h("a",{class:"link",href:l(me)(l(n).link),"aria-label":((u=l(t).notFound)==null?void 0:u.linkLabel)??"go to home"},M(((f=l(t).notFound)==null?void 0:f.linkText)??"Take me home"),9,Rt)])])}}}),Kt=L(xt,[["__scopeId","data-v-d6be1790"]]);function st(e,t){if(Array.isArray(e))return de(e);if(e==null)return[];t=Se(t);const n=Object.keys(e).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>t.startsWith(Se(o))),s=n?e[n]:[];return Array.isArray(s)?de(s):de(s.items,s.base)}function Wt(e){const t=[];let n=0;for(const s in e){const o=e[s];if(o.items){n=t.push(o);continue}t[n]||t.push({items:[]}),t[n].items.push(o)}return t}function Jt(e){const t=[];function n(s){for(const o of s)o.text&&o.link&&t.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&n(o.items)}return n(e),t}function we(e,t){return Array.isArray(t)?t.some(n=>we(e,n)):ee(e,t.link)?!0:t.items?we(e,t.items):!1}function de(e,t){return[...e].map(n=>{const s={...n},o=s.base||t;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=de(s.items,o)),s})}function Y(){const{frontmatter:e,page:t,theme:n}=T(),s=Le("(min-width: 960px)"),o=I(!1),a=V(()=>{const N=n.value.sidebar,w=t.value.relativePath;return N?st(N,w):[]}),i=I(a.value);X(a,(N,w)=>{JSON.stringify(N)!==JSON.stringify(w)&&(i.value=a.value)});const c=V(()=>e.value.sidebar