app/assets/chunks/theme.BU5IJHhy.js

19 lines
80 KiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.DkV76ffk.js","assets/chunks/framework.jrU0lkHV.js"])))=>i.map(i=>d[i]);
import{u as ve,d as b,o as i,c as p,r as f,n as x,a as Q,t as N,b as w,w as v,e as k,T as Me,_ as $,i as St,f as wt,g as Ee,h as T,j as c,k as u,l as te,m as Pe,p as C,q as W,s as he,v as Z,x as re,y as Be,z as Pt,A as Lt,B as ne,F as D,C as R,D as Xe,E as me,G as S,H as G,I as Qe,J as _e,K as X,L as ie,M as Vt,N as ge,O as Le,P as Tt,Q as Ze,R as be,S as Nt,U as Ct,V as It,W as et,X as tt,Y as At,Z as Mt,$ as Et,a0 as nt,a1 as Bt,a2 as Ot,a3 as Ht,a4 as Ve,a5 as Te,a6 as Ne}from"./framework.jrU0lkHV.js";const Dt={en:{stats:"Stats",online:"Online",offline:"Offline",total:"Total",fetching:"Fetching",stars:"Stars",forks:"Forks",issues:"Issues",prs:"Pull Requests",visitors:"Visitors",size:"Size",plugins:"Plugins",resources:"Resources",pluginStore:"Plugin Store",pluginStoreDesc:"Content from the LightSnow Plugin Store, LightSnow supports NoneBot through the lpnonebot plugin, and references some NoneBot plugins",liteyukiOnly:"Liteyuki Only",search:"Search",resourceStore:"Resources Store",thx_contributors:"Thanks the following contributors!",easterEgg:"Congratulations on finding the Easter egg!",publishPlugin:"Publish Plugin",publishRes:"Publish Resource",closeButtonText:"Close",submitButtonText:"Submit",resName:"Name",resDesc:"Description",resAuthor:"Author",resLink:"Download Link",resHomepage:"Homepage",resNameText:"Example: Kawaii Style Theme",resDescText:"Example: A kawaii style and color theme",resAuthorText:"Usually the github username, Example: yanyongyu",resLinkText:"Direct download link, usually zip package link",resHomepageText:'Optional, can be the name of the git platform repository"'},zh:{stats:"统计信息",online:"在线",offline:"离线",total:"实例",fetching:"获取中",stars:"星星",forks:"分叉",issues:"议题",prs:"拉取请求",visitors:"访客",size:"大小",plugins:"插件",resources:"主题资源",store:"商店",pluginStore:"插件商店",pluginStoreDesc:"内容来自轻雪插件商店轻雪通过lpnonebot插件对NoneBot实现支持引用了部分NoneBot插件",liteyukiOnly:"仅轻雪",search:"搜索",resourceStore:"资源商店",thx_contributors:"感谢以下贡献者!",easterEgg:"恭喜你发现了彩蛋!",publishPlugin:"发布插件",publishRes:"发布资源",closeButtonText:"关闭",submitButtonText:"提交",resName:"名称",resDesc:"描述",resAuthor:"作者",resLink:"下载链接",resHomepage:"主页",resNameText:"示例:可爱风格主题",resDescText:"示例:一个可爱风格和配色的主题",resAuthorText:"通常为github用户名示例yanyongyu",resLinkText:"直接下载链接通常为zip包链接",resHomepageText:"可选可为git平台仓库名"}};let pe={};function ot(n,e){return n=ke(n),Dt[n][e]}function ke(n){return n.includes("-")?n.split("-")[0]:n}function xt(){const n=ke(ve().site.value.lang);for(let e in pe)pe[e].value=ot(n,e)}function j(n){const e=ke(ve().site.value.lang);return pe[n]=ot(e,n),pe[n]||n}const Ft=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(n){return(e,t)=>(i(),p("span",{class:x(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[Q(N(e.text),1)])],2))}}),Rt={key:0,class:"VPBackdrop"},jt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(n){return(e,t)=>(i(),w(Me,{name:"fade"},{default:v(()=>[e.show?(i(),p("div",Rt)):k("",!0)]),_:1}))}}),zt=$(jt,[["__scopeId","data-v-a5786ee1"]]),O=ve;function Ut(n,e){let t,s=!1;return()=>{t&&clearTimeout(t),s?t=setTimeout(n,e):(n(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Ce(n){return/^\//.test(n)?n:`/${n}`}function Oe(n){const{pathname:e,search:t,hash:s,protocol:o}=new URL(n,"http://a.com");if(St(n)||n.startsWith("#")||!o.startsWith("http")||!wt(e))return n;const{site:a}=O(),l=e.endsWith("/")||e.endsWith(".html")?n:n.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${t}${s}`);return Ee(l)}function le({correspondingLink:n=!1}={}){const{site:e,localeIndex:t,page:s,theme:o,hash:a}=O(),l=T(()=>{var d,h;return{label:(d=e.value.locales[t.value])==null?void 0:d.label,link:((h=e.value.locales[t.value])==null?void 0:h.link)||(t.value==="root"?"/":`/${t.
* vue-router v4.4.5
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/var We;(function(n){n.pop="pop",n.push="push"})(We||(We={}));var qe;(function(n){n.back="back",n.forward="forward",n.unknown=""})(qe||(qe={}));var Je;(function(n){n[n.aborted=4]="aborted",n[n.cancelled=8]="cancelled",n[n.duplicated=16]="duplicated"})(Je||(Je={}));const Mr=Symbol("");function Er(n,e,t){const s=()=>{n[e].delete(t)};re(s),Ot(s),Ht(()=>{n[e].add(t)}),n[e].add(t)}function Br(n){const e=ie(Mr,{}).value;e&&Er(e,"updateGuards",n)}const Or={class:"stats-bar-content"},Hr={class:"stats-bar"},Dr={class:"stats-info"},xr={class:"stats-title"},Fr={class:"sections"},Rr=["href"],jr={class:"section-tab"},zr={class:"text"},Ur={class:"number"},Gr=b({__name:"StatsBar",setup(n){const{Layout:e}=ct;let t=null;const s={total:{name:"total",color:"#00a6ff",value:C(-1),link:Ke},online:{name:"online",color:"#7eff7e",value:C(-1),link:Ke},stars:{name:"stars",color:"#ffcc00",value:C(-1),link:`${se}/stargazers`},forks:{name:"forks",color:"#ff6600",value:C(-1),link:`${se}/forks`},issues:{name:"issues",color:"#ff0000",value:C(-1),link:`${se}/issues`},prs:{name:"prs",color:"#f15df1",value:C(-1),link:`${se}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:C(-1),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:C(-1),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:C(-1),link:se}};async function o(){[s.online.value.value,s.total.value.value,s.plugins.value.value,s.resources.value.value,s.visitors.value.value,t]=await Promise.all([oe.getOnline(),oe.getTotal(),oe.getPluginNum(),oe.getResourceNum(),oe.getVisitCount(),oe.getGithubStats()]),s.stars.value.value=(t==null?void 0:t.stars)||0,s.forks.value.value=(t==null?void 0:t.forks)||0,s.issues.value.value=(t==null?void 0:t.issues)||0,s.prs.value.value=(t==null?void 0:t.prs)||0}function a(l){return l.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return Z(()=>{const l=setInterval(o,1e4);o(),Ir(),re(()=>{clearInterval(l)})}),Br(()=>{xt()}),console.log(` _ _ _ _ _ ____ _
| | (_) | | | (_) _ \\ | |
| | _| |_ ___ _ _ _ _| | ___| |_) | ___ | |_
| | | | __/ _ \\ | | | | | | |/ / | _ < / _ \\| __|
| |____| | || __/ |_| | |_| | <| | |_) | (_) | |_
|______|_|\\__\\___|\\__, |\\__,_|_|\\_\\_|____/ \\___/ \\__|
__/ |
|___/ `),console.log(j("easterEgg")),(l,r)=>(i(),w(u(e),null,{"home-features-before":v(()=>[c("div",Or,[c("div",Hr,[c("div",Dr,[c("div",xr,N(u(j)("stats")),1),c("div",Fr,[(i(!0),p(D,null,R(Object.values(s),d=>(i(),p("div",{key:d.name,class:"section"},[c("a",{href:d.link,target:"_blank"},[c("div",jr,[c("span",{class:"dot",style:ge({backgroundColor:d.color})},null,4),c("span",zr,N(u(j)(d.name)),1)]),c("div",Ur,N(a(d.value)),1)],8,Rr)]))),128))])]),r[0]||(r[0]=c("div",{class:"starmap"},[c("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1))])])]),_:1}))}}),Ye=$(Gr,[["__scopeId","data-v-2391887b"]]);var Kr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var dt={exports:{}};/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(n,e){(function(s,o){n.exports=o()})(Kr,function(){return function(){var t={686:function(a,l,r){r.d(l,{default:function(){return $t}});var d=r(279),h=r.n(d),_=r(370),m=r.n(_),g=r(817),I=r.n(g);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(L){var P=I()(L);return V("cut"),P},y=M;function F(B){var L=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[L?"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(L,P){var A=F(L);P.container.appendChild(A);var E=I()(A);return V("copy"),A.remove(),E},J=function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},A="";return typeof L=="string"?A=z(L,P):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?A=z(L.value,P):(A=I()(L),V("copy")),A},ee=J;function Y(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Y=function(P){return typeof P}:Y=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Y(B)}var pt=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=L.action,A=P===void 0?"copy":P,E=L.container,H=L.target,U=L.text;if(A!=="copy"&&A!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&Y(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(U)return ee(U,{container:E});if(H)return A==="cut"?y(H):ee(H,{container:E})},ft=pt;function ae(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(P){return typeof P}:ae=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},ae(B)}function vt(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function Ue(B,L){for(var P=0;P<L.length;P++){var A=L[P];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(B,A.key,A)}}function ht(B,L,P){return L&&Ue(B.prototype,L),P&&Ue(B,P),B}function mt(B,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(L&&L.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),L&&$e(B,L)}function $e(B,L){return $e=Object.setPrototypeOf||function(A,E){return A.__proto__=E,A},$e(B,L)}function _t(B){var L=kt();return function(){var A=ue(B),E;if(L){var H=ue(this).constructor;E=Reflect.construct(A,arguments,H)}else E=A.apply(this,arguments);return gt(this,E)}}function gt(B,L){return L&&(ae(L)==="object"||typeof L=="function")?L:bt(B)}function bt(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function kt(){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 ue(B){return ue=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)},ue(B)}function Se(B,L){var P="data-clipboard-".concat(B);if(L.hasAttribute(P))return L.getAttribute(P)}var yt=function(B){mt(P,B);var L=_t(P);function P(A,E){var H;return vt(this,P),H=L.call(this),H.resolveOptions(E),H.listenClick(A),H}return ht(P,[{key:"resolveOptions",value:function(){var E=argume