1
0
forked from bot/app
LiteyukiBot/assets/app-D_N8WjhB.js

35 lines
239 KiB
JavaScript
Raw Normal View History

function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
/**
* @vue/shared v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function _s(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const ye={},wn=[],rt=()=>{},qu=()=>!1,gr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Es=e=>e.startsWith("onUpdate:"),Te=Object.assign,Cs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Uu=Object.prototype.hasOwnProperty,ae=(e,t)=>Uu.call(e,t),X=Array.isArray,_n=e=>so(e)==="[object Map]",ja=e=>so(e)==="[object Set]",ne=e=>typeof e=="function",Ae=e=>typeof e=="string",Nn=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",Fa=e=>(pe(e)||ne(e))&&ne(e.then)&&ne(e.catch),Ba=Object.prototype.toString,so=e=>Ba.call(e),Wu=e=>so(e).slice(8,-1),Ha=e=>so(e)==="[object Object]",ks=e=>Ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,En=_s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),lo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Gu=/-(\w)/g,it=lo(e=>e.replace(Gu,(t,n)=>n?n.toUpperCase():"")),Ku=/\B([A-Z])/g,Dn=lo(e=>e.replace(Ku,"-$1").toLowerCase()),yr=lo(e=>e.charAt(0).toUpperCase()+e.slice(1)),_o=lo(e=>e?`on${yr(e)}`:""),qt=(e,t)=>!Object.is(e,t),Eo=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Jr=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Yu=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ju=e=>{const t=Ae(e)?Number(e):NaN;return isNaN(t)?e:t};let il;const Va=()=>il||(il=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ss(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ae(r)?ef(r):Ss(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ae(e)||pe(e))return e}const Qu=/;(?![^(]*\))/g,Xu=/:([^]+)/,Zu=/\/\*[^]*?\*\//g;function ef(e){const t={};return e.replace(Zu,"").split(Qu).forEach(n=>{if(n){const r=n.split(Xu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function xs(e){let t="";if(Ae(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const r=xs(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const tf="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",nf=_s(tf);function za(e){return!!e||e===""}const Co=e=>Ae(e)?e:e==null?"":X(e)||pe(e)&&(e.toString===Ba||!ne(e.toString))?JSON.stringify(e,qa,2):String(e),qa=(e,t)=>t&&t.__v_isRef?qa(e,t.value):_n(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[ko(r,s)+" =>"]=o,n),{})}:ja(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ko(n))}:Nn(t)?ko(t):pe(t)&&!X(t)&&!Ha(t)?String(t):t,ko=(e,t="")=>{var n;return Nn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Xe;class rf{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Xe,!t&&Xe&&(this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Xe;try{return Xe=this,t()}finally{Xe=n}}}on(){Xe=this}off(){Xe=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function of(e,t=Xe){t&&t.active&&t.effects.push(e)}function Ua(){return Xe}function sf(e){Xe&&Xe.cleanups.push(e)}let tn;class Ts{constructor(t,n,r,o){this.fn=t,this.trigger=n,this.scheduler=r,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,of(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,on();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(lf(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),sn()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ht,n=tn;try{return Ht=!0,tn=this,this._runnings++,cl(this),this.fn()}finally{ul(this),this._runnings--,tn=n,Ht=t}}stop(){var t;this.active&&(cl(this),ul(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function lf(e){return e.value}function cl(e){e._trackId++,e._depsLength=0}function ul(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Wa(e.deps[t],e);e.deps.length=e._depsLength}}function Wa(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ht=!0,Jo=0;const Ga=[];function on(){Ga.push(Ht),Ht=!1}function sn(){const e=Ga.pop();Ht=e===void 0?!0:e}function As(){Jo++}function Ls(){for(Jo--;!Jo&&Qo.length;)Qo.shift()()}function Ka(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&Wa(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Qo=[];function Ya(e,t,n){As();for(const r of e.keys()){let o;r._dirtyLevel<t&&(o??(o=e.get(r)===r._trackId))&&(r._shouldSchedule||(r._shouldSchedule=r._dirtyLevel===0),r._dirtyLevel=t),r._shouldSchedule&&(o??(o=e.get(r)===r._trackId))&&(r.trigger(),(!r._runnings||r.allowRecurse)&&r._dirtyLevel!==2&&(r._shouldSchedule=!1,r.scheduler&&Qo.push(r.scheduler)))}Ls()}const Ja=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Qr=new WeakMap,nn=Symbol(""),Xo=Symbol("");function Ke(e,t,n){if(Ht&&tn){let r=Qr.get(e);r||Qr.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=Ja(()=>r.delete(n))),Ka(tn,o)}}function Tt(e,t,n,r,o,s){const l=Qr.get(e);if(!l)return;let a=[];if(t==="clear")a=[...l.values()];else if(n==="length"&&X(e)){const i=Number(r);l.forEach((c,u)=>{(u==="length"||!Nn(u)&&u>=i)&&a.push(c)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":X(e)?ks(n)&&a.push(l.get("length")):(a.push(l.get(nn)),_n(e)&&a.push(l.get(Xo)));break;case"delete":X(e)||(a.push(l.get(nn)),_n(e)&&a.push(l.get(Xo)));break;case"set":_n(e)&&a.push(l.get(nn));break}As();for(const i of a)i&&Ya(i,4);Ls()}function af(e,t){var n;return(n=Qr.get(e))==null?void 0:n.get(t)}const cf=_s("__proto__,__v_isRef,__isVue"),Qa=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Nn)),fl=uf();function uf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=oe(this);for(let s=0,l=this.length;s<l;s++)Ke(r,"get",s+"");const o=r[t](...n);return o===-1||o===!1?r[t](...n.map(oe)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){on(),As();const r=oe(this)[t].apply(this,n);return Ls(),sn(),r}}),e}function ff(e){const t=oe(this);return Ke(t,"has",e),t.hasOwnProperty(e)}class Xa{constructor(t=!1,n=!1){t
* @vue/runtime-core v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function zt(e,t,n,r){try{return r?e(...r):e()}catch(o){_r(o,t,n)}}function st(e,t,n,r){if(ne(e)){const s=zt(e,t,n,r);return s&&Fa(s)&&s.catch(l=>{_r(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(st(e[s],t,n,r));return o}function _r(e,t,n,r=!0){const o=t?t.vnode:null;if(t){let s=t.parent;const l=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const c=s.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,l,a)===!1)return}s=s.parent}const i=t.appContext.config.errorHandler;if(i){zt(i,null,10,[e,l,a]);return}}Pf(e,n,o,r)}function Pf(e,t,n,r=!0){console.error(e)}let sr=!1,Zo=!1;const De=[];let bt=0;const kn=[];let Nt=null,Xt=0;const ui=Promise.resolve();let Ns=null;function Gt(e){const t=Ns||ui;return e?t.then(this?e.bind(this):e):t}function Mf(e){let t=bt+1,n=De.length;for(;t<n;){const r=t+n>>>1,o=De[r],s=lr(o);s<e||s===e&&o.pre?t=r+1:n=r}return t}function co(e){(!De.length||!De.includes(e,sr&&e.allowRecurse?bt+1:bt))&&(e.id==null?De.push(e):De.splice(Mf(e.id),0,e),fi())}function fi(){!sr&&!Zo&&(Zo=!0,Ns=ui.then(di))}function Nf(e){const t=De.indexOf(e);t>bt&&De.splice(t,1)}function Df(e){X(e)?kn.push(...e):(!Nt||!Nt.includes(e,e.allowRecurse?Xt+1:Xt))&&kn.push(e),fi()}function ml(e,t,n=sr?bt+1:0){for(;n<De.length;n++){const r=De[n];if(r&&r.pre){if(e&&r.id!==e.uid)continue;De.splice(n,1),n--,r()}}}function Zr(e){if(kn.length){const t=[...new Set(kn)].sort((n,r)=>lr(n)-lr(r));if(kn.length=0,Nt){Nt.push(...t);return}for(Nt=t,Xt=0;Xt<Nt.length;Xt++)Nt[Xt]();Nt=null,Xt=0}}const lr=e=>e.id==null?1/0:e.id,jf=(e,t)=>{const n=lr(e)-lr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function di(e){Zo=!1,sr=!0,De.sort(jf);try{for(bt=0;bt<De.length;bt++){const t=De[bt];t&&t.active!==!1&&zt(t,null,14)}}finally{bt=0,De.length=0,Zr(),sr=!1,Ns=null,(De.length||kn.length)&&di()}}function Ff(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ye;let o=n;const s=t.startsWith("update:"),l=s&&t.slice(7);if(l&&l in r){const u=`${l==="modelValue"?"model":l}Modifiers`,{number:d,trim:p}=r[u]||ye;p&&(o=n.map(v=>Ae(v)?v.trim():v)),d&&(o=n.map(Yu))}let a,i=r[a=_o(t)]||r[a=_o(it(t))];!i&&s&&(i=r[a=_o(Dn(t))]),i&&st(i,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,st(c,e,6,o)}}function pi(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let l={},a=!1;if(!ne(e)){const i=c=>{const u=pi(c,t,!0);u&&(a=!0,Te(l,u))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!s&&!a?(pe(e)&&r.set(e,null),null):(X(s)?s.forEach(i=>l[i]=null):Te(l,s),pe(e)&&r.set(e,l),l)}function uo(e,t){return!e||!gr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,Dn(t))||ae(e,t))}let ot=null,fo=null;function eo(e){const t=ot;return ot=e,fo=e&&e.type.__scopeId||null,t}function hi(e){fo=e}function vi(){fo=null}function Bf(e,t=ot,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Al(-1);const s=eo(t);let l;try{l=e(...o)}finally{eo(s),r._d&&Al(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function So(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[l],slots:a,attrs:i,emit:c,render:u,renderCache:d,data:p,setupState:v,ctx:g,inheritAttrs:_}=e;let w,b;const C=eo(e);try{if(n.shapeFlag&4){const S=o||r,R=S;w=ft(u.call(R,S,d,s,v,p,g)),b=i}else{const S=t;w=ft(S.length>1?S(s,{attrs:i,slots:a,emit:c}):S(s,null)),b=t.props?i:Hf(i)}}catch(S){Zn.length=0,_r(S,e,1),w=Ee(lt)}let y=w;if(b&&_!==!1){const S=Object.keys(b),{shapeFlag:R}=y;S.length&&R&7&&(l&&S.some(Es)&&(b=Vf(b,l)),y=Ut(y,b))}return n.dirs&&(y=Ut(y),y.dirs=y.dirs?y.dirs.concat(n.dirs):n.dirs),n.transition&&(y.transition=n.transition),w=y,eo(C),w}const Hf=e=>{let t;for(const n in e)(n==="class"||n==="style"||gr(n))&&((t||(t={}))[n]=e[n]);return t},Vf=(e,t)=>{const n={};for(const r in e)(!Es(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function zf(e,t,n){const{props:r,children:o,component:s}=e,{props:l,children:a,patchFlag:i}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)retu
* @vue/runtime-dom v3.4.21
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const q1="http://www.w3.org/2000/svg",U1="http://www.w3.org/1998/Math/MathML",Ft=typeof document<"u"?document:null,Ol=Ft&&Ft.createElement("template"),W1={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?Ft.createElementNS(q1,e):t==="mathml"?Ft.createElementNS(U1,e):Ft.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Ft.createTextNode(e),createComment:e=>Ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const l=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{Ol.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const a=Ol.content;if(r==="svg"||r==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ot="transition",zn="animation",$n=Symbol("_vtc"),Wt=(e,{slots:t})=>f(Xf,zi(e),t);Wt.displayName="Transition";const Vi={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},G1=Wt.props=Te({},_i,Vi),Jt=(e,t=[])=>{X(e)?e.forEach(n=>n(...t)):e&&e(...t)},Rl=e=>e?X(e)?e.some(t=>t.length>1):e.length>1:!1;function zi(e){const t={};for(const M in e)M in Vi||(t[M]=e[M]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=s,appearActiveClass:c=l,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,g=K1(o),_=g&&g[0],w=g&&g[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:y,onLeave:S,onLeaveCancelled:R,onBeforeAppear:k=b,onAppear:P=C,onAppearCancelled:O=y}=t,K=(M,Z,be)=>{Mt(M,Z?u:a),Mt(M,Z?c:l),be&&be()},$=(M,Z)=>{M._isLeaving=!1,Mt(M,d),Mt(M,v),Mt(M,p),Z&&Z()},q=M=>(Z,be)=>{const me=M?P:C,U=()=>K(Z,M,be);Jt(me,[Z,U]),Pl(()=>{Mt(Z,M?i:s),kt(Z,M?u:a),Rl(me)||Ml(Z,r,_,U)})};return Te(t,{onBeforeEnter(M){Jt(b,[M]),kt(M,s),kt(M,l)},onBeforeAppear(M){Jt(k,[M]),kt(M,i),kt(M,c)},onEnter:q(!1),onAppear:q(!0),onLeave(M,Z){M._isLeaving=!0;const be=()=>$(M,Z);kt(M,d),Ui(),kt(M,p),Pl(()=>{M._isLeaving&&(Mt(M,d),kt(M,v),Rl(S)||Ml(M,r,w,be))}),Jt(S,[M,be])},onEnterCancelled(M){K(M,!1),Jt(y,[M])},onAppearCancelled(M){K(M,!0),Jt(O,[M])},onLeaveCancelled(M){$(M),Jt(R,[M])}})}function K1(e){if(e==null)return null;if(pe(e))return[Io(e.enter),Io(e.leave)];{const t=Io(e);return[t,t]}}function Io(e){return Ju(e)}function kt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$n]||(e[$n]=new Set)).add(t)}function Mt(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[$n];n&&(n.delete(t),n.size||(e[$n]=void 0))}function Pl(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Y1=0;function Ml(e,t,n,r){const o=e._endId=++Y1,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:i}=qi(e,t);if(!l)return r();const c=l+"end";let u=0;const d=()=>{e.removeEventListener(c,p),s()},p=v=>{v.target===e&&++u>=i&&d()};setTimeout(()=>{u<i&&d()},a+1),e.addEventListener(c,p)}function qi(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),o=r(`${Ot}Delay`),s=r(`${Ot}Duration`),l=Nl(o,s),a=r(`${zn}Delay`),i=r(`${zn}Duration`),c=Nl(a,i);let u=null,d=0,p=0;t===Ot?l>0&&(u=Ot,d=l,p=s.length):t===zn?c>0&&(u=zn,d=c,p=i.length):(d=Math.max(l,c),u=d>0?l>c?Ot:zn:null,p=u?u===Ot?s.length:i.length:0);const v=u===Ot&&/\b(transform|all)(,|$)/.test(r(`${Ot}Property`).toString());re
* vue-router v4.3.0
* (c) 2024 Eduardo San Martin Morote
* @license MIT
*/const vn=typeof document<"u";function Dd(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ce=Object.assign;function Po(e,t){const n={};for(const r in t){const o=t[r];n[r]=ht(o)?o.map(e):e(o)}return n}const tr=()=>{},ht=Array.isArray,Xi=/#/g,jd=/&/g,Fd=/\//g,Bd=/=/g,Hd=/\?/g,Zi=/\+/g,Vd=/%5B/g,zd=/%5D/g,ec=/%5E/g,qd=/%60/g,tc=/%7B/g,Ud=/%7C/g,nc=/%7D/g,Wd=/%20/g;function Us(e){return encodeURI(""+e).replace(Ud,"|").replace(Vd,"[").replace(zd,"]")}function Gd(e){return Us(e).replace(tc,"{").replace(nc,"}").replace(ec,"^")}function as(e){return Us(e).replace(Zi,"%2B").replace(Wd,"+").replace(Xi,"%23").replace(jd,"%26").replace(qd,"`").replace(tc,"{").replace(nc,"}").replace(ec,"^")}function Kd(e){return as(e).replace(Bd,"%3D")}function Yd(e){return Us(e).replace(Xi,"%23").replace(Hd,"%3F")}function Jd(e){return e==null?"":Yd(e).replace(Fd,"%2F")}function ur(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Qd=/\/$/,Xd=e=>e.replace(Qd,"");function Mo(e,t,n="/"){let r,o={},s="",l="";const a=t.indexOf("#");let i=t.indexOf("?");return a<i&&a>=0&&(i=-1),i>-1&&(r=t.slice(0,i),s=t.slice(i+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=n0(r??t,n),{fullPath:r+(s&&"?")+s+l,path:r,query:o,hash:ur(l)}}function Zd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Kl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function e0(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Rn(t.matched[r],n.matched[o])&&rc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!t0(e[n],t[n]))return!1;return!0}function t0(e,t){return ht(e)?Yl(e,t):ht(t)?Yl(t,e):e===t}function Yl(e,t){return ht(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function n0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,l,a;for(l=0;l<r.length;l++)if(a=r[l],a!==".")if(a==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(l).join("/")}var fr;(function(e){e.pop="pop",e.push="push"})(fr||(fr={}));var nr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nr||(nr={}));function r0(e){if(!e)if(vn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xd(e)}const o0=/^[^#]+#/;function s0(e,t){return e.replace(o0,"#")+t}function l0(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const vo=()=>({left:window.scrollX,top:window.scrollY});function a0(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=l0(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Jl(e,t){return(history.state?history.state.position-t:-1)+e}const is=new Map;function i0(e,t){is.set(e,t)}function c0(e){const t=is.get(e);return is.delete(e),t}let u0=()=>location.protocol+"//"+location.host;function oc(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,i=o.slice(a);return i[0]!=="/"&&(i="/"+i),Kl(i,"")}return Kl(n,e)+r+o}function f0(e,t,n,r){let o=[],s=[],l=null;const a=({state:p})=>{const v=oc(e,location),g=n.value,_=t.value;let w=0;if(p){if(n.value=v,t.value=p,l&&l===g){l=null;return}w=_?p.position-_.position:0}else r(v);o.forEach(b=>{b(n.value,g,{delta:w,type:fr.pop,direction:w?w>0?nr.forward:nr.back:nr.unknown})})};function i(){l=n.value}function c(p){o.push(p);const v=()=>{const g=o.indexOf(p);g>-1&&o.splice(g,1)};retur
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT
*/const le={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:e=>{const t=le.isStarted();e=Vo(e,le.settings.minimum,1),le.status=e===1?null:e;const n=le.render(!t),r=n.querySelector(le.settings.barSelector),o=le.settings.speed,s=le.settings.easing;return n.offsetWidth,cp(l=>{qr(r,{transform:"translate3d("+ga(e)+"%,0,0)",transition:"all "+o+"ms "+s}),e===1?(qr(n,{transition:"none",opacity:"1"}),n.offsetWidth,setTimeout(function(){qr(n,{transition:"all "+o+"ms linear",opacity:"0"}),setTimeout(function(){le.remove(),l()},o)},o)):setTimeout(()=>l(),o)}),le},isStarted:()=>typeof le.status=="number",start:()=>{le.status||le.set(0);const e=()=>{setTimeout(()=>{le.status&&(le.trickle(),e())},le.settings.trickleSpeed)};return le.settings.trickle&&e(),le},done:e=>!e&&!le.status?le:le.inc(.3+.5*Math.random()).set(1),inc:e=>{let t=le.status;return t?(typeof e!="number"&&(e=(1-t)*Vo(Math.random()*t,.1,.95)),t=Vo(t+e,0,.994),le.set(t)):le.start()},trickle:()=>le.inc(Math.random()*le.settings.trickleRate),render:e=>{if(le.isRendered())return document.getElementById("nprogress");ya(document.documentElement,"nprogress-busy");const t=document.createElement("div");t.id="nprogress",t.innerHTML=le.settings.template;const n=t.querySelector(le.settings.barSelector),r=e?"-100":ga(le.status||0),o=document.querySelector(le.settings.parent);return qr(n,{transition:"all 0 linear",transform:"translate3d("+r+"%,0,0)"}),o!==document.body&&ya(o,"nprogress-custom-parent"),o==null||o.appendChild(t),t},remove:()=>{ba(document.documentElement,"nprogress-busy"),ba(document.querySelector(le.settings.parent),"nprogress-custom-parent");const e=document.getElementById("nprogress");e&&up(e)},isRendered:()=>!!document.getElementById("nprogress")},Vo=(e,t,n)=>e<t?t:e>n?n:e,ga=e=>(-1+e)*100,cp=function(){const e=[];function t(){const n=e.shift();n&&n(t)}return function(n){e.push(n),e.length===1&&t()}}(),qr=function(){const e=["Webkit","O","Moz","ms"],t={};function n(l){return l.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(a,i){return i.toUpperCase()})}function r(l){const a=document.body.style;if(l in a)return l;let i=e.length;const c=l.charAt(0).toUpperCase()+l.slice(1);let u;for(;i--;)if(u=e[i]+c,u in a)return u;return l}function o(l){return l=n(l),t[l]??(t[l]=r(l))}function s(l,a,i){a=o(a),l.style[a]=i}return function(l,a){for(const i in a){const c=a[i];c!==void 0&&Object.prototype.hasOwnProperty.call(a,i)&&s(l,i,c)}}}(),Rc=(e,t)=>(typeof e=="string"?e:el(e)).indexOf(" "+t+" ")>=0,ya=(e,t)=>{const n=el(e),r=n+t;Rc(n,t)||(e.className=r.substring(1))},ba=(e,t)=>{const n=el(e);if(!Rc(e,t))return;const r=n.replace(" "+t+" "," ");e.className=r.substring(1,r.length-1)},el=e=>(" "+(e.className||"")+" ").replace(/\s+/gi," "),up=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)},fp=()=>{ve(()=>{const e=an(),t=new Set;t.add(e.currentRoute.value.path),e.beforeEach(n=>{t.has(n.path)||le.start()}),e.afterEach(n=>{t.add(n.path),le.done()})})},dp=Ye({setup(){fp()}}),pp=JSON.parse('{"encrypt":{"config":{"/demo/encrypt.html":["$2a$10$sO8CQ0XsY1bQ.5TYNh8DIeVP0TnvIKHrJ57sH/jKrsEcH1h6WDYAi"]}},"author":{"name":"","url":"https://snowykami.me"},"logo":"https://cdn.liteyuki.icu/static/img/liteyuki_icon_640.png","repo":"https://github.com/snowykami/LiteyukiBot","docsDir":"docs","footer":"LiteyukiBot","displayFooter":true,"locales":{"/":{"lang":"zh-CN","navbarLocales":{"langName":"","selectLangAriaLabel":""},"metaLocales":{"author":"","date":"","origin":"","views":"访","category":"","tag":"","readingTime":"","words":"","toc":"","prev":"","next":"","lastUpdated":"","contributors":"","editLink":" GitHub ","print":""},"outlookLocales":{"themeColor":"","darkmode":"","fullscreen":""},"encryptLocales":{"iconLabel":"","placeholder":"<EFBFBD><EFBFBD>
${r}}`)),t.appendChild(o)}},Jp=e=>{const t=fn(e),n={html:[],js:[],css:[],isLegal:!1};return["html","js","css"].forEach(r=>{const o=t.filter(s=>ka[r].types.includes(s));if(o.length){const s=o[0];n[r]=[e[s].replace(/^\n|\n$/g,""),ka[r].map[s]||s]}}),n.isLegal=(!n.html.length||n.html[1]==="none")&&(!n.js.length||n.js[1]==="none")&&(!n.css.length||n.css[1]==="none"),n},Zc=e=>e.replace(/<br \/>/g,"<br>").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1></$2>"),eu=e=>`<div id="app">
${Zc(e)}
</div>`,Qp=e=>`${e.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")};
ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,Xp=e=>e.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(),tu=e=>`(function(exports){var module={};module.exports=exports;${e};return module.exports.__esModule?module.exports.default:module.exports;})({})`,Zp=(e,t)=>{const n=tl(t),r=e.js[0]||"";return{...n,html:Zc(e.html[0]||""),js:r,css:e.css[0]||"",isLegal:e.isLegal,getScript:()=>{var o;return n.useBabel?((o=window.Babel.transform(r,{presets:["es2015"]}))==null?void 0:o.code)||"":r}}},e3=/<template>([\s\S]+)<\/template>/u,t3=/<script(\s*lang=(['"])(.*?)\2)?>([\s\S]+)<\/script>/u,n3=/<style(\s*lang=(['"])(.*?)\2)?\s*(?:scoped)?>([\s\S]+)<\/style>/u,r3=(e,t)=>{const n=tl(t),r=e.html[0]||"",o=e3.exec(r),s=t3.exec(r),l=n3.exec(r),a=o?o[1].replace(/^\n|\n$/g,""):"",[i="",c=""]=s?[s[4].replace(/^\n|\n$/g,""),s[3]]:[],[u="",d=""]=l?[l[4].replace(/^\n|\n$/g,""),l[3]]:[],p=c===""&&(d===""||d==="css");return{...n,html:eu(a),js:Xp(i),css:u,isLegal:p,jsLib:[n.vue,...n.jsLib],getScript:()=>{var g,_;const v=t.useBabel?((_=(g=window.Babel)==null?void 0:g.transform(i,{presets:["es2015"]}))==null?void 0:_.code)||"":i.replace(/export\s+default/u,"return");return`const app=window.document.createElement('div');document.firstElementChild.appendChild(app);const appOptions=${tu(v)};appOptions.template=\`${a.replace("`",'\\`"')}\`;window.Vue.createApp(appOptions).mount(app);`}}},o3=(e,t)=>{const n=tl(t);return{...n,html:eu(""),js:Qp(e.js[0]||""),css:e.css[0]||(e.js[0]?e.js[0].replace(/App\.__style__(?:\s*)=(?:\s*)`([\s\S]*)?`/,"$1").trim():""),isLegal:e.isLegal,jsLib:[n.react,n.reactDOM,...n.jsLib],jsx:!0,getScript:()=>{var o,s;const r=((s=(o=window.Babel)==null?void 0:o.transform(e.js[0]||"",{presets:["es2015","react"]}))==null?void 0:s.code)||"";return`window.ReactDOM.createRoot(document.firstElementChild).render(window.React.createElement(${tu(r)}))`}}},Tn={},s3=e=>Promise.all([xn(Tn,e.babel),xn(Tn,e.react),xn(Tn,e.reactDOM)]),l3=e=>{const t=[xn(Tn,e.vue)];return e.useBabel&&t.push(xn(Tn,e.babel)),Promise.all(t)},a3=e=>e.useBabel?xn(Tn,e.babel):Promise.resolve();var i3=z({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}},slots:Object,setup(e,{slots:t}){const[n,r]=pr(!1),o=Me(),s=Me(),l=Y("0"),a=Y(!1),i=x(()=>JSON.parse(e.config?fa(e.config):"{}")),c=x(()=>{const g=JSON.parse(fa(e.code));return Jp(g)}),u=x(()=>e.type==="react"?o3(c.value,i.value):e.type==="vue"?r3(c.value,i.value):Zp(c.value,i.value)),d=x(()=>u.value.isLegal),p=(g=!1)=>{const _=o.value.attachShadow({mode:"open"}),w=document.createElement("div");w.classList.add("code-demo-app"),_.appendChild(w),d.value?(g&&(w.innerHTML=u.value.html),Kp(_,u.value),Yp(e.id,_,u.value),l.value="0"):l.value="auto",a.value=!0},v=()=>{switch(e.type){case"react":return s3(u.value).then(()=>p());case"vue":return l3(u.value).then(()=>p());default:return a3(u.value).then(()=>p(!0))}};return Le("beforeprint",()=>{r(!0)}),ve(()=>{setTimeout(()=>{v()},800)}),()=>{var g;return f("div",{class:"vp-code-demo",id:e.id},[f("div",{class:"vp-code-demo-header"},[u.value.isLegal?f("button",{type:"button",title:"toggle","aria-hidden":!0,class:["vp-code-demo-toggle-button",n.value?"down":"end"],onClick:()=>{l.value=n.value?"0":`${s.value.clientHeight+13.8}px`,r()}}):null,e.title?f("span",{class:"vp-code-demo-title"},decodeURIComponent(e.title)):null,u.value.isLegal&&u.value.jsfiddle!==!1?f("form",{class:"code-demo-jsfiddle",target:"_blank",action:"https://jsfiddle.net/api/post/library/pure/",method:"post"},[f("input",{type:"hidden",name:"html",value:u.value.html}),f("input",{type:"hidden",name:"js",value:u.value.js}),f("input",{type:"hidden",name:"css",value:u.value.css}),f("input",{type:"hidden",name:"wrap",value:"1"}),f("input",{type:"hidden",name:"panel_js",value:"3"}