2 lines
52 KiB
JavaScript
2 lines
52 KiB
JavaScript
|
|
import{d as m,c as u,r as c,n as T,o as s,a as R,t as S,b as g,w as f,T as ce,e as h,_,u as Ee,i as De,f as Fe,g as ue,h as b,j as v,k as i,l as U,m as be,p as O,q as Oe,s as de,v as Ge,x as L,y as X,z as E,A as ve,B as Z,C as K,D as ee,E as $e,F as Pe,G as N,H as w,I as j,J as p,K as H,L as Le,M as Re,N as Ue,O as C,P as te,Q as Ve,R as je,S as We,U as Se,V as Te,W as ze,X as Ne,Y as Me,Z as qe,$ as Ke,a0 as Je,a1 as Ye,a2 as Qe}from"./framework.BfS8l2sS.js";const Xe=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(t,n)=>(s(),u("span",{class:T(["VPBadge",e.type])},[c(t.$slots,"default",{},()=>[R(S(e.text),1)])],2))}}),Ze={key:0,class:"VPBackdrop"},et=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,n)=>(s(),g(ce,{name:"fade"},{default:f(()=>[e.show?(s(),u("div",Ze)):h("",!0)]),_:1}))}}),tt=_(et,[["__scopeId","data-v-c79a1216"]]),$=Ee;function nt(e,t){let n,a=!1;return()=>{n&&clearTimeout(n),a?n=setTimeout(e,t):(e(),(a=!0)&&setTimeout(()=>a=!1,t))}}function oe(e){return e.startsWith("/")?e:`/${e}`}function fe(e){const{pathname:t,search:n,hash:a,protocol:o}=new URL(e,"http://a.com");if(De(e)||e.startsWith("#")||!o.startsWith("http")||!Fe(t))return e;const{site:r}=$(),d=t.endsWith("/")||t.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${t.replace(/(\.md)?$/,r.value.cleanUrls?"":".html")}${n}${a}`);return ue(d)}function J({correspondingLink:e=!1}={}){const{site:t,localeIndex:n,page:a,theme:o,hash:r}=$(),d=b(()=>({label:t.value.locales[n.value]?.label,link:t.value.locales[n.value]?.link||(n.value==="root"?"/":`/${n.value}/`)}));return{localeLinks:b(()=>Object.entries(t.value.locales).flatMap(([k,y])=>d.value.label===y.label?[]:{text:y.label,link:at(y.link||(k==="root"?"/":`/${k}/`),o.value.i18nRouting!==!1&&e,a.value.relativePath.slice(d.value.link.length-1),!t.value.cleanUrls)+r.value,lang:y.lang,dir:y.dir})),currentLang:d}}function at(e,t,n,a){return t?e.replace(/\/$/,"")+oe(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,a?".html":"")):e}const ot={class:"NotFound"},st={class:"code"},it={class:"title"},rt={class:"quote"},lt={class:"action"},ct=["href","aria-label"],ut=m({__name:"NotFound",setup(e){const{theme:t}=$(),{currentLang:n}=J();return(a,o)=>(s(),u("div",ot,[v("p",st,S(i(t).notFound?.code??"404"),1),v("h1",it,S(i(t).notFound?.title??"PAGE NOT FOUND"),1),o[0]||(o[0]=v("div",{class:"divider"},null,-1)),v("blockquote",rt,S(i(t).notFound?.quote??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),v("div",lt,[v("a",{class:"link",href:i(ue)(i(t).notFound?.link??i(n).link),"aria-label":i(t).notFound?.linkLabel??"go to home"},S(i(t).notFound?.linkText??"Take me home"),9,ct)])]))}}),dt=_(ut,[["__scopeId","data-v-829df670"]]);function we(e,t){if(Array.isArray(e))return Y(e);if(e==null)return[];t=oe(t);const n=Object.keys(e).sort((o,r)=>r.split("/").length-o.split("/").length).find(o=>t.startsWith(oe(o))),a=n?e[n]:[];return Array.isArray(a)?Y(a):Y(a.items,a.base)}function vt(e){const t=[];let n=0;for(const a in e){const o=e[a];if(o.items){n=t.push(o);continue}t[n]||t.push({items:[]}),t[n].items.push(o)}return t}function ft(e){const t=[];function n(a){for(const o of a)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 se(e,t){return Array.isArray(t)?t.some(n=>se(e,n)):U(e,t.link)?!0:t.items?se(e,t.items):!1}function Y(e,t){return[...e].map(n=>{const a={...n},o=a.base||t;return o&&a.link&&(a.link=o+a.link.replace(/^\//,o.endsWith("/")?"":"/")),a.items&&(a.items=Y(a.items,o)),a})}function ht(){const{hasSidebar:e}=D(),t=be("(min-width: 960px)"),n=be("(min-width: 1280px)");return{isAsideEnabled:b(()=>!n.value&&!t.value?!1:e.value?n.value:t.value)}}const mt=/\b(?:VPBadge|header-anchor|footnote-ref|ignore-header)\b/,ie=[];function Ie(e){return typeof e.outline=="object"&&!Array.isArray(e.outline)&&e.outline.label||e.outlineTitle||"On this page"}function pt(e){const t=[...document.querySelectorAll(".VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VP
|