update docs

This commit is contained in:
Harvey Zack committed 2024-01-10 09:58:31 +08:00
1 parent 50ba902df5
commit a1063c20ed
183 files changed
+554 -553

No files matched your search

@@ -0,0 +1,2 @@
function gi(t,e){const n=new Set(t.split(","));return e?i=>n.has(i.toLowerCase()):i=>n.has(i)}const tt={},he=[],Et=()=>{},gr=()=>!1,Ve=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),xi=t=>t.startsWith("onUpdate:"),rt=Object.assign,yi=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},xr=Object.prototype.hasOwnProperty,J=(t,e)=>xr.call(t,e),D=Array.isArray,ge=t=>bn(t)==="[object Map]",Us=t=>bn(t)==="[object Set]",q=t=>typeof t=="function",nt=t=>typeof t=="string",Ce=t=>typeof t=="symbol",Z=t=>t!==null&&typeof t=="object",Bs=t=>(Z(t)||q(t))&&q(t.then)&&q(t.catch),Ks=Object.prototype.toString,bn=t=>Ks.call(t),yr=t=>bn(t).slice(8,-1),qs=t=>bn(t)==="[object Object]",vi=t=>nt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Re=gi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wn=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},vr=/-(\w)/g,Pt=wn(t=>t.replace(vr,(e,n)=>n?n.toUpperCase():"")),_r=/\B([A-Z])/g,ce=wn(t=>t.replace(_r,"-$1").toLowerCase()),Cn=wn(t=>t.charAt(0).toUpperCase()+t.slice(1)),on=wn(t=>t?`on${Cn(t)}`:""),Yt=(t,e)=>!Object.is(t,e),rn=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},cn=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},ti=t=>{const e=parseFloat(t);return isNaN(e)?t:e},br=t=>{const e=nt(t)?Number(t):NaN;return isNaN(e)?t:e};let Ki;const Ws=()=>Ki||(Ki=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _i(t){if(D(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],s=nt(i)?Tr(i):_i(i);if(s)for(const o in s)e[o]=s[o]}return e}else if(nt(t)||Z(t))return t}const wr=/;(?![^(]*\))/g,Cr=/:([^]+)/,Er=/\/\*[^]*?\*\//g;function Tr(t){const e={};return t.replace(Er,"").split(wr).forEach(n=>{if(n){const i=n.split(Cr);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function bi(t){let e="";if(nt(t))e=t;else if(D(t))for(let n=0;n<t.length;n++){const i=bi(t[n]);i&&(e+=i+" ")}else if(Z(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Sr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ar=gi(Sr);function zs(t){return!!t||t===""}const Dc=t=>nt(t)?t:t==null?"":D(t)||Z(t)&&(t.toString===Ks||!q(t.toString))?JSON.stringify(t,Gs,2):String(t),Gs=(t,e)=>e&&e.__v_isRef?Gs(t,e.value):ge(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,s],o)=>(n[Un(i,o)+" =>"]=s,n),{})}:Us(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Un(n))}:Ce(e)?Un(e):Z(e)&&!D(e)&&!qs(e)?String(e):e,Un=(t,e="")=>{var n;return Ce(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let vt;class jr{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=vt,!e&&vt&&(this.index=(vt.scopes||(vt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=vt;try{return vt=this,e()}finally{vt=n}}}on(){vt=this}off(){vt=this.parent}stop(e){if(this._active){let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.scopes)for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function Rr(t,e=vt){e&&e.active&&e.effects.push(t)}function Ys(){return vt}function Mr(t){vt&&vt.cleanups.push(t)}let se;class wi{constructor(e,n,i,s){this.fn=e,this.trigger=n,this.scheduler=i,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,Rr(this,s)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,fe();for(const e of this.deps)if(e.computed&&(Or(e.computed),this._dirtyLevel>=2))break;ue(),this._queryings--}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Wt,n=se;try{return Wt=!0,se=this,this._runnings++,qi(this),this.fn()}finally{Wi(this),this._runnings--,se=n,Wt=e}}stop(){var e;this.active&&(qi(this),Wi(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Or(t){return t.value}function qi(t){t._trackId++,t._depsLength=0}function Wi(t){if(t.deps&&t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Js(t.deps[e],t);t.deps.length=t._depsLength}}function Js(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let Wt=!0,ei=0;const Xs=[];function fe(){Xs.push(Wt),Wt=!1}function ue(){const t=Xs.pop();Wt=t===void 0?!0:t}function Ci(){ei++}function Ei(){for(ei--;!ei&&ni.length;)ni.shift()()}function Qs(t,e,n){if(e.get(t)!==t._trackId){e.set(t,t._trackId);const i=t.deps[t._depsLength];i!==e?(i&&Js(i,t),t.deps[t._depsLength++]=e):t._depsLength++}}const ni=[];function Zs(t,e,n){Ci();for(const i of t.keys())if(!(!i.allowRecurse&&i._runnings)&&i._dirtyLevel<e&&(!i._runniLine truncated
`),l=l.slice(0,-1),r&&(l=l.replace(/^ *(\$|>) /gm,"").trim()),Fc(l).then(()=>{n.classList.add("copied"),clearTimeout(t.get(n));const a=setTimeout(()=>{n.classList.remove("copied"),n.blur(),t.delete(n)},2e3);t.set(n,a)})}})}}async function Fc(t){try{return navigator.clipboard.writeText(t)}catch{const e=document.createElement("textarea"),n=document.activeElement;e.value=t,e.setAttribute("readonly",""),e.style.contain="strict",e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="12pt";const i=document.getSelection(),s=i?i.rangeCount>0&&i.getRangeAt(0):null;document.body.appendChild(e),e.select(),e.selectionStart=0,e.selectionEnd=t.length,document.execCommand("copy"),document.body.removeChild(e),s&&(i.removeAllRanges(),i.addRange(s)),n&&n.focus()}}function vf(t,e){let n=[],i=!0;const s=o=>{if(i){i=!1;return}const r=o.map(Ds);n.forEach((l,a)=>{const f=r.findIndex(u=>u==null?void 0:u.isEqualNode(l??null));f!==-1?delete r[f]:(l==null||l.remove(),delete n[a])}),r.forEach(l=>l&&document.head.appendChild(l)),n=[...n,...r].filter(Boolean)};bo(()=>{const o=t.data,r=e.value,l=o&&o.description,a=o&&o.frontmatter.head||[],f=cr(r,o);f!==document.title&&(document.title=f);const u=l||r.description;let d=document.querySelector("meta[name=description]");d?d.getAttribute("content")!==u&&d.setAttribute("content",u):Ds(["meta",{name:"description",content:u}]),s(fr(r.head,kc(a)))})}function Ds([t,e,n]){const i=document.createElement(t);for(const s in e)i.setAttribute(s,e[s]);return n&&(i.innerHTML=n),t==="script"&&!e.async&&(i.async=!1),i}function Nc(t){return t[0]==="meta"&&t[1]&&t[1].name==="description"}function kc(t){return t.filter(e=>!Nc(e))}const Zn=new Set,dr=()=>document.createElement("link"),$c=t=>{const e=dr();e.rel="prefetch",e.href=t,document.head.appendChild(e)},Hc=t=>{const e=new XMLHttpRequest;e.open("GET",t,e.withCredentials=!0),e.send()};let sn;const Vc=Ct&&(sn=dr())&&sn.relList&&sn.relList.supports&&sn.relList.supports("prefetch")?$c:Hc;function _f(){if(!Ct||!window.IntersectionObserver)return;let t;if((t=navigator.connection)&&(t.saveData||/2g/.test(t.effectiveType)))return;const e=window.requestIdleCallback||setTimeout;let n=null;const i=()=>{n&&n.disconnect(),n=new IntersectionObserver(o=>{o.forEach(r=>{if(r.isIntersecting){const l=r.target;n.unobserve(l);const{pathname:a}=l;if(!Zn.has(a)){Zn.add(a);const f=Oc(a);f&&Vc(f)}}})}),e(()=>{document.querySelectorAll("#app a").forEach(o=>{const{hostname:r,pathname:l}=new URL(o.href instanceof SVGAnimatedString?o.href.animVal:o.href,o.baseURI),a=l.match(/\.\w+$/);a&&a[0]!==".html"||o.target!=="_blank"&&r===location.hostname&&(l!==location.pathname?n.observe(o):Zn.add(l))})})};Ee(i);const s=pr();Gt(()=>s.path,i),In(()=>{n&&n.disconnect()})}export{Qc as $,In as A,Wc as B,Ml as C,Kc as D,Gc as E,ht as F,co as G,df as H,ft as I,qc as J,rr as K,pr as L,aa as M,_e as N,_i as O,jn as P,uf as Q,tf as R,Sn as S,Yo as T,Ic as U,cf as V,zc as W,nf as X,of as Y,sf as Z,af as _,qo as a,ff as a0,Kl as a1,rf as a2,Jc as a3,Xc as a4,vf as a5,Lc as a6,pf as a7,Sc as a8,hf as a9,gf as aa,le as ab,lf as ac,mf as ad,Oc as ae,_f as af,yf as ag,xf as ah,di as ai,Uo as b,Zc as c,So as d,ef as e,Ns as f,it as g,gt as h,_c as i,Ee as j,Ko as k,Rc as l,uo as m,bi as n,Vo as o,Uc as p,Bc as q,Yc as r,vc as s,Dc as t,Ac as u,Ct as v,dl as w,ac as x,Gt as y,bo as z};