mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
update docs
This commit is contained in:
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};
|
||||
@@ -1 +0,0 @@
|
||||
import{u as qi}from"./theme.FsA9FYvx.js";function ls(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const ee={},ut=[],xe=()=>{},Gi=()=>!1,Nt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),ie=Object.assign,fs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zi=Object.prototype.hasOwnProperty,Y=(e,t)=>zi.call(e,t),U=Array.isArray,dt=e=>gn(e)==="[object Map]",Pr=e=>gn(e)==="[object Set]",K=e=>typeof e=="function",ne=e=>typeof e=="string",bt=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",Ir=e=>(Z(e)||K(e))&&K(e.then)&&K(e.catch),Mr=Object.prototype.toString,gn=e=>Mr.call(e),Yi=e=>gn(e).slice(8,-1),Lr=e=>gn(e)==="[object Object]",as=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Et=ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Xi=/-(\w)/g,Le=mn(e=>e.replace(Xi,(t,n)=>n?n.toUpperCase():"")),Ji=/\B([A-Z])/g,it=mn(e=>e.replace(Ji,"-$1").toLowerCase()),_n=mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xt=mn(e=>e?`on${_n(e)}`:""),Ge=(e,t)=>!Object.is(e,t),Jt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},tn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},qn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Zi=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let Fs;const Or=()=>Fs||(Fs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function us(e){if(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ne(s)?no(s):us(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ne(e)||Z(e))return e}const Qi=/;(?![^(]*\))/g,eo=/:([^]+)/,to=/\/\*[^]*?\*\//g;function no(e){const t={};return e.replace(to,"").split(Qi).forEach(n=>{if(n){const s=n.split(eo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ds(e){let t="";if(ne(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=ds(e[n]);s&&(t+=s+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const so="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ro=ls(so);function Fr(e){return!!e||e===""}const nf=e=>ne(e)?e:e==null?"":U(e)||Z(e)&&(e.toString===Mr||!K(e.toString))?JSON.stringify(e,Nr,2):String(e),Nr=(e,t)=>t&&t.__v_isRef?Nr(e,t.value):dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[Fn(s,r)+" =>"]=i,n),{})}:Pr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Fn(n))}:bt(t)?Fn(t):Z(t)&&!U(t)&&!Lr(t)?String(t):t,Fn=(e,t="")=>{var n;return bt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let _e;class io{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=_e,!t&&_e&&(this.index=(_e.scopes||(_e.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=_e;try{return _e=this,t()}finally{_e=n}}}on(){_e=this}off(){_e=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function oo(e,t=_e){t&&t.active&&t.effects.push(e)}function lo(){return _e}function sf(e){_e&&_e.cleanups.push(e)}let nt;class hs{constructor(t,n,s,i){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,oo(this,i)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,ot();for(const t of this.deps)if(t.computed&&(co(t.computed),this._dirtyLevel>=2))break;lt(),this._queryings--}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=We,n=nt;try{return We=!0,nt=this,this._runnings++,Ns(this),this.fn()}finally{$s(this),this._runnings--,nt=n,We=t}}stop(){var t;this.active&&(Ns(this),$s(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function co(e){return e.value}function Ns(e){e._trackId++,e._depsLength=0}function $s(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)$r(e.deps[t],e);e.deps.length=e._depsLength}}function $r(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let We=!0,Gn=0;const Hr=[];function ot(){Hr.push(We),We=!1}function lt(){const e=Hr.pop();We=e===void 0?!0:e}function ps(){Gn++}function gs(){for(Gn--;!Gn&&zn.length;)zn.shift()()}function jr(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&$r(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const zn=[];function Vr(e,t,n){ps();for(const s of e.keys())if(!(!s.allowRecurse&&Line truncated
|
||||
@@ -1,7 +0,0 @@
|
||||
import{d as V,o as l,c as h,r as f,n as x,a as K,t as N,u,b as zt,e as Ue,f as xt,g as M,h as ee,i as Me,j as ut,w as J,k as Ot,l as Dt,m as w,p as ve,s as qe,q as C,v as p,T as Re,x as y,_ as P,y as dt,z as Ft,A as jt,B as Ce,C as de,D as d,E as X,F as Q,G as le,H as We,I as ht,J as Ut,K as ae,L as z,M as j,N as Ie,O as $,P as ie,Q as ft,R as Te,S as $e,U as Ae,V as qt,W as Rt,X as Wt,Y as Gt,Z as tt,$ as Kt,a0 as vt,a1 as Jt,a2 as Yt,a3 as pt,a4 as Xt,a5 as Qt,a6 as Zt}from"./framework.n4OLkSRA.js";const en=V({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(t,n)=>(l(),h("span",{class:x(["VPBadge",t.type])},[f(t.$slots,"default",{},()=>[K(N(t.text),1)])],2))}});function Ge(e){return Ot()?(Dt(e),!0):!1}function se(e){return typeof e=="function"?e():u(e)}const mt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tn=Object.prototype.toString,nn=e=>tn.call(e)==="[object Object]",fe=()=>{},xe=sn();function sn(){var e,t;return mt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function on(e,t){function n(...s){return new Promise((o,a)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(o).catch(a)})}return n}const _t=e=>e();function an(e=_t){const t=M(!0);function n(){t.value=!1}function s(){t.value=!0}const o=(...a)=>{t.value&&e(...a)};return{isActive:Ue(t),pause:n,resume:s,eventFilter:o}}function rn(e){return e||ut()}function gt(...e){if(e.length!==1)return zt(...e);const t=e[0];return typeof t=="function"?Ue(xt(()=>({get:t,set:fe}))):M(t)}function ln(e,t,n={}){const{eventFilter:s=_t,...o}=n;return J(e,on(s,t),o)}function cn(e,t,n={}){const{eventFilter:s,...o}=n,{eventFilter:a,pause:r,resume:i,isActive:c}=an(s);return{stop:ln(e,t,{...o,eventFilter:a}),pause:r,resume:i,isActive:c}}function kt(e,t=!0,n){rn()?ee(e,n):t?e():Me(e)}function ue(e){var t;const n=se(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Z=mt?window:void 0;function oe(...e){let t,n,s,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,s,o]=e,t=Z):[t,n,s,o]=e,!t)return fe;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const a=[],r=()=>{a.forEach(m=>m()),a.length=0},i=(m,g,k,b)=>(m.addEventListener(g,k,b),()=>m.removeEventListener(g,k,b)),c=J(()=>[ue(t),se(o)],([m,g])=>{if(r(),!m)return;const k=nn(g)?{...g}:g;a.push(...n.flatMap(b=>s.map(_=>i(m,b,_,k))))},{immediate:!0,flush:"post"}),v=()=>{c(),r()};return Ge(v),v}let nt=!1;function un(e,t,n={}){const{window:s=Z,ignore:o=[],capture:a=!0,detectIframe:r=!1}=n;if(!s)return fe;xe&&!nt&&(nt=!0,Array.from(s.document.body.children).forEach(k=>k.addEventListener("click",fe)),s.document.documentElement.addEventListener("click",fe));let i=!0;const c=k=>o.some(b=>{if(typeof b=="string")return Array.from(s.document.querySelectorAll(b)).some(_=>_===k.target||k.composedPath().includes(_));{const _=ue(b);return _&&(k.target===_||k.composedPath().includes(_))}}),m=[oe(s,"click",k=>{const b=ue(e);if(!(!b||b===k.target||k.composedPath().includes(b))){if(k.detail===0&&(i=!c(k)),!i){i=!0;return}t(k)}},{passive:!0,capture:a}),oe(s,"pointerdown",k=>{const b=ue(e);i=!c(k)&&!!(b&&!k.composedPath().includes(b))},{passive:!0}),r&&oe(s,"blur",k=>{setTimeout(()=>{var b;const _=ue(e);((b=s.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(_!=null&&_.contains(s.document.activeElement))&&t(k)},0)})].filter(Boolean);return()=>m.forEach(k=>k())}function dn(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function hn(...e){let t,n,s={};e.length===3?(t=e[0],n=e[1],s=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],s=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:o=Z,eventName:a="keydown",passive:r=!1,dedupe:i=!1}=s,c=dn(t);return oe(o,a,m=>{m.repeat&&se(i)||c(m)&&n(m)},r)}function fn(){const e=M(!1);return ut()&&ee(()=>{e.value=!0}),e}function vn(e){const t=fn();return w(()=>(t.value,!!e()))}function Pe(e,t={}){const{window:n=Z}=t,s=vn(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const a=M(!1),r=v=>{a.value=v.matches},i=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",r):o.removeListener(r))},c=ve(()=>{s.value&&(i(),o=n.matchMedia(se(e)),"addEventListener"in o?o.addEventListener("change",r):o.addListener(r),a.value=o.matches)});return Ge(()=>{c(),i(),o=void 0}),a}const _e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ge="__vueuse_ssr_handlers__",pn=mn();function mn(){return ge in _e||(_e[ge]=_e[ge]||{}),_e[ge]}function bt(e,t){return pn[e]||t}function _n(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"Line truncated
|
||||
function __vite__mapDeps(indexes) {
|
||||
if (!__vite__mapDeps.viteFileDeps) {
|
||||
__vite__mapDeps.viteFileDeps = []
|
||||
}
|
||||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import{d as y,o as r,c as u,r as v,n as A,a as G,t as T,_ as k,b as w,w as p,T as Ie,e as g,u as Je,i as vt,l as pt,f as me,g as V,h as M,j as te,k as d,m as l,p as W,q as J,s as ee,v as ae,x as Ve,y as se,z as ge,A as Ce,B as Ye,C as ft,D as Z,F as N,E as D,G as Te,H as re,I as _,J as Q,K as Xe,L as ke,M as de,N as $e,O as _t,P as Ze,Q as Qe,R as mt,S as gt,U as kt,V as $t,W as je,X as bt,Y as et,Z as yt,$ as Pt,a0 as tt,a1 as st,a2 as wt,a3 as Vt,a4 as Lt}from"./framework.0i_P4VHR.js";const St=y({__name:"VPBadge",props:{text:{},type:{default:"tip"}},setup(e){return(t,s)=>(r(),u("span",{class:A(["VPBadge",t.type])},[v(t.$slots,"default",{},()=>[G(T(t.text),1)],!0)],2))}}),Mt=k(St,[["__scopeId","data-v-57f18589"]]),It={key:0,class:"VPBackdrop"},Ct=y({__name:"VPBackdrop",props:{show:{type:Boolean}},setup(e){return(t,s)=>(r(),w(Ie,{name:"fade"},{default:p(()=>[t.show?(r(),u("div",It)):g("",!0)]),_:1}))}}),Tt=k(Ct,[["__scopeId","data-v-b30612d7"]]),C=Je;function At(e,t){let s,n=!1;return()=>{s&&clearTimeout(s),n?s=setTimeout(e,t):(e(),(n=!0)&&setTimeout(()=>n=!1,t))}}function Le(e){return/^\//.test(e)?e:`/${e}`}function Ae(e){const{pathname:t,search:s,hash:n,protocol:o}=new URL(e,"http://a.com");if(vt(e)||e.startsWith("#")||!o.startsWith("http")||/\.(?!html|md)\w+($|\?)/i.test(e)&&pt(e))return e;const{site:a}=C(),i=t.endsWith("/")||t.endsWith(".html")?e:e.replace(/(?:(^\.+)\/)?.*$/,`$1${t.replace(/(\.md)?$/,a.value.cleanUrls?"":".html")}${s}${n}`);return me(i)}function le({removeCurrent:e=!0,correspondingLink:t=!1}={}){const{site:s,localeIndex:n,page:o,theme:a}=C(),i=V(()=>{var h,f;return{label:(h=s.value.locales[n.value])==null?void 0:h.label,link:((f=s.value.locales[n.value])==null?void 0:f.link)||(n.value==="root"?"/":`/${n.value}/`)}});return{localeLinks:V(()=>Object.entries(s.value.locales).flatMap(([h,f])=>e&&i.value.label===f.label?[]:{text:f.label,link:Nt(f.link||(h==="root"?"/":`/${h}/`),a.value.i18nRouting!==!1&&t,o.value.relativePath.slice(i.value.link.length-1),!s.value.cleanUrls)})),currentLang:i}}function Nt(e,t,s,n){return t?e.replace(/\/$/,"")+Le(s.replace(/(^|\/)index\.md$/,"$1").replace(/\.md$/,n?".html":"")):e}const Bt=e=>(W("data-v-56f8922b"),e=e(),J(),e),Ht={class:"NotFound"},zt={class:"code"},xt={class:"title"},Et=Bt(()=>d("div",{class:"divider"},null,-1)),Dt={class:"quote"},Ot={class:"action"},Ft=["href","aria-label"],jt=y({__name:"NotFound",setup(e){const{site:t,theme:s}=C(),{localeLinks:n}=le({removeCurrent:!1}),o=M("/");return te(()=>{var i;const a=window.location.pathname.replace(t.value.base,"").replace(/(^.*?\/).*$/,"/$1");n.value.length&&(o.value=((i=n.value.find(({link:c})=>c.startsWith(a)))==null?void 0:i.link)||n.value[0].link)}),(a,i)=>{var c,h,f,m,$;return r(),u("div",Ht,[d("p",zt,T(((c=l(s).notFound)==null?void 0:c.code)??"404"),1),d("h1",xt,T(((h=l(s).notFound)==null?void 0:h.title)??"PAGE NOT FOUND"),1),Et,d("blockquote",Dt,T(((f=l(s).notFound)==null?void 0:f.quote)??"But if you don't change your direction, and if you keep looking, you may end up where you are heading."),1),d("div",Ot,[d("a",{class:"link",href:l(me)(o.value),"aria-label":((m=l(s).notFound)==null?void 0:m.linkLabel)??"go to home"},T((($=l(s).notFound)==null?void 0:$.linkText)??"Take me home"),9,Ft)])])}}}),Ut=k(jt,[["__scopeId","data-v-56f8922b"]]);function nt(e,t){if(Array.isArray(e))return he(e);if(e==null)return[];t=Le(t);const s=Object.keys(e).sort((o,a)=>a.split("/").length-o.split("/").length).find(o=>t.startsWith(Le(o))),n=s?e[s]:[];return Array.isArray(n)?he(n):he(n.items,n.base)}function qt(e){const t=[];let s=0;for(const n in e){const o=e[n];if(o.items){s=t.push(o);continue}t[s]||t.push({items:[]}),t[s].items.push(o)}return t}function Gt(e){const t=[];function s(n){for(const o of n)o.text&&o.link&&t.push({text:o.text,link:o.link,docFooterText:o.docFooterText}),o.items&&s(o.items)}return s(e),t}function Se(e,t){return Array.isArray(t)?t.some(s=>Se(e,s)):ee(e,t.link)?!0:t.items?Se(e,t.items):!1}function he(e,t){return[...e].map(s=>{const n={...s},o=n.base||t;return o&&n.link&&(n.link=o+n.link),n.items&&(n.items=he(n.items,o)),n})}function Y(){const{frontmatter:e,page:t,theme:s}=C(),n=Ve("(min-width: 960px)"),o=M(!1),a=V(()=>{const I=s.value.sidebar,S=t.value.relativePath;return I?nt(I,S):[]}),i=M(a.value);se(a,(I,S)=>{JSON.stringify(I)!==JSON.stringify(S)&&(i.value=a.value)});const c=V(()=>e.value.sidebar!==!1&&i.value.length>0&&e.value.layout!=="home"),h=V(()=>f?e.value.aside==null?s.value.aside==="left":e.value.aside==="left":!1),f=V(()=>e.value.layout==="home"?!1:e.value.aside!=null?!!e.value.aside:s.value.aside!==!1),m=V(()=>c.value&&n.value),$=V(()=>c.value?qt(i.value):[]);function L(){o.value=!0}function b(){o.value=!1}function P(){o.value?b():L()}return{isOpen:o,sidebar:i,sidebarGroups:$,hasSidebar:c,hasAside:f,leftAside:h,isSidebarEnabled:m,open:L,close:b,toggle:P}}function Rt(e,t){let s;ge(()=>{s=e.value?document.activeElement:void 0}),te(()=>{window.addEventListener("keyup",n)}),Ce(()=>{wLine truncated
|
||||
function __vite__mapDeps(indexes) {
|
||||
if (!__vite__mapDeps.viteFileDeps) {
|
||||
__vite__mapDeps.viteFileDeps = []
|
||||
}
|
||||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
||||
}
|
||||
Reference in new issue
Block a user