mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-25 06:35:05 +08:00
19 lines
80 KiB
JavaScript
19 lines
80 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/chunks/VPLocalSearchBox.bbBe6Z6G.js","assets/chunks/framework.C4_mTacX.js"])))=>i.map(i=>d[i]);
|
||
import{u as _e,d as b,o as r,c as p,r as f,n as D,a as J,t as T,b as w,w as v,e as k,T as Be,_ as $,i as Nt,f as Ct,g as Oe,h as I,j as u,k as c,p as F,l as R,m as oe,q as Ve,s as N,v as Y,x as me,y as te,z as le,A as He,B as At,C as Mt,D as se,F as x,E as z,G as Ze,H as ge,I as S,J as W,K as et,L as be,M as ee,N as ce,O as Et,P as ke,Q as Te,R as Bt,S as tt,U as ye,V as Ot,W as Ht,X as xt,Y as nt,Z as ot,$ as Dt,a0 as Ft,a1 as Rt,a2 as st,a3 as jt,a4 as zt,a5 as Ut,a6 as Ie,a7 as Ne,a8 as Ce}from"./framework.C4_mTacX.js";const Gt={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 ve={};function at(t,e){return t=$e(t),Gt[t][e]}function $e(t){return t.includes("-")?t.split("-")[0]:t}function Kt(){const t=$e(_e().site.value.lang);for(let e in ve)ve[e].value=at(t,e)}function U(t){const e=$e(_e().site.value.lang);return ve[t]=at(e,t),ve[t]||t}const Wt=b({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(t){return(e,n)=>(r(),p("span",{class:D(["VPBadge",e.type])},[f(e.$slots,"default",{},()=>[J(T(e.text),1)])],2))}}),qt={key:0,class:"VPBackdrop"},Jt=b({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(t){return(e,n)=>(r(),w(Be,{name:"fade"},{default:v(()=>[e.show?(r(),p("div",qt)):k("",!0)]),_:1}))}}),Yt=$(Jt,[["__scopeId","data-v-7e9fed24"]]),O=_e;function Xt(t,e){let n,s=!1;return()=>{n&&clearTimeout(n),s?n=setTimeout(t,e):(t(),(s=!0)&&setTimeout(()=>s=!1,e))}}function Ae(t){return/^\//.test(t)?t:`/${t}`}function xe(t){const{pathname:e,search:n,hash:s,protocol:o}=new URL(t,"http://a.com");if(Nt(t)||t.startsWith("#")||!o.startsWith("http")||!Ct(e))return t;const{site:a}=O(),l=e.endsWith("/")||e.endsWith(".html")?t:t.replace(/(?:(^\.+)\/)?.*$/,`$1${e.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${n}${s}`);return Oe(l)}function ue({correspondingLink:t=!1}={}){const{site:e,localeIndex:n,page:s,theme:o,hash:a}=O(),l=I(()=>{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:I(()=>Object.entries(e.value.locales).flatMap(([d,h])=>l.value.label===h.label?[]:{text:h.label,link:Qt(h.link||(d==="root"?"/":`/${d}/`),o.value.i18nRouting!==!1&&t,s.value.relativePath.slice(l.value.link.length-1),!e.value.cleanUrls)+a.value})),currentLang:l}}function Qt(t,e,n,s){return e?t.replace(/\/$/,"")+Ae(n.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,s?".html":"")):t}const Zt=t=>(F("data-v-743bc607"),t=t(),R(),t),en={class:"NotFound"},tn={class:"code"},nn={class:"title"},on=Zt(()=>u("div",{class:"divider"},null,-1)),sn={class:"quote"},an={class:"action"},rn=["href","aria-label"],ln=b({__name:"NotFound",setup(t){const{theme:e}=O(),{currentLang:n}=ue();return(s,o)=>{var a,l,i,d,h;return r(),p("div",en,[u("p",tn,T(((a=c(e).notFound)==null?void 0:a.code)??"404"),1),u("h1",nn,T(((l=c(e).notFound)==null?void 0:l.title)??"PAGE NOT FOUND"),1),on,u("blockquote",sn,T(((i=c(e).notFound)==null?void 0:i.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",an,[u("a",{class:"link",href:c(Oe)(c(n).link),"aria-label":((d=c(e).notFound)==null?void 0:d.linkLabel)??"go to home"},T(((h=c(e).notFound)==null?void 0:h.linkText)??"Take me home"),9,rn)])])}}}),cn=$(ln,[["__scopeId","data-v-743bc607"]]);function rt(t,e){if(Array.isArray(t))return fe(t);if(t==null)return[];e=Ae(e);const n=Object.keys(t).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>e.startsWith(Ae(o))),s=n?t[n]:[];return Array.isArray(s)?fe(s):fe(s.items,s.base)}function un(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 dn(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 Me(t,e){return Array.isArray(e)?e.some(n=>Me(t,n)):oe(t,e.link)?!0:e.items?Me(t,e.items):!1}function fe(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=fe(s.items,o)),s})}function X(){const{frontmatter:t,page:e,theme:n}=O(),s=Ve("(min-width: 960px)"),o=N(!1),a=I(()=>{const M=n.value.sidebar,y=e.value.relativePath;return M?rt(M,y):[]}),l=N(a.value);Y(a,(M,y)=>{JSON.stringify(M)!==JSON.stringify(y)&&(l.value=a.value)});const i=I(()=>t.value.sidebar!==!1&&l.value.length>0&&t.value.layout!=="home"),d=I(()=>h?t.value.aside==null?n.value.aside==="left":t.value.aside==="left":!1),h=I(()=>t.value.layout==="home"?!1:t.value.aside!=null?!!t.value.aside:n.value.aside!==!1),m=I(()=>i.value&&s.value),_=I(()=>i.value?un(l.value):[]);function g(){o.value=!0}function C(){o.value=!1}function V(){o.value?C():g()}return{isOpen:o,sidebar:l,sidebarGroups:_,hasSidebar:i,hasAside:h,leftAside:d,isSidebarEnabled:m,open:g,close:C,toggle:V}}function pn(t,e){let n;me(()=>{n=t.value?document.activeElement:void 0}),te(()=>{window.addEventListener("keyup",s)}),le(()=>{window.removeEventListener("keyup",s)});function s(o){o.key==="Escape"&&t.value&&(e(),n==null||n.focus())}}function fn(t){const{page:e,hash:n}=O(),s=N(!1),o=I(()=>t.value.collapsed!=null),a=I(()=>!!t.value.link),l=N(!1),i=()=>{l.value=oe(e.value.relativePath,t.value.link)};Y([e,t,n],i),te(i);const d=I(()=>l.value?!0:t.value.items?Me(e.value.relativePath,t.value.items):!1),h=I(()=>!!(t.value.items&&t.value.items.length));me(()=>{s.value=!!(o.value&&t.value.collapsed)}),He(()=>{(l.value||d.value)&&(s.value=!1)});function m(){o.value&&(s.value=!s.value)}return{collapsed:s,collapsible:o,isLink:a,isActiveLink:l,hasActiveLink:d,hasChildren:h,toggle:m}}function vn(){const{hasSidebar:t}=X(),e=Ve("(min-width: 960px)"),n=Ve("(min-width: 1280px)");return{isAsideEnabled:I(()=>!n.value&&!e.value?!1:t.value?n.value:e.value)}}const Ee=[];function it(t){return typeof t.outline=="object"&&!Array.isArray(t.outline)&&t.outline.label||t.outlineTitle||"On this page"}function De(t){const e=[...document.querySelectorAll(".VPDoc :where(h1,h2,h3,h4,h5,h6)")].filter(n=>n.id&&n.hasChildNodes()).map(n=>{const s=Number(n.tagName[1]);return{element:n,title:hn(n),link:"#"+n.id,level:s}});return _n(e,t)}function hn(t){let e="";for(const n of t.childNodes)if(n.nodeType===1){if(n.classList.contains("VPBadge")||n.classList.contains("header-anchor")||n.classList.contains("ignore-header"))continue;e+=n.textContent}else n.nodeType===3&&(e+=n.textContent);return e.trim()}function _n(t,e){if(e===!1)return[];const n=(typeof e=="object"&&!Array.isArray(e)?e.level:e)||2,[s,o]=typeof n=="number"?[n,n]:n==="deep"?[2,6]:n;t=t.filter(l=>l.level>=s&&l.level<=o),Ee.length=0;for(const{element:l,link:i}of t)Ee.push({element:l,link:i});const a=[];e:for(let l=0;l<t.length;l++){const i=t[l];if(l===0)a.push(i);else{for(let d=l-1;d>=0;d--){const h=t[d];if(h.level<i.level){(h.children||(h.children=[])).push(i);continue e}}a.push(i)}}return a}function mn(t,e){const{isAsideEnabled:n}=vn(),s=Xt(a,100);let o=null;te(()=>{requestAnimationFrame(a),window.addEventListener("scroll",s)}),At(()=>{l(location.hash)}),le(()=>{window.removeEventListener("scroll",s)});function a(){if(!n.value)return;const i=window.scrollY,d=window.innerHeight,h=document.body.offsetHeight,m=Math.abs(i+d-h)<1,_=Ee.map(({element:C,link:V})=>({link:V,top:gn(C)})).filter(({top:C})=>!Number.isNaN(C)).sort((C,V)=>C.top-V.top);if(!_.length){l(null);return}if(i<1){l(null);return}if(m){l(_[_.length-1].link);return}let g=null;for(const{link:C,top:V}of _){if(V>i+Mt()+4)break;g=C}l(g)}function l(i){o&&o.classList.remove("active"),i==null?o=null:o=t.value.querySelector(`a[href="${decodeURIComponent(i)}"]`);const d=o;d?(d.classList.add("active"),e.value.style.top=d.offsetTop+39+"px",e.value.style.opacity="1"):(e.value.style.top="33px",e.value.style.opacity="0")}}function gn(t){let e=0;for(;t!==document.body;){if(t===null)return NaN;e+=t.offsetTop,t=t.offsetParent}return e}const bn=["href","title"],kn=b({__name:"VPDocOutlineItem",props:{headers:{},root:{type:Boolean}},setup(t){function e({target:n}){const s=n.href.split("#")[1],o=document.getElementById(decodeURIComponent(s));o==null||o.focus({preventScroll:!0})}return(n,s)=>{const o=se("VPDocOutlineItem",!0);return r(),p("ul",{class:D(["VPDocOutlineItem",n.root?"root":"nested"])},[(r(!0),p(x,null,z(n.headers,({children:a,link:l,title:i})=>(r(),p("li",null,[u("a",{class:"outline-link",href:l,onClick:e,title:i},T(i),9,bn),a!=null&&a.length?(r(),w(o,{key:0,headers:a},null,8,["headers"])):k("",!0)]))),256))],2)}}}),lt=$(kn,[["__scopeId","data-v-1406b17f"]]),yn={class:"content"},$n={"aria-level":"2",class:"outline-title",id:"doc-outline-aria-label",role:"heading"},Sn=b({__name:"VPDocAsideOutline",setup(t){const{frontmatter:e,theme:n}=O(),s=Ze([]);ge(()=>{s.value=De(e.value.outline??n.value.outline)});const o=N(),a=N();return mn(o,a),(l,i)=>(r(),p("nav",{"aria-labelledby":"doc-outline-aria-label",class:D(["VPDocAsideOutline",{"has-outline":s.value.length>0}]),ref_key:"container",ref:o},[u("div",yn,[u("div",{class:"outline-marker",ref_key:"marker",ref:a},null,512),u("div",$n,T(c(it)(c(n))),1),S(lt,{headers:s.value,root:!0},null,8,["headers"])])],2))}}),wn=$(Sn,[["__scopeId","data-v-d2c84864"]]),Pn={class:"VPDocAsideCarbonAds"},Ln=b({__name:"VPDocAsideCarbonAds",props:{carbonAds:{}},setup(t){const e=()=>null;return(n,s)=>(r(),p("div",Pn,[S(c(e),{"carbon-ads":n.carbonAds},null,8,["carbon-ads"])]))}}),Vn=t=>(F("data-v-2fb953a0"),t=t(),R(),t),Tn={class:"VPDocAside"},In=Vn(()=>u("div",{class:"spacer"},null,-1)),Nn=b({__name:"VPDocAside",setup(t){const{theme:e}=O();return(n,s)=>(r(),p("div",Tn,[f(n.$slots,"aside-top",{},void 0,!0),f(n.$slots,"aside-outline-before",{},void 0,!0),S(wn),f(n.$slots,"aside-outline-after",{},void 0,!0),In,f(n.$slots,"aside-ads-before",{},void 0,!0),c(e).carbonAds?(r(),w(Ln,{key:0,"carbon-ads":c(e).carbonAds},null,8,["carbon-ads"])):k("",!0),f(n.$slots,"aside-ads-after",{},void 0,!0),f(n.$slots,"aside-bottom",{},void 0,!0)]))}}),Cn=$(Nn,[["__scopeId","data-v-2fb953a0"]]);function An(){const{theme:t,page:e}=O();return I(()=>{const{text:n="Edit this page",pattern:s=""}=t.value.editLink||{};let o;return typeof s=="function"?o=s(e.value):o=s.replace(/:path/g,e.value.filePath),{url:o,text:n}})}function Mn(){const{page:t,theme:e,frontmatter:n}=O();return I(()=>{var h,m,_,g,C,V,M,y;const s=rt(e.value.sidebar,t.value.relativePath),o=dn(s),a=En(o,j=>j.link.replace(/[?#].*$/,"")),l=a.findIndex(j=>oe(t.value.relativePath,j.link)),i=((h=e.value.docFooter)==null?void 0:h.prev)===!1&&!n.value.prev||n.value.prev===!1,d=((m=e.value.docFooter)==null?void 0:m.next)===!1&&!n.value.next||n.value.next===!1;return{prev:i?void 0:{text:(typeof n.value.prev=="string"?n.value.prev:typeof n.value.prev=="object"?n.value.prev.text:void 0)??((_=a[l-1])==null?void 0:_.docFooterText)??((g=a[l-1])==null?void 0:g.text),link:(typeof n.value.prev=="object"?n.value.prev.link:void 0)??((C=a[l-1])==null?void 0:C.link)},next:d?void 0:{text:(typeof n.value.next=="string"?n.value.next:typeof n.value.next=="object"?n.value.next.text:void 0)??((V=a[l+1])==null?void 0:V.docFooterText)??((M=a[l+1])==null?void 0:M.text),link:(typeof n.value.next=="object"?n.value.next.link:void 0)??((y=a[l+1])==null?void 0:y.link)}}})}function En(t,e){const n=new Set;return t.filter(s=>{const o=e(s);return n.has(o)?!1:n.add(o)})}const q=b({__name:"VPLink",props:{tag:{},href:{},noIcon:{type:Boolean},target:{},rel:{}},setup(t){const e=t,n=I(()=>e.tag??(e.href?"a":"span")),s=I(()=>e.href&&et.test(e.href)||e.target==="_blank");return(o,a)=>(r(),w(W(n.value),{class:D(["VPLink",{link:o.href,"vp-external-link-icon":s.value,"no-icon":o.noIcon}]),href:o.href?c(xe)(o.href):void 0,target:o.target??(s.value?"_blank":void 0),rel:o.rel??(s.value?"noreferrer":void 0)},{default:v(()=>[f(o.$slots,"default")]),_:3},8,["class","href","target","rel"]))}}),Bn={class:"VPLastUpdated"},On=["datetime"],Hn=b({__name:"VPDocFooterLastUpdated",setup(t){const{theme:e,page:n,lang:s}=O(),o=I(()=>new Date(n.value.lastUpdated)),a=I(()=>o.value.toISOString()),l=N("");return te(()=>{me(()=>{var i,d,h;l.value=new Intl.DateTimeFormat((d=(i=e.value.lastUpdated)==null?void 0:i.formatOptions)!=null&&d.forceLocale?s.value:void 0,((h=e.value.lastUpdated)==null?void 0:h.formatOptions)??{dateStyle:"short",timeStyle:"short"}).format(o.value)})}),(i,d)=>{var h;return r(),p("p",Bn,[J(T(((h=c(e).lastUpdated)==null?void 0:h.text)||c(e).lastUpdatedText||"Last updated")+": ",1),u("time",{datetime:a.value},T(l.value),9,On)])}}}),xn=$(Hn,[["__scopeId","data-v-8a8c5efc"]]),ct=t=>(F("data-v-655c432b"),t=t(),R(),t),Dn={key:0,class:"VPDocFooter"},Fn={key:0,class:"edit-info"},Rn={key:0,class:"edit-link"},jn=ct(()=>u("span",{class:"vpi-square-pen edit-link-icon"},null,-1)),zn={key:1,class:"last-updated"},Un={key:1,class:"prev-next","aria-labelledby":"doc-footer-aria-label"},Gn=ct(()=>u("span",{class:"visually-hidden",id:"doc-footer-aria-label"},"Pager",-1)),Kn={class:"pager"},Wn=["innerHTML"],qn=["innerHTML"],Jn={class:"pager"},Yn=["innerHTML"],Xn=["innerHTML"],Qn=b({__name:"VPDocFooter",setup(t){const{theme:e,page:n,frontmatter:s}=O(),o=An(),a=Mn(),l=I(()=>e.value.editLink&&s.value.editLink!==!1),i=I(()=>n.value.lastUpdated),d=I(()=>l.value||i.value||a.value.prev||a.value.next);return(h,m)=>{var _,g,C,V;return d.value?(r(),p("footer",Dn,[f(h.$slots,"doc-footer-before",{},void 0,!0),l.value||i.value?(r(),p("div",Fn,[l.value?(r(),p("div",Rn,[S(q,{class:"edit-link-button",href:c(o).url,"no-icon":!0},{default:v(()=>[jn,J(" "+T(c(o).text),1)]),_:1},8,["href"])])):k("",!0),i.value?(r(),p("div",zn,[S(xn)])):k("",!0)])):k("",!0),(_=c(a).prev)!=null&&_.link||(g=c(a).next)!=null&&g.link?(r(),p("nav",Un,[Gn,u("div",Kn,[(C=c(a).prev)!=null&&C.link?(r(),w(q,{key:0,class:"pager-link prev",href:c(a).prev.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.prev)||"Previous page"},null,8,Wn),u("span",{class:"title",innerHTML:c(a).prev.text},null,8,qn)]}),_:1},8,["href"])):k("",!0)]),u("div",Jn,[(V=c(a).next)!=null&&V.link?(r(),w(q,{key:0,class:"pager-link next",href:c(a).next.link},{default:v(()=>{var M;return[u("span",{class:"desc",innerHTML:((M=c(e).docFooter)==null?void 0:M.next)||"Next page"},null,8,Yn),u("span",{class:"title",innerHTML:c(a).next.text},null,8,Xn)]}),_:1},8,["href"])):k("",!0)])])):k("",!0)])):k("",!0)}}}),Zn=$(Qn,[["__scopeId","data-v-655c432b"]]),eo=t=>(F("data-v-1c9751e9"),t=t(),R(),t),to={class:"container"},no=eo(()=>u("div",{class:"aside-curtain"},null,-1)),oo={class:"aside-container"},so={class:"aside-content"},ao={class:"content"},ro={class:"content-container"},io={class:"main"},lo=b({__name:"VPDoc",setup(t){const{theme:e}=O(),n=be(),{hasSidebar:s,hasAside:o,leftAside:a}=X(),l=I(()=>n.path.replace(/[./]+/g,"_").replace(/_html$/,""));return(i,d)=>{const h=se("Content");return r(),p("div",{class:D(["VPDoc",{"has-sidebar":c(s),"has-aside":c(o)}])},[f(i.$slots,"doc-top",{},void 0,!0),u("div",to,[c(o)?(r(),p("div",{key:0,class:D(["aside",{"left-aside":c(a)}])},[no,u("div",oo,[u("div",so,[S(Cn,null,{"aside-top":v(()=>[f(i.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(i.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(i.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(i.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(i.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(i.$slots,"aside-ads-after",{},void 0,!0)]),_:3})])])],2)):k("",!0),u("div",ao,[u("div",ro,[f(i.$slots,"doc-before",{},void 0,!0),u("main",io,[S(h,{class:D(["vp-doc",[l.value,c(e).externalLinkIcon&&"external-link-icon-enabled"]])},null,8,["class"])]),S(Zn,null,{"doc-footer-before":v(()=>[f(i.$slots,"doc-footer-before",{},void 0,!0)]),_:3}),f(i.$slots,"doc-after",{},void 0,!0)])])]),f(i.$slots,"doc-bottom",{},void 0,!0)],2)}}}),co=$(lo,[["__scopeId","data-v-1c9751e9"]]),uo=b({__name:"VPButton",props:{tag:{},size:{default:"medium"},theme:{default:"brand"},text:{},href:{},target:{},rel:{}},setup(t){const e=t,n=I(()=>e.href&&et.test(e.href)),s=I(()=>e.tag||e.href?"a":"button");return(o,a)=>(r(),w(W(s.value),{class:D(["VPButton",[o.size,o.theme]]),href:o.href?c(xe)(o.href):void 0,target:e.target??(n.value?"_blank":void 0),rel:e.rel??(n.value?"noreferrer":void 0)},{default:v(()=>[J(T(o.text),1)]),_:1},8,["class","href","target","rel"]))}}),po=$(uo,[["__scopeId","data-v-885c0d42"]]),fo=["src","alt"],vo=b({inheritAttrs:!1,__name:"VPImage",props:{image:{},alt:{}},setup(t){return(e,n)=>{const s=se("VPImage",!0);return e.image?(r(),p(x,{key:0},[typeof e.image=="string"||"src"in e.image?(r(),p("img",ee({key:0,class:"VPImage"},typeof e.image=="string"?e.$attrs:{...e.image,...e.$attrs},{src:c(Oe)(typeof e.image=="string"?e.image:e.image.src),alt:e.alt??(typeof e.image=="string"?"":e.image.alt||"")}),null,16,fo)):(r(),p(x,{key:1},[S(s,ee({class:"dark",image:e.image.dark,alt:e.image.alt},e.$attrs),null,16,["image","alt"]),S(s,ee({class:"light",image:e.image.light,alt:e.image.alt},e.$attrs),null,16,["image","alt"])],64))],64)):k("",!0)}}}),he=$(vo,[["__scopeId","data-v-e2df84be"]]),ho=t=>(F("data-v-fad16c33"),t=t(),R(),t),_o={class:"container"},mo={class:"main"},go={key:0,class:"name"},bo=["innerHTML"],ko=["innerHTML"],yo=["innerHTML"],$o={key:0,class:"actions"},So={key:0,class:"image"},wo={class:"image-container"},Po=ho(()=>u("div",{class:"image-bg"},null,-1)),Lo=b({__name:"VPHero",props:{name:{},text:{},tagline:{},image:{},actions:{}},setup(t){const e=ce("hero-image-slot-exists");return(n,s)=>(r(),p("div",{class:D(["VPHero",{"has-image":n.image||c(e)}])},[u("div",_o,[u("div",mo,[f(n.$slots,"home-hero-info-before",{},void 0,!0),f(n.$slots,"home-hero-info",{},()=>[n.name?(r(),p("h1",go,[u("span",{innerHTML:n.name,class:"clip"},null,8,bo)])):k("",!0),n.text?(r(),p("p",{key:1,innerHTML:n.text,class:"text"},null,8,ko)):k("",!0),n.tagline?(r(),p("p",{key:2,innerHTML:n.tagline,class:"tagline"},null,8,yo)):k("",!0)],!0),f(n.$slots,"home-hero-info-after",{},void 0,!0),n.actions?(r(),p("div",$o,[(r(!0),p(x,null,z(n.actions,o=>(r(),p("div",{key:o.link,class:"action"},[S(po,{tag:"a",size:"medium",theme:o.theme,text:o.text,href:o.link,target:o.target,rel:o.rel},null,8,["theme","text","href","target","rel"])]))),128))])):k("",!0),f(n.$slots,"home-hero-actions-after",{},void 0,!0)]),n.image||c(e)?(r(),p("div",So,[u("div",wo,[Po,f(n.$slots,"home-hero-image",{},()=>[n.image?(r(),w(he,{key:0,class:"image-src",image:n.image},null,8,["image"])):k("",!0)],!0)])])):k("",!0)])],2))}}),Vo=$(Lo,[["__scopeId","data-v-fad16c33"]]),To=b({__name:"VPHomeHero",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).hero?(r(),w(Vo,{key:0,class:"VPHomeHero",name:c(e).hero.name,text:c(e).hero.text,tagline:c(e).hero.tagline,image:c(e).hero.image,actions:c(e).hero.actions},{"home-hero-info-before":v(()=>[f(n.$slots,"home-hero-info-before")]),"home-hero-info":v(()=>[f(n.$slots,"home-hero-info")]),"home-hero-info-after":v(()=>[f(n.$slots,"home-hero-info-after")]),"home-hero-actions-after":v(()=>[f(n.$slots,"home-hero-actions-after")]),"home-hero-image":v(()=>[f(n.$slots,"home-hero-image")]),_:3},8,["name","text","tagline","image","actions"])):k("",!0)}}),Io=t=>(F("data-v-cf4dac36"),t=t(),R(),t),No={class:"box"},Co={key:0,class:"icon"},Ao=["innerHTML"],Mo=["innerHTML"],Eo=["innerHTML"],Bo={key:4,class:"link-text"},Oo={class:"link-text-value"},Ho=Io(()=>u("span",{class:"vpi-arrow-right link-text-icon"},null,-1)),xo=b({__name:"VPFeature",props:{icon:{},title:{},details:{},link:{},linkText:{},rel:{},target:{}},setup(t){return(e,n)=>(r(),w(q,{class:"VPFeature",href:e.link,rel:e.rel,target:e.target,"no-icon":!0,tag:e.link?"a":"div"},{default:v(()=>[u("article",No,[typeof e.icon=="object"&&e.icon.wrap?(r(),p("div",Co,[S(he,{image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])])):typeof e.icon=="object"?(r(),w(he,{key:1,image:e.icon,alt:e.icon.alt,height:e.icon.height||48,width:e.icon.width||48},null,8,["image","alt","height","width"])):e.icon?(r(),p("div",{key:2,class:"icon",innerHTML:e.icon},null,8,Ao)):k("",!0),u("h2",{class:"title",innerHTML:e.title},null,8,Mo),e.details?(r(),p("p",{key:3,class:"details",innerHTML:e.details},null,8,Eo)):k("",!0),e.linkText?(r(),p("div",Bo,[u("p",Oo,[J(T(e.linkText)+" ",1),Ho])])):k("",!0)])]),_:1},8,["href","rel","target","tag"]))}}),Do=$(xo,[["__scopeId","data-v-cf4dac36"]]),Fo={key:0,class:"VPFeatures"},Ro={class:"container"},jo={class:"items"},zo=b({__name:"VPFeatures",props:{features:{}},setup(t){const e=t,n=I(()=>{const s=e.features.length;if(s){if(s===2)return"grid-2";if(s===3)return"grid-3";if(s%3===0)return"grid-6";if(s>3)return"grid-4"}else return});return(s,o)=>s.features?(r(),p("div",Fo,[u("div",Ro,[u("div",jo,[(r(!0),p(x,null,z(s.features,a=>(r(),p("div",{key:a.title,class:D(["item",[n.value]])},[S(Do,{icon:a.icon,title:a.title,details:a.details,link:a.link,"link-text":a.linkText,rel:a.rel,target:a.target},null,8,["icon","title","details","link","link-text","rel","target"])],2))),128))])])])):k("",!0)}}),Uo=$(zo,[["__scopeId","data-v-ac35a1e4"]]),Go=b({__name:"VPHomeFeatures",setup(t){const{frontmatter:e}=O();return(n,s)=>c(e).features?(r(),w(Uo,{key:0,class:"VPHomeFeatures",features:c(e).features},null,8,["features"])):k("",!0)}}),Ko=b({__name:"VPHomeContent",setup(t){const{width:e}=Et({initialWidth:0,includeScrollbar:!1});return(n,s)=>(r(),p("div",{class:"vp-doc container",style:ke(c(e)?{"--vp-offset":`calc(50% - ${c(e)/2}px)`}:{})},[f(n.$slots,"default",{},void 0,!0)],4))}}),Wo=$(Ko,[["__scopeId","data-v-6adace40"]]),qo={class:"VPHome"},Jo=b({__name:"VPHome",setup(t){const{frontmatter:e}=O();return(n,s)=>{const o=se("Content");return r(),p("div",qo,[f(n.$slots,"home-hero-before",{},void 0,!0),S(To,null,{"home-hero-info-before":v(()=>[f(n.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(n.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(n.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(n.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(n.$slots,"home-hero-image",{},void 0,!0)]),_:3}),f(n.$slots,"home-hero-after",{},void 0,!0),f(n.$slots,"home-features-before",{},void 0,!0),S(Go),f(n.$slots,"home-features-after",{},void 0,!0),c(e).markdownStyles!==!1?(r(),w(Wo,{key:0},{default:v(()=>[S(o)]),_:1})):(r(),w(o,{key:1}))])}}}),Yo=$(Jo,[["__scopeId","data-v-da614b08"]]),Xo={},Qo={class:"VPPage"};function Zo(t,e){const n=se("Content");return r(),p("div",Qo,[f(t.$slots,"page-top"),S(n),f(t.$slots,"page-bottom")])}const es=$(Xo,[["render",Zo]]),ts=b({__name:"VPContent",setup(t){const{page:e,frontmatter:n}=O(),{hasSidebar:s}=X();return(o,a)=>(r(),p("div",{class:D(["VPContent",{"has-sidebar":c(s),"is-home":c(n).layout==="home"}]),id:"VPContent"},[c(e).isNotFound?f(o.$slots,"not-found",{key:0},()=>[S(cn)],!0):c(n).layout==="page"?(r(),w(es,{key:1},{"page-top":v(()=>[f(o.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(o.$slots,"page-bottom",{},void 0,!0)]),_:3})):c(n).layout==="home"?(r(),w(Yo,{key:2},{"home-hero-before":v(()=>[f(o.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(o.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(o.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(o.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(o.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(o.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(o.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(o.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(o.$slots,"home-features-after",{},void 0,!0)]),_:3})):c(n).layout&&c(n).layout!=="doc"?(r(),w(W(c(n).layout),{key:3})):(r(),w(co,{key:4},{"doc-top":v(()=>[f(o.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(o.$slots,"doc-bottom",{},void 0,!0)]),"doc-footer-before":v(()=>[f(o.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(o.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(o.$slots,"doc-after",{},void 0,!0)]),"aside-top":v(()=>[f(o.$slots,"aside-top",{},void 0,!0)]),"aside-outline-before":v(()=>[f(o.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(o.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(o.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(o.$slots,"aside-ads-after",{},void 0,!0)]),"aside-bottom":v(()=>[f(o.$slots,"aside-bottom",{},void 0,!0)]),_:3}))],2))}}),ns=$(ts,[["__scopeId","data-v-f70c28c5"]]),os={class:"container"},ss=["innerHTML"],as=["innerHTML"],rs=b({__name:"VPFooter",setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=X();return(o,a)=>c(e).footer&&c(n).footer!==!1?(r(),p("footer",{key:0,class:D(["VPFooter",{"has-sidebar":c(s)}])},[u("div",os,[c(e).footer.message?(r(),p("p",{key:0,class:"message",innerHTML:c(e).footer.message},null,8,ss)):k("",!0),c(e).footer.copyright?(r(),p("p",{key:1,class:"copyright",innerHTML:c(e).footer.copyright},null,8,as)):k("",!0)])],2)):k("",!0)}}),is=$(rs,[["__scopeId","data-v-1a52749f"]]);function ls(){const{theme:t,frontmatter:e}=O(),n=Ze([]),s=I(()=>n.value.length>0);return ge(()=>{n.value=De(e.value.outline??t.value.outline)}),{headers:n,hasLocalNav:s}}const cs=t=>(F("data-v-c1bcce0a"),t=t(),R(),t),us={class:"menu-text"},ds=cs(()=>u("span",{class:"vpi-chevron-right icon"},null,-1)),ps={class:"header"},fs={class:"outline"},vs=b({__name:"VPLocalNavOutlineDropdown",props:{headers:{},navHeight:{}},setup(t){const e=t,{theme:n}=O(),s=N(!1),o=N(0),a=N(),l=N();function i(_){var g;(g=a.value)!=null&&g.contains(_.target)||(s.value=!1)}Y(s,_=>{if(_){document.addEventListener("click",i);return}document.removeEventListener("click",i)}),Te("Escape",()=>{s.value=!1}),ge(()=>{s.value=!1});function d(){s.value=!s.value,o.value=window.innerHeight+Math.min(window.scrollY-e.navHeight,0)}function h(_){_.target.classList.contains("outline-link")&&(l.value&&(l.value.style.transition="none"),Bt(()=>{s.value=!1}))}function m(){s.value=!1,window.scrollTo({top:0,left:0,behavior:"smooth"})}return(_,g)=>(r(),p("div",{class:"VPLocalNavOutlineDropdown",style:ke({"--vp-vh":o.value+"px"}),ref_key:"main",ref:a},[_.headers.length>0?(r(),p("button",{key:0,onClick:d,class:D({open:s.value})},[u("span",us,T(c(it)(c(n))),1),ds],2)):(r(),p("button",{key:1,onClick:m},T(c(n).returnToTopLabel||"Return to top"),1)),S(Be,{name:"flyout"},{default:v(()=>[s.value?(r(),p("div",{key:0,ref_key:"items",ref:l,class:"items",onClick:h},[u("div",ps,[u("a",{class:"top-link",href:"#",onClick:m},T(c(n).returnToTopLabel||"Return to top"),1)]),u("div",fs,[S(lt,{headers:_.headers},null,8,["headers"])])],512)):k("",!0)]),_:1})],4))}}),hs=$(vs,[["__scopeId","data-v-c1bcce0a"]]),_s=t=>(F("data-v-cb0eba99"),t=t(),R(),t),ms={class:"container"},gs=["aria-expanded"],bs=_s(()=>u("span",{class:"vpi-align-left menu-icon"},null,-1)),ks={class:"menu-text"},ys=b({__name:"VPLocalNav",props:{open:{type:Boolean}},emits:["open-menu"],setup(t){const{theme:e,frontmatter:n}=O(),{hasSidebar:s}=X(),{headers:o}=ls(),{y:a}=tt(),l=N(0);te(()=>{l.value=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--vp-nav-height"))}),ge(()=>{o.value=De(n.value.outline??e.value.outline)});const i=I(()=>o.value.length===0),d=I(()=>i.value&&!s.value),h=I(()=>({VPLocalNav:!0,"has-sidebar":s.value,empty:i.value,fixed:d.value}));return(m,_)=>c(n).layout!=="home"&&(!d.value||c(a)>=l.value)?(r(),p("div",{key:0,class:D(h.value)},[u("div",ms,[c(s)?(r(),p("button",{key:0,class:"menu","aria-expanded":m.open,"aria-controls":"VPSidebarNav",onClick:_[0]||(_[0]=g=>m.$emit("open-menu"))},[bs,u("span",ks,T(c(e).sidebarMenuLabel||"Menu"),1)],8,gs)):k("",!0),S(hs,{headers:c(o),navHeight:l.value},null,8,["headers","navHeight"])])],2)):k("",!0)}}),$s=$(ys,[["__scopeId","data-v-cb0eba99"]]);function Ss(){const t=N(!1);function e(){t.value=!0,window.addEventListener("resize",o)}function n(){t.value=!1,window.removeEventListener("resize",o)}function s(){t.value?n():e()}function o(){window.outerWidth>=768&&n()}const a=be();return Y(()=>a.path,n),{isScreenOpen:t,openScreen:e,closeScreen:n,toggleScreen:s}}const ws={},Ps={class:"VPSwitch",type:"button",role:"switch"},Ls={class:"check"},Vs={key:0,class:"icon"};function Ts(t,e){return r(),p("button",Ps,[u("span",Ls,[t.$slots.default?(r(),p("span",Vs,[f(t.$slots,"default",{},void 0,!0)])):k("",!0)])])}const Is=$(ws,[["render",Ts],["__scopeId","data-v-be0da757"]]),ut=t=>(F("data-v-d86ee44f"),t=t(),R(),t),Ns=ut(()=>u("span",{class:"vpi-sun sun"},null,-1)),Cs=ut(()=>u("span",{class:"vpi-moon moon"},null,-1)),As=b({__name:"VPSwitchAppearance",setup(t){const{isDark:e,theme:n}=O(),s=ce("toggle-appearance",()=>{e.value=!e.value}),o=N("");return He(()=>{o.value=e.value?n.value.lightModeSwitchTitle||"Switch to light theme":n.value.darkModeSwitchTitle||"Switch to dark theme"}),(a,l)=>(r(),w(Is,{title:o.value,class:"VPSwitchAppearance","aria-checked":c(e),onClick:c(s)},{default:v(()=>[Ns,Cs]),_:1},8,["title","aria-checked","onClick"]))}}),Fe=$(As,[["__scopeId","data-v-d86ee44f"]]),Ms={key:0,class:"VPNavBarAppearance"},Es=b({__name:"VPNavBarAppearance",setup(t){const{site:e}=O();return(n,s)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),p("div",Ms,[S(Fe)])):k("",!0)}}),Bs=$(Es,[["__scopeId","data-v-06e253f6"]]),Re=N();let dt=!1,Le=0;function Os(t){const e=N(!1);if(ye){!dt&&Hs(),Le++;const n=Y(Re,s=>{var o,a,l;s===t.el.value||(o=t.el.value)!=null&&o.contains(s)?(e.value=!0,(a=t.onFocus)==null||a.call(t)):(e.value=!1,(l=t.onBlur)==null||l.call(t))});le(()=>{n(),Le--,Le||xs()})}return Ot(e)}function Hs(){document.addEventListener("focusin",pt),dt=!0,Re.value=document.activeElement}function xs(){document.removeEventListener("focusin",pt)}function pt(){Re.value=document.activeElement}const Ds={class:"VPMenuLink"},Fs=b({__name:"VPMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),p("div",Ds,[S(q,{class:D({active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,target:n.item.target,rel:n.item.rel},{default:v(()=>[J(T(n.item.text),1)]),_:1},8,["class","href","target","rel"])]))}}),Se=$(Fs,[["__scopeId","data-v-01a82388"]]),Rs={class:"VPMenuGroup"},js={key:0,class:"title"},zs=b({__name:"VPMenuGroup",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),p("div",Rs,[e.text?(r(),p("p",js,T(e.text),1)):k("",!0),(r(!0),p(x,null,z(e.items,s=>(r(),p(x,null,["link"in s?(r(),w(Se,{key:0,item:s},null,8,["item"])):k("",!0)],64))),256))]))}}),Us=$(zs,[["__scopeId","data-v-655b43d5"]]),Gs={class:"VPMenu"},Ks={key:0,class:"items"},Ws=b({__name:"VPMenu",props:{items:{}},setup(t){return(e,n)=>(r(),p("div",Gs,[e.items?(r(),p("div",Ks,[(r(!0),p(x,null,z(e.items,s=>(r(),p(x,{key:JSON.stringify(s)},["link"in s?(r(),w(Se,{key:0,item:s},null,8,["item"])):"component"in s?(r(),w(W(s.component),ee({key:1,ref_for:!0},s.props),null,16)):(r(),w(Us,{key:2,text:s.text,items:s.items},null,8,["text","items"]))],64))),128))])):k("",!0),f(e.$slots,"default",{},void 0,!0)]))}}),qs=$(Ws,[["__scopeId","data-v-ce2cf657"]]),Js=t=>(F("data-v-062a5734"),t=t(),R(),t),Ys=["aria-expanded","aria-label"],Xs={key:0,class:"text"},Qs=["innerHTML"],Zs=Js(()=>u("span",{class:"vpi-chevron-down text-icon"},null,-1)),ea={key:1,class:"vpi-more-horizontal icon"},ta={class:"menu"},na=b({__name:"VPFlyout",props:{icon:{},button:{},label:{},items:{}},setup(t){const e=N(!1),n=N();Os({el:n,onBlur:s});function s(){e.value=!1}return(o,a)=>(r(),p("div",{class:"VPFlyout",ref_key:"el",ref:n,onMouseenter:a[1]||(a[1]=l=>e.value=!0),onMouseleave:a[2]||(a[2]=l=>e.value=!1)},[u("button",{type:"button",class:"button","aria-haspopup":"true","aria-expanded":e.value,"aria-label":o.label,onClick:a[0]||(a[0]=l=>e.value=!e.value)},[o.button||o.icon?(r(),p("span",Xs,[o.icon?(r(),p("span",{key:0,class:D([o.icon,"option-icon"])},null,2)):k("",!0),o.button?(r(),p("span",{key:1,innerHTML:o.button},null,8,Qs)):k("",!0),Zs])):(r(),p("span",ea))],8,Ys),u("div",ta,[S(qs,{items:o.items},{default:v(()=>[f(o.$slots,"default",{},void 0,!0)]),_:3},8,["items"])])],544))}}),je=$(na,[["__scopeId","data-v-062a5734"]]),oa=["href","aria-label","innerHTML"],sa=b({__name:"VPSocialLink",props:{icon:{},link:{},ariaLabel:{}},setup(t){const e=t,n=I(()=>typeof e.icon=="object"?e.icon.svg:`<span class="vpi-social-${e.icon}" />`);return(s,o)=>(r(),p("a",{class:"VPSocialLink no-icon",href:s.link,"aria-label":s.ariaLabel??(typeof s.icon=="string"?s.icon:""),target:"_blank",rel:"noopener",innerHTML:n.value},null,8,oa))}}),aa=$(sa,[["__scopeId","data-v-99aaa61b"]]),ra={class:"VPSocialLinks"},ia=b({__name:"VPSocialLinks",props:{links:{}},setup(t){return(e,n)=>(r(),p("div",ra,[(r(!0),p(x,null,z(e.links,({link:s,icon:o,ariaLabel:a})=>(r(),w(aa,{key:s,icon:o,link:s,ariaLabel:a},null,8,["icon","link","ariaLabel"]))),128))]))}}),ze=$(ia,[["__scopeId","data-v-ca9cff1c"]]),la={key:0,class:"group translations"},ca={class:"trans-title"},ua={key:1,class:"group"},da={class:"item appearance"},pa={class:"label"},fa={class:"appearance-action"},va={key:2,class:"group"},ha={class:"item social-links"},_a=b({__name:"VPNavBarExtra",setup(t){const{site:e,theme:n}=O(),{localeLinks:s,currentLang:o}=ue({correspondingLink:!0}),a=I(()=>s.value.length&&o.value.label||e.value.appearance||n.value.socialLinks);return(l,i)=>a.value?(r(),w(je,{key:0,class:"VPNavBarExtra",label:"extra navigation"},{default:v(()=>[c(s).length&&c(o).label?(r(),p("div",la,[u("p",ca,T(c(o).label),1),(r(!0),p(x,null,z(c(s),d=>(r(),w(Se,{key:d.link,item:d},null,8,["item"]))),128))])):k("",!0),c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),p("div",ua,[u("div",da,[u("p",pa,T(c(n).darkModeSwitchLabel||"Appearance"),1),u("div",fa,[S(Fe)])])])):k("",!0),c(n).socialLinks?(r(),p("div",va,[u("div",ha,[S(ze,{class:"social-links-list",links:c(n).socialLinks},null,8,["links"])])])):k("",!0)]),_:1})):k("",!0)}}),ma=$(_a,[["__scopeId","data-v-cf308650"]]),ga=t=>(F("data-v-cdf5d88e"),t=t(),R(),t),ba=["aria-expanded"],ka=ga(()=>u("span",{class:"container"},[u("span",{class:"top"}),u("span",{class:"middle"}),u("span",{class:"bottom"})],-1)),ya=[ka],$a=b({__name:"VPNavBarHamburger",props:{active:{type:Boolean}},emits:["click"],setup(t){return(e,n)=>(r(),p("button",{type:"button",class:D(["VPNavBarHamburger",{active:e.active}]),"aria-label":"mobile navigation","aria-expanded":e.active,"aria-controls":"VPNavScreen",onClick:n[0]||(n[0]=s=>e.$emit("click"))},ya,10,ba))}}),Sa=$($a,[["__scopeId","data-v-cdf5d88e"]]),wa=["innerHTML"],Pa=b({__name:"VPNavBarMenuLink",props:{item:{}},setup(t){const{page:e}=O();return(n,s)=>(r(),w(q,{class:D({VPNavBarMenuLink:!0,active:c(oe)(c(e).relativePath,n.item.activeMatch||n.item.link,!!n.item.activeMatch)}),href:n.item.link,noIcon:n.item.noIcon,target:n.item.target,rel:n.item.rel,tabindex:"0"},{default:v(()=>[u("span",{innerHTML:n.item.text},null,8,wa)]),_:1},8,["class","href","noIcon","target","rel"]))}}),La=$(Pa,[["__scopeId","data-v-2a328df5"]]),Va=b({__name:"VPNavBarMenuGroup",props:{item:{}},setup(t){const e=t,{page:n}=O(),s=a=>"component"in a?!1:"link"in a?oe(n.value.relativePath,a.link,!!e.item.activeMatch):a.items.some(s),o=I(()=>s(e.item));return(a,l)=>(r(),w(je,{class:D({VPNavBarMenuGroup:!0,active:c(oe)(c(n).relativePath,a.item.activeMatch,!!a.item.activeMatch)||o.value}),button:a.item.text,items:a.item.items},null,8,["class","button","items"]))}}),Ta=t=>(F("data-v-dc270a69"),t=t(),R(),t),Ia={key:0,"aria-labelledby":"main-nav-aria-label",class:"VPNavBarMenu"},Na=Ta(()=>u("span",{id:"main-nav-aria-label",class:"visually-hidden"}," Main Navigation ",-1)),Ca=b({__name:"VPNavBarMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),p("nav",Ia,[Na,(r(!0),p(x,null,z(c(e).nav,o=>(r(),p(x,{key:JSON.stringify(o)},["link"in o?(r(),w(La,{key:0,item:o},null,8,["item"])):"component"in o?(r(),w(W(o.component),ee({key:1,ref_for:!0},o.props),null,16)):(r(),w(Va,{key:2,item:o},null,8,["item"]))],64))),128))])):k("",!0)}}),Aa=$(Ca,[["__scopeId","data-v-dc270a69"]]);function Ma(t){const{localeIndex:e,theme:n}=O();function s(o){var V,M,y;const a=o.split("."),l=(V=n.value.search)==null?void 0:V.options,i=l&&typeof l=="object",d=i&&((y=(M=l.locales)==null?void 0:M[e.value])==null?void 0:y.translations)||null,h=i&&l.translations||null;let m=d,_=h,g=t;const C=a.pop();for(const j of a){let G=null;const Q=g==null?void 0:g[j];Q&&(G=g=Q);const ne=_==null?void 0:_[j];ne&&(G=_=ne);const Z=m==null?void 0:m[j];Z&&(G=m=Z),Q||(g=G),ne||(_=G),Z||(m=G)}return(m==null?void 0:m[C])??(_==null?void 0:_[C])??(g==null?void 0:g[C])??""}return s}const Ea=["aria-label"],Ba={class:"DocSearch-Button-Container"},Oa=u("span",{class:"vp-icon DocSearch-Search-Icon"},null,-1),Ha={class:"DocSearch-Button-Placeholder"},xa=u("span",{class:"DocSearch-Button-Keys"},[u("kbd",{class:"DocSearch-Button-Key"}),u("kbd",{class:"DocSearch-Button-Key"},"K")],-1),We=b({__name:"VPNavBarSearchButton",setup(t){const n=Ma({button:{buttonText:"Search",buttonAriaLabel:"Search"}});return(s,o)=>(r(),p("button",{type:"button",class:"DocSearch DocSearch-Button","aria-label":c(n)("button.buttonAriaLabel")},[u("span",Ba,[Oa,u("span",Ha,T(c(n)("button.buttonText")),1)]),xa],8,Ea))}}),Da={class:"VPNavBarSearch"},Fa={id:"local-search"},Ra={key:1,id:"docsearch"},ja=b({__name:"VPNavBarSearch",setup(t){const e=Ht(()=>xt(()=>import("./VPLocalSearchBox.bbBe6Z6G.js"),__vite__mapDeps([0,1]))),n=()=>null,{theme:s}=O(),o=N(!1),a=N(!1);te(()=>{});function l(){o.value||(o.value=!0,setTimeout(i,16))}function i(){const _=new Event("keydown");_.key="k",_.metaKey=!0,window.dispatchEvent(_),setTimeout(()=>{document.querySelector(".DocSearch-Modal")||i()},16)}function d(_){const g=_.target,C=g.tagName;return g.isContentEditable||C==="INPUT"||C==="SELECT"||C==="TEXTAREA"}const h=N(!1);Te("k",_=>{(_.ctrlKey||_.metaKey)&&(_.preventDefault(),h.value=!0)}),Te("/",_=>{d(_)||(_.preventDefault(),h.value=!0)});const m="local";return(_,g)=>{var C;return r(),p("div",Da,[c(m)==="local"?(r(),p(x,{key:0},[h.value?(r(),w(c(e),{key:0,onClose:g[0]||(g[0]=V=>h.value=!1)})):k("",!0),u("div",Fa,[S(We,{onClick:g[1]||(g[1]=V=>h.value=!0)})])],64)):c(m)==="algolia"?(r(),p(x,{key:1},[o.value?(r(),w(c(n),{key:0,algolia:((C=c(s).search)==null?void 0:C.options)??c(s).algolia,onVnodeBeforeMount:g[2]||(g[2]=V=>a.value=!0)},null,8,["algolia"])):k("",!0),a.value?k("",!0):(r(),p("div",Ra,[S(We,{onClick:l})]))],64)):k("",!0)])}}}),za=b({__name:"VPNavBarSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),w(ze,{key:0,class:"VPNavBarSocialLinks",links:c(e).socialLinks},null,8,["links"])):k("",!0)}}),Ua=$(za,[["__scopeId","data-v-489228c3"]]),Ga=["href","rel","target"],Ka={key:1},Wa={key:2},qa=b({__name:"VPNavBarTitle",setup(t){const{site:e,theme:n}=O(),{hasSidebar:s}=X(),{currentLang:o}=ue(),a=I(()=>{var d;return typeof n.value.logoLink=="string"?n.value.logoLink:(d=n.value.logoLink)==null?void 0:d.link}),l=I(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.rel}),i=I(()=>{var d;return typeof n.value.logoLink=="string"||(d=n.value.logoLink)==null?void 0:d.target});return(d,h)=>(r(),p("div",{class:D(["VPNavBarTitle",{"has-sidebar":c(s)}])},[u("a",{class:"title",href:a.value??c(xe)(c(o).link),rel:l.value,target:i.value},[f(d.$slots,"nav-bar-title-before",{},void 0,!0),c(n).logo?(r(),w(he,{key:0,class:"logo",image:c(n).logo},null,8,["image"])):k("",!0),c(n).siteTitle?(r(),p("span",Ka,T(c(n).siteTitle),1)):c(n).siteTitle===void 0?(r(),p("span",Wa,T(c(e).title),1)):k("",!0),f(d.$slots,"nav-bar-title-after",{},void 0,!0)],8,Ga)],2))}}),Ja=$(qa,[["__scopeId","data-v-d1e2cfaa"]]),Ya={class:"items"},Xa={class:"title"},Qa=b({__name:"VPNavBarTranslations",setup(t){const{theme:e}=O(),{localeLinks:n,currentLang:s}=ue({correspondingLink:!0});return(o,a)=>c(n).length&&c(s).label?(r(),w(je,{key:0,class:"VPNavBarTranslations",icon:"vpi-languages",label:c(e).langMenuLabel||"Change language"},{default:v(()=>[u("div",Ya,[u("p",Xa,T(c(s).label),1),(r(!0),p(x,null,z(c(n),l=>(r(),w(Se,{key:l.link,item:l},null,8,["item"]))),128))])]),_:1},8,["label"])):k("",!0)}}),Za=$(Qa,[["__scopeId","data-v-1cf30254"]]),er=t=>(F("data-v-6db865c9"),t=t(),R(),t),tr={class:"wrapper"},nr={class:"container"},or={class:"title"},sr={class:"content"},ar={class:"content-body"},rr=er(()=>u("div",{class:"divider"},[u("div",{class:"divider-line"})],-1)),ir=b({__name:"VPNavBar",props:{isScreenOpen:{type:Boolean}},emits:["toggle-screen"],setup(t){const e=t,{y:n}=tt(),{hasSidebar:s}=X(),{frontmatter:o}=O(),a=N({});return He(()=>{a.value={"has-sidebar":s.value,home:o.value.layout==="home",top:n.value===0,"screen-open":e.isScreenOpen}}),(l,i)=>(r(),p("div",{class:D(["VPNavBar",a.value])},[u("div",tr,[u("div",nr,[u("div",or,[S(Ja,null,{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),_:3})]),u("div",sr,[u("div",ar,[f(l.$slots,"nav-bar-content-before",{},void 0,!0),S(ja,{class:"search"}),S(Aa,{class:"menu"}),S(Za,{class:"translations"}),S(Bs,{class:"appearance"}),S(Ua,{class:"social-links"}),S(ma,{class:"extra"}),f(l.$slots,"nav-bar-content-after",{},void 0,!0),S(Sa,{class:"hamburger",active:l.isScreenOpen,onClick:i[0]||(i[0]=d=>l.$emit("toggle-screen"))},null,8,["active"])])])])]),rr],2))}}),lr=$(ir,[["__scopeId","data-v-6db865c9"]]),cr={key:0,class:"VPNavScreenAppearance"},ur={class:"text"},dr=b({__name:"VPNavScreenAppearance",setup(t){const{site:e,theme:n}=O();return(s,o)=>c(e).appearance&&c(e).appearance!=="force-dark"&&c(e).appearance!=="force-auto"?(r(),p("div",cr,[u("p",ur,T(c(n).darkModeSwitchLabel||"Appearance"),1),S(Fe)])):k("",!0)}}),pr=$(dr,[["__scopeId","data-v-d86aab40"]]),fr=b({__name:"VPNavScreenMenuLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),w(q,{class:"VPNavScreenMenuLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e),innerHTML:n.item.text},null,8,["href","target","rel","onClick","innerHTML"]))}}),vr=$(fr,[["__scopeId","data-v-a0f676ea"]]),hr=b({__name:"VPNavScreenMenuGroupLink",props:{item:{}},setup(t){const e=ce("close-screen");return(n,s)=>(r(),w(q,{class:"VPNavScreenMenuGroupLink",href:n.item.link,target:n.item.target,rel:n.item.rel,onClick:c(e)},{default:v(()=>[J(T(n.item.text),1)]),_:1},8,["href","target","rel","onClick"]))}}),ft=$(hr,[["__scopeId","data-v-63dc5c8c"]]),_r={class:"VPNavScreenMenuGroupSection"},mr={key:0,class:"title"},gr=b({__name:"VPNavScreenMenuGroupSection",props:{text:{},items:{}},setup(t){return(e,n)=>(r(),p("div",_r,[e.text?(r(),p("p",mr,T(e.text),1)):k("",!0),(r(!0),p(x,null,z(e.items,s=>(r(),w(ft,{key:s.text,item:s},null,8,["item"]))),128))]))}}),br=$(gr,[["__scopeId","data-v-e26000b6"]]),kr=t=>(F("data-v-2d86c186"),t=t(),R(),t),yr=["aria-controls","aria-expanded"],$r=["innerHTML"],Sr=kr(()=>u("span",{class:"vpi-plus button-icon"},null,-1)),wr=["id"],Pr={key:0,class:"item"},Lr={key:1,class:"item"},Vr={key:2,class:"group"},Tr=b({__name:"VPNavScreenMenuGroup",props:{text:{},items:{}},setup(t){const e=t,n=N(!1),s=I(()=>`NavScreenGroup-${e.text.replace(" ","-").toLowerCase()}`);function o(){n.value=!n.value}return(a,l)=>(r(),p("div",{class:D(["VPNavScreenMenuGroup",{open:n.value}])},[u("button",{class:"button","aria-controls":s.value,"aria-expanded":n.value,onClick:o},[u("span",{class:"button-text",innerHTML:a.text},null,8,$r),Sr],8,yr),u("div",{id:s.value,class:"items"},[(r(!0),p(x,null,z(a.items,i=>(r(),p(x,{key:JSON.stringify(i)},["link"in i?(r(),p("div",Pr,[S(ft,{item:i},null,8,["item"])])):"component"in i?(r(),p("div",Lr,[(r(),w(W(i.component),ee({ref_for:!0},i.props,{"screen-menu":""}),null,16))])):(r(),p("div",Vr,[S(br,{text:i.text,items:i.items},null,8,["text","items"])]))],64))),128))],8,wr)],2))}}),Ir=$(Tr,[["__scopeId","data-v-2d86c186"]]),Nr={key:0,class:"VPNavScreenMenu"},Cr=b({__name:"VPNavScreenMenu",setup(t){const{theme:e}=O();return(n,s)=>c(e).nav?(r(),p("nav",Nr,[(r(!0),p(x,null,z(c(e).nav,o=>(r(),p(x,{key:JSON.stringify(o)},["link"in o?(r(),w(vr,{key:0,item:o},null,8,["item"])):"component"in o?(r(),w(W(o.component),ee({key:1,ref_for:!0},o.props,{"screen-menu":""}),null,16)):(r(),w(Ir,{key:2,text:o.text||"",items:o.items},null,8,["text","items"]))],64))),128))])):k("",!0)}}),Ar=b({__name:"VPNavScreenSocialLinks",setup(t){const{theme:e}=O();return(n,s)=>c(e).socialLinks?(r(),w(ze,{key:0,class:"VPNavScreenSocialLinks",links:c(e).socialLinks},null,8,["links"])):k("",!0)}}),vt=t=>(F("data-v-66e76a18"),t=t(),R(),t),Mr=vt(()=>u("span",{class:"vpi-languages icon lang"},null,-1)),Er=vt(()=>u("span",{class:"vpi-chevron-down icon chevron"},null,-1)),Br={class:"list"},Or=b({__name:"VPNavScreenTranslations",setup(t){const{localeLinks:e,currentLang:n}=ue({correspondingLink:!0}),s=N(!1);function o(){s.value=!s.value}return(a,l)=>c(e).length&&c(n).label?(r(),p("div",{key:0,class:D(["VPNavScreenTranslations",{open:s.value}])},[u("button",{class:"title",onClick:o},[Mr,J(" "+T(c(n).label)+" ",1),Er]),u("ul",Br,[(r(!0),p(x,null,z(c(e),i=>(r(),p("li",{key:i.link,class:"item"},[S(q,{class:"link",href:i.link},{default:v(()=>[J(T(i.text),1)]),_:2},1032,["href"])]))),128))])],2)):k("",!0)}}),Hr=$(Or,[["__scopeId","data-v-66e76a18"]]),xr={class:"container"},Dr=b({__name:"VPNavScreen",props:{open:{type:Boolean}},setup(t){const e=N(null),n=nt(ye?document.body:null);return(s,o)=>(r(),w(Be,{name:"fade",onEnter:o[0]||(o[0]=a=>n.value=!0),onAfterLeave:o[1]||(o[1]=a=>n.value=!1)},{default:v(()=>[s.open?(r(),p("div",{key:0,class:"VPNavScreen",ref_key:"screen",ref:e,id:"VPNavScreen"},[u("div",xr,[f(s.$slots,"nav-screen-content-before",{},void 0,!0),S(Cr,{class:"menu"}),S(Hr,{class:"translations"}),S(pr,{class:"appearance"}),S(Ar,{class:"social-links"}),f(s.$slots,"nav-screen-content-after",{},void 0,!0)])],512)):k("",!0)]),_:3}))}}),Fr=$(Dr,[["__scopeId","data-v-3ff2bb85"]]),Rr={key:0,class:"VPNav"},jr=b({__name:"VPNav",setup(t){const{isScreenOpen:e,closeScreen:n,toggleScreen:s}=Ss(),{frontmatter:o}=O(),a=I(()=>o.value.navbar!==!1);return ot("close-screen",n),me(()=>{ye&&document.documentElement.classList.toggle("hide-nav",!a.value)}),(l,i)=>a.value?(r(),p("header",Rr,[S(lr,{"is-screen-open":c(e),onToggleScreen:c(s)},{"nav-bar-title-before":v(()=>[f(l.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(l.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(l.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(l.$slots,"nav-bar-content-after",{},void 0,!0)]),_:3},8,["is-screen-open","onToggleScreen"]),S(Fr,{open:c(e)},{"nav-screen-content-before":v(()=>[f(l.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(l.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3},8,["open"])])):k("",!0)}}),zr=$(jr,[["__scopeId","data-v-3aff48bd"]]),ht=t=>(F("data-v-fe6d72fb"),t=t(),R(),t),Ur=["role","tabindex"],Gr=ht(()=>u("div",{class:"indicator"},null,-1)),Kr=ht(()=>u("span",{class:"vpi-chevron-right caret-icon"},null,-1)),Wr=[Kr],qr={key:1,class:"items"},Jr=b({__name:"VPSidebarItem",props:{item:{},depth:{}},setup(t){const e=t,{collapsed:n,collapsible:s,isLink:o,isActiveLink:a,hasActiveLink:l,hasChildren:i,toggle:d}=fn(I(()=>e.item)),h=I(()=>i.value?"section":"div"),m=I(()=>o.value?"a":"div"),_=I(()=>i.value?e.depth+2===7?"p":`h${e.depth+2}`:"p"),g=I(()=>o.value?void 0:"button"),C=I(()=>[[`level-${e.depth}`],{collapsible:s.value},{collapsed:n.value},{"is-link":o.value},{"is-active":a.value},{"has-active":l.value}]);function V(y){"key"in y&&y.key!=="Enter"||!e.item.link&&d()}function M(){e.item.link&&d()}return(y,j)=>{const G=se("VPSidebarItem",!0);return r(),w(W(h.value),{class:D(["VPSidebarItem",C.value])},{default:v(()=>[y.item.text?(r(),p("div",ee({key:0,class:"item",role:g.value},Dt(y.item.items?{click:V,keydown:V}:{},!0),{tabindex:y.item.items&&0}),[Gr,y.item.link?(r(),w(q,{key:0,tag:m.value,class:"link",href:y.item.link,rel:y.item.rel,target:y.item.target},{default:v(()=>[(r(),w(W(_.value),{class:"text",innerHTML:y.item.text},null,8,["innerHTML"]))]),_:1},8,["tag","href","rel","target"])):(r(),w(W(_.value),{key:1,class:"text",innerHTML:y.item.text},null,8,["innerHTML"])),y.item.collapsed!=null&&y.item.items&&y.item.items.length?(r(),p("div",{key:2,class:"caret",role:"button","aria-label":"toggle section",onClick:M,onKeydown:Ft(M,["enter"]),tabindex:"0"},Wr,32)):k("",!0)],16,Ur)):k("",!0),y.item.items&&y.item.items.length?(r(),p("div",qr,[y.depth<5?(r(!0),p(x,{key:0},z(y.item.items,Q=>(r(),w(G,{key:Q.text,item:Q,depth:y.depth+1},null,8,["item","depth"]))),128)):k("",!0)])):k("",!0)]),_:1},8,["class"])}}}),Yr=$(Jr,[["__scopeId","data-v-fe6d72fb"]]),Xr=b({__name:"VPSidebarGroup",props:{items:{}},setup(t){const e=N(!0);let n=null;return te(()=>{n=setTimeout(()=>{n=null,e.value=!1},300)}),Rt(()=>{n!=null&&(clearTimeout(n),n=null)}),(s,o)=>(r(!0),p(x,null,z(s.items,a=>(r(),p("div",{key:a.text,class:D(["group",{"no-transition":e.value}])},[S(Yr,{item:a,depth:0},null,8,["item"])],2))),128))}}),Qr=$(Xr,[["__scopeId","data-v-1e9a5d2e"]]),_t=t=>(F("data-v-bc2dce68"),t=t(),R(),t),Zr=_t(()=>u("div",{class:"curtain"},null,-1)),ei={class:"nav",id:"VPSidebarNav","aria-labelledby":"sidebar-aria-label",tabindex:"-1"},ti=_t(()=>u("span",{class:"visually-hidden",id:"sidebar-aria-label"}," Sidebar Navigation ",-1)),ni=b({__name:"VPSidebar",props:{open:{type:Boolean}},setup(t){const{sidebarGroups:e,hasSidebar:n}=X(),s=t,o=N(null),a=nt(ye?document.body:null);Y([s,o],()=>{var i;s.open?(a.value=!0,(i=o.value)==null||i.focus()):a.value=!1},{immediate:!0,flush:"post"});const l=N(0);return Y(e,()=>{l.value+=1},{deep:!0}),(i,d)=>c(n)?(r(),p("aside",{key:0,class:D(["VPSidebar",{open:i.open}]),ref_key:"navEl",ref:o,onClick:d[0]||(d[0]=st(()=>{},["stop"]))},[Zr,u("nav",ei,[ti,f(i.$slots,"sidebar-nav-before",{},void 0,!0),(r(),w(Qr,{items:c(e),key:l.value},null,8,["items"])),f(i.$slots,"sidebar-nav-after",{},void 0,!0)])],2)):k("",!0)}}),oi=$(ni,[["__scopeId","data-v-bc2dce68"]]),si=b({__name:"VPSkipLink",setup(t){const e=be(),n=N();Y(()=>e.path,()=>n.value.focus());function s({target:o}){const a=document.getElementById(decodeURIComponent(o.hash).slice(1));if(a){const l=()=>{a.removeAttribute("tabindex"),a.removeEventListener("blur",l)};a.setAttribute("tabindex","-1"),a.addEventListener("blur",l),a.focus(),window.scrollTo(0,0)}}return(o,a)=>(r(),p(x,null,[u("span",{ref_key:"backToTop",ref:n,tabindex:"-1"},null,512),u("a",{href:"#VPContent",class:"VPSkipLink visually-hidden",onClick:s}," Skip to content ")],64))}}),ai=$(si,[["__scopeId","data-v-5ffb6bc3"]]),ri=b({__name:"Layout",setup(t){const{isOpen:e,open:n,close:s}=X(),o=be();Y(()=>o.path,s),pn(e,s);const{frontmatter:a}=O(),l=jt(),i=I(()=>!!l["home-hero-image"]);return ot("hero-image-slot-exists",i),(d,h)=>{const m=se("Content");return c(a).layout!==!1?(r(),p("div",{key:0,class:D(["Layout",c(a).pageClass])},[f(d.$slots,"layout-top",{},void 0,!0),S(ai),S(Yt,{class:"backdrop",show:c(e),onClick:c(s)},null,8,["show","onClick"]),S(zr,null,{"nav-bar-title-before":v(()=>[f(d.$slots,"nav-bar-title-before",{},void 0,!0)]),"nav-bar-title-after":v(()=>[f(d.$slots,"nav-bar-title-after",{},void 0,!0)]),"nav-bar-content-before":v(()=>[f(d.$slots,"nav-bar-content-before",{},void 0,!0)]),"nav-bar-content-after":v(()=>[f(d.$slots,"nav-bar-content-after",{},void 0,!0)]),"nav-screen-content-before":v(()=>[f(d.$slots,"nav-screen-content-before",{},void 0,!0)]),"nav-screen-content-after":v(()=>[f(d.$slots,"nav-screen-content-after",{},void 0,!0)]),_:3}),S($s,{open:c(e),onOpenMenu:c(n)},null,8,["open","onOpenMenu"]),S(oi,{open:c(e)},{"sidebar-nav-before":v(()=>[f(d.$slots,"sidebar-nav-before",{},void 0,!0)]),"sidebar-nav-after":v(()=>[f(d.$slots,"sidebar-nav-after",{},void 0,!0)]),_:3},8,["open"]),S(ns,null,{"page-top":v(()=>[f(d.$slots,"page-top",{},void 0,!0)]),"page-bottom":v(()=>[f(d.$slots,"page-bottom",{},void 0,!0)]),"not-found":v(()=>[f(d.$slots,"not-found",{},void 0,!0)]),"home-hero-before":v(()=>[f(d.$slots,"home-hero-before",{},void 0,!0)]),"home-hero-info-before":v(()=>[f(d.$slots,"home-hero-info-before",{},void 0,!0)]),"home-hero-info":v(()=>[f(d.$slots,"home-hero-info",{},void 0,!0)]),"home-hero-info-after":v(()=>[f(d.$slots,"home-hero-info-after",{},void 0,!0)]),"home-hero-actions-after":v(()=>[f(d.$slots,"home-hero-actions-after",{},void 0,!0)]),"home-hero-image":v(()=>[f(d.$slots,"home-hero-image",{},void 0,!0)]),"home-hero-after":v(()=>[f(d.$slots,"home-hero-after",{},void 0,!0)]),"home-features-before":v(()=>[f(d.$slots,"home-features-before",{},void 0,!0)]),"home-features-after":v(()=>[f(d.$slots,"home-features-after",{},void 0,!0)]),"doc-footer-before":v(()=>[f(d.$slots,"doc-footer-before",{},void 0,!0)]),"doc-before":v(()=>[f(d.$slots,"doc-before",{},void 0,!0)]),"doc-after":v(()=>[f(d.$slots,"doc-after",{},void 0,!0)]),"doc-top":v(()=>[f(d.$slots,"doc-top",{},void 0,!0)]),"doc-bottom":v(()=>[f(d.$slots,"doc-bottom",{},void 0,!0)]),"aside-top":v(()=>[f(d.$slots,"aside-top",{},void 0,!0)]),"aside-bottom":v(()=>[f(d.$slots,"aside-bottom",{},void 0,!0)]),"aside-outline-before":v(()=>[f(d.$slots,"aside-outline-before",{},void 0,!0)]),"aside-outline-after":v(()=>[f(d.$slots,"aside-outline-after",{},void 0,!0)]),"aside-ads-before":v(()=>[f(d.$slots,"aside-ads-before",{},void 0,!0)]),"aside-ads-after":v(()=>[f(d.$slots,"aside-ads-after",{},void 0,!0)]),_:3}),S(is),f(d.$slots,"layout-bottom",{},void 0,!0)],2)):(r(),w(m,{key:1}))}}}),ii=$(ri,[["__scopeId","data-v-5047c77d"]]),mt={Layout:ii,enhanceApp:({app:t})=>{t.component("Badge",Wt)}},Ue="LiteyukiStudio",Ge="LiteyukiBot",li="https://api.github.com",ci="https://git.liteyuki.icu/api/v1",ui="https://api.liteyuki.icu/online",di="https://api.liteyuki.icu/count",pi="https://api.liteyuki.icu/visit",fi="https://api.liteyuki.icu/visit_count",re=`https://github.com/${Ue}/${Ge}`,qe="https://starmap.liteyuki.icu";async function vi(){try{const t=`${ci}/repos/${Ue}/${Ge}`;console.log(t);const n=await(await fetch(t)).json();return{stars:n.stars_count,forks:n.forks_count,watchers:n.watchers_count,issues:0,prs:0,size:n.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function hi(){try{const e=await(await fetch(`${li}/repos/${Ue}/${Ge}`)).json();return{stars:e.stargazers_count,forks:e.forks_count,watchers:e.watchers_count,issues:e.open_issues_count,prs:e.open_issues_count,size:e.size}}catch{return{stars:-1,forks:-1,watchers:-1,issues:-1,prs:-1,size:-1}}}async function _i(){const t=await hi(),e=await vi();return{stars:t.stars+e.stars,forks:t.forks+e.forks,watchers:t.watchers+e.watchers,issues:t.issues+e.issues,prs:t.prs+e.prs,size:t.size+e.size}}const ae={getTotal:async()=>{try{return(await(await fetch(di)).json()).register}catch{return-1}},getOnline:async()=>{try{return(await(await fetch(ui)).json()).online}catch{return-1}},getGithubStats:_i,getPluginNum:async()=>{try{return(await(await fetch("/plugins.json")).json()).length}catch{return-1}},getResourceNum:async()=>{try{return(await(await fetch("/resources.json")).json()).length}catch{return-1}},getVisitCount:async()=>{try{return(await(await fetch(fi)).json()).count}catch{return-1}}};function mi(){const t="deviceId";let e=localStorage.getItem(t);return e||(e=bi(),localStorage.setItem(t,e)),e}async function gi(){const t=mi();try{await fetch(pi,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({device_id:t}).toString()})}catch(e){console.error("Failed to upload visit record:",e)}}function bi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,n=t==="x"?e:e&3|8;return n.toString(16)})}/*!
|
||
* vue-router v4.4.3
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/var Je;(function(t){t.pop="pop",t.push="push"})(Je||(Je={}));var Ye;(function(t){t.back="back",t.forward="forward",t.unknown=""})(Ye||(Ye={}));var Xe;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Xe||(Xe={}));const ki=Symbol("");function yi(t,e,n){const s=()=>{t[e].delete(n)};le(s),zt(s),Ut(()=>{t[e].add(n)}),t[e].add(n)}function $i(t){const e=ce(ki,{}).value;e&&yi(e,"updateGuards",t)}const Si=t=>(F("data-v-2391887b"),t=t(),R(),t),wi={class:"stats-bar-content"},Pi={class:"stats-bar"},Li={class:"stats-info"},Vi={class:"stats-title"},Ti={class:"sections"},Ii=["href"],Ni={class:"section-tab"},Ci={class:"text"},Ai={class:"number"},Mi=Si(()=>u("div",{class:"starmap"},[u("iframe",{src:"https://starmap.liteyuki.icu/",width:"100%",height:"300px",class:"gamma"})],-1)),Ei=b({__name:"StatsBar",setup(t){const{Layout:e}=mt;let n=null;const s={total:{name:"total",color:"#00a6ff",value:N(-1),link:qe},online:{name:"online",color:"#7eff7e",value:N(-1),link:qe},stars:{name:"stars",color:"#ffcc00",value:N(-1),link:`${re}/stargazers`},forks:{name:"forks",color:"#ff6600",value:N(-1),link:`${re}/forks`},issues:{name:"issues",color:"#ff0000",value:N(-1),link:`${re}/issues`},prs:{name:"prs",color:"#f15df1",value:N(-1),link:`${re}/pulls`},plugins:{name:"plugins",color:"#a766ff",value:N(-1),link:"./store/plugin"},resources:{name:"resources",color:"#5a54fa",value:N(-1),link:"./store/resource"},visitors:{name:"visitors",color:"#00a6ff",value:N(-1),link:re}};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(l){return l.value.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}return te(()=>{const l=setInterval(o,1e4);o(),gi(),le(()=>{clearInterval(l)})}),$i(()=>{Kt()}),console.log(` _ _ _ _ _ ____ _
|
||
| | (_) | | | (_) _ \\ | |
|
||
| | _| |_ ___ _ _ _ _| | ___| |_) | ___ | |_
|
||
| | | | __/ _ \\ | | | | | | |/ / | _ < / _ \\| __|
|
||
| |____| | || __/ |_| | |_| | <| | |_) | (_) | |_
|
||
|______|_|\\__\\___|\\__, |\\__,_|_|\\_\\_|____/ \\___/ \\__|
|
||
__/ |
|
||
|___/ `),console.log(U("easterEgg")),(l,i)=>(r(),w(c(e),null,{"home-features-before":v(()=>[u("div",wi,[u("div",Pi,[u("div",Li,[u("div",Vi,T(c(U)("stats")),1),u("div",Ti,[(r(!0),p(x,null,z(Object.values(s),d=>(r(),p("div",{key:d.name,class:"section"},[u("a",{href:d.link,target:"_blank"},[u("div",Ni,[u("span",{class:"dot",style:ke({backgroundColor:d.color})},null,4),u("span",Ci,T(c(U)(d.name)),1)]),u("div",Ai,T(a(d.value)),1)],8,Ii)]))),128))])]),Mi])])]),_:1}))}}),Qe=$(Ei,[["__scopeId","data-v-2391887b"]]);var Bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gt={exports:{}};/*!
|
||
* clipboard.js v2.0.11
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/(function(t,e){(function(s,o){t.exports=o()})(Bi,function(){return function(){var n={686:function(a,l,i){i.d(l,{default:function(){return It}});var d=i(279),h=i.n(d),m=i(370),_=i.n(m),g=i(817),C=i.n(g);function V(B){try{return document.execCommand(B)}catch{return!1}}var M=function(L){var P=C()(L);return V("cut"),P},y=M;function j(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 G=function(L,P){var A=j(L);P.container.appendChild(A);var E=C()(A);return V("copy"),A.remove(),E},Q=function(L){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},A="";return typeof L=="string"?A=G(L,P):L instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(L==null?void 0:L.type)?A=G(L.value,P):(A=C()(L),V("copy")),A},ne=Q;function Z(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Z=function(P){return typeof P}:Z=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},Z(B)}var bt=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,K=L.text;if(A!=="copy"&&A!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(H!==void 0)if(H&&Z(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(K)return ne(K,{container:E});if(H)return A==="cut"?y(H):ne(H,{container:E})},kt=bt;function ie(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ie=function(P){return typeof P}:ie=function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},ie(B)}function yt(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function Ke(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 $t(B,L,P){return L&&Ke(B.prototype,L),P&&Ke(B,P),B}function St(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&&we(B,L)}function we(B,L){return we=Object.setPrototypeOf||function(A,E){return A.__proto__=E,A},we(B,L)}function wt(B){var L=Vt();return function(){var A=de(B),E;if(L){var H=de(this).constructor;E=Reflect.construct(A,arguments,H)}else E=A.apply(this,arguments);return Pt(this,E)}}function Pt(B,L){return L&&(ie(L)==="object"||typeof L=="function")?L: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 Vt(){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 Pe(B,L){var P="data-clipboard-".concat(B);if(L.hasAttribute(P))return L.getAttribute(P)}var Tt=function(B){St(P,B);var L=wt(P);function P(A,E){var H;return yt(this,P),H=L.call(this),H.resolveOptions(E),H.listenClick(A),H}return $t(P,[{key:"resolveOptions",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof E.action=="function"?E.action:this.defaultAction,this.target=typeof E.target=="function"?E.target:this.defaultTarget,this.text=typeof E.text=="function"?E.text:this.defaultText,this.container=ie(E.container)==="object"?E.container:document.body}},{key:"listenClick",value:function(E){var H=this;this.listener=_()(E,"click",function(K){return H.onClick(K)})}},{key:"onClick",value:function(E){var H=E.delegateTarget||E.currentTarget,K=this.action(H)||"copy",pe=kt({action:K,container:this.container,target:this.target(H),text:this.text(H)});this.emit(pe?"success":"error",{action:K,text:pe,trigger:H,clearSelection:function(){H&&H.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(E){return Pe("action",E)}},{key:"defaultTarget",value:function(E){var H=Pe("target",E);if(H)return document.querySelector(H)}},{key:"defaultText",value:function(E){return Pe("text",E)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(E){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return ne(E,H)}},{key:"cut",value:function(E){return y(E)}},{key:"isSupported",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],H=typeof E=="string"?[E]:E,K=!!document.queryCommandSupported;return H.forEach(function(pe){K=K&&!!document.queryCommandSupported(pe)}),K}}]),P}(h()),It=Tt},828:function(a){var l=9;if(typeof Element<"u"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function d(h,m){for(;h&&h.nodeType!==l;){if(typeof h.matches=="function"&&h.matches(m))return h;h=h.parentNode}}a.exports=d},438:function(a,l,i){var d=i(828);function h(g,C,V,M,y){var j=_.apply(this,arguments);return g.addEventListener(V,j,y),{destroy:function(){g.removeEventListener(V,j,y)}}}function m(g,C,V,M,y){return typeof g.addEventListener=="function"?h.apply(null,arguments):typeof V=="function"?h.bind(null,document).apply(null,arguments):(typeof g=="string"&&(g=document.querySelectorAll(g)),Array.prototype.map.call(g,function(j){return h(j,C,V,M,y)}))}function _(g,C,V,M){return function(y){y.delegateTarget=d(y.target,C),y.delegateTarget&&M.call(g,y)}}a.exports=m},879:function(a,l){l.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},l.nodeList=function(i){var d=Object.prototype.toString.call(i);return i!==void 0&&(d==="[object NodeList]"||d==="[object HTMLCollection]")&&"length"in i&&(i.length===0||l.node(i[0]))},l.string=function(i){return typeof i=="string"||i instanceof String},l.fn=function(i){var d=Object.prototype.toString.call(i);return d==="[object Function]"}},370:function(a,l,i){var d=i(879),h=i(438);function m(V,M,y){if(!V&&!M&&!y)throw new Error("Missing required arguments");if(!d.string(M))throw new TypeError("Second argument must be a String");if(!d.fn(y))throw new TypeError("Third argument must be a Function");if(d.node(V))return _(V,M,y);if(d.nodeList(V))return g(V,M,y);if(d.string(V))return C(V,M,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function _(V,M,y){return V.addEventListener(M,y),{destroy:function(){V.removeEventListener(M,y)}}}function g(V,M,y){return Array.prototype.forEach.call(V,function(j){j.addEventListener(M,y)}),{destroy:function(){Array.prototype.forEach.call(V,function(j){j.removeEventListener(M,y)})}}}function C(V,M,y){return h(document.body,V,M,y)}a.exports=m},817:function(a){function l(i){var d;if(i.nodeName==="SELECT")i.focus(),d=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var h=i.hasAttribute("readonly");h||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),h||i.removeAttribute("readonly"),d=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var m=window.getSelection(),_=document.createRange();_.selectNodeContents(i),m.removeAllRanges(),m.addRange(_),d=m.toString()}return d}a.exports=l},279:function(a){function l(){}l.prototype={on:function(i,d,h){var m=this.e||(this.e={});return(m[i]||(m[i]=[])).push({fn:d,ctx:h}),this},once:function(i,d,h){var m=this;function _(){m.off(i,_),d.apply(h,arguments)}return _._=d,this.on(i,_,h)},emit:function(i){var d=[].slice.call(arguments,1),h=((this.e||(this.e={}))[i]||[]).slice(),m=0,_=h.length;for(m;m<_;m++)h[m].fn.apply(h[m].ctx,d);return this},off:function(i,d){var h=this.e||(this.e={}),m=h[i],_=[];if(m&&d)for(var g=0,C=m.length;g<C;g++)m[g].fn!==d&&m[g].fn._!==d&&_.push(m[g]);return _.length?h[i]=_:delete h[i],this}},a.exports=l,a.exports.TinyEmitter=l}},s={};function o(a){if(s[a])return s[a].exports;var l=s[a]={exports:{}};return n[a](l,l.exports,o),l.exports}return function(){o.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return o.d(l,{a:l}),l}}(),function(){o.d=function(a,l){for(var i in l)o.o(l,i)&&!o.o(a,i)&&Object.defineProperty(a,i,{enumerable:!0,get:l[i]})}}(),function(){o.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)}}(),o(686)}().default})})(gt);var Hi=gt.exports;const xi=Oi(Hi),Di=t=>(F("data-v-a8e3f329"),t=t(),R(),t),Fi={class:"item-card"},Ri={class:"item-name"},ji={class:"item-description"},zi={class:"tags"},Ui={class:"item-bar"},Gi=["href"],Ki=Di(()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[u("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)),Wi=[Ki],qi={class:"btn"},Ji=["href"],Yi=["src"],Xi={class:"author-name"},Qi=b({__name:"PluginItemCard",props:{item:Object},setup(t){const e=t,n=()=>{const o=new xi(".copy-btn",{text:()=>`npm install ${e.item.module_name}`});o.on("success",()=>{}),o.on("error",()=>{})},s=o=>{const a=o.replace(/^#/,""),[l,i,d]=a.match(/.{2}/g).map(m=>parseInt(m,16)),h=(l*299+i*587+d*114)/1e3;return{backgroundColor:o,color:h>128?"#000":"#fff"}};return(o,a)=>(r(),p("div",Fi,[u("div",Ri,T(e.item.name),1),u("div",ji,T(e.item.desc),1),u("div",zi,[(r(!0),p(x,null,z(e.item.tags,l=>(r(),p("span",{class:"tag",key:l,style:ke(s(l.color))},T(l.label),5))),128))]),u("div",Ui,[u("a",{href:e.item.homepage,class:"btn",target:"_blank"},Wi,8,Gi),u("button",{class:"btn copy-btn",onClick:n},"复制安装命令"),u("div",qi,[u("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[u("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,Yi),u("div",Xi,T(e.item.author),1)],8,Ji)])])]))}}),Zi=$(Qi,[["__scopeId","data-v-a8e3f329"]]),el=t=>(F("data-v-b3db11d1"),t=t(),R(),t),tl={class:"switch"},nl=["checked"],ol=el(()=>u("span",{class:"slider round"},null,-1)),sl=b({__name:"ToggleSwitch",props:{modelValue:Boolean},emits:["update:modelValue"],setup(t,{emit:e}){const n=e,s=o=>{n("update:modelValue",o)};return(o,a)=>(r(),p("label",tl,[u("input",{type:"checkbox",checked:t.modelValue,onChange:a[0]||(a[0]=l=>s(l.target.checked))},null,40,nl),ol]))}}),al=$(sl,[["__scopeId","data-v-b3db11d1"]]),rl=[{module_name:"liteyukibot-plugin-nonebot",project_link:"liteyukibot-plugin-nonebot",name:"NoneBot插件",desc:"在轻雪中使用NoneBot,内置轻雪--NoneBot会话控制器插件,为NoneBot开发者提供了更多便捷功能(已内置)",author:"snowykami",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-nonebot",tags:[{label:"app",color:"#aeeaa8"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-antidislink",project_link:"liteyukibot-plugin-antidislink",name:"防断联插件",desc:"防止你的群友断联化",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-antidislink",tags:[{label:"app",color:"#aeeaa8"},{label:"dislink",color:"#d0e9ff"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-lagrange",project_link:"liteyukibot-plugin-lagrange",name:"LagrangePlugin",desc:"在轻雪中使用lagrange-python!",author:"snowykami",homepage:"https://github.com/snowykami/liteyukibot-plugin-lagrange",tags:[{label:"app",color:"#aeeaa8"},{label:"lagrange",color:"#ff89f7"}],is_official:!0,type:"application",valid:!0,version:"rolling"},{module_name:"liteyukibot-plugin-htmlrender",project_link:"liteyukibot-plugin-htmlrender",name:"htmlrender",desc:"使用系统中的浏览器对网页进行渲染,便于其他插件使用",author:"EillesWan",homepage:"https://github.com/LiteyukiStudio/liteyukibot-plugin-htmlrender",tags:[{label:"ch",color:"#4285f4"},{label:"ro",color:"#db4437"},{label:"mi",color:"#f4b400"},{label:"um",color:"#0f9d58"}],is_official:!0,type:"application",valid:!0,version:"rolling"}],il={class:"market"},ll={class:"search-box-div"},cl=["placeholder"],ul={class:"items"},dl=b({__name:"PluginStore",setup(t){let e=N(!1),n=I(()=>{let a=s.value;return o.value&&(a=a.filter(l=>l.name.toLowerCase().includes(o.value.toLowerCase())||l.desc.toLowerCase().includes(o.value.toLowerCase())||l.author.toLowerCase().includes(o.value.toLowerCase())||l.module_name.toLowerCase().includes(o.value.toLowerCase()))),e.value&&(a=a.filter(l=>l.is_liteyuki_plugin)),a}),s=N([]),o=N("");return s.value=rl,s.value.forEach(a=>{a.is_liteyuki_plugin=!0}),fetch("https://registry.nonebot.dev/plugins.json").then(a=>a.json()).then(a=>{a.forEach(l=>{l.is_official=!1}),s.value=s.value.concat(a)}),(a,l)=>(r(),p("div",il,[u("h1",null,T(c(U)("pluginStore")),1),u("p",null,T(c(U)("pluginStoreDesc")),1),u("div",ll,[Ie(u("input",{class:"item-search-box",type:"text","onUpdate:modelValue":l[0]||(l[0]=i=>Ce(o)?o.value=i:o=i),placeholder:c(U)("search")},null,8,cl),[[Ne,c(o)]]),S(al,{modelValue:c(e),"onUpdate:modelValue":l[1]||(l[1]=i=>Ce(e)?e.value=i:e=i)},null,8,["modelValue"]),J(" "+T(c(U)("liteyukiOnly")),1)]),u("div",ul,[(r(!0),p(x,null,z(c(n),i=>(r(),w(Zi,{key:i.id,item:i},null,8,["item"]))),128))])]))}}),pl=$(dl,[["__scopeId","data-v-671446c8"]]),fl=t=>(F("data-v-22cbd1fa"),t=t(),R(),t),vl={class:"item-card"},hl={class:"item-name"},_l={class:"item-description"},ml={class:"item-bar"},gl=["href"],bl=fl(()=>u("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 16 16"},[u("path",{fill:"currentColor",d:"m7.775 3.275l1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0a.751.751 0 0 1 .018-1.042a.751.751 0 0 1 1.042-.018a1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018a.751.751 0 0 1-.018-1.042m-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018a.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0a.751.751 0 0 1-.018 1.042a.751.751 0 0 1-1.042.018a1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83"})],-1)),kl=[bl],yl=["href"],$l=["src"],Sl={class:"author-name"},wl=b({__name:"ResItemCard",props:{item:Object},setup(t){const e=t;return(n,s)=>(r(),p("div",vl,[u("div",hl,T(e.item.name),1),u("div",_l,T(e.item.description),1),u("div",ml,[u("a",{href:e.item.link,class:"",target:"_blank"},kl,8,gl),u("div",null,[u("a",{class:"author-info",href:`https://github.com/${e.item.author}`},[u("img",{class:"icon avatar",src:`https://github.com/${e.item.author}.png?size=80`,alt:""},null,8,$l),u("div",Sl,T(e.item.author),1)],8,yl)])])]))}}),Pl=$(wl,[["__scopeId","data-v-22cbd1fa"]]),Ll={key:0,class:"floating-window"},Vl={class:"window-content"},Tl=b({__name:"ResPubWindow",props:{isVisible:Boolean},setup(t){return(e,n)=>t.isVisible?(r(),p("div",Ll,[u("div",Vl,[f(e.$slots,"default",{},void 0,!0)])])):k("",!0)}}),Il=$(Tl,[["__scopeId","data-v-8b5829b6"]]),Nl=[{name:"KawaiiStatus",author:"SnowyKami",description:"可爱的状态卡片,仿照koishi的制作",link:"https://cdn.liteyuki.icu/static/lrp/KawaiiStatus.zip"},{name:"MiSans字体包",author:"SnowyKami",description:"小米官方字体MiSans",link:"https://cdn.liteyuki.icu/static/lrp/MiSansFonts.zip"},{name:"MapleMono字体包",author:"SnowyKami",description:"适用于字母的字体包",link:"https://cdn.liteyuki.icu/static/lrp/MapleMonoFonts.zip"},{name:"野兽先辈主题HomoTheme",author:"SnowyKami",description:"野兽先辈主题包,114514!",link:"https://cdn.liteyuki.icu/static/lrp/HomoTheme.zip"},{name:"自定义设备信息",author:"SnowyKami",description:"自定义服务端的设备信息,自行修改使用",link:"https://cdn.liteyuki.icu/static/lrp/custom-device.zip"},{name:"轻雪傲娇系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip"},{name:"轻雪可爱系词库",author:"SnowyKami",description:"使用https://github.com/Kyomotoi/AnimeThesaurus的词库",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_kawaii.zip"},{name:"轻雪Kakyo语言包",author:"Nanaloveyuki",description:"Liteyuki Bot的语言包,用于提供多种语言的翻译。",link:"https://github.com/Nanaloveyuki/liteyuki-langpack/releases/download/KakyoVer/Kakyo-pack.zip"},{name:"更多背景模板包",author:"snowykami",description:"自定义各种卡片的背景",link:"https://cdn.liteyuki.icu/static/lrp/morebg.zip"},{name:"测试资源包",desc:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"},{name:"轻雪Kakyo语言包 稳定版",description:"Liteyuki Bot的语言包,用于提供多种语言的翻译。",link:"https://cdn.liteyuki.icu/static/lrp/kakyo.zip",homepage:"https://github.com/Nanaloveyuki/liteyuki-langpack",author:"Nanaloveyuki"},{name:"测试资源包2",description:"test",link:"https://cdn.liteyuki.icu/static/lrp/liteyuki_words_aojiao.zip",homepage:"",author:"snowykami"}],Cl={class:"market"},Al={class:"search-box-div"},Ml=["placeholder"],El={class:"store-tabs",style:{display:"flex"}},Bl={class:"items"},Ol={for:"name"},Hl=["placeholder"],xl={class:"pub-options",style:{display:"flex","justify-content":"center"}},Dl=b({__name:"ResStore",setup(t){let e=I(()=>s.value?n.value.filter(m=>m.name.toLowerCase().includes(s.value.toLowerCase())||m.description.toLowerCase().includes(s.value.toLowerCase())||m.author.toLowerCase().includes(s.value.toLowerCase())).reverse():n.value.reverse()),n=N([]),s=N("");n.value=Nl;const o=N(!1);let a=N({name:""});function l(){o.value=!0}function i(){o.value=!1}let d="";$e(_e().site.value.lang)==="zh"?d="zh":d="en";function h(){const m=encodeURI(`Resource: ${a.value.name}`),_=`${re}/issues/new?assignees=&labels=Resource&template=resource_publish_${d}.yml&title=${m}`;console.log(_),window.open(_,"_blank")}return(m,_)=>(r(),p("div",Cl,[u("h1",null,T(c(U)("resourceStore")),1),u("div",Al,[Ie(u("input",{class:"item-search-box",type:"text",placeholder:c(U)("search"),"onUpdate:modelValue":_[0]||(_[0]=g=>Ce(s)?s.value=g:s=g)},null,8,Ml),[[Ne,c(s)]])]),u("div",El,[u("button",{class:"store-button publish-button",onClick:l},T(c(U)("publishRes")),1)]),u("div",Bl,[(r(!0),p(x,null,z(c(e),g=>(r(),w(Pl,{key:g.id,item:g},null,8,["item"]))),128))]),S(Il,{class:"pub-window","is-visible":o.value},{default:v(()=>[u("h2",null,T(c(U)("publishRes")),1),u("form",{onSubmit:st(h,["prevent"])},[u("label",Ol,T(c(U)("resName")),1),Ie(u("input",{type:"text",id:"name","onUpdate:modelValue":_[1]||(_[1]=g=>c(a).name=g),placeholder:c(U)("resNameText")},null,8,Hl),[[Ne,c(a).name]]),u("div",xl,[u("button",{class:"pub-option close",type:"button",onClick:i},T(c(U)("closeButtonText")),1),u("button",{class:"pub-option submit",type:"submit",onClick:h},T(c(U)("submitButtonText")),1)])],32)]),_:1},8,["is-visible"])]))}}),Fl=$(Dl,[["__scopeId","data-v-83d58003"]]),zl={extends:mt,enhanceApp({app:t}){t.component("StatsBar",Qe),t.component("PluginStore",pl),t.component("ResStore",Fl)},Layout:Qe};export{zl as R,Ma as c,U as g,O as u};
|