mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-15 02:44:24 +08:00
12 lines
73 KiB
JavaScript
12 lines
73 KiB
JavaScript
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.DWIkN3b9.js","assets/chunks/framework.C4_mTacX.js"])))=>i.map(i=>d[i]);
|
||
|
import{d as m,o as r,c as f,r as p,n as F,a as W,t as C,b as $,w as v,e as b,T as Ne,_ as S,u as Ae,i as It,f as Ct,g as Me,h as T,j as u,k as c,p as j,l as x,m as oe,q as Le,s as I,v as J,x as _e,y as te,z as le,A as Ee,B as Nt,C as At,D as se,F as D,E as U,G as Je,H as me,I as L,J as K,K as Ye,L as ge,M as ee,N as ce,O as Mt,P as be,Q as we,R as Et,S as Xe,U as ye,V as Bt,W as Ot,X as Ht,Y as Qe,Z as Ze,$ as Dt,a0 as Ft,a1 as jt,a2 as xt,a3 as Rt,a4 as Ut,a5 as zt,a6 as et,a7 as tt,a8 as Ve}from"./framework.C4_mTacX.js";const Gt=m({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(r(),f("span",{class:F(["VPBadge",e.type])},[p(e.$slots,"default",{},()=>[W(C(e.text),1)])],2))}}),Kt={key:0,class:"VPBackdrop"},qt=m({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(r(),$(Ne,{name:"fade"},{default:v(()=>[e.show?(r(),f("div",Kt)):b("",!0)]),_:1}))}}),Wt=S(qt,[["__scopeId","data-v-2cfdfdcf"]]),O=Ae;function Jt(t,e){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Te(t){return/^\//.test(t)?t:`/${t}`}function Be(t){const{pathname:e,search:n,hash:s,protocol:o}=new URL(t,"http://a.com");if(It(t)||t.startsWith("#")||!o.startsWith("http")||!Ct(e))return t;const{site:a}=O(),i=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);return Me(i)}function ue({correspondingLink:t=!1}={}){const{site:e,localeIndex:n,page:s,theme:o,hash:a}=O(),i=T(()=>{var d,h;return{label:(d=e.value.locales[n.value])==null?void 0:d.label,link:((h=e.value.locales[n.value])==null?void 0:h.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:T(()=>Object.entries(e.value.locales).flatMap(([d,h])=>i.value.label===h.label?[]:{text:h.label,link:Yt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&t,s.value.relativePath.slice(i.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:i}}function Yt(t,e,n,s){return e?t.replace(/\/$/,"")+Te(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):t}const Xt=t=>(j("data-v-868b40d9"),t=t(),x(),t),Qt={class:"NotFound"},Zt={class:"code"},en={class:"title"},tn=Xt(()=>u("div",{class:"divider"},null,-1)),nn={class:"quote"},on={class:"action"},sn=["href","aria-label"],an=m({__name:"NotFound",setup(t){const{theme:e}=O(),{currentLang:n}=ue();return(s,o)=>{var a,i,l,d,h;return r(),f("div",Qt,[u("p",Zt,C(((a=c(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",en,C(((i=c(e).notFound)==null?void 0:i.title)??"PAGE NOT FOUND"),1),tn,u("blockquote",nn,C(((l=c(e).notFound)==null?void 0:l.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",on,[u("a",{class:"link",href:c(Me)(c(n).link),"aria-label":((d=c(e).notFound)==null?void 0:d.linkLabel)??"go to home"},C(((h=c(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,sn)])])}}}),rn=S(an,[["__scopeId","data-v-868b40d9"]]);function nt(t,e){if(Array.isArray(t))return pe(t);if(t==null)return[];e=Te(e);const n=Object.keys(t).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Te(o))),s=n?t[n]:[];return Array.isArray(s)?pe(s):pe(s.items,s.base)}function ln(t){const e=[];let n=0;for(const s in t){const o=t[s];if(o.items){n=e.push(o);continue}e[n]||e.push({items:[]}),e[n].items.push(o)}return e}function cn(t){const e=[];function n(s){for(const o of s)o.text&&o.link&&e.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&n(o.items)}return n(t),e}function Ie(t,e){return Array.isArray(e)?e.some(n=>Ie(t,n)):oe(t,e.link)?!0:e.items?Ie(t,e.items):!1}function pe(t,e){return[...t].map(n=>{const s={...n},o=s.base||e;return o&&s.link&&(s.link=o+s.link),s.items&&(s.items=pe(s.items,o)),s})}function Y(){const{frontmatter:t,page:e,theme:n}=O(),s=Le("(min-width: 960px)"),o=I(!1),a=T(()=>{const M=n.value.sidebar,k=e.value.relativePath;return M?nt(M,k):[]}),i=I(a.value);J(a,(M,k)=>{JSON.stringify(M)!==JSON.stringify(k)&&(i.value=a.value)});const l=T(()=>t.value.sidebar
|
||
|
* vue-router v4.4.3
|
||
|
* (c) 2024 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/var Ge;(function(t){t.pop="pop",t.push="push"})(Ge||(Ge={}));var Ke;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ke||(Ke={}));var qe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(qe||(qe={}));const _i=Symbol("");function mi(t,e,n){const s=()=>{t[e].delete(n)};le(s),Ut(s),zt(()=>{t[e].add(n)}),t[e].add(n)}function gi(t){const e=ce(_i,{}).value;e&&mi(e,"updateGuards",t)}const bi=t=>(j("data-v-90f05ac8"),t=t(),x(),t),yi={class:"stats-bar-content"},ki={class:"stats-bar"},$i={class:"stats-info"},Si={class:"stats-title"},Pi={class:"sections"},Li=["href"],wi={class:"section-tab"},Vi={class:"text"},Ti={class:"number"},Ii=bi(()=>u("div",{class:"starmap"},[u("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1)),Ci=m({__name:"StatsBar",setup(t){const{Layout:e}=pt;let n=null;const s={total:{name:"total",color:"#00a6ff",value:I(2005),link:ze},online:{name:"online",color:"#7eff7e",value:I(1145),link:ze},stars:{name:"stars",color:"#ffcc00",value:I(1234),link:`${ie}/stargazers`},forks:{name:"forks",color:"#ff6600",value:I(9420),link:`${ie}/forks`},issues:{name:"issues",color:"#ff0000",value:I(1145),link:`${ie}/issues`},prs:{name:"prs",color:"#f15df1",value:I(6543),link:`${ie}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:I(1763),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:I(6789),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:I(1234),link:ie}};async function o(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,s.visitors.value.value,n]=await Promise.all([ae.getOnline(),ae.getTotal(),ae.getPluginNum(),ae.getResourceNum(),ae.getVisitCount(),ae.getGithubStats()]),s.stars.value.value=(n==null?void 0:n.stars)||0,s.forks.value.value=(n==null?void 0:n.forks)||0,s.issues.value.value=(n==null?void 0:n.issues)||0,s.prs.value.value=(n==null?void 0:n.prs)||0}function a(i){return i.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return te(()=>{const i=setInterval(o,1e4);o(),fi(),le(()=>{clearInterval(i)})}),gi(()=>{hi()}),(i,l)=>(r(),$(c(e),null,{"home-features-before":v(()=>[u("div",yi,[u("div",ki,[u("div",$i,[u("div",Si,C(c(Z)("stats")),1),u("div",Pi,[(r(!0),f(D,null,U(Object.values(s),d=>(r(),f("div",{key:d.name,class:"section"},[u("a",{href:d.link,target:"_blank"},[u("div",wi,[u("span",{class:"dot",style:be({backgroundColor:d.color})},null,4),u("span",Vi,C(c(Z)(d.name)),1)]),u("div",Ti,C(a(d.value)),1)],8,Li)]))),128))])]),Ii])])]),_:1}))}}),We=S(Ci,[["__scopeId","data-v-90f05ac8"]]);var Ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ai(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var mt={exports:{}};/*!
|
||
|
* clipboard.js v2.0.11
|
||
|
* https://clipboardjs.com/
|
||
|
*
|
||
|
* Licensed MIT © Zeno Rocha
|
||
|
*/(function(t,e){(function(s,o){t.exports=o()})(Ni,function(){return function(){var n={686:function(a,i,l){l.d(i,{default:function(){return Tt}});var d=l(279),h=l.n(d),g=l(370),_=l.n(g),y=l(817),N=l.n(y);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(w){var P=N()(w);return V("cut"),P},k=M;function R(B){var w=document.documentElement.getAttribute("dir")==="rtl",P=document.createElement("textarea");P.style.fontSize="12pt",P.style.border="0",P.style.padding="0",P.style.margin="0",P.style.position="absolute",P.style[w?"right":"left"]="-9999px";var A=window.pageYOffset||document.documentElement.scrollTop;return P.style.top="".concat(A,"px"),P.setAttribute("readonly",""),P.value=B,P}var z=function(w,P){var A=R(w);P.container.appendChild(A);var E=N()(A);return V("copy"),A.remove(),E},X=function(w){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},A="";return typeof w=="string"?A=z(w,P):w instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(w==null?void 0:w.type)?A=z(w.value,P):(A=N()(w),V("copy")),A},ne=X;function Q(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Q=function(P){return typeof P}:Q=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Q(B)}var gt=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=w.action,A=P===void 0?"copy":P,E=w.container,H=w.target,G=w.text;if(A!=="copy"&&A!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&Q(H)==="object"&&H.nodeType===1){if(A==="copy"&&H.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(A==="cut"&&(H.hasAttribute("readonly")||H.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(G)return ne(G,{container:E});if(H)return A==="cut"?k(H):ne(H,{container:E})},bt=gt;function re(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?re=function(P){return typeof P}:re=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},re(B)}function yt(B,w){if(!(B instanceof w))throw new TypeError("Cannot call a class as a function")}function Re(B,w){for(var P=0;P<w.length;P++){var A=w[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(B,A.key,A)}}function kt(B,w,P){return w&&Re(B.prototype,w),P&&Re(B,P),B}function $t(B,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(w&&w.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),w&&$e(B,w)}function $e(B,w){return $e=Object.setPrototypeOf||function(A,E){return A.__proto__=E,A},$e(B,w)}function St(B){var w=wt();return function(){var A=de(B),E;if(w){var H=de(this).constructor;E=Reflect.construct(A,arguments,H)}else E=A.apply(this,arguments);return Pt(this,E)}}function Pt(B,w){return w&&(re(w)==="object"||typeof w=="function")?w:Lt(B)}function Lt(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function wt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function de(B){return de=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},de(B)}function Se(B,w){var P="data-clipboard-".concat(B);if(w.hasAttribute(P))return w.getAttribute(P)}var Vt=function(B){$t(P,B);var w=St(P);function P(A,E){var H;return yt(this,P),H=w.call(this),H.resolveOptions(E),H.listenClick(A),H}return kt(P,[{key:"resolveOptions",value:function(){var E=argume
|