mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-16 09:36:16 -08:00
add tr.js
This commit is contained in:
1 parent
e71a683dfd
commit
c930bafd67
228 files changed
+3822
-2332
No files matched your search
@@ -0,0 +1,2 @@
|
||||
function Qn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const ee={},at=[],Ie=()=>{},Si=()=>!1,Ni=/^on[^a-z]/,Bt=e=>Ni.test(e),Gn=e=>e.startsWith("onUpdate:"),ie=Object.assign,es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$i=Object.prototype.hasOwnProperty,Y=(e,t)=>$i.call(e,t),N=Array.isArray,ut=e=>un(e)==="[object Map]",wr=e=>un(e)==="[object Set]",k=e=>typeof e=="function",se=e=>typeof e=="string",ts=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",Cr=e=>te(e)&&k(e.then)&&k(e.catch),xr=Object.prototype.toString,un=e=>xr.call(e),Hi=e=>un(e).slice(8,-1),Er=e=>un(e)==="[object Object]",ns=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,At=Qn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),dn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Bi=/-(\w)/g,Le=dn(e=>e.replace(Bi,(t,n)=>n?n.toUpperCase():"")),Ui=/\B([A-Z])/g,it=dn(e=>e.replace(Ui,"-$1").toLowerCase()),hn=dn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zt=dn(e=>e?`on${hn(e)}`:""),Mt=(e,t)=>!Object.is(e,t),Qt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},nn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},$n=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ji=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let Ts;const Hn=()=>Ts||(Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ss(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?Wi(s):ss(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(se(e))return e;if(te(e))return e}}const Di=/;(?![^(]*\))/g,Ki=/:([^]+)/,ki=/\/\*[^]*?\*\//g;function Wi(e){const t={};return e.replace(ki,"").split(Di).forEach(n=>{if(n){const s=n.split(Ki);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function rs(e){let t="";if(se(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const s=rs(e[n]);s&&(t+=s+" ")}else if(te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Vi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",qi=Qn(Vi);function vr(e){return!!e||e===""}const Bc=e=>se(e)?e:e==null?"":N(e)||te(e)&&(e.toString===xr||!k(e.toString))?JSON.stringify(e,Tr,2):String(e),Tr=(e,t)=>t&&t.__v_isRef?Tr(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:wr(t)?{[`Set(${t.size})`]:[...t.values()]}:te(t)&&!N(t)&&!Er(t)?String(t):t;let _e;class zi{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 r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Yi(e,t=_e){t&&t.active&&t.effects.push(e)}function Ji(){return _e}function Uc(e){_e&&_e.cleanups.push(e)}const is=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ar=e=>(e.w&Ve)>0,Pr=e=>(e.n&Ve)>0,Xi=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ve},Zi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Ar(r)&&!Pr(r)?r.delete(e):t[n++]=r,r.w&=~Ve,r.n&=~Ve}t.length=n}},Bn=new WeakMap;let vt=0,Ve=1;const Un=30;let Ae;const st=Symbol(""),jn=Symbol("");class os{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Yi(this,s)}run(){if(!this.active)return this.fn();let t=Ae,n=ke;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Ae,Ae=this,ke=!0,Ve=1<<++vt,vt<=Un?Xi(this):As(this),this.fn()}finally{vt<=Un&&Zi(this),Ve=1<<--vt,Ae=this.parent,ke=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ae===this?this.deferStop=!0:this.active&&(As(this),this.onStop&&this.onStop(),this.active=!1)}}function As(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let ke=!0;const Ir=[];function yt(){Ir.push(ke),ke=!1}function wt(){const e=Ir.pop();ke=e===void 0?!0:e}function pe(e,t,n){if(ke&&Ae){let s=Bn.get(e);s||Bn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=is()),Or(r)}}function Or(e,t){let n=!1;vt<=Un?Pr(e)||(e.n|=Ve,n=!Ar(e)):n=!e.has(Ae),n&&(e.add(Ae),Ae.deps.push(e))}function $e(e,t,n,s,r,i){const o=Bn.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&N(e)){const c=Number(s);o.forEach((a,d)=>{(d==="length"||d>=c)&&l.push(a)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":N(e)?ns(n)&&l.push(o.get("length")):(l.push(o.get(st)),ut(e)&&l.pushLine truncated
|
||||
`),l=l.slice(0,-1),o&&(l=l.replace(/^ *(\$|>) /gm,"").trim()),Mc(l).then(()=>{n.classList.add("copied"),clearTimeout(e.get(n));const c=setTimeout(()=>{n.classList.remove("copied"),n.blur(),e.delete(n)},2e3);e.set(n,c)})}})}}async function Mc(e){try{return navigator.clipboard.writeText(e)}catch{const t=document.createElement("textarea"),n=document.activeElement;t.value=e,t.setAttribute("readonly",""),t.style.contain="strict",t.style.position="absolute",t.style.left="-9999px",t.style.fontSize="12pt";const s=document.getSelection(),r=s?s.rangeCount>0&&s.getRangeAt(0):null;document.body.appendChild(t),t.select(),t.selectionStart=0,t.selectionEnd=e.length,document.execCommand("copy"),document.body.removeChild(t),r&&(s.removeAllRanges(),s.addRange(r)),n&&n.focus()}}function _f(e,t){let n=[],s=!0;const r=i=>{if(s){s=!1;return}n.forEach(o=>document.head.removeChild(o)),n=[],i.forEach(o=>{const l=yr(o);document.head.appendChild(l),n.push(l)})};Ko(()=>{const i=e.data,o=t.value,l=i&&i.description,c=i&&i.frontmatter.head||[];document.title=Ii(o,i);const a=l||o.description;let d=document.querySelector("meta[name=description]");d?d.setAttribute("content",a):yr(["meta",{name:"description",content:a}]),r(Oi(o.head,Sc(c)))})}function yr([e,t,n]){const s=document.createElement(e);for(const r in t)s.setAttribute(r,t[r]);return n&&(s.innerHTML=n),s}function Lc(e){return e[0]==="meta"&&e[1]&&e[1].name==="description"}function Sc(e){return e.filter(t=>!Lc(t))}const Nn=new Set,Ri=()=>document.createElement("link"),Nc=e=>{const t=Ri();t.rel="prefetch",t.href=e,document.head.appendChild(t)},$c=e=>{const t=new XMLHttpRequest;t.open("GET",e,t.withCredentials=!0),t.send()};let Xt;const Hc=Ce&&(Xt=Ri())&&Xt.relList&&Xt.relList.supports&&Xt.relList.supports("prefetch")?Nc:$c;function bf(){if(!Ce||!window.IntersectionObserver)return;let e;if((e=navigator.connection)&&(e.saveData||/2g/.test(e.effectiveType)))return;const t=window.requestIdleCallback||setTimeout;let n=null;const s=()=>{n&&n.disconnect(),n=new IntersectionObserver(i=>{i.forEach(o=>{if(o.isIntersecting){const l=o.target;n.unobserve(l);const{pathname:c}=l;if(!Nn.has(c)){Nn.add(c);const a=Ic(c);a&&Hc(a)}}})}),t(()=>{document.querySelectorAll("#app a").forEach(i=>{const{hostname:o,pathname:l}=new URL(i.href instanceof SVGAnimatedString?i.href.animVal:i.href,i.baseURI),c=l.match(/\.\w+$/);c&&c[0]!==".html"||i.target!=="_blank"&&o===location.hostname&&(l!==location.pathname?n.observe(i):Nn.add(l))})})};xn(s);const r=Fi();Gt(()=>r.path,s),En(()=>{n&&n.disconnect()})}export{ef as $,Ce as A,En as B,Kc as C,Qo as D,Wc as E,he as F,qc as G,vo as H,uf as I,ce as J,Vc as K,Ti as L,Fi as M,Il as N,gt as O,cf as P,ss as Q,Wr as R,Qc as S,Ei as T,ff as U,$r as V,lf as W,kc as X,sf as Y,tf as Z,of as _,bi as a,Xc as a0,dl as a1,nf as a2,Yc as a3,Jc as a4,_f as a5,Oc as a6,af as a7,Tc as a8,hf as a9,pf as aa,nt as ab,rf as ac,df as ad,Ic as ae,bf as af,mf as ag,gf as ah,Xn as ai,gi as b,Zc as c,Gr as d,Gc as e,hr as f,ve as g,jr as h,yc as i,xn as j,_i as k,Ao as l,Dc as m,rs as n,hi as o,jc as p,Ji as q,zc as r,Uc as s,Bc as t,Ac as u,Gt as v,$o as w,Ko as x,yi as y,bc as z};
|
||||
Reference in new issue
Block a user