1
0
forked from bot/app
LiteyukiBot/assets/chunks/theme.B1YPMpUY.js

3 lines
55 KiB
JavaScript
Raw Normal View History

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