2024-03-28 08:32:35 +08:00
|
|
|
function __vite__mapDeps(indexes) {
|
|
|
|
if (!__vite__mapDeps.viteFileDeps) {
|
2024-03-28 08:40:22 +08:00
|
|
|
__vite__mapDeps.viteFileDeps = ["assets/index.html-CBMKlOCt.js","assets/plugin-vue_export-helper-DlAUqK2U.js","assets/index.html-CvO2EmYE.js","assets/disable.html-DbezXN8G.js","assets/encrypt.html-CHwqBRbY.js","assets/layout.html-CVfalKHG.js","assets/markdown.html-CfG7I8QY.js","assets/page.html-BZEw4aJ6.js","assets/index.html-CBgBHhq2.js","assets/index.html-coymyXY_.js","assets/baz.html-miuOOm69.js","assets/index.html-DzFykgsA.js","assets/ray.html-0PtkpEQa.js","assets/404.html-_hzwbm5g.js"]
|
2024-03-28 08:32:35 +08:00
|
|
|
}
|
|
|
|
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @vue/shared v3.4.21
|
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-03-28 08:40:22 +08:00
|
|
|
**/function bs(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const ge={},gn=[],tt=()=>{},Ru=()=>!1,vr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ys=e=>e.startsWith("onUpdate:"),Ae=Object.assign,ws=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ou=Object.prototype.hasOwnProperty,ae=(e,t)=>Ou.call(e,t),X=Array.isArray,bn=e=>ro(e)==="[object Map]",Ia=e=>ro(e)==="[object Set]",ne=e=>typeof e=="function",Ce=e=>typeof e=="string",Rn=e=>typeof e=="symbol",pe=e=>e!==null&&typeof e=="object",$a=e=>(pe(e)||ne(e))&&ne(e.then)&&ne(e.catch),Pa=Object.prototype.toString,ro=e=>Pa.call(e),Mu=e=>ro(e).slice(8,-1),Ra=e=>ro(e)==="[object Object]",_s=e=>Ce(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yn=bs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),oo=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Nu=/-(\w)/g,lt=oo(e=>e.replace(Nu,(t,n)=>n?n.toUpperCase():"")),Du=/\B([A-Z])/g,On=oo(e=>e.replace(Du,"-$1").toLowerCase()),mr=oo(e=>e.charAt(0).toUpperCase()+e.slice(1)),wo=oo(e=>e?`on${mr(e)}`:""),zt=(e,t)=>!Object.is(e,t),_o=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Kr=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ju=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Bu=e=>{const t=Ce(e)?Number(e):NaN;return isNaN(t)?e:t};let nl;const Oa=()=>nl||(nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function so(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ce(r)?Vu(r):so(r);if(o)for(const s in o)t[s]=o[s]}return t}else if(Ce(e)||pe(e))return e}const Fu=/;(?![^(]*\))/g,Hu=/:([^]+)/,zu=/\/\*[^]*?\*\//g;function Vu(e){const t={};return e.replace(zu,"").split(Fu).forEach(n=>{if(n){const r=n.split(Hu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function lo(e){let t="";if(Ce(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const r=lo(e[n]);r&&(t+=r+" ")}else if(pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function t4(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ce(t)&&(e.class=lo(t)),n&&(e.style=so(n)),e}const Uu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qu=bs(Uu);function Ma(e){return!!e||e===""}const n4=e=>Ce(e)?e:e==null?"":X(e)||pe(e)&&(e.toString===Pa||!ne(e.toString))?JSON.stringify(e,Na,2):String(e),Na=(e,t)=>t&&t.__v_isRef?Na(e,t.value):bn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],s)=>(n[Eo(r,s)+" =>"]=o,n),{})}:Ia(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Eo(n))}:Rn(t)?Eo(t):pe(t)&&!X(t)&&!Ra(t)?String(t):t,Eo=(e,t="")=>{var n;return Rn(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
2024-03-28 08:32:35 +08:00
|
|
|
* @vue/reactivity v3.4.21
|
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-03-28 08:40:22 +08:00
|
|
|
**/let Ye;class Wu{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ye,!t&&Ye&&(this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ye;try{return Ye=this,t()}finally{Ye=n}}}on(){Ye=this}off(){Ye=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 Gu(e,t=Ye){t&&t.active&&t.effects.push(e)}function Da(){return Ye}function Ku(e){Ye&&Ye.cleanups.push(e)}let Zt;class Es{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,Gu(this,o)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,rn();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Yu(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),on()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ft,n=Zt;try{return Ft=!0,Zt=this,this._runnings++,rl(this),this.fn()}finally{ol(this),this._runnings--,Zt=n,Ft=t}}stop(){var t;this.active&&(rl(this),ol(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Yu(e){return e.value}function rl(e){e._trackId++,e._depsLength=0}function ol(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)ja(e.deps[t],e);e.deps.length=e._depsLength}}function ja(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ft=!0,Ko=0;const Ba=[];function rn(){Ba.push(Ft),Ft=!1}function on(){const e=Ba.pop();Ft=e===void 0?!0:e}function Cs(){Ko++}function Ss(){for(Ko--;!Ko&&Yo.length;)Yo.shift()()}function Fa(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const r=e.deps[e._depsLength];r!==t?(r&&ja(r,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Yo=[];function Ha(e,t,n){Cs();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&&Yo.push(r.scheduler)))}Ss()}const za=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Yr=new WeakMap,en=Symbol(""),Jo=Symbol("");function We(e,t,n){if(Ft&&Zt){let r=Yr.get(e);r||Yr.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=za(()=>r.delete(n))),Fa(Zt,o)}}function kt(e,t,n,r,o,s){const l=Yr.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"||!Rn(u)&&u>=i)&&a.push(c)})}else switch(n!==void 0&&a.push(l.get(n)),t){case"add":X(e)?_s(n)&&a.push(l.get("length")):(a.push(l.get(en)),bn(e)&&a.push(l.get(Jo)));break;case"delete":X(e)||(a.push(l.get(en)),bn(e)&&a.push(l.get(Jo)));break;case"set":bn(e)&&a.push(l.get(en));break}Cs();for(const i of a)i&&Ha(i,4);Ss()}function Ju(e,t){var n;return(n=Yr.get(e))==null?void 0:n.get(t)}const Qu=bs("__proto__,__v_isRef,__isVue"),Va=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rn)),sl=Xu();function Xu(){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++)We(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){rn(),Cs();const r=oe(this)[t].apply(this,n);return Ss(),on(),r}}),e}function Zu(e){const t=oe(this);return We(t,"has",e),t.hasOwnProperty(e)}class Ua{constructor(t=!1,n=!1){t
|
2024-03-28 08:32:35 +08:00
|
|
|
* @vue/runtime-core v3.4.21
|
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-03-28 08:40:22 +08:00
|
|
|
**/function Ht(e,t,n,r){try{return r?e(...r):e()}catch(o){yr(o,t,n)}}function rt(e,t,n,r){if(ne(e)){const s=Ht(e,t,n,r);return s&&$a(s)&&s.catch(l=>{yr(l,t,n)}),s}const o=[];for(let s=0;s<e.length;s++)o.push(rt(e[s],t,n,r));return o}function yr(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){Ht(i,null,10,[e,l,a]);return}}Cf(e,n,o,r)}function Cf(e,t,n,r=!0){console.error(e)}let rr=!1,Qo=!1;const De=[];let bt=0;const _n=[];let Mt=null,Jt=0;const ti=Promise.resolve();let $s=null;function qt(e){const t=$s||ti;return e?t.then(this?e.bind(this):e):t}function Sf(e){let t=bt+1,n=De.length;for(;t<n;){const r=t+n>>>1,o=De[r],s=or(o);s<e||s===e&&o.pre?t=r+1:n=r}return t}function co(e){(!De.length||!De.includes(e,rr&&e.allowRecurse?bt+1:bt))&&(e.id==null?De.push(e):De.splice(Sf(e.id),0,e),ni())}function ni(){!rr&&!Qo&&(Qo=!0,$s=ti.then(ri))}function xf(e){const t=De.indexOf(e);t>bt&&De.splice(t,1)}function kf(e){X(e)?_n.push(...e):(!Mt||!Mt.includes(e,e.allowRecurse?Jt+1:Jt))&&_n.push(e),ni()}function ul(e,t,n=rr?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 Qr(e){if(_n.length){const t=[...new Set(_n)].sort((n,r)=>or(n)-or(r));if(_n.length=0,Mt){Mt.push(...t);return}for(Mt=t,Jt=0;Jt<Mt.length;Jt++)Mt[Jt]();Mt=null,Jt=0}}const or=e=>e.id==null?1/0:e.id,Tf=(e,t)=>{const n=or(e)-or(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ri(e){Qo=!1,rr=!0,De.sort(Tf);try{for(bt=0;bt<De.length;bt++){const t=De[bt];t&&t.active!==!1&&Ht(t,null,14)}}finally{bt=0,De.length=0,Qr(),rr=!1,$s=null,(De.length||_n.length)&&ri()}}function Af(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ge;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]||ge;p&&(o=n.map(v=>Ce(v)?v.trim():v)),d&&(o=n.map(ju))}let a,i=r[a=wo(t)]||r[a=wo(lt(t))];!i&&s&&(i=r[a=wo(On(t))]),i&&rt(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,rt(c,e,6,o)}}function oi(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=oi(c,t,!0);u&&(a=!0,Ae(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):Ae(l,s),pe(e)&&r.set(e,l),l)}function uo(e,t){return!e||!vr(t)?!1:(t=t.slice(2).replace(/Once$/,""),ae(e,t[0].toLowerCase()+t.slice(1))||ae(e,On(t))||ae(e,t))}let nt=null,si=null;function Xr(e){const t=nt;return nt=e,si=e&&e.type.__scopeId||null,t}function Lf(e,t=nt,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&El(-1);const s=Xr(t);let l;try{l=e(...o)}finally{Xr(s),r._d&&El(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Co(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,y;const C=Xr(e);try{if(n.shapeFlag&4){const k=o||r,M=k;w=ut(u.call(M,k,d,s,v,p,g)),y=i}else{const k=t;w=ut(k.length>1?k(s,{attrs:i,slots:a,emit:c}):k(s,null)),y=t.props?i:If(i)}}catch(k){Xn.length=0,yr(k,e,1),w=Ee(ot)}let b=w;if(y&&_!==!1){const k=Object.keys(y),{shapeFlag:M}=b;k.length&&M&7&&(l&&k.some(ys)&&(y=$f(y,l)),b=Vt(b,y))}return n.dirs&&(b=Vt(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),w=b,Xr(C),w}const If=e=>{let t;for(const n in e)(n==="class"||n==="style"||vr(n))&&((t||(t={}))[n]=e[n]);return t},$f=(e,t)=>{const n={};for(const r in e)(!ys(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Pf(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)return!0;if(i&16)return r?fl(r,l,c):!!l;if(i&8
|
2024-03-28 08:32:35 +08:00
|
|
|
* @vue/runtime-dom v3.4.21
|
|
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
|
|
* @license MIT
|
2024-03-28 08:40:22 +08:00
|
|
|
**/const O1="http://www.w3.org/2000/svg",M1="http://www.w3.org/1998/Math/MathML",jt=typeof document<"u"?document:null,kl=jt&&jt.createElement("template"),N1={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"?jt.createElementNS(O1,e):t==="mathml"?jt.createElementNS(M1,e):jt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>jt.createTextNode(e),createComment:e=>jt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jt.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{kl.innerHTML=r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e;const a=kl.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]}},$t="transition",zn="animation",An=Symbol("_vtc"),Ut=(e,{slots:t})=>f(Hf,Ri(e),t);Ut.displayName="Transition";const Pi={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},D1=Ut.props=Ae({},fi,Pi),Kt=(e,t=[])=>{X(e)?e.forEach(n=>n(...t)):e&&e(...t)},Tl=e=>e?X(e)?e.some(t=>t.length>1):e.length>1:!1;function Ri(e){const t={};for(const R in e)R in Pi||(t[R]=e[R]);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=j1(o),_=g&&g[0],w=g&&g[1],{onBeforeEnter:y,onEnter:C,onEnterCancelled:b,onLeave:k,onLeaveCancelled:M,onBeforeAppear:S=y,onAppear:N=C,onAppearCancelled:P=b}=t,K=(R,Z,ye)=>{Ot(R,Z?u:a),Ot(R,Z?c:l),ye&&ye()},$=(R,Z)=>{R._isLeaving=!1,Ot(R,d),Ot(R,v),Ot(R,p),Z&&Z()},V=R=>(Z,ye)=>{const ve=R?N:C,U=()=>K(Z,R,ye);Kt(ve,[Z,U]),Al(()=>{Ot(Z,R?i:s),Ct(Z,R?u:a),Tl(ve)||Ll(Z,r,_,U)})};return Ae(t,{onBeforeEnter(R){Kt(y,[R]),Ct(R,s),Ct(R,l)},onBeforeAppear(R){Kt(S,[R]),Ct(R,i),Ct(R,c)},onEnter:V(!1),onAppear:V(!0),onLeave(R,Z){R._isLeaving=!0;const ye=()=>$(R,Z);Ct(R,d),Mi(),Ct(R,p),Al(()=>{R._isLeaving&&(Ot(R,d),Ct(R,v),Tl(k)||Ll(R,r,w,ye))}),Kt(k,[R,ye])},onEnterCancelled(R){K(R,!1),Kt(b,[R])},onAppearCancelled(R){K(R,!0),Kt(P,[R])},onLeaveCancelled(R){$(R),Kt(M,[R])}})}function j1(e){if(e==null)return null;if(pe(e))return[Ao(e.enter),Ao(e.leave)];{const t=Ao(e);return[t,t]}}function Ao(e){return Bu(e)}function Ct(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[An]||(e[An]=new Set)).add(t)}function Ot(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[An];n&&(n.delete(t),n.size||(e[An]=void 0))}function Al(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let B1=0;function Ll(e,t,n,r){const o=e._endId=++B1,s=()=>{o===e._endId&&r()};if(n)return setTimeout(s,n);const{type:l,timeout:a,propCount:i}=Oi(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 Oi(e,t){const n=window.getComputedStyle(e),r=g=>(n[g]||"").split(", "),o=r(`${$t}Delay`),s=r(`${$t}Duration`),l=Il(o,s),a=r(`${zn}Delay`),i=r(`${zn}Duration`),c=Il(a,i);let u=null,d=0,p=0;t===$t?l>0&&(u=$t,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?$t:zn:null,p=u?u===$t?s.length:i.length:0);const v=u===$t&&/\b(transform|all)(,|$)/.test(r(`${$t}Property`).toString());re
|
2024-03-28 08:32:35 +08:00
|
|
|
* vue-router v4.3.0
|
|
|
|
* (c) 2024 Eduardo San Martin Morote
|
|
|
|
* @license MIT
|
2024-03-28 08:40:22 +08:00
|
|
|
*/const dn=typeof document<"u";function Td(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]=pt(o)?o.map(e):e(o)}return n}const Zn=()=>{},pt=Array.isArray,zi=/#/g,Ad=/&/g,Ld=/\//g,Id=/=/g,$d=/\?/g,Vi=/\+/g,Pd=/%5B/g,Rd=/%5D/g,Ui=/%5E/g,Od=/%60/g,qi=/%7B/g,Md=/%7C/g,Wi=/%7D/g,Nd=/%20/g;function Bs(e){return encodeURI(""+e).replace(Md,"|").replace(Pd,"[").replace(Rd,"]")}function Dd(e){return Bs(e).replace(qi,"{").replace(Wi,"}").replace(Ui,"^")}function os(e){return Bs(e).replace(Vi,"%2B").replace(Nd,"+").replace(zi,"%23").replace(Ad,"%26").replace(Od,"`").replace(qi,"{").replace(Wi,"}").replace(Ui,"^")}function jd(e){return os(e).replace(Id,"%3D")}function Bd(e){return Bs(e).replace(zi,"%23").replace($d,"%3F")}function Fd(e){return e==null?"":Bd(e).replace(Ld,"%2F")}function ir(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Hd=/\/$/,zd=e=>e.replace(Hd,"");function Ro(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=Wd(r??t,n),{fullPath:r+(s&&"?")+s+l,path:r,query:o,hash:ir(l)}}function Vd(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zl(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ud(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&In(t.matched[r],n.matched[o])&&Gi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function In(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qd(e[n],t[n]))return!1;return!0}function qd(e,t){return pt(e)?Vl(e,t):pt(t)?Vl(t,e):e===t}function Vl(e,t){return pt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Wd(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 cr;(function(e){e.pop="pop",e.push="push"})(cr||(cr={}));var er;(function(e){e.back="back",e.forward="forward",e.unknown=""})(er||(er={}));function Gd(e){if(!e)if(dn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),zd(e)}const Kd=/^[^#]+#/;function Yd(e,t){return e.replace(Kd,"#")+t}function Jd(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 ho=()=>({left:window.scrollX,top:window.scrollY});function Qd(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=Jd(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 Ul(e,t){return(history.state?history.state.position-t:-1)+e}const ss=new Map;function Xd(e,t){ss.set(e,t)}function Zd(e){const t=ss.get(e);return ss.delete(e),t}let e0=()=>location.protocol+"//"+location.host;function Ki(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),zl(i,"")}return zl(n,e)+r+o}function t0(e,t,n,r){let o=[],s=[],l=null;const a=({state:p})=>{const v=Ki(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(y=>{y(n.value,g,{delta:w,type:cr.pop,direction:w?w>0?er.forward:er.back:er.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
|
2024-03-28 08:32:35 +08:00
|
|
|
* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
|
|
|
* @license MIT
|
2024-03-28 08:40:22 +08:00
|
|
|
*/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=Fo(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,Z2(l=>{zr(r,{transform:"translate3d("+fa(e)+"%,0,0)",transition:"all "+o+"ms "+s}),e===1?(zr(n,{transition:"none",opacity:"1"}),n.offsetWidth,setTimeout(function(){zr(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)*Fo(Math.random()*t,.1,.95)),t=Fo(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");da(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":fa(le.status||0),o=document.querySelector(le.settings.parent);return zr(n,{transition:"all 0 linear",transform:"translate3d("+r+"%,0,0)"}),o!==document.body&&da(o,"nprogress-custom-parent"),o==null||o.appendChild(t),t},remove:()=>{pa(document.documentElement,"nprogress-busy"),pa(document.querySelector(le.settings.parent),"nprogress-custom-parent");const e=document.getElementById("nprogress");e&&ep(e)},isRendered:()=>!!document.getElementById("nprogress")},Fo=(e,t,n)=>e<t?t:e>n?n:e,fa=e=>(-1+e)*100,Z2=function(){const e=[];function t(){const n=e.shift();n&&n(t)}return function(n){e.push(n),e.length===1&&t()}}(),zr=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)}}}(),Cc=(e,t)=>(typeof e=="string"?e:Ks(e)).indexOf(" "+t+" ")>=0,da=(e,t)=>{const n=Ks(e),r=n+t;Cc(n,t)||(e.className=r.substring(1))},pa=(e,t)=>{const n=Ks(e);if(!Cc(e,t))return;const r=n.replace(" "+t+" "," ");e.className=r.substring(1,r.length-1)},Ks=e=>(" "+(e.className||"")+" ").replace(/\s+/gi," "),ep=e=>{e&&e.parentNode&&e.parentNode.removeChild(e)},tp=()=>{be(()=>{const e=Dn(),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()})})},np=at({setup(){tp()}}),rp=JSON.parse('{"encrypt":{"config":{"/demo/encrypt.html":["$2a$10$REDezt/PeTGuS0Od0xRGj.DEQvALoGGNAQUnkZh5rmNmUarvE0vwO"]}},"author":{"name":"Mr.Hope","url":"https://mister-hope.com"},"logo":"https://theme-hope-assets.vuejs.press/logo.svg","repo":"vuepress-theme-hope/vuepress-theme-hope","docsDir":"src","footer":"默认页脚","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":"输入密码","r
|
|
|
|
${r}}`)),t.appendChild(o)}},Fp=e=>{const t=an(e),n={html:[],js:[],css:[],isLegal:!1};return["html","js","css"].forEach(r=>{const o=t.filter(s=>ba[r].types.includes(s));if(o.length){const s=o[0];n[r]=[e[s].replace(/^\n|\n$/g,""),ba[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},Vc=e=>e.replace(/<br \/>/g,"<br>").replace(/<((\S+)[^<]*?)\s+\/>/g,"<$1></$2>"),Uc=e=>`<div id="app">
|
2024-03-28 08:32:35 +08:00
|
|
|
${Vc(e)}
|
|
|
|
</div>`,Hp=e=>`${e.replace("export default ","const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,"")};
|
2024-03-28 08:40:22 +08:00
|
|
|
ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`,zp=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(),qc=e=>`(function(exports){var module={};module.exports=exports;${e};return module.exports.__esModule?module.exports.default:module.exports;})({})`,Vp=(e,t)=>{const n=Ys(t),r=e.js[0]||"";return{...n,html:Vc(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}}},Up=/<template>([\s\S]+)<\/template>/u,qp=/<script(\s*lang=(['"])(.*?)\2)?>([\s\S]+)<\/script>/u,Wp=/<style(\s*lang=(['"])(.*?)\2)?\s*(?:scoped)?>([\s\S]+)<\/style>/u,Gp=(e,t)=>{const n=Ys(t),r=e.html[0]||"",o=Up.exec(r),s=qp.exec(r),l=Wp.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:Uc(a),js:zp(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=${qc(v)};appOptions.template=\`${a.replace("`",'\\`"')}\`;window.Vue.createApp(appOptions).mount(app);`}}},Kp=(e,t)=>{const n=Ys(t);return{...n,html:Uc(""),js:Hp(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(${qc(r)}))`}}},Sn={},Yp=e=>Promise.all([Cn(Sn,e.babel),Cn(Sn,e.react),Cn(Sn,e.reactDOM)]),Jp=e=>{const t=[Cn(Sn,e.vue)];return e.useBabel&&t.push(Cn(Sn,e.babel)),Promise.all(t)},Qp=e=>e.useBabel?Cn(Sn,e.babel):Promise.resolve();var Xp=q({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]=fr(!1),o=Me(),s=Me(),l=Q("0"),a=Q(!1),i=x(()=>JSON.parse(e.config?sa(e.config):"{}")),c=x(()=>{const g=JSON.parse(sa(e.code));return Fp(g)}),u=x(()=>e.type==="react"?Kp(c.value,i.value):e.type==="vue"?Gp(c.value,i.value):Vp(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),jp(_,u.value),Bp(e.id,_,u.value),l.value="0"):l.value="auto",a.value=!0},v=()=>{switch(e.type){case"react":return Yp(u.value).then(()=>p());case"vue":return Jp(u.value).then(()=>p());default:return Qp(u.value).then(()=>p(!0))}};return Le("beforeprint",()=>{r(!0)}),be(()=>{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"}
|