pages/assets/chunks/theme.BNMqhpzq.js

3 lines
53 KiB
JavaScript
Raw Normal View History

const __vite__fileDeps=["assets/chunks/VPLocalSearchBox.Bs1KRyIL.js","assets/chunks/framework.BIC8H_hJ.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
import{d as _,o as a,c,r as l,n as N,a as E,t as w,b as $,w as v,e as f,T as pe,_ as k,u as ze,i as qe,f as Ke,g as he,h as y,j as u,k as r,p as C,l as B,m as z,q as le,s as I,v as O,x as ee,y as q,z as fe,A as Pe,B as Re,C as We,D as K,F as M,E as F,G as Le,H as te,I as m,J as W,K as Ve,L as Y,M as Q,N as oe,O as Ye,P as Se,Q as ce,R as we,S as Te,U as se,V as Je,W as Xe,X as Qe,Y as Ie,Z as Ne,$ as Ze,a0 as xe,a1 as et,a2 as tt,a3 as ot,a4 as st}from"./framework.BIC8H_hJ.js";const nt=_({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(o){return(e,t)=>(a(),c("span",{class:N(["VPBadge",e.type])},[l(e.$slots,"default",{},()=>[E(w(e.text),1)])],2))}}),at={key:0,class:"VPBackdrop"},rt=_({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(o){return(e,t)=>(a(),$(pe,{name:"fade"},{default:v(()=>[e.show?(a(),c("div",at)):f("",!0)]),_:1}))}}),it=k(rt,[["__scopeId","data-v-c79a1216"]]),P=ze;function lt(o,e){let t,n=!1;return()=>{t&&clearTimeout(t),n?t=setTimeout(o,e):(o(),(n=!0)&&setTimeout(()=>n=!1,e))}}function ue(o){return/^\//.test(o)?o:`/${o}`}function _e(o){const{pathname:e,search:t,hash:n,protocol:s}=new URL(o,"http://a.com");if(qe(o)||o.startsWith("#")||!s.startsWith("http")||!Ke(e))return o;const{site:i}=P(),d=e.endsWith("/")||e.endsWith(".html")?o:o.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,i.value.cleanUrls?"":".html")}${t}${n}`);return he(d)}function J({correspondingLink:o=!1}={}){const{site:e,localeIndex:t,page:n,theme:s,hash:i}=P(),d=y(()=>{var p,g;return{label:(p=e.value.locales[t.value])==null?void 0:p.label,link:((g=e.value.locales[t.value])==null?void 0:g.link)||(t.value==="root"?"/":`/${t.value}/`)}});return{localeLinks:y(()=>Object.entries(e.value.locales).flatMap(([p,g])=>d.value.label===g.label?[]:{text:g.label,link:ct(g.link||(p==="root"?"/":`/${p}/`),s.value.i18nRouting!==!1&&o,n.value.relativePath.slice(d.value.link.length-1),!e.value.cleanUrls)+i.value})),currentLang:d}}function ct(o,e,t,n){return e?o.replace(/\/$/,"")+ue(t.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):o}const ut=o=>(C("data-v-d6be1790"),o=o(),B(),o),dt={class:"NotFound"},vt={class:"code"},pt={class:"title"},ht=ut(()=>u("div",{class:"divider"},null,-1)),ft={class:"quote"},_t={class:"action"},mt=["href","aria-label"],bt=_({__name:"NotFound",setup(o){const{theme:e}=P(),{currentLang:t}=J();return(n,s)=>{var i,d,h,p,g;return a(),c("div",dt,[u("p",vt,w(((i=r(e).notFound)==null?void 0:i.code)??"404"),1),u("h1",pt,w(((d=r(e).notFound)==null?void 0:d.title)??"PAGE NOT FOUND"),1),ht,u("blockquote",ft,w(((h=r(e).notFound)==null?void 0:h.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),u("div",_t,[u("a",{class:"link",href:r(he)(r(t).link),"aria-label":((p=r(e).notFound)==null?void 0:p.linkLabel)??"go to home"},w(((g=r(e).notFound)==null?void 0:g.linkText)??"Take me home"),9,mt)])])}}}),kt=k(bt,[["__scopeId","data-v-d6be1790"]]);function Me(o,e){if(Array.isArray(o))return Z(o);if(o==null)return[];e=ue(e);const t=Object.keys(o).sort((s,i)=>i.split("/").length-s.split("/").length).find(s=>e.startsWith(ue(s))),n=t?o[t]:[];return Array.isArray(n)?Z(n):Z(n.items,n.base)}function $t(o){const e=[];let t=0;for(const n in o){const s=o[n];if(s.items){t=e.push(s);continue}e[t]||e.push({items:[]}),e[t].items.push(s)}return e}function gt(o){const e=[];function t(n){for(const s of n)s.text&&s.link&&e.push({text:s.text,link:s.link,docFooterText:s.docFooterText}),s.items&&t(s.items)}return t(o),e}function de(o,e){return Array.isArray(e)?e.some(t=>de(o,t)):z(o,e.link)?!0:e.items?de(o,e.items):!1}function Z(o,e){return[...o].map(t=>{const n={...t},s=n.base||e;return s&&n.link&&(n.link=s+n.link),n.items&&(n.items=Z(n.items,s)),n})}function U(){const{frontmatter:o,page:e,theme:t}=P(),n=le("(min-width: 960px)"),s=I(!1),i=y(()=>{const H=t.value.sidebar,S=e.value.relativePath;return H?Me(H,S):[]}),d=I(i.value);O(i,(H,S)=>{JSON.stringify(H)!==JSON.stringify(S)&&(d.value=i.value)});const h=y(()=>o.value.sidebar!==!1&&d.value.length>0&&o.value.layout!=="home"),p=y(