mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
63 lines
294 KiB
JavaScript
63 lines
294 KiB
JavaScript
import{d as defineAsyncComponent,r as ref,a as readonly,b as reactive,c as defineComponent,i as isString$1,e as isArray,f as dedupeHead,g as resolveLocalePath,o as onMounted,h as computed,j as h$3,k as isLinkHttp,l as removeLeadingSlash,m as inject,n as getCurrentInstance,p as isPlainObject,q as camelize,s as capitalize,t as isFunction$1,u as unref,v as nextTick,w as isRef,x as watch,y as getCurrentScope,z as onScopeDispose,A as shallowRef,B as watchEffect,T as Transition,C as useRouter,D as onBeforeUnmount,E as useRoute,R as RouterLink,F as createBaseVNode,G as onUnmounted,H as openBlock,I as createElementBlock,J as toDisplayString,K as Fragment,L as renderList,M as createCommentVNode,N as normalizeStyle,O as createVNode,P as normalizeClass,Q as withDirectives,S as vModelText,U as vShow,V as createTextVNode,W as createBlock,X as vModelDynamic,Y as resolveComponent,Z as provide,_ as isLinkMailto,$ as toRef,a0 as isLinkTel,a1 as isLinkExternal,a2 as ensureEndingSlash,a3 as TransitionGroup,a4 as removeEndingSlash,a5 as useLink,a6 as createSSRApp,a7 as RouterView,a8 as createRouter,a9 as START_LOCATION_NORMALIZED,aa as createWebHistory}from"./framework-561d691d.js";const scriptRel="modulepreload",assetsURL=function(b){return"/"+b},seen={},__vitePreload=function(j,U,Bn){if(!U||U.length===0)return j();const Fn=document.getElementsByTagName("link");return Promise.all(U.map(qn=>{if(qn=assetsURL(qn),qn in seen)return;seen[qn]=!0;const Wn=qn.endsWith(".css"),Yn=Wn?'[rel="stylesheet"]':"";if(!!Bn)for(let Zn=Fn.length-1;Zn>=0;Zn--){const Kn=Fn[Zn];if(Kn.href===qn&&(!Wn||Kn.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${qn}"]${Yn}`))return;const Qn=document.createElement("link");if(Qn.rel=Wn?"stylesheet":scriptRel,Wn||(Qn.as="script",Qn.crossOrigin=""),Qn.href=qn,document.head.appendChild(Qn),Wn)return new Promise((Zn,Kn)=>{Qn.addEventListener("load",Zn),Qn.addEventListener("error",()=>Kn(new Error(`Unable to preload CSS for ${qn}`)))})})).then(()=>j())},pagesData$1={"v-8daa1a0e":()=>__vitePreload(()=>import("./index.html-651cfb32.js"),[]).then(({data:b})=>b),"v-67f865c9":()=>__vitePreload(()=>import("./community.html-4259ed5c.js"),[]).then(({data:b})=>b),"v-c360777a":()=>__vitePreload(()=>import("./markmap.html-3825499a.js"),[]).then(({data:b})=>b),"v-590a42d9":()=>__vitePreload(()=>import("./project.html-0391df72.js"),[]).then(({data:b})=>b),"v-96f5eae0":()=>__vitePreload(()=>import("./quick-start.html-af87c551.js"),[]).then(({data:b})=>b),"v-f8eeb414":()=>__vitePreload(()=>import("./side-load.html-de24922e.js"),[]).then(({data:b})=>b),"v-35ed7d28":()=>__vitePreload(()=>import("./star-request.html-56b84ca0.js"),[]).then(({data:b})=>b),"v-4f87b30d":()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-4011e065.js"),[]).then(({data:b})=>b),"v-5b94d45f":()=>__vitePreload(()=>import("./HttpRequestException.html-4f30254a.js"),[]).then(({data:b})=>b),"v-0288c929":()=>__vitePreload(()=>import("./artifact-rating-rules.html-89b1cb5d.js"),[]).then(({data:b})=>b),"v-9a0eaba6":()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-ac32733d.js"),[]).then(({data:b})=>b),"v-179f15e2":()=>__vitePreload(()=>import("./how-to.html-5cb96e32.js"),[]).then(({data:b})=>b),"v-401b4afa":()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-d397119f.js"),[]).then(({data:b})=>b),"v-289a9e83":()=>__vitePreload(()=>import("./why.html-69ac89b7.js"),[]).then(({data:b})=>b),"v-28eb1946":()=>__vitePreload(()=>import("./symposium1.html-307eb376.js"),[]).then(({data:b})=>b),"v-2a9ff1e5":()=>__vitePreload(()=>import("./symposium2.html-3a708b8f.js"),[]).then(({data:b})=>b),"v-2d0a870d":()=>__vitePreload(()=>import("./index.html-59219388.js"),[]).then(({data:b})=>b),"v-73139ec8":()=>__vitePreload(()=>import("./achievements.html-717876fb.js"),[]).then(({data:b})=>b),"v-1c93fc72":()=>__vitePreload(()=>import("./character-data.html-41fa4a18.js"),[]).then(({data:b})=>b),"v-e37f5fa8":()=>__vitePreload(()=>import("./character-wiki.html-150c6cea.js"),[]).then(({data:b})=>b),"v-646944b6":()=>__vitePreload(()=>import("./daily-notes.html-4f5386f2.js"),[]).then(({data:b})=>b),"v-1ae10847":()=>__vitePreload(()=>import("./develop-plan.html-a9728973.js"),[]).then(({data:b})=>b),"v-923d01d2":()=>__vitePreload(()=>import("./game-launcher.html-535d8f04.js"),[]).then(({data:b})=>b),"v-6de46920":()=>__vitePreload(()=>import("./hutao-API.html-a02b463f.js"),[]).then(({data:b})=>b),"v-0c385e36":()=>__vitePreload(()=>import("./hutao-settings.html-8e84b5ab.js"),[]).then(({data:b})=>b),"v-3e40bb9d":()=>__vitePreload(()=>import("./mhy-account-switch.html-43580033.js"),[]).then(({data:b})=>b),"v-7070f771":()=>__vitePreload(()=>import("./weapon-wiki.html-ee86d91d.js"),[]).then(({data:b})=>b),"v-f4f67790":()=>__vitePreload(()=>import("./wish-export.html-38eb66bf.js"),[]).then(({data:b})=>b),"v-39f4c4da":()=>__vitePreload(()=>import("./bug-report.html-b615f75b.js"),[]).then(({data:b})=>b),"v-6730cc6c":()=>__vitePreload(()=>import("./privacy-notice.html-4dbebbbb.js"),[]).then(({data:b})=>b),"v-d670f89a":()=>__vitePreload(()=>import("./tos.html-233ebd50.js"),[]).then(({data:b})=>b),"v-3706649a":()=>__vitePreload(()=>import("./404.html-32d5d192.js"),[]).then(({data:b})=>b),"v-74379e72":()=>__vitePreload(()=>import("./index.html-97cb8dac.js"),[]).then(({data:b})=>b),"v-437b37b6":()=>__vitePreload(()=>import("./index.html-6015185b.js"),[]).then(({data:b})=>b),"v-35380e8e":()=>__vitePreload(()=>import("./index.html-34056938.js"),[]).then(({data:b})=>b),"v-b573819c":()=>__vitePreload(()=>import("./index.html-088df0ce.js"),[]).then(({data:b})=>b)},siteData$1=JSON.parse('{"base":"/","lang":"en-US","title":"","description":"","head":[["script",{"async":"","defer":"","data-website-id":"f586534f-1741-450e-a0f4-3c0189f993c9","src":"https://umami.irain.in/umami.js"},"\\n "],["div",{"id":"docsearch"}],["script",{"type":"module","src":"https://get.microsoft.com/badge/ms-store-badge.bundled.js"}],["link",{"rel":"icon","href":"/favicon.ico"}],["link",{"rel":"icon","href":"/pwa-icon/chrome-512.png","type":"image/png","sizes":"512x512"}],["link",{"rel":"icon","href":"/pwa-icon/chrome-192.png","type":"image/png","sizes":"192x192"}],["link",{"rel":"manifest","href":"/manifest.webmanifest","crossorigin":"use-credentials"}],["meta",{"name":"theme-color","content":"#f26d6d"}],["link",{"rel":"apple-touch-icon","href":"/favicon.ico"}],["meta",{"name":"apple-mobile-web-app-capable","content":"yes"}],["meta",{"name":"apple-mobile-web-app-status-bar-style","content":"black"}],["meta",{"name":"msapplication-TileImage","content":"/favicon.ico"}],["meta",{"name":"msapplication-TileColor","content":"#ffffff"}],["meta",{"name":"viewport","content":"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"}]],"locales":{"/":{"lang":"zh-CN","title":"胡桃工具箱","description":"多功能的原神工具箱"},"/en/":{"lang":"en-US","title":"Snap Hutao","description":"Super utilitarian Genshin Impact Tool"}}}'),pagesComponents={"v-8daa1a0e":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-eed91ac9.js"),["assets/index.html-eed91ac9.js","assets/framework-561d691d.js"])),"v-67f865c9":defineAsyncComponent(()=>__vitePreload(()=>import("./community.html-28adceda.js"),["assets/community.html-28adceda.js","assets/framework-561d691d.js"])),"v-c360777a":defineAsyncComponent(()=>__vitePreload(()=>import("./markmap.html-5207708a.js"),["assets/markmap.html-5207708a.js","assets/framework-561d691d.js"])),"v-590a42d9":defineAsyncComponent(()=>__vitePreload(()=>import("./project.html-12782e3d.js"),["assets/project.html-12782e3d.js","assets/framework-561d691d.js"])),"v-96f5eae0":defineAsyncComponent(()=>__vitePreload(()=>import("./quick-start.html-96782c47.js"),["assets/quick-start.html-96782c47.js","assets/framework-561d691d.js"])),"v-f8eeb414":defineAsyncComponent(()=>__vitePreload(()=>import("./side-load.html-26732e3c.js"),["assets/side-load.html-26732e3c.js","assets/framework-561d691d.js"])),"v-35ed7d28":defineAsyncComponent(()=>__vitePreload(()=>import("./star-request.html-bf86e453.js"),["assets/star-request.html-bf86e453.js","assets/framework-561d691d.js"])),"v-4f87b30d":defineAsyncComponent(()=>__vitePreload(()=>import("./Gacha-system-and-export-principal.html-7d28f301.js"),["assets/Gacha-system-and-export-principal.html-7d28f301.js","assets/framework-561d691d.js"])),"v-5b94d45f":defineAsyncComponent(()=>__vitePreload(()=>import("./HttpRequestException.html-0f76c63c.js"),["assets/HttpRequestException.html-0f76c63c.js","assets/framework-561d691d.js"])),"v-0288c929":defineAsyncComponent(()=>__vitePreload(()=>import("./artifact-rating-rules.html-e3b5fcfe.js"),["assets/artifact-rating-rules.html-e3b5fcfe.js","assets/framework-561d691d.js"])),"v-9a0eaba6":defineAsyncComponent(()=>__vitePreload(()=>import("./get-stoken-cookie-from-the-third-party.html-7b53d6e8.js"),["assets/get-stoken-cookie-from-the-third-party.html-7b53d6e8.js","assets/framework-561d691d.js"])),"v-179f15e2":defineAsyncComponent(()=>__vitePreload(()=>import("./how-to.html-bd825cb8.js"),["assets/how-to.html-bd825cb8.js","assets/framework-561d691d.js"])),"v-401b4afa":defineAsyncComponent(()=>__vitePreload(()=>import("./mihoyo-risk-tip.html-84a6b9d4.js"),["assets/mihoyo-risk-tip.html-84a6b9d4.js","assets/framework-561d691d.js"])),"v-289a9e83":defineAsyncComponent(()=>__vitePreload(()=>import("./why.html-6622d043.js"),["assets/why.html-6622d043.js","assets/framework-561d691d.js"])),"v-28eb1946":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium1.html-5f6d7d0c.js"),["assets/symposium1.html-5f6d7d0c.js","assets/framework-561d691d.js"])),"v-2a9ff1e5":defineAsyncComponent(()=>__vitePreload(()=>import("./symposium2.html-02eadb45.js"),["assets/symposium2.html-02eadb45.js","assets/framework-561d691d.js"])),"v-2d0a870d":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-fd78bfdb.js"),["assets/index.html-fd78bfdb.js","assets/framework-561d691d.js"])),"v-73139ec8":defineAsyncComponent(()=>__vitePreload(()=>import("./achievements.html-bd538c75.js"),["assets/achievements.html-bd538c75.js","assets/framework-561d691d.js"])),"v-1c93fc72":defineAsyncComponent(()=>__vitePreload(()=>import("./character-data.html-51db9596.js"),["assets/character-data.html-51db9596.js","assets/framework-561d691d.js"])),"v-e37f5fa8":defineAsyncComponent(()=>__vitePreload(()=>import("./character-wiki.html-924e2b7e.js"),["assets/character-wiki.html-924e2b7e.js","assets/framework-561d691d.js"])),"v-646944b6":defineAsyncComponent(()=>__vitePreload(()=>import("./daily-notes.html-b50e80de.js"),["assets/daily-notes.html-b50e80de.js","assets/framework-561d691d.js"])),"v-1ae10847":defineAsyncComponent(()=>__vitePreload(()=>import("./develop-plan.html-e353c5d8.js"),["assets/develop-plan.html-e353c5d8.js","assets/framework-561d691d.js"])),"v-923d01d2":defineAsyncComponent(()=>__vitePreload(()=>import("./game-launcher.html-f4a08d10.js"),["assets/game-launcher.html-f4a08d10.js","assets/framework-561d691d.js"])),"v-6de46920":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-API.html-5dcff158.js"),["assets/hutao-API.html-5dcff158.js","assets/framework-561d691d.js"])),"v-0c385e36":defineAsyncComponent(()=>__vitePreload(()=>import("./hutao-settings.html-8c39db0e.js"),["assets/hutao-settings.html-8c39db0e.js","assets/framework-561d691d.js"])),"v-3e40bb9d":defineAsyncComponent(()=>__vitePreload(()=>import("./mhy-account-switch.html-748dd69e.js"),["assets/mhy-account-switch.html-748dd69e.js","assets/framework-561d691d.js"])),"v-7070f771":defineAsyncComponent(()=>__vitePreload(()=>import("./weapon-wiki.html-6946ea2c.js"),["assets/weapon-wiki.html-6946ea2c.js","assets/framework-561d691d.js"])),"v-f4f67790":defineAsyncComponent(()=>__vitePreload(()=>import("./wish-export.html-5f0c396e.js"),["assets/wish-export.html-5f0c396e.js","assets/framework-561d691d.js"])),"v-39f4c4da":defineAsyncComponent(()=>__vitePreload(()=>import("./bug-report.html-80d5c6c5.js"),["assets/bug-report.html-80d5c6c5.js","assets/framework-561d691d.js"])),"v-6730cc6c":defineAsyncComponent(()=>__vitePreload(()=>import("./privacy-notice.html-630b012e.js"),["assets/privacy-notice.html-630b012e.js","assets/framework-561d691d.js"])),"v-d670f89a":defineAsyncComponent(()=>__vitePreload(()=>import("./tos.html-ea6923d8.js"),["assets/tos.html-ea6923d8.js","assets/framework-561d691d.js"])),"v-3706649a":defineAsyncComponent(()=>__vitePreload(()=>import("./404.html-64d7fc04.js"),["assets/404.html-64d7fc04.js","assets/framework-561d691d.js"])),"v-74379e72":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-83e39b3d.js"),["assets/index.html-83e39b3d.js","assets/framework-561d691d.js"])),"v-437b37b6":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-69615e4c.js"),["assets/index.html-69615e4c.js","assets/framework-561d691d.js"])),"v-35380e8e":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-c9a36b4f.js"),["assets/index.html-c9a36b4f.js","assets/framework-561d691d.js"])),"v-b573819c":defineAsyncComponent(()=>__vitePreload(()=>import("./index.html-4711adea.js"),["assets/index.html-4711adea.js","assets/framework-561d691d.js"]))};var layoutsSymbol=Symbol(""),pagesData=ref(pagesData$1),pageDataEmpty=readonly({key:"",path:"",title:"",lang:"",frontmatter:{},headers:[]}),pageData=ref(pageDataEmpty),usePageData=()=>pageData,pageFrontmatterSymbol=Symbol(""),usePageFrontmatter=()=>{const b=inject(pageFrontmatterSymbol);if(!b)throw new Error("usePageFrontmatter() is called without provider.");return b},pageHeadSymbol=Symbol(""),usePageHead=()=>{const b=inject(pageHeadSymbol);if(!b)throw new Error("usePageHead() is called without provider.");return b},pageHeadTitleSymbol=Symbol(""),pageLangSymbol=Symbol(""),usePageLang=()=>{const b=inject(pageLangSymbol);if(!b)throw new Error("usePageLang() is called without provider.");return b},pageLayoutSymbol=Symbol(""),usePageLayout=()=>{const b=inject(pageLayoutSymbol);if(!b)throw new Error("usePageLayout() is called without provider.");return b},routeLocaleSymbol=Symbol(""),useRouteLocale=()=>{const b=inject(routeLocaleSymbol);if(!b)throw new Error("useRouteLocale() is called without provider.");return b},siteData=ref(siteData$1),useSiteData=()=>siteData,siteLocaleDataSymbol=Symbol(""),useSiteLocaleData=()=>{const b=inject(siteLocaleDataSymbol);if(!b)throw new Error("useSiteLocaleData() is called without provider.");return b},updateHeadSymbol=Symbol(""),LAYOUT_NAME_DEFAULT="Layout",LAYOUT_NAME_NOT_FOUND="NotFound",resolvers=reactive({resolveLayouts:b=>b.reduce((j,U)=>({...j,...U.layouts}),{}),resolvePageData:async b=>{const j=pagesData.value[b];return await(j==null?void 0:j())??pageDataEmpty},resolvePageFrontmatter:b=>b.frontmatter,resolvePageHead:(b,j,U)=>{const Bn=isString$1(j.description)?j.description:U.description,Fn=[...isArray(j.head)?j.head:[],...U.head,["title",{},b],["meta",{name:"description",content:Bn}]];return dedupeHead(Fn)},resolvePageHeadTitle:(b,j)=>[b.title,j.title].filter(U=>!!U).join(" | "),resolvePageLang:b=>b.lang||"en",resolvePageLayout:(b,j)=>{let U;if(b.path){const Bn=b.frontmatter.layout;isString$1(Bn)?U=Bn:U=LAYOUT_NAME_DEFAULT}else U=LAYOUT_NAME_NOT_FOUND;return j[U]},resolveRouteLocale:(b,j)=>resolveLocalePath(b,j),resolveSiteLocaleData:(b,j)=>({...b,...b.locales[j]})}),ClientOnly=defineComponent({name:"ClientOnly",setup(b,j){const U=ref(!1);return onMounted(()=>{U.value=!0}),()=>{var Bn,Fn;return U.value?(Fn=(Bn=j.slots).default)==null?void 0:Fn.call(Bn):null}}}),Content=defineComponent({name:"Content",props:{pageKey:{type:String,required:!1,default:""}},setup(b){const j=usePageData(),U=computed(()=>pagesComponents[b.pageKey||j.value.key]);return()=>U.value?h$3(U.value):h$3("div","404 Not Found")}}),defineClientConfig=(b={})=>b,withBase=b=>isLinkHttp(b)?b:`/${removeLeadingSlash(b)}`;const hopeInject="",clientConfig0={};var u8=Uint8Array,u16=Uint16Array,u32=Uint32Array,fleb=new u8([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fdeb=new u8([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),clim=new u8([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),freb=function(b,j){for(var U=new u16(31),Bn=0;Bn<31;++Bn)U[Bn]=j+=1<<b[Bn-1];for(var Fn=new u32(U[30]),Bn=1;Bn<30;++Bn)for(var qn=U[Bn];qn<U[Bn+1];++qn)Fn[qn]=qn-U[Bn]<<5|Bn;return[U,Fn]},_a$1=freb(fleb,2),fl=_a$1[0],revfl=_a$1[1];fl[28]=258,revfl[258]=28;var _b=freb(fdeb,0),fd=_b[0],rev=new u16(32768);for(var i$5=0;i$5<32768;++i$5){var x$3=(i$5&43690)>>>1|(i$5&21845)<<1;x$3=(x$3&52428)>>>2|(x$3&13107)<<2,x$3=(x$3&61680)>>>4|(x$3&3855)<<4,rev[i$5]=((x$3&65280)>>>8|(x$3&255)<<8)>>>1}var hMap=function(b,j,U){for(var Bn=b.length,Fn=0,qn=new u16(j);Fn<Bn;++Fn)b[Fn]&&++qn[b[Fn]-1];var Wn=new u16(j);for(Fn=0;Fn<j;++Fn)Wn[Fn]=Wn[Fn-1]+qn[Fn-1]<<1;var Yn;if(U){Yn=new u16(1<<j);var Gn=15-j;for(Fn=0;Fn<Bn;++Fn)if(b[Fn])for(var Qn=Fn<<4|b[Fn],Zn=j-b[Fn],Kn=Wn[b[Fn]-1]++<<Zn,Xn=Kn|(1<<Zn)-1;Kn<=Xn;++Kn)Yn[rev[Kn]>>>Gn]=Qn}else for(Yn=new u16(Bn),Fn=0;Fn<Bn;++Fn)b[Fn]&&(Yn[Fn]=rev[Wn[b[Fn]-1]++]>>>15-b[Fn]);return Yn},flt=new u8(288);for(var i$5=0;i$5<144;++i$5)flt[i$5]=8;for(var i$5=144;i$5<256;++i$5)flt[i$5]=9;for(var i$5=256;i$5<280;++i$5)flt[i$5]=7;for(var i$5=280;i$5<288;++i$5)flt[i$5]=8;var fdt=new u8(32);for(var i$5=0;i$5<32;++i$5)fdt[i$5]=5;var flrm=hMap(flt,9,1),fdrm=hMap(fdt,5,1),max=function(b){for(var j=b[0],U=1;U<b.length;++U)b[U]>j&&(j=b[U]);return j},bits=function(b,j,U){var Bn=j/8|0;return(b[Bn]|b[Bn+1]<<8)>>(j&7)&U},bits16=function(b,j){var U=j/8|0;return(b[U]|b[U+1]<<8|b[U+2]<<16)>>(j&7)},shft=function(b){return(b+7)/8|0},slc=function(b,j,U){(j==null||j<0)&&(j=0),(U==null||U>b.length)&&(U=b.length);var Bn=new(b.BYTES_PER_ELEMENT==2?u16:b.BYTES_PER_ELEMENT==4?u32:u8)(U-j);return Bn.set(b.subarray(j,U)),Bn},ec=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],err=function(b,j,U){var Bn=new Error(j||ec[b]);if(Bn.code=b,Error.captureStackTrace&&Error.captureStackTrace(Bn,err),!U)throw Bn;return Bn},inflt=function(b,j,U){var Bn=b.length;if(!Bn||U&&U.f&&!U.l)return j||new u8(0);var Fn=!j||U,qn=!U||U.i;U||(U={}),j||(j=new u8(Bn*3));var Wn=function(Na){var Ba=j.length;if(Na>Ba){var za=new u8(Math.max(Ba*2,Na));za.set(j),j=za}},Yn=U.f||0,Gn=U.p||0,Qn=U.b||0,Zn=U.l,Kn=U.d,Xn=U.m,Jn=U.n,ta=Bn*8;do{if(!Zn){Yn=bits(b,Gn,1);var ea=bits(b,Gn+1,3);if(Gn+=3,ea)if(ea==1)Zn=flrm,Kn=fdrm,Xn=9,Jn=5;else if(ea==2){var ua=bits(b,Gn,31)+257,ha=bits(b,Gn+10,15)+4,ga=ua+bits(b,Gn+5,31)+1;Gn+=14;for(var $a=new u8(ga),la=new u8(19),sa=0;sa<ha;++sa)la[clim[sa]]=bits(b,Gn+sa*3,7);Gn+=ha*3;for(var ya=max(la),La=(1<<ya)-1,Da=hMap(la,ya,1),sa=0;sa<ga;){var wa=Da[bits(b,Gn,La)];Gn+=wa&15;var na=wa>>>4;if(na<16)$a[sa++]=na;else{var ca=0,oa=0;for(na==16?(oa=3+bits(b,Gn,3),Gn+=2,ca=$a[sa-1]):na==17?(oa=3+bits(b,Gn,7),Gn+=3):na==18&&(oa=11+bits(b,Gn,127),Gn+=7);oa--;)$a[sa++]=ca}}var ra=$a.subarray(0,ua),pa=$a.subarray(ua);Xn=max(ra),Jn=max(pa),Zn=hMap(ra,Xn,1),Kn=hMap(pa,Jn,1)}else err(1);else{var na=shft(Gn)+4,aa=b[na-4]|b[na-3]<<8,ia=na+aa;if(ia>Bn){qn&&err(0);break}Fn&&Wn(Qn+aa),j.set(b.subarray(na,ia),Qn),U.b=Qn+=aa,U.p=Gn=ia*8,U.f=Yn;continue}if(Gn>ta){qn&&err(0);break}}Fn&&Wn(Qn+131072);for(var da=(1<<Xn)-1,fa=(1<<Jn)-1,ba=Gn;;ba=Gn){var ca=Zn[bits16(b,Gn)&da],Ca=ca>>>4;if(Gn+=ca&15,Gn>ta){qn&&err(0);break}if(ca||err(2),Ca<256)j[Qn++]=Ca;else if(Ca==256){ba=Gn,Zn=null;break}else{var Ta=Ca-254;if(Ca>264){var sa=Ca-257,Ea=fleb[sa];Ta=bits(b,Gn,(1<<Ea)-1)+fl[sa],Gn+=Ea}var Pa=Kn[bits16(b,Gn)&fa],Ma=Pa>>>4;Pa||err(3),Gn+=Pa&15;var pa=fd[Ma];if(Ma>3){var Ea=fdeb[Ma];pa+=bits16(b,Gn)&(1<<Ea)-1,Gn+=Ea}if(Gn>ta){qn&&err(0);break}Fn&&Wn(Qn+131072);for(var Ra=Qn+Ta;Qn<Ra;Qn+=4)j[Qn]=j[Qn-pa],j[Qn+1]=j[Qn+1-pa],j[Qn+2]=j[Qn+2-pa],j[Qn+3]=j[Qn+3-pa];Qn=Ra}}U.l=Zn,U.p=ba,U.b=Qn,U.f=Yn,Zn&&(Yn=1,U.m=Xn,U.d=Kn,U.n=Jn)}while(!Yn);return Qn==j.length?j:slc(j,0,Qn)},et$2=new u8(0),zlv=function(b){((b[0]&15)!=8||b[0]>>>4>7||(b[0]<<8|b[1])%31)&&err(6,"invalid zlib data"),b[1]&32&&err(6,"invalid zlib data: preset dictionaries not supported")};function unzlibSync(b,j){return inflt((zlv(b),b.subarray(2,-4)),j)}var te$1=typeof TextEncoder<"u"&&new TextEncoder,td=typeof TextDecoder<"u"&&new TextDecoder,tds=0;try{td.decode(et$2,{stream:!0}),tds=1}catch{}var dutf8=function(b){for(var j="",U=0;;){var Bn=b[U++],Fn=(Bn>127)+(Bn>223)+(Bn>239);if(U+Fn>b.length)return[j,slc(b,U-1)];Fn?Fn==3?(Bn=((Bn&15)<<18|(b[U++]&63)<<12|(b[U++]&63)<<6|b[U++]&63)-65536,j+=String.fromCharCode(55296|Bn>>10,56320|Bn&1023)):Fn&1?j+=String.fromCharCode((Bn&31)<<6|b[U++]&63):j+=String.fromCharCode((Bn&15)<<12|(b[U++]&63)<<6|b[U++]&63):j+=String.fromCharCode(Bn)}};function strToU8(b,j){if(j){for(var U=new u8(b.length),Bn=0;Bn<b.length;++Bn)U[Bn]=b.charCodeAt(Bn);return U}if(te$1)return te$1.encode(b);for(var Fn=b.length,qn=new u8(b.length+(b.length>>1)),Wn=0,Yn=function(Zn){qn[Wn++]=Zn},Bn=0;Bn<Fn;++Bn){if(Wn+5>qn.length){var Gn=new u8(Wn+8+(Fn-Bn<<1));Gn.set(qn),qn=Gn}var Qn=b.charCodeAt(Bn);Qn<128||j?Yn(Qn):Qn<2048?(Yn(192|Qn>>6),Yn(128|Qn&63)):Qn>55295&&Qn<57344?(Qn=65536+(Qn&1023<<10)|b.charCodeAt(++Bn)&1023,Yn(240|Qn>>18),Yn(128|Qn>>12&63),Yn(128|Qn>>6&63),Yn(128|Qn&63)):(Yn(224|Qn>>12),Yn(128|Qn>>6&63),Yn(128|Qn&63))}return slc(qn,0,Wn)}function strFromU8(b,j){if(j){for(var U="",Bn=0;Bn<b.length;Bn+=16384)U+=String.fromCharCode.apply(null,b.subarray(Bn,Bn+16384));return U}else{if(td)return td.decode(b);var Fn=dutf8(b),qn=Fn[0],Wn=Fn[1];return Wn.length&&err(8),qn}}const R$1=({name:b="",color:j="currentColor"},{slots:U})=>{var Bn;return h$3("svg",{xmlns:"http://www.w3.org/2000/svg",class:["icon",`${b}-icon`],viewBox:"0 0 1024 1024",fill:j,"aria-label":`${b} icon`},(Bn=U.default)==null?void 0:Bn.call(U))};R$1.displayName="IconBase";const kt$1=(b,{slots:j})=>{var U;return((U=j.default)==null?void 0:U.call(j))||null},vt$1=()=>h$3(R$1,{name:"github"},()=>h$3("path",{d:"M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"}));vt$1.displayName="GitHubIcon";const pt$1=()=>h$3(R$1,{name:"gitlab"},()=>h$3("path",{d:"M229.333 78.688C223.52 62 199.895 62 193.895 78.688L87.958 406.438h247.5c-.188 0-106.125-327.75-106.125-327.75zM33.77 571.438c-4.875 15 .563 31.687 13.313 41.25l464.812 345L87.77 406.438zm301.5-165 176.813 551.25 176.812-551.25zm655.125 165-54-165-424.312 551.25 464.812-345c12.938-9.563 18.188-26.25 13.5-41.25zM830.27 78.688c-5.812-16.688-29.437-16.688-35.437 0l-106.125 327.75h247.5z"}));pt$1.displayName="GitlabIcon";const $t$1=()=>h$3(R$1,{name:"gitee"},()=>h$3("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm242.97-533.34H482.39a23.7 23.7 0 0 0-23.7 23.7l-.03 59.28c0 13.08 10.59 23.7 23.7 23.7h165.96a23.7 23.7 0 0 1 23.7 23.7v11.85a71.1 71.1 0 0 1-71.1 71.1H375.71a23.7 23.7 0 0 1-23.7-23.7V423.11a71.1 71.1 0 0 1 71.1-71.1h331.8a23.7 23.7 0 0 0 23.7-23.7l.06-59.25a23.73 23.73 0 0 0-23.7-23.73H423.11a177.78 177.78 0 0 0-177.78 177.75v331.83c0 13.08 10.62 23.7 23.7 23.7h349.62a159.99 159.99 0 0 0 159.99-159.99V482.33a23.7 23.7 0 0 0-23.7-23.7z"}));$t$1.displayName="GiteeIcon";const gt$1=()=>h$3(R$1,{name:"bitbucket"},()=>h$3("path",{d:"M575.256 490.862c6.29 47.981-52.005 85.723-92.563 61.147-45.714-20.004-45.714-92.562-1.133-113.152 38.29-23.442 93.696 7.424 93.696 52.005zm63.451-11.996c-10.276-81.152-102.29-134.839-177.152-101.156-47.433 21.138-79.433 71.424-77.129 124.562 2.853 69.705 69.157 126.866 138.862 120.576S647.3 548.571 638.708 478.83zm136.558-309.723c-25.161-33.134-67.986-38.839-105.728-45.13-106.862-17.151-216.576-17.7-323.438 1.134-35.438 5.706-75.447 11.996-97.719 43.996 36.572 34.304 88.576 39.424 135.424 45.129 84.553 10.862 171.447 11.447 256 .585 47.433-5.705 99.987-10.276 135.424-45.714zm32.585 591.433c-16.018 55.99-6.839 131.438-66.304 163.986-102.29 56.576-226.304 62.867-338.87 42.862-59.43-10.862-129.135-29.696-161.72-85.723-14.3-54.858-23.442-110.848-32.585-166.84l3.438-9.142 10.276-5.157c170.277 112.567 408.576 112.567 579.438 0 26.844 8.01 6.84 40.558 6.29 60.014zm103.424-549.157c-19.42 125.148-41.728 249.71-63.415 374.272-6.29 36.572-41.728 57.162-71.424 72.558-106.862 53.724-231.424 62.866-348.562 50.286-79.433-8.558-160.585-29.696-225.134-79.433-30.28-23.443-30.28-63.415-35.986-97.134-20.005-117.138-42.862-234.277-57.161-352.585 6.839-51.42 64.585-73.728 107.447-89.71 57.16-21.138 118.272-30.866 178.87-36.571 129.134-12.58 261.157-8.01 386.304 28.562 44.581 13.13 92.563 31.415 122.844 69.705 13.714 17.7 9.143 40.01 6.29 60.014z"}));gt$1.displayName="BitbucketIcon";const yt$1=()=>h$3(R$1,{name:"source"},()=>h$3("path",{d:"M601.92 475.2c0 76.428-8.91 83.754-28.512 99.594-14.652 11.88-43.956 14.058-78.012 16.434-18.81 1.386-40.392 2.97-62.172 6.534-18.612 2.97-36.432 9.306-53.064 17.424V299.772c37.818-21.978 63.36-62.766 63.36-109.692 0-69.894-56.826-126.72-126.72-126.72S190.08 120.186 190.08 190.08c0 46.926 25.542 87.714 63.36 109.692v414.216c-37.818 21.978-63.36 62.766-63.36 109.692 0 69.894 56.826 126.72 126.72 126.72s126.72-56.826 126.72-126.72c0-31.086-11.286-59.598-29.7-81.576 13.266-9.504 27.522-17.226 39.996-19.206 16.038-2.574 32.868-3.762 50.688-5.148 48.312-3.366 103.158-7.326 148.896-44.55 61.182-49.698 74.25-103.158 75.24-187.902V475.2h-126.72zM316.8 126.72c34.848 0 63.36 28.512 63.36 63.36s-28.512 63.36-63.36 63.36-63.36-28.512-63.36-63.36 28.512-63.36 63.36-63.36zm0 760.32c-34.848 0-63.36-28.512-63.36-63.36s28.512-63.36 63.36-63.36 63.36 28.512 63.36 63.36-28.512 63.36-63.36 63.36zM823.68 158.4h-95.04V63.36h-126.72v95.04h-95.04v126.72h95.04v95.04h126.72v-95.04h95.04z"}));yt$1.displayName="SourceIcon";const Ht$1=(b,j)=>{const U=j?j._instance:getCurrentInstance();return isPlainObject(U==null?void 0:U.appContext.components)&&(b in U.appContext.components||camelize(b)in U.appContext.components||capitalize(camelize(b))in U.appContext.components)},Yt$1=b=>{const j=useRouteLocale();return computed(()=>b[j.value])},Lt$1=b=>/\b(?:Android|iPhone)/i.test(b),Zt$1=(b,j)=>{let U=1;for(let Bn=0;Bn<b.length;Bn++)U+=b.charCodeAt(Bn),U+=U<<10,U^=U>>6;return U+=U<<3,U^=U>>11,U%j};var K$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},et$1={},Bt$1={get exports(){return et$1},set exports(b){et$1=b}};(function(b,j){(function(U,Bn){b.exports=Bn()})(K$1,function(){var U=1e3,Bn=6e4,Fn=36e5,qn="millisecond",Wn="second",Yn="minute",Gn="hour",Qn="day",Zn="week",Kn="month",Xn="quarter",Jn="year",ta="date",ea="Invalid Date",na=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,aa=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,ia={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ca){var oa=["th","st","nd","rd"],ra=ca%100;return"["+ca+(oa[(ra-20)%10]||oa[ra]||oa[0])+"]"}},ua=function(ca,oa,ra){var pa=String(ca);return!pa||pa.length>=oa?ca:""+Array(oa+1-pa.length).join(ra)+ca},ha={s:ua,z:function(ca){var oa=-ca.utcOffset(),ra=Math.abs(oa),pa=Math.floor(ra/60),da=ra%60;return(oa<=0?"+":"-")+ua(pa,2,"0")+":"+ua(da,2,"0")},m:function ca(oa,ra){if(oa.date()<ra.date())return-ca(ra,oa);var pa=12*(ra.year()-oa.year())+(ra.month()-oa.month()),da=oa.clone().add(pa,Kn),fa=ra-da<0,ba=oa.clone().add(pa+(fa?-1:1),Kn);return+(-(pa+(ra-da)/(fa?da-ba:ba-da))||0)},a:function(ca){return ca<0?Math.ceil(ca)||0:Math.floor(ca)},p:function(ca){return{M:Kn,y:Jn,w:Zn,d:Qn,D:ta,h:Gn,m:Yn,s:Wn,ms:qn,Q:Xn}[ca]||String(ca||"").toLowerCase().replace(/s$/,"")},u:function(ca){return ca===void 0}},ga="en",$a={};$a[ga]=ia;var la=function(ca){return ca instanceof Da},sa=function ca(oa,ra,pa){var da;if(!oa)return ga;if(typeof oa=="string"){var fa=oa.toLowerCase();$a[fa]&&(da=fa),ra&&($a[fa]=ra,da=fa);var ba=oa.split("-");if(!da&&ba.length>1)return ca(ba[0])}else{var Ca=oa.name;$a[Ca]=oa,da=Ca}return!pa&&da&&(ga=da),da||!pa&&ga},ya=function(ca,oa){if(la(ca))return ca.clone();var ra=typeof oa=="object"?oa:{};return ra.date=ca,ra.args=arguments,new Da(ra)},La=ha;La.l=sa,La.i=la,La.w=function(ca,oa){return ya(ca,{locale:oa.$L,utc:oa.$u,x:oa.$x,$offset:oa.$offset})};var Da=function(){function ca(ra){this.$L=sa(ra.locale,null,!0),this.parse(ra)}var oa=ca.prototype;return oa.parse=function(ra){this.$d=function(pa){var da=pa.date,fa=pa.utc;if(da===null)return new Date(NaN);if(La.u(da))return new Date;if(da instanceof Date)return new Date(da);if(typeof da=="string"&&!/Z$/i.test(da)){var ba=da.match(na);if(ba){var Ca=ba[2]-1||0,Ta=(ba[7]||"0").substring(0,3);return fa?new Date(Date.UTC(ba[1],Ca,ba[3]||1,ba[4]||0,ba[5]||0,ba[6]||0,Ta)):new Date(ba[1],Ca,ba[3]||1,ba[4]||0,ba[5]||0,ba[6]||0,Ta)}}return new Date(da)}(ra),this.$x=ra.x||{},this.init()},oa.init=function(){var ra=this.$d;this.$y=ra.getFullYear(),this.$M=ra.getMonth(),this.$D=ra.getDate(),this.$W=ra.getDay(),this.$H=ra.getHours(),this.$m=ra.getMinutes(),this.$s=ra.getSeconds(),this.$ms=ra.getMilliseconds()},oa.$utils=function(){return La},oa.isValid=function(){return this.$d.toString()!==ea},oa.isSame=function(ra,pa){var da=ya(ra);return this.startOf(pa)<=da&&da<=this.endOf(pa)},oa.isAfter=function(ra,pa){return ya(ra)<this.startOf(pa)},oa.isBefore=function(ra,pa){return this.endOf(pa)<ya(ra)},oa.$g=function(ra,pa,da){return La.u(ra)?this[pa]:this.set(da,ra)},oa.unix=function(){return Math.floor(this.valueOf()/1e3)},oa.valueOf=function(){return this.$d.getTime()},oa.startOf=function(ra,pa){var da=this,fa=!!La.u(pa)||pa,ba=La.p(ra),Ca=function(za,Oa){var va=La.w(da.$u?Date.UTC(da.$y,Oa,za):new Date(da.$y,Oa,za),da);return fa?va:va.endOf(Qn)},Ta=function(za,Oa){return La.w(da.toDate()[za].apply(da.toDate("s"),(fa?[0,0,0,0]:[23,59,59,999]).slice(Oa)),da)},Ea=this.$W,Pa=this.$M,Ma=this.$D,Ra="set"+(this.$u?"UTC":"");switch(ba){case Jn:return fa?Ca(1,0):Ca(31,11);case Kn:return fa?Ca(1,Pa):Ca(0,Pa+1);case Zn:var Na=this.$locale().weekStart||0,Ba=(Ea<Na?Ea+7:Ea)-Na;return Ca(fa?Ma-Ba:Ma+(6-Ba),Pa);case Qn:case ta:return Ta(Ra+"Hours",0);case Gn:return Ta(Ra+"Minutes",1);case Yn:return Ta(Ra+"Seconds",2);case Wn:return Ta(Ra+"Milliseconds",3);default:return this.clone()}},oa.endOf=function(ra){return this.startOf(ra,!1)},oa.$set=function(ra,pa){var da,fa=La.p(ra),ba="set"+(this.$u?"UTC":""),Ca=(da={},da[Qn]=ba+"Date",da[ta]=ba+"Date",da[Kn]=ba+"Month",da[Jn]=ba+"FullYear",da[Gn]=ba+"Hours",da[Yn]=ba+"Minutes",da[Wn]=ba+"Seconds",da[qn]=ba+"Milliseconds",da)[fa],Ta=fa===Qn?this.$D+(pa-this.$W):pa;if(fa===Kn||fa===Jn){var Ea=this.clone().set(ta,1);Ea.$d[Ca](Ta),Ea.init(),this.$d=Ea.set(ta,Math.min(this.$D,Ea.daysInMonth())).$d}else Ca&&this.$d[Ca](Ta);return this.init(),this},oa.set=function(ra,pa){return this.clone().$set(ra,pa)},oa.get=function(ra){return this[La.p(ra)]()},oa.add=function(ra,pa){var da,fa=this;ra=Number(ra);var ba=La.p(pa),Ca=function(Pa){var Ma=ya(fa);return La.w(Ma.date(Ma.date()+Math.round(Pa*ra)),fa)};if(ba===Kn)return this.set(Kn,this.$M+ra);if(ba===Jn)return this.set(Jn,this.$y+ra);if(ba===Qn)return Ca(1);if(ba===Zn)return Ca(7);var Ta=(da={},da[Yn]=Bn,da[Gn]=Fn,da[Wn]=U,da)[ba]||1,Ea=this.$d.getTime()+ra*Ta;return La.w(Ea,this)},oa.subtract=function(ra,pa){return this.add(-1*ra,pa)},oa.format=function(ra){var pa=this,da=this.$locale();if(!this.isValid())return da.invalidDate||ea;var fa=ra||"YYYY-MM-DDTHH:mm:ssZ",ba=La.z(this),Ca=this.$H,Ta=this.$m,Ea=this.$M,Pa=da.weekdays,Ma=da.months,Ra=function(Oa,va,ma,Sa){return Oa&&(Oa[va]||Oa(pa,fa))||ma[va].slice(0,Sa)},Na=function(Oa){return La.s(Ca%12||12,Oa,"0")},Ba=da.meridiem||function(Oa,va,ma){var Sa=Oa<12?"AM":"PM";return ma?Sa.toLowerCase():Sa},za={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Ea+1,MM:La.s(Ea+1,2,"0"),MMM:Ra(da.monthsShort,Ea,Ma,3),MMMM:Ra(Ma,Ea),D:this.$D,DD:La.s(this.$D,2,"0"),d:String(this.$W),dd:Ra(da.weekdaysMin,this.$W,Pa,2),ddd:Ra(da.weekdaysShort,this.$W,Pa,3),dddd:Pa[this.$W],H:String(Ca),HH:La.s(Ca,2,"0"),h:Na(1),hh:Na(2),a:Ba(Ca,Ta,!0),A:Ba(Ca,Ta,!1),m:String(Ta),mm:La.s(Ta,2,"0"),s:String(this.$s),ss:La.s(this.$s,2,"0"),SSS:La.s(this.$ms,3,"0"),Z:ba};return fa.replace(aa,function(Oa,va){return va||za[Oa]||ba.replace(":","")})},oa.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},oa.diff=function(ra,pa,da){var fa,ba=La.p(pa),Ca=ya(ra),Ta=(Ca.utcOffset()-this.utcOffset())*Bn,Ea=this-Ca,Pa=La.m(this,Ca);return Pa=(fa={},fa[Jn]=Pa/12,fa[Kn]=Pa,fa[Xn]=Pa/3,fa[Zn]=(Ea-Ta)/6048e5,fa[Qn]=(Ea-Ta)/864e5,fa[Gn]=Ea/Fn,fa[Yn]=Ea/Bn,fa[Wn]=Ea/U,fa)[ba]||Ea,da?Pa:La.a(Pa)},oa.daysInMonth=function(){return this.endOf(Kn).$D},oa.$locale=function(){return $a[this.$L]},oa.locale=function(ra,pa){if(!ra)return this.$L;var da=this.clone(),fa=sa(ra,pa,!0);return fa&&(da.$L=fa),da},oa.clone=function(){return La.w(this.$d,this)},oa.toDate=function(){return new Date(this.valueOf())},oa.toJSON=function(){return this.isValid()?this.toISOString():null},oa.toISOString=function(){return this.$d.toISOString()},oa.toString=function(){return this.$d.toUTCString()},ca}(),wa=Da.prototype;return ya.prototype=wa,[["$ms",qn],["$s",Wn],["$m",Yn],["$H",Gn],["$W",Qn],["$M",Kn],["$y",Jn],["$D",ta]].forEach(function(ca){wa[ca[1]]=function(oa){return this.$g(oa,ca[0],ca[1])}}),ya.extend=function(ca,oa){return ca.$i||(ca(oa,Da,ya),ca.$i=!0),ya},ya.locale=sa,ya.isDayjs=la,ya.unix=function(ca){return ya(1e3*ca)},ya.en=$a[ga],ya.Ls=$a,ya.p={},ya})})(Bt$1);var Z$1=et$1,nt$1={},Ft$1={get exports(){return nt$1},set exports(b){nt$1=b}};(function(b,j){(function(U,Bn){b.exports=Bn()})(K$1,function(){return function(U,Bn,Fn){var qn=Bn.prototype,Wn=function(Xn){var Jn,ta=Xn.date,ea=Xn.utc,na={};if(!((Jn=ta)instanceof Date||Jn instanceof Array||qn.$utils().u(Jn)||Jn.constructor.name!=="Object")){if(!Object.keys(ta).length)return new Date;var aa=ea?Fn.utc():Fn();Object.keys(ta).forEach(function(ya){var La,Da;na[La=ya,Da=qn.$utils().p(La),Da==="date"?"day":Da]=ta[ya]});var ia=na.day||(na.year||na.month>=0?1:aa.date()),ua=na.year||aa.year(),ha=na.month>=0?na.month:na.year||na.day?0:aa.month(),ga=na.hour||0,$a=na.minute||0,la=na.second||0,sa=na.millisecond||0;return ea?new Date(Date.UTC(ua,ha,ia,ga,$a,la,sa)):new Date(ua,ha,ia,ga,$a,la,sa)}return ta},Yn=qn.parse;qn.parse=function(Xn){Xn.date=Wn.bind(this)(Xn),Yn.bind(this)(Xn)};var Gn=qn.set,Qn=qn.add,Zn=qn.subtract,Kn=function(Xn,Jn,ta,ea){ea===void 0&&(ea=1);var na=Object.keys(Jn),aa=this;return na.forEach(function(ia){aa=Xn.bind(aa)(Jn[ia]*ea,ia)}),aa};qn.set=function(Xn,Jn){return Jn=Jn===void 0?Xn:Jn,Xn.constructor.name==="Object"?Kn.bind(this)(function(ta,ea){return Gn.bind(this)(ea,ta)},Jn,Xn):Gn.bind(this)(Xn,Jn)},qn.add=function(Xn,Jn){return Xn.constructor.name==="Object"?Kn.bind(this)(Qn,Xn,Jn):Qn.bind(this)(Xn,Jn)},qn.subtract=function(Xn,Jn){return Xn.constructor.name==="Object"?Kn.bind(this)(Qn,Xn,Jn,-1):Zn.bind(this)(Xn,Jn)}}})})(Ft$1);var Jt$1=nt$1,it$1={},qt$1={get exports(){return it$1},set exports(b){it$1=b}};(function(b,j){(function(U,Bn){b.exports=Bn()})(K$1,function(){var U={year:0,month:1,day:2,hour:3,minute:4,second:5},Bn={};return function(Fn,qn,Wn){var Yn,Gn=function(Xn,Jn,ta){ta===void 0&&(ta={});var ea=new Date(Xn),na=function(aa,ia){ia===void 0&&(ia={});var ua=ia.timeZoneName||"short",ha=aa+"|"+ua,ga=Bn[ha];return ga||(ga=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:aa,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:ua}),Bn[ha]=ga),ga}(Jn,ta);return na.formatToParts(ea)},Qn=function(Xn,Jn){for(var ta=Gn(Xn,Jn),ea=[],na=0;na<ta.length;na+=1){var aa=ta[na],ia=aa.type,ua=aa.value,ha=U[ia];ha>=0&&(ea[ha]=parseInt(ua,10))}var ga=ea[3],$a=ga===24?0:ga,la=ea[0]+"-"+ea[1]+"-"+ea[2]+" "+$a+":"+ea[4]+":"+ea[5]+":000",sa=+Xn;return(Wn.utc(la).valueOf()-(sa-=sa%1e3))/6e4},Zn=qn.prototype;Zn.tz=function(Xn,Jn){Xn===void 0&&(Xn=Yn);var ta=this.utcOffset(),ea=this.toDate(),na=ea.toLocaleString("en-US",{timeZone:Xn}),aa=Math.round((ea-new Date(na))/1e3/60),ia=Wn(na).$set("millisecond",this.$ms).utcOffset(15*-Math.round(ea.getTimezoneOffset()/15)-aa,!0);if(Jn){var ua=ia.utcOffset();ia=ia.add(ta-ua,"minute")}return ia.$x.$timezone=Xn,ia},Zn.offsetName=function(Xn){var Jn=this.$x.$timezone||Wn.tz.guess(),ta=Gn(this.valueOf(),Jn,{timeZoneName:Xn}).find(function(ea){return ea.type.toLowerCase()==="timezonename"});return ta&&ta.value};var Kn=Zn.startOf;Zn.startOf=function(Xn,Jn){if(!this.$x||!this.$x.$timezone)return Kn.call(this,Xn,Jn);var ta=Wn(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return Kn.call(ta,Xn,Jn).tz(this.$x.$timezone,!0)},Wn.tz=function(Xn,Jn,ta){var ea=ta&&Jn,na=ta||Jn||Yn,aa=Qn(+Wn(),na);if(typeof Xn!="string")return Wn(Xn).tz(na);var ia=function($a,la,sa){var ya=$a-60*la*1e3,La=Qn(ya,sa);if(la===La)return[ya,la];var Da=Qn(ya-=60*(La-la)*1e3,sa);return La===Da?[ya,La]:[$a-60*Math.min(La,Da)*1e3,Math.max(La,Da)]}(Wn.utc(Xn,ea).valueOf(),aa,na),ua=ia[0],ha=ia[1],ga=Wn(ua).utcOffset(ha);return ga.$x.$timezone=na,ga},Wn.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},Wn.tz.setDefault=function(Xn){Yn=Xn}}})})(qt$1);var Qt$1=it$1,rt$1={},Kt$1={get exports(){return rt$1},set exports(b){rt$1=b}};(function(b,j){(function(U,Bn){b.exports=Bn()})(K$1,function(){var U="minute",Bn=/[+-]\d\d(?::?\d\d)?/g,Fn=/([+-]|\d\d)/g;return function(qn,Wn,Yn){var Gn=Wn.prototype;Yn.utc=function(ea){var na={date:ea,utc:!0,args:arguments};return new Wn(na)},Gn.utc=function(ea){var na=Yn(this.toDate(),{locale:this.$L,utc:!0});return ea?na.add(this.utcOffset(),U):na},Gn.local=function(){return Yn(this.toDate(),{locale:this.$L,utc:!1})};var Qn=Gn.parse;Gn.parse=function(ea){ea.utc&&(this.$u=!0),this.$utils().u(ea.$offset)||(this.$offset=ea.$offset),Qn.call(this,ea)};var Zn=Gn.init;Gn.init=function(){if(this.$u){var ea=this.$d;this.$y=ea.getUTCFullYear(),this.$M=ea.getUTCMonth(),this.$D=ea.getUTCDate(),this.$W=ea.getUTCDay(),this.$H=ea.getUTCHours(),this.$m=ea.getUTCMinutes(),this.$s=ea.getUTCSeconds(),this.$ms=ea.getUTCMilliseconds()}else Zn.call(this)};var Kn=Gn.utcOffset;Gn.utcOffset=function(ea,na){var aa=this.$utils().u;if(aa(ea))return this.$u?0:aa(this.$offset)?Kn.call(this):this.$offset;if(typeof ea=="string"&&(ea=function(ga){ga===void 0&&(ga="");var $a=ga.match(Bn);if(!$a)return null;var la=(""+$a[0]).match(Fn)||["-",0,0],sa=la[0],ya=60*+la[1]+ +la[2];return ya===0?0:sa==="+"?ya:-ya}(ea),ea===null))return this;var ia=Math.abs(ea)<=16?60*ea:ea,ua=this;if(na)return ua.$offset=ia,ua.$u=ea===0,ua;if(ea!==0){var ha=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(ua=this.local().add(ia+ha,U)).$offset=ia,ua.$x.$localOffset=ha}else ua=this.utc();return ua};var Xn=Gn.format;Gn.format=function(ea){var na=ea||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Xn.call(this,na)},Gn.valueOf=function(){var ea=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*ea},Gn.isUTC=function(){return!!this.$u},Gn.toISOString=function(){return this.toDate().toISOString()},Gn.toString=function(){return this.toDate().toUTCString()};var Jn=Gn.toDate;Gn.toDate=function(ea){return ea==="s"&&this.$offset?Yn(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():Jn.call(this)};var ta=Gn.diff;Gn.diff=function(ea,na,aa){if(ea&&this.$u===ea.$u)return ta.call(this,ea,na,aa);var ia=this.local(),ua=Yn(ea).local();return ta.call(ia,ua,na,aa)}}})})(Kt$1);var Xt$1=rt$1;Z$1.extend(Jt$1),Z$1.extend(Xt$1),Z$1.extend(Qt$1);const st$1=(b,j)=>{if(b){if(Z$1(b instanceof Date?b:b.trim()).isValid()){const Bn=j?Z$1(b).tz(j):Z$1(b),Fn=Bn.year(),qn=Bn.month()+1,Wn=Bn.date(),Yn=Bn.hour(),Gn=Bn.minute(),Qn=Bn.second(),Zn=Bn.millisecond(),Kn=Yn===0&&Gn===0&&Qn===0&&Zn===0;return{value:Bn.toDate(),info:{year:Fn,month:qn,day:Wn,...Kn?{}:{hour:Yn,minute:Gn,second:Qn}},type:Kn?"date":"full"}}const U=/(?:(\d{2,4})[/-](\d{1,2})[/-](\d{1,2}))?\s*(?:(\d{1,2}):(\d{1,2})(?::(\d{1,2}))?)?/u.exec(b.trim());if(U){const[,Bn,Fn,qn,Wn,Yn,Gn]=U,Qn=na=>typeof na>"u"?void 0:Number(na),Zn=na=>na&&na<100?na+2e3:na,Kn=na=>Wn&&Yn&&!Gn?0:na,Xn={year:Zn(Qn(Bn)),month:Qn(Fn),day:Qn(qn),hour:Qn(Wn),minute:Qn(Yn),second:Kn(Qn(Gn))},Jn=Bn===void 0&&Fn===void 0&&qn===void 0,ta=Wn===void 0&&Yn===void 0&&Gn===void 0,ea=Z$1({...Xn,month:Xn.month-1}).toDate();return{value:Jn?void 0:ea,info:ta?{year:Xn.year,month:Xn.month,day:Xn.day}:Jn?{hour:Xn.hour,minute:Xn.minute,second:Xn.second}:Xn,type:Jn?"time":ta?"date":"full"}}}return null},bt$1=(b,j)=>isString$1(b)&&b.startsWith(j),ee$1=(b,j)=>isString$1(b)&&b.endsWith(j),St$1=Object.entries,Dt$1=Object.keys,ot$1=(b,...j)=>{if(j.length===0)return b;const U=j.shift()||null;return U&&St$1(U).forEach(([Bn,Fn])=>{Bn==="__proto__"||Bn==="constructor"||(isPlainObject(b[Bn])&&isPlainObject(Fn)?ot$1(b[Bn],Fn):isArray(Fn)?b[Bn]=[...Fn]:isPlainObject(Fn)?b[Bn]={...Fn}:b[Bn]=U[Bn])}),ot$1(b,...j)},re$1=(b,j=!1)=>b?isArray(b)?b.map(U=>isString$1(U)?{name:U}:U):isString$1(b)?[{name:b}]:isPlainObject(b)&&b.name?[b]:(console.error(`Expect "author" to be \`AuthorInfo[] | AuthorInfo | string[] | string ${j?"":"| false"} | undefined\`, but got`,b),[]):[],at$1=(b,j)=>{if(b){if(isArray(b))return b;if(isString$1(b))return[b];console.error(`Expect ${j||"value"} to be \`string[] | string | undefined\`, but got`,b)}return[]},se$1=b=>at$1(b,"category"),oe$1=b=>at$1(b,"tag"),ue$1=b=>bt$1(b,"/");let ce$1=class{constructor(){this.messageElements={};const j="message-container",U=document.getElementById(j);U?this.containerElement=U:(this.containerElement=document.createElement("div"),this.containerElement.id=j,document.body.appendChild(this.containerElement))}pop(j,U=2e3){const Bn=document.createElement("div"),Fn=Date.now();return Bn.className="message move-in",Bn.innerHTML=j,this.containerElement.appendChild(Bn),this.messageElements[Fn]=Bn,U>0&&setTimeout(()=>{this.close(Fn)},U),Fn}close(j){if(j){const U=this.messageElements[j];U.className=U.className.replace("move-in",""),U.className+="move-out",U.addEventListener("animationend",()=>{U.remove(),delete this.messageElements[j]})}else Dt$1(this.messageElements).forEach(U=>this.close(Number(U)))}destroy(){document.body.removeChild(this.containerElement)}};const Mt$1=/#.*$/u,wt$1=b=>{const j=Mt$1.exec(b);return j?j[0]:""},ut$1=b=>decodeURI(b).replace(Mt$1,"").replace(/(index)?\.(md|html)$/,""),he$1=(b,j)=>{if(j===void 0)return!1;const U=ut$1(b.path),Bn=ut$1(j),Fn=wt$1(j);return Fn?Fn===b.hash&&(!Bn||U===Bn):U===Bn},le$1=b=>{const j=atob(b);return strFromU8(unzlibSync(strToU8(j,!0)))},de$1=b=>isLinkHttp(b)?b:`https://github.com/${b}`,me$1=b=>!isLinkHttp(b)||/github\.com/.test(b)?"GitHub":/bitbucket\.org/.test(b)?"Bitbucket":/gitlab\.com/.test(b)?"GitLab":/gitee\.com/.test(b)?"Gitee":null,Ot$1=(b,...j)=>{const U=b.resolve(...j),Bn=U.matched[U.matched.length-1];if(!(Bn!=null&&Bn.redirect))return U;const{redirect:Fn}=Bn,qn=isFunction$1(Fn)?Fn(U):Fn,Wn=isString$1(qn)?{path:qn}:qn;return Ot$1(b,{hash:U.hash,query:U.query,params:U.params,...Wn})};var _a;const isClient=typeof window<"u",isFunction=b=>typeof b=="function",isString=b=>typeof b=="string",noop=()=>{};isClient&&((_a=window==null?void 0:window.navigator)!=null&&_a.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(b){return typeof b=="function"?b():unref(b)}function createFilterWrapper(b,j){function U(...Bn){return new Promise((Fn,qn)=>{Promise.resolve(b(()=>j.apply(this,Bn),{fn:j,thisArg:this,args:Bn})).then(Fn).catch(qn)})}return U}const bypassFilter=b=>b();function debounceFilter(b,j={}){let U,Bn,Fn=noop;const qn=Yn=>{clearTimeout(Yn),Fn(),Fn=noop};return Yn=>{const Gn=resolveUnref(b),Qn=resolveUnref(j.maxWait);return U&&qn(U),Gn<=0||Qn!==void 0&&Qn<=0?(Bn&&(qn(Bn),Bn=null),Promise.resolve(Yn())):new Promise((Zn,Kn)=>{Fn=j.rejectOnCancel?Kn:Zn,Qn&&!Bn&&(Bn=setTimeout(()=>{U&&qn(U),Bn=null,Zn(Yn())},Qn)),U=setTimeout(()=>{Bn&&qn(Bn),Bn=null,Zn(Yn())},Gn)})}}function throttleFilter(b,j=!0,U=!0,Bn=!1){let Fn=0,qn,Wn=!0,Yn=noop,Gn;const Qn=()=>{qn&&(clearTimeout(qn),qn=void 0,Yn(),Yn=noop)};return Kn=>{const Xn=resolveUnref(b),Jn=Date.now()-Fn,ta=()=>Gn=Kn();if(Qn(),Xn<=0)return Fn=Date.now(),ta();if(Jn>Xn&&(U||!Wn))Fn=Date.now(),ta();else if(j)return new Promise((ea,na)=>{Yn=Bn?na:ea,qn=setTimeout(()=>{Fn=Date.now(),Wn=!0,ea(ta()),Qn()},Xn-Jn)});return!U&&!qn&&(qn=setTimeout(()=>Wn=!0,Xn)),Wn=!1,Gn}}function pausableFilter(b=bypassFilter){const j=ref(!0);function U(){j.value=!1}function Bn(){j.value=!0}const Fn=(...qn)=>{j.value&&b(...qn)};return{isActive:readonly(j),pause:U,resume:Bn,eventFilter:Fn}}function identity(b){return b}function tryOnScopeDispose(b){return getCurrentScope()?(onScopeDispose(b),!0):!1}function useDebounceFn(b,j=200,U={}){return createFilterWrapper(debounceFilter(j,U),b)}function useThrottleFn(b,j=200,U=!1,Bn=!0,Fn=!1){return createFilterWrapper(throttleFilter(j,U,Bn,Fn),b)}function resolveRef(b){return typeof b=="function"?computed(b):ref(b)}function tryOnMounted(b,j=!0){getCurrentInstance()?onMounted(b):j?b():nextTick(b)}function useIntervalFn(b,j=1e3,U={}){const{immediate:Bn=!0,immediateCallback:Fn=!1}=U;let qn=null;const Wn=ref(!1);function Yn(){qn&&(clearInterval(qn),qn=null)}function Gn(){Wn.value=!1,Yn()}function Qn(){const Zn=resolveUnref(j);Zn<=0||(Wn.value=!0,Fn&&b(),Yn(),qn=setInterval(b,Zn))}if(Bn&&isClient&&Qn(),isRef(j)||isFunction(j)){const Zn=watch(j,()=>{Wn.value&&isClient&&Qn()});tryOnScopeDispose(Zn)}return tryOnScopeDispose(Gn),{isActive:Wn,pause:Gn,resume:Qn}}var __getOwnPropSymbols$6$1=Object.getOwnPropertySymbols,__hasOwnProp$6$1=Object.prototype.hasOwnProperty,__propIsEnum$6$1=Object.prototype.propertyIsEnumerable,__objRest$5=(b,j)=>{var U={};for(var Bn in b)__hasOwnProp$6$1.call(b,Bn)&&j.indexOf(Bn)<0&&(U[Bn]=b[Bn]);if(b!=null&&__getOwnPropSymbols$6$1)for(var Bn of __getOwnPropSymbols$6$1(b))j.indexOf(Bn)<0&&__propIsEnum$6$1.call(b,Bn)&&(U[Bn]=b[Bn]);return U};function watchWithFilter(b,j,U={}){const Bn=U,{eventFilter:Fn=bypassFilter}=Bn,qn=__objRest$5(Bn,["eventFilter"]);return watch(b,createFilterWrapper(Fn,j),qn)}var __defProp$2=Object.defineProperty,__defProps$2=Object.defineProperties,__getOwnPropDescs$2=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$2=Object.getOwnPropertySymbols,__hasOwnProp$2=Object.prototype.hasOwnProperty,__propIsEnum$2=Object.prototype.propertyIsEnumerable,__defNormalProp$2=(b,j,U)=>j in b?__defProp$2(b,j,{enumerable:!0,configurable:!0,writable:!0,value:U}):b[j]=U,__spreadValues$2=(b,j)=>{for(var U in j||(j={}))__hasOwnProp$2.call(j,U)&&__defNormalProp$2(b,U,j[U]);if(__getOwnPropSymbols$2)for(var U of __getOwnPropSymbols$2(j))__propIsEnum$2.call(j,U)&&__defNormalProp$2(b,U,j[U]);return b},__spreadProps$2=(b,j)=>__defProps$2(b,__getOwnPropDescs$2(j)),__objRest$1=(b,j)=>{var U={};for(var Bn in b)__hasOwnProp$2.call(b,Bn)&&j.indexOf(Bn)<0&&(U[Bn]=b[Bn]);if(b!=null&&__getOwnPropSymbols$2)for(var Bn of __getOwnPropSymbols$2(b))j.indexOf(Bn)<0&&__propIsEnum$2.call(b,Bn)&&(U[Bn]=b[Bn]);return U};function watchPausable(b,j,U={}){const Bn=U,{eventFilter:Fn}=Bn,qn=__objRest$1(Bn,["eventFilter"]),{eventFilter:Wn,pause:Yn,resume:Gn,isActive:Qn}=pausableFilter(Fn);return{stop:watchWithFilter(b,j,__spreadProps$2(__spreadValues$2({},qn),{eventFilter:Wn})),pause:Yn,resume:Gn,isActive:Qn}}function unrefElement(b){var j;const U=resolveUnref(b);return(j=U==null?void 0:U.$el)!=null?j:U}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;isClient&&window.navigator;isClient&&window.location;function useEventListener(...b){let j,U,Bn,Fn;if(isString(b[0])||Array.isArray(b[0])?([U,Bn,Fn]=b,j=defaultWindow):[j,U,Bn,Fn]=b,!j)return noop;Array.isArray(U)||(U=[U]),Array.isArray(Bn)||(Bn=[Bn]);const qn=[],Wn=()=>{qn.forEach(Zn=>Zn()),qn.length=0},Yn=(Zn,Kn,Xn)=>(Zn.addEventListener(Kn,Xn,Fn),()=>Zn.removeEventListener(Kn,Xn,Fn)),Gn=watch(()=>unrefElement(j),Zn=>{Wn(),Zn&&qn.push(...U.flatMap(Kn=>Bn.map(Xn=>Yn(Zn,Kn,Xn))))},{immediate:!0,flush:"post"}),Qn=()=>{Gn(),Wn()};return tryOnScopeDispose(Qn),Qn}function onClickOutside(b,j,U={}){const{window:Bn=defaultWindow,ignore:Fn=[],capture:qn=!0,detectIframe:Wn=!1}=U;if(!Bn)return;let Yn=!0,Gn;const Qn=Jn=>Fn.some(ta=>{if(typeof ta=="string")return Array.from(Bn.document.querySelectorAll(ta)).some(ea=>ea===Jn.target||Jn.composedPath().includes(ea));{const ea=unrefElement(ta);return ea&&(Jn.target===ea||Jn.composedPath().includes(ea))}}),Zn=Jn=>{Bn.clearTimeout(Gn);const ta=unrefElement(b);if(!(!ta||ta===Jn.target||Jn.composedPath().includes(ta))){if(Jn.detail===0&&(Yn=!Qn(Jn)),!Yn){Yn=!0;return}j(Jn)}},Kn=[useEventListener(Bn,"click",Zn,{passive:!0,capture:qn}),useEventListener(Bn,"pointerdown",Jn=>{const ta=unrefElement(b);ta&&(Yn=!Jn.composedPath().includes(ta)&&!Qn(Jn))},{passive:!0}),useEventListener(Bn,"pointerup",Jn=>{if(Jn.button===0){const ta=Jn.composedPath();Jn.composedPath=()=>ta,Gn=Bn.setTimeout(()=>Zn(Jn),50)}},{passive:!0}),Wn&&useEventListener(Bn,"blur",Jn=>{var ta;const ea=unrefElement(b);((ta=Bn.document.activeElement)==null?void 0:ta.tagName)==="IFRAME"&&!(ea!=null&&ea.contains(Bn.document.activeElement))&&j(Jn)})].filter(Boolean);return()=>Kn.forEach(Jn=>Jn())}function useSupported(b,j=!1){const U=ref(),Bn=()=>U.value=Boolean(b());return Bn(),tryOnMounted(Bn,j),U}function useMediaQuery(b,j={}){const{window:U=defaultWindow}=j,Bn=useSupported(()=>U&&"matchMedia"in U&&typeof U.matchMedia=="function");let Fn;const qn=ref(!1),Wn=()=>{Fn&&("removeEventListener"in Fn?Fn.removeEventListener("change",Yn):Fn.removeListener(Yn))},Yn=()=>{Bn.value&&(Wn(),Fn=U.matchMedia(resolveRef(b).value),qn.value=Fn.matches,"addEventListener"in Fn?Fn.addEventListener("change",Yn):Fn.addListener(Yn))};return watchEffect(Yn),tryOnScopeDispose(()=>Wn()),qn}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};const handlers=_global[globalKey];function getSSRHandler(b,j){return handlers[b]||j}function guessSerializerType(b){return b==null?"any":b instanceof Set?"set":b instanceof Map?"map":b instanceof Date?"date":typeof b=="boolean"?"boolean":typeof b=="string"?"string":typeof b=="object"?"object":Number.isNaN(b)?"any":"number"}var __defProp$j=Object.defineProperty,__getOwnPropSymbols$l=Object.getOwnPropertySymbols,__hasOwnProp$l=Object.prototype.hasOwnProperty,__propIsEnum$l=Object.prototype.propertyIsEnumerable,__defNormalProp$j=(b,j,U)=>j in b?__defProp$j(b,j,{enumerable:!0,configurable:!0,writable:!0,value:U}):b[j]=U,__spreadValues$j=(b,j)=>{for(var U in j||(j={}))__hasOwnProp$l.call(j,U)&&__defNormalProp$j(b,U,j[U]);if(__getOwnPropSymbols$l)for(var U of __getOwnPropSymbols$l(j))__propIsEnum$l.call(j,U)&&__defNormalProp$j(b,U,j[U]);return b};const StorageSerializers={boolean:{read:b=>b==="true",write:b=>String(b)},object:{read:b=>JSON.parse(b),write:b=>JSON.stringify(b)},number:{read:b=>Number.parseFloat(b),write:b=>String(b)},any:{read:b=>b,write:b=>String(b)},string:{read:b=>b,write:b=>String(b)},map:{read:b=>new Map(JSON.parse(b)),write:b=>JSON.stringify(Array.from(b.entries()))},set:{read:b=>new Set(JSON.parse(b)),write:b=>JSON.stringify(Array.from(b))},date:{read:b=>new Date(b),write:b=>b.toISOString()}};function useStorage(b,j,U,Bn={}){var Fn;const{flush:qn="pre",deep:Wn=!0,listenToStorageChanges:Yn=!0,writeDefaults:Gn=!0,mergeDefaults:Qn=!1,shallow:Zn,window:Kn=defaultWindow,eventFilter:Xn,onError:Jn=la=>{console.error(la)}}=Bn,ta=(Zn?shallowRef:ref)(j);if(!U)try{U=getSSRHandler("getDefaultStorage",()=>{var la;return(la=defaultWindow)==null?void 0:la.localStorage})()}catch(la){Jn(la)}if(!U)return ta;const ea=resolveUnref(j),na=guessSerializerType(ea),aa=(Fn=Bn.serializer)!=null?Fn:StorageSerializers[na],{pause:ia,resume:ua}=watchPausable(ta,()=>ha(ta.value),{flush:qn,deep:Wn,eventFilter:Xn});return Kn&&Yn&&useEventListener(Kn,"storage",$a),$a(),ta;function ha(la){try{if(la==null)U.removeItem(b);else{const sa=aa.write(la),ya=U.getItem(b);ya!==sa&&(U.setItem(b,sa),Kn&&(Kn==null||Kn.dispatchEvent(new StorageEvent("storage",{key:b,oldValue:ya,newValue:sa,storageArea:U}))))}}catch(sa){Jn(sa)}}function ga(la){const sa=la?la.newValue:U.getItem(b);if(sa==null)return Gn&&ea!==null&&U.setItem(b,aa.write(ea)),ea;if(!la&&Qn){const ya=aa.read(sa);return isFunction(Qn)?Qn(ya,ea):na==="object"&&!Array.isArray(ya)?__spreadValues$j(__spreadValues$j({},ea),ya):ya}else return typeof sa!="string"?sa:aa.read(sa)}function $a(la){if(!(la&&la.storageArea!==U)){if(la&&la.key==null){ta.value=ea;return}if(!(la&&la.key!==b)){ia();try{ta.value=ga(la)}catch(sa){Jn(sa)}finally{la?nextTick(ua):ua()}}}}}function usePreferredDark(b){return useMediaQuery("(prefers-color-scheme: dark)",b)}function useRafFn(b,j={}){const{immediate:U=!0,window:Bn=defaultWindow}=j,Fn=ref(!1);let qn=0,Wn=null;function Yn(Zn){if(!Fn.value||!Bn)return;const Kn=Zn-qn;b({delta:Kn,timestamp:Zn}),qn=Zn,Wn=Bn.requestAnimationFrame(Yn)}function Gn(){!Fn.value&&Bn&&(Fn.value=!0,Wn=Bn.requestAnimationFrame(Yn))}function Qn(){Fn.value=!1,Wn!=null&&Bn&&(Bn.cancelAnimationFrame(Wn),Wn=null)}return U&&Gn(),tryOnScopeDispose(Qn),{isActive:readonly(Fn),pause:Qn,resume:Gn}}const functionsMap=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]];function useFullscreen(b,j={}){const{document:U=defaultDocument,autoExit:Bn=!1}=j,Fn=b||(U==null?void 0:U.querySelector("html")),qn=ref(!1);let Wn=functionsMap[0];const Yn=useSupported(()=>{if(U){for(const ea of functionsMap)if(ea[1]in U)return Wn=ea,!0}else return!1;return!1}),[Gn,Qn,Zn,,Kn]=Wn;async function Xn(){Yn.value&&(U!=null&&U[Zn]&&await U[Qn](),qn.value=!1)}async function Jn(){if(!Yn.value)return;await Xn();const ea=unrefElement(Fn);ea&&(await ea[Gn](),qn.value=!0)}async function ta(){qn.value?await Xn():await Jn()}return U&&useEventListener(U,Kn,()=>{qn.value=!!(U!=null&&U[Zn])},!1),Bn&&tryOnScopeDispose(Xn),{isSupported:Yn,isFullscreen:qn,enter:Jn,exit:Xn,toggle:ta}}function useLocalStorage(b,j,U={}){const{window:Bn=defaultWindow}=U;return useStorage(b,j,Bn==null?void 0:Bn.localStorage,U)}var __defProp$6=Object.defineProperty,__getOwnPropSymbols$6=Object.getOwnPropertySymbols,__hasOwnProp$6=Object.prototype.hasOwnProperty,__propIsEnum$6=Object.prototype.propertyIsEnumerable,__defNormalProp$6=(b,j,U)=>j in b?__defProp$6(b,j,{enumerable:!0,configurable:!0,writable:!0,value:U}):b[j]=U,__spreadValues$6=(b,j)=>{for(var U in j||(j={}))__hasOwnProp$6.call(j,U)&&__defNormalProp$6(b,U,j[U]);if(__getOwnPropSymbols$6)for(var U of __getOwnPropSymbols$6(j))__propIsEnum$6.call(j,U)&&__defNormalProp$6(b,U,j[U]);return b};function useNow(b={}){const{controls:j=!1,interval:U="requestAnimationFrame"}=b,Bn=ref(new Date),Fn=()=>Bn.value=new Date,qn=U==="requestAnimationFrame"?useRafFn(Fn,{immediate:!0}):useIntervalFn(Fn,U,{immediate:!0});return j?__spreadValues$6({now:Bn},qn):Bn}var SwipeDirection;(function(b){b.UP="UP",b.RIGHT="RIGHT",b.DOWN="DOWN",b.LEFT="LEFT",b.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));let _id=0;function useStyleTag(b,j={}){const U=ref(!1),{document:Bn=defaultDocument,immediate:Fn=!0,manual:qn=!1,id:Wn=`vueuse_styletag_${++_id}`}=j,Yn=ref(b);let Gn=()=>{};const Qn=()=>{if(!Bn)return;const Kn=Bn.getElementById(Wn)||Bn.createElement("style");Kn.isConnected||(Kn.type="text/css",Kn.id=Wn,j.media&&(Kn.media=j.media),Bn.head.appendChild(Kn)),!U.value&&(Gn=watch(Yn,Xn=>{Kn.textContent=Xn},{immediate:!0}),U.value=!0)},Zn=()=>{!Bn||!U.value||(Gn(),Bn.head.removeChild(Bn.getElementById(Wn)),U.value=!1)};return Fn&&!qn&&tryOnMounted(Qn),qn||tryOnScopeDispose(Zn),{id:Wn,css:Yn,unload:Zn,load:Qn,isLoaded:readonly(U)}}var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(b,j,U)=>j in b?__defProp(b,j,{enumerable:!0,configurable:!0,writable:!0,value:U}):b[j]=U,__spreadValues=(b,j)=>{for(var U in j||(j={}))__hasOwnProp.call(j,U)&&__defNormalProp(b,U,j[U]);if(__getOwnPropSymbols)for(var U of __getOwnPropSymbols(j))__propIsEnum.call(j,U)&&__defNormalProp(b,U,j[U]);return b};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity},_TransitionPresets);const fontIcon="";var c$2=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""},color:{type:String,default:""},size:{type:[String,Number],default:""}},setup(b){const j=computed(()=>{const U={};return b.color&&(U.color=b.color),b.size&&(U["font-size"]=Number.isNaN(Number(b.size))?b.size:`${b.size}px`),Dt$1(U).length?U:null});return()=>b.icon?h$3("span",{key:b.icon,class:["font-icon icon","",b.icon.includes(" ")?b.icon:`iconfont icon-${b.icon}`],style:j.value}):null}});const badge="",t$3=({type:b="info",text:j="",vertical:U="top",color:Bn},{slots:Fn})=>{var qn;return h$3("span",{class:["badge",b,{diy:Bn}],style:{verticalAlign:U,...Bn?{backgroundColor:Bn}:{}}},j||((qn=Fn.default)==null?void 0:qn.call(Fn)))};t$3.displayName="Badge";const biliBili="",v$2=b=>isString$1(b)?b:`${b}px`,B$3=(b,j=0)=>{const U=ref(),Bn=computed(()=>v$2(unref(b.width)||"100%")),Fn=ref("auto"),qn=Gn=>{if(isString$1(Gn)){const[Qn,Zn]=Gn.split(":"),Kn=Number(Qn)/Number(Zn);if(!Number.isNaN(Kn))return Kn}return typeof Gn=="number"?Gn:16/9},Wn=Gn=>{const Qn=unref(b.height),Zn=qn(unref(b.ratio));return Qn?v$2(Qn):`${Number(Gn)/Zn+unref(j)}px`},Yn=()=>{U.value&&(Fn.value=Wn(U.value.clientWidth))};return onMounted(()=>{Yn(),isRef(j)&&watch(j,()=>Yn()),useEventListener("orientationchange",()=>Yn()),useEventListener("resize",()=>Yn())}),{el:U,width:Bn,height:Fn}};var k$4=defineComponent({name:"BiliBili",props:{bvid:{type:String,required:!0},title:{type:String,default:"A BiliBili video"},page:{type:[String,Number],default:1},width:{type:[String,Number],default:"100%"},height:{type:[String,Number],default:void 0},ratio:{type:[String,Number],default:16/9},time:{type:[String,Number],default:0},lowQuality:Boolean,noDanmaku:Boolean},setup(b){const j=ref(!1),U=computed(()=>j.value?0:68),Bn=()=>{j.value=Lt$1(navigator.userAgent)||Fn.value.clientWidth<640},{el:Fn,width:qn,height:Wn}=B$3(b,U),Yn=computed(()=>`https://player.bilibili.com/player.html?bvid=${b.bvid}&t=${b.time}&high_quality=${b.lowQuality?0:1}&page=${b.page}&danmaku=${b.noDanmaku?0:1}`);return onMounted(()=>{Bn(),useEventListener("orientationchange",()=>Bn()),useEventListener("resize",()=>Bn())}),()=>[h$3("div",{class:"bili-desc"},h$3("a",{class:"sr-only",href:Yn.value},b.title)),h$3("iframe",{ref:Fn,src:`https://player.bilibili.com/player.html?bvid=${b.bvid}&t=${b.time}&high_quality=${b.lowQuality?0:1}&page=${b.page}&danmaku=${b.noDanmaku?0:1}`,title:b.title,class:"bili-iframe",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture",style:{width:qn.value,height:Wn.value}})]}});const backToTop="",a$4=()=>h$3(R$1,{name:"back-to-top"},()=>[h$3("path",{d:"M512 843.2c-36.2 0-66.4-13.6-85.8-21.8-10.8-4.6-22.6 3.6-21.8 15.2l7 102c.4 6.2 7.6 9.4 12.6 5.6l29-22c3.6-2.8 9-1.8 11.4 2l41 64.2c3 4.8 10.2 4.8 13.2 0l41-64.2c2.4-3.8 7.8-4.8 11.4-2l29 22c5 3.8 12.2.6 12.6-5.6l7-102c.8-11.6-11-20-21.8-15.2-19.6 8.2-49.6 21.8-85.8 21.8z"}),h$3("path",{d:"m795.4 586.2-96-98.2C699.4 172 513 32 513 32S324.8 172 324.8 488l-96 98.2c-3.6 3.6-5.2 9-4.4 14.2L261.2 824c1.8 11.4 14.2 17 23.6 10.8L419 744s41.4 40 94.2 40c52.8 0 92.2-40 92.2-40l134.2 90.8c9.2 6.2 21.6.6 23.6-10.8l37-223.8c.4-5.2-1.2-10.4-4.8-14zM513 384c-34 0-61.4-28.6-61.4-64s27.6-64 61.4-64c34 0 61.4 28.6 61.4 64S547 384 513 384z"})]);a$4.displayName="BackToTopIcon";var h$2=defineComponent({name:"BackToTop",props:{threshold:{type:Number,default:300}},setup(b){const j=usePageFrontmatter(),U=Yt$1({"/en/":{backToTop:"Back to top"},"/":{backToTop:"返回顶部"}}),Bn=ref(0),Fn=computed(()=>j.value.backToTop!==!1&&Bn.value>b.threshold),qn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return onMounted(()=>{Bn.value=qn()}),useEventListener("scroll",useDebounceFn(()=>{Bn.value=qn()},100)),()=>h$3(Transition,{name:"fade"},()=>Fn.value?h$3("button",{class:"back-to-top","aria-label":U.value.backToTop,"data-balloon-pos":"left",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"}),Bn.value=0}},h$3(a$4)):null)}});const srOnly="",clientConfig1=defineClientConfig({enhance:({app:b})=>{Ht$1("FontIcon")||b.component("FontIcon",c$2),Ht$1("Badge")||b.component("Badge",t$3),Ht$1("BiliBili")||b.component("BiliBili",k$4)},setup:()=>{useStyleTag(` @import url("//at.alicdn.com/t/c/font_2410206_5vb9zlyghj.css");
|
||
`)},rootComponents:[()=>h$3(h$2,{threshold:300})]});function r$4(b,j,U){var Bn,Fn,qn;j===void 0&&(j=50),U===void 0&&(U={});var Wn=(Bn=U.isImmediate)!=null&&Bn,Yn=(Fn=U.callback)!=null&&Fn,Gn=U.maxWait,Qn=Date.now(),Zn=[];function Kn(){if(Gn!==void 0){var Jn=Date.now()-Qn;if(Jn+j>=Gn)return Gn-Jn}return j}var Xn=function(){var Jn=[].slice.call(arguments),ta=this;return new Promise(function(ea,na){var aa=Wn&&qn===void 0;if(qn!==void 0&&clearTimeout(qn),qn=setTimeout(function(){if(qn=void 0,Qn=Date.now(),!Wn){var ua=b.apply(ta,Jn);Yn&&Yn(ua),Zn.forEach(function(ha){return(0,ha.resolve)(ua)}),Zn=[]}},Kn()),aa){var ia=b.apply(ta,Jn);return Yn&&Yn(ia),ea(ia)}Zn.push({resolve:ea,reject:na})})};return Xn.cancel=function(Jn){qn!==void 0&&clearTimeout(qn),Zn.forEach(function(ta){return(0,ta.reject)(Jn)}),Zn=[]},Xn}const useActiveHeaderLinks=({headerLinkSelector:b,headerAnchorSelector:j,delay:U,offset:Bn=5})=>{const Fn=useRouter(),Wn=r$4(()=>{var ea,na;const Yn=Math.max(window.scrollY,document.documentElement.scrollTop,document.body.scrollTop);if(Math.abs(Yn-0)<Bn){updateHash(Fn,"");return}const Qn=window.innerHeight+Yn,Zn=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight),Kn=Math.abs(Zn-Qn)<Bn,Xn=Array.from(document.querySelectorAll(b)),ta=Array.from(document.querySelectorAll(j)).filter(aa=>Xn.some(ia=>ia.hash===aa.hash));for(let aa=0;aa<ta.length;aa++){const ia=ta[aa],ua=ta[aa+1],ha=Yn>=(((ea=ia.parentElement)==null?void 0:ea.offsetTop)??0)-Bn,ga=!ua||Yn<(((na=ua.parentElement)==null?void 0:na.offsetTop)??0)-Bn;if(!(ha&&ga))continue;const la=decodeURIComponent(Fn.currentRoute.value.hash),sa=decodeURIComponent(ia.hash);if(la===sa)return;if(Kn){for(let ya=aa+1;ya<ta.length;ya++)if(la===decodeURIComponent(ta[ya].hash))return}updateHash(Fn,sa);return}},U);onMounted(()=>{window.addEventListener("scroll",Wn)}),onBeforeUnmount(()=>{window.removeEventListener("scroll",Wn)})},updateHash=async(b,j)=>{const{scrollBehavior:U}=b.options;b.options.scrollBehavior=void 0,await b.replace({query:b.currentRoute.value.query,hash:j,force:!0}).finally(()=>b.options.scrollBehavior=U)},headerLinkSelector=".sidebar-link, .toc-link",headerAnchorSelector=".header-anchor",delay=200,offset=5,clientConfig2=defineClientConfig({setup(){useActiveHeaderLinks({headerLinkSelector,headerAnchorSelector,delay,offset})}}),autoCatalog="";var M$1=defineComponent({name:"AutoCatalog",props:{base:{type:String,default:""},level:{type:Number,default:3},titleGetter:{type:Function,default:b=>b.title},iconGetter:{type:Function,default:b=>b.icon},orderGetter:{type:Function,default:b=>b.order||0},shouldIndex:{type:Function,default:b=>b.index!==!1}},setup(b){const j=Yt$1({"/en/":{title:"Catalog"},"/":{title:"目录"}}),U=useRoute(),Bn=useRouter(),Fn=useSiteData(),qn=()=>{const Yn=b.base||U.path.replace(/\/[^/]+$/,"/"),Gn=Bn.getRoutes(),Qn=[];return Gn.filter(({meta:Zn,path:Kn})=>{if(!bt$1(Kn,Yn)||Kn===Yn)return!1;if(Yn==="/"){const Xn=Dt$1(Fn.value.locales).filter(Jn=>Jn!=="/");if(Kn==="/404.html"||Xn.some(Jn=>bt$1(Kn,Jn)))return!1}return(ee$1(Kn,".html")&&!ee$1(Kn,"/index.html")||ee$1(Kn,"/"))&&b.shouldIndex(Zn)}).map(({path:Zn,meta:Kn})=>{const Xn=Zn.substring(Yn.length).split("/").length;return{title:b.titleGetter(Kn),icon:b.iconGetter(Kn),base:Zn.replace(/\/[^/]+\/?$/,"/"),order:b.orderGetter(Kn)||null,level:ee$1(Zn,"/")?Xn-1:Xn,path:Zn}}).filter(({title:Zn,level:Kn})=>Kn<=b.level||!Zn).sort(({title:Zn,level:Kn,path:Xn,order:Jn},{title:ta,level:ea,path:na,order:aa})=>Kn-ea||(ee$1(Xn,"/index.html")?-1:ee$1(na,"/index.html")?1:Jn===null?aa===null?Zn.localeCompare(ta):aa:aa===null?Jn:Jn>0?aa>0?Jn-aa:-1:aa<0?Jn-aa:1)).forEach(Zn=>{var Kn;const{base:Xn,level:Jn}=Zn;switch(Jn){case 1:Qn.push(Zn);break;case 2:{const ta=Qn.find(ea=>ea.path===Xn);ta&&(ta.children??(ta.children=[])).push(Zn);break}default:{const ta=Qn.find(ea=>ea.path===Xn.replace(/\/[^/]+\/$/,"/"));if(ta){const ea=(Kn=ta.children)==null?void 0:Kn.find(na=>na.path===Xn);ea&&(ea.children??(ea.children=[])).push(Zn)}}}}),Qn},Wn=computed(()=>qn());return()=>h$3("div",{class:"auto-catalog-wrapper"},[h$3("h2",{class:"main-title"},j.value.title),...Wn.value.map(({children:Yn=[],icon:Gn,path:Qn,title:Zn},Kn)=>[h$3("h3",{id:Zn,class:["child-title",{"has-children":Yn.length}]},[h$3("a",{href:`#${Zn}`,class:"header-anchor"},"#"),h$3(RouterLink,{class:"catalog-title",to:Qn},()=>[Gn?h$3(c$2,{icon:Gn}):null,`${Kn+1}. ${Zn||"Unknown"}`])]),Yn.length?h$3("ul",{class:"child-catalog-wrapper"},Yn.map(({children:Xn=[],icon:Jn,path:ta,title:ea},na)=>h$3("li",{class:"child-catalog-item"},[h$3("div",{class:["sub-title",{"has-children":Xn.length}]},[h$3("a",{href:`#${ea}`,class:"header-anchor"},"#"),h$3(RouterLink,{class:"catalog-title",to:ta},()=>[Jn?h$3(c$2,{icon:Jn}):null,`${Kn+1}.${na+1} ${ea||"Unknown"}`])]),Xn.length?h$3("div",{class:"sub-catalog-wrapper"},Xn.map(({icon:aa,path:ia,title:ua},ha)=>h$3(RouterLink,{class:"sub-catalog-item",to:ia},()=>[aa?h$3(c$2,{icon:aa}):null,`${Kn+1}.${na+1}.${ha+1} ${ua||"Unknown"}`]))):null]))):null])])}}),F$3=defineClientConfig({enhance:({app:b})=>{Ht$1("AutoCatalog",b)||b.component("AutoCatalog",j=>h$3(M$1,{titleGetter:U=>U.t,iconGetter:U=>U.i,orderGetter:U=>U.O,shouldIndex:U=>Boolean(U.I),...j}))}});const vars$1="",externalLinkIcon="",svg=h$3("svg",{class:"external-link-icon",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",focusable:"false",x:"0px",y:"0px",viewBox:"0 0 100 100",width:"15",height:"15"},[h$3("path",{fill:"currentColor",d:"M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"}),h$3("polygon",{fill:"currentColor",points:"45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"})]),ExternalLinkIcon=defineComponent({name:"ExternalLinkIcon",props:{locales:{type:Object,required:!1,default:()=>({})}},setup(b){const j=useRouteLocale(),U=computed(()=>b.locales[j.value]??{openInNewWindow:"open in new window"});return()=>h$3("span",[svg,h$3("span",{class:"external-link-icon-sr-only"},U.value.openInNewWindow)])}}),locales={},clientConfig4=defineClientConfig({enhance({app:b}){b.component("ExternalLinkIcon",h$3(ExternalLinkIcon,{locales}))}});/**
|
||
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
* @license MIT
|
||
*/const nprogress$1={settings:{minimum:.08,easing:"ease",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,barSelector:'[role="bar"]',parent:"body",template:'<div class="bar" role="bar"></div>'},status:null,set:b=>{const j=nprogress$1.isStarted();b=clamp(b,nprogress$1.settings.minimum,1),nprogress$1.status=b===1?null:b;const U=nprogress$1.render(!j),Bn=U.querySelector(nprogress$1.settings.barSelector),Fn=nprogress$1.settings.speed,qn=nprogress$1.settings.easing;return U.offsetWidth,queue(Wn=>{css(Bn,{transform:"translate3d("+toBarPerc(b)+"%,0,0)",transition:"all "+Fn+"ms "+qn}),b===1?(css(U,{transition:"none",opacity:"1"}),U.offsetWidth,setTimeout(function(){css(U,{transition:"all "+Fn+"ms linear",opacity:"0"}),setTimeout(function(){nprogress$1.remove(),Wn()},Fn)},Fn)):setTimeout(()=>Wn(),Fn)}),nprogress$1},isStarted:()=>typeof nprogress$1.status=="number",start:()=>{nprogress$1.status||nprogress$1.set(0);const b=()=>{setTimeout(()=>{nprogress$1.status&&(nprogress$1.trickle(),b())},nprogress$1.settings.trickleSpeed)};return nprogress$1.settings.trickle&&b(),nprogress$1},done:b=>!b&&!nprogress$1.status?nprogress$1:nprogress$1.inc(.3+.5*Math.random()).set(1),inc:b=>{let j=nprogress$1.status;return j?(typeof b!="number"&&(b=(1-j)*clamp(Math.random()*j,.1,.95)),j=clamp(j+b,0,.994),nprogress$1.set(j)):nprogress$1.start()},trickle:()=>nprogress$1.inc(Math.random()*nprogress$1.settings.trickleRate),render:b=>{if(nprogress$1.isRendered())return document.getElementById("nprogress");addClass(document.documentElement,"nprogress-busy");const j=document.createElement("div");j.id="nprogress",j.innerHTML=nprogress$1.settings.template;const U=j.querySelector(nprogress$1.settings.barSelector),Bn=b?"-100":toBarPerc(nprogress$1.status||0),Fn=document.querySelector(nprogress$1.settings.parent);return css(U,{transition:"all 0 linear",transform:"translate3d("+Bn+"%,0,0)"}),Fn!==document.body&&addClass(Fn,"nprogress-custom-parent"),Fn==null||Fn.appendChild(j),j},remove:()=>{removeClass(document.documentElement,"nprogress-busy"),removeClass(document.querySelector(nprogress$1.settings.parent),"nprogress-custom-parent");const b=document.getElementById("nprogress");b&&removeElement(b)},isRendered:()=>!!document.getElementById("nprogress")},clamp=(b,j,U)=>b<j?j:b>U?U:b,toBarPerc=b=>(-1+b)*100,queue=function(){const b=[];function j(){const U=b.shift();U&&U(j)}return function(U){b.push(U),b.length===1&&j()}}(),css=function(){const b=["Webkit","O","Moz","ms"],j={};function U(Wn){return Wn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Yn,Gn){return Gn.toUpperCase()})}function Bn(Wn){const Yn=document.body.style;if(Wn in Yn)return Wn;let Gn=b.length;const Qn=Wn.charAt(0).toUpperCase()+Wn.slice(1);let Zn;for(;Gn--;)if(Zn=b[Gn]+Qn,Zn in Yn)return Zn;return Wn}function Fn(Wn){return Wn=U(Wn),j[Wn]||(j[Wn]=Bn(Wn))}function qn(Wn,Yn,Gn){Yn=Fn(Yn),Wn.style[Yn]=Gn}return function(Wn,Yn){for(const Gn in Yn){const Qn=Yn[Gn];Qn!==void 0&&Object.prototype.hasOwnProperty.call(Yn,Gn)&&qn(Wn,Gn,Qn)}}}(),hasClass=(b,j)=>(typeof b=="string"?b:classList(b)).indexOf(" "+j+" ")>=0,addClass=(b,j)=>{const U=classList(b),Bn=U+j;hasClass(U,j)||(b.className=Bn.substring(1))},removeClass=(b,j)=>{const U=classList(b);if(!hasClass(b,j))return;const Bn=U.replace(" "+j+" "," ");b.className=Bn.substring(1,Bn.length-1)},classList=b=>(" "+(b.className||"")+" ").replace(/\s+/gi," "),removeElement=b=>{b&&b.parentNode&&b.parentNode.removeChild(b)},vars="",nprogress="",useNprogress=()=>{onMounted(()=>{const b=useRouter(),j=new Set;j.add(b.currentRoute.value.path),b.beforeEach(U=>{j.has(U.path)||nprogress$1.start()}),b.afterEach(U=>{j.add(U.path),nprogress$1.done()})})},clientConfig5=defineClientConfig({setup(){useNprogress()}}),themeData$1=JSON.parse(`{"encrypt":{},"locales":{"/en/":{"lang":"en-US","navbarLocales":{"langName":"English","selectLangAriaLabel":"Select language"},"metaLocales":{"author":"Author","date":"Writing Date","origin":"Original","views":"Page views","category":"Category","tag":"Tag","readingTime":"Reading Time","words":"Words","toc":"On This Page","prev":"Prev","next":"Next","lastUpdated":"Last update","contributors":"Contributors","editLink":"Edit this page on GitHub"},"outlookLocales":{"themeColor":"Theme Color","darkmode":"Theme Mode","fullscreen":"Full Screen"},"encryptLocales":{"iconLabel":"Page Encrypted","placeholder":"Enter password","remember":"Remember password","errorHint":"Please enter the correct password!"},"routeLocales":{"skipToContent":"Skip to main content","notFoundTitle":"Page not found","notFoundMsg":["There’s nothing here.","How did we get here?","That’s a Four-Oh-Four.","Looks like we've got some broken links."],"back":"Go back","home":"Take me home","openInNewWindow":"Open in new window"},"author":{"name":"DGP-Studio","url":"https://github.com/DGP-Studio"},"logo":"https://img.alicdn.com/imgextra/i1/1797064093/O1CN01TOz2Cm1g6du5e8Hml_!!1797064093.png","repo":"DGP-Studio/Snap.Hutao","pageInfo":["Author","Original","Date","Category","Tag","ReadingTime"],"docsRepo":"DGP-Studio/Snap.Hutao.Docs","docsDir":"docs","navbar":["/en",{"text":"Document","icon":"article","link":"/features/README.md"},{"text":"Download","icon":"install","link":"https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52"}],"sidebar":{"/en/":["",{"icon":"play","text":"快速开始","link":"quick-start.md"}]},"footer":"Be the best Genshin Impact tool","displayFooter":true},"/":{"lang":"zh-CN","navbarLocales":{"langName":"简体中文","selectLangAriaLabel":"选择语言"},"metaLocales":{"author":"作者","date":"写作日期","origin":"原创","views":"访问量","category":"分类","tag":"标签","readingTime":"阅读时间","words":"字数","toc":"此页内容","prev":"上一页","next":"下一页","lastUpdated":"上次编辑于","contributors":"贡献者","editLink":"在 GitHub 上编辑此页"},"outlookLocales":{"themeColor":"主题色","darkmode":"外观","fullscreen":"全屏"},"encryptLocales":{"iconLabel":"文章已加密","placeholder":"输入密码","remember":"记住密码","errorHint":"请输入正确的密码"},"routeLocales":{"skipToContent":"跳至主要內容","notFoundTitle":"页面不存在","notFoundMsg":["这里什么也没有","我们是怎么来到这儿的?","这 是 四 零 四 !","看起来你访问了一个失效的链接"],"back":"返回上一页","home":"带我回家","openInNewWindow":"Open in new window"},"author":{"name":"DGP-Studio","url":"https://github.com/DGP-Studio"},"logo":"https://img.alicdn.com/imgextra/i1/1797064093/O1CN01TOz2Cm1g6du5e8Hml_!!1797064093.png","repo":"DGP-Studio/Snap.Hutao","pageInfo":["Author","Original","Date","Category","Tag","ReadingTime"],"docsRepo":"DGP-Studio/Snap.Hutao.Docs","docsDir":"docs","navbar":["/",{"text":"文档","icon":"article","link":"/features/"},{"text":"下载","icon":"install","link":"https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52"},{"text":"加入社区讨论","icon":"community","link":"/community.md"}],"sidebar":{"/":["",{"icon":"workingDirectory","text":"项目介绍","link":"project.md"},{"icon":"play","text":"快速开始","link":"quick-start.md"},{"icon":"read","text":"功能指南","prefix":"features/","children":"structure"},{"icon":"ask","text":"常见问题","prefix":"FAQ/","children":"structure"},{"icon":"article","text":"声明和公告","prefix":"statements/","children":"structure"}]},"footer":"用开源社区力量为原神PC端玩家带来最好的游戏体验","displayFooter":true}}}`),themeData=ref(themeData$1),useThemeData$1=()=>themeData,themeLocaleDataSymbol=Symbol(""),useThemeLocaleData$1=()=>{const b=inject(themeLocaleDataSymbol);if(!b)throw new Error("useThemeLocaleData() is called without provider.");return b},resolveThemeLocaleData=(b,j)=>{var U;return{...b,...(U=b.locales)==null?void 0:U[j]}},clientConfig6=defineClientConfig({enhance({app:b}){const j=useThemeData$1(),U=b._context.provides[routeLocaleSymbol],Bn=computed(()=>resolveThemeLocaleData(j.value,U.value));b.provide(themeLocaleDataSymbol,Bn),Object.defineProperties(b.config.globalProperties,{$theme:{get(){return j.value}},$themeLocale:{get(){return Bn.value}}})}});var e$2,t$2,n$2=typeof Map=="function"?new Map:(e$2=[],t$2=[],{has:function(b){return e$2.indexOf(b)>-1},get:function(b){return t$2[e$2.indexOf(b)]},set:function(b,j){e$2.indexOf(b)===-1&&(e$2.push(b),t$2.push(j))},delete:function(b){var j=e$2.indexOf(b);j>-1&&(e$2.splice(j,1),t$2.splice(j,1))}}),o$3=function(b){return new Event(b,{bubbles:!0})};try{new Event("test")}catch{o$3=function(j){var U=document.createEvent("Event");return U.initEvent(j,!0,!1),U}}function r$3(b){var j=n$2.get(b);j&&j.destroy()}function i$4(b){var j=n$2.get(b);j&&j.update()}var l$3=null;typeof window>"u"||typeof window.getComputedStyle!="function"?((l$3=function(b){return b}).destroy=function(b){return b},l$3.update=function(b){return b}):((l$3=function(b,j){return b&&Array.prototype.forEach.call(b.length?b:[b],function(U){return function(Bn){if(Bn&&Bn.nodeName&&Bn.nodeName==="TEXTAREA"&&!n$2.has(Bn)){var Fn,qn=null,Wn=null,Yn=null,Gn=function(){Bn.clientWidth!==Wn&&Xn()},Qn=function(Jn){window.removeEventListener("resize",Gn,!1),Bn.removeEventListener("input",Xn,!1),Bn.removeEventListener("keyup",Xn,!1),Bn.removeEventListener("autosize:destroy",Qn,!1),Bn.removeEventListener("autosize:update",Xn,!1),Object.keys(Jn).forEach(function(ta){Bn.style[ta]=Jn[ta]}),n$2.delete(Bn)}.bind(Bn,{height:Bn.style.height,resize:Bn.style.resize,overflowY:Bn.style.overflowY,overflowX:Bn.style.overflowX,wordWrap:Bn.style.wordWrap});Bn.addEventListener("autosize:destroy",Qn,!1),"onpropertychange"in Bn&&"oninput"in Bn&&Bn.addEventListener("keyup",Xn,!1),window.addEventListener("resize",Gn,!1),Bn.addEventListener("input",Xn,!1),Bn.addEventListener("autosize:update",Xn,!1),Bn.style.overflowX="hidden",Bn.style.wordWrap="break-word",n$2.set(Bn,{destroy:Qn,update:Xn}),(Fn=window.getComputedStyle(Bn,null)).resize==="vertical"?Bn.style.resize="none":Fn.resize==="both"&&(Bn.style.resize="horizontal"),qn=Fn.boxSizing==="content-box"?-(parseFloat(Fn.paddingTop)+parseFloat(Fn.paddingBottom)):parseFloat(Fn.borderTopWidth)+parseFloat(Fn.borderBottomWidth),isNaN(qn)&&(qn=0),Xn()}function Zn(Jn){var ta=Bn.style.width;Bn.style.width="0px",Bn.style.width=ta,Bn.style.overflowY=Jn}function Kn(){if(Bn.scrollHeight!==0){var Jn=function(ta){for(var ea=[];ta&&ta.parentNode&&ta.parentNode instanceof Element;)ta.parentNode.scrollTop&&(ta.parentNode.style.scrollBehavior="auto",ea.push([ta.parentNode,ta.parentNode.scrollTop])),ta=ta.parentNode;return function(){return ea.forEach(function(na){var aa=na[0];aa.scrollTop=na[1],aa.style.scrollBehavior=null})}}(Bn);Bn.style.height="",Bn.style.height=Bn.scrollHeight+qn+"px",Wn=Bn.clientWidth,Jn()}}function Xn(){Kn();var Jn=Math.round(parseFloat(Bn.style.height)),ta=window.getComputedStyle(Bn,null),ea=ta.boxSizing==="content-box"?Math.round(parseFloat(ta.height)):Bn.offsetHeight;if(ea<Jn?ta.overflowY==="hidden"&&(Zn("scroll"),Kn(),ea=ta.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(Bn,null).height)):Bn.offsetHeight):ta.overflowY!=="hidden"&&(Zn("hidden"),Kn(),ea=ta.boxSizing==="content-box"?Math.round(parseFloat(window.getComputedStyle(Bn,null).height)):Bn.offsetHeight),Yn!==ea){Yn=ea;var na=o$3("autosize:resized");try{Bn.dispatchEvent(na)}catch{}}}}(U)}),b}).destroy=function(b){return b&&Array.prototype.forEach.call(b.length?b:[b],r$3),b},l$3.update=function(b){return b&&Array.prototype.forEach.call(b.length?b:[b],i$4),b});var a$3=l$3;function getDefaults(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let defaults=getDefaults();function changeDefaults(b){defaults=b}const escapeTest=/[&<>"']/,escapeReplace=new RegExp(escapeTest.source,"g"),escapeTestNoEncode=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode=new RegExp(escapeTestNoEncode.source,"g"),escapeReplacements={"&":"&","<":"<",">":">",'"':""","'":"'"},getEscapeReplacement=b=>escapeReplacements[b];function escape(b,j){if(j){if(escapeTest.test(b))return b.replace(escapeReplace,getEscapeReplacement)}else if(escapeTestNoEncode.test(b))return b.replace(escapeReplaceNoEncode,getEscapeReplacement);return b}const unescapeTest=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function unescape(b){return b.replace(unescapeTest,(j,U)=>(U=U.toLowerCase(),U==="colon"?":":U.charAt(0)==="#"?U.charAt(1)==="x"?String.fromCharCode(parseInt(U.substring(2),16)):String.fromCharCode(+U.substring(1)):""))}const caret=/(^|[^\[])\^/g;function edit(b,j){b=typeof b=="string"?b:b.source,j=j||"";const U={replace:(Bn,Fn)=>(Fn=Fn.source||Fn,Fn=Fn.replace(caret,"$1"),b=b.replace(Bn,Fn),U),getRegex:()=>new RegExp(b,j)};return U}const nonWordAndColonTest=/[^\w:]/g,originIndependentUrl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function cleanUrl(b,j,U){if(b){let Bn;try{Bn=decodeURIComponent(unescape(U)).replace(nonWordAndColonTest,"").toLowerCase()}catch{return null}if(Bn.indexOf("javascript:")===0||Bn.indexOf("vbscript:")===0||Bn.indexOf("data:")===0)return null}j&&!originIndependentUrl.test(U)&&(U=resolveUrl(j,U));try{U=encodeURI(U).replace(/%25/g,"%")}catch{return null}return U}const baseUrls={},justDomain=/^[^:]+:\/*[^/]*$/,protocol=/^([^:]+:)[\s\S]*$/,domain=/^([^:]+:\/*[^/]*)[\s\S]*$/;function resolveUrl(b,j){baseUrls[" "+b]||(justDomain.test(b)?baseUrls[" "+b]=b+"/":baseUrls[" "+b]=rtrim(b,"/",!0)),b=baseUrls[" "+b];const U=b.indexOf(":")===-1;return j.substring(0,2)==="//"?U?j:b.replace(protocol,"$1")+j:j.charAt(0)==="/"?U?j:b.replace(domain,"$1")+j:b+j}const noopTest={exec:function(){}};function merge(b){let j=1,U,Bn;for(;j<arguments.length;j++){U=arguments[j];for(Bn in U)Object.prototype.hasOwnProperty.call(U,Bn)&&(b[Bn]=U[Bn])}return b}function splitCells(b,j){const U=b.replace(/\|/g,(qn,Wn,Yn)=>{let Gn=!1,Qn=Wn;for(;--Qn>=0&&Yn[Qn]==="\\";)Gn=!Gn;return Gn?"|":" |"}),Bn=U.split(/ \|/);let Fn=0;if(Bn[0].trim()||Bn.shift(),Bn.length>0&&!Bn[Bn.length-1].trim()&&Bn.pop(),Bn.length>j)Bn.splice(j);else for(;Bn.length<j;)Bn.push("");for(;Fn<Bn.length;Fn++)Bn[Fn]=Bn[Fn].trim().replace(/\\\|/g,"|");return Bn}function rtrim(b,j,U){const Bn=b.length;if(Bn===0)return"";let Fn=0;for(;Fn<Bn;){const qn=b.charAt(Bn-Fn-1);if(qn===j&&!U)Fn++;else if(qn!==j&&U)Fn++;else break}return b.slice(0,Bn-Fn)}function findClosingBracket(b,j){if(b.indexOf(j[1])===-1)return-1;const U=b.length;let Bn=0,Fn=0;for(;Fn<U;Fn++)if(b[Fn]==="\\")Fn++;else if(b[Fn]===j[0])Bn++;else if(b[Fn]===j[1]&&(Bn--,Bn<0))return Fn;return-1}function checkSanitizeDeprecation(b){b&&b.sanitize&&!b.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function repeatString(b,j){if(j<1)return"";let U="";for(;j>1;)j&1&&(U+=b),j>>=1,b+=b;return U+b}function outputLink(b,j,U,Bn){const Fn=j.href,qn=j.title?escape(j.title):null,Wn=b[1].replace(/\\([\[\]])/g,"$1");if(b[0].charAt(0)!=="!"){Bn.state.inLink=!0;const Yn={type:"link",raw:U,href:Fn,title:qn,text:Wn,tokens:Bn.inlineTokens(Wn)};return Bn.state.inLink=!1,Yn}return{type:"image",raw:U,href:Fn,title:qn,text:escape(Wn)}}function indentCodeCompensation(b,j){const U=b.match(/^(\s+)(?:```)/);if(U===null)return j;const Bn=U[1];return j.split(`
|
||
`).map(Fn=>{const qn=Fn.match(/^\s+/);if(qn===null)return Fn;const[Wn]=qn;return Wn.length>=Bn.length?Fn.slice(Bn.length):Fn}).join(`
|
||
`)}class Tokenizer{constructor(j){this.options=j||defaults}space(j){const U=this.rules.block.newline.exec(j);if(U&&U[0].length>0)return{type:"space",raw:U[0]}}code(j){const U=this.rules.block.code.exec(j);if(U){const Bn=U[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:U[0],codeBlockStyle:"indented",text:this.options.pedantic?Bn:rtrim(Bn,`
|
||
`)}}}fences(j){const U=this.rules.block.fences.exec(j);if(U){const Bn=U[0],Fn=indentCodeCompensation(Bn,U[3]||"");return{type:"code",raw:Bn,lang:U[2]?U[2].trim().replace(this.rules.inline._escapes,"$1"):U[2],text:Fn}}}heading(j){const U=this.rules.block.heading.exec(j);if(U){let Bn=U[2].trim();if(/#$/.test(Bn)){const Fn=rtrim(Bn,"#");(this.options.pedantic||!Fn||/ $/.test(Fn))&&(Bn=Fn.trim())}return{type:"heading",raw:U[0],depth:U[1].length,text:Bn,tokens:this.lexer.inline(Bn)}}}hr(j){const U=this.rules.block.hr.exec(j);if(U)return{type:"hr",raw:U[0]}}blockquote(j){const U=this.rules.block.blockquote.exec(j);if(U){const Bn=U[0].replace(/^ *>[ \t]?/gm,""),Fn=this.lexer.state.top;this.lexer.state.top=!0;const qn=this.lexer.blockTokens(Bn);return this.lexer.state.top=Fn,{type:"blockquote",raw:U[0],tokens:qn,text:Bn}}}list(j){let U=this.rules.block.list.exec(j);if(U){let Bn,Fn,qn,Wn,Yn,Gn,Qn,Zn,Kn,Xn,Jn,ta,ea=U[1].trim();const na=ea.length>1,aa={type:"list",raw:"",ordered:na,start:na?+ea.slice(0,-1):"",loose:!1,items:[]};ea=na?`\\d{1,9}\\${ea.slice(-1)}`:`\\${ea}`,this.options.pedantic&&(ea=na?ea:"[*+-]");const ia=new RegExp(`^( {0,3}${ea})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;j&&(ta=!1,!(!(U=ia.exec(j))||this.rules.block.hr.test(j)));){if(Bn=U[0],j=j.substring(Bn.length),Zn=U[2].split(`
|
||
`,1)[0].replace(/^\t+/,ha=>" ".repeat(3*ha.length)),Kn=j.split(`
|
||
`,1)[0],this.options.pedantic?(Wn=2,Jn=Zn.trimLeft()):(Wn=U[2].search(/[^ ]/),Wn=Wn>4?1:Wn,Jn=Zn.slice(Wn),Wn+=U[1].length),Gn=!1,!Zn&&/^ *$/.test(Kn)&&(Bn+=Kn+`
|
||
`,j=j.substring(Kn.length+1),ta=!0),!ta){const ha=new RegExp(`^ {0,${Math.min(3,Wn-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),ga=new RegExp(`^ {0,${Math.min(3,Wn-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),$a=new RegExp(`^ {0,${Math.min(3,Wn-1)}}(?:\`\`\`|~~~)`),la=new RegExp(`^ {0,${Math.min(3,Wn-1)}}#`);for(;j&&(Xn=j.split(`
|
||
`,1)[0],Kn=Xn,this.options.pedantic&&(Kn=Kn.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!($a.test(Kn)||la.test(Kn)||ha.test(Kn)||ga.test(j)));){if(Kn.search(/[^ ]/)>=Wn||!Kn.trim())Jn+=`
|
||
`+Kn.slice(Wn);else{if(Gn||Zn.search(/[^ ]/)>=4||$a.test(Zn)||la.test(Zn)||ga.test(Zn))break;Jn+=`
|
||
`+Kn}!Gn&&!Kn.trim()&&(Gn=!0),Bn+=Xn+`
|
||
`,j=j.substring(Xn.length+1),Zn=Kn.slice(Wn)}}aa.loose||(Qn?aa.loose=!0:/\n *\n *$/.test(Bn)&&(Qn=!0)),this.options.gfm&&(Fn=/^\[[ xX]\] /.exec(Jn),Fn&&(qn=Fn[0]!=="[ ] ",Jn=Jn.replace(/^\[[ xX]\] +/,""))),aa.items.push({type:"list_item",raw:Bn,task:!!Fn,checked:qn,loose:!1,text:Jn}),aa.raw+=Bn}aa.items[aa.items.length-1].raw=Bn.trimRight(),aa.items[aa.items.length-1].text=Jn.trimRight(),aa.raw=aa.raw.trimRight();const ua=aa.items.length;for(Yn=0;Yn<ua;Yn++)if(this.lexer.state.top=!1,aa.items[Yn].tokens=this.lexer.blockTokens(aa.items[Yn].text,[]),!aa.loose){const ha=aa.items[Yn].tokens.filter($a=>$a.type==="space"),ga=ha.length>0&&ha.some($a=>/\n.*\n/.test($a.raw));aa.loose=ga}if(aa.loose)for(Yn=0;Yn<ua;Yn++)aa.items[Yn].loose=!0;return aa}}html(j){const U=this.rules.block.html.exec(j);if(U){const Bn={type:"html",raw:U[0],pre:!this.options.sanitizer&&(U[1]==="pre"||U[1]==="script"||U[1]==="style"),text:U[0]};if(this.options.sanitize){const Fn=this.options.sanitizer?this.options.sanitizer(U[0]):escape(U[0]);Bn.type="paragraph",Bn.text=Fn,Bn.tokens=this.lexer.inline(Fn)}return Bn}}def(j){const U=this.rules.block.def.exec(j);if(U){const Bn=U[1].toLowerCase().replace(/\s+/g," "),Fn=U[2]?U[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",qn=U[3]?U[3].substring(1,U[3].length-1).replace(this.rules.inline._escapes,"$1"):U[3];return{type:"def",tag:Bn,raw:U[0],href:Fn,title:qn}}}table(j){const U=this.rules.block.table.exec(j);if(U){const Bn={type:"table",header:splitCells(U[1]).map(Fn=>({text:Fn})),align:U[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:U[3]&&U[3].trim()?U[3].replace(/\n[ \t]*$/,"").split(`
|
||
`):[]};if(Bn.header.length===Bn.align.length){Bn.raw=U[0];let Fn=Bn.align.length,qn,Wn,Yn,Gn;for(qn=0;qn<Fn;qn++)/^ *-+: *$/.test(Bn.align[qn])?Bn.align[qn]="right":/^ *:-+: *$/.test(Bn.align[qn])?Bn.align[qn]="center":/^ *:-+ *$/.test(Bn.align[qn])?Bn.align[qn]="left":Bn.align[qn]=null;for(Fn=Bn.rows.length,qn=0;qn<Fn;qn++)Bn.rows[qn]=splitCells(Bn.rows[qn],Bn.header.length).map(Qn=>({text:Qn}));for(Fn=Bn.header.length,Wn=0;Wn<Fn;Wn++)Bn.header[Wn].tokens=this.lexer.inline(Bn.header[Wn].text);for(Fn=Bn.rows.length,Wn=0;Wn<Fn;Wn++)for(Gn=Bn.rows[Wn],Yn=0;Yn<Gn.length;Yn++)Gn[Yn].tokens=this.lexer.inline(Gn[Yn].text);return Bn}}}lheading(j){const U=this.rules.block.lheading.exec(j);if(U)return{type:"heading",raw:U[0],depth:U[2].charAt(0)==="="?1:2,text:U[1],tokens:this.lexer.inline(U[1])}}paragraph(j){const U=this.rules.block.paragraph.exec(j);if(U){const Bn=U[1].charAt(U[1].length-1)===`
|
||
`?U[1].slice(0,-1):U[1];return{type:"paragraph",raw:U[0],text:Bn,tokens:this.lexer.inline(Bn)}}}text(j){const U=this.rules.block.text.exec(j);if(U)return{type:"text",raw:U[0],text:U[0],tokens:this.lexer.inline(U[0])}}escape(j){const U=this.rules.inline.escape.exec(j);if(U)return{type:"escape",raw:U[0],text:escape(U[1])}}tag(j){const U=this.rules.inline.tag.exec(j);if(U)return!this.lexer.state.inLink&&/^<a /i.test(U[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(U[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(U[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(U[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:U[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(U[0]):escape(U[0]):U[0]}}link(j){const U=this.rules.inline.link.exec(j);if(U){const Bn=U[2].trim();if(!this.options.pedantic&&/^</.test(Bn)){if(!/>$/.test(Bn))return;const Wn=rtrim(Bn.slice(0,-1),"\\");if((Bn.length-Wn.length)%2===0)return}else{const Wn=findClosingBracket(U[2],"()");if(Wn>-1){const Gn=(U[0].indexOf("!")===0?5:4)+U[1].length+Wn;U[2]=U[2].substring(0,Wn),U[0]=U[0].substring(0,Gn).trim(),U[3]=""}}let Fn=U[2],qn="";if(this.options.pedantic){const Wn=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Fn);Wn&&(Fn=Wn[1],qn=Wn[3])}else qn=U[3]?U[3].slice(1,-1):"";return Fn=Fn.trim(),/^</.test(Fn)&&(this.options.pedantic&&!/>$/.test(Bn)?Fn=Fn.slice(1):Fn=Fn.slice(1,-1)),outputLink(U,{href:Fn&&Fn.replace(this.rules.inline._escapes,"$1"),title:qn&&qn.replace(this.rules.inline._escapes,"$1")},U[0],this.lexer)}}reflink(j,U){let Bn;if((Bn=this.rules.inline.reflink.exec(j))||(Bn=this.rules.inline.nolink.exec(j))){let Fn=(Bn[2]||Bn[1]).replace(/\s+/g," ");if(Fn=U[Fn.toLowerCase()],!Fn){const qn=Bn[0].charAt(0);return{type:"text",raw:qn,text:qn}}return outputLink(Bn,Fn,Bn[0],this.lexer)}}emStrong(j,U,Bn=""){let Fn=this.rules.inline.emStrong.lDelim.exec(j);if(!Fn||Fn[3]&&Bn.match(/[\p{L}\p{N}]/u))return;const qn=Fn[1]||Fn[2]||"";if(!qn||qn&&(Bn===""||this.rules.inline.punctuation.exec(Bn))){const Wn=Fn[0].length-1;let Yn,Gn,Qn=Wn,Zn=0;const Kn=Fn[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Kn.lastIndex=0,U=U.slice(-1*j.length+Wn);(Fn=Kn.exec(U))!=null;){if(Yn=Fn[1]||Fn[2]||Fn[3]||Fn[4]||Fn[5]||Fn[6],!Yn)continue;if(Gn=Yn.length,Fn[3]||Fn[4]){Qn+=Gn;continue}else if((Fn[5]||Fn[6])&&Wn%3&&!((Wn+Gn)%3)){Zn+=Gn;continue}if(Qn-=Gn,Qn>0)continue;Gn=Math.min(Gn,Gn+Qn+Zn);const Xn=j.slice(0,Wn+Fn.index+(Fn[0].length-Yn.length)+Gn);if(Math.min(Wn,Gn)%2){const ta=Xn.slice(1,-1);return{type:"em",raw:Xn,text:ta,tokens:this.lexer.inlineTokens(ta)}}const Jn=Xn.slice(2,-2);return{type:"strong",raw:Xn,text:Jn,tokens:this.lexer.inlineTokens(Jn)}}}}codespan(j){const U=this.rules.inline.code.exec(j);if(U){let Bn=U[2].replace(/\n/g," ");const Fn=/[^ ]/.test(Bn),qn=/^ /.test(Bn)&&/ $/.test(Bn);return Fn&&qn&&(Bn=Bn.substring(1,Bn.length-1)),Bn=escape(Bn,!0),{type:"codespan",raw:U[0],text:Bn}}}br(j){const U=this.rules.inline.br.exec(j);if(U)return{type:"br",raw:U[0]}}del(j){const U=this.rules.inline.del.exec(j);if(U)return{type:"del",raw:U[0],text:U[2],tokens:this.lexer.inlineTokens(U[2])}}autolink(j,U){const Bn=this.rules.inline.autolink.exec(j);if(Bn){let Fn,qn;return Bn[2]==="@"?(Fn=escape(this.options.mangle?U(Bn[1]):Bn[1]),qn="mailto:"+Fn):(Fn=escape(Bn[1]),qn=Fn),{type:"link",raw:Bn[0],text:Fn,href:qn,tokens:[{type:"text",raw:Fn,text:Fn}]}}}url(j,U){let Bn;if(Bn=this.rules.inline.url.exec(j)){let Fn,qn;if(Bn[2]==="@")Fn=escape(this.options.mangle?U(Bn[0]):Bn[0]),qn="mailto:"+Fn;else{let Wn;do Wn=Bn[0],Bn[0]=this.rules.inline._backpedal.exec(Bn[0])[0];while(Wn!==Bn[0]);Fn=escape(Bn[0]),Bn[1]==="www."?qn="http://"+Bn[0]:qn=Bn[0]}return{type:"link",raw:Bn[0],text:Fn,href:qn,tokens:[{type:"text",raw:Fn,text:Fn}]}}}inlineText(j,U){const Bn=this.rules.inline.text.exec(j);if(Bn){let Fn;return this.lexer.state.inRawBlock?Fn=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Bn[0]):escape(Bn[0]):Bn[0]:Fn=escape(this.options.smartypants?U(Bn[0]):Bn[0]),{type:"text",raw:Bn[0],text:Fn}}}}const block={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:noopTest,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};block._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;block._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;block.def=edit(block.def).replace("label",block._label).replace("title",block._title).getRegex();block.bullet=/(?:[*+-]|\d{1,9}[.)])/;block.listItemStart=edit(/^( *)(bull) */).replace("bull",block.bullet).getRegex();block.list=edit(block.list).replace(/bull/g,block.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+block.def.source+")").getRegex();block._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";block._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;block.html=edit(block.html,"i").replace("comment",block._comment).replace("tag",block._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();block.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.blockquote=edit(block.blockquote).replace("paragraph",block.paragraph).getRegex();block.normal=merge({},block);block.gfm=merge({},block.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});block.gfm.table=edit(block.gfm.table).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.gfm.paragraph=edit(block._paragraph).replace("hr",block.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",block.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",block._tag).getRegex();block.pedantic=merge({},block.normal,{html:edit(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",block._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:noopTest,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:edit(block.normal._paragraph).replace("hr",block.hr).replace("heading",` *#{1,6} *[^
|
||
]`).replace("lheading",block.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const inline={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:noopTest,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:noopTest,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};inline._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";inline.punctuation=edit(inline.punctuation).replace(/punctuation/g,inline._punctuation).getRegex();inline.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;inline.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;inline._comment=edit(block._comment).replace("(?:-->|$)","-->").getRegex();inline.emStrong.lDelim=edit(inline.emStrong.lDelim).replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimAst=edit(inline.emStrong.rDelimAst,"g").replace(/punct/g,inline._punctuation).getRegex();inline.emStrong.rDelimUnd=edit(inline.emStrong.rDelimUnd,"g").replace(/punct/g,inline._punctuation).getRegex();inline._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;inline._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;inline._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;inline.autolink=edit(inline.autolink).replace("scheme",inline._scheme).replace("email",inline._email).getRegex();inline._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;inline.tag=edit(inline.tag).replace("comment",inline._comment).replace("attribute",inline._attribute).getRegex();inline._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;inline._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;inline._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;inline.link=edit(inline.link).replace("label",inline._label).replace("href",inline._href).replace("title",inline._title).getRegex();inline.reflink=edit(inline.reflink).replace("label",inline._label).replace("ref",block._label).getRegex();inline.nolink=edit(inline.nolink).replace("ref",block._label).getRegex();inline.reflinkSearch=edit(inline.reflinkSearch,"g").replace("reflink",inline.reflink).replace("nolink",inline.nolink).getRegex();inline.normal=merge({},inline);inline.pedantic=merge({},inline.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:edit(/^!?\[(label)\]\((.*?)\)/).replace("label",inline._label).getRegex(),reflink:edit(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",inline._label).getRegex()});inline.gfm=merge({},inline.normal,{escape:edit(inline.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});inline.gfm.url=edit(inline.gfm.url,"i").replace("email",inline.gfm._extended_email).getRegex();inline.breaks=merge({},inline.gfm,{br:edit(inline.br).replace("{2,}","*").getRegex(),text:edit(inline.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function smartypants(b){return b.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function mangle(b){let j="",U,Bn;const Fn=b.length;for(U=0;U<Fn;U++)Bn=b.charCodeAt(U),Math.random()>.5&&(Bn="x"+Bn.toString(16)),j+="&#"+Bn+";";return j}class Lexer{constructor(j){this.tokens=[],this.tokens.links=Object.create(null),this.options=j||defaults,this.options.tokenizer=this.options.tokenizer||new Tokenizer,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const U={block:block.normal,inline:inline.normal};this.options.pedantic?(U.block=block.pedantic,U.inline=inline.pedantic):this.options.gfm&&(U.block=block.gfm,this.options.breaks?U.inline=inline.breaks:U.inline=inline.gfm),this.tokenizer.rules=U}static get rules(){return{block,inline}}static lex(j,U){return new Lexer(U).lex(j)}static lexInline(j,U){return new Lexer(U).inlineTokens(j)}lex(j){j=j.replace(/\r\n|\r/g,`
|
||
`),this.blockTokens(j,this.tokens);let U;for(;U=this.inlineQueue.shift();)this.inlineTokens(U.src,U.tokens);return this.tokens}blockTokens(j,U=[]){this.options.pedantic?j=j.replace(/\t/g," ").replace(/^ +$/gm,""):j=j.replace(/^( *)(\t+)/gm,(Yn,Gn,Qn)=>Gn+" ".repeat(Qn.length));let Bn,Fn,qn,Wn;for(;j;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Yn=>(Bn=Yn.call({lexer:this},j,U))?(j=j.substring(Bn.raw.length),U.push(Bn),!0):!1))){if(Bn=this.tokenizer.space(j)){j=j.substring(Bn.raw.length),Bn.raw.length===1&&U.length>0?U[U.length-1].raw+=`
|
||
`:U.push(Bn);continue}if(Bn=this.tokenizer.code(j)){j=j.substring(Bn.raw.length),Fn=U[U.length-1],Fn&&(Fn.type==="paragraph"||Fn.type==="text")?(Fn.raw+=`
|
||
`+Bn.raw,Fn.text+=`
|
||
`+Bn.text,this.inlineQueue[this.inlineQueue.length-1].src=Fn.text):U.push(Bn);continue}if(Bn=this.tokenizer.fences(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.heading(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.hr(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.blockquote(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.list(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.html(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.def(j)){j=j.substring(Bn.raw.length),Fn=U[U.length-1],Fn&&(Fn.type==="paragraph"||Fn.type==="text")?(Fn.raw+=`
|
||
`+Bn.raw,Fn.text+=`
|
||
`+Bn.raw,this.inlineQueue[this.inlineQueue.length-1].src=Fn.text):this.tokens.links[Bn.tag]||(this.tokens.links[Bn.tag]={href:Bn.href,title:Bn.title});continue}if(Bn=this.tokenizer.table(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.lheading(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(qn=j,this.options.extensions&&this.options.extensions.startBlock){let Yn=1/0;const Gn=j.slice(1);let Qn;this.options.extensions.startBlock.forEach(function(Zn){Qn=Zn.call({lexer:this},Gn),typeof Qn=="number"&&Qn>=0&&(Yn=Math.min(Yn,Qn))}),Yn<1/0&&Yn>=0&&(qn=j.substring(0,Yn+1))}if(this.state.top&&(Bn=this.tokenizer.paragraph(qn))){Fn=U[U.length-1],Wn&&Fn.type==="paragraph"?(Fn.raw+=`
|
||
`+Bn.raw,Fn.text+=`
|
||
`+Bn.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Fn.text):U.push(Bn),Wn=qn.length!==j.length,j=j.substring(Bn.raw.length);continue}if(Bn=this.tokenizer.text(j)){j=j.substring(Bn.raw.length),Fn=U[U.length-1],Fn&&Fn.type==="text"?(Fn.raw+=`
|
||
`+Bn.raw,Fn.text+=`
|
||
`+Bn.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Fn.text):U.push(Bn);continue}if(j){const Yn="Infinite loop on byte: "+j.charCodeAt(0);if(this.options.silent){console.error(Yn);break}else throw new Error(Yn)}}return this.state.top=!0,U}inline(j,U=[]){return this.inlineQueue.push({src:j,tokens:U}),U}inlineTokens(j,U=[]){let Bn,Fn,qn,Wn=j,Yn,Gn,Qn;if(this.tokens.links){const Zn=Object.keys(this.tokens.links);if(Zn.length>0)for(;(Yn=this.tokenizer.rules.inline.reflinkSearch.exec(Wn))!=null;)Zn.includes(Yn[0].slice(Yn[0].lastIndexOf("[")+1,-1))&&(Wn=Wn.slice(0,Yn.index)+"["+repeatString("a",Yn[0].length-2)+"]"+Wn.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Yn=this.tokenizer.rules.inline.blockSkip.exec(Wn))!=null;)Wn=Wn.slice(0,Yn.index)+"["+repeatString("a",Yn[0].length-2)+"]"+Wn.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Yn=this.tokenizer.rules.inline.escapedEmSt.exec(Wn))!=null;)Wn=Wn.slice(0,Yn.index+Yn[0].length-2)+"++"+Wn.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;j;)if(Gn||(Qn=""),Gn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(Zn=>(Bn=Zn.call({lexer:this},j,U))?(j=j.substring(Bn.raw.length),U.push(Bn),!0):!1))){if(Bn=this.tokenizer.escape(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.tag(j)){j=j.substring(Bn.raw.length),Fn=U[U.length-1],Fn&&Bn.type==="text"&&Fn.type==="text"?(Fn.raw+=Bn.raw,Fn.text+=Bn.text):U.push(Bn);continue}if(Bn=this.tokenizer.link(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.reflink(j,this.tokens.links)){j=j.substring(Bn.raw.length),Fn=U[U.length-1],Fn&&Bn.type==="text"&&Fn.type==="text"?(Fn.raw+=Bn.raw,Fn.text+=Bn.text):U.push(Bn);continue}if(Bn=this.tokenizer.emStrong(j,Wn,Qn)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.codespan(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.br(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.del(j)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(Bn=this.tokenizer.autolink(j,mangle)){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(!this.state.inLink&&(Bn=this.tokenizer.url(j,mangle))){j=j.substring(Bn.raw.length),U.push(Bn);continue}if(qn=j,this.options.extensions&&this.options.extensions.startInline){let Zn=1/0;const Kn=j.slice(1);let Xn;this.options.extensions.startInline.forEach(function(Jn){Xn=Jn.call({lexer:this},Kn),typeof Xn=="number"&&Xn>=0&&(Zn=Math.min(Zn,Xn))}),Zn<1/0&&Zn>=0&&(qn=j.substring(0,Zn+1))}if(Bn=this.tokenizer.inlineText(qn,smartypants)){j=j.substring(Bn.raw.length),Bn.raw.slice(-1)!=="_"&&(Qn=Bn.raw.slice(-1)),Gn=!0,Fn=U[U.length-1],Fn&&Fn.type==="text"?(Fn.raw+=Bn.raw,Fn.text+=Bn.text):U.push(Bn);continue}if(j){const Zn="Infinite loop on byte: "+j.charCodeAt(0);if(this.options.silent){console.error(Zn);break}else throw new Error(Zn)}}return U}}class Renderer{constructor(j){this.options=j||defaults}code(j,U,Bn){const Fn=(U||"").match(/\S*/)[0];if(this.options.highlight){const qn=this.options.highlight(j,Fn);qn!=null&&qn!==j&&(Bn=!0,j=qn)}return j=j.replace(/\n$/,"")+`
|
||
`,Fn?'<pre><code class="'+this.options.langPrefix+escape(Fn)+'">'+(Bn?j:escape(j,!0))+`</code></pre>
|
||
`:"<pre><code>"+(Bn?j:escape(j,!0))+`</code></pre>
|
||
`}blockquote(j){return`<blockquote>
|
||
${j}</blockquote>
|
||
`}html(j){return j}heading(j,U,Bn,Fn){if(this.options.headerIds){const qn=this.options.headerPrefix+Fn.slug(Bn);return`<h${U} id="${qn}">${j}</h${U}>
|
||
`}return`<h${U}>${j}</h${U}>
|
||
`}hr(){return this.options.xhtml?`<hr/>
|
||
`:`<hr>
|
||
`}list(j,U,Bn){const Fn=U?"ol":"ul",qn=U&&Bn!==1?' start="'+Bn+'"':"";return"<"+Fn+qn+`>
|
||
`+j+"</"+Fn+`>
|
||
`}listitem(j){return`<li>${j}</li>
|
||
`}checkbox(j){return"<input "+(j?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(j){return`<p>${j}</p>
|
||
`}table(j,U){return U&&(U=`<tbody>${U}</tbody>`),`<table>
|
||
<thead>
|
||
`+j+`</thead>
|
||
`+U+`</table>
|
||
`}tablerow(j){return`<tr>
|
||
${j}</tr>
|
||
`}tablecell(j,U){const Bn=U.header?"th":"td";return(U.align?`<${Bn} align="${U.align}">`:`<${Bn}>`)+j+`</${Bn}>
|
||
`}strong(j){return`<strong>${j}</strong>`}em(j){return`<em>${j}</em>`}codespan(j){return`<code>${j}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(j){return`<del>${j}</del>`}link(j,U,Bn){if(j=cleanUrl(this.options.sanitize,this.options.baseUrl,j),j===null)return Bn;let Fn='<a href="'+j+'"';return U&&(Fn+=' title="'+U+'"'),Fn+=">"+Bn+"</a>",Fn}image(j,U,Bn){if(j=cleanUrl(this.options.sanitize,this.options.baseUrl,j),j===null)return Bn;let Fn=`<img src="${j}" alt="${Bn}"`;return U&&(Fn+=` title="${U}"`),Fn+=this.options.xhtml?"/>":">",Fn}text(j){return j}}class TextRenderer{strong(j){return j}em(j){return j}codespan(j){return j}del(j){return j}html(j){return j}text(j){return j}link(j,U,Bn){return""+Bn}image(j,U,Bn){return""+Bn}br(){return""}}class Slugger{constructor(){this.seen={}}serialize(j){return j.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(j,U){let Bn=j,Fn=0;if(this.seen.hasOwnProperty(Bn)){Fn=this.seen[j];do Fn++,Bn=j+"-"+Fn;while(this.seen.hasOwnProperty(Bn))}return U||(this.seen[j]=Fn,this.seen[Bn]=0),Bn}slug(j,U={}){const Bn=this.serialize(j);return this.getNextSafeSlug(Bn,U.dryrun)}}class Parser{constructor(j){this.options=j||defaults,this.options.renderer=this.options.renderer||new Renderer,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new TextRenderer,this.slugger=new Slugger}static parse(j,U){return new Parser(U).parse(j)}static parseInline(j,U){return new Parser(U).parseInline(j)}parse(j,U=!0){let Bn="",Fn,qn,Wn,Yn,Gn,Qn,Zn,Kn,Xn,Jn,ta,ea,na,aa,ia,ua,ha,ga,$a;const la=j.length;for(Fn=0;Fn<la;Fn++){if(Jn=j[Fn],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Jn.type]&&($a=this.options.extensions.renderers[Jn.type].call({parser:this},Jn),$a!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Jn.type))){Bn+=$a||"";continue}switch(Jn.type){case"space":continue;case"hr":{Bn+=this.renderer.hr();continue}case"heading":{Bn+=this.renderer.heading(this.parseInline(Jn.tokens),Jn.depth,unescape(this.parseInline(Jn.tokens,this.textRenderer)),this.slugger);continue}case"code":{Bn+=this.renderer.code(Jn.text,Jn.lang,Jn.escaped);continue}case"table":{for(Kn="",Zn="",Yn=Jn.header.length,qn=0;qn<Yn;qn++)Zn+=this.renderer.tablecell(this.parseInline(Jn.header[qn].tokens),{header:!0,align:Jn.align[qn]});for(Kn+=this.renderer.tablerow(Zn),Xn="",Yn=Jn.rows.length,qn=0;qn<Yn;qn++){for(Qn=Jn.rows[qn],Zn="",Gn=Qn.length,Wn=0;Wn<Gn;Wn++)Zn+=this.renderer.tablecell(this.parseInline(Qn[Wn].tokens),{header:!1,align:Jn.align[Wn]});Xn+=this.renderer.tablerow(Zn)}Bn+=this.renderer.table(Kn,Xn);continue}case"blockquote":{Xn=this.parse(Jn.tokens),Bn+=this.renderer.blockquote(Xn);continue}case"list":{for(ta=Jn.ordered,ea=Jn.start,na=Jn.loose,Yn=Jn.items.length,Xn="",qn=0;qn<Yn;qn++)ia=Jn.items[qn],ua=ia.checked,ha=ia.task,aa="",ia.task&&(ga=this.renderer.checkbox(ua),na?ia.tokens.length>0&&ia.tokens[0].type==="paragraph"?(ia.tokens[0].text=ga+" "+ia.tokens[0].text,ia.tokens[0].tokens&&ia.tokens[0].tokens.length>0&&ia.tokens[0].tokens[0].type==="text"&&(ia.tokens[0].tokens[0].text=ga+" "+ia.tokens[0].tokens[0].text)):ia.tokens.unshift({type:"text",text:ga}):aa+=ga),aa+=this.parse(ia.tokens,na),Xn+=this.renderer.listitem(aa,ha,ua);Bn+=this.renderer.list(Xn,ta,ea);continue}case"html":{Bn+=this.renderer.html(Jn.text);continue}case"paragraph":{Bn+=this.renderer.paragraph(this.parseInline(Jn.tokens));continue}case"text":{for(Xn=Jn.tokens?this.parseInline(Jn.tokens):Jn.text;Fn+1<la&&j[Fn+1].type==="text";)Jn=j[++Fn],Xn+=`
|
||
`+(Jn.tokens?this.parseInline(Jn.tokens):Jn.text);Bn+=U?this.renderer.paragraph(Xn):Xn;continue}default:{const sa='Token with "'+Jn.type+'" type was not found.';if(this.options.silent){console.error(sa);return}else throw new Error(sa)}}}return Bn}parseInline(j,U){U=U||this.renderer;let Bn="",Fn,qn,Wn;const Yn=j.length;for(Fn=0;Fn<Yn;Fn++){if(qn=j[Fn],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[qn.type]&&(Wn=this.options.extensions.renderers[qn.type].call({parser:this},qn),Wn!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(qn.type))){Bn+=Wn||"";continue}switch(qn.type){case"escape":{Bn+=U.text(qn.text);break}case"html":{Bn+=U.html(qn.text);break}case"link":{Bn+=U.link(qn.href,qn.title,this.parseInline(qn.tokens,U));break}case"image":{Bn+=U.image(qn.href,qn.title,qn.text);break}case"strong":{Bn+=U.strong(this.parseInline(qn.tokens,U));break}case"em":{Bn+=U.em(this.parseInline(qn.tokens,U));break}case"codespan":{Bn+=U.codespan(qn.text);break}case"br":{Bn+=U.br();break}case"del":{Bn+=U.del(this.parseInline(qn.tokens,U));break}case"text":{Bn+=U.text(qn.text);break}default:{const Gn='Token with "'+qn.type+'" type was not found.';if(this.options.silent){console.error(Gn);return}else throw new Error(Gn)}}}return Bn}}function marked(b,j,U){if(typeof b>"u"||b===null)throw new Error("marked(): input parameter is undefined or null");if(typeof b!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(b)+", string expected");if(typeof j=="function"&&(U=j,j=null),j=merge({},marked.defaults,j||{}),checkSanitizeDeprecation(j),U){const Fn=j.highlight;let qn;try{qn=Lexer.lex(b,j)}catch(Gn){return U(Gn)}const Wn=function(Gn){let Qn;if(!Gn)try{j.walkTokens&&marked.walkTokens(qn,j.walkTokens),Qn=Parser.parse(qn,j)}catch(Zn){Gn=Zn}return j.highlight=Fn,Gn?U(Gn):U(null,Qn)};if(!Fn||Fn.length<3||(delete j.highlight,!qn.length))return Wn();let Yn=0;marked.walkTokens(qn,function(Gn){Gn.type==="code"&&(Yn++,setTimeout(()=>{Fn(Gn.text,Gn.lang,function(Qn,Zn){if(Qn)return Wn(Qn);Zn!=null&&Zn!==Gn.text&&(Gn.text=Zn,Gn.escaped=!0),Yn--,Yn===0&&Wn()})},0))}),Yn===0&&Wn();return}function Bn(Fn){if(Fn.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,j.silent)return"<p>An error occurred:</p><pre>"+escape(Fn.message+"",!0)+"</pre>";throw Fn}try{const Fn=Lexer.lex(b,j);if(j.walkTokens){if(j.async)return Promise.all(marked.walkTokens(Fn,j.walkTokens)).then(()=>Parser.parse(Fn,j)).catch(Bn);marked.walkTokens(Fn,j.walkTokens)}return Parser.parse(Fn,j)}catch(Fn){Bn(Fn)}}marked.options=marked.setOptions=function(b){return merge(marked.defaults,b),changeDefaults(marked.defaults),marked};marked.getDefaults=getDefaults;marked.defaults=defaults;marked.use=function(...b){const j=marked.defaults.extensions||{renderers:{},childTokens:{}};b.forEach(U=>{const Bn=merge({},U);if(Bn.async=marked.defaults.async||Bn.async,U.extensions&&(U.extensions.forEach(Fn=>{if(!Fn.name)throw new Error("extension name required");if(Fn.renderer){const qn=j.renderers[Fn.name];qn?j.renderers[Fn.name]=function(...Wn){let Yn=Fn.renderer.apply(this,Wn);return Yn===!1&&(Yn=qn.apply(this,Wn)),Yn}:j.renderers[Fn.name]=Fn.renderer}if(Fn.tokenizer){if(!Fn.level||Fn.level!=="block"&&Fn.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");j[Fn.level]?j[Fn.level].unshift(Fn.tokenizer):j[Fn.level]=[Fn.tokenizer],Fn.start&&(Fn.level==="block"?j.startBlock?j.startBlock.push(Fn.start):j.startBlock=[Fn.start]:Fn.level==="inline"&&(j.startInline?j.startInline.push(Fn.start):j.startInline=[Fn.start]))}Fn.childTokens&&(j.childTokens[Fn.name]=Fn.childTokens)}),Bn.extensions=j),U.renderer){const Fn=marked.defaults.renderer||new Renderer;for(const qn in U.renderer){const Wn=Fn[qn];Fn[qn]=(...Yn)=>{let Gn=U.renderer[qn].apply(Fn,Yn);return Gn===!1&&(Gn=Wn.apply(Fn,Yn)),Gn}}Bn.renderer=Fn}if(U.tokenizer){const Fn=marked.defaults.tokenizer||new Tokenizer;for(const qn in U.tokenizer){const Wn=Fn[qn];Fn[qn]=(...Yn)=>{let Gn=U.tokenizer[qn].apply(Fn,Yn);return Gn===!1&&(Gn=Wn.apply(Fn,Yn)),Gn}}Bn.tokenizer=Fn}if(U.walkTokens){const Fn=marked.defaults.walkTokens;Bn.walkTokens=function(qn){let Wn=[];return Wn.push(U.walkTokens.call(this,qn)),Fn&&(Wn=Wn.concat(Fn.call(this,qn))),Wn}}marked.setOptions(Bn)})};marked.walkTokens=function(b,j){let U=[];for(const Bn of b)switch(U=U.concat(j.call(marked,Bn)),Bn.type){case"table":{for(const Fn of Bn.header)U=U.concat(marked.walkTokens(Fn.tokens,j));for(const Fn of Bn.rows)for(const qn of Fn)U=U.concat(marked.walkTokens(qn.tokens,j));break}case"list":{U=U.concat(marked.walkTokens(Bn.items,j));break}default:marked.defaults.extensions&&marked.defaults.extensions.childTokens&&marked.defaults.extensions.childTokens[Bn.type]?marked.defaults.extensions.childTokens[Bn.type].forEach(function(Fn){U=U.concat(marked.walkTokens(Bn[Fn],j))}):Bn.tokens&&(U=U.concat(marked.walkTokens(Bn.tokens,j)))}return U};marked.parseInline=function(b,j){if(typeof b>"u"||b===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof b!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(b)+", string expected");j=merge({},marked.defaults,j||{}),checkSanitizeDeprecation(j);try{const U=Lexer.lexInline(b,j);return j.walkTokens&&marked.walkTokens(U,j.walkTokens),Parser.parseInline(U,j)}catch(U){if(U.message+=`
|
||
Please report this to https://github.com/markedjs/marked.`,j.silent)return"<p>An error occurred:</p><pre>"+escape(U.message+"",!0)+"</pre>";throw U}};marked.Parser=Parser;marked.parser=Parser.parse;marked.Renderer=Renderer;marked.TextRenderer=TextRenderer;marked.Lexer=Lexer;marked.lexer=Lexer.lex;marked.Tokenizer=Tokenizer;marked.Slugger=Slugger;marked.parse=marked;marked.options;marked.setOptions;marked.use;marked.walkTokens;marked.parseInline;Parser.parse;Lexer.lex;const O$2=({size:b})=>h$3("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:b,height:b},[h$3("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),h$3("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),P$3=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),V$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),T$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),h$3("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),D$2=({active:b=!1})=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+(b?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:b?"red":"currentColor"})]),N$2=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[h$3("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),h$3("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),B$2=()=>h$3("svg",{width:"16",height:"16",ariaHidden:"true"},h$3("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),W$1=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),F$2=()=>h$3("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},h$3("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),K=()=>h$3("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},h$3("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),q$1=({size:b})=>h$3("svg",{width:b,height:b,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},h$3("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},h$3("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),G$1=()=>h$3("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[h$3("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),h$3("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Z={"Content-Type":"application/json"},J$1=(b,j="")=>{if(typeof b=="object"&&b.errno)throw new TypeError(`${j} failed with ${b.errno}: ${b.errmsg}`);return b},Y$1=({serverURL:b,lang:j,path:U,type:Bn,action:Fn})=>fetch(`${b}/article?lang=${j}`,{method:"POST",headers:Z,body:JSON.stringify({path:U,type:Bn,action:Fn})}).then(qn=>qn.json()),X=({serverURL:b,lang:j,token:U,objectId:Bn,comment:Fn})=>fetch(`${b}/comment/${Bn}?lang=${j}`,{method:"PUT",headers:{...Z,Authorization:`Bearer ${U}`},body:JSON.stringify(Fn)}).then(qn=>qn.json()).then(qn=>J$1(qn,"Update comment"));let Q$1=null;const ee=()=>Q$1||(Q$1=useStorage("WALINE_LIKE",[]));let te=null;const ne=()=>te??(te=useStorage("WALINE_REACTION",{}));var ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},le={},ie={},oe={},re=ae&&ae.__awaiter||function(b,j,U,Bn){return new(U||(U=Promise))(function(Fn,qn){function Wn(Qn){try{Gn(Bn.next(Qn))}catch(Zn){qn(Zn)}}function Yn(Qn){try{Gn(Bn.throw(Qn))}catch(Zn){qn(Zn)}}function Gn(Qn){var Zn;Qn.done?Fn(Qn.value):(Zn=Qn.value,Zn instanceof U?Zn:new U(function(Kn){Kn(Zn)})).then(Wn,Yn)}Gn((Bn=Bn.apply(b,j||[])).next())})},se=ae&&ae.__generator||function(b,j){var U,Bn,Fn,qn,Wn={label:0,sent:function(){if(1&Fn[0])throw Fn[1];return Fn[1]},trys:[],ops:[]};return qn={next:Yn(0),throw:Yn(1),return:Yn(2)},typeof Symbol=="function"&&(qn[Symbol.iterator]=function(){return this}),qn;function Yn(Gn){return function(Qn){return function(Zn){if(U)throw new TypeError("Generator is already executing.");for(;Wn;)try{if(U=1,Bn&&(Fn=2&Zn[0]?Bn.return:Zn[0]?Bn.throw||((Fn=Bn.return)&&Fn.call(Bn),0):Bn.next)&&!(Fn=Fn.call(Bn,Zn[1])).done)return Fn;switch(Bn=0,Fn&&(Zn=[2&Zn[0],Fn.value]),Zn[0]){case 0:case 1:Fn=Zn;break;case 4:return Wn.label++,{value:Zn[1],done:!1};case 5:Wn.label++,Bn=Zn[1],Zn=[0];continue;case 7:Zn=Wn.ops.pop(),Wn.trys.pop();continue;default:if(Fn=Wn.trys,!((Fn=Fn.length>0&&Fn[Fn.length-1])||Zn[0]!==6&&Zn[0]!==2)){Wn=0;continue}if(Zn[0]===3&&(!Fn||Zn[1]>Fn[0]&&Zn[1]<Fn[3])){Wn.label=Zn[1];break}if(Zn[0]===6&&Wn.label<Fn[1]){Wn.label=Fn[1],Fn=Zn;break}if(Fn&&Wn.label<Fn[2]){Wn.label=Fn[2],Wn.ops.push(Zn);break}Fn[2]&&Wn.ops.pop(),Wn.trys.pop();continue}Zn=j.call(b,Wn)}catch(Kn){Zn=[6,Kn],Bn=0}finally{U=Fn=0}if(5&Zn[0])throw Zn[1];return{value:Zn[0]?Zn[1]:void 0,done:!0}}([Gn,Qn])}}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.ReCaptchaInstance=void 0;var ce=function(){function b(j,U,Bn){this.siteKey=j,this.recaptchaID=U,this.recaptcha=Bn,this.styleContainer=null}return b.prototype.execute=function(j){return re(this,void 0,void 0,function(){return se(this,function(U){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:j}):this.recaptcha.execute(this.recaptchaID,{action:j})]})})},b.prototype.getSiteKey=function(){return this.siteKey},b.prototype.hideBadge=function(){this.styleContainer===null&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},b.prototype.showBadge=function(){this.styleContainer!==null&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},b}();oe.ReCaptchaInstance=ce,Object.defineProperty(ie,"__esModule",{value:!0}),ie.getInstance=ie.load=void 0;var ue,de=oe;(function(b){b[b.NOT_LOADED=0]="NOT_LOADED",b[b.LOADING=1]="LOADING",b[b.LOADED=2]="LOADED"})(ue||(ue={}));var me=function(){function b(){}return b.load=function(j,U){if(U===void 0&&(U={}),typeof document>"u")return Promise.reject(new Error("This is a library for the browser!"));if(b.getLoadingState()===ue.LOADED)return b.instance.getSiteKey()===j?Promise.resolve(b.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(b.getLoadingState()===ue.LOADING)return j!==b.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(Fn,qn){b.successfulLoadingConsumers.push(function(Wn){return Fn(Wn)}),b.errorLoadingRunnable.push(function(Wn){return qn(Wn)})});b.instanceSiteKey=j,b.setLoadingState(ue.LOADING);var Bn=new b;return new Promise(function(Fn,qn){Bn.loadScript(j,U.useRecaptchaNet||!1,U.useEnterprise||!1,U.renderParameters?U.renderParameters:{},U.customUrl).then(function(){b.setLoadingState(ue.LOADED);var Wn=Bn.doExplicitRender(grecaptcha,j,U.explicitRenderParameters?U.explicitRenderParameters:{},U.useEnterprise||!1),Yn=new de.ReCaptchaInstance(j,Wn,grecaptcha);b.successfulLoadingConsumers.forEach(function(Gn){return Gn(Yn)}),b.successfulLoadingConsumers=[],U.autoHideBadge&&Yn.hideBadge(),b.instance=Yn,Fn(Yn)}).catch(function(Wn){b.errorLoadingRunnable.forEach(function(Yn){return Yn(Wn)}),b.errorLoadingRunnable=[],qn(Wn)})})},b.getInstance=function(){return b.instance},b.setLoadingState=function(j){b.loadingState=j},b.getLoadingState=function(){return b.loadingState===null?ue.NOT_LOADED:b.loadingState},b.prototype.loadScript=function(j,U,Bn,Fn,qn){var Wn=this;U===void 0&&(U=!1),Bn===void 0&&(Bn=!1),Fn===void 0&&(Fn={}),qn===void 0&&(qn="");var Yn=document.createElement("script");Yn.setAttribute("recaptcha-v3-script","");var Gn="https://www.google.com/recaptcha/api.js";U&&(Gn=Bn?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),Bn&&(Gn="https://www.google.com/recaptcha/enterprise.js"),qn&&(Gn=qn),Fn.render&&(Fn.render=void 0);var Qn=this.buildQueryString(Fn);return Yn.src=Gn+"?render=explicit"+Qn,new Promise(function(Zn,Kn){Yn.addEventListener("load",Wn.waitForScriptToLoad(function(){Zn(Yn)},Bn),!1),Yn.onerror=function(Xn){b.setLoadingState(ue.NOT_LOADED),Kn(Xn)},document.head.appendChild(Yn)})},b.prototype.buildQueryString=function(j){return Object.keys(j).length<1?"":"&"+Object.keys(j).filter(function(U){return!!j[U]}).map(function(U){return U+"="+j[U]}).join("&")},b.prototype.waitForScriptToLoad=function(j,U){var Bn=this;return function(){window.grecaptcha===void 0?setTimeout(function(){Bn.waitForScriptToLoad(j,U)},b.SCRIPT_LOAD_DELAY):U?window.grecaptcha.enterprise.ready(function(){j()}):window.grecaptcha.ready(function(){j()})}},b.prototype.doExplicitRender=function(j,U,Bn,Fn){var qn={sitekey:U,badge:Bn.badge,size:Bn.size,tabindex:Bn.tabindex};return Bn.container?Fn?j.enterprise.render(Bn.container,qn):j.render(Bn.container,qn):Fn?j.enterprise.render(qn):j.render(qn)},b.loadingState=null,b.instance=null,b.instanceSiteKey=null,b.successfulLoadingConsumers=[],b.errorLoadingRunnable=[],b.SCRIPT_LOAD_DELAY=25,b}();ie.load=me.load,ie.getInstance=me.getInstance,function(b){Object.defineProperty(b,"__esModule",{value:!0}),b.ReCaptchaInstance=b.getInstance=b.load=void 0;var j=ie;Object.defineProperty(b,"load",{enumerable:!0,get:function(){return j.load}}),Object.defineProperty(b,"getInstance",{enumerable:!0,get:function(){return j.getInstance}});var U=oe;Object.defineProperty(b,"ReCaptchaInstance",{enumerable:!0,get:function(){return U.ReCaptchaInstance}})}(le);const ve={};let pe=null;const he=()=>pe??(pe=useStorage("WALINE_USER",{})),ge={key:0,class:"wl-reaction"},fe=["textContent"],ye={class:"wl-reaction-list"},we=["onClick"],be={class:"wl-reaction-img"},ke=["src","alt"],Ce=["textContent"],$e=["textContent"];var Le=defineComponent({__name:"ArticleReaction",setup(b,{expose:j}){j();const U=ne(),Bn=inject("config"),Fn=ref(-1),qn=ref([]),Wn=computed(()=>Bn.value.locale),Yn=computed(()=>Bn.value.reaction.length>0),Gn=computed(()=>{const{reaction:Kn,path:Xn}=Bn.value;return Kn.map((Jn,ta)=>({icon:Jn,desc:Wn.value[`reaction${ta}`],active:U.value[Xn]===ta}))});let Qn;const Zn=async()=>{if(Yn.value){const{serverURL:Kn,lang:Xn,path:Jn,reaction:ta}=Bn.value,ea=new AbortController;Qn=ea.abort.bind(ea);const na=await(({serverURL:aa,lang:ia,paths:ua,type:ha,signal:ga})=>fetch(`${aa}/article?path=${encodeURIComponent(ua.join(","))}&type=${encodeURIComponent(ha.join(","))}&lang=${ia}`,{signal:ga}).then($a=>$a.json()))({serverURL:Kn,lang:Xn,paths:[Jn],type:ta.map((aa,ia)=>`reaction${ia}`),signal:ea.signal});if(Array.isArray(na)||typeof na=="number")return;qn.value=ta.map((aa,ia)=>na[`reaction${ia}`])}};return onMounted(()=>{watch(()=>[Bn.value.serverURL,Bn.value.path],()=>{Zn()},{immediate:!0})}),onUnmounted(()=>Qn==null?void 0:Qn()),(Kn,Xn)=>unref(Gn).length?(openBlock(),createElementBlock("div",ge,[createBaseVNode("div",{class:"wl-reaction-title",textContent:toDisplayString(unref(Wn).reactionTitle)},null,8,fe),createBaseVNode("ul",ye,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Gn),({active:Jn,icon:ta,desc:ea},na)=>(openBlock(),createElementBlock("li",{key:na,class:normalizeClass(["wl-reaction-item",{active:Jn}]),onClick:aa=>(async ia=>{if(Fn.value===-1){const{serverURL:ua,lang:ha,path:ga}=Bn.value,$a=U.value[ga];Fn.value=ia,$a!==void 0&&(await Y$1({serverURL:ua,lang:ha,path:ga,type:`reaction${$a}`,action:"desc"}),qn.value[$a]=Math.max(qn.value[$a]-1,0)),$a!==ia&&(await Y$1({serverURL:ua,lang:ha,path:ga,type:`reaction${ia}`}),qn.value[ia]=(qn.value[ia]||0)+1),$a===ia?delete U.value[ga]:U.value[ga]=ia,Fn.value=-1}})(na)},[createBaseVNode("div",be,[createBaseVNode("img",{src:ta,alt:ea},null,8,ke),Fn.value===na?(openBlock(),createBlock(unref(q$1),{key:0,class:"wl-reaction-loading"})):(openBlock(),createElementBlock("div",{key:1,class:"wl-reaction-votes",textContent:toDisplayString(qn.value[na]||0)},null,8,Ce))]),createBaseVNode("div",{class:"wl-reaction-text",textContent:toDisplayString(ea)},null,8,$e)],10,we))),128))])])):createCommentVNode("v-if",!0)}}),xe=(b,j)=>{const U=b.__vccOpts||b;for(const[Bn,Fn]of j)U[Bn]=Fn;return U},Ie=xe(Le,[["__file","ArticleReaction.vue"]]);const Re=["data-index"],Ee=["src","title","onClick"];var je=xe(defineComponent({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(b,{expose:j}){const U=b;j();let Bn=null;const Fn=ref(null),qn=ref({}),Wn=ref([]),Yn=()=>{const Kn=Math.floor((Fn.value.getBoundingClientRect().width+U.gap)/(U.columnWidth+U.gap));return Kn>0?Kn:1},Gn=async Kn=>{var Jn;if(Kn>=U.items.length)return;await nextTick();const Xn=Array.from(((Jn=Fn.value)==null?void 0:Jn.children)||[]).reduce((ta,ea)=>ea.getBoundingClientRect().height<ta.getBoundingClientRect().height?ea:ta);Wn.value[Number(Xn.dataset.index)].push(Kn),await Gn(Kn+1)},Qn=async(Kn=!1)=>{if(Wn.value.length===Yn()&&!Kn)return;var Xn;Wn.value=(Xn=Yn(),new Array(Xn).fill(null).map(()=>[]));const Jn=window.scrollY;await Gn(0),window.scrollTo({top:Jn})},Zn=Kn=>{qn.value[Kn.target.src]=!0};return onMounted(()=>{Qn(!0),Bn=new ResizeObserver(()=>{Qn()}),Bn.observe(Fn.value),watch(()=>[U.items],()=>{qn.value={},Qn(!0)}),watch(()=>[U.columnWidth,U.gap],()=>{Qn()})}),onBeforeUnmount(()=>Bn.unobserve(Fn.value)),(Kn,Xn)=>(openBlock(),createElementBlock("div",{ref_key:"wall",ref:Fn,class:"wl-gallery",style:normalizeStyle({gap:`${b.gap}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Wn.value,(Jn,ta)=>(openBlock(),createElementBlock("div",{key:ta,class:"wl-gallery-column","data-index":ta,style:normalizeStyle({gap:`${b.gap}px`})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Jn,ea=>(openBlock(),createElementBlock(Fragment,{key:ea},[qn.value[b.items[ea].src]?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(q$1),{key:0,size:36,style:{margin:"20px auto"}})),createBaseVNode("img",{class:"wl-gallery-item",src:b.items[ea].src,title:b.items[ea].title,loading:"lazy",onLoad:Zn,onClick:na=>Kn.$emit("insert",``)},null,40,Ee)],64))),128))],12,Re))),128))],4))}}),[["__file","ImageWall.vue"]]);const Se=["nick","mail","link"],_e=b=>b.filter(j=>Se.includes(j)),Ae=["//unpkg.com/@waline/emojis@1.1.0/weibo"],ze=b=>new Promise((j,U)=>{if(b.size>128e3)return U(new Error("File too large! File size limit 128KB"));const Bn=new FileReader;Bn.readAsDataURL(b),Bn.onload=()=>{var Fn;return j(((Fn=Bn.result)==null?void 0:Fn.toString())||"")},Bn.onerror=U}),Ue=b=>b===!0?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',Me=b=>{const j=async(U,Bn={})=>fetch(`https://api.giphy.com/v1/gifs/${U}?${new URLSearchParams({lang:b,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...Bn}).toString()}`).then(Fn=>Fn.json()).then(({data:Fn})=>Fn.map(qn=>({title:qn.title,src:qn.images.downsized_medium.url})));return{search:U=>j("search",{q:U,offset:"0"}),default:()=>j("trending",{}),more:(U,Bn=0)=>j("search",{q:U,offset:Bn.toString()})}},He=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],Oe=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),Pe=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],Ve={},Te=b=>{let j=0;return b.replace(Oe,(U,Bn,Fn)=>{if(Fn)return`<span style="color: slategray">${Fn}</span>`;if(Bn==="<")return"<";let qn;Ve[Bn]?qn=Ve[Bn]:(qn=Pe[j],Ve[Bn]=qn);const Wn=`<span style="color: #${qn}">${Bn}</span>`;return j=++j%Pe.length,Wn})},De=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],Ne=b=>Object.fromEntries(b.map((j,U)=>[De[U],j]));var Be=Ne(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words!
|
||
Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),We=Ne(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません!
|
||
現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),Fe=Ne(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间!
|
||
当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Ke=Ne(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字",`評論字數應在 $0 到 $1 字之間!
|
||
當前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),qe=Ne(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras!
|
||
Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Ge=Ne(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов!
|
||
Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const Ze={zh:Fe,"zh-cn":Fe,"zh-CN":Fe,"zh-tw":Ke,"zh-TW":Ke,en:Be,"en-US":Be,"en-us":Be,jp:We,ja:We,"jp-jp":We,"jp-JP":We,"pt-br":qe,"pt-BR":qe,ru:Ge,"ru-ru":Ge,"ru-RU":Ge},Je=b=>{try{b=decodeURI(b)}catch{}return b},Ye=(b="")=>b.replace(/\/$/u,""),Xe=b=>/^(https?:)?\/\//.test(b),Qe=b=>{const j=Ye(b);return Xe(j)?j:`https://${j}`},et=b=>Array.isArray(b)?b:!!b&&[0,b],tt=(b,j)=>typeof b=="function"?b:b!==!1&&j,nt="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",at=(b,j)=>{let U=b.toString();for(;U.length<j;)U="0"+U;return U},lt=(b,j,U)=>{if(!b)return"";const Bn=typeof b=="string"?new Date(b.indexOf(" ")!==-1?b.replace(/-/g,"/"):b):b,Fn=j.getTime()-Bn.getTime(),qn=Math.floor(Fn/864e5);if(qn===0){const Wn=Fn%864e5,Yn=Math.floor(Wn/36e5);if(Yn===0){const Gn=Wn%36e5,Qn=Math.floor(Gn/6e4);if(Qn===0){const Zn=Gn%6e4;return`${Math.round(Zn/1e3)} ${U.seconds}`}return`${Qn} ${U.minutes}`}return`${Yn} ${U.hours}`}return qn<0?U.now:qn<8?`${qn} ${U.days}`:(Wn=>{const Yn=at(Wn.getDate(),2),Gn=at(Wn.getMonth()+1,2);return`${at(Wn.getFullYear(),2)}-${Gn}-${Yn}`})(Bn)},it=b=>{const j=useStorage("WALINE_EMOJI",{}),U=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(b));if(U){const Bn=j.value[b];if(Bn)return Promise.resolve(Bn)}return fetch(`${b}/info.json`).then(Bn=>Bn.json()).then(Bn=>{const Fn={folder:b,...Bn};return U&&(j.value[b]=Fn),Fn})},ot=(b,j="",U="",Bn="")=>`${j?`${j}/`:""}${U}${b}${Bn?`.${Bn}`:""}`,rt=b=>b.type.includes("image"),st=b=>{const j=Array.from(b).find(rt);return j?j.getAsFile():null},ct=/\$.*?\$/,ut=/^\$(.*?)\$/,dt=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,mt=(b="",j={})=>b.replace(/:(.+?):/g,(U,Bn)=>j[Bn]?`<img class="wl-emoji" src="${j[Bn]}" alt="${Bn}">`:U),vt=(b,{emojiMap:j,highlighter:U,texRenderer:Bn})=>{if(marked.setOptions({highlight:U||void 0,breaks:!0,smartLists:!0,smartypants:!0}),Bn){const Fn=(qn=>[{name:"blockMath",level:"block",tokenizer(Wn){const Yn=dt.exec(Wn);if(Yn!==null)return{type:"html",raw:Yn[0],text:qn(!0,Yn[1])}}},{name:"inlineMath",level:"inline",start(Wn){const Yn=Wn.search(ct);return Yn!==-1?Yn:Wn.length},tokenizer(Wn){const Yn=ut.exec(Wn);if(Yn!==null)return{type:"html",raw:Yn[0],text:qn(!1,Yn[1])}}}])(Bn);marked.use({extensions:Fn})}return marked.parse(mt(b,j))},pt={class:"wl-comment"},ht={key:0,class:"wl-login-info"},gt={class:"wl-avatar"},ft=["title"],yt=["title"],wt=["src"],bt=["title","textContent"],kt={class:"wl-panel"},Ct=["for","textContent"],$t=["id","onUpdate:modelValue","name","type"],Lt=["placeholder"],xt={class:"wl-preview"},It=createBaseVNode("hr",null,null,-1),Rt=["innerHTML"],Et={class:"wl-footer"},jt={class:"wl-actions"},St={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},_t=["title"],At=["title"],zt=["title"],Ut=["title"],Mt={class:"wl-info"},Ht={class:"wl-text-number"},Ot={key:0},Pt=["textContent"],Vt=["textContent"],Tt=["disabled"],Dt=["placeholder"],Nt={key:0,class:"wl-loading"},Bt={key:0,class:"wl-tab-wrapper"},Wt=["title","onClick"],Ft=["src","alt"],Kt={key:0,class:"wl-tabs"},qt=["onClick"],Gt=["src","alt","title"],Zt=["title"];var Jt=defineComponent({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(b,{expose:j,emit:U}){const Bn=b;j();const Fn=inject("config"),qn=useStorage("WALINE_COMMENT_BOX_EDITOR",""),Wn=useStorage("WALINE_USER_META",{nick:"",mail:"",link:""}),Yn=he(),Gn=ref({}),Qn=ref(null),Zn=ref(null),Kn=ref(null),Xn=ref(null),Jn=ref(null),ta=ref(null),ea=ref(null),na=ref({tabs:[],map:{}}),aa=ref(0),ia=ref(!1),ua=ref(!1),ha=ref(!1),ga=ref(""),$a=ref(0),la=reactive({loading:!0,list:[]}),sa=ref(0),ya=ref(!1),La=ref(""),Da=ref(!1),wa=ref(!1),ca=computed(()=>Fn.value.locale),oa=computed(()=>{var va;return Boolean((va=Yn.value)==null?void 0:va.token)}),ra=computed(()=>Fn.value.imageUploader!==!1),pa=va=>{const ma=Qn.value,Sa=ma.selectionStart,Aa=ma.selectionEnd||0,ka=ma.scrollTop;qn.value=ma.value.substring(0,Sa)+va+ma.value.substring(Aa,ma.value.length),ma.focus(),ma.selectionStart=Sa+va.length,ma.selectionEnd=Sa+va.length,ma.scrollTop=ka},da=va=>{const ma=va.key;(va.ctrlKey||va.metaKey)&&ma==="Enter"&&Ea()},fa=va=>{const ma=`![${Fn.value.locale.uploading} ${va.name}]()`;return pa(ma),Promise.resolve().then(()=>Fn.value.imageUploader(va)).then(Sa=>{qn.value=qn.value.replace(ma,`\r
|
||
`)}).catch(Sa=>{alert(Sa.message),qn.value=qn.value.replace(ma,"")})},ba=va=>{var ma;if((ma=va.dataTransfer)!=null&&ma.items){const Sa=st(va.dataTransfer.items);Sa&&ra.value&&(fa(Sa),va.preventDefault())}},Ca=va=>{if(va.clipboardData){const ma=st(va.clipboardData.items);ma&&ra.value&&fa(ma)}},Ta=()=>{const va=Zn.value;va.files&&ra.value&&fa(va.files[0]).then(()=>{va.value=""})},Ea=async()=>{var Ua,Ha,ja,Ya,Wa;const{serverURL:va,lang:ma,login:Sa,wordLimit:Aa,requiredMeta:ka}=Fn.value;let Ia="";Fn.value.recaptchaV3Key&&(Ia=await(Fa=>{const qa=ve[Fa]??(ve[Fa]=le.load(Fa,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:Ga=>qa.then(Qa=>Qa.execute(Ga))}})(Fn.value.recaptchaV3Key).execute("social"));const xa={comment:La.value,nick:Wn.value.nick,mail:Wn.value.mail,link:Wn.value.link,ua:navigator.userAgent,url:Fn.value.path,recaptchaV3:Ia};if((Ua=Yn.value)!=null&&Ua.token)xa.nick=Yn.value.display_name,xa.mail=Yn.value.email,xa.link=Yn.value.url;else{if(Sa==="force")return;if(ka.indexOf("nick")>-1&&!xa.nick)return(Ha=Gn.value.nick)==null||Ha.focus(),alert(ca.value.nickError);if(ka.indexOf("mail")>-1&&!xa.mail||xa.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(xa.mail))return(ja=Gn.value.mail)==null||ja.focus(),alert(ca.value.mailError);if(!xa.comment)return void((Ya=Qn.value)==null?void 0:Ya.focus());xa.nick||(xa.nick=ca.value.anonymous)}if(!ya.value)return alert(ca.value.wordHint.replace("$0",Aa[0].toString()).replace("$1",Aa[1].toString()).replace("$2",$a.value.toString()));xa.comment=mt(xa.comment,na.value.map),Bn.replyId&&Bn.rootId&&(xa.pid=Bn.replyId,xa.rid=Bn.rootId,xa.at=Bn.replyUser),Da.value=!0;const Va={serverURL:va,lang:ma,token:(Wa=Yn.value)==null?void 0:Wa.token,comment:xa};(Bn.edit?X({objectId:Bn.edit.objectId,...Va}):(({serverURL:Fa,lang:qa,token:Ga,comment:Qa})=>{const Za={"Content-Type":"application/json"};return Ga&&(Za.Authorization=`Bearer ${Ga}`),fetch(`${Fa}/comment?lang=${qa}`,{method:"POST",headers:Za,body:JSON.stringify(Qa)}).then(Ka=>Ka.json())})(Va)).then(Fa=>{var qa;if(Da.value=!1,Fa.errmsg)return alert(Fa.errmsg);U("submit",Fa.data),qn.value="",ga.value="",Bn.replyId&&U("cancelReply"),(qa=Bn.edit)!=null&&qa.objectId&&U("cancelEdit")}).catch(Fa=>{Da.value=!1,alert(Fa.message)})},Pa=va=>{va.preventDefault();const{lang:ma,serverURL:Sa}=Fn.value;(({lang:Aa,serverURL:ka})=>{const Ia=(window.innerWidth-450)/2,xa=(window.innerHeight-450)/2,Va=window.open(`${ka}/ui/login?lng=${encodeURIComponent(Aa)}`,"_blank",`width=450,height=450,left=${Ia},top=${xa},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return Va==null||Va.postMessage({type:"TOKEN",data:null},"*"),new Promise(Ua=>{const Ha=({data:ja})=>{ja&&typeof ja=="object"&&ja.type==="userInfo"&&ja.data.token&&(Va==null||Va.close(),window.removeEventListener("message",Ha),Ua(ja.data))};window.addEventListener("message",Ha)})})({serverURL:Sa,lang:ma}).then(Aa=>{Yn.value=Aa,(Aa.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(Aa)),U("log")})},Ma=()=>{Yn.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),U("log")},Ra=va=>{var xa;va.preventDefault();const{lang:ma,serverURL:Sa}=Fn.value,Aa=(window.innerWidth-800)/2,ka=(window.innerHeight-800)/2,Ia=new URLSearchParams({lng:ma,token:Yn.value.token});(xa=window.open(`${Sa}/ui/profile?${Ia.toString()}`,"_blank",`width=800,height=800,left=${Aa},top=${ka},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`))==null||xa.postMessage({type:"TOKEN",data:Yn.value.token},"*")},Na=va=>{var ma,Sa,Aa,ka;(ma=Kn.value)!=null&&ma.contains(va.target)||(Sa=Xn.value)!=null&&Sa.contains(va.target)||(ia.value=!1),(Aa=Jn.value)!=null&&Aa.contains(va.target)||(ka=ta.value)!=null&&ka.contains(va.target)||(ua.value=!1)},Ba=async va=>{var Va;const{scrollTop:ma,clientHeight:Sa,scrollHeight:Aa}=va.target,ka=(Sa+ma)/Aa,Ia=Fn.value.search,xa=((Va=ea.value)==null?void 0:Va.value)||"";ka<.9||la.loading||wa.value||(la.loading=!0,(Ia.more&&la.list.length?await Ia.more(xa,la.list.length):await Ia.search(xa)).length?la.list=[...la.list,...Ia.more&&la.list.length?await Ia.more(xa,la.list.length):await Ia.search(xa)]:wa.value=!0,la.loading=!1,setTimeout(()=>{va.target.scrollTop=ma},50))},za=useDebounceFn(va=>{la.list=[],wa.value=!1,Ba(va)},300);watch([Fn,$a],([va,ma])=>{const{wordLimit:Sa}=va;Sa?ma<Sa[0]&&Sa[0]!==0?(sa.value=Sa[0],ya.value=!1):ma>Sa[1]?(sa.value=Sa[1],ya.value=!1):(sa.value=Sa[1],ya.value=!0):(sa.value=0,ya.value=!0)},{immediate:!0});const Oa=({data:va})=>{va&&va.type==="profile"&&(Yn.value={...Yn.value,...va.data},[localStorage,sessionStorage].filter(ma=>ma.getItem("WALINE_USER")).forEach(ma=>ma.setItem("WALINE_USER",JSON.stringify(Yn))))};return onMounted(()=>{var va;document.body.addEventListener("click",Na),window.addEventListener("message",Oa),(va=Bn.edit)!=null&&va.objectId&&(qn.value=Bn.edit.orig),watch(ua,async ma=>{if(!ma)return;const Sa=Fn.value.search;ea.value&&(ea.value.value=""),la.loading=!0,la.list=Sa.default?await Sa.default():await Sa.search(""),la.loading=!1}),watch(()=>qn.value,ma=>{const{highlighter:Sa,texRenderer:Aa}=Fn.value;La.value=ma,ga.value=vt(ma,{emojiMap:na.value.map,highlighter:Sa,texRenderer:Aa}),$a.value=(ka=>(Ia=>Ia.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(ka).reduce((Ia,xa)=>Ia+(xa.trim()===""?0:xa.trim().split(/\s+/u).length),0)+(Ia=>Ia.match(/[\u4E00-\u9FA5]/gu)||[])(ka).length)(ma),ma?a$3(Qn.value):a$3.destroy(Qn.value)},{immediate:!0}),watch(()=>Fn.value.emoji,ma=>{return(Sa=ma,Promise.all(Sa.map(Aa=>typeof Aa=="string"?it(Ye(Aa)):Promise.resolve(Aa))).then(Aa=>{const ka={tabs:[],map:{}};return Aa.forEach(Ia=>{const{name:xa,folder:Va,icon:Ua,prefix:Ha,type:ja,items:Ya}=Ia;ka.tabs.push({name:xa,icon:ot(Ua,Va,Ha,ja),items:Ya.map(Wa=>{const Fa=`${Ha||""}${Wa}`;return ka.map[Fa]=ot(Wa,Va,Ha,ja),Fa})})}),ka})).then(Aa=>{na.value=Aa});var Sa},{immediate:!0})}),onUnmounted(()=>{document.body.removeEventListener("click",Na),window.removeEventListener("message",Oa)}),(va,ma)=>{var Sa,Aa;return openBlock(),createElementBlock("div",pt,[unref(Fn).login!=="disable"&&unref(oa)&&!((Sa=b.edit)!=null&&Sa.objectId)?(openBlock(),createElementBlock("div",ht,[createBaseVNode("div",gt,[createBaseVNode("button",{type:"submit",class:"wl-logout-btn",title:unref(ca).logout,onClick:Ma},[createVNode(unref(O$2),{size:14})],8,ft),createBaseVNode("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:unref(ca).profile,onClick:Ra},[createBaseVNode("img",{src:unref(Yn).avatar,alt:"avatar"},null,8,wt)],8,yt)]),createBaseVNode("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:unref(ca).profile,onClick:Ra,textContent:toDisplayString(unref(Yn).display_name)},null,8,bt)])):createCommentVNode("v-if",!0),createBaseVNode("div",kt,[unref(Fn).login!=="force"&&unref(Fn).meta.length&&!unref(oa)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["wl-header",`item${unref(Fn).meta.length}`])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fn).meta,ka=>(openBlock(),createElementBlock("div",{key:ka,class:"wl-header-item"},[createBaseVNode("label",{for:`wl-${ka}`,textContent:toDisplayString(unref(ca)[ka]+(unref(Fn).requiredMeta.includes(ka)||!unref(Fn).requiredMeta.length?"":`(${unref(ca).optional})`))},null,8,Ct),withDirectives(createBaseVNode("input",{id:`wl-${ka}`,ref_for:!0,ref:Ia=>{Ia&&(Gn.value[ka]=Ia)},"onUpdate:modelValue":Ia=>unref(Wn)[ka]=Ia,class:normalizeClass(["wl-input",`wl-${ka}`]),name:ka,type:ka==="mail"?"email":"text"},null,10,$t),[[vModelDynamic,unref(Wn)[ka]]])]))),128))],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("textarea",{id:"wl-edit",ref_key:"editorRef",ref:Qn,"onUpdate:modelValue":ma[0]||(ma[0]=ka=>isRef(qn)?qn.value=ka:null),class:"wl-editor",placeholder:b.replyUser?`@${b.replyUser}`:unref(ca).placeholder,onKeydown:da,onDrop:ba,onPaste:Ca},null,40,Lt),[[vModelText,unref(qn)]]),withDirectives(createBaseVNode("div",xt,[It,createBaseVNode("h4",null,toDisplayString(unref(ca).preview)+":",1),createBaseVNode("div",{class:"wl-content",innerHTML:ga.value},null,8,Rt)],512),[[vShow,ha.value]]),createBaseVNode("div",Et,[createBaseVNode("div",jt,[createBaseVNode("a",St,[createVNode(unref(B$2))]),withDirectives(createBaseVNode("button",{ref_key:"emojiButtonRef",ref:Kn,type:"button",class:normalizeClass(["wl-action",{active:ia.value}]),title:unref(ca).emoji,onClick:ma[1]||(ma[1]=ka=>ia.value=!ia.value)},[createVNode(unref(V$1))],10,_t),[[vShow,na.value.tabs.length]]),unref(Fn).search?(openBlock(),createElementBlock("button",{key:0,ref_key:"gifButtonRef",ref:Jn,type:"button",class:normalizeClass(["wl-action",{active:ua.value}]),title:unref(ca).gif,onClick:ma[2]||(ma[2]=ka=>ua.value=!ua.value)},[createVNode(unref(G$1))],10,At)):createCommentVNode("v-if",!0),createBaseVNode("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:Zn,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:Ta},null,544),unref(ra)?(openBlock(),createElementBlock("label",{key:1,for:"wl-image-upload",class:"wl-action",title:unref(ca).uploadImage},[createVNode(unref(T$1))],8,zt)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass(["wl-action",{active:ha.value}]),title:unref(ca).preview,onClick:ma[3]||(ma[3]=ka=>ha.value=!ha.value)},[createVNode(unref(N$2))],10,Ut)]),createBaseVNode("div",Mt,[createBaseVNode("div",Ht,[createTextVNode(toDisplayString($a.value)+" ",1),unref(Fn).wordLimit?(openBlock(),createElementBlock("span",Ot,[createTextVNode(" / "),createBaseVNode("span",{class:normalizeClass({illegal:!ya.value}),textContent:toDisplayString(sa.value)},null,10,Pt)])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(unref(ca).word),1)]),unref(Fn).login==="disable"||unref(oa)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:"wl-btn",onClick:Pa,textContent:toDisplayString(unref(ca).login)},null,8,Vt)),unref(Fn).login!=="force"||unref(oa)?(openBlock(),createElementBlock("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:Da.value,onClick:Ea},[Da.value?(openBlock(),createBlock(unref(q$1),{key:0,size:16})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(unref(ca).submit),1)],64))],8,Tt)):createCommentVNode("v-if",!0)]),createBaseVNode("div",{ref_key:"gifPopupRef",ref:ta,class:normalizeClass(["wl-gif-popup",{display:ua.value}])},[createBaseVNode("input",{ref_key:"gifSearchInputRef",ref:ea,type:"text",placeholder:unref(ca).gifSearchPlaceholder,onInput:ma[4]||(ma[4]=(...ka)=>unref(za)&&unref(za)(...ka))},null,40,Dt),createVNode(je,{items:la.list,"column-width":200,gap:6,onInsert:ma[5]||(ma[5]=ka=>pa(ka)),onScroll:Ba},null,8,["items"]),la.loading?(openBlock(),createElementBlock("div",Nt,[createVNode(unref(q$1),{size:30})])):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{ref_key:"emojiPopupRef",ref:Xn,class:normalizeClass(["wl-emoji-popup",{display:ia.value}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(na.value.tabs,(ka,Ia)=>(openBlock(),createElementBlock(Fragment,{key:ka.name},[Ia===aa.value?(openBlock(),createElementBlock("div",Bt,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ka.items,xa=>(openBlock(),createElementBlock("button",{key:xa,type:"button",title:xa,onClick:Va=>pa(`:${xa}:`)},[ia.value?(openBlock(),createElementBlock("img",{key:0,class:"wl-emoji",src:na.value.map[xa],alt:xa,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ft)):createCommentVNode("v-if",!0)],8,Wt))),128))])):createCommentVNode("v-if",!0)],64))),128)),na.value.tabs.length>1?(openBlock(),createElementBlock("div",Kt,[(openBlock(!0),createElementBlock(Fragment,null,renderList(na.value.tabs,(ka,Ia)=>(openBlock(),createElementBlock("button",{key:ka.name,type:"button",class:normalizeClass(["wl-tab",{active:aa.value===Ia}]),onClick:xa=>aa.value=Ia},[createBaseVNode("img",{class:"wl-emoji",src:ka.icon,alt:ka.name,title:ka.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Gt)],10,qt))),128))])):createCommentVNode("v-if",!0)],2)])]),b.replyId||(Aa=b.edit)!=null&&Aa.objectId?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"wl-close",title:unref(ca).cancelReply,onClick:ma[6]||(ma[6]=ka=>va.$emit(b.replyId?"cancelReply":"cancelEdit"))},[createVNode(unref(O$2),{size:24})],8,Zt)):createCommentVNode("v-if",!0)])}}}),Yt=xe(Jt,[["__file","CommentBox.vue"]]);const Xt=["id"],Qt={class:"wl-user","aria-hidden":"true"},en=["src"],tn={class:"wl-card"},nn={class:"wl-head"},an=["href"],ln={key:1,class:"wl-nick"},on=["textContent"],rn=["textContent"],sn=["textContent"],cn=["textContent"],un=["textContent"],dn={class:"wl-comment-actions"},mn=["title"],vn=["textContent"],pn=["title"],hn={class:"wl-meta","aria-hidden":"true"},gn=["data-value","textContent"],fn=["data-value","textContent"],yn=["data-value","textContent"],wn=["innerHTML"],bn={key:1,class:"wl-admin-actions"},kn={class:"wl-comment-status"},Cn=["disabled","onClick","textContent"],$n={key:3,class:"wl-quote"};var Ln=xe(defineComponent({__name:"CommentCard",props:{comment:null,edit:{default:null},rootId:null,reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(b){const j=b,U=["approved","waiting","spam"],Bn=inject("config"),Fn=ee(),qn=useNow(),Wn=he(),Yn=computed(()=>Bn.value.locale),Gn=computed(()=>{const{link:ea}=j.comment;return ea?Xe(ea)?ea:`https://${ea}`:""}),Qn=computed(()=>Fn.value.includes(j.comment.objectId)),Zn=computed(()=>lt(j.comment.insertedAt,qn.value,Yn.value)),Kn=computed(()=>Wn.value.type==="administrator"),Xn=computed(()=>j.comment.user_id&&Wn.value.objectId===j.comment.user_id),Jn=computed(()=>{var ea;return j.comment.objectId===((ea=j.reply)==null?void 0:ea.objectId)}),ta=computed(()=>{var ea;return j.comment.objectId===((ea=j.edit)==null?void 0:ea.objectId)});return(ea,na)=>{var ia;const aa=resolveComponent("CommentCard",!0);return openBlock(),createElementBlock("div",{id:b.comment.objectId,class:"wl-card-item"},[createBaseVNode("div",Qt,[b.comment.avatar?(openBlock(),createElementBlock("img",{key:0,src:b.comment.avatar},null,8,en)):createCommentVNode("v-if",!0),b.comment.type?(openBlock(),createBlock(unref(K),{key:1})):createCommentVNode("v-if",!0)]),createBaseVNode("div",tn,[createBaseVNode("div",nn,[unref(Gn)?(openBlock(),createElementBlock("a",{key:0,class:"wl-nick",href:unref(Gn),target:"_blank",rel:"noopener noreferrer"},toDisplayString(b.comment.nick),9,an)):(openBlock(),createElementBlock("span",ln,toDisplayString(b.comment.nick),1)),b.comment.type==="administrator"?(openBlock(),createElementBlock("span",{key:2,class:"wl-badge",textContent:toDisplayString(unref(Yn).admin)},null,8,on)):createCommentVNode("v-if",!0),b.comment.label?(openBlock(),createElementBlock("span",{key:3,class:"wl-badge",textContent:toDisplayString(b.comment.label)},null,8,rn)):createCommentVNode("v-if",!0),b.comment.sticky?(openBlock(),createElementBlock("span",{key:4,class:"wl-badge",textContent:toDisplayString(unref(Yn).sticky)},null,8,sn)):createCommentVNode("v-if",!0),b.comment.level!==void 0&&b.comment.level>=0?(openBlock(),createElementBlock("span",{key:5,class:normalizeClass(`wl-badge level${b.comment.level}`),textContent:toDisplayString(unref(Yn)[`level${b.comment.level}`]||`Level ${b.comment.level}`)},null,10,cn)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:"wl-time",textContent:toDisplayString(unref(Zn))},null,8,un),createBaseVNode("div",dn,[unref(Kn)||unref(Xn)?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"wl-edit",onClick:na[0]||(na[0]=()=>ea.$emit("edit",b.comment))},[createVNode(unref(F$2))])):createCommentVNode("v-if",!0),unref(Kn)||unref(Xn)?(openBlock(),createElementBlock("button",{key:1,type:"button",class:"wl-delete",onClick:na[1]||(na[1]=ua=>ea.$emit("delete",b.comment))},[createVNode(unref(P$3))])):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:"wl-like",title:unref(Qn)?unref(Yn).cancelLike:unref(Yn).like,onClick:na[2]||(na[2]=ua=>ea.$emit("like",b.comment))},[createVNode(unref(D$2),{active:unref(Qn)},null,8,["active"]),"like"in b.comment?(openBlock(),createElementBlock("span",{key:0,textContent:toDisplayString(b.comment.like)},null,8,vn)):createCommentVNode("v-if",!0)],8,mn),createBaseVNode("button",{type:"button",class:normalizeClass(["wl-reply",{active:unref(Jn)}]),title:unref(Jn)?unref(Yn).cancelReply:unref(Yn).reply,onClick:na[3]||(na[3]=ua=>ea.$emit("reply",unref(Jn)?null:b.comment))},[createVNode(unref(W$1))],10,pn)])]),createBaseVNode("div",hn,[b.comment.addr?(openBlock(),createElementBlock("span",{key:0,class:"wl-addr","data-value":b.comment.addr,textContent:toDisplayString(b.comment.addr)},null,8,gn)):createCommentVNode("v-if",!0),b.comment.browser?(openBlock(),createElementBlock("span",{key:1,class:"wl-browser","data-value":b.comment.browser,textContent:toDisplayString(b.comment.browser)},null,8,fn)):createCommentVNode("v-if",!0),b.comment.os?(openBlock(),createElementBlock("span",{key:2,class:"wl-os","data-value":b.comment.os,textContent:toDisplayString(b.comment.os)},null,8,yn)):createCommentVNode("v-if",!0)]),unref(ta)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:"wl-content",innerHTML:b.comment.comment},null,8,wn)),unref(Kn)&&!unref(ta)?(openBlock(),createElementBlock("div",bn,[createBaseVNode("span",kn,[(openBlock(),createElementBlock(Fragment,null,renderList(U,ua=>createBaseVNode("button",{key:ua,type:"submit",class:normalizeClass(`wl-btn wl-${ua}`),disabled:b.comment.status===ua,onClick:ha=>ea.$emit("status",{status:ua,comment:b.comment}),textContent:toDisplayString(unref(Yn)[ua])},null,10,Cn)),64))]),unref(Kn)&&!b.comment.rid?(openBlock(),createElementBlock("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:na[4]||(na[4]=ua=>ea.$emit("sticky",b.comment))},toDisplayString(b.comment.sticky?unref(Yn).unsticky:unref(Yn).sticky),1)):createCommentVNode("v-if",!0)])):createCommentVNode("v-if",!0),unref(Jn)||unref(ta)?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass({"wl-reply-wrapper":unref(Jn),"wl-edit-wrapper":unref(ta)})},[createVNode(Yt,{edit:b.edit,"reply-id":(ia=b.reply)==null?void 0:ia.objectId,"reply-user":b.comment.nick,"root-id":b.rootId,onLog:na[5]||(na[5]=ua=>ea.$emit("log")),onCancelReply:na[6]||(na[6]=ua=>ea.$emit("reply",null)),onCancelEdit:na[7]||(na[7]=ua=>ea.$emit("edit",null)),onSubmit:na[8]||(na[8]=ua=>ea.$emit("submit",ua))},null,8,["edit","reply-id","reply-user","root-id"])],2)):createCommentVNode("v-if",!0),b.comment.children?(openBlock(),createElementBlock("div",$n,[(openBlock(!0),createElementBlock(Fragment,null,renderList(b.comment.children,ua=>(openBlock(),createBlock(aa,{key:ua.objectId,comment:ua,reply:b.reply,edit:b.edit,"root-id":b.rootId,onLog:na[9]||(na[9]=ha=>ea.$emit("log")),onDelete:na[10]||(na[10]=ha=>ea.$emit("delete",ha)),onEdit:na[11]||(na[11]=ha=>ea.$emit("edit",ha)),onLike:na[12]||(na[12]=ha=>ea.$emit("like",ha)),onReply:na[13]||(na[13]=ha=>ea.$emit("reply",ha)),onStatus:na[14]||(na[14]=ha=>ea.$emit("status",ha)),onSticky:na[15]||(na[15]=ha=>ea.$emit("sticky",ha)),onSubmit:na[16]||(na[16]=ha=>ea.$emit("submit",ha))},null,8,["comment","reply","edit","root-id"]))),128))])):createCommentVNode("v-if",!0)])],8,Xt)}}}),[["__file","CommentCard.vue"]]);const xn="2.14.7",In={"data-waline":""},Rn={class:"wl-meta-head"},En={class:"wl-count"},jn=["textContent"],Sn={class:"wl-sort"},_n=["onClick"],An={class:"wl-cards"},zn={key:1,class:"wl-operation"},Un=["textContent"],Mn={key:0,class:"wl-loading"},Hn=["textContent"],On={key:2,class:"wl-operation"},Pn=["textContent"],Vn={key:3,class:"wl-power"},Tn=createBaseVNode("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var Dn=defineComponent({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(b){const j=b,U={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},Bn=Object.keys(U),Fn=he(),qn=ee(),Wn=ref("loading"),Yn=ref(0),Gn=ref(1),Qn=ref(0),Zn=computed(()=>(({serverURL:wa,path:ca=location.pathname,lang:oa=typeof navigator>"u"?"en-US":navigator.language,locale:ra,emoji:pa=Ae,meta:da=["nick","mail","link"],requiredMeta:fa=[],dark:ba=!1,pageSize:Ca=10,wordLimit:Ta,imageUploader:Ea,highlighter:Pa,texRenderer:Ma,copyright:Ra=!0,login:Na="enable",search:Ba,reaction:za,recaptchaV3Key:Oa="",commentSorting:va="latest",...ma})=>({serverURL:Qe(wa),path:Je(ca),locale:{...Ze[oa]||Ze["en-US"],...typeof ra=="object"?ra:{}},wordLimit:et(Ta),meta:_e(da),requiredMeta:_e(fa),imageUploader:tt(Ea,ze),highlighter:tt(Pa,Te),texRenderer:tt(Ma,Ue),lang:Object.keys(Ze).includes(oa)?oa:"en-US",dark:ba,emoji:typeof pa=="boolean"?pa?Ae:[]:pa,pageSize:Ca,login:Na,copyright:Ra,search:Ba!==!1&&(typeof Ba=="object"?Ba:Me(oa)),recaptchaV3Key:Oa,reaction:Array.isArray(za)?za:za===!0?He:[],commentSorting:va,...ma}))(j)),Kn=ref(Zn.value.commentSorting),Xn=ref([]),Jn=ref(null),ta=ref(null),ea=computed(()=>{return typeof(wa=Zn.value.dark)=="string"?wa==="auto"?`@media(prefers-color-scheme:dark){body${nt}}`:`${wa}${nt}`:wa===!0?`:root${nt}`:"";var wa}),na=computed(()=>Zn.value.locale);let aa;useStyleTag(ea);const ia=wa=>{var da;const{serverURL:ca,path:oa,pageSize:ra}=Zn.value,pa=new AbortController;Wn.value="loading",aa==null||aa(),(({serverURL:fa,lang:ba,path:Ca,page:Ta,pageSize:Ea,sortBy:Pa,signal:Ma,token:Ra})=>{const Na={};return Ra&&(Na.Authorization=`Bearer ${Ra}`),fetch(`${fa}/comment?path=${encodeURIComponent(Ca)}&pageSize=${Ea}&page=${Ta}&lang=${ba}&sortBy=${Pa}`,{signal:Ma,headers:Na}).then(Ba=>Ba.json()).then(Ba=>J$1(Ba,"Get comment data"))})({serverURL:ca,lang:Zn.value.lang,path:oa,pageSize:ra,sortBy:U[Kn.value],page:wa,signal:pa.signal,token:(da=Fn.value)==null?void 0:da.token}).then(fa=>{Wn.value="success",Yn.value=fa.count,Xn.value.push(...fa.data),Gn.value=wa,Qn.value=fa.totalPages}).catch(fa=>{fa.name!=="AbortError"&&(console.error(fa.message),Wn.value="error")}),aa=pa.abort.bind(pa)},ua=()=>ia(Gn.value+1),ha=()=>{Yn.value=0,Xn.value=[],ia(1)},ga=wa=>{Jn.value=wa},$a=wa=>{ta.value=wa},la=wa=>{if(ta.value)ta.value.comment=wa.comment,ta.value.orig=wa.orig;else if(wa.rid){const ca=Xn.value.find(({objectId:oa})=>oa===wa.rid);if(!ca)return;Array.isArray(ca.children)||(ca.children=[]),ca.children.push(wa)}else Xn.value.unshift(wa)},sa=async({comment:wa,status:ca})=>{var pa;if(wa.status===ca)return;const{serverURL:oa,lang:ra}=Zn.value;await X({serverURL:oa,lang:ra,token:(pa=Fn.value)==null?void 0:pa.token,objectId:wa.objectId,comment:{status:ca}}),wa.status=ca},ya=async wa=>{var ra;if(wa.rid)return;const{serverURL:ca,lang:oa}=Zn.value;await X({serverURL:ca,lang:oa,token:(ra=Fn.value)==null?void 0:ra.token,objectId:wa.objectId,comment:{sticky:wa.sticky?0:1}}),wa.sticky=!wa.sticky},La=async({objectId:wa})=>{var ra;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ca,lang:oa}=Zn.value;await(({serverURL:pa,lang:da,token:fa,objectId:ba})=>fetch(`${pa}/comment/${ba}?lang=${da}`,{method:"DELETE",headers:{Authorization:`Bearer ${fa}`}}).then(Ca=>Ca.json()).then(Ca=>J$1(Ca,"Delete comment")))({serverURL:ca,lang:oa,token:(ra=Fn.value)==null?void 0:ra.token,objectId:wa}),Xn.value.some((pa,da)=>pa.objectId===wa?(Xn.value=Xn.value.filter((fa,ba)=>ba!==da),!0):pa.children.some((fa,ba)=>fa.objectId===wa&&(Xn.value[da].children=pa.children.filter((Ca,Ta)=>Ta!==ba),!0)))},Da=async wa=>{var da;const{serverURL:ca,lang:oa}=Zn.value,{objectId:ra}=wa,pa=qn.value.includes(ra);await X({serverURL:ca,lang:oa,objectId:ra,token:(da=Fn.value)==null?void 0:da.token,comment:{like:!pa}}),pa?qn.value=qn.value.filter(fa=>fa!==ra):(qn.value=[...qn.value,ra],qn.value.length>50&&(qn.value=qn.value.slice(-50))),wa.like=(wa.like||0)+(pa?-1:1)};return provide("config",Zn),onMounted(()=>{watch(()=>[j.serverURL,j.path],()=>ha(),{immediate:!0})}),onUnmounted(()=>aa==null?void 0:aa()),(wa,ca)=>(openBlock(),createElementBlock("div",In,[createVNode(Ie),Jn.value?createCommentVNode("v-if",!0):(openBlock(),createBlock(Yt,{key:0,onLog:ha,onSubmit:la})),createBaseVNode("div",Rn,[createBaseVNode("div",En,[Yn.value?(openBlock(),createElementBlock("span",{key:0,class:"wl-num",textContent:toDisplayString(Yn.value)},null,8,jn)):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString(unref(na).comment),1)]),createBaseVNode("ul",Sn,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Bn),oa=>(openBlock(),createElementBlock("li",{key:oa,class:normalizeClass([oa===Kn.value?"active":""]),onClick:ra=>(pa=>{Kn.value!==pa&&(Kn.value=pa,ha())})(oa)},toDisplayString(unref(na)[oa]),11,_n))),128))])]),createBaseVNode("div",An,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Xn.value,oa=>(openBlock(),createBlock(Ln,{key:oa.objectId,"root-id":oa.objectId,comment:oa,reply:Jn.value,edit:ta.value,onLog:ha,onReply:ga,onEdit:$a,onSubmit:la,onStatus:sa,onDelete:La,onSticky:ya,onLike:Da},null,8,["root-id","comment","reply","edit"]))),128))]),Wn.value==="error"?(openBlock(),createElementBlock("div",zn,[createBaseVNode("button",{type:"button",class:"wl-btn",onClick:ha,textContent:toDisplayString(unref(na).refresh)},null,8,Un)])):(openBlock(),createElementBlock(Fragment,{key:2},[Wn.value==="loading"?(openBlock(),createElementBlock("div",Mn,[createVNode(unref(q$1),{size:30})])):Xn.value.length?Gn.value<Qn.value?(openBlock(),createElementBlock("div",On,[createBaseVNode("button",{type:"button",class:"wl-btn",onClick:ua,textContent:toDisplayString(unref(na).more)},null,8,Pn)])):createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:1,class:"wl-empty",textContent:toDisplayString(unref(na).sofa)},null,8,Hn))],64)),unref(Zn).copyright?(openBlock(),createElementBlock("div",Vn,[createTextVNode(" Powered by "),Tn,createTextVNode(" v"+toDisplayString(unref(xn)),1)])):createCommentVNode("v-if",!0)]))}}),Nn=xe(Dn,[["__file","WalineComment.vue"]]);const t$1={"Content-Type":"application/json"},n$1=({serverURL:b,lang:j,paths:U,signal:Bn})=>(({serverURL:Fn,lang:qn,paths:Wn,type:Yn,signal:Gn})=>fetch(`${Fn}/article?path=${encodeURIComponent(Wn.join(","))}&type=${encodeURIComponent(Yn.join(","))}&lang=${qn}`,{signal:Gn}).then(Qn=>Qn.json()))({serverURL:b,lang:j,paths:U,type:["time"],signal:Bn}).then(Fn=>Array.isArray(Fn)?Fn:[Fn]),a$2=b=>(({serverURL:j,lang:U,path:Bn,type:Fn,action:qn})=>fetch(`${j}/article?lang=${U}`,{method:"POST",headers:t$1,body:JSON.stringify({path:Bn,type:Fn,action:qn})}).then(Wn=>Wn.json()))({...b,type:"time",action:"inc"}),r$2=b=>{const j=((U="")=>U.replace(/\/$/u,""))(b);return/^(https?:)?\/\//.test(j)?j:`https://${j}`},o$2=b=>{b.name!=="AbortError"&&console.error(b.message)},l$2=b=>b.dataset.path||b.getAttribute("id"),s$1=(b,j)=>{j.forEach((U,Bn)=>{U.innerText=b[Bn].toString()})},i$3=({serverURL:b,path:j=window.location.pathname,selector:U=".waline-pageview-count",update:Bn=!0,lang:Fn=navigator.language})=>{const qn=new AbortController,Wn=Array.from(document.querySelectorAll(U)),Yn=Qn=>{const Zn=l$2(Qn);return Zn!==null&&j!==Zn},Gn=Qn=>n$1({serverURL:r$2(b),paths:Qn.map(Zn=>l$2(Zn)||j),lang:Fn,signal:qn.signal}).then(Zn=>s$1(Zn,Qn)).catch(o$2);if(Bn){const Qn=Wn.filter(Kn=>!Yn(Kn)),Zn=Wn.filter(Yn);a$2({serverURL:r$2(b),path:j,lang:Fn}).then(Kn=>s$1(new Array(Qn.length).fill(Kn),Qn)),Zn.length&&Gn(Zn)}else Gn(Wn);return qn.abort.bind(qn)},waline$1="",waline="",e$1={provider:"Waline",dark:"auto",serverURL:"https://comments.snapgenshin.com",emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili","//unpkg.com/@waline/emojis@1.1.0/bmoji","//unpkg.com/@waline/emojis@1.1.0/qq","//unpkg.com/@waline/emojis@1.1.0/tieba"],requiredMeta:["mail"],login:"enable",reaction:!1},A$5={"/en/":{placeholder:"Write a comment here (Fill in the email address to receive an email notification when being replied)"},"/":{placeholder:"请留言。(填写邮箱可在被回复时收到邮件提醒)"}},m$2=Boolean(e$1.serverURL);__vitePreload(()=>import("./waline-meta-a31b78ed.js"),[]);var B$1=defineComponent({name:"WalineComment",setup(){const b=useRoute(),j=usePageFrontmatter(),U=usePageLang(),Bn=Yt$1(A$5);let Fn;const qn=computed(()=>{if(!m$2)return!1;const Gn=e$1.comment!==!1,Qn=j.value.comment;return Boolean(Qn)||Gn!==!1&&Qn!==!1}),Wn=computed(()=>{if(!m$2)return!1;const Gn=e$1.pageview!==!1,Qn=j.value.pageview;return Boolean(Qn)||Gn!==!1&&Qn!==!1}),Yn=computed(()=>({lang:U.value==="zh-CN"?"zh-CN":"en",locale:Bn.value,dark:"html.dark",...e$1,path:withBase(b.path)}));return onMounted(()=>{watch(()=>b.path,()=>{Fn==null||Fn(),Wn.value&&setTimeout(()=>{Fn=i$3({serverURL:e$1.serverURL,path:withBase(b.path)})},e$1.delay||800)},{immediate:!0})}),()=>qn.value?h$3("div",{class:"waline-wrapper",id:"comment"},m$2?h$3(Nn,Yn.value):[]):null}});const d$4={provider:"Waline",dark:"auto",serverURL:"https://comments.snapgenshin.com",emoji:["//unpkg.com/@waline/emojis@1.1.0/weibo","//unpkg.com/@waline/emojis@1.1.0/bilibili","//unpkg.com/@waline/emojis@1.1.0/bmoji","//unpkg.com/@waline/emojis@1.1.0/qq","//unpkg.com/@waline/emojis@1.1.0/tieba"],requiredMeta:["mail"],login:"enable",reaction:!1}.comment!==!1,i$2=defineComponent({name:"CommentService",props:{darkmode:Boolean},setup(b){const j=usePageFrontmatter(),U=computed(()=>j.value.comment||d$4&&j.value.comment!==!1);return()=>h$3(B$1,{darkmode:b.darkmode,style:{display:U.value?"block":"none"}})}});var l$1=defineClientConfig({enhance:({app:b})=>{b.component("CommentService",i$2)}});const message="",balloon="",button="",O$1=800,_$1={"/en/":{copy:"Copy code",copied:"Copied",hint:"Copied successfully"},"/":{copy:"复制代码",copied:"已复制",hint:"复制成功"}},A$4=['.theme-hope-content div[class*="language-"] pre'],g$3=!1,w$2=async b=>{try{return navigator.clipboard.writeText(b)}catch{const j=document.createElement("textarea"),U=document.activeElement;j.value=b,j.setAttribute("readonly",""),j.style.contain="strict",j.style.position="absolute",j.style.left="-9999px",j.style.fontSize="12pt";const Bn=document.getSelection(),Fn=Bn?Bn.rangeCount>0&&Bn.getRangeAt(0):null;document.body.appendChild(j),j.select(),j.selectionStart=0,j.selectionEnd=b.length,document.execCommand("copy"),document.body.removeChild(j),Fn&&(Bn.removeAllRanges(),Bn.addRange(Fn)),U&&U.focus()}},d$3=new Map,x$2=()=>{const b=useRoute(),j=Yt$1(_$1),U=qn=>{if(!qn.hasAttribute("copy-code-registered")){const Wn=document.createElement("button");Wn.classList.add("copy-code-button"),Wn.innerHTML='<div class="copy-icon" />',Wn.setAttribute("aria-label",j.value.copy),Wn.setAttribute("data-copied",j.value.copied),qn.parentElement&&qn.parentElement.insertBefore(Wn,qn),qn.setAttribute("copy-code-registered","")}},Bn=()=>{setTimeout(()=>{A$4.forEach(qn=>{document.querySelectorAll(qn).forEach(U)})},O$1)},Fn=(qn,Wn,Yn)=>{let{innerText:Gn=""}=Wn;/language-(shellscript|shell|bash|sh|zsh)/.test(qn.classList.toString())&&(Gn=Gn.replace(/^ *(\$|>) /gm,"")),w$2(Gn).then(()=>{Yn.classList.add("copied"),clearTimeout(d$3.get(Yn));const Qn=setTimeout(()=>{Yn.classList.remove("copied"),Yn.blur(),d$3.delete(Yn)},2e3);d$3.set(Yn,Qn)})};onMounted(()=>{const{userAgent:qn}=navigator;new ce$1,(!Lt$1(qn)||g$3)&&Bn(),window.addEventListener("click",Wn=>{const Yn=Wn.target;if(Yn.matches('div[class*="language-"] > button.copy')){const Gn=Yn.parentElement,Qn=Yn.nextElementSibling;Qn&&Fn(Gn,Qn,Yn)}else if(Yn.matches('div[class*="language-"] div.copy-icon')){const Gn=Yn.parentElement,Qn=Gn.parentElement,Zn=Gn.nextElementSibling;Zn&&Fn(Qn,Zn,Gn)}}),watch(()=>b.path,()=>{(!Lt$1(qn)||g$3)&&Bn()})})};var D$1=defineClientConfig({setup:()=>{x$2()}});const chart="",LoadingIcon$1=()=>h$3(R$1,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),parseChartConfig=(config,type)=>{if(type==="json")return JSON.parse(config);const exports={},module={exports};return eval(config),module.exports};var ChartJS=defineComponent({name:"ChartJS",props:{config:{type:String,required:!0},id:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:"json"}},setup(b){const j=ref(),U=ref(),Bn=ref(!0);return onMounted(()=>{Promise.all([__vitePreload(()=>import("./auto-5a6868c8.js"),[]),new Promise(Fn=>setTimeout(Fn,800))]).then(([{default:Fn}])=>{Fn.defaults.maintainAspectRatio=!1;const qn=parseChartConfig(le$1(b.config),b.type),Wn=U.value.getContext("2d");new Fn(Wn,qn),Bn.value=!1})}),()=>[b.title?h$3("div",{class:"chart-title"},decodeURIComponent(b.title)):null,Bn.value?h$3("div",{class:"chart-loading-wrapper"},h$3(LoadingIcon$1)):null,h$3("div",{ref:j,class:"chart-wrapper",id:b.id,style:{display:Bn.value?"none":"block"}},h$3("canvas",{ref:U,height:400}))]}});const codeTabs="",o$1=useStorage("VUEPRESS_CODE_TAB_STORE",{});var S$4=defineComponent({name:"CodeTabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},setup(b,{slots:j}){const U=ref(b.active),Bn=ref([]),Fn=()=>{if(b.tabId){const{title:Qn,id:Zn=Qn}=b.data[U.value];o$1.value[b.tabId]=Zn}},qn=(Qn=U.value)=>{U.value=Qn<Bn.value.length-1?Qn+1:0,Bn.value[U.value].focus()},Wn=(Qn=U.value)=>{U.value=Qn>0?Qn-1:Bn.value.length-1,Bn.value[U.value].focus()},Yn=(Qn,Zn)=>{if(Qn.key===" "||Qn.key==="Enter"?(Qn.preventDefault(),U.value=Zn):Qn.key==="ArrowRight"?(Qn.preventDefault(),qn()):Qn.key==="ArrowLeft"&&(Qn.preventDefault(),Wn()),b.tabId){const{title:Kn,id:Xn=Kn}=b.data[U.value];o$1.value[b.tabId]=Xn}},Gn=()=>{if(b.tabId){const Qn=b.data.findIndex(({title:Zn,id:Kn=Zn})=>o$1.value[b.tabId]===Kn);if(Qn!==-1)return Qn}return b.active};return onMounted(()=>{U.value=Gn(),watch(()=>o$1.value[b.tabId],(Qn,Zn)=>{if(b.tabId&&Qn!==Zn){const Kn=b.data.findIndex(({title:Xn,id:Jn=Xn})=>Jn===Qn);Kn!==-1&&(U.value=Kn)}})}),()=>b.data.length?h$3("div",{class:"code-tabs"},[h$3("div",{class:"code-tabs-nav",role:"tablist"},b.data.map(({title:Qn},Zn)=>{const Kn=Zn===U.value;return h$3("button",{ref:Xn=>{Xn&&(Bn.value[Zn]=Xn)},class:["code-tabs-nav-tab",{active:Kn}],role:"tab","aria-controls":`codetab-${b.id}-${Zn}`,"aria-selected":Kn,onClick:()=>{U.value=Zn,Fn()},onKeydown:Xn=>Yn(Xn,Zn)},Qn)})),b.data.map(({title:Qn,id:Zn=Qn},Kn)=>{var Xn;const Jn=Kn===U.value;return h$3("div",{class:["code-tab",{active:Jn}],id:`codetab-${b.id}-${Kn}`,role:"tabpanel","aria-expanded":Jn},(Xn=j[`tab${Kn}`])==null?void 0:Xn.call(j,{title:Qn,value:Zn,isActive:Jn}))})]):null}});const codeGroup="",c$1=({active:b=!1},{slots:j})=>{var U;return h$3("div",{class:["code-group-item",{active:b}],"aria-selected":b},(U=j.default)==null?void 0:U.call(j))};c$1.displayName="CodeGroupItem";const y$2=defineComponent({name:"CodeGroup",setup(b,{slots:j}){const U=ref(-1),Bn=ref([]),Fn=(Yn=U.value)=>{U.value=Yn<Bn.value.length-1?Yn+1:0,Bn.value[U.value].focus()},qn=(Yn=U.value)=>{U.value=Yn>0?Yn-1:Bn.value.length-1,Bn.value[U.value].focus()},Wn=(Yn,Gn)=>{Yn.key===" "||Yn.key==="Enter"?(Yn.preventDefault(),U.value=Gn):Yn.key==="ArrowRight"?(Yn.preventDefault(),Fn(Gn)):Yn.key==="ArrowLeft"&&(Yn.preventDefault(),qn(Gn))};return()=>{var Yn;const Gn=(((Yn=j.default)==null?void 0:Yn.call(j))||[]).filter(Qn=>Qn.type.name==="CodeGroupItem").map(Qn=>(Qn.props===null&&(Qn.props={}),Qn));return Gn.length===0?null:(U.value<0||U.value>Gn.length-1?(U.value=Gn.findIndex(Qn=>"active"in Qn.props),U.value===-1&&(U.value=0)):Gn.forEach((Qn,Zn)=>{Qn.props.active=Zn===U.value}),h$3("div",{class:"code-group"},[h$3("div",{class:"code-group-nav"},Gn.map((Qn,Zn)=>{const Kn=Zn===U.value;return h$3("button",{ref:Xn=>{Xn&&(Bn.value[Zn]=Xn)},class:["code-group-nav-tab",{active:Kn}],"aria-pressed":Kn,"aria-expanded":Kn,onClick:()=>{U.value=Zn},onKeydown:Xn=>Wn(Xn,Zn)},Qn.props.title)})),Gn]))}}}),index$2="",codeDemo="",N$1=()=>h$3(R$1,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),A$3='<svg class="codepen-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M123.429 668L468 897.714V692.571L277.143 565.143zM88 585.714L198.286 512 88 438.286v147.428zm468 312L900.571 668 746.857 565.143 556 692.57v205.143zM512 616l155.429-104L512 408 356.571 512zM277.143 458.857L468 331.43V126.286L123.429 356zM825.714 512L936 585.714V438.286zm-78.857-53.143L900.571 356 556 126.286v205.143zM1024 356v312q0 23.429-19.429 36.571l-468 312Q524.571 1024 512 1024t-24.571-7.429l-468-312Q0 691.43 0 668V356q0-23.429 19.429-36.571l468-312Q499.429 0 512 0t24.571 7.429l468 312Q1024 332.57 1024 356z"/></svg>',k$3='<svg class="jsfiddle-icon" viewBox="0 0 1170 1024" xmlns="http://www.w3.org/2000/svg" width="228.516" height="200"><path d="M1028.571 441.143q63.429 26.286 102.572 83.143t39.143 126.571q0 93.714-67.429 160.286T940 877.714q-2.286 0-6.571-.285t-6-.286H232q-97.143-5.714-164.571-71.714T0 645.143q0-62.857 31.429-116t84-84q-6.858-22.286-6.858-46.857 0-65.715 46.858-112T269.143 240q54.286 0 98.286 33.143 42.857-88 127.142-141.714t186.572-53.715q94.857 0 174.857 46t126.571 124.857 46.572 172q0 3.429-.286 10.286t-.286 10.286zm-761.142 152q0 69.714 48 110.286T434.286 744q78.285 0 137.143-56.571-9.143-11.429-27.143-32.286t-24.857-28.857q-38.286 37.143-82.286 37.143-31.429 0-53.429-19.143t-22-50q0-30.286 22-49.715T436 525.143q25.143 0 48.286 12T526 568.57t37.143 42.858 39.428 46.857 44 42.857T702 732.57t69.429 12q69.142 0 116.857-40.857T936 594.857q0-69.143-48-109.714T769.714 444.57Q688 444.571 632 500l53.143 61.714q37.714-36.571 81.143-36.571 29.714 0 52.571 18.857t22.857 48q0 32.571-21.143 52.286T766.857 664q-24.571 0-47.143-12t-41.143-31.429-37.428-42.857-39.714-46.857T557.143 488 502 456.571t-67.714-12q-69.715 0-118.286 40.286t-48.571 108.286z"/></svg>',L$1={useBabel:!1,jsLib:[],cssLib:[],codepenLayout:"left",codepenEditors:"101",babel:"https://unpkg.com/@babel/standalone/babel.min.js",vue:"https://unpkg.com/vue/dist/vue.global.prod.js",react:"https://unpkg.com/react/umd/react.production.min.js",reactDOM:"https://unpkg.com/react-dom/umd/react-dom.production.min.js"},x$1={html:{types:["html","slim","haml","md","markdown","vue"],map:{html:"none",vue:"none",md:"markdown"}},js:{types:["js","javascript","coffee","coffeescript","ts","typescript","ls","livescript"],map:{js:"none",javascript:"none",coffee:"coffeescript",ls:"livescript",ts:"typescript"}},css:{types:["css","less","sass","scss","stylus","styl"],map:{css:"none",styl:"stylus"}}},D=(b,j,U)=>{const Bn=document.createElement(b);return isPlainObject(j)&&Dt$1(j).forEach(Fn=>{if(Fn.indexOf("data"))Bn[Fn]=j[Fn];else{const qn=Fn.replace("data","");Bn.dataset[qn]=j[Fn]}}),U&&U.forEach(Fn=>{Bn.appendChild(Fn)}),Bn},w$1=b=>({...L$1,...b,jsLib:Array.from(new Set([...L$1.jsLib||[],...b.jsLib||[]])),cssLib:Array.from(new Set([...L$1.cssLib||[],...b.cssLib||[]]))}),v$1=(b,j)=>{if(b[j]!==void 0)return b[j];const U=new Promise(Bn=>{var Fn;const qn=document.createElement("script");qn.src=j,(Fn=document.querySelector("body"))==null||Fn.appendChild(qn),qn.onload=()=>{Bn()}});return b[j]=U,U},R=(b,j)=>{if(j.css&&Array.from(b.childNodes).every(U=>U.nodeName!=="STYLE")){const U=D("style",{innerHTML:j.css});b.appendChild(U)}},B=(b,j,U)=>{const Bn=U.getScript();if(Bn&&Array.from(j.childNodes).every(Fn=>Fn.nodeName!=="SCRIPT")){const Fn=document.createElement("script");Fn.appendChild(document.createTextNode(`{const document=window.document.querySelector('#${b} .code-demo-container').shadowRoot;
|
||
${Bn}}`)),j.appendChild(Fn)}},V=b=>{const j=Dt$1(b),U={html:[],js:[],css:[],isLegal:!1};return["html","js","css"].forEach(Bn=>{const Fn=j.filter(qn=>x$1[Bn].types.includes(qn));if(Fn.length){const qn=Fn[0];U[Bn]=[b[qn].replace(/^\n|\n$/g,""),x$1[Bn].map[qn]||qn]}}),U.isLegal=(!U.html.length||U.html[1]==="none")&&(!U.js.length||U.js[1]==="none")&&(!U.css.length||U.css[1]==="none"),U},_=b=>b.replace(/<br \/>/g,"<br>").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1></$2>"),q=b=>`<div id="app">
|
||
${_(b)}
|
||
</div>`,z=b=>`${b.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")};
|
||
ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,P$2=b=>b.replace(/export\s+default\s*\{(\n*[\s\S]*)\n*\}\s*;?$/u,"Vue.createApp({$1}).mount('#app')").replace(/export\s+default\s*define(Async)?Component\s*\(\s*\{(\n*[\s\S]*)\n*\}\s*\)\s*;?$/u,"Vue.createApp({$1}).mount('#app')").trim(),$=b=>`(function(exports){var module={};module.exports=exports;${b};return module.exports.__esModule?module.exports.default:module.exports;})({})`,H$2=(b,j)=>{const U=w$1(j),Bn=b.js[0]||"";return{...U,html:_(b.html[0]||""),js:Bn,css:b.css[0]||"",isLegal:b.isLegal,getScript:()=>{var Fn;return U.useBabel?((Fn=window.Babel.transform(Bn,{presets:["es2015"]}))==null?void 0:Fn.code)||"":Bn}}},I$2=(b,j)=>{const U=w$1(j),Bn=b.html[0]||"",Fn=/<template>([\s\S]+)<\/template>/u.exec(Bn),qn=/<script(\s*lang=(['"])(.*?)\2)?>([\s\S]+)<\/script>/u.exec(Bn),Wn=/<style(\s*lang=(['"])(.*?)\2)?\s*(?:scoped)?>([\s\S]+)<\/style>/u.exec(Bn),Yn=Fn?Fn[1].replace(/^\n|\n$/g,""):"",[Gn="",Qn=""]=qn?[qn[4].replace(/^\n|\n$/g,""),qn[3]]:[],[Zn="",Kn=""]=Wn?[Wn[4].replace(/^\n|\n$/g,""),Wn[3]]:[],Xn=Qn===""&&(Kn===""||Kn==="css");return{...U,html:q(Yn),js:P$2(Gn),css:Zn,isLegal:Xn,jsLib:[U.vue,...U.jsLib],getScript:()=>{var Jn,ta;const ea=j.useBabel?((ta=(Jn=window.Babel)==null?void 0:Jn.transform(Gn,{presets:["es2015"]}))==null?void 0:ta.code)||"":Gn.replace(/export\s+default/u,"return");return`const app=window.document.createElement('div');document.firstElementChild.appendChild(app);const appOptions=${$(ea)};appOptions.template=\`${Yn.replace("`",'\\`"')}\`;window.Vue.createApp(appOptions).mount(app);`}}},J=(b,j)=>{const U=w$1(j);return{...U,html:q(""),js:z(b.js[0]||""),css:b.css[0]||(b.js[0]?b.js[0].replace(/App\.__style__(?:\s*)=(?:\s*)`([\s\S]*)?`/,"$1").trim():""),isLegal:b.isLegal,jsLib:[U.react,U.reactDOM,...U.jsLib],jsx:!0,getScript:()=>{var Bn,Fn;const qn=((Fn=(Bn=window.Babel)==null?void 0:Bn.transform(b.js[0]||"",{presets:["es2015","react"]}))==null?void 0:Fn.code)||"";return`window.ReactDOM.createRoot(document.firstElementChild).render(window.React.createElement(${$(qn)}))`}}},h$1={},Q=b=>Promise.all([v$1(h$1,b.babel),v$1(h$1,b.react),v$1(h$1,b.reactDOM)]),F$1=b=>{const j=[v$1(h$1,b.vue)];return b.useBabel&&j.push(v$1(h$1,b.babel)),Promise.all(j)},G=b=>b.useBabel?v$1(h$1,b.babel):Promise.resolve();var Y=defineComponent({name:"CodeDemo",props:{id:{type:String,required:!0},type:{type:String,default:"normal"},title:{type:String,default:""},config:{type:String,default:""},code:{type:String,required:!0}},setup(b,{slots:j}){const U=ref(!1),Bn=ref(),Fn=ref(),qn=ref("0"),Wn=ref(!1),Yn=computed(()=>JSON.parse(b.config?le$1(b.config):"{}")),Gn=computed(()=>{const Jn=JSON.parse(le$1(b.code));return V(Jn)}),Qn=computed(()=>b.type==="react"?J(Gn.value,Yn.value):b.type==="vue"?I$2(Gn.value,Yn.value):H$2(Gn.value,Yn.value)),Zn=computed(()=>Qn.value.isLegal),Kn=(Jn=!1)=>{const ta=Bn.value.attachShadow({mode:"open"}),ea=document.createElement("div");ea.classList.add("code-demo-app"),ta.appendChild(ea),Zn.value?(Jn&&(ea.innerHTML=Qn.value.html),R(ta,Qn.value),B(b.id,ta,Qn.value),qn.value="0"):qn.value="auto",Wn.value=!0},Xn=()=>{switch(b.type){case"react":return Q(Qn.value).then(()=>Kn());case"vue":return F$1(Qn.value).then(()=>Kn());default:return G(Qn.value).then(()=>Kn(!0))}};return onMounted(()=>{setTimeout(()=>{Xn()},800)}),()=>{var Jn;return h$3("div",{class:"code-demo-wrapper",id:b.id},[Wn.value?null:h$3("div",{class:"loading"},h$3(N$1)),h$3("div",{class:"code-demo-header"},[Qn.value.isLegal?h$3("button",{class:["toggle-button",U.value?"down":"end"],onClick:()=>{qn.value=U.value?"0":`${Fn.value.clientHeight+13.8}px`,U.value=!U.value}}):null,b.title?h$3("span",{class:"title"},decodeURIComponent(b.title)):null,Qn.value.isLegal&&Qn.value.jsfiddle!==!1?h$3("form",{class:"code-demo-jsfiddle",target:"_blank",action:"https://jsfiddle.net/api/post/library/pure/",method:"post"},[h$3("input",{type:"hidden",name:"html",value:Qn.value.html}),h$3("input",{type:"hidden",name:"js",value:Qn.value.js}),h$3("input",{type:"hidden",name:"css",value:Qn.value.css}),h$3("input",{type:"hidden",name:"wrap",value:"1"}),h$3("input",{type:"hidden",name:"panel_js",value:"3"}),h$3("input",{type:"hidden",name:"resources",value:[...Qn.value.cssLib,...Qn.value.jsLib].join(",")}),h$3("button",{type:"submit",class:"jsfiddle-button",innerHTML:k$3,"aria-label":"JSFiddle","data-balloon-pos":"up"})]):null,!Qn.value.isLegal||Qn.value.codepen!==!1?h$3("form",{class:"code-demo-codepen",target:"_blank",action:"https://codepen.io/pen/define",method:"post"},[h$3("input",{type:"hidden",name:"data",value:JSON.stringify({html:Qn.value.html,js:Qn.value.js,css:Qn.value.css,js_external:Qn.value.jsLib.join(";"),css_external:Qn.value.cssLib.join(";"),layout:Qn.value.codepenLayout,html_pre_processor:Gn.value?Gn.value.html[1]:"none",js_pre_processor:Gn.value?Gn.value.js[1]:Qn.value.jsx?"babel":"none",css_pre_processor:Gn.value?Gn.value.css[1]:"none",editors:Qn.value.codepenEditors})}),h$3("button",{type:"submit",innerHTML:A$3,class:"codepen-button","aria-label":"Codepen","data-balloon-pos":"up"})]):null]),h$3("div",{ref:Bn,class:"code-demo-container",style:{display:Zn.value&&Wn.value?"block":"none"}}),h$3("div",{class:"code-demo-code-wrapper",style:{height:qn.value}},h$3("div",{ref:Fn,class:"code-demo-codes"},(Jn=j.default)==null?void 0:Jn.call(j)))])}}});const echarts="",LoadingIcon=()=>h$3(R$1,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),parseEChartsConfig=(config,type)=>{if(type==="js"){const exports={},module={exports};return eval(config),module.exports}return JSON.parse(config)};var ECharts=defineComponent({name:"ECharts",props:{config:{type:String,required:!0},id:{type:String,required:!0},title:{type:String,default:""},type:{type:String,default:"json"}},setup(b){const j=ref();let U;const Bn=ref(!0);return onMounted(()=>{Promise.all([__vitePreload(()=>import("./index-8764208e.js"),[]),new Promise(Fn=>setTimeout(Fn,800))]).then(([Fn])=>{const qn=parseEChartsConfig(le$1(b.config),b.type);U=Fn.init(j.value),U.showLoading(),U.setOption(qn),U.hideLoading(),Bn.value=!1}),useEventListener("resize",useDebounceFn(()=>U==null?void 0:U.resize(),100))}),onBeforeUnmount(()=>{U==null||U.dispose()}),()=>[b.title?h$3("div",{class:"echarts-title"},decodeURIComponent(b.title)):null,Bn.value?h$3("div",{class:"echarts-loading-wrapper"},h$3(LoadingIcon)):null,h$3("div",{ref:j,class:"echarts-wrapper",id:b.id})]}});const figure="",flowchart="",y$1=()=>h$3(R$1,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})])));var a$1={x:0,y:0,"line-width":2,"line-length":40,"text-margin":8,"font-size":14,"font-color":"#8DA1AC","line-color":"#8DA1AC","element-color":"black",fill:"white","yes-text":"Yes","no-text":"No","arrow-end":"block",scale:1},F={...a$1,symbols:{start:{class:"start-element","font-color":"#fff",fill:"#595959","line-width":"0px"},end:{class:"end-element","font-color":"#fff",fill:"#595959","line-width":"0px"},operation:{class:"operation-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"},inputoutput:{class:"inputoutput-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"},subroutine:{class:"subroutine-element","font-color":"#fff",fill:"#FF485E","element-color":"#fff","line-color":"red"},condition:{class:"condition-element","font-color":"#fff",fill:"#FF485E","line-width":"0px"},parallel:{class:"parallel-element","font-color":"#fff",fill:"#1890ff","line-width":"0px"}}},C={...a$1,"line-width":1,symbols:{start:{class:"start-element",fill:"#ccc","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},end:{class:"end-element",fill:"#ccc","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},operation:{class:"operation-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},inputoutput:{class:"inputoutput-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},subroutine:{class:"subroutine-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},condition:{class:"condition-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"},parallel:{class:"parallel-element",fill:"#f1f1f1","line-width":"1px","line-color":"#5c6ac4","font-color":"#000"}}},g$2={...a$1,symbols:{start:{class:"start-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"},end:{class:"end-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"},operation:{class:"operation-element","font-color":"#fff",fill:"#00BC7D","line-width":"0px"},inputoutput:{class:"inputoutput-element","font-color":"#fff",fill:"#EB4D5D","line-width":"0px"},subroutine:{class:"subroutine-element","font-color":"#fff",fill:"#937AC4","element-color":"#fff","line-color":"red"},condition:{class:"condition-element","font-color":"#fff",fill:"#FFB500","line-width":"0px"},parallel:{class:"parallel-element","font-color":"#fff",fill:"#2F495F","line-width":"0px"}}},p$1={ant:F,vue:g$2,pie:C},k$2=defineComponent({name:"FlowChart",props:{code:{type:String,required:!0},id:{type:String,required:!0},preset:{type:String,default:"vue"}},setup(b){let j;const U=ref(),Bn=ref(!0),Fn=ref(1),qn=computed(()=>p$1[b.preset]||(console.warn(`[md-enhance:flowchart] Unknown preset: ${b.preset}`),p$1.vue)),Wn=Yn=>Yn<419?.8:Yn>1280?1:.9;return onMounted(()=>{Promise.all([__vitePreload(()=>import("./flowchart-35969cab.js"),[]),new Promise(Yn=>setTimeout(Yn,800))]).then(([{parse:Yn}])=>{j=Yn(le$1(b.code)),Fn.value=Wn(window.innerWidth),Bn.value=!1,j.draw(b.id,{...qn.value,scale:Fn.value}),useEventListener("resize",useDebounceFn(()=>{const Gn=Wn(window.innerWidth);Fn.value!==Gn&&(Fn.value=Gn,j.draw(b.id,{...qn.value,scale:Gn}))},100))})}),()=>[Bn.value?h$3("div",{class:"flowchart-loading-wrapper"},h$3(y$1)):null,h$3("div",{ref:U,class:["flowchart-wrapper",b.preset],id:b.id,style:{display:Bn.value?"none":"block"}})]}});const footnote="",imageMark="",mermaid="",M=()=>h$3(R$1,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})]))),k$1=b=>({dark:b,background:b?"#1e1e1e":"#fff",primaryColor:b?"#389d70":"#4abf8a",primaryBorderColor:b?"#389d70":"#4abf8a",primaryTextColor:"#fff",secondaryColor:"#ffb500",secondaryBorderColor:b?"#fff":"#000",secondaryTextColor:b?"#ddd":"#333",tertiaryColor:b?"#282828":"#efeef4",tertiaryBorderColor:b?"#bbb":"#242424",tertiaryTextColor:b?"#ddd":"#333",noteBkgColor:b?"#f6d365":"#fff5ad",noteTextColor:"#242424",noteBorderColor:b?"#f6d365":"#333",lineColor:b?"#d3d3d3":"#333",textColor:b?"#fff":"#242424",mainBkg:b?"#389d70":"#4abf8a",errorBkgColor:"#eb4d5d",errorTextColor:"#fff",nodeBorder:b?"#389d70":"#4abf8a",nodeTextColor:b?"#fff":"#242424",signalTextColor:b?"#9e9e9e":"#242424",classText:"#fff",labelColor:"#fff",fillType0:b?"#cf1322":"#f1636e",fillType1:"#f39c12",fillType2:"#2ecc71",fillType3:"#fa541c",fillType4:"#25a55b",fillType5:"#13c2c2",fillType6:"#096dd9",fillType7:"#aa6fe9"});var w=defineComponent({name:"Mermaid",props:{id:{type:String,required:!0},code:{type:String,required:!0}},setup(b){const j=ref(""),U=ref(),Bn=ref(!1);let Fn=null;return onMounted(()=>{const qn=document.querySelector("html"),Wn=le$1(b.code),Yn=()=>qn.classList.contains("dark")||qn.getAttribute("data-theme")==="dark";Bn.value=Yn(),Promise.all([__vitePreload(()=>import("./mermaid.esm.min-bc08675d.js"),[]),__vitePreload(()=>import("./mermaid-mindmap.esm.min-af116e38.js"),["assets/mermaid-mindmap.esm.min-af116e38.js","assets/framework-561d691d.js"]),new Promise(Gn=>setTimeout(Gn,800))]).then(async([{default:Gn},{default:Qn}])=>{try{await Gn.registerExternalDiagrams([Qn])}catch{}const Zn=async()=>{const Kn=document.createElement("div");Kn.style.position="relative",Kn.style.top="-9999px";const Xn=Jn=>{j.value=Jn,document.body.removeChild(Kn)};Gn.initialize({theme:"base",themeVariables:k$1(Bn.value),flowchart:{useMaxWidth:!1},sequence:{useMaxWidth:!1},journey:{useMaxWidth:!1},gantt:{useMaxWidth:!1},er:{useMaxWidth:!1},pie:{useMaxWidth:!1},startOnLoad:!1}),j.value="",document.body.appendChild(Kn),await nextTick(),await Gn.renderAsync(b.id,Wn,Xn,Kn)};await Zn(),Fn=new MutationObserver(()=>{Bn.value=Yn()}),Fn.observe(qn,{attributeFilter:["class","data-theme"],attributes:!0}),watch(Bn,Zn)})}),onBeforeUnmount(()=>{Fn==null||Fn.disconnect()}),()=>h$3("div",{ref:U,class:["mermaid-wrapper",{loading:!j.value}]},j.value?h$3("div",{class:"content",innerHTML:j.value}):h$3(M))}});const o=()=>__vitePreload(()=>import("./highlight.esm-a794bb63.js"),[]),t=()=>__vitePreload(()=>import("./markdown.esm-d92a2fc9.js"),[]),e=()=>__vitePreload(()=>import("./math.esm-70a288c8.js"),[]),r$1=()=>__vitePreload(()=>import("./notes.esm-224f94d9.js"),[]),a=()=>__vitePreload(()=>import("./reveal.esm-e5069ce0.js"),[]),i$1=()=>__vitePreload(()=>import("./search.esm-2c3fba7d.js"),[]),c=()=>__vitePreload(()=>import("./zoom.esm-b83b91d0.js"),[]),useReveal=()=>[a(),t(),o(),e(),i$1(),r$1(),c()],index$1="",leagueGothic="",sourceSansPro="",k=()=>h$3(R$1,{name:"loading"},()=>["0s","-0.333s","-0.667s"].map(b=>h$3("circle",{cx:512,cy:512,r:0,fill:"none",stroke:"currentColor","stroke-width":"20"},[h$3("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;400",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:b}),h$3("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:b})])));var S$3=defineComponent({name:"Presentation",props:{id:{type:String,required:!0},code:{type:String,required:!0},theme:{type:String,default:"auto"}},setup(b){const j=usePageFrontmatter(),U=ref(""),Bn=ref(!1),Fn=ref(),qn=ref();let Wn;return onMounted(()=>{if(qn.value){U.value=le$1(b.code),qn.value.setAttribute("id",b.id),qn.value.setAttribute("data-theme",b.theme);const Yn=[new Promise(Gn=>setTimeout(Gn,800)),...useReveal()];Promise.all(Yn).then(([,Gn,...Qn])=>{Wn=new Gn.default(qn.value,{plugins:Qn.map(Zn=>Zn.default)}),Wn.initialize({backgroundTransition:"slide",hash:j.value.layout==="Slide",mouseWheel:j.value.layout==="Slide",transition:"slide",slideNumber:!0,...j.value.reveal||{},embedded:j.value.layout!=="Slide"}).then(()=>{Bn.value=!1,Wn.configure({backgroundTransition:"slide"})})})}}),onBeforeUnmount(()=>{Wn==null||Wn.destroy()}),()=>h$3("div",{ref:Fn,class:{"md-enhance-presentation":!0,loading:Bn.value}},[Bn.value?h$3(k):null,h$3("div",{ref:qn,class:["reveal","reveal-viewport"]},h$3("div",{class:"slides",style:{display:Bn.value?"none":"block"},innerHTML:`<section data-markdown data-separator="^\\r?\\n---\\r?\\n$" data-separator-vertical="^\\r?\\n--\\r?\\n$"><script type="text/template">${U.value}<\/script></section>`}))])}});const playground="",n='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200"><path d="M512 74.667C270.933 74.667 74.667 270.933 74.667 512S270.933 949.333 512 949.333 949.333 753.067 949.333 512 753.067 74.667 512 74.667zm0 810.666C307.2 885.333 138.667 716.8 138.667 512S307.2 138.667 512 138.667 885.333 307.2 885.333 512 716.8 885.333 512 885.333z"/><path d="M708.267 465.067 473.6 330.667c-8.533-4.267-17.067-6.4-25.6-6.4-29.867 0-53.333 23.466-53.333 53.333v268.8c0 8.533 2.133 19.2 6.4 25.6 10.666 17.067 27.733 27.733 46.933 27.733 8.533 0 17.067-2.133 25.6-6.4l234.667-134.4c8.533-4.266 14.933-10.666 19.2-19.2 6.4-12.8 8.533-27.733 4.266-40.533-2.133-14.933-10.666-25.6-23.466-34.133zM458.667 627.2V396.8L661.333 512 458.667 627.2z"/></svg>';var r=defineComponent({name:"Playground",props:{title:{type:String,default:""},link:{type:String,required:!0}},setup(b){return()=>[h$3("div",{class:"playground-wrapper"},[h$3("div",{class:"title-wrapper"},[b.title?h$3("div",{class:"title"},decodeURIComponent(b.title)):null,h$3("div",{class:"actions"},[h$3("a",{class:"action",href:decodeURIComponent(b.link),target:"_blank",innerHTML:n})])]),h$3("div",{class:"preview-container"},h$3("iframe",{class:"iframe-preview",src:decodeURIComponent(b.link)}))])]}});const tabs="",v=useStorage("VUEPRESS_TAB_STORE",{});var S$2=defineComponent({name:"Tabs",props:{active:{type:Number,default:0},data:{type:Array,required:!0},id:{type:String,required:!0},tabId:{type:String,default:""}},setup(b,{slots:j}){const U=ref(b.active),Bn=ref([]),Fn=()=>{if(b.tabId){const{title:Qn,id:Zn=Qn}=b.data[U.value];v.value[b.tabId]=Zn}},qn=(Qn=U.value)=>{U.value=Qn<Bn.value.length-1?Qn+1:0,Bn.value[U.value].focus()},Wn=(Qn=U.value)=>{U.value=Qn>0?Qn-1:Bn.value.length-1,Bn.value[U.value].focus()},Yn=(Qn,Zn)=>{Qn.key===" "||Qn.key==="Enter"?(Qn.preventDefault(),U.value=Zn):Qn.key==="ArrowRight"?(Qn.preventDefault(),qn()):Qn.key==="ArrowLeft"&&(Qn.preventDefault(),Wn()),Fn()},Gn=()=>{if(b.tabId){const Qn=b.data.findIndex(({title:Zn,id:Kn=Zn})=>v.value[b.tabId]===Kn);if(Qn!==-1)return Qn}return b.active};return onMounted(()=>{U.value=Gn(),watch(()=>v.value[b.tabId],(Qn,Zn)=>{if(b.tabId&&Qn!==Zn){const Kn=b.data.findIndex(({title:Xn,id:Jn=Xn})=>Jn===Qn);Kn!==-1&&(U.value=Kn)}})}),()=>b.data.length?h$3("div",{class:"tab-list"},[h$3("div",{class:"tab-list-nav",role:"tablist"},b.data.map(({title:Qn},Zn)=>{const Kn=Zn===U.value;return h$3("button",{ref:Xn=>{Xn&&(Bn.value[Zn]=Xn)},class:["tab-list-nav-item",{active:Kn}],role:"tab","aria-controls":`tab-${b.id}-${Zn}`,"aria-selected":Kn,onClick:()=>{U.value=Zn,Fn()},onKeydown:Xn=>Yn(Xn,Zn)},Qn)})),b.data.map(({title:Qn,id:Zn=Qn},Kn)=>{var Xn;const Jn=Kn===U.value;return h$3("div",{class:["tab-item",{active:Jn}],id:`tab-${b.id}-${Kn}`,role:"tabpanel","aria-expanded":Jn},(Xn=j[`tab${Kn}`])==null?void 0:Xn.call(j,{title:Qn,value:Zn,isActive:Jn}))})]):null}});const tasklist="",katex="",clientConfig9=defineClientConfig({enhance:({app:b})=>{b.component("ChartJS",ChartJS),b.component("CodeTabs",S$4),Ht$1("CodeGroup",b)||b.component("CodeGroup",y$2),Ht$1("CodeGroupItem",b)||b.component("CodeGroupItem",c$1),b.component("CodeDemo",Y),b.component("ECharts",ECharts),b.component("FlowChart",k$2),b.component("Mermaid",w),b.component("Presentation",S$3),b.component("Playground",r),b.component("Tabs",S$2),b.component("VuePlayground",defineAsyncComponent(()=>__vitePreload(()=>import("./VuePlayground-ad380539.js"),["assets/VuePlayground-ad380539.js","assets/framework-561d691d.js"])))}}),photoswipe="",E$1=".theme-hope-content :not(a) > img",P$1={"/en/":{closeTitle:"Close",downloadTitle:"Download Image",fullscreenTitle:"Switch to full screen",zoomTitle:"Zoom in/out",arrowPrevTitle:"Prev (Arrow Left)",arrowNextTitle:"Next (Arrow Right)"},"/":{closeTitle:"关闭",downloadTitle:"下载图片",fullscreenTitle:"切换全屏",zoomTitle:"缩放",arrowPrevTitle:"上一个 (左箭头)",arrowNextTitle:"下一个 (右箭头)"}},O=800,H$1={},d$2=b=>({src:b.src,width:b.naturalWidth,height:b.naturalHeight,alt:b.alt}),I$1=b=>{const j=isString$1(b)?Array.from(document.querySelectorAll(b)):b.map(U=>Array.from(document.querySelectorAll(U))).flat();return Promise.all(j.map(U=>new Promise((Bn,Fn)=>{U.complete?Bn(d$2(U)):(U.onload=()=>Bn(d$2(U)),U.onerror=qn=>Fn(qn))}))).then(U=>({elements:j,infos:U}))},A$2=()=>{const{isSupported:b,toggle:j}=useFullscreen(),U=Yt$1(P$1),Bn=useRoute(),Fn=()=>{Promise.all([__vitePreload(()=>import("./photoswipe.esm-04fddac6.js"),[]),new Promise(qn=>setTimeout(qn,O)).then(()=>I$1(E$1))]).then(([qn,Wn])=>{Wn.elements.forEach((Yn,Gn)=>{const Qn=()=>{const Zn=new qn.default({dataSource:Wn.infos,...U.value,...H$1,index:Gn});Zn.on("uiRegister",()=>{b&&Zn.ui.registerElement({name:"fullscreen",order:7,isButton:!0,html:'<svg class="pswp__icn" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path d="M249.5 270.833H437v-75H212a37.5 37.5 0 0 0-37.5 37.5v225h75v-187.5zm-37.5 600h225v-75H249.5v-187.5h-75v225a37.5 37.5 0 0 0 37.5 37.5zm637.5-37.5v-225h-75v187.5H587v75h225a37.5 37.5 0 0 0 37.5-37.5zM587 270.833h187.5v187.5h75v-225a37.5 37.5 0 0 0-37.5-37.5H587v75z"/></svg>',onClick:()=>{j()}}),Zn.ui.registerElement({name:"download",order:8,isButton:!0,tagName:"a",html:{isCustomSVG:!0,inner:'<path d="M20.5 14.3 17.1 18V10h-2.2v7.9l-3.4-3.6L10 16l6 6.1 6-6.1-1.5-1.6ZM23 23H9v2h14" id="pswp__icn-download"/>',outlineID:"pswp__icn-download"},onInit:(Kn,Xn)=>{Kn.setAttribute("download",""),Kn.setAttribute("target","_blank"),Kn.setAttribute("rel","noopener"),Xn.on("change",()=>{Kn.href=Xn.currSlide.data.src})}})}),Zn.init()};Yn.style.cursor="zoom-in",Yn.addEventListener("click",Qn),Yn.addEventListener("keypress",({key:Zn})=>{Zn==="Enter"&&Qn()})})})};onMounted(()=>{Fn(),watch(()=>Bn.path,()=>Fn())})};var y=defineClientConfig({setup:()=>{A$2()}});function i(b){return{all:b=b||new Map,on:function(j,U){var Bn=b.get(j);Bn?Bn.push(U):b.set(j,[U])},off:function(j,U){var Bn=b.get(j);Bn&&(U?Bn.splice(Bn.indexOf(U)>>>0,1):b.set(j,[]))},emit:function(j,U){var Bn=b.get(j);Bn&&Bn.slice().map(function(Fn){Fn(U)}),(Bn=b.get("*"))&&Bn.slice().map(function(Fn){Fn(j,U)})}}}const l=Symbol.for("PWAEvent"),g$1=async b=>{const{register:j}=await __vitePreload(()=>import("./index-70769223.js"),[]);j(withBase("service-worker.js"),{ready(U){console.log("[PWA]: Service worker is active"),b.emit("ready",U)},registered(U){console.log("[PWA]: Service worker has been registered."),b.emit("registered",U)},cached(U){console.log("[PWA]: Content has been cached for offline usage"),b.emit("cached",U)},async updatefound(U){await navigator.serviceWorker.getRegistration()&&(console.log("[PWA]: New content is downloading."),b.emit("updatefound",U))},updated(U){console.log("[PWA]: New content is available, please refresh.");const Bn="service-worker-version",Fn=Number(localStorage.getItem(Bn)||0);localStorage.setItem(Bn,(Fn+1).toString()),localStorage.removeItem("manifest"),b.emit("updated",U)},offline(){console.log("[PWA]: No internet connection found. App is running in offline mode."),b.emit("offline")},error(U){console.log("[PWA]: Error during service worker registration:",U),b.emit("error",U)}})},m$1=()=>{const b=i();provide(l,b),onMounted(async()=>{var j;let U=!1;(j=navigator.serviceWorker)!=null&&j.controller&&navigator.serviceWorker.addEventListener("controllerchange",()=>{U||(U=!0,window.location.reload())}),await g$1(b)})},popup="",W={"/en/":{install:"Install",iOSInstall:"Tap the share button and then 'Add to Home Screen'",cancel:"Cancel",close:"Close",prevImage:"Previous Image",nextImage:"Next Image",desc:"Description",feature:"Key Features",explain:"This app can be installed on your PC or mobile device. This will allow this web app to look and behave like any other installed app. You will find it in your app lists and be able to pin it to your home screen, start menus or task bars. This installed web app will also be able to safely interact with other apps and your operating system. ",hint:"New content found.",update:"New content is available."},"/":{install:"安装",iOSInstall:"点击分享按钮然后点击“添加到主屏幕”",cancel:"取消",close:"关闭",prevImage:"上一张图片",nextImage:"下一张图片",desc:"详情",feature:"主要特色",explain:"该应用可以安装在你的 PC 或移动设备上。这将使该 Web 应用程序外观和行为与其他应用程序相同。它将在出现在应用程序列表中,并可以固定到主屏幕,开始菜单或任务栏。此 Web 应用程序还将能够与其他应用程序和你的操作系统安全地进行交互。",hint:"发现新内容可用",update:"新内容已就绪"}},s=()=>h$3(R$1,{name:"update"},()=>h$3("path",{d:"M949.949 146.25v255.826c0 21.981-13.989 35.97-35.97 35.97H658.154c-13.988 0-25.983-7.992-33.973-21.981-5.997-13.989-4-27.977 7.991-39.97l79.942-77.946c-55.954-51.973-121.918-77.955-199.863-77.955-37.975 0-75.95 8.002-113.924 21.99-37.975 15.985-67.948 37.976-91.934 63.957-25.982 23.987-47.973 53.96-63.957 91.934-29.983 73.955-29.983 153.895 0 227.85 15.984 37.976 37.975 67.947 63.957 91.934 23.986 25.982 53.959 47.973 91.934 63.956 37.974 13.989 75.95 21.991 113.924 21.991 45.967 0 87.942-9.998 127.913-29.982 41.976-17.99 75.951-45.967 101.931-83.943 7.993-4 11.994-5.995 13.989-5.995 5.997 0 9.998 1.994 13.988 5.995l77.958 77.946c3.989 4 5.986 7.993 5.986 11.994 0 1.994-1.996 5.995-3.99 11.994-43.973 51.962-93.941 91.934-151.9 117.914-53.958 25.983-115.92 39.972-185.874 39.972-61.961 0-119.921-11.984-169.89-33.973-57.96-25.985-105.923-57.963-139.896-93.943-35.98-33.972-67.958-81.936-93.94-139.897-45.967-101.93-45.967-237.846 0-339.777 25.982-57.96 57.96-105.923 93.94-139.896 33.973-35.98 81.936-67.958 139.896-93.94 49.968-21.99 107.928-33.974 169.89-33.974 55.963 0 109.923 9.988 161.885 29.973 53.97 21.99 101.933 51.963 139.908 89.938l73.954-73.944c9.987-9.998 23.987-13.988 39.971-8.002 13.988 8.002 21.98 19.995 21.98 33.984z"}));s.displayName="UpdateIcon";const P=Symbol.for("PWAEvent"),S$1=()=>{const b=inject(P);if(!b)throw new Error("usePWAEvent() is called without provider.");return b},g=b=>{const j=b.waiting;if(!j)return;const U=new MessageChannel;j.postMessage({type:"SKIP_WAITING"},[U.port2])};var A$1=defineComponent({name:"SWUpdatePopup",setup(b,{slots:j}){const U=Yt$1(W),Bn=ref(),Fn=computed(()=>Boolean(Bn.value)),qn=()=>{Bn.value&&(g(Bn.value),Bn.value=void 0)};return onMounted(()=>{S$1().on("updated",Wn=>{Wn&&(Bn.value=Wn)})}),()=>h$3(Transition,{name:"popup"},()=>{var Wn;return((Wn=j.default)==null?void 0:Wn.call(j,{enabled:Fn.value,reload:qn}))||(Fn.value?h$3("button",{class:"sw-update-popup",tabindex:0,onClick:()=>qn()},[U.value.update,h$3("span",{class:"icon-wrapper"},h$3(s))]):null)})}});const clientConfig11=defineClientConfig({setup:()=>{m$1()},rootComponents:[A$1]}),useAutoLink=(b,j=!1)=>{const U=useRouter(),{fullPath:Bn,meta:Fn,name:qn}=Ot$1(U,encodeURI(b));return{text:!j&&Fn.s?Fn.s:Fn.t||b,link:qn==="404"?b:Bn,...Fn.i?{icon:Fn.i}:{}}},useThemeData=()=>useThemeData$1(),useThemeLocaleData=()=>useThemeLocaleData$1(),usePure=()=>computed(()=>Boolean(useThemeData().value.pure)),useWindowSize=()=>{const b=useThemeData(),j=ref(!1),U=ref(!1),Bn=()=>{j.value=window.innerWidth<=(b.value.mobileBreakPoint||719),U.value=window.innerWidth>=(b.value.wideBreakPoint||1440)};return onMounted(()=>{Bn(),useEventListener("resize",Bn,!1),useEventListener("orientationchange",Bn,!1)}),{isMobile:j,isWide:U}},useNavigate=()=>{const b=useRouter(),j=useRoute();return U=>{if(U)if(ue$1(U))j.path!==U&&b.push(U);else if(isLinkHttp(U)||isLinkMailto(U))window&&window.open(U);else{const Bn=j.path.slice(0,j.path.lastIndexOf("/"));b.push(`${Bn}/${encodeURI(U)}`)}}},usePageAuthor=()=>{const b=useThemeLocaleData(),j=usePageFrontmatter();return computed(()=>{const{author:U}=j.value;return U?re$1(U):U===!1?[]:re$1(b.value.author,!1)})},usePageCategory=()=>{const b=usePageFrontmatter();return computed(()=>se$1(b.value.category).map(j=>({name:j,path:""})))},usePageTag=()=>{const b=usePageFrontmatter();return computed(()=>oe$1(b.value.tag).map(j=>({name:j,path:""})))},usePageDate=()=>{const b=usePageFrontmatter(),j=usePageData();return computed(()=>{const{date:U}=b.value;if(U)return st$1(U);const{createdTime:Bn}=j.value.git||{};return Bn?st$1(new Date(Bn)):null})},usePageInfo=()=>{const b=useThemeLocaleData(),j=usePageData(),U=usePageFrontmatter(),Bn=usePageAuthor(),Fn=usePageCategory(),qn=usePageTag(),Wn=usePageDate(),Yn=computed(()=>({author:Bn.value,category:Fn.value,date:Wn.value,localizedDate:j.value.localizedDate,tag:qn.value,isOriginal:U.value.isOriginal||!1,readingTime:j.value.readingTime||null,pageview:"pageview"in U.value?U.value.pageview:!0})),Gn=computed(()=>"pageInfo"in U.value?U.value.pageInfo:"pageInfo"in b.value?b.value.pageInfo:null);return{info:Yn,items:Gn}};let promise=null,promiseResolve=null;const scrollPromise={wait:()=>promise,pending:()=>{promise=new Promise(b=>promiseResolve=b)},resolve:()=>{promiseResolve==null||promiseResolve(),promise=null,promiseResolve=null}},useScrollPromise=()=>scrollPromise,footer="",PageFooter=defineComponent({name:"PageFooter",setup(){const b=usePageFrontmatter(),j=useThemeLocaleData(),U=usePageAuthor(),Bn=computed(()=>{const{copyright:Wn,footer:Yn}=b.value;return Yn!==!1&&Boolean(Wn||Yn||j.value.displayFooter)}),Fn=computed(()=>{const{footer:Wn}=b.value;return Wn===!1?!1:isString$1(Wn)?Wn:j.value.footer||""}),qn=computed(()=>"copyright"in b.value?b.value.copyright:"copyright"in j.value?j.value.copyright:U.value.length?`Copyright © ${new Date().getFullYear()} ${U.value[0].name}`:!1);return()=>Bn.value?h$3("footer",{class:"footer-wrapper"},[Fn.value?h$3("div",{class:"footer",innerHTML:Fn.value}):null,qn.value?h$3("div",{class:"copyright",innerHTML:qn.value}):null]):null}}),I18nIcon=()=>h$3(R$1,{name:"i18n"},()=>[h$3("path",{d:"M379.392 460.8 494.08 575.488l-42.496 102.4L307.2 532.48 138.24 701.44l-71.68-72.704L234.496 460.8l-45.056-45.056c-27.136-27.136-51.2-66.56-66.56-108.544h112.64c7.68 14.336 16.896 27.136 26.112 35.84l45.568 46.08 45.056-45.056C382.976 312.32 409.6 247.808 409.6 204.8H0V102.4h256V0h102.4v102.4h256v102.4H512c0 70.144-37.888 161.28-87.04 210.944L378.88 460.8zM576 870.4 512 1024H409.6l256-614.4H768l256 614.4H921.6l-64-153.6H576zM618.496 768h196.608L716.8 532.48 618.496 768z"})]);I18nIcon.displayName="I18nIcon";const Icon=b=>{const{icon:j=""}=b;return isLinkHttp(j)?h$3("img",{class:"icon",src:j}):ue$1(j)?h$3("img",{class:"icon",src:withBase(j)}):h$3(resolveComponent("FontIcon"),b)};Icon.displayName="Icon";const AutoLink=defineComponent({name:"AutoLink",inheritAttrs:!1,props:{config:{type:Object,required:!0},exact:Boolean,noExternalLinkIcon:Boolean},emits:{focusout:()=>!0},setup(b,{attrs:j,emit:U,slots:Bn}){const Fn=useRoute(),qn=useSiteData(),Wn=toRef(b,"config"),Yn=computed(()=>isLinkHttp(Wn.value.link)),Gn=computed(()=>isLinkMailto(Wn.value.link)||isLinkTel(Wn.value.link)),Qn=computed(()=>Gn.value?void 0:Wn.value.target||(Yn.value?"_blank":void 0)),Zn=computed(()=>Qn.value==="_blank"),Kn=computed(()=>!Yn.value&&!Gn.value&&!Zn.value),Xn=computed(()=>Gn.value?void 0:Wn.value.rel||(Zn.value?"noopener noreferrer":void 0)),Jn=computed(()=>Wn.value.ariaLabel||Wn.value.text),ta=computed(()=>{if(b.exact)return!1;const na=Dt$1(qn.value.locales);return na.length?na.every(aa=>aa!==Wn.value.link):Wn.value.link!=="/"}),ea=computed(()=>Kn.value?Wn.value.activeMatch?new RegExp(Wn.value.activeMatch).test(Fn.path):ta.value?bt$1(Fn.path,Wn.value.link):Fn.path===Wn.value.link:!1);return()=>{var ua,ha,ga;const{text:na,icon:aa,link:ia}=Wn.value;return Kn.value?h$3(RouterLink,{to:ia,"aria-label":Jn.value,...j,class:["nav-link",{active:ea.value},j.class],onFocusout:()=>U("focusout")},()=>{var $a,la,sa;return(($a=Bn.default)==null?void 0:$a.call(Bn))||[((la=Bn.before)==null?void 0:la.call(Bn))||h$3(Icon,{icon:aa}),na,(sa=Bn.after)==null?void 0:sa.call(Bn)]}):h$3("a",{href:ia,rel:Xn.value,target:Qn.value,"aria-label":Jn.value,...j,class:["nav-link",j.class],onFocusout:()=>U("focusout")},((ua=Bn.default)==null?void 0:ua.call(Bn))||[((ha=Bn.before)==null?void 0:ha.call(Bn))||h$3(Icon,{icon:aa}),na,b.noExternalLinkIcon?null:h$3(ExternalLinkIcon),(ga=Bn.after)==null?void 0:ga.call(Bn)])}}}),dropdownLink="",DropdownLink=defineComponent({name:"NavbarDropdownLink",props:{config:{type:Object,required:!0}},setup(b,{slots:j}){const U=useRoute(),Bn=toRef(b,"config"),Fn=computed(()=>Bn.value.ariaLabel||Bn.value.text),qn=ref(!1);watch(()=>U.path,()=>{qn.value=!1});const Wn=Yn=>{Yn.detail===0&&(qn.value=!qn.value)};return()=>{var Yn;return h$3("div",{class:["dropdown-wrapper",{open:qn.value}]},[h$3("button",{class:"dropdown-title",type:"button","aria-label":Fn.value,onClick:Wn},[((Yn=j.title)==null?void 0:Yn.call(j))||h$3("span",{class:"title"},[h$3(Icon,{icon:Bn.value.icon}),b.config.text]),h$3("span",{class:"arrow"}),h$3("ul",{class:"nav-dropdown"},Bn.value.children.map((Gn,Qn)=>{const Zn=Qn===Bn.value.children.length-1;return h$3("li",{class:"dropdown-item"},"children"in Gn?[h$3("h4",{class:"dropdown-subtitle"},Gn.link?h$3(AutoLink,{config:Gn,onFocusout:()=>{Gn.children.length===0&&Zn&&(qn.value=!1)}}):h$3("span",Gn.text)),h$3("ul",{class:"dropdown-subitem-wrapper"},Gn.children.map((Kn,Xn)=>h$3("li",{class:"dropdown-subitem"},h$3(AutoLink,{config:Kn,onFocusout:()=>{Xn===Gn.children.length-1&&Zn&&(qn.value=!1)}}))))]:h$3(AutoLink,{config:Gn,onFocusout:()=>{Zn&&(qn.value=!1)}}))}))])])}}}),resolveNavbarItem=(b,j="")=>isString$1(b)?useAutoLink(`${j}${b}`):"children"in b?{...b,...b.link&&!isLinkExternal(b.link)?useAutoLink(`${j}${b.link}`):{},children:b.children.map(U=>resolveNavbarItem(U,`${j}${b.prefix||""}`))}:{...b,link:isLinkExternal(b.link)?b.link:useAutoLink(`${j}${b.link}`).link},useNavbarConfig=()=>computed(()=>(useThemeLocaleData().value.navbar||[]).map(b=>resolveNavbarItem(b))),useNavbarLanguageDropdown=()=>{const b=useRouter(),j=useRouteLocale(),U=useSiteLocaleData(),Bn=useThemeData(),Fn=useThemeLocaleData();return computed(()=>{const qn=Dt$1(U.value.locales);if(qn.length<2)return null;const{path:Wn,fullPath:Yn}=b.currentRoute.value,{navbarLocales:Gn}=Fn.value;return{text:"",ariaLabel:Gn==null?void 0:Gn.selectLangAriaLabel,children:qn.map(Zn=>{var na,aa,ia;const Kn=((na=U.value.locales)==null?void 0:na[Zn])??{},Xn=((aa=Bn.value.locales)==null?void 0:aa[Zn])??{},Jn=Kn.lang||"",ta=((ia=Xn.navbarLocales)==null?void 0:ia.langName)??Jn;let ea;if(Jn===U.value.lang)ea=Wn;else{const ua=Wn.replace(j.value,Zn);ea=b.getRoutes().some(ha=>ha.path===ua)?Yn.replace(Wn,ua):Xn.home??Zn}return{text:ta,link:ea}})}})},useNavbarRepo=()=>{const b=useThemeLocaleData(),j=computed(()=>b.value.repo||null),U=computed(()=>j.value?de$1(j.value):null),Bn=computed(()=>j.value?me$1(j.value):null),Fn=computed(()=>U.value?b.value.repoLabel??(Bn.value===null?"Source":Bn.value):null);return computed(()=>!U.value||!Fn.value||b.value.repoDisplay===!1?null:{type:Bn.value||"Source",label:Fn.value,link:U.value})},LanguageDropdown=defineComponent({name:"LanguageDropdown",setup(){const b=useNavbarLanguageDropdown();return()=>b.value?h$3("div",{class:"nav-item"},h$3(DropdownLink,{class:"i18n-dropdown",config:b.value},{title:()=>{var j;return h$3(I18nIcon,{"aria-label":(j=b.value)==null?void 0:j.ariaLabel,style:{width:"1rem",height:"1rem",verticalAlign:"middle"}})}})):null}}),navbarBrand="",NavbarBrand=defineComponent({name:"NavbarBrand",setup(){const b=useRouteLocale(),j=useSiteLocaleData(),U=useThemeLocaleData(),Bn=computed(()=>U.value.home||b.value),Fn=computed(()=>j.value.title),qn=computed(()=>U.value.logo?withBase(U.value.logo):null),Wn=computed(()=>U.value.logoDark?withBase(U.value.logoDark):null);return()=>h$3(RouterLink,{to:Bn.value,class:"brand"},()=>[qn.value?h$3("img",{class:["logo",{light:Boolean(Wn.value)}],src:qn.value,alt:Fn.value}):null,Wn.value?h$3("img",{class:["logo dark"],src:Wn.value,alt:Fn.value}):null,Fn.value?h$3("span",{class:["site-name",{"hide-in-pad":qn.value&&U.value.hideSiteNameOnMobile!==!1}]},Fn.value):null])}}),navbarLinks="",NavbarLinks=defineComponent({name:"NavbarLinks",setup(){const b=useNavbarConfig();return()=>b.value.length?h$3("nav",{class:"nav-links"},[...b.value.map(j=>h$3("div",{class:"nav-item hide-in-mobile"},"children"in j?h$3(DropdownLink,{config:j}):h$3(AutoLink,{config:j})))]):null}});function _toConsumableArray(b){if(Array.isArray(b)){for(var j=0,U=Array(b.length);j<b.length;j++)U[j]=b[j];return U}else return Array.from(b)}var hasPassiveEvents=!1;if(typeof window<"u"){var passiveTestOptions={get passive(){hasPassiveEvents=!0}};window.addEventListener("testPassive",null,passiveTestOptions),window.removeEventListener("testPassive",null,passiveTestOptions)}var isIosDevice=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),locks=[],documentListenerAdded=!1,initialClientY=-1,previousBodyOverflowSetting=void 0,previousBodyPaddingRight=void 0,allowTouchMove=function b(j){return locks.some(function(U){return!!(U.options.allowTouchMove&&U.options.allowTouchMove(j))})},preventDefault=function b(j){var U=j||window.event;return allowTouchMove(U.target)||U.touches.length>1?!0:(U.preventDefault&&U.preventDefault(),!1)},setOverflowHidden=function b(j){if(previousBodyPaddingRight===void 0){var U=!!j&&j.reserveScrollBarGap===!0,Bn=window.innerWidth-document.documentElement.clientWidth;U&&Bn>0&&(previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight=Bn+"px")}previousBodyOverflowSetting===void 0&&(previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden")},restoreOverflowSetting=function b(){previousBodyPaddingRight!==void 0&&(document.body.style.paddingRight=previousBodyPaddingRight,previousBodyPaddingRight=void 0),previousBodyOverflowSetting!==void 0&&(document.body.style.overflow=previousBodyOverflowSetting,previousBodyOverflowSetting=void 0)},isTargetElementTotallyScrolled=function b(j){return j?j.scrollHeight-j.scrollTop<=j.clientHeight:!1},handleScroll=function b(j,U){var Bn=j.targetTouches[0].clientY-initialClientY;return allowTouchMove(j.target)?!1:U&&U.scrollTop===0&&Bn>0||isTargetElementTotallyScrolled(U)&&Bn<0?preventDefault(j):(j.stopPropagation(),!0)},disableBodyScroll=function b(j,U){if(!j){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!locks.some(function(Fn){return Fn.targetElement===j})){var Bn={targetElement:j,options:U||{}};locks=[].concat(_toConsumableArray(locks),[Bn]),isIosDevice?(j.ontouchstart=function(Fn){Fn.targetTouches.length===1&&(initialClientY=Fn.targetTouches[0].clientY)},j.ontouchmove=function(Fn){Fn.targetTouches.length===1&&handleScroll(Fn,j)},documentListenerAdded||(document.addEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!0)):setOverflowHidden(U)}},clearAllBodyScrollLocks=function b(){isIosDevice?(locks.forEach(function(j){j.targetElement.ontouchstart=null,j.targetElement.ontouchmove=null}),documentListenerAdded&&(document.removeEventListener("touchmove",preventDefault,hasPassiveEvents?{passive:!1}:void 0),documentListenerAdded=!1),initialClientY=-1):restoreOverflowSetting(),locks=[]};const navScreenDropdown="",NavScreenDropdown=defineComponent({name:"NavScreenDropdown",props:{config:{type:Object,required:!0}},setup(b){const j=useRoute(),U=toRef(b,"config"),Bn=computed(()=>U.value.ariaLabel||U.value.text),Fn=ref(!1);watch(()=>j.path,()=>{Fn.value=!1});const qn=(Wn,Yn)=>Yn[Yn.length-1]===Wn;return()=>[h$3("button",{class:["nav-screen-dropdown-title",{active:Fn.value}],type:"button","aria-label":Bn.value,onClick:()=>{Fn.value=!Fn.value}},[h$3("span",{class:"title"},[h$3(Icon,{icon:U.value.icon}),b.config.text]),h$3("span",{class:["arrow",Fn.value?"down":"end"]})]),h$3("ul",{class:["nav-screen-dropdown",{hide:!Fn.value}]},U.value.children.map(Wn=>h$3("li",{class:"dropdown-item"},"children"in Wn?[h$3("h4",{class:"dropdown-subtitle"},Wn.link?h$3(AutoLink,{config:Wn,onFocusout:()=>{qn(Wn,U.value.children)&&Wn.children.length===0&&(Fn.value=!1)}}):h$3("span",Wn.text)),h$3("ul",{class:"dropdown-subitem-wrapper"},Wn.children.map(Yn=>h$3("li",{class:"dropdown-subitem"},h$3(AutoLink,{config:Yn,onFocusout:()=>{qn(Yn,Wn.children)&&qn(Wn,U.value.children)&&(Fn.value=!1)}}))))]:h$3(AutoLink,{config:Wn,onFocusout:()=>{qn(Wn,U.value.children)&&(Fn.value=!1)}}))))]}}),navScreenLinks="",NavScreenLinks=defineComponent({name:"NavScreenLinks",setup(){const b=useNavbarConfig();return()=>b.value.length?h$3("nav",{class:"nav-screen-links"},b.value.map(j=>h$3("div",{class:"navbar-links-item"},"children"in j?h$3(NavScreenDropdown,{config:j}):h$3(AutoLink,{config:j})))):null}}),DarkIcon=()=>h$3(R$1,{name:"dark"},()=>h$3("path",{d:"M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"}));DarkIcon.displayName="DarkIcon";const LightIcon=()=>h$3(R$1,{name:"light"},()=>h$3("path",{d:"M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"}));LightIcon.displayName="LightIcon";const AutoIcon=()=>h$3(R$1,{name:"auto"},()=>h$3("path",{d:"M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"}));AutoIcon.displayName="AutoIcon";const EnterFullScreenIcon=()=>h$3(R$1,{name:"enter-fullscreen"},()=>h$3("path",{d:"M762.773 90.24h-497.28c-96.106 0-174.4 78.293-174.4 174.4v497.28c0 96.107 78.294 174.4 174.4 174.4h497.28c96.107 0 175.04-78.293 174.4-174.4V264.64c0-96.213-78.186-174.4-174.4-174.4zm-387.2 761.173H215.04c-21.867 0-40.427-17.92-41.067-41.066V649.92c0-22.507 17.92-40.427 40.427-40.427 11.307 0 21.227 4.694 28.48 11.947 7.253 7.253 11.947 17.92 11.947 28.48v62.293l145.28-145.28c15.893-15.893 41.813-15.893 57.706 0 15.894 15.894 15.894 41.814 0 57.707l-145.28 145.28h62.294c22.506 0 40.426 17.92 40.426 40.427s-17.173 41.066-39.68 41.066zM650.24 165.76h160.427c21.866 0 40.426 17.92 41.066 41.067v160.426c0 22.507-17.92 40.427-40.426 40.427-11.307 0-21.227-4.693-28.48-11.947-7.254-7.253-11.947-17.92-11.947-28.48v-62.186L625.6 450.347c-15.893 15.893-41.813 15.893-57.707 0-15.893-15.894-15.893-41.814 0-57.707l145.28-145.28H650.88c-22.507 0-40.427-17.92-40.427-40.427s17.174-41.173 39.787-41.173z"}));EnterFullScreenIcon.displayName="EnterFullScreenIcon";const CancelFullScreenIcon=()=>h$3(R$1,{name:"cancel-fullscreen"},()=>h$3("path",{d:"M778.468 78.62H247.922c-102.514 0-186.027 83.513-186.027 186.027V795.08c0 102.514 83.513 186.027 186.027 186.027h530.432c102.514 0 186.71-83.513 186.026-186.027V264.647C964.494 162.02 880.981 78.62 778.468 78.62zM250.88 574.35h171.122c23.324 0 43.122 19.115 43.804 43.805v171.121c0 24.008-19.114 43.122-43.122 43.122-12.06 0-22.641-5.006-30.378-12.743s-12.743-19.115-12.743-30.379V722.83L224.597 877.91c-16.953 16.952-44.6 16.952-61.553 0-16.953-16.954-16.953-44.602 0-61.554L318.009 661.39h-66.446c-24.007 0-43.122-19.114-43.122-43.122 0-24.12 18.432-43.918 42.439-43.918zm521.899-98.873H601.657c-23.325 0-43.122-19.114-43.805-43.804V260.55c0-24.007 19.115-43.122 43.122-43.122 12.06 0 22.642 5.007 30.379 12.743s12.743 19.115 12.743 30.38v66.445l154.965-154.965c16.953-16.953 44.601-16.953 61.554 0 16.953 16.953 16.953 44.6 0 61.554L705.536 388.55h66.446c24.007 0 43.122 19.115 43.122 43.122.114 24.007-18.318 43.804-42.325 43.804z"}));CancelFullScreenIcon.displayName="CancelFullScreenIcon";const OutlookIcon=()=>h$3(R$1,{name:"outlook"},()=>[h$3("path",{d:"M224 800c0 9.6 3.2 44.8 6.4 54.4 6.4 48-48 76.8-48 76.8s80 41.6 147.2 0 134.4-134.4 38.4-195.2c-22.4-12.8-41.6-19.2-57.6-19.2C259.2 716.8 227.2 761.6 224 800zM560 675.2l-32 51.2c-51.2 51.2-83.2 32-83.2 32 25.6 67.2 0 112-12.8 128 25.6 6.4 51.2 9.6 80 9.6 54.4 0 102.4-9.6 150.4-32l0 0c3.2 0 3.2-3.2 3.2-3.2 22.4-16 12.8-35.2 6.4-44.8-9.6-12.8-12.8-25.6-12.8-41.6 0-54.4 60.8-99.2 137.6-99.2 6.4 0 12.8 0 22.4 0 12.8 0 38.4 9.6 48-25.6 0-3.2 0-3.2 3.2-6.4 0-3.2 3.2-6.4 3.2-6.4 6.4-16 6.4-16 6.4-19.2 9.6-35.2 16-73.6 16-115.2 0-105.6-41.6-198.4-108.8-268.8C704 396.8 560 675.2 560 675.2zM224 419.2c0-28.8 22.4-51.2 51.2-51.2 28.8 0 51.2 22.4 51.2 51.2 0 28.8-22.4 51.2-51.2 51.2C246.4 470.4 224 448 224 419.2zM320 284.8c0-22.4 19.2-41.6 41.6-41.6 22.4 0 41.6 19.2 41.6 41.6 0 22.4-19.2 41.6-41.6 41.6C339.2 326.4 320 307.2 320 284.8zM457.6 208c0-12.8 12.8-25.6 25.6-25.6 12.8 0 25.6 12.8 25.6 25.6 0 12.8-12.8 25.6-25.6 25.6C470.4 233.6 457.6 220.8 457.6 208zM128 505.6C128 592 153.6 672 201.6 736c28.8-60.8 112-60.8 124.8-60.8-16-51.2 16-99.2 16-99.2l316.8-422.4c-48-19.2-99.2-32-150.4-32C297.6 118.4 128 291.2 128 505.6zM764.8 86.4c-22.4 19.2-390.4 518.4-390.4 518.4-22.4 28.8-12.8 76.8 22.4 99.2l9.6 6.4c35.2 22.4 80 12.8 99.2-25.6 0 0 6.4-12.8 9.6-19.2 54.4-105.6 275.2-524.8 288-553.6 6.4-19.2-3.2-32-19.2-32C777.6 76.8 771.2 80 764.8 86.4z"})]);OutlookIcon.displayName="OutlookIcon";const darkModeSymbol=Symbol.for("darkMode"),useDarkmode=()=>{const b=inject(darkModeSymbol);if(!b)throw new Error("useDarkmode() is called without provider.");return b},injectDarkmode=b=>{const j=useThemeData(),U=usePreferredDark(),Bn=useStorage("vuepress-theme-hope-scheme","auto"),Fn=computed(()=>j.value.darkmode||"switch"),qn=computed(()=>{const Yn=Fn.value;return Yn==="disable"?!1:Yn==="enable"?!0:Yn==="auto"?U.value:Yn==="toggle"?Bn.value==="dark":Bn.value==="dark"||Bn.value==="auto"&&U.value}),Wn=computed(()=>{const Yn=Fn.value;return Yn==="switch"||Yn==="toggle"});b.provide(darkModeSymbol,{canToggle:Wn,config:Fn,isDarkmode:qn,status:Bn}),Object.defineProperties(b.config.globalProperties,{$isDarkmode:{get:()=>qn.value}})},setupDarkmode=()=>{const{isDarkmode:b}=useDarkmode(),j=(U=b.value)=>{const Bn=window==null?void 0:window.document.querySelector("html");Bn==null||Bn.setAttribute("data-theme",U?"dark":"light")};onMounted(()=>{watch(b,j,{immediate:!0})})},appearanceSwitch="",AppearanceSwitch=defineComponent({name:"AppearanceSwitch",setup(){const{config:b,status:j}=useDarkmode(),U=()=>{b.value==="switch"?j.value={light:"dark",dark:"auto",auto:"light"}[j.value]:j.value=j.value==="light"?"dark":"light"};return()=>h$3("button",{id:"appearance-switch",onClick:()=>U()},[h$3(AutoIcon,{style:{display:j.value==="auto"?"block":"none"}}),h$3(DarkIcon,{style:{display:j.value==="dark"?"block":"none"}}),h$3(LightIcon,{style:{display:j.value==="light"?"block":"none"}})])}}),AppearanceMode=defineComponent({name:"AppearanceMode",setup(){const b=useThemeLocaleData(),{canToggle:j}=useDarkmode(),U=computed(()=>b.value.outlookLocales.darkmode);return()=>j.value?h$3("div",{class:"appearance-wrapper"},[h$3("label",{class:"appearance-title",for:"appearance-switch"},U.value),h$3(AppearanceSwitch)]):null}}),themeColorPicker="",ThemeColorPicker=defineComponent({name:"ThemeColorPicker",props:{themeColor:{type:Object,required:!0}},setup(b){const j=(U="")=>{const Bn=document.documentElement.classList,Fn=Dt$1(b.themeColor).map(qn=>`theme-${qn}`);if(!U){localStorage.removeItem("theme"),Bn.remove(...Fn);return}Bn.remove(...Fn.filter(qn=>qn!==`theme-${U}`)),Bn.add(`theme-${U}`),localStorage.setItem("theme",U)};return onMounted(()=>{const U=localStorage.getItem("theme");U&&j(U)}),()=>h$3("ul",{id:"theme-color-picker"},[h$3("li",h$3("span",{class:"theme-color",onClick:()=>j()})),...St$1(b.themeColor).map(([U,Bn])=>h$3("li",h$3("span",{style:{background:Bn},onClick:()=>j(U)})))])}}),ThemeColor=defineComponent({name:"ThemeColor",setup(){const b=useThemeData(),j=useThemeLocaleData(),U=computed(()=>j.value.outlookLocales.themeColor),Bn=computed(()=>{const{themeColor:Fn}=b.value;return Fn===!1?null:Fn});return()=>Bn.value?h$3("div",{class:"theme-color-wrapper"},[h$3("label",{class:"theme-color-title",for:"theme-color-picker"},U.value),h$3(ThemeColorPicker,{themeColor:Bn.value})]):null}}),toggleFullScreenButton="",ToggleFullScreenButton=defineComponent({name:"ToggleFullScreenButton",setup(){const b=useThemeLocaleData(),{isSupported:j,isFullscreen:U,toggle:Bn}=useFullscreen(),Fn=computed(()=>b.value.outlookLocales.fullscreen);return()=>j?h$3("div",{class:"full-screen-wrapper"},[h$3("label",{class:"full-screen-title",for:"full-screen-switch"},Fn.value),h$3("button",{class:"full-screen",id:"full-screen-switch",ariaPressed:U.value,onClick:()=>Bn()},U.value?h$3(CancelFullScreenIcon):h$3(EnterFullScreenIcon))]):null}}),OutlookSettings=defineComponent({name:"OutlookSettings",setup(){const b=useThemeData(),j=usePure(),U=computed(()=>!j.value&&Boolean(b.value.themeColor)),Bn=computed(()=>!j.value&&b.value.fullscreen);return()=>h$3(ClientOnly,()=>[U.value?h$3(ThemeColor):null,h$3(AppearanceMode),Bn.value?h$3(ToggleFullScreenButton):null])}}),navScreen="",NavScreen=defineComponent({name:"NavScreen",props:{show:Boolean},emits:{close:()=>!0},setup(b,{emit:j,slots:U}){const Bn=useRoute(),{isMobile:Fn}=useWindowSize(),qn=ref();return onMounted(()=>{watch(Fn,Wn=>{!Wn&&b.show&&(clearAllBodyScrollLocks(),j("close"))}),watch(()=>Bn.path,()=>{clearAllBodyScrollLocks(),j("close")})}),onBeforeUnmount(()=>{clearAllBodyScrollLocks()}),()=>h$3(Transition,{name:"fade",onEnter:()=>disableBodyScroll(qn.value,{reserveScrollBarGap:!0}),onAfterLeave:()=>clearAllBodyScrollLocks()},()=>{var Wn,Yn;return b.show?h$3("div",{id:"nav-screen",ref:qn},h$3("div",{class:"container"},[(Wn=U.before)==null?void 0:Wn.call(U),h$3(NavScreenLinks),h$3("div",{class:"outlook-wrapper"},h$3(OutlookSettings)),(Yn=U.after)==null?void 0:Yn.call(U)])):null})}}),outlookButton="",OutlookButton=defineComponent({name:"OutlookButton",setup(){const{isSupported:b}=useFullscreen(),j=useThemeData(),U=usePure(),Bn=useRoute(),{canToggle:Fn}=useDarkmode(),qn=ref(!1),Wn=computed(()=>!U.value&&Boolean(j.value.themeColor)),Yn=computed(()=>!U.value&&j.value.fullscreen&&b);return watch(()=>Bn.path,()=>{qn.value=!1}),()=>Fn.value||Yn.value||Wn.value?h$3("div",{class:"nav-item hide-in-mobile"},Fn.value&&!Yn.value&&!Wn.value?h$3(AppearanceSwitch):Yn.value&&!Fn.value&&!Wn.value?h$3(ToggleFullScreenButton):h$3("button",{class:["outlook-button",{open:qn.value}],tabindex:"-1",ariaHidden:!0},[h$3(OutlookIcon),h$3("div",{class:"outlook-dropdown"},h$3(OutlookSettings))])):null}}),toggleNavbarButton="",ToggleNavbarButton=({active:b=!1},{emit:j})=>h$3("button",{class:["toggle-navbar-button",{"is-active":b}],"aria-label":"Toggle Navbar","aria-expanded":b,"aria-controls":"nav-screen",onClick:()=>j("toggle")},h$3("span",{class:"button-container"},[h$3("span",{class:"button-top"}),h$3("span",{class:"button-middle"}),h$3("span",{class:"button-bottom"})]));ToggleNavbarButton.displayName="ToggleNavbarButton";const toggleSidebarButton="",ToggleSidebarButton=(b,{emit:j})=>h$3("button",{class:"toggle-sidebar-button",title:"Toggle Sidebar",onClick:()=>j("toggle")},h$3("span",{class:"icon"}));ToggleSidebarButton.displayName="ToggleSidebarButton";ToggleSidebarButton.emits=["toggle"];const repoLink="",RepoLink=defineComponent({name:"RepoLink",components:{BitbucketIcon:gt$1,GiteeIcon:$t$1,GitHubIcon:vt$1,GitlabIcon:pt$1,SourceIcon:yt$1},setup(){const b=useNavbarRepo();return()=>b.value?h$3("div",{class:"nav-item"},h$3("a",{class:"repo-link",href:b.value.link,target:"_blank",rel:"noopener noreferrer","aria-label":b.value.label},h$3(resolveComponent(`${b.value.type}Icon`),{style:{width:"1.25rem",height:"1.25rem",verticalAlign:"middle"}}))):null}}),navbar="",Navbar=defineComponent({name:"NavBar",emits:{toggleSidebar:()=>!0},setup(b,{emit:j,slots:U}){const Bn=useThemeLocaleData(),{isMobile:Fn}=useWindowSize(),qn=ref(!1),Wn=computed(()=>{const{navbarAutoHide:Gn="mobile"}=Bn.value;return Gn!=="none"&&(Gn==="always"||Fn.value)}),Yn=computed(()=>Bn.value.navbarLayout||{start:["Brand"],center:["Links"],end:["Language","Repo","Outlook","Search"]});return()=>{var Qn,Zn,Kn,Xn,Jn,ta;const Gn={Brand:h$3(NavbarBrand),Language:h$3(LanguageDropdown),Links:h$3(NavbarLinks),Repo:h$3(RepoLink),Outlook:h$3(OutlookButton),Search:Ht$1("Docsearch")?h$3(resolveComponent("Docsearch")):Ht$1("SearchBox")?h$3(resolveComponent("SearchBox")):Ht$1("SearchBox")?h$3(resolveComponent("SearchBox")):null};return[h$3("header",{class:["navbar",{"auto-hide":Wn.value,"hide-icon":Bn.value.navbarIcon===!1}],id:"navbar"},[h$3("div",{class:"navbar-start"},[h$3(ToggleSidebarButton,{onToggle:()=>{qn.value&&(qn.value=!1),j("toggleSidebar")}}),(Qn=U.startBefore)==null?void 0:Qn.call(U),...(Yn.value.start||[]).map(ea=>Gn[ea]),(Zn=U.startAfter)==null?void 0:Zn.call(U)]),h$3("div",{class:"navbar-center"},[(Kn=U.centerBefore)==null?void 0:Kn.call(U),...(Yn.value.center||[]).map(ea=>Gn[ea]),(Xn=U.centerAfter)==null?void 0:Xn.call(U)]),h$3("div",{class:"navbar-end"},[(Jn=U.endBegin)==null?void 0:Jn.call(U),...(Yn.value.end||[]).map(ea=>Gn[ea]),(ta=U.endAfter)==null?void 0:ta.call(U),h$3(ToggleNavbarButton,{active:qn.value,onToggle:()=>{qn.value=!qn.value}})])]),h$3(NavScreen,{show:qn.value,onClose:()=>{qn.value=!1}},{before:()=>{var ea;return(ea=U.screenTop)==null?void 0:ea.call(U)},after:()=>{var ea;return(ea=U.screenBottom)==null?void 0:ea.call(U)}})]}}}),isActiveSidebarItem=(b,j,U=!1)=>"activeMatch"in j?new RegExp(j.activeMatch).test(b.path):he$1(b,j.link)?!0:j.children&&!U?j.children.some(Bn=>isActiveSidebarItem(b,Bn)):!1,isMatchedSidebarItem=(b,j)=>j.type==="group"?j.children.some(U=>U.type==="group"?isMatchedSidebarItem(b,U):U.type==="page"&&isActiveSidebarItem(b,U,!0))||"prefix"in j&&he$1(b,j.prefix):!1,renderItem=(b,j)=>b.link?h$3(AutoLink,{...j,config:b}):h$3("p",j,[h$3(Icon,{icon:b.icon}),b.text]),renderChildren$1=b=>{const j=useRoute();return b?h$3("ul",{class:"sidebar-sub-headers"},b.map(U=>{const Bn=isActiveSidebarItem(j,U,!0);return h$3("li",{class:"sidebar-sub-header"},[renderItem(U,{class:["sidebar-link","heading",{active:Bn}]}),renderChildren$1(U.children)])})):null},sidebarData={"/features/":["develop-plan.md","daily-notes.md","character-data.md","achievements.md","weapon-wiki.md","wish-export.md","mhy-account-switch.md","hutao-API.md","character-wiki.md","hutao-settings.md","game-launcher.md"],"/FAQ/":["HttpRequestException.md","why.md","get-stoken-cookie-from-the-third-party.md","artifact-rating-rules.md","how-to.md","Gacha-system-and-export-principal.md","mihoyo-risk-tip.md"],"/statements/":["bug-report.md","tos.md","privacy-notice.md"]},resolvePrefix=(b="",j="")=>ue$1(j)?j:`${ensureEndingSlash(b)}${j}`,headerToSidebarItem=(b,j)=>{const U=usePageData();return{type:"heading",text:b.title,link:`${U.value.path}#${b.slug}`,children:headersToSidebarItemChildren(b.children,j)}},headersToSidebarItemChildren=(b,j)=>j>0?b.map(U=>headerToSidebarItem(U,j-1)):[],resolveHeadingSidebarItems=b=>{const j=usePageData();return headersToSidebarItemChildren(j.value.headers,b)},resolveArraySidebarItems=(b,j,U="")=>{const Bn=usePageData(),Fn=useRoute(),qn=(Wn,Yn=U)=>{var Qn;const Gn=isString$1(Wn)?useAutoLink(resolvePrefix(Yn,Wn)):Wn.link?{...Wn,...isLinkExternal(Wn.link)?{}:{link:useAutoLink(resolvePrefix(Yn,Wn.link)).link}}:Wn;if("children"in Gn){const Zn=resolvePrefix(Yn,Gn.prefix),Kn=Gn.children==="structure"?sidebarData[Zn]:Gn.children;return{type:"group",...Gn,prefix:Zn,children:Kn.map(Xn=>qn(Xn,Zn))}}return{type:"page",...Gn,children:Gn.link===Fn.path?headersToSidebarItemChildren(((Qn=Bn.value.headers[0])==null?void 0:Qn.level)===1?Bn.value.headers[0].children:Bn.value.headers,j):[]}};return b.map(Wn=>qn(Wn))},resolveMultiSidebarItems=(b,j)=>{const U=useRoute(),Bn=Dt$1(b).sort((Fn,qn)=>qn.length-Fn.length);for(const Fn of Bn)if(bt$1(decodeURI(U.path),Fn)){const qn=b[Fn];return qn?resolveArraySidebarItems(qn==="structure"?sidebarData[Fn]:qn==="heading"?resolveHeadingSidebarItems(j):qn,j,Fn):[]}return console.warn(`${U.path} is missing sidebar config.`),[]},resolveSidebarItems=()=>{const b=useRouteLocale(),j=usePageFrontmatter(),U=useThemeLocaleData(),Bn=j.value.home?!1:j.value.sidebar??U.value.sidebar??"structure",Fn=j.value.headerDepth??U.value.headerDepth??2;return Bn===!1?[]:Bn==="heading"?resolveHeadingSidebarItems(Fn):Bn==="structure"?resolveArraySidebarItems(sidebarData[b.value],Fn,b.value):isArray(Bn)?resolveArraySidebarItems(Bn,Fn):isPlainObject(Bn)?resolveMultiSidebarItems(Bn,Fn):[]},sidebarItemsSymbol=Symbol.for("sidebarItems"),setupSidebarItems=()=>{const b=computed(()=>resolveSidebarItems());provide(sidebarItemsSymbol,b)},useSidebarItems=()=>{const b=inject(sidebarItemsSymbol);if(!b)throw new Error("useSidebarItems() is called without provider.");return b},sidebarChild="",SidebarChild=defineComponent({name:"SidebarChild",props:{config:{type:Object,required:!0}},setup(b){const j=useRoute();return()=>[renderItem(b.config,{class:["sidebar-link",`sidebar-${b.config.type}`,{active:isActiveSidebarItem(j,b.config,!0)}],exact:!0}),renderChildren$1(b.config.children)]}}),sidebarGroup="",SidebarGroup=defineComponent({name:"SidebarGroup",props:{config:{type:Object,required:!0},open:{type:Boolean,required:!0}},emits:{toggle:()=>!0},setup(b,{emit:j}){const U=useRoute(),Bn=computed(()=>isActiveSidebarItem(U,b.config)),Fn=computed(()=>isActiveSidebarItem(U,b.config,!0));return()=>{const{collapsible:qn,children:Wn=[],icon:Yn,prefix:Gn,link:Qn,text:Zn}=b.config;return h$3("section",{class:"sidebar-group"},[h$3(qn?"button":"p",{class:["sidebar-heading",{clickable:qn||Qn,exact:Fn.value,active:Bn.value}],...qn?{onClick:()=>j("toggle"),onKeydown:Kn=>{Kn.key==="Enter"&&j("toggle")}}:{}},[h$3(Icon,{icon:Yn}),Qn?h$3(RouterLink,{to:Qn,class:"title"},()=>Zn):h$3("span",{class:"title"},Zn),qn?h$3("span",{class:["arrow",b.open?"down":"end"]}):null]),b.open||!qn?h$3(SidebarLinks,{key:Gn,config:Wn}):null])}}}),sidebarLinks="",SidebarLinks=defineComponent({name:"SidebarLinks",props:{config:{type:Array,required:!0}},setup(b){const j=useRoute(),U=ref(-1),Bn=Fn=>{U.value=Fn===U.value?-1:Fn};return watch(()=>j.path,()=>{const Fn=b.config.findIndex(qn=>isMatchedSidebarItem(j,qn));U.value=Fn},{immediate:!0,flush:"post"}),()=>h$3("ul",{class:"sidebar-links"},b.config.map((Fn,qn)=>h$3("li",Fn.type==="group"?h$3(SidebarGroup,{config:Fn,open:qn===U.value,onToggle:()=>Bn(qn)}):h$3(SidebarChild,{config:Fn}))))}}),sidebar="",Sidebar=defineComponent({name:"SideBar",setup(b,{slots:j}){const U=useRoute(),Bn=useThemeLocaleData(),Fn=useSidebarItems(),qn=ref();return onMounted(()=>{watch(()=>U.hash,Wn=>{const Yn=document.querySelector(`.sidebar a.sidebar-link[href="${U.path}${Wn}"]`);if(!Yn)return;const{top:Gn,height:Qn}=qn.value.getBoundingClientRect(),{top:Zn,height:Kn}=Yn.getBoundingClientRect();Zn<Gn?Yn.scrollIntoView(!0):Zn+Kn>Gn+Qn&&Yn.scrollIntoView(!1)})}),()=>{var Wn,Yn,Gn;return h$3("aside",{class:["sidebar",{"hide-icon":Bn.value.sidebarIcon===!1}],id:"sidebar",ref:qn},[(Wn=j.top)==null?void 0:Wn.call(j),((Yn=j.default)==null?void 0:Yn.call(j))||h$3(SidebarLinks,{config:Fn.value}),(Gn=j.bottom)==null?void 0:Gn.call(j)])}}}),common="",CommonWrapper=defineComponent({name:"CommonWrapper",props:{noNavbar:Boolean,noSidebar:Boolean},setup(b,{slots:j}){const U=useRouter(),Bn=usePageData(),Fn=usePageFrontmatter(),qn=useThemeLocaleData(),{isMobile:Wn,isWide:Yn}=useWindowSize(),Gn=ref(!1),Qn=computed(()=>b.noNavbar||Fn.value.navbar===!1||qn.value.navbar===!1?!1:Boolean(Bn.value.title||qn.value.logo||qn.value.repo||qn.value.navbar)),Zn=useSidebarItems(),Kn=computed(()=>b.noSidebar?!1:Fn.value.sidebar!==!1&&Zn.value.length!==0&&!Fn.value.home),Xn=ref(!1),Jn=ref(!1),ta=la=>{Xn.value=typeof la=="boolean"?la:!Xn.value},ea=la=>{Jn.value=typeof la=="boolean"?la:!Jn.value},na={x:0,y:0},aa=la=>{na.x=la.changedTouches[0].clientX,na.y=la.changedTouches[0].clientY},ia=la=>{const sa=la.changedTouches[0].clientX-na.x,ya=la.changedTouches[0].clientY-na.y;Math.abs(sa)>Math.abs(ya)*1.5&&Math.abs(sa)>40&&(sa>0&&na.x<=80?ta(!0):ta(!1))},ua=computed(()=>Fn.value.home?!1:Fn.value.toc||qn.value.toc!==!1&&Fn.value.toc!==!1),ha=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;let ga,$a=0;return useEventListener("scroll",useThrottleFn(()=>{const la=ha();$a<la&&la>58?Xn.value||(Gn.value=!0):Gn.value=!1,$a=la},300,!0)),watch(Wn,la=>{la||ta(!1)}),onMounted(()=>{ga=U.afterEach(()=>{ta(!1)})}),onBeforeUnmount(()=>{ga()}),()=>h$3(Ht$1("GlobalEncrypt")?resolveComponent("GlobalEncrypt"):kt$1,()=>{var la;return h$3("div",{class:["theme-container",{"no-navbar":!Qn.value,"no-sidebar":!Kn.value&&!(j.sidebar||j.sidebarTop||j.sidebarBottom),"has-toc":ua.value,"hide-navbar":Gn.value,"sidebar-collapsed":!Wn.value&&!Yn.value&&Jn.value,"sidebar-open":Wn.value&&Xn.value},Fn.value.containerClass||""],onTouchStart:aa,onTouchEnd:ia},[Qn.value?h$3(Navbar,{onToggleSidebar:()=>ta()},{startBefore:()=>{var sa;return(sa=j.navbarStartBefore)==null?void 0:sa.call(j)},startAfter:()=>{var sa;return(sa=j.navbarStartAfter)==null?void 0:sa.call(j)},centerBefore:()=>{var sa;return(sa=j.navbarCenterBefore)==null?void 0:sa.call(j)},centerAfter:()=>{var sa;return(sa=j.navbarCenterAfter)==null?void 0:sa.call(j)},endBegin:()=>{var sa;return(sa=j.navbarEndBegin)==null?void 0:sa.call(j)},endAfter:()=>{var sa;return(sa=j.navbarEndAfter)==null?void 0:sa.call(j)},screenTop:()=>{var sa;return(sa=j.navScreenTop)==null?void 0:sa.call(j)},screenBottom:()=>{var sa;return(sa=j.navScreenBottom)==null?void 0:sa.call(j)}}):null,h$3(Transition,{name:"fade"},()=>Xn.value?h$3("div",{class:"sidebar-mask",onClick:()=>ta(!1)}):null),h$3(Transition,{name:"fade"},()=>Wn.value?null:h$3("div",{class:"toggle-sidebar-wrapper",onClick:()=>ea()},h$3("span",{class:["arrow",Jn.value?"end":"start"]}))),h$3(Sidebar,{},{...j.sidebar?{default:()=>{var sa;return(sa=j.sidebar)==null?void 0:sa.call(j)}}:{},top:()=>{var sa;return(sa=j.sidebarTop)==null?void 0:sa.call(j)},bottom:()=>{var sa;return(sa=j.sidebarBottom)==null?void 0:sa.call(j)}}),(la=j.default)==null?void 0:la.call(j),h$3(PageFooter)])})}}),DropTransition=defineComponent({name:"DropTransition",props:{type:{type:String,default:"single"},delay:{type:Number,default:0},duration:{type:Number,default:.25},appear:Boolean},setup(b,{slots:j}){const U=Fn=>{Fn.style.transition=`transform ${b.duration}s ease-in-out ${b.delay}s, opacity ${b.duration}s ease-in-out ${b.delay}s`,Fn.style.transform="translateY(-20px)",Fn.style.opacity="0"},Bn=Fn=>{Fn.style.transform="translateY(0)",Fn.style.opacity="1"};return()=>h$3(b.type==="single"?Transition:TransitionGroup,{name:"drop",appear:b.appear,onAppear:U,onAfterAppear:Bn,onEnter:U,onAfterEnter:Bn,onBeforeLeave:U},()=>{var Fn;return(Fn=j.default)==null?void 0:Fn.call(j)})}}),featurePanel="",FeaturePanel=defineComponent({name:"FeaturePanel",props:{items:{type:Object,default:()=>[]},header:{type:String,default:""}},setup(b){return()=>h$3("div",{class:"feature-panel"},[b.header?h$3("h2",{class:"feature-header"},b.header):null,b.items.length?h$3("div",{class:"feature-wrapper"},b.items.map(j=>{const U=[h$3("h3",[h$3(Icon,{icon:j.icon}),h$3("span",{innerHTML:j.title})]),h$3("p",{innerHTML:j.details})];return j.link?isLinkExternal(j.link)?h$3("a",{class:"feature-item link",href:j.link,role:"navigation","aria-label":j.title,target:"_blank"},U):h$3(RouterLink,{class:"feature-item link",to:j.link,role:"navigation","aria-label":j.title},()=>U):h$3("div",{class:"feature-item"},U)})):null])}}),heroInfo="",HeroInfo=defineComponent({name:"HeroInfo",setup(b,{slots:j}){const U=usePageFrontmatter(),Bn=useSiteLocaleData(),Fn=computed(()=>U.value.heroText===!1?!1:U.value.heroText||Bn.value.title||"Hello"),qn=computed(()=>U.value.tagline===!1?!1:U.value.tagline||Bn.value.description||"Welcome to your VuePress site"),Wn=computed(()=>U.value.heroImage?withBase(U.value.heroImage):null),Yn=computed(()=>U.value.heroImageDark?withBase(U.value.heroImageDark):null),Gn=computed(()=>U.value.heroAlt||Fn.value||"hero"),Qn=computed(()=>U.value.actions??[]);return()=>{var Zn,Kn;return h$3("header",{class:"hero-info-wrapper"},[((Zn=j.heroImage)==null?void 0:Zn.call(j))||h$3(DropTransition,{appear:!0,type:"group"},()=>[Wn.value?h$3("img",{key:"light",class:{light:Yn.value},src:Wn.value,alt:Gn.value}):null,Yn.value?h$3("img",{key:"dark",class:"dark",src:Yn.value,alt:Gn.value}):null]),((Kn=j.heroInfo)==null?void 0:Kn.call(j))||h$3("div",{class:"hero-info"},[Fn.value?h$3(DropTransition,{appear:!0,delay:.04},()=>h$3("h1",{id:"main-title"},Fn.value)):null,qn.value?h$3(DropTransition,{appear:!0,delay:.08},()=>h$3("p",{class:"description"},qn.value)):null,Qn.value.length?h$3(DropTransition,{appear:!0,delay:.12},()=>h$3("p",{class:"actions"},Qn.value.map(Xn=>h$3(AutoLink,{class:["action-button",Xn.type||"default"],config:Xn,noExternalLinkIcon:!0})))):null])])}}}),MarkdownContent=({custom:b})=>h$3(Content,{class:["theme-hope-content",{custom:b}]});MarkdownContent.displayName="MarkdownContent";MarkdownContent.props={custom:Boolean};const homePage="",HomePage=defineComponent({name:"HopePage",setup(b,{slots:j}){const U=usePure(),Bn=usePageFrontmatter(),Fn=computed(()=>{const{features:qn}=Bn.value;return isArray(qn)?qn.some(Wn=>!("items"in Wn))?[{items:qn}]:qn:[]});return()=>{var qn,Wn,Yn;return h$3("main",{class:["home project",{pure:U.value}],id:"main-content","aria-labelledby":Bn.value.heroText===null?void 0:"main-title"},[(qn=j.top)==null?void 0:qn.call(j),h$3(HeroInfo),Fn.value.map(({header:Gn="",items:Qn},Zn)=>h$3(DropTransition,{appear:!0,delay:.16+Zn*.08},()=>h$3(FeaturePanel,{header:Gn,items:Qn}))),(Wn=j.center)==null?void 0:Wn.call(j),h$3(DropTransition,{appear:!0,delay:.16+Fn.value.length*.08},()=>h$3(MarkdownContent)),(Yn=j.bottom)==null?void 0:Yn.call(j)])}}}),getAncestorLinks=(b,j)=>{const U=b.path.replace(j,"/").split("/"),Bn=[];let Fn=removeEndingSlash(j);return U.forEach((qn,Wn)=>{Wn!==U.length-1?(Fn+=`${qn}/`,Bn.push(Fn)):qn!==""&&(Fn+=qn,Bn.push(Fn))}),Bn},breadcrumb="",BreadCrumb=defineComponent({name:"BreadCrumb",setup(){const b=useRouter(),j=useRoute(),U=useRouteLocale(),Bn=usePageFrontmatter(),Fn=useThemeLocaleData(),qn=ref([]),Wn=computed(()=>(Bn.value.breadcrumb||Bn.value.breadcrumb!==!1&&Fn.value.breadcrumb!==!1)&&qn.value.length>1),Yn=computed(()=>Bn.value.breadcrumbIcon||Bn.value.breadcrumbIcon!==!1&&Fn.value.breadcrumbIcon!==!1),Gn=()=>{const Qn=b.getRoutes(),Zn=getAncestorLinks(j,U.value).map(Kn=>{const Xn=Qn.find(Jn=>Jn.path===Kn);if(Xn){const{meta:Jn,path:ta}=Ot$1(b,Xn.path),ea=Jn.s||Jn.t;if(ea)return{title:ea,icon:Jn.i,path:ta}}return null}).filter(Kn=>Kn!==null);Zn.length>1&&(qn.value=Zn)};return onMounted(()=>{Gn(),watch(()=>j.path,Gn)}),()=>h$3("nav",{class:["breadcrumb",{disable:!Wn.value}]},Wn.value?h$3("ol",{vocab:"https://schema.org/",typeof:"BreadcrumbList"},qn.value.map((Qn,Zn)=>h$3("li",{class:{"is-active":qn.value.length-1===Zn},property:"itemListElement",typeof:"ListItem"},[h$3(RouterLink,{to:Qn.path,property:"item",typeof:"WebPage"},()=>[Yn.value?h$3(Icon,{icon:Qn.icon}):null,h$3("span",{property:"name"},Qn.title||"Unknown")]),h$3("meta",{property:"position",content:Zn+1})]))):[])}}),pageNav="",resolveFromFrontmatterConfig=b=>b===!1?!1:isString$1(b)?useAutoLink(b,!0):isPlainObject(b)?b:null,resolveFromSidebarItems=(b,j,U)=>{const Bn=b.findIndex(Fn=>Fn.link===j);if(Bn!==-1){const Fn=b[Bn+U];return Fn!=null&&Fn.link?Fn:null}for(const Fn of b)if(Fn.children){const qn=resolveFromSidebarItems(Fn.children,j,U);if(qn)return qn}return null},PageNav=defineComponent({name:"PageNav",setup(){const b=useThemeLocaleData(),j=usePageFrontmatter(),U=useSidebarItems(),Bn=useRoute(),Fn=useNavigate(),qn=computed(()=>{const Yn=resolveFromFrontmatterConfig(j.value.prev);return Yn===!1?null:Yn||(b.value.prevLink===!1?null:resolveFromSidebarItems(U.value,Bn.path,-1))}),Wn=computed(()=>{const Yn=resolveFromFrontmatterConfig(j.value.next);return Yn===!1?null:Yn||(b.value.nextLink===!1?null:resolveFromSidebarItems(U.value,Bn.path,1))});return useEventListener("keydown",Yn=>{Yn.altKey&&(Yn.key==="ArrowRight"?Wn.value&&(Fn(Wn.value.link),Yn.preventDefault()):Yn.key==="ArrowLeft"&&qn.value&&(Fn(qn.value.link),Yn.preventDefault()))}),()=>qn.value||Wn.value?h$3("nav",{class:"page-nav"},[qn.value?h$3(AutoLink,{class:"prev",config:qn.value},()=>{var Yn,Gn;return[h$3("div",{class:"hint"},[h$3("span",{class:"arrow start"}),b.value.metaLocales.prev]),h$3("div",{class:"link"},[h$3(Icon,{icon:(Yn=qn.value)==null?void 0:Yn.icon}),(Gn=qn.value)==null?void 0:Gn.text])]}):null,Wn.value?h$3(AutoLink,{class:"next",config:Wn.value},()=>{var Yn,Gn;return[h$3("div",{class:"hint"},[b.value.metaLocales.next,h$3("span",{class:"arrow end"})]),h$3("div",{class:"link"},[(Yn=Wn.value)==null?void 0:Yn.text,h$3(Icon,{icon:(Gn=Wn.value)==null?void 0:Gn.icon})])]}):null]):null}}),AuthorIcon=()=>h$3(R$1,{name:"author"},()=>h$3("path",{d:"M649.6 633.6c86.4-48 147.2-144 147.2-249.6 0-160-128-288-288-288s-288 128-288 288c0 108.8 57.6 201.6 147.2 249.6-121.6 48-214.4 153.6-240 288-3.2 9.6 0 19.2 6.4 25.6 3.2 9.6 12.8 12.8 22.4 12.8h704c9.6 0 19.2-3.2 25.6-12.8 6.4-6.4 9.6-16 6.4-25.6-25.6-134.4-121.6-240-243.2-288z"}));AuthorIcon.displayName="AuthorIcon";const CalendarIcon=()=>h$3(R$1,{name:"calendar"},()=>h$3("path",{d:"M716.4 110.137c0-18.753-14.72-33.473-33.472-33.473-18.753 0-33.473 14.72-33.473 33.473v33.473h66.993v-33.473zm-334.87 0c0-18.753-14.72-33.473-33.473-33.473s-33.52 14.72-33.52 33.473v33.473h66.993v-33.473zm468.81 33.52H716.4v100.465c0 18.753-14.72 33.473-33.472 33.473a33.145 33.145 0 01-33.473-33.473V143.657H381.53v100.465c0 18.753-14.72 33.473-33.473 33.473a33.145 33.145 0 01-33.473-33.473V143.657H180.6A134.314 134.314 0 0046.66 277.595v535.756A134.314 134.314 0 00180.6 947.289h669.74a134.36 134.36 0 00133.94-133.938V277.595a134.314 134.314 0 00-133.94-133.938zm33.473 267.877H147.126a33.145 33.145 0 01-33.473-33.473c0-18.752 14.72-33.473 33.473-33.473h736.687c18.752 0 33.472 14.72 33.472 33.473a33.145 33.145 0 01-33.472 33.473z"}));CalendarIcon.displayName="CalendarIcon";const CategoryIcon=()=>h$3(R$1,{name:"category"},()=>h$3("path",{d:"M148.41 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H148.41c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.311-40.31zM147.556 553.478H429.73c22.263 0 40.311 18.048 40.311 40.31v282.176c0 22.263-18.048 40.312-40.31 40.312H147.555c-22.263 0-40.311-18.049-40.311-40.312V593.79c0-22.263 18.048-40.311 40.31-40.311zM593.927 106.992h282.176c22.263 0 40.31 18.048 40.31 40.31V429.48c0 22.263-18.047 40.31-40.31 40.31H593.927c-22.263 0-40.311-18.047-40.311-40.31V147.302c0-22.263 18.048-40.31 40.31-40.31zM730.22 920.502H623.926c-40.925 0-74.22-33.388-74.22-74.425V623.992c0-41.038 33.387-74.424 74.425-74.424h222.085c41.038 0 74.424 33.226 74.424 74.067v114.233c0 10.244-8.304 18.548-18.547 18.548s-18.548-8.304-18.548-18.548V623.635c0-20.388-16.746-36.974-37.33-36.974H624.13c-20.585 0-37.331 16.747-37.331 37.33v222.086c0 20.585 16.654 37.331 37.126 37.331H730.22c10.243 0 18.547 8.304 18.547 18.547 0 10.244-8.304 18.547-18.547 18.547z"}));CategoryIcon.displayName="CategoryIcon";const EyeIcon=()=>h$3(R$1,{name:"eye"},()=>h$3("path",{d:"M992 512.096c0-5.76-.992-10.592-1.28-11.136-.192-2.88-1.152-8.064-2.08-10.816-.256-.672-.544-1.376-.832-2.08-.48-1.568-1.024-3.104-1.6-4.32C897.664 290.112 707.104 160 512 160c-195.072 0-385.632 130.016-473.76 322.592-1.056 2.112-1.792 4.096-2.272 5.856a55.512 55.512 0 00-.64 1.6c-1.76 5.088-1.792 8.64-1.632 7.744-.832 3.744-1.568 11.168-1.568 11.168-.224 2.272-.224 4.032.032 6.304 0 0 .736 6.464 1.088 7.808.128 1.824.576 4.512 1.12 6.976h-.032c.448 2.08 1.12 4.096 1.984 6.08.48 1.536.992 2.976 1.472 4.032C126.432 733.856 316.992 864 512 864c195.136 0 385.696-130.048 473.216-321.696 1.376-2.496 2.24-4.832 2.848-6.912.256-.608.48-1.184.672-1.728 1.536-4.48 1.856-8.32 1.728-8.32l-.032.032c.608-3.104 1.568-7.744 1.568-13.28zM512 672c-88.224 0-160-71.776-160-160s71.776-160 160-160 160 71.776 160 160-71.776 160-160 160z"}));EyeIcon.displayName="EyeIcon";const FireIcon=()=>h$3(R$1,{name:"fire"},()=>h$3("path",{d:"M726.4 201.6c-12.8-9.6-28.8-6.4-38.4 0-9.6 9.6-16 25.6-9.6 38.4 6.4 12.8 9.6 28.8 12.8 44.8C604.8 83.2 460.8 38.4 454.4 35.2c-9.6-3.2-22.4 0-28.8 6.4-9.6 6.4-12.8 19.2-9.6 28.8 12.8 86.4-25.6 188.8-115.2 310.4-6.4-25.6-16-51.2-32-80-9.6-9.6-22.4-16-35.2-12.8-16 3.2-25.6 12.8-25.6 28.8-3.2 48-25.6 92.8-51.2 140.8C134.4 499.2 112 544 102.4 592c-32 150.4 99.2 329.6 233.6 380.8 9.6 3.2 19.2 6.4 32 9.6-25.6-19.2-41.6-51.2-48-96C294.4 691.2 505.6 640 515.2 460.8c153.6 105.6 224 336 137.6 505.6 3.2 0 6.4-3.2 9.6-3.2 0 0 3.2 0 3.2-3.2 163.2-89.6 252.8-208 259.2-345.6 16-211.2-163.2-390.4-198.4-412.8z"}));FireIcon.displayName="FireIcon";const PrintIcon=()=>h$3(R$1,{name:"print"},()=>h$3("path",{d:"M819.2 364.8h-44.8V128c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v236.8h-44.8C145.067 364.8 96 413.867 96 473.6v192c0 59.733 49.067 108.8 108.8 108.8h44.8V896c0 17.067 14.933 32 32 32h460.8c17.067 0 32-14.933 32-32V774.4h44.8c59.733 0 108.8-49.067 108.8-108.8v-192c0-59.733-49.067-108.8-108.8-108.8zM313.6 160h396.8v204.8H313.6V160zm396.8 704H313.6V620.8h396.8V864zM864 665.6c0 25.6-19.2 44.8-44.8 44.8h-44.8V588.8c0-17.067-14.933-32-32-32H281.6c-17.067 0-32 14.933-32 32v121.6h-44.8c-25.6 0-44.8-19.2-44.8-44.8v-192c0-25.6 19.2-44.8 44.8-44.8h614.4c25.6 0 44.8 19.2 44.8 44.8v192z"}));PrintIcon.displayName="PrintIcon";const TagIcon=()=>h$3(R$1,{name:"tag"},()=>h$3("path",{d:"M939.902 458.563L910.17 144.567c-1.507-16.272-14.465-29.13-30.737-30.737L565.438 84.098h-.402c-3.215 0-5.726 1.005-7.634 2.913l-470.39 470.39a10.004 10.004 0 000 14.164l365.423 365.424c1.909 1.908 4.42 2.913 7.132 2.913s5.223-1.005 7.132-2.913l470.39-470.39c2.01-2.11 3.014-5.023 2.813-8.036zm-240.067-72.121c-35.458 0-64.286-28.828-64.286-64.286s28.828-64.285 64.286-64.285 64.286 28.828 64.286 64.285-28.829 64.286-64.286 64.286z"}));TagIcon.displayName="TagIcon";const TimerIcon=()=>h$3(R$1,{name:"timer"},()=>h$3("path",{d:"M799.387 122.15c4.402-2.978 7.38-7.897 7.38-13.463v-1.165c0-8.933-7.38-16.312-16.312-16.312H256.33c-8.933 0-16.311 7.38-16.311 16.312v1.165c0 5.825 2.977 10.874 7.637 13.592 4.143 194.44 97.22 354.963 220.201 392.763-122.204 37.542-214.893 196.511-220.2 389.397-4.661 5.049-7.638 11.651-7.638 19.03v5.825h566.49v-5.825c0-7.379-2.849-13.981-7.509-18.9-5.049-193.016-97.867-351.985-220.2-389.527 123.24-37.67 216.446-198.453 220.588-392.892zM531.16 450.445v352.632c117.674 1.553 211.787 40.778 211.787 88.676H304.097c0-48.286 95.149-87.382 213.728-88.676V450.445c-93.077-3.107-167.901-81.297-167.901-177.093 0-8.803 6.99-15.793 15.793-15.793 8.803 0 15.794 6.99 15.794 15.793 0 80.261 63.69 145.635 142.01 145.635s142.011-65.374 142.011-145.635c0-8.803 6.99-15.793 15.794-15.793s15.793 6.99 15.793 15.793c0 95.019-73.789 172.82-165.96 177.093z"}));TimerIcon.displayName="TimerIcon";const WordIcon=()=>h$3(R$1,{name:"word"},()=>[h$3("path",{d:"M518.217 432.64V73.143A73.143 73.143 0 01603.43 1.097a512 512 0 01419.474 419.474 73.143 73.143 0 01-72.046 85.212H591.36a73.143 73.143 0 01-73.143-73.143z"}),h$3("path",{d:"M493.714 566.857h340.297a73.143 73.143 0 0173.143 85.577A457.143 457.143 0 11371.566 117.76a73.143 73.143 0 0185.577 73.143v339.383a36.571 36.571 0 0036.571 36.571z"})]);WordIcon.displayName="WordIcon";const useMetaLocale=()=>{const b=useThemeLocaleData();return computed(()=>b.value.metaLocales)},readingTimeLocales={"/en/":{word:"About $word words",less1Minute:"Less than 1 minute",time:"About $time min"},"/":{word:"约 $word 字",less1Minute:"小于 1 分钟",time:"大约 $time 分钟"}},editLinkPatterns={GitHub:":repo/edit/:branch/:path",GitLab:":repo/-/edit/:branch/:path",Gitee:":repo/edit/:branch/:path",Bitbucket:":repo/src/:branch/:path?mode=edit&spa=0&at=:branch&fileviewer=file-view-default"},resolveEditLink=({docsRepo:b,docsBranch:j,docsDir:U,filePathRelative:Bn,editLinkPattern:Fn})=>{if(!Bn)return null;const qn=me$1(b);let Wn;return Fn?Wn=Fn:qn!==null&&(Wn=editLinkPatterns[qn]),Wn?Wn.replace(/:repo/,isLinkHttp(b)?b:`https://github.com/${b}`).replace(/:branch/,j).replace(/:path/,removeLeadingSlash(`${removeEndingSlash(U)}/${Bn}`)):null},useEditLink=()=>{const b=useThemeLocaleData(),j=usePageData(),U=usePageFrontmatter();return computed(()=>{const{repo:Bn,docsRepo:Fn=Bn,docsBranch:qn="main",docsDir:Wn="",editLink:Yn,editLinkPattern:Gn=""}=b.value;if(!(U.value.editLink??Yn??!0)||!Fn)return null;const Zn=resolveEditLink({docsRepo:Fn,docsBranch:qn,docsDir:Wn,editLinkPattern:Gn,filePathRelative:j.value.filePathRelative});return Zn?{text:b.value.metaLocales.editLink,link:Zn}:null})},useUpdateTime=()=>{const b=useSiteLocaleData(),j=useThemeLocaleData(),U=usePageData(),Bn=usePageFrontmatter();return computed(()=>{var Wn,Yn;return!(Bn.value.lastUpdated??j.value.lastUpdated??!0)||!((Wn=U.value.git)!=null&&Wn.updatedTime)?null:new Date((Yn=U.value.git)==null?void 0:Yn.updatedTime).toLocaleString(b.value.lang)})},useContributors=()=>{const b=useThemeLocaleData(),j=usePageData(),U=usePageFrontmatter();return computed(()=>{var Fn;return U.value.contributors??b.value.contributors??!0?((Fn=j.value.git)==null?void 0:Fn.contributors)??null:null})},authorInfo="",AuthorInfo=defineComponent({name:"AuthorInfo",inheritAttrs:!1,props:{author:{type:Array,required:!0},pure:Boolean},setup(b){const j=useMetaLocale();return()=>b.author.length?h$3("span",{class:"page-author-info","aria-label":`${j.value.author}${b.pure?"":"🖊"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(AuthorIcon),h$3("span",b.author.map(U=>U.url?h$3("a",{class:"page-author-item",href:U.url,target:"_blank",rel:"noopener noreferrer"},U.name):h$3("span",{class:"page-author-item"},U.name))),h$3("span",{property:"author",content:b.author.map(U=>U.name).join(", ")})]):null}}),categoryInfo="",CategoryInfo=defineComponent({name:"CategoryInfo",inheritAttrs:!1,props:{category:{type:Array,required:!0},pure:Boolean},setup(b){const j=useRouter(),U=useRoute(),Bn=useMetaLocale(),Fn=(qn,Wn="")=>{Wn&&U.path!==Wn&&(qn.preventDefault(),j.push(Wn))};return()=>b.category.length?h$3("span",{class:"page-category-info","aria-label":`${Bn.value.category}${b.pure?"":"🌈"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(CategoryIcon),...b.category.map(({name:qn,path:Wn})=>h$3("span",{class:["page-category-item",{[`category${Zt$1(qn,9)}`]:!b.pure,clickable:Wn}],role:Wn?"navigation":"",onClick:Yn=>Fn(Yn,Wn)},qn)),h$3("meta",{property:"articleSection",content:b.category.map(({name:qn})=>qn).join(",")})]):null}}),DateInfo=defineComponent({name:"DateInfo",inheritAttrs:!1,props:{date:{type:Object,default:null},localizedDate:{type:String,default:""},pure:Boolean},setup(b){const j=usePageLang(),U=useMetaLocale();return()=>{var Bn,Fn;return b.date?h$3("span",{class:"page-date-info","aria-label":`${U.value.date}${b.pure?"":"📅"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(CalendarIcon),h$3("span",h$3(ClientOnly,()=>{var qn;return b.localizedDate||((qn=b.date.value)==null?void 0:qn.toLocaleDateString(j.value))})),h$3("meta",{property:"datePublished",content:((Fn=(Bn=b.date)==null?void 0:Bn.value)==null?void 0:Fn.toISOString())||""})]):null}}}),PageViewInfo=defineComponent({name:"PageViewInfo",inheritAttrs:!1,props:{pageview:{type:[Boolean,String],default:!1},pure:Boolean},setup(b){const j=useRoute(),U=useMetaLocale(),Bn=ref(0),Fn=()=>{const qn=document.querySelector(".waline-pageview-count");if(qn){const Wn=qn.textContent;Wn&&!isNaN(Number(Wn))?Bn.value=Number(Wn):setTimeout(Fn,500)}};return onMounted(()=>{setTimeout(Fn,1500)}),watch(()=>[j.path,j.query],()=>{setTimeout(Fn,500)}),()=>b.pageview?h$3("span",{class:"page-pageview-info","aria-label":`${U.value.views}${b.pure?"":"🔢"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(Bn.value<1e3?EyeIcon:FireIcon),h$3("span",{class:"waline-pageview-count","data-path":isString$1(b.pageview)?b.pageview:withBase(j.path)},"...")]):null}}),ReadingTimeInfo=defineComponent({name:"ReadingTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},pure:Boolean},setup(b){const j=useMetaLocale(),U=Yt$1(readingTimeLocales),Bn=computed(()=>{if(!b.readingTime)return null;const{minutes:Fn}=b.readingTime;return Fn<1?{text:U.value.less1Minute,time:"PT1M"}:{text:U.value.time.replace("$time",Math.round(Fn).toString()),time:`PT${Math.round(Fn)}M`}});return()=>Bn.value?h$3("span",{class:"page-reading-time-info","aria-label":`${j.value.readingTime}${b.pure?"":"⌛"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(TimerIcon),h$3("span",Bn.value.text),h$3("meta",{property:"timeRequired",content:Bn.value.time})]):null}}),tagInfo="",TagInfo=defineComponent({name:"TagInfo",inheritAttrs:!1,props:{tag:{type:Array,default:()=>[]},pure:Boolean},setup(b){const j=useRouter(),U=useRoute(),Bn=useMetaLocale(),Fn=(qn,Wn="")=>{Wn&&U.path!==Wn&&(qn.preventDefault(),j.push(Wn))};return()=>b.tag.length?h$3("span",{class:"page-tag-info","aria-label":`${Bn.value.tag}${b.pure?"":"🏷"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(TagIcon),...b.tag.map(({name:qn,path:Wn})=>h$3("span",{class:["page-tag-item",{[`tag${Zt$1(qn,9)}`]:!b.pure,clickable:Wn}],role:Wn?"navigation":"",onClick:Yn=>Fn(Yn,Wn)},qn)),h$3("meta",{property:"keywords",content:b.tag.map(({name:qn})=>qn).join(",")})]):null}}),originalInfo="",OriginalInfo=defineComponent({name:"OriginalInfo",inheritAttrs:!1,props:{isOriginal:Boolean},setup(b){const j=useMetaLocale();return()=>b.isOriginal?h$3("span",{class:"page-original-info"},j.value.origin):null}}),WordInfo=defineComponent({name:"ReadTimeInfo",inheritAttrs:!1,props:{readingTime:{type:Object,default:()=>null},pure:Boolean},setup(b){const j=useMetaLocale(),U=Yt$1(readingTimeLocales),Bn=computed(()=>{var qn;return(qn=b.readingTime)==null?void 0:qn.words.toString()}),Fn=computed(()=>U.value.word.replace("$word",Bn.value||""));return()=>Bn.value?h$3("span",{class:"page-word-info","aria-label":`${j.value.words}${b.pure?"":"🔠"}`,...b.pure?{}:{"data-balloon-pos":"down"}},[h$3(WordIcon),h$3("span",Fn.value),h$3("meta",{property:"wordCount",content:Bn.value})]):null}}),pageInfo="",PageInfo=defineComponent({name:"PageInfo",components:{AuthorInfo,CategoryInfo,DateInfo,OriginalInfo,PageViewInfo,ReadingTimeInfo,TagInfo,WordInfo},props:{items:{type:[Array,Boolean],default:()=>["Author","Original","Date","PageView","ReadingTime","Category","Tag"]},info:{type:Object,required:!0}},setup(b){const j=usePure();return()=>b.items?h$3("div",{class:"page-info"},b.items.map(U=>h$3(resolveComponent(`${U}Info`),{...b.info,pure:j.value}))):null}}),pageTitle="",PageTitle=defineComponent({name:"PageTitle",setup(){const b=usePageData(),j=usePageFrontmatter(),U=useThemeLocaleData(),{info:Bn,items:Fn}=usePageInfo();return()=>h$3("div",{class:"page-title"},[h$3("h1",[U.value.titleIcon===!1?null:h$3(Icon,{icon:j.value.icon}),b.value.title]),h$3(PageInfo,{info:Bn.value,...Fn.value===null?{}:{items:Fn.value}}),h$3("hr")])}}),EditIcon=()=>h$3(R$1,{name:"edit"},()=>[h$3("path",{d:"M430.818 653.65a60.46 60.46 0 0 1-50.96-93.281l71.69-114.012 7.773-10.365L816.038 80.138A60.46 60.46 0 0 1 859.225 62a60.46 60.46 0 0 1 43.186 18.138l43.186 43.186a60.46 60.46 0 0 1 0 86.373L588.879 565.55l-8.637 8.637-117.466 68.234a60.46 60.46 0 0 1-31.958 11.229z"}),h$3("path",{d:"M728.802 962H252.891A190.883 190.883 0 0 1 62.008 771.98V296.934a190.883 190.883 0 0 1 190.883-192.61h267.754a60.46 60.46 0 0 1 0 120.92H252.891a69.962 69.962 0 0 0-69.098 69.099V771.98a69.962 69.962 0 0 0 69.098 69.098h475.911A69.962 69.962 0 0 0 797.9 771.98V503.363a60.46 60.46 0 1 1 120.922 0V771.98A190.883 190.883 0 0 1 728.802 962z"})]);EditIcon.displayName="EditIcon";const pageMeta="",PageMeta=defineComponent({name:"PageMeta",setup(){const b=useThemeLocaleData(),j=useEditLink(),U=useUpdateTime(),Bn=useContributors();return()=>{const{metaLocales:Fn}=b.value;return h$3("footer",{class:"page-meta"},[j.value?h$3("div",{class:"meta-item edit-link"},h$3(AutoLink,{class:"label",config:j.value},{before:()=>h$3(EditIcon)})):null,h$3("div",{class:"meta-item git-info"},[U.value?h$3("div",{class:"update-time"},[h$3("span",{class:"label"},`${Fn.lastUpdated}: `),h$3(ClientOnly,()=>h$3("span",{class:"info"},U.value))]):null,Bn.value&&Bn.value.length?h$3("div",{class:"contributors"},[h$3("span",{class:"label"},`${Fn.contributors}: `),Bn.value.map(({email:qn,name:Wn},Yn)=>[h$3("span",{class:"contributor",title:`email: ${qn}`},Wn),Yn!==Bn.value.length-1?",":""])]):null])])}}}),printButton="",PrintButton=defineComponent({name:"PrintButton",setup(){const b=useThemeData();return()=>b.value.print===!1?null:h$3("button",{class:"print-button",title:"print",onClick:()=>{window.print()}},h$3(PrintIcon))}}),toc="",renderHeader=({title:b,level:j,slug:U})=>h$3(RouterLink,{to:`#${U}`,class:["toc-link",`level${j}`]},()=>b),renderChildren=(b,j)=>{const U=useRoute();return b.length&&j>0?h$3("ul",{class:"toc-list"},b.map(Bn=>[h$3("li",{class:["toc-item",{active:he$1(U,`#${Bn.slug}`)}]},renderHeader(Bn)),renderChildren(Bn.children,j-1)])):null},TOC=defineComponent({name:"TOC",props:{items:{type:Array,default:()=>[]},headerDepth:{type:Number,default:2}},setup(b){const j=useRoute(),U=usePageData(),Bn=useMetaLocale(),Fn=ref(),qn=Wn=>{var Yn;(Yn=Fn.value)==null||Yn.scrollTo({top:Wn,behavior:"smooth"})};return onMounted(()=>{watch(()=>j.hash,Wn=>{if(Fn.value){const Yn=document.querySelector(`#toc a.toc-link[href$="${Wn}"]`);if(!Yn)return;const{top:Gn,height:Qn}=Fn.value.getBoundingClientRect(),{top:Zn,height:Kn}=Yn.getBoundingClientRect();Zn<Gn?qn(Fn.value.scrollTop+Zn-Gn):Zn+Kn>Gn+Qn&&qn(Fn.value.scrollTop+Zn+Kn-Gn-Qn)}})}),()=>{const Wn=b.items.length?renderChildren(b.items,b.headerDepth):U.value.headers?renderChildren(U.value.headers,b.headerDepth):null;return Wn?h$3("div",{class:"toc-place-holder"},[h$3("aside",{id:"toc"},[h$3("div",{class:"toc-header"},[Bn.value.toc,h$3(PrintButton)]),h$3("div",{class:"toc-wrapper",ref:Fn},[Wn])])]):null}}}),page="",NormalPage=defineComponent({name:"NormalPage",setup(b,{slots:j}){const U=usePageFrontmatter(),{isDarkmode:Bn}=useDarkmode(),Fn=useThemeLocaleData(),qn=computed(()=>U.value.toc||U.value.toc!==!1&&Fn.value.toc!==!1);return()=>h$3("main",{class:"page",id:"main-content"},h$3(Ht$1("LocalEncrypt")?resolveComponent("LocalEncrypt"):kt$1,()=>{var Wn,Yn,Gn,Qn;return[(Wn=j.top)==null?void 0:Wn.call(j),h$3(BreadCrumb),h$3(PageTitle),qn.value?h$3(TOC,{headerDepth:U.value.headerDepth??Fn.value.headerDepth??2}):null,(Yn=j.contentBefore)==null?void 0:Yn.call(j),h$3(MarkdownContent),(Gn=j.contentAfter)==null?void 0:Gn.call(j),h$3(PageMeta),h$3(PageNav),Ht$1("CommentService")?h$3(resolveComponent("CommentService"),{darkmode:Bn.value}):null,(Qn=j.bottom)==null?void 0:Qn.call(j)]}))}}),fadeSlideY="",FadeSlideY=defineComponent({name:"FadeSlideY",setup(b,{slots:j}){const U=useScrollPromise(),Bn=U.resolve,Fn=U.pending;return()=>h$3(Transition,{name:"fade-slide-y",mode:"out-in",onBeforeEnter:Bn,onBeforeLeave:Fn},()=>{var qn;return(qn=j.default)==null?void 0:qn.call(j)})}}),skipLink="",SkipLink=defineComponent({name:"SkipLink",props:{content:{type:String,default:"main-content"}},setup(b){const j=useRoute(),U=useThemeLocaleData(),Bn=ref(),Fn=({target:qn})=>{const Wn=document.querySelector(qn.hash);if(Wn){const Yn=()=>{Wn.removeAttribute("tabindex"),Wn.removeEventListener("blur",Yn)};Wn.setAttribute("tabindex","-1"),Wn.addEventListener("blur",Yn),Wn.focus(),window.scrollTo(0,0)}};return onMounted(()=>{watch(()=>j.path,()=>Bn.value.focus())}),()=>[h$3("span",{ref:Bn,tabindex:"-1"}),h$3("a",{href:`#${b.content}`,class:"skip-link sr-only",onClick:Fn},U.value.routeLocales.skipToContent)]}}),Layout=defineComponent({name:"Layout",setup(){useThemeLocaleData();const b=usePageData(),j=usePageFrontmatter(),{isMobile:U}=useWindowSize(),Bn=computed(()=>"none");return()=>[h$3(SkipLink),h$3(CommonWrapper,{},{default:()=>j.value.home?h$3(HomePage):h$3(FadeSlideY,()=>h$3(NormalPage,{key:b.value.path})),...Bn.value!=="none"?{navScreenBottom:()=>h$3(resolveComponent("BloggerInfo"))}:{},...!U.value&&Bn.value==="always"?{sidebar:()=>h$3(resolveComponent("BloggerInfo"))}:{}})]}}),notFoundHint="",NotFoundHint=defineComponent({name:"NotFoundHint",setup(){const b=useThemeLocaleData(),j=()=>{const U=b.value.routeLocales.notFoundMsg;return U[Math.floor(Math.random()*U.length)]};return()=>h$3("div",{class:"not-found-hint"},[h$3("p",{class:"error-code"},"404"),h$3("h1",{class:"error-title"},b.value.routeLocales.notFoundTitle),h$3("p",{class:"error-hint"},j())])}}),notFound="",NotFound=defineComponent({name:"NotFound",setup(b,{slots:j}){const U=useRouteLocale(),Bn=useThemeLocaleData(),{navigate:Fn}=useLink({to:Bn.value.home??U.value});return()=>[h$3(SkipLink),h$3(CommonWrapper,{noSidebar:!0},()=>{var qn;return h$3("main",{class:"page not-found",id:"main-content"},((qn=j.default)==null?void 0:qn.call(j))||[h$3(NotFoundHint),h$3("div",{class:"actions"},[h$3("button",{class:"action-button",onClick:()=>{window.history.go(-1)}},Bn.value.routeLocales.back),h$3("button",{class:"action-button",onClick:()=>Fn()},Bn.value.routeLocales.home)])])})]}}),index="",slidePage="",d$1=()=>h$3(R$1,{name:"back"},()=>h$3("path",{d:"M1014.749 449.156v125.688H260.626l345.64 345.64-89.239 89.237L19.307 512l497.72-497.721 89.238 89.238-345.64 345.64h754.124z"})),h=()=>h$3(R$1,{name:"home"},()=>h$3("path",{d:"M780.106 420.978L506.994 147.866 233.882 420.978h.045v455.11H780.06v-455.11h.046zm90.977 90.976V876.09a91.022 91.022 0 01-91.023 91.022H233.927a91.022 91.022 0 01-91.022-91.022V511.954l-67.22 67.175-64.307-64.307 431.309-431.31c35.498-35.498 93.115-35.498 128.614 0l431.309 431.31-64.307 64.307L871.083 512z"}));var f=defineComponent({name:"SlidePage",setup(){const b=useRouter(),j=ref(!1),U=ref(),Bn=()=>{j.value=!j.value},Fn=()=>{j.value=!1},qn=()=>{Fn(),window.history.go(-1)},Wn=()=>{Fn(),b.push("/")};return onClickOutside(U,Fn),()=>h$3("div",{class:"presentation"},[h$3(Content),h$3("div",{ref:U,class:["menu",{active:j.value}]},[h$3("button",{class:"menu-button",onClick:()=>Bn()},h$3("span",{class:"icon"})),h$3("button",{class:"back-button",onClick:()=>qn()},h$3(d$1)),h$3("button",{class:"home-button",onClick:()=>Wn()},h$3(h))])])}});const clientConfig12=defineClientConfig({enhance:({app:b,router:j})=>{const{scrollBehavior:U}=j.options;j.options.scrollBehavior=async(...Bn)=>(await useScrollPromise().wait(),U(...Bn)),injectDarkmode(b)},setup:()=>{setupDarkmode(),setupSidebarItems()},layouts:{Layout,NotFound,Slide:f}}),searchBox="",searchModal="",u=()=>h$3(R$1,{name:"search"},()=>h$3("path",{d:"M192 480a256 256 0 1 1 512 0 256 256 0 0 1-512 0m631.776 362.496-143.2-143.168A318.464 318.464 0 0 0 768 480c0-176.736-143.264-320-320-320S128 303.264 128 480s143.264 320 320 320a318.016 318.016 0 0 0 184.16-58.592l146.336 146.368c12.512 12.48 32.768 12.48 45.28 0 12.48-12.512 12.48-32.768 0-45.28"}));u.displayName="SearchIcon";const d=Symbol.for("search-pro"),S=()=>{const b=ref(!1);provide(d,b)},E=[{key:"k",ctrl:!0}],p={"/en/":{cancel:"Cancel",placeholder:"search",search:"Search",select:"to select",navigate:"to navigate",exit:"to exit",history:"Search History",emptyHistory:"Empty Search History",emptyResult:"No results found",loading:"Loading search indexes..."},"/":{cancel:"取消",placeholder:"点击搜索",search:"搜索",select:"选择",navigate:"切换",exit:"关闭",history:"搜索历史",emptyHistory:"无搜索历史",emptyResult:"没有找到结果",loading:"正在加载搜索索引..."}},L=b=>b instanceof Element?document.activeElement===b&&(["TEXTAREA","SELECT","INPUT"].includes(b.tagName)||b.hasAttribute("contenteditable")):!1,T=b=>E.some(j=>{const{key:U,ctrl:Bn=!1,shift:Fn=!1,alt:qn=!1}=j;return U===b.key&&Bn===b.ctrlKey&&Fn===b.shiftKey&&qn===b.altKey});var A=defineComponent({name:"SearchBox",setup(){const b=Yt$1(p),j=inject(d);return useEventListener("keydown",U=>{!j.value&&T(U)&&!L(U.target)&&(U.preventDefault(),j.value=!0)}),()=>[h$3("button",{class:"search-pro-button",role:"search","aria-label":b.value.search,onClick:()=>{j.value=!0}},h$3(u))]}});const m=()=>h$3("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",preserveAspectRatio:"xMidYMid",viewBox:"0 0 100 100"},[h$3("circle",{cx:"28",cy:"75",r:"11",fill:"currentColor"},h$3("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),h$3("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 47a28 28 0 0 1 28 28"},h$3("animate",{attributeName:"stroke-opacity",begin:"0.1s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"})),h$3("path",{fill:"none",stroke:"#88baf0","stroke-width":"10",d:"M28 25a50 50 0 0 1 50 50"},h$3("animate",{attributeName:"stroke-opacity",begin:"0.2s",dur:"1s",keyTimes:"0;0.2;1",repeatCount:"indefinite",values:"0;1;1"}))]);m.displayName="LoadingIcon";const x=defineComponent({name:"SearchLoading",setup(){const b=Yt$1(p);return()=>h$3("div",{class:"search-pro-result loading"},[h$3(m),b.value.loading])}}),H=defineAsyncComponent({loader:()=>__vitePreload(()=>import("./SearchResult-70545517.js"),["assets/SearchResult-70545517.js","assets/framework-561d691d.js"]),loadingComponent:x});var I=defineComponent({name:"SearchModal",setup(){const b=inject(d),j=Yt$1(p),U=ref(""),Bn=ref(!1),Fn=ref();return useEventListener("keydown",qn=>{b.value&&qn.key==="Escape"&&(b.value=!1)}),onMounted(()=>{Bn.value=Lt$1(navigator.userAgent),watch(b,qn=>{var Wn;qn&&((Wn=Fn.value)==null||Wn.focus())})}),()=>b.value?h$3("div",{class:"search-pro-modal-wrapper"},[h$3("div",{class:"background",onClick:()=>{b.value=!1,U.value=""}}),h$3("div",{class:"search-pro-modal"},[h$3("div",{class:"search-pro-box"},[h$3(u),h$3("input",{ref:Fn,type:"text",class:"search-pro-input",placeholder:j.value.placeholder,spellcheck:"false",value:U.value,onInput:({target:qn})=>{U.value=qn.value}}),h$3("button",{class:"close-button",onClick:()=>{b.value=!1,U.value=""}},j.value.cancel)]),h$3(H,{query:U.value,onClose:()=>{b.value=!1},onUpdateQuery:qn=>{U.value=qn}}),Bn.value?null:h$3("div",{class:"search-pro-hints"},[h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Enter key" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M12 3.53088v3c0 1-1 2-2 2H4M7 11.53088l-3-3 3-3"></path></g></svg>'}),j.value.select]),h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Arrow down" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M7.5 3.5v8M10.5 8.5l-3 3-3-3"></path></g></svg>'}),h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Arrow up" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M7.5 11.5v-8M10.5 6.5l-3-3-3 3"></path></g></svg>'}),j.value.navigate]),h$3("span",{class:"search-pro-hint"},[h$3("kbd",{innerHTML:'<svg width="15" height="15" aria-label="Escape key" role="img"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2"><path d="M13.6167 8.936c-.1065.3583-.6883.962-1.4875.962-.7993 0-1.653-.9165-1.653-2.1258v-.5678c0-1.2548.7896-2.1016 1.653-2.1016.8634 0 1.3601.4778 1.4875 1.0724M9 6c-.1352-.4735-.7506-.9219-1.46-.8972-.7092.0246-1.344.57-1.344 1.2166s.4198.8812 1.3445.9805C8.465 7.3992 8.968 7.9337 9 8.5c.032.5663-.454 1.398-1.4595 1.398C6.6593 9.898 6 9 5.963 8.4851m-1.4748.5368c-.2635.5941-.8099.876-1.5443.876s-1.7073-.6248-1.7073-2.204v-.4603c0-1.0416.721-2.131 1.7073-2.131.9864 0 1.6425 1.031 1.5443 2.2492h-2.956"></path></g></svg>'}),j.value.exit])])])]):null}}),N=defineClientConfig({enhance({app:b}){b.component("SearchBox",A)},setup(){S()},rootComponents:[I]});const clientConfigs=[clientConfig0,clientConfig1,clientConfig2,F$3,clientConfig4,clientConfig5,clientConfig6,l$1,D$1,clientConfig9,y,clientConfig11,clientConfig12,N],pagesRoutes=[["v-8daa1a0e","/",{y:"h",t:"首页",i:"home",I:1},["/index.html","/README.md"]],["v-67f865c9","/community.html",{y:"a",t:"加入用户社区",I:1},["/community","/community.md"]],["v-c360777a","/markmap.html",{y:"a",t:"胡桃工具箱",I:1},["/markmap","/markmap.md"]],["v-590a42d9","/project.html",{y:"a",t:"项目说明",I:1},["/project","/project.md"]],["v-96f5eae0","/quick-start.html",{y:"a",t:"快速开始",I:1},["/quick-start","/quick-start.md"]],["v-f8eeb414","/side-load.html",{y:"a",t:"",I:1},["/side-load","/side-load.md"]],["v-35ed7d28","/star-request.html",{y:"a",t:"",I:1},["/star-request","/star-request.md"]],["v-4f87b30d","/FAQ/Gacha-system-and-export-principal.html",{y:"a",t:"祈愿系统与导出原理",I:1},["/FAQ/Gacha-system-and-export-principal","/FAQ/Gacha-system-and-export-principal.md"]],["v-5b94d45f","/FAQ/HttpRequestException.html",{y:"a",t:"HttpRequestException错误",I:1},["/FAQ/HttpRequestException","/FAQ/HttpRequestException.md"]],["v-0288c929","/FAQ/artifact-rating-rules.html",{y:"a",t:"圣遗物评分机制",I:1},["/FAQ/artifact-rating-rules","/FAQ/artifact-rating-rules.md"]],["v-9a0eaba6","/FAQ/get-stoken-cookie-from-the-third-party.html",{y:"a",t:"使用第三方工具获取有 Stoken 的 cookie",I:1},["/FAQ/get-stoken-cookie-from-the-third-party","/FAQ/get-stoken-cookie-from-the-third-party.md"]],["v-179f15e2","/FAQ/how-to.html",{y:"a",t:"如何...",I:1},["/FAQ/how-to","/FAQ/how-to.md"]],["v-401b4afa","/FAQ/mihoyo-risk-tip.html",{y:"a",t:"账号风险及异常提示",I:1},["/FAQ/mihoyo-risk-tip","/FAQ/mihoyo-risk-tip.md"]],["v-289a9e83","/FAQ/why.html",{y:"a",t:"为什么...",I:1},["/FAQ/why","/FAQ/why.md"]],["v-28eb1946","/development-log/symposium1.html",{y:"a",t:"第一期开发组座谈会",I:1},["/development-log/symposium1","/development-log/symposium1.md"]],["v-2a9ff1e5","/development-log/symposium2.html",{y:"a",t:"第二期开发组座谈会",I:1},["/development-log/symposium2","/development-log/symposium2.md"]],["v-2d0a870d","/en/",{y:"h",t:"Home",i:"home",I:1},["/en/index.html","/en/README.md"]],["v-73139ec8","/features/achievements.html",{y:"a",t:"成就管理",I:1},["/features/achievements","/features/achievements.md"]],["v-1c93fc72","/features/character-data.html",{y:"a",t:"属性统计",I:1},["/features/character-data","/features/character-data.md"]],["v-e37f5fa8","/features/character-wiki.html",{y:"a",t:"角色资料",I:1},["/features/character-wiki","/features/character-wiki.md"]],["v-646944b6","/features/daily-notes.html",{y:"a",t:"实时便笺",I:1},["/features/daily-notes","/features/daily-notes.md"]],["v-1ae10847","/features/develop-plan.html",{y:"a",t:"养成计划",I:1},["/features/develop-plan","/features/develop-plan.md"]],["v-923d01d2","/features/game-launcher.html",{y:"a",t:"高级启动器",I:1},["/features/game-launcher","/features/game-launcher.md"]],["v-6de46920","/features/hutao-API.html",{y:"a",t:"胡桃数据库/深渊统计",I:1},["/features/hutao-API","/features/hutao-API.md"]],["v-0c385e36","/features/hutao-settings.html",{y:"a",t:"软件设置",I:1},["/features/hutao-settings","/features/hutao-settings.md"]],["v-3e40bb9d","/features/mhy-account-switch.html",{y:"a",t:"米游社多帐号切换",I:1},["/features/mhy-account-switch","/features/mhy-account-switch.md"]],["v-7070f771","/features/weapon-wiki.html",{y:"a",t:"武器资料",I:1},["/features/weapon-wiki","/features/weapon-wiki.md"]],["v-f4f67790","/features/wish-export.html",{y:"a",t:"祈愿记录",I:1},["/features/wish-export","/features/wish-export.md"]],["v-39f4c4da","/statements/bug-report.html",{y:"a",t:"提交BUG报告",I:1},["/statements/bug-report","/statements/bug-report.md"]],["v-6730cc6c","/statements/privacy-notice.html",{y:"a",t:"用户数据和隐私权益",I:1},["/statements/privacy-notice","/statements/privacy-notice.md"]],["v-d670f89a","/statements/tos.html",{y:"a",t:"用户使用协议和法律声明",I:1},["/statements/tos","/statements/tos.md"]],["v-3706649a","/404.html",{y:"p",t:"",I:1},["/404"]],["v-74379e72","/FAQ/",{y:"p",t:"F A Q",I:1},["/FAQ/index.html"]],["v-437b37b6","/development-log/",{y:"p",t:"Development Log",I:1},["/development-log/index.html"]],["v-35380e8e","/features/",{y:"p",t:"Features",I:1},["/features/index.html"]],["v-b573819c","/statements/",{y:"p",t:"Statements",I:1},["/statements/index.html"]]];var Vuepress=defineComponent({name:"Vuepress",setup(){const b=usePageLayout();return()=>h$3(b.value)}}),createRoutes=()=>pagesRoutes.reduce((b,[j,U,Bn,Fn])=>(b.push({name:j,path:U,component:Vuepress,meta:Bn},...Fn.map(qn=>({path:qn,redirect:U}))),b),[{name:"404",path:"/:catchAll(.*)",component:Vuepress}]),historyCreator=createWebHistory,createVueRouter=()=>{const b=createRouter({history:historyCreator(removeEndingSlash("/")),routes:createRoutes(),scrollBehavior:(j,U,Bn)=>Bn||(j.hash?{el:j.hash}:{top:0})});return b.beforeResolve(async(j,U)=>{var Bn;(j.path!==U.path||U===START_LOCATION_NORMALIZED)&&([pageData.value]=await Promise.all([resolvers.resolvePageData(j.name),(Bn=pagesComponents[j.name])==null?void 0:Bn.__asyncLoader()]))}),b},setupGlobalComponents=b=>{b.component("ClientOnly",ClientOnly),b.component("Content",Content)},setupGlobalComputed=(b,j,U)=>{const Bn=computed(()=>resolvers.resolveLayouts(U)),Fn=computed(()=>resolvers.resolveRouteLocale(siteData.value.locales,j.currentRoute.value.path)),qn=computed(()=>resolvers.resolveSiteLocaleData(siteData.value,Fn.value)),Wn=computed(()=>resolvers.resolvePageFrontmatter(pageData.value)),Yn=computed(()=>resolvers.resolvePageHeadTitle(pageData.value,qn.value)),Gn=computed(()=>resolvers.resolvePageHead(Yn.value,Wn.value,qn.value)),Qn=computed(()=>resolvers.resolvePageLang(pageData.value)),Zn=computed(()=>resolvers.resolvePageLayout(pageData.value,Bn.value));return b.provide(layoutsSymbol,Bn),b.provide(pageFrontmatterSymbol,Wn),b.provide(pageHeadTitleSymbol,Yn),b.provide(pageHeadSymbol,Gn),b.provide(pageLangSymbol,Qn),b.provide(pageLayoutSymbol,Zn),b.provide(routeLocaleSymbol,Fn),b.provide(siteLocaleDataSymbol,qn),Object.defineProperties(b.config.globalProperties,{$frontmatter:{get:()=>Wn.value},$head:{get:()=>Gn.value},$headTitle:{get:()=>Yn.value},$lang:{get:()=>Qn.value},$page:{get:()=>pageData.value},$routeLocale:{get:()=>Fn.value},$site:{get:()=>siteData.value},$siteLocale:{get:()=>qn.value},$withBase:{get:()=>withBase}}),{layouts:Bn,pageData,pageFrontmatter:Wn,pageHead:Gn,pageHeadTitle:Yn,pageLang:Qn,pageLayout:Zn,routeLocale:Fn,siteData,siteLocaleData:qn}},setupUpdateHead=()=>{const b=useRoute(),j=usePageHead(),U=usePageLang(),Bn=ref([]),Fn=()=>{j.value.forEach(Wn=>{const Yn=queryHeadTag(Wn);Yn&&Bn.value.push(Yn)})},qn=()=>{document.documentElement.lang=U.value,Bn.value.forEach(Wn=>{Wn.parentNode===document.head&&document.head.removeChild(Wn)}),Bn.value.splice(0,Bn.value.length),j.value.forEach(Wn=>{const Yn=createHeadTag(Wn);Yn!==null&&(document.head.appendChild(Yn),Bn.value.push(Yn))})};provide(updateHeadSymbol,qn),onMounted(()=>{Fn(),qn(),watch(()=>b.path,()=>qn())})},queryHeadTag=([b,j,U=""])=>{const Bn=Object.entries(j).map(([Yn,Gn])=>isString$1(Gn)?`[${Yn}=${JSON.stringify(Gn)}]`:Gn===!0?`[${Yn}]`:"").join(""),Fn=`head > ${b}${Bn}`;return Array.from(document.querySelectorAll(Fn)).find(Yn=>Yn.innerText===U)||null},createHeadTag=([b,j,U])=>{if(!isString$1(b))return null;const Bn=document.createElement(b);return isPlainObject(j)&&Object.entries(j).forEach(([Fn,qn])=>{isString$1(qn)?Bn.setAttribute(Fn,qn):qn===!0&&Bn.setAttribute(Fn,"")}),isString$1(U)&&Bn.appendChild(document.createTextNode(U)),Bn},appCreator=createSSRApp,createVueApp=async()=>{var U;const b=appCreator({name:"VuepressApp",setup(){var Bn;setupUpdateHead();for(const Fn of clientConfigs)(Bn=Fn.setup)==null||Bn.call(Fn);return()=>[h$3(RouterView),...clientConfigs.flatMap(({rootComponents:Fn=[]})=>Fn.map(qn=>h$3(qn)))]}}),j=createVueRouter();setupGlobalComponents(b),setupGlobalComputed(b,j,clientConfigs);for(const Bn of clientConfigs)await((U=Bn.enhance)==null?void 0:U.call(Bn,{app:b,router:j,siteData}));return b.use(j),{app:b,router:j}};createVueApp().then(({app:b,router:j})=>{j.isReady().then(()=>{b.mount("#app")})});export{Dt$1 as D,R$1 as R,St$1 as S,Yt$1 as Y,__vitePreload as _,useRouteLocale as a,useEventListener as b,clearAllBodyScrollLocks as c,createVueApp,disableBodyScroll as d,useDebounceFn as e,le$1 as l,ot$1 as o,useLocalStorage as u};
|