@huyooo/file-explorer-preview 0.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-DeGaGPLP.js +24 -0
- package/dist/assets/style-CLLWaNtJ.css +1 -0
- package/dist/index.html +18 -0
- package/dist/path.cjs +43 -0
- package/dist/path.d.cts +13 -0
- package/dist/path.d.ts +13 -0
- package/dist/path.js +24 -0
- package/package.json +50 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/**
|
|
2
|
+
* @vue/shared v3.5.25
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function Os(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const le={},Rt=[],Ze=()=>{},Gi=()=>!1,Hn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Rs=e=>e.startsWith("onUpdate:"),me=Object.assign,$s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Er=Object.prototype.hasOwnProperty,ie=(e,t)=>Er.call(e,t),q=Array.isArray,$t=e=>Bn(e)==="[object Map]",Xi=e=>Bn(e)==="[object Set]",G=e=>typeof e=="function",pe=e=>typeof e=="string",yt=e=>typeof e=="symbol",ue=e=>e!==null&&typeof e=="object",Ji=e=>(ue(e)||G(e))&&G(e.then)&&G(e.catch),Qi=Object.prototype.toString,Bn=e=>Qi.call(e),kr=e=>Bn(e).slice(8,-1),Zi=e=>Bn(e)==="[object Object]",Ds=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qt=Os(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ir=/-\w/g,Be=Vn(e=>e.replace(Ir,t=>t.slice(1).toUpperCase())),Mr=/\B([A-Z])/g,Lt=Vn(e=>e.replace(Mr,"-$1").toLowerCase()),Un=Vn(e=>e.charAt(0).toUpperCase()+e.slice(1)),es=Vn(e=>e?`on${Un(e)}`:""),mt=(e,t)=>!Object.is(e,t),ts=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},eo=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Ar=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Lr=e=>{const t=pe(e)?Number(e):NaN;return isNaN(t)?e:t};let si;const Wn=()=>si||(si=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ve(e){if(q(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=pe(s)?$r(s):Ve(s);if(i)for(const o in i)t[o]=i[o]}return t}else if(pe(e)||ue(e))return e}const Fr=/;(?![^(]*\))/g,Or=/:([^]+)/,Rr=/\/\*[^]*?\*\//g;function $r(e){const t={};return e.replace(Rr,"").split(Fr).forEach(n=>{if(n){const s=n.split(Or);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ae(e){let t="";if(pe(e))t=e;else if(q(e))for(let n=0;n<e.length;n++){const s=Ae(e[n]);s&&(t+=s+" ")}else if(ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Dr="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Nr=Os(Dr);function to(e){return!!e||e===""}const no=e=>!!(e&&e.__v_isRef===!0),De=e=>pe(e)?e:e==null?"":q(e)||ue(e)&&(e.toString===Qi||!G(e.toString))?no(e)?De(e.value):JSON.stringify(e,so,2):String(e),so=(e,t)=>no(t)?so(e,t.value):$t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[ns(s,o)+" =>"]=i,n),{})}:Xi(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ns(n))}:yt(t)?ns(t):ue(t)&&!q(t)&&!Zi(t)?String(t):t,ns=(e,t="")=>{var n;return yt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.25
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Me;class jr{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Me,!t&&Me&&(this.index=(Me.scopes||(Me.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Me;try{return Me=this,t()}finally{Me=n}}}on(){++this._on===1&&(this.prevScope=Me,Me=this)}off(){this._on>0&&--this._on===0&&(Me=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=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}}}function Hr(){return Me}let ce;const ss=new WeakSet;class io{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Me&&Me.active&&Me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ss.has(this)&&(ss.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ro(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ii(this),lo(this);const t=ce,n=Ue;ce=this,Ue=!0;try{return this.fn()}finally{co(this),ce=t,Ue=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Hs(t);this.deps=this.depsTail=void 0,ii(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ss.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ms(this)&&this.run()}get dirty(){return ms(this)}}let oo=0,Zt,en;function ro(e,t=!1){if(e.flags|=8,t){e.next=en,en=e;return}e.next=Zt,Zt=e}function Ns(){oo++}function js(){if(--oo>0)return;if(en){let t=en;for(en=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Zt;){let t=Zt;for(Zt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function lo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function co(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),Hs(s),Br(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function ms(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(uo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function uo(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===rn)||(e.globalVersion=rn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ms(e))))return;e.flags|=2;const t=e.dep,n=ce,s=Ue;ce=e,Ue=!0;try{lo(e);const i=e.fn(e._value);(t.version===0||mt(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ce=n,Ue=s,co(e),e.flags&=-3}}function Hs(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Hs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Br(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ue=!0;const ao=[];function lt(){ao.push(Ue),Ue=!1}function ct(){const e=ao.pop();Ue=e===void 0?!0:e}function ii(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=ce;ce=void 0;try{t()}finally{ce=n}}}let rn=0;class Vr{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ce||!Ue||ce===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ce)n=this.activeLink=new Vr(ce,this),ce.deps?(n.prevDep=ce.depsTail,ce.depsTail.nextDep=n,ce.depsTail=n):ce.deps=ce.depsTail=n,fo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=ce.depsTail,n.nextDep=void 0,ce.depsTail.nextDep=n,ce.depsTail=n,ce.deps===n&&(ce.deps=s)}return n}trigger(t){this.version++,rn++,this.notify(t)}notify(t){Ns();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{js()}}}function fo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)fo(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const vs=new WeakMap,It=Symbol(""),ys=Symbol(""),ln=Symbol("");function _e(e,t,n){if(Ue&&ce){let s=vs.get(e);s||vs.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new Bs),i.map=s,i.key=n),i.track()}}function ot(e,t,n,s,i,o){const r=vs.get(e);if(!r){rn++;return}const l=c=>{c&&c.trigger()};if(Ns(),t==="clear")r.forEach(l);else{const c=q(e),a=c&&Ds(n);if(c&&n==="length"){const u=Number(s);r.forEach((d,p)=>{(p==="length"||p===ln||!yt(p)&&p>=u)&&l(d)})}else switch((n!==void 0||r.has(void 0))&&l(r.get(n)),a&&l(r.get(ln)),t){case"add":c?a&&l(r.get("length")):(l(r.get(It)),$t(e)&&l(r.get(ys)));break;case"delete":c||(l(r.get(It)),$t(e)&&l(r.get(ys)));break;case"set":$t(e)&&l(r.get(It));break}}js()}function Ft(e){const t=te(e);return t===e?t:(_e(t,"iterate",ln),He(e)?t:t.map(We))}function zn(e){return _e(e=te(e),"iterate",ln),e}function ht(e,t){return ut(e)?Mt(e)?jt(We(t)):jt(t):We(t)}const Ur={__proto__:null,[Symbol.iterator](){return is(this,Symbol.iterator,e=>ht(this,e))},concat(...e){return Ft(this).concat(...e.map(t=>q(t)?Ft(t):t))},entries(){return is(this,"entries",e=>(e[1]=ht(this,e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(s=>ht(this,s)),arguments)},find(e,t){return tt(this,"find",e,t,n=>ht(this,n),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,n=>ht(this,n),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return os(this,"includes",e)},indexOf(...e){return os(this,"indexOf",e)},join(e){return Ft(this).join(e)},lastIndexOf(...e){return os(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return Kt(this,"pop")},push(...e){return Kt(this,"push",e)},reduce(e,...t){return oi(this,"reduce",e,t)},reduceRight(e,...t){return oi(this,"reduceRight",e,t)},shift(){return Kt(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return Kt(this,"splice",e)},toReversed(){return Ft(this).toReversed()},toSorted(e){return Ft(this).toSorted(e)},toSpliced(...e){return Ft(this).toSpliced(...e)},unshift(...e){return Kt(this,"unshift",e)},values(){return is(this,"values",e=>ht(this,e))}};function is(e,t,n){const s=zn(e),i=s[t]();return s!==e&&!He(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Wr=Array.prototype;function tt(e,t,n,s,i,o){const r=zn(e),l=r!==e&&!He(e),c=r[t];if(c!==Wr[t]){const d=c.apply(e,o);return l?We(d):d}let a=n;r!==e&&(l?a=function(d,p){return n.call(this,ht(e,d),p,e)}:n.length>2&&(a=function(d,p){return n.call(this,d,p,e)}));const u=c.call(r,a,s);return l&&i?i(u):u}function oi(e,t,n,s){const i=zn(e);let o=n;return i!==e&&(He(e)?n.length>3&&(o=function(r,l,c){return n.call(this,r,l,c,e)}):o=function(r,l,c){return n.call(this,r,ht(e,l),c,e)}),i[t](o,...s)}function os(e,t,n){const s=te(e);_e(s,"iterate",ln);const i=s[t](...n);return(i===-1||i===!1)&&zs(n[0])?(n[0]=te(n[0]),s[t](...n)):i}function Kt(e,t,n=[]){lt(),Ns();const s=te(e)[t].apply(e,n);return js(),ct(),s}const zr=Os("__proto__,__v_isRef,__isVue"),ho=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(yt));function Kr(e){yt(e)||(e=String(e));const t=te(this);return _e(t,"has",e),t.hasOwnProperty(e)}class po{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?nl:yo:o?vo:mo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=q(t);if(!i){let c;if(r&&(c=Ur[n]))return c;if(n==="hasOwnProperty")return Kr}const l=Reflect.get(t,n,we(t)?t:s);if((yt(n)?ho.has(n):zr(n))||(i||_e(t,"get",n),o))return l;if(we(l)){const c=r&&Ds(n)?l:l.value;return i&&ue(c)?_s(c):c}return ue(l)?i?_s(l):Us(l):l}}class go extends po{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];const r=q(t)&&Ds(n);if(!this._isShallow){const a=ut(o);if(!He(s)&&!ut(s)&&(o=te(o),s=te(s)),!r&&we(o)&&!we(s))return a||(o.value=s),!0}const l=r?Number(n)<t.length:ie(t,n),c=Reflect.set(t,n,s,we(t)?t:i);return t===te(i)&&(l?mt(s,o)&&ot(t,"set",n,s):ot(t,"add",n,s)),c}deleteProperty(t,n){const s=ie(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&ot(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!yt(n)||!ho.has(n))&&_e(t,"has",n),s}ownKeys(t){return _e(t,"iterate",q(t)?"length":It),Reflect.ownKeys(t)}}class qr extends po{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Yr=new go,Gr=new qr,Xr=new go(!0);const bs=e=>e,bn=e=>Reflect.getPrototypeOf(e);function Jr(e,t,n){return function(...s){const i=this.__v_raw,o=te(i),r=$t(o),l=e==="entries"||e===Symbol.iterator&&r,c=e==="keys"&&r,a=i[e](...s),u=n?bs:t?jt:We;return!t&&_e(o,"iterate",c?ys:It),{next(){const{value:d,done:p}=a.next();return p?{value:d,done:p}:{value:l?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function _n(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qr(e,t){const n={get(i){const o=this.__v_raw,r=te(o),l=te(i);e||(mt(i,l)&&_e(r,"get",i),_e(r,"get",l));const{has:c}=bn(r),a=t?bs:e?jt:We;if(c.call(r,i))return a(o.get(i));if(c.call(r,l))return a(o.get(l));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&_e(te(i),"iterate",It),i.size},has(i){const o=this.__v_raw,r=te(o),l=te(i);return e||(mt(i,l)&&_e(r,"has",i),_e(r,"has",l)),i===l?o.has(i):o.has(i)||o.has(l)},forEach(i,o){const r=this,l=r.__v_raw,c=te(l),a=t?bs:e?jt:We;return!e&&_e(c,"iterate",It),l.forEach((u,d)=>i.call(o,a(u),a(d),r))}};return me(n,e?{add:_n("add"),set:_n("set"),delete:_n("delete"),clear:_n("clear")}:{add(i){!t&&!He(i)&&!ut(i)&&(i=te(i));const o=te(this);return bn(o).has.call(o,i)||(o.add(i),ot(o,"add",i,i)),this},set(i,o){!t&&!He(o)&&!ut(o)&&(o=te(o));const r=te(this),{has:l,get:c}=bn(r);let a=l.call(r,i);a||(i=te(i),a=l.call(r,i));const u=c.call(r,i);return r.set(i,o),a?mt(o,u)&&ot(r,"set",i,o):ot(r,"add",i,o),this},delete(i){const o=te(this),{has:r,get:l}=bn(o);let c=r.call(o,i);c||(i=te(i),c=r.call(o,i)),l&&l.call(o,i);const a=o.delete(i);return c&&ot(o,"delete",i,void 0),a},clear(){const i=te(this),o=i.size!==0,r=i.clear();return o&&ot(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Jr(i,e,t)}),n}function Vs(e,t){const n=Qr(e,t);return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(ie(n,i)&&i in s?n:s,i,o)}const Zr={get:Vs(!1,!1)},el={get:Vs(!1,!0)},tl={get:Vs(!0,!1)};const mo=new WeakMap,vo=new WeakMap,yo=new WeakMap,nl=new WeakMap;function sl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function il(e){return e.__v_skip||!Object.isExtensible(e)?0:sl(kr(e))}function Us(e){return ut(e)?e:Ws(e,!1,Yr,Zr,mo)}function ol(e){return Ws(e,!1,Xr,el,vo)}function _s(e){return Ws(e,!0,Gr,tl,yo)}function Ws(e,t,n,s,i){if(!ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=il(e);if(o===0)return e;const r=i.get(e);if(r)return r;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function Mt(e){return ut(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function He(e){return!!(e&&e.__v_isShallow)}function zs(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function rl(e){return!ie(e,"__v_skip")&&Object.isExtensible(e)&&eo(e,"__v_skip",!0),e}const We=e=>ue(e)?Us(e):e,jt=e=>ue(e)?_s(e):e;function we(e){return e?e.__v_isRef===!0:!1}function z(e){return bo(e,!1)}function ll(e){return bo(e,!0)}function bo(e,t){return we(e)?e:new cl(e,t)}class cl{constructor(t,n){this.dep=new Bs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:We(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||He(t)||ut(t);t=s?t:te(t),mt(t,n)&&(this._rawValue=t,this._value=s?t:We(t),this.dep.trigger())}}function C(e){return we(e)?e.value:e}const ul={get:(e,t,n)=>t==="__v_raw"?e:C(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return we(i)&&!we(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function _o(e){return Mt(e)?e:new Proxy(e,ul)}class al{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=rn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&ce!==this)return ro(this,!0),!0}get value(){const t=this.dep.track();return uo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fl(e,t,n=!1){let s,i;return G(e)?s=e:(s=e.get,i=e.set),new al(s,i,n)}const xn={},In=new WeakMap;let Et;function dl(e,t=!1,n=Et){if(n){let s=In.get(n);s||In.set(n,s=[]),s.push(e)}}function hl(e,t,n=le){const{immediate:s,deep:i,once:o,scheduler:r,augmentJob:l,call:c}=n,a=A=>i?A:He(A)||i===!1||i===0?rt(A,1):rt(A);let u,d,p,v,T=!1,S=!1;if(we(e)?(d=()=>e.value,T=He(e)):Mt(e)?(d=()=>a(e),T=!0):q(e)?(S=!0,T=e.some(A=>Mt(A)||He(A)),d=()=>e.map(A=>{if(we(A))return A.value;if(Mt(A))return a(A);if(G(A))return c?c(A,2):A()})):G(e)?t?d=c?()=>c(e,2):e:d=()=>{if(p){lt();try{p()}finally{ct()}}const A=Et;Et=u;try{return c?c(e,3,[v]):e(v)}finally{Et=A}}:d=Ze,t&&i){const A=d,W=i===!0?1/0:i;d=()=>rt(A(),W)}const m=Hr(),I=()=>{u.stop(),m&&m.active&&$s(m.effects,u)};if(o&&t){const A=t;t=(...W)=>{A(...W),I()}}let j=S?new Array(e.length).fill(xn):xn;const H=A=>{if(!(!(u.flags&1)||!u.dirty&&!A))if(t){const W=u.run();if(i||T||(S?W.some(($,J)=>mt($,j[J])):mt(W,j))){p&&p();const $=Et;Et=u;try{const J=[W,j===xn?void 0:S&&j[0]===xn?[]:j,v];j=W,c?c(t,3,J):t(...J)}finally{Et=$}}}else u.run()};return l&&l(H),u=new io(d),u.scheduler=r?()=>r(H,!1):H,v=A=>dl(A,!1,u),p=u.onStop=()=>{const A=In.get(u);if(A){if(c)c(A,4);else for(const W of A)W();In.delete(u)}},t?s?H(!0):j=u.run():r?r(H.bind(null,!0),!0):u.run(),I.pause=u.pause.bind(u),I.resume=u.resume.bind(u),I.stop=I,I}function rt(e,t=1/0,n){if(t<=0||!ue(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,we(e))rt(e.value,t,n);else if(q(e))for(let s=0;s<e.length;s++)rt(e[s],t,n);else if(Xi(e)||$t(e))e.forEach(s=>{rt(s,t,n)});else if(Zi(e)){for(const s in e)rt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&rt(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.25
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function gn(e,t,n,s){try{return s?e(...s):e()}catch(i){Kn(i,t,n)}}function ze(e,t,n,s){if(G(e)){const i=gn(e,t,n,s);return i&&Ji(i)&&i.catch(o=>{Kn(o,t,n)}),i}if(q(e)){const i=[];for(let o=0;o<e.length;o++)i.push(ze(e[o],t,n,s));return i}}function Kn(e,t,n,s=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||le;if(t){let l=t.parent;const c=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,c,a)===!1)return}l=l.parent}if(o){lt(),gn(o,null,10,[e,c,a]),ct();return}}pl(e,n,i,s,r)}function pl(e,t,n,s=!0,i=!1){if(i)throw e;console.error(e)}const Se=[];let Je=-1;const Dt=[];let pt=null,Ot=0;const xo=Promise.resolve();let Mn=null;function wo(e){const t=Mn||xo;return e?t.then(this?e.bind(this):e):t}function gl(e){let t=Je+1,n=Se.length;for(;t<n;){const s=t+n>>>1,i=Se[s],o=cn(i);o<e||o===e&&i.flags&2?t=s+1:n=s}return t}function Ks(e){if(!(e.flags&1)){const t=cn(e),n=Se[Se.length-1];!n||!(e.flags&2)&&t>=cn(n)?Se.push(e):Se.splice(gl(t),0,e),e.flags|=1,Co()}}function Co(){Mn||(Mn=xo.then(So))}function ml(e){q(e)?Dt.push(...e):pt&&e.id===-1?pt.splice(Ot+1,0,e):e.flags&1||(Dt.push(e),e.flags|=1),Co()}function ri(e,t,n=Je+1){for(;n<Se.length;n++){const s=Se[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Se.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function To(e){if(Dt.length){const t=[...new Set(Dt)].sort((n,s)=>cn(n)-cn(s));if(Dt.length=0,pt){pt.push(...t);return}for(pt=t,Ot=0;Ot<pt.length;Ot++){const n=pt[Ot];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}pt=null,Ot=0}}const cn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function So(e){try{for(Je=0;Je<Se.length;Je++){const t=Se[Je];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Je<Se.length;Je++){const t=Se[Je];t&&(t.flags&=-2)}Je=-1,Se.length=0,To(),Mn=null,(Se.length||Dt.length)&&So()}}let Re=null,Po=null;function An(e){const t=Re;return Re=e,Po=e&&e.type.__scopeId||null,t}function Vt(e,t=Re,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&On(-1);const o=An(t);let r;try{r=e(...i)}finally{An(o),s._d&&On(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Eo(e,t){if(Re===null)return e;const n=Jn(Re),s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,l,c=le]=t[i];o&&(G(o)&&(o={mounted:o,updated:o}),o.deep&&rt(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:l,modifiers:c}))}return e}function Ct(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const l=i[r];o&&(l.oldValue=o[r].value);let c=l.dir[s];c&&(lt(),ze(c,n,8,[e.el,l,e,t]),ct())}}const vl=Symbol("_vte"),ko=e=>e.__isTeleport,it=Symbol("_leaveCb"),wn=Symbol("_enterCb");function yl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qe(()=>{e.isMounted=!0}),$o(()=>{e.isUnmounting=!0}),e}const Ne=[Function,Array],Io={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ne,onEnter:Ne,onAfterEnter:Ne,onEnterCancelled:Ne,onBeforeLeave:Ne,onLeave:Ne,onAfterLeave:Ne,onLeaveCancelled:Ne,onBeforeAppear:Ne,onAppear:Ne,onAfterAppear:Ne,onAppearCancelled:Ne},Mo=e=>{const t=e.subTree;return t.component?Mo(t.component):t},bl={name:"BaseTransition",props:Io,setup(e,{slots:t}){const n=ir(),s=yl();return()=>{const i=t.default&&Fo(t.default(),!0);if(!i||!i.length)return;const o=Ao(i),r=te(e),{mode:l}=r;if(s.isLeaving)return rs(o);const c=li(o);if(!c)return rs(o);let a=xs(c,r,s,n,d=>a=d);c.type!==Ee&&un(c,a);let u=n.subTree&&li(n.subTree);if(u&&u.type!==Ee&&!kt(u,c)&&Mo(n).type!==Ee){let d=xs(u,r,s,n);if(un(u,d),l==="out-in"&&c.type!==Ee)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},rs(o);l==="in-out"&&c.type!==Ee?d.delayLeave=(p,v,T)=>{const S=Lo(s,u);S[String(u.key)]=u,p[it]=()=>{v(),p[it]=void 0,delete a.delayedLeave,u=void 0},a.delayedLeave=()=>{T(),delete a.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Ao(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ee){t=n;break}}return t}const _l=bl;function Lo(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function xs(e,t,n,s,i){const{appear:o,mode:r,persisted:l=!1,onBeforeEnter:c,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:p,onLeave:v,onAfterLeave:T,onLeaveCancelled:S,onBeforeAppear:m,onAppear:I,onAfterAppear:j,onAppearCancelled:H}=t,A=String(e.key),W=Lo(n,e),$=(V,K)=>{V&&ze(V,s,9,K)},J=(V,K)=>{const se=K[1];$(V,K),q(V)?V.every(O=>O.length<=1)&&se():V.length<=1&&se()},ne={mode:r,persisted:l,beforeEnter(V){let K=c;if(!n.isMounted)if(o)K=m||c;else return;V[it]&&V[it](!0);const se=W[A];se&&kt(e,se)&&se.el[it]&&se.el[it](),$(K,[V])},enter(V){let K=a,se=u,O=d;if(!n.isMounted)if(o)K=I||a,se=j||u,O=H||d;else return;let Q=!1;const ae=V[wn]=he=>{Q||(Q=!0,he?$(O,[V]):$(se,[V]),ne.delayedLeave&&ne.delayedLeave(),V[wn]=void 0)};K?J(K,[V,ae]):ae()},leave(V,K){const se=String(e.key);if(V[wn]&&V[wn](!0),n.isUnmounting)return K();$(p,[V]);let O=!1;const Q=V[it]=ae=>{O||(O=!0,K(),ae?$(S,[V]):$(T,[V]),V[it]=void 0,W[se]===e&&delete W[se])};W[se]=e,v?J(v,[V,Q]):Q()},clone(V){const K=xs(V,t,n,s,i);return i&&i(K),K}};return ne}function rs(e){if(qn(e))return e=vt(e),e.children=null,e}function li(e){if(!qn(e))return ko(e.type)&&e.children?Ao(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&G(n.default))return n.default()}}function un(e,t){e.shapeFlag&6&&e.component?(e.transition=t,un(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Fo(e,t=!1,n){let s=[],i=0;for(let o=0;o<e.length;o++){let r=e[o];const l=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===je?(r.patchFlag&128&&i++,s=s.concat(Fo(r.children,t,l))):(t||r.type!==Ee)&&s.push(l!=null?vt(r,{key:l}):r)}if(i>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function Ke(e,t){return G(e)?me({name:e.name},t,{setup:e}):e}function Oo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Ln=new WeakMap;function tn(e,t,n,s,i=!1){if(q(e)){e.forEach((T,S)=>tn(T,t&&(q(t)?t[S]:t),n,s,i));return}if(nn(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&tn(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Jn(s.component):s.el,r=i?null:o,{i:l,r:c}=e,a=t&&t.r,u=l.refs===le?l.refs={}:l.refs,d=l.setupState,p=te(d),v=d===le?Gi:T=>ie(p,T);if(a!=null&&a!==c){if(ci(t),pe(a))u[a]=null,v(a)&&(d[a]=null);else if(we(a)){a.value=null;const T=t;T.k&&(u[T.k]=null)}}if(G(c))gn(c,l,12,[r,u]);else{const T=pe(c),S=we(c);if(T||S){const m=()=>{if(e.f){const I=T?v(c)?d[c]:u[c]:c.value;if(i)q(I)&&$s(I,o);else if(q(I))I.includes(o)||I.push(o);else if(T)u[c]=[o],v(c)&&(d[c]=u[c]);else{const j=[o];c.value=j,e.k&&(u[e.k]=j)}}else T?(u[c]=r,v(c)&&(d[c]=r)):S&&(c.value=r,e.k&&(u[e.k]=r))};if(r){const I=()=>{m(),Ln.delete(e)};I.id=-1,Ln.set(e,I),Oe(I,n)}else ci(e),m()}}}function ci(e){const t=Ln.get(e);t&&(t.flags|=8,Ln.delete(e))}Wn().requestIdleCallback;Wn().cancelIdleCallback;const nn=e=>!!e.type.__asyncLoader,qn=e=>e.type.__isKeepAlive;function xl(e,t){Ro(e,"a",t)}function wl(e,t){Ro(e,"da",t)}function Ro(e,t,n=xe){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Yn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)qn(i.parent.vnode)&&Cl(s,t,n,i),i=i.parent}}function Cl(e,t,n,s){const i=Yn(t,e,s,!0);Ye(()=>{$s(s[t],i)},n)}function Yn(e,t,n=xe,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{lt();const l=mn(n),c=ze(t,n,e,r);return l(),ct(),c});return s?i.unshift(o):i.push(o),o}}const at=e=>(t,n=xe)=>{(!fn||e==="sp")&&Yn(e,(...s)=>t(...s),n)},Tl=at("bm"),qe=at("m"),Sl=at("bu"),Pl=at("u"),$o=at("bum"),Ye=at("um"),El=at("sp"),kl=at("rtg"),Il=at("rtc");function Ml(e,t=xe){Yn("ec",e,t)}const Al="components",Do=Symbol.for("v-ndc");function Ll(e){return pe(e)?Fl(Al,e,!1)||e:e||Do}function Fl(e,t,n=!0,s=!1){const i=Re||xe;if(i){const o=i.type;{const l=wc(o,!1);if(l&&(l===t||l===Be(t)||l===Un(Be(t))))return o}const r=ui(i[e]||o[e],t)||ui(i.appContext[e],t);return!r&&s?o:r}}function ui(e,t){return e&&(e[t]||e[Be(t)]||e[Un(Be(t))])}function No(e,t,n,s){let i;const o=n,r=q(e);if(r||pe(e)){const l=r&&Mt(e);let c=!1,a=!1;l&&(c=!He(e),a=ut(e),e=zn(e)),i=new Array(e.length);for(let u=0,d=e.length;u<d;u++)i[u]=t(c?a?jt(We(e[u])):We(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,o)}else if(ue(e))if(e[Symbol.iterator])i=Array.from(e,(l,c)=>t(l,c,void 0,o));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,a=l.length;c<a;c++){const u=l[c];i[c]=t(e[u],u,c,o)}}else i=[];return i}const ws=e=>e?or(e)?Jn(e):ws(e.parent):null,sn=me(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ws(e.parent),$root:e=>ws(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ho(e),$forceUpdate:e=>e.f||(e.f=()=>{Ks(e.update)}),$nextTick:e=>e.n||(e.n=wo.bind(e.proxy)),$watch:e=>zl.bind(e)}),ls=(e,t)=>e!==le&&!e.__isScriptSetup&&ie(e,t),Ol={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:l,appContext:c}=e;if(t[0]!=="$"){const p=r[t];if(p!==void 0)switch(p){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(ls(s,t))return r[t]=1,s[t];if(i!==le&&ie(i,t))return r[t]=2,i[t];if(ie(o,t))return r[t]=3,o[t];if(n!==le&&ie(n,t))return r[t]=4,n[t];Cs&&(r[t]=0)}}const a=sn[t];let u,d;if(a)return t==="$attrs"&&_e(e.attrs,"get",""),a(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==le&&ie(n,t))return r[t]=4,n[t];if(d=c.config.globalProperties,ie(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return ls(i,t)?(i[t]=n,!0):s!==le&&ie(s,t)?(s[t]=n,!0):ie(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,props:o,type:r}},l){let c;return!!(n[l]||e!==le&&l[0]!=="$"&&ie(e,l)||ls(t,l)||ie(o,l)||ie(s,l)||ie(sn,l)||ie(i.config.globalProperties,l)||(c=r.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ie(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ai(e){return q(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cs=!0;function Rl(e){const t=Ho(e),n=e.proxy,s=e.ctx;Cs=!1,t.beforeCreate&&fi(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:l,provide:c,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:v,updated:T,activated:S,deactivated:m,beforeDestroy:I,beforeUnmount:j,destroyed:H,unmounted:A,render:W,renderTracked:$,renderTriggered:J,errorCaptured:ne,serverPrefetch:V,expose:K,inheritAttrs:se,components:O,directives:Q,filters:ae}=t;if(a&&$l(a,s,null),r)for(const N in r){const U=r[N];G(U)&&(s[N]=U.bind(n))}if(i){const N=i.call(n,n);ue(N)&&(e.data=Us(N))}if(Cs=!0,o)for(const N in o){const U=o[N],R=G(U)?U.bind(n,n):G(U.get)?U.get.bind(n,n):Ze,fe=!G(U)&&G(U.set)?U.set.bind(n):Ze,ve=ge({get:R,set:fe});Object.defineProperty(s,N,{enumerable:!0,configurable:!0,get:()=>ve.value,set:Ce=>ve.value=Ce})}if(l)for(const N in l)jo(l[N],s,n,N);if(c){const N=G(c)?c.call(n):c;Reflect.ownKeys(N).forEach(U=>{Vl(U,N[U])})}u&&fi(u,e,"c");function D(N,U){q(U)?U.forEach(R=>N(R.bind(n))):U&&N(U.bind(n))}if(D(Tl,d),D(qe,p),D(Sl,v),D(Pl,T),D(xl,S),D(wl,m),D(Ml,ne),D(Il,$),D(kl,J),D($o,j),D(Ye,A),D(El,V),q(K))if(K.length){const N=e.exposed||(e.exposed={});K.forEach(U=>{Object.defineProperty(N,U,{get:()=>n[U],set:R=>n[U]=R,enumerable:!0})})}else e.exposed||(e.exposed={});W&&e.render===Ze&&(e.render=W),se!=null&&(e.inheritAttrs=se),O&&(e.components=O),Q&&(e.directives=Q),V&&Oo(e)}function $l(e,t,n=Ze){q(e)&&(e=Ts(e));for(const s in e){const i=e[s];let o;ue(i)?"default"in i?o=Cn(i.from||s,i.default,!0):o=Cn(i.from||s):o=Cn(i),we(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function fi(e,t,n){ze(q(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function jo(e,t,n,s){let i=s.includes(".")?Uo(n,s):()=>n[s];if(pe(e)){const o=t[e];G(o)&&At(i,o)}else if(G(e))At(i,e.bind(n));else if(ue(e))if(q(e))e.forEach(o=>jo(o,t,n,s));else{const o=G(e.handler)?e.handler.bind(n):t[e.handler];G(o)&&At(i,o,e)}}function Ho(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!n&&!s?c=t:(c={},i.length&&i.forEach(a=>Fn(c,a,r,!0)),Fn(c,t,r)),ue(t)&&o.set(t,c),c}function Fn(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&Fn(e,o,n,!0),i&&i.forEach(r=>Fn(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const l=Dl[r]||n&&n[r];e[r]=l?l(e[r],t[r]):t[r]}return e}const Dl={data:di,props:hi,emits:hi,methods:Jt,computed:Jt,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:Jt,directives:Jt,watch:jl,provide:di,inject:Nl};function di(e,t){return t?e?function(){return me(G(e)?e.call(this,this):e,G(t)?t.call(this,this):t)}:t:e}function Nl(e,t){return Jt(Ts(e),Ts(t))}function Ts(e){if(q(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Te(e,t){return e?[...new Set([].concat(e,t))]:t}function Jt(e,t){return e?me(Object.create(null),e,t):t}function hi(e,t){return e?q(e)&&q(t)?[...new Set([...e,...t])]:me(Object.create(null),ai(e),ai(t??{})):t}function jl(e,t){if(!e)return t;if(!t)return e;const n=me(Object.create(null),e);for(const s in t)n[s]=Te(e[s],t[s]);return n}function Bo(){return{app:null,config:{isNativeTag:Gi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Hl=0;function Bl(e,t){return function(s,i=null){G(s)||(s=me({},s)),i!=null&&!ue(i)&&(i=null);const o=Bo(),r=new WeakSet,l=[];let c=!1;const a=o.app={_uid:Hl++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:Tc,get config(){return o.config},set config(u){},use(u,...d){return r.has(u)||(u&&G(u.install)?(r.add(u),u.install(a,...d)):G(u)&&(r.add(u),u(a,...d))),a},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),a},component(u,d){return d?(o.components[u]=d,a):o.components[u]},directive(u,d){return d?(o.directives[u]=d,a):o.directives[u]},mount(u,d,p){if(!c){const v=a._ceVNode||Z(s,i);return v.appContext=o,p===!0?p="svg":p===!1&&(p=void 0),e(v,u,p),c=!0,a._container=u,u.__vue_app__=a,Jn(v.component)}},onUnmount(u){l.push(u)},unmount(){c&&(ze(l,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(u,d){return o.provides[u]=d,a},runWithContext(u){const d=Nt;Nt=a;try{return u()}finally{Nt=d}}};return a}}let Nt=null;function Vl(e,t){if(xe){let n=xe.provides;const s=xe.parent&&xe.parent.provides;s===n&&(n=xe.provides=Object.create(s)),n[e]=t}}function Cn(e,t,n=!1){const s=ir();if(s||Nt){let i=Nt?Nt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&G(t)?t.call(s&&s.proxy):t}}const Ul=Symbol.for("v-scx"),Wl=()=>Cn(Ul);function At(e,t,n){return Vo(e,t,n)}function Vo(e,t,n=le){const{immediate:s,deep:i,flush:o,once:r}=n,l=me({},n),c=t&&s||!t&&o!=="post";let a;if(fn){if(o==="sync"){const v=Wl();a=v.__watcherHandles||(v.__watcherHandles=[])}else if(!c){const v=()=>{};return v.stop=Ze,v.resume=Ze,v.pause=Ze,v}}const u=xe;l.call=(v,T,S)=>ze(v,u,T,S);let d=!1;o==="post"?l.scheduler=v=>{Oe(v,u&&u.suspense)}:o!=="sync"&&(d=!0,l.scheduler=(v,T)=>{T?v():Ks(v)}),l.augmentJob=v=>{t&&(v.flags|=4),d&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const p=hl(e,t,l);return fn&&(a?a.push(p):c&&p()),p}function zl(e,t,n){const s=this.proxy,i=pe(e)?e.includes(".")?Uo(s,e):()=>s[e]:e.bind(s,s);let o;G(t)?o=t:(o=t.handler,n=t);const r=mn(this),l=Vo(i,o.bind(s),n);return r(),l}function Uo(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}const Kl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Be(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function ql(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||le;let i=n;const o=t.startsWith("update:"),r=o&&Kl(s,t.slice(7));r&&(r.trim&&(i=n.map(u=>pe(u)?u.trim():u)),r.number&&(i=n.map(Ar)));let l,c=s[l=es(t)]||s[l=es(Be(t))];!c&&o&&(c=s[l=es(Lt(t))]),c&&ze(c,e,6,i);const a=s[l+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ze(a,e,6,i)}}const Yl=new WeakMap;function Wo(e,t,n=!1){const s=n?Yl:t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},l=!1;if(!G(e)){const c=a=>{const u=Wo(a,t,!0);u&&(l=!0,me(r,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(ue(e)&&s.set(e,null),null):(q(o)?o.forEach(c=>r[c]=null):me(r,o),ue(e)&&s.set(e,r),r)}function Gn(e,t){return!e||!Hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ie(e,t[0].toLowerCase()+t.slice(1))||ie(e,Lt(t))||ie(e,t))}function pi(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:l,emit:c,render:a,renderCache:u,props:d,data:p,setupState:v,ctx:T,inheritAttrs:S}=e,m=An(e);let I,j;try{if(n.shapeFlag&4){const A=i||s,W=A;I=Qe(a.call(W,A,u,d,v,p,T)),j=l}else{const A=t;I=Qe(A.length>1?A(d,{attrs:l,slots:r,emit:c}):A(d,null)),j=t.props?l:Gl(l)}}catch(A){on.length=0,Kn(A,e,1),I=Z(Ee)}let H=I;if(j&&S!==!1){const A=Object.keys(j),{shapeFlag:W}=H;A.length&&W&7&&(o&&A.some(Rs)&&(j=Xl(j,o)),H=vt(H,j,!1,!0))}return n.dirs&&(H=vt(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition&&un(H,n.transition),I=H,An(m),I}const Gl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Hn(n))&&((t||(t={}))[n]=e[n]);return t},Xl=(e,t)=>{const n={};for(const s in e)(!Rs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Jl(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:l,patchFlag:c}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?gi(s,r,a):!!r;if(c&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const p=u[d];if(r[p]!==s[p]&&!Gn(a,p))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===r?!1:s?r?gi(s,r,a):!0:!!r;return!1}function gi(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(t[o]!==e[o]&&!Gn(n,o))return!0}return!1}function Ql({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const zo={},Ko=()=>Object.create(zo),qo=e=>Object.getPrototypeOf(e)===zo;function Zl(e,t,n,s=!1){const i={},o=Ko();e.propsDefaults=Object.create(null),Yo(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:ol(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function ec(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,l=te(i),[c]=e.propsOptions;let a=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let p=u[d];if(Gn(e.emitsOptions,p))continue;const v=t[p];if(c)if(ie(o,p))v!==o[p]&&(o[p]=v,a=!0);else{const T=Be(p);i[T]=Ss(c,l,T,v,e,!1)}else v!==o[p]&&(o[p]=v,a=!0)}}}else{Yo(e,t,i,o)&&(a=!0);let u;for(const d in l)(!t||!ie(t,d)&&((u=Lt(d))===d||!ie(t,u)))&&(c?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=Ss(c,l,d,void 0,e,!0)):delete i[d]);if(o!==l)for(const d in o)(!t||!ie(t,d))&&(delete o[d],a=!0)}a&&ot(e.attrs,"set","")}function Yo(e,t,n,s){const[i,o]=e.propsOptions;let r=!1,l;if(t)for(let c in t){if(Qt(c))continue;const a=t[c];let u;i&&ie(i,u=Be(c))?!o||!o.includes(u)?n[u]=a:(l||(l={}))[u]=a:Gn(e.emitsOptions,c)||(!(c in s)||a!==s[c])&&(s[c]=a,r=!0)}if(o){const c=te(n),a=l||le;for(let u=0;u<o.length;u++){const d=o[u];n[d]=Ss(i,c,d,a[d],e,!ie(a,d))}}return r}function Ss(e,t,n,s,i,o){const r=e[n];if(r!=null){const l=ie(r,"default");if(l&&s===void 0){const c=r.default;if(r.type!==Function&&!r.skipFactory&&G(c)){const{propsDefaults:a}=i;if(n in a)s=a[n];else{const u=mn(i);s=a[n]=c.call(null,t),u()}}else s=c;i.ce&&i.ce._setProp(n,s)}r[0]&&(o&&!l?s=!1:r[1]&&(s===""||s===Lt(n))&&(s=!0))}return s}const tc=new WeakMap;function Go(e,t,n=!1){const s=n?tc:t.propsCache,i=s.get(e);if(i)return i;const o=e.props,r={},l=[];let c=!1;if(!G(e)){const u=d=>{c=!0;const[p,v]=Go(d,t,!0);me(r,p),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!c)return ue(e)&&s.set(e,Rt),Rt;if(q(o))for(let u=0;u<o.length;u++){const d=Be(o[u]);mi(d)&&(r[d]=le)}else if(o)for(const u in o){const d=Be(u);if(mi(d)){const p=o[u],v=r[d]=q(p)||G(p)?{type:p}:me({},p),T=v.type;let S=!1,m=!0;if(q(T))for(let I=0;I<T.length;++I){const j=T[I],H=G(j)&&j.name;if(H==="Boolean"){S=!0;break}else H==="String"&&(m=!1)}else S=G(T)&&T.name==="Boolean";v[0]=S,v[1]=m,(S||ie(v,"default"))&&l.push(d)}}const a=[r,l];return ue(e)&&s.set(e,a),a}function mi(e){return e[0]!=="$"&&!Qt(e)}const qs=e=>e==="_"||e==="_ctx"||e==="$stable",Ys=e=>q(e)?e.map(Qe):[Qe(e)],nc=(e,t,n)=>{if(t._n)return t;const s=Vt((...i)=>Ys(t(...i)),n);return s._c=!1,s},Xo=(e,t,n)=>{const s=e._ctx;for(const i in e){if(qs(i))continue;const o=e[i];if(G(o))t[i]=nc(i,o,s);else if(o!=null){const r=Ys(o);t[i]=()=>r}}},Jo=(e,t)=>{const n=Ys(t);e.slots.default=()=>n},Qo=(e,t,n)=>{for(const s in t)(n||!qs(s))&&(e[s]=t[s])},sc=(e,t,n)=>{const s=e.slots=Ko();if(e.vnode.shapeFlag&32){const i=t._;i?(Qo(s,t,n),n&&eo(s,"_",i,!0)):Xo(t,s)}else t&&Jo(e,t)},ic=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=le;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Qo(i,t,n):(o=!t.$stable,Xo(t,i)),r=t}else t&&(Jo(e,t),r={default:1});if(o)for(const l in i)!qs(l)&&r[l]==null&&delete i[l]},Oe=uc;function oc(e){return rc(e)}function rc(e,t){const n=Wn();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:l,createComment:c,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:v=Ze,insertStaticContent:T}=e,S=(f,h,g,w=null,y=null,b=null,M=void 0,k=null,P=!!h.dynamicChildren)=>{if(f===h)return;f&&!kt(f,h)&&(w=_t(f),Ce(f,y,b,!0),f=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:x,ref:B,shapeFlag:L}=h;switch(x){case Xn:m(f,h,g,w);break;case Ee:I(f,h,g,w);break;case us:f==null&&j(h,g,w,M);break;case je:O(f,h,g,w,y,b,M,k,P);break;default:L&1?W(f,h,g,w,y,b,M,k,P):L&6?Q(f,h,g,w,y,b,M,k,P):(L&64||L&128)&&x.process(f,h,g,w,y,b,M,k,P,wt)}B!=null&&y?tn(B,f&&f.ref,b,h||f,!h):B==null&&f&&f.ref!=null&&tn(f.ref,null,b,f,!0)},m=(f,h,g,w)=>{if(f==null)s(h.el=l(h.children),g,w);else{const y=h.el=f.el;h.children!==f.children&&a(y,h.children)}},I=(f,h,g,w)=>{f==null?s(h.el=c(h.children||""),g,w):h.el=f.el},j=(f,h,g,w)=>{[f.el,f.anchor]=T(f.children,h,g,w,f.el,f.anchor)},H=({el:f,anchor:h},g,w)=>{let y;for(;f&&f!==h;)y=p(f),s(f,g,w),f=y;s(h,g,w)},A=({el:f,anchor:h})=>{let g;for(;f&&f!==h;)g=p(f),i(f),f=g;i(h)},W=(f,h,g,w,y,b,M,k,P)=>{if(h.type==="svg"?M="svg":h.type==="math"&&(M="mathml"),f==null)$(h,g,w,y,b,M,k,P);else{const x=f.el&&f.el._isVueCE?f.el:null;try{x&&x._beginPatch(),V(f,h,y,b,M,k,P)}finally{x&&x._endPatch()}}},$=(f,h,g,w,y,b,M,k)=>{let P,x;const{props:B,shapeFlag:L,transition:_,dirs:F}=f;if(P=f.el=r(f.type,b,B&&B.is,B),L&8?u(P,f.children):L&16&&ne(f.children,P,null,w,y,cs(f,b),M,k),F&&Ct(f,null,w,"created"),J(P,f,f.scopeId,M,w),B){for(const re in B)re!=="value"&&!Qt(re)&&o(P,re,null,B[re],b,w);"value"in B&&o(P,"value",null,B.value,b),(x=B.onVnodeBeforeMount)&&Xe(x,w,f)}F&&Ct(f,null,w,"beforeMount");const X=lc(y,_);X&&_.beforeEnter(P),s(P,h,g),((x=B&&B.onVnodeMounted)||X||F)&&Oe(()=>{x&&Xe(x,w,f),X&&_.enter(P),F&&Ct(f,null,w,"mounted")},y)},J=(f,h,g,w,y)=>{if(g&&v(f,g),w)for(let b=0;b<w.length;b++)v(f,w[b]);if(y){let b=y.subTree;if(h===b||tr(b.type)&&(b.ssContent===h||b.ssFallback===h)){const M=y.vnode;J(f,M,M.scopeId,M.slotScopeIds,y.parent)}}},ne=(f,h,g,w,y,b,M,k,P=0)=>{for(let x=P;x<f.length;x++){const B=f[x]=k?gt(f[x]):Qe(f[x]);S(null,B,h,g,w,y,b,M,k)}},V=(f,h,g,w,y,b,M)=>{const k=h.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:B}=h;P|=f.patchFlag&16;const L=f.props||le,_=h.props||le;let F;if(g&&Tt(g,!1),(F=_.onVnodeBeforeUpdate)&&Xe(F,g,h,f),B&&Ct(h,f,g,"beforeUpdate"),g&&Tt(g,!0),(L.innerHTML&&_.innerHTML==null||L.textContent&&_.textContent==null)&&u(k,""),x?K(f.dynamicChildren,x,k,g,w,cs(h,y),b):M||U(f,h,k,null,g,w,cs(h,y),b,!1),P>0){if(P&16)se(k,L,_,g,y);else if(P&2&&L.class!==_.class&&o(k,"class",null,_.class,y),P&4&&o(k,"style",L.style,_.style,y),P&8){const X=h.dynamicProps;for(let re=0;re<X.length;re++){const ee=X[re],ye=L[ee],be=_[ee];(be!==ye||ee==="value")&&o(k,ee,ye,be,y,g)}}P&1&&f.children!==h.children&&u(k,h.children)}else!M&&x==null&&se(k,L,_,g,y);((F=_.onVnodeUpdated)||B)&&Oe(()=>{F&&Xe(F,g,h,f),B&&Ct(h,f,g,"updated")},w)},K=(f,h,g,w,y,b,M)=>{for(let k=0;k<h.length;k++){const P=f[k],x=h[k],B=P.el&&(P.type===je||!kt(P,x)||P.shapeFlag&198)?d(P.el):g;S(P,x,B,null,w,y,b,M,!0)}},se=(f,h,g,w,y)=>{if(h!==g){if(h!==le)for(const b in h)!Qt(b)&&!(b in g)&&o(f,b,h[b],null,y,w);for(const b in g){if(Qt(b))continue;const M=g[b],k=h[b];M!==k&&b!=="value"&&o(f,b,k,M,y,w)}"value"in g&&o(f,"value",h.value,g.value,y)}},O=(f,h,g,w,y,b,M,k,P)=>{const x=h.el=f?f.el:l(""),B=h.anchor=f?f.anchor:l("");let{patchFlag:L,dynamicChildren:_,slotScopeIds:F}=h;F&&(k=k?k.concat(F):F),f==null?(s(x,g,w),s(B,g,w),ne(h.children||[],g,B,y,b,M,k,P)):L>0&&L&64&&_&&f.dynamicChildren?(K(f.dynamicChildren,_,g,y,b,M,k),(h.key!=null||y&&h===y.subTree)&&Zo(f,h,!0)):U(f,h,g,B,y,b,M,k,P)},Q=(f,h,g,w,y,b,M,k,P)=>{h.slotScopeIds=k,f==null?h.shapeFlag&512?y.ctx.activate(h,g,w,M,P):ae(h,g,w,y,b,M,P):he(f,h,P)},ae=(f,h,g,w,y,b,M)=>{const k=f.component=vc(f,w,y);if(qn(f)&&(k.ctx.renderer=wt),yc(k,!1,M),k.asyncDep){if(y&&y.registerDep(k,D,M),!f.el){const P=k.subTree=Z(Ee);I(null,P,h,g),f.placeholder=P.el}}else D(k,f,h,g,y,b,M)},he=(f,h,g)=>{const w=h.component=f.component;if(Jl(f,h,g))if(w.asyncDep&&!w.asyncResolved){N(w,h,g);return}else w.next=h,w.update();else h.el=f.el,w.vnode=h},D=(f,h,g,w,y,b,M)=>{const k=()=>{if(f.isMounted){let{next:L,bu:_,u:F,parent:X,vnode:re}=f;{const Le=er(f);if(Le){L&&(L.el=re.el,N(f,L,M)),Le.asyncDep.then(()=>{f.isUnmounted||k()});return}}let ee=L,ye;Tt(f,!1),L?(L.el=re.el,N(f,L,M)):L=re,_&&ts(_),(ye=L.props&&L.props.onVnodeBeforeUpdate)&&Xe(ye,X,L,re),Tt(f,!0);const be=pi(f),Ie=f.subTree;f.subTree=be,S(Ie,be,d(Ie.el),_t(Ie),f,y,b),L.el=be.el,ee===null&&Ql(f,be.el),F&&Oe(F,y),(ye=L.props&&L.props.onVnodeUpdated)&&Oe(()=>Xe(ye,X,L,re),y)}else{let L;const{el:_,props:F}=h,{bm:X,m:re,parent:ee,root:ye,type:be}=f,Ie=nn(h);Tt(f,!1),X&&ts(X),!Ie&&(L=F&&F.onVnodeBeforeMount)&&Xe(L,ee,h),Tt(f,!0);{ye.ce&&ye.ce._def.shadowRoot!==!1&&ye.ce._injectChildStyle(be);const Le=f.subTree=pi(f);S(null,Le,g,w,f,y,b),h.el=Le.el}if(re&&Oe(re,y),!Ie&&(L=F&&F.onVnodeMounted)){const Le=h;Oe(()=>Xe(L,ee,Le),y)}(h.shapeFlag&256||ee&&nn(ee.vnode)&&ee.vnode.shapeFlag&256)&&f.a&&Oe(f.a,y),f.isMounted=!0,h=g=w=null}};f.scope.on();const P=f.effect=new io(k);f.scope.off();const x=f.update=P.run.bind(P),B=f.job=P.runIfDirty.bind(P);B.i=f,B.id=f.uid,P.scheduler=()=>Ks(B),Tt(f,!0),x()},N=(f,h,g)=>{h.component=f;const w=f.vnode.props;f.vnode=h,f.next=null,ec(f,h.props,w,g),ic(f,h.children,g),lt(),ri(f),ct()},U=(f,h,g,w,y,b,M,k,P=!1)=>{const x=f&&f.children,B=f?f.shapeFlag:0,L=h.children,{patchFlag:_,shapeFlag:F}=h;if(_>0){if(_&128){fe(x,L,g,w,y,b,M,k,P);return}else if(_&256){R(x,L,g,w,y,b,M,k,P);return}}F&8?(B&16&&ft(x,y,b),L!==x&&u(g,L)):B&16?F&16?fe(x,L,g,w,y,b,M,k,P):ft(x,y,b,!0):(B&8&&u(g,""),F&16&&ne(L,g,w,y,b,M,k,P))},R=(f,h,g,w,y,b,M,k,P)=>{f=f||Rt,h=h||Rt;const x=f.length,B=h.length,L=Math.min(x,B);let _;for(_=0;_<L;_++){const F=h[_]=P?gt(h[_]):Qe(h[_]);S(f[_],F,g,null,y,b,M,k,P)}x>B?ft(f,y,b,!0,!1,L):ne(h,g,w,y,b,M,k,P,L)},fe=(f,h,g,w,y,b,M,k,P)=>{let x=0;const B=h.length;let L=f.length-1,_=B-1;for(;x<=L&&x<=_;){const F=f[x],X=h[x]=P?gt(h[x]):Qe(h[x]);if(kt(F,X))S(F,X,g,null,y,b,M,k,P);else break;x++}for(;x<=L&&x<=_;){const F=f[L],X=h[_]=P?gt(h[_]):Qe(h[_]);if(kt(F,X))S(F,X,g,null,y,b,M,k,P);else break;L--,_--}if(x>L){if(x<=_){const F=_+1,X=F<B?h[F].el:w;for(;x<=_;)S(null,h[x]=P?gt(h[x]):Qe(h[x]),g,X,y,b,M,k,P),x++}}else if(x>_)for(;x<=L;)Ce(f[x],y,b,!0),x++;else{const F=x,X=x,re=new Map;for(x=X;x<=_;x++){const Fe=h[x]=P?gt(h[x]):Qe(h[x]);Fe.key!=null&&re.set(Fe.key,x)}let ee,ye=0;const be=_-X+1;let Ie=!1,Le=0;const zt=new Array(be);for(x=0;x<be;x++)zt[x]=0;for(x=F;x<=L;x++){const Fe=f[x];if(ye>=be){Ce(Fe,y,b,!0);continue}let Ge;if(Fe.key!=null)Ge=re.get(Fe.key);else for(ee=X;ee<=_;ee++)if(zt[ee-X]===0&&kt(Fe,h[ee])){Ge=ee;break}Ge===void 0?Ce(Fe,y,b,!0):(zt[Ge-X]=x+1,Ge>=Le?Le=Ge:Ie=!0,S(Fe,h[Ge],g,null,y,b,M,k,P),ye++)}const ei=Ie?cc(zt):Rt;for(ee=ei.length-1,x=be-1;x>=0;x--){const Fe=X+x,Ge=h[Fe],ti=h[Fe+1],ni=Fe+1<B?ti.el||ti.placeholder:w;zt[x]===0?S(null,Ge,g,ni,y,b,M,k,P):Ie&&(ee<0||x!==ei[ee]?ve(Ge,g,ni,2):ee--)}}},ve=(f,h,g,w,y=null)=>{const{el:b,type:M,transition:k,children:P,shapeFlag:x}=f;if(x&6){ve(f.component.subTree,h,g,w);return}if(x&128){f.suspense.move(h,g,w);return}if(x&64){M.move(f,h,g,wt);return}if(M===je){s(b,h,g);for(let L=0;L<P.length;L++)ve(P[L],h,g,w);s(f.anchor,h,g);return}if(M===us){H(f,h,g);return}if(w!==2&&x&1&&k)if(w===0)k.beforeEnter(b),s(b,h,g),Oe(()=>k.enter(b),y);else{const{leave:L,delayLeave:_,afterLeave:F}=k,X=()=>{f.ctx.isUnmounted?i(b):s(b,h,g)},re=()=>{b._isLeaving&&b[it](!0),L(b,()=>{X(),F&&F()})};_?_(b,X,re):re()}else s(b,h,g)},Ce=(f,h,g,w=!1,y=!1)=>{const{type:b,props:M,ref:k,children:P,dynamicChildren:x,shapeFlag:B,patchFlag:L,dirs:_,cacheIndex:F}=f;if(L===-2&&(y=!1),k!=null&&(lt(),tn(k,null,g,f,!0),ct()),F!=null&&(h.renderCache[F]=void 0),B&256){h.ctx.deactivate(f);return}const X=B&1&&_,re=!nn(f);let ee;if(re&&(ee=M&&M.onVnodeBeforeUnmount)&&Xe(ee,h,f),B&6)Wt(f.component,g,w);else{if(B&128){f.suspense.unmount(g,w);return}X&&Ct(f,null,h,"beforeUnmount"),B&64?f.type.remove(f,h,g,wt,w):x&&!x.hasOnce&&(b!==je||L>0&&L&64)?ft(x,h,g,!1,!0):(b===je&&L&384||!y&&B&16)&&ft(P,h,g),w&&bt(f)}(re&&(ee=M&&M.onVnodeUnmounted)||X)&&Oe(()=>{ee&&Xe(ee,h,f),X&&Ct(f,null,h,"unmounted")},g)},bt=f=>{const{type:h,el:g,anchor:w,transition:y}=f;if(h===je){Ut(g,w);return}if(h===us){A(f);return}const b=()=>{i(g),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:M,delayLeave:k}=y,P=()=>M(g,b);k?k(f.el,b,P):P()}else b()},Ut=(f,h)=>{let g;for(;f!==h;)g=p(f),i(f),f=g;i(h)},Wt=(f,h,g)=>{const{bum:w,scope:y,job:b,subTree:M,um:k,m:P,a:x}=f;vi(P),vi(x),w&&ts(w),y.stop(),b&&(b.flags|=8,Ce(M,f,h,g)),k&&Oe(k,h),Oe(()=>{f.isUnmounted=!0},h)},ft=(f,h,g,w=!1,y=!1,b=0)=>{for(let M=b;M<f.length;M++)Ce(f[M],h,g,w,y)},_t=f=>{if(f.shapeFlag&6)return _t(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=p(f.anchor||f.el),g=h&&h[vl];return g?p(g):h};let xt=!1;const yn=(f,h,g)=>{f==null?h._vnode&&Ce(h._vnode,null,null,!0):S(h._vnode||null,f,h,null,null,null,g),h._vnode=f,xt||(xt=!0,ri(),To(),xt=!1)},wt={p:S,um:Ce,m:ve,r:bt,mt:ae,mc:ne,pc:U,pbc:K,n:_t,o:e};return{render:yn,hydrate:void 0,createApp:Bl(yn)}}function cs({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Tt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function lc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zo(e,t,n=!1){const s=e.children,i=t.children;if(q(s)&&q(i))for(let o=0;o<s.length;o++){const r=s[o];let l=i[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[o]=gt(i[o]),l.el=r.el),!n&&l.patchFlag!==-2&&Zo(r,l)),l.type===Xn&&l.patchFlag!==-1&&(l.el=r.el),l.type===Ee&&!l.el&&(l.el=r.el)}}function cc(e){const t=e.slice(),n=[0];let s,i,o,r,l;const c=e.length;for(s=0;s<c;s++){const a=e[s];if(a!==0){if(i=n[n.length-1],e[i]<a){t[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)l=o+r>>1,e[n[l]]<a?o=l+1:r=l;a<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function er(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:er(t)}function vi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const tr=e=>e.__isSuspense;function uc(e,t){t&&t.pendingBranch?q(e)?t.effects.push(...e):t.effects.push(e):ml(e)}const je=Symbol.for("v-fgt"),Xn=Symbol.for("v-txt"),Ee=Symbol.for("v-cmt"),us=Symbol.for("v-stc"),on=[];let $e=null;function Y(e=!1){on.push($e=e?null:[])}function ac(){on.pop(),$e=on[on.length-1]||null}let an=1;function On(e,t=!1){an+=e,e<0&&$e&&t&&($e.hasOnce=!0)}function nr(e){return e.dynamicChildren=an>0?$e||Rt:null,ac(),an>0&&$e&&$e.push(e),e}function oe(e,t,n,s,i,o){return nr(E(e,t,n,s,i,o,!0))}function Pe(e,t,n,s,i){return nr(Z(e,t,n,s,i,!0))}function Rn(e){return e?e.__v_isVNode===!0:!1}function kt(e,t){return e.type===t.type&&e.key===t.key}const sr=({key:e})=>e??null,Tn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||we(e)||G(e)?{i:Re,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,s=0,i=null,o=e===je?0:1,r=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sr(t),ref:t&&Tn(t),scopeId:Po,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Re};return l?(Gs(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=pe(n)?8:16),an>0&&!r&&$e&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&$e.push(c),c}const Z=fc;function fc(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Do)&&(e=Ee),Rn(e)){const l=vt(e,t,!0);return n&&Gs(l,n),an>0&&!o&&$e&&(l.shapeFlag&6?$e[$e.indexOf(e)]=l:$e.push(l)),l.patchFlag=-2,l}if(Cc(e)&&(e=e.__vccOpts),t){t=dc(t);let{class:l,style:c}=t;l&&!pe(l)&&(t.class=Ae(l)),ue(c)&&(zs(c)&&!q(c)&&(c=me({},c)),t.style=Ve(c))}const r=pe(e)?1:tr(e)?128:ko(e)?64:ue(e)?4:G(e)?2:0;return E(e,t,n,s,i,r,o,!0)}function dc(e){return e?zs(e)||qo(e)?me({},e):e:null}function vt(e,t,n=!1,s=!1){const{props:i,ref:o,patchFlag:r,children:l,transition:c}=e,a=t?pc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&sr(a),ref:t&&t.ref?n&&o?q(o)?o.concat(Tn(t)):[o,Tn(t)]:Tn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vt(e.ssContent),ssFallback:e.ssFallback&&vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&un(u,c.clone(u)),u}function hc(e=" ",t=0){return Z(Xn,null,e,t)}function ke(e="",t=!1){return t?(Y(),Pe(Ee,null,e)):Z(Ee,null,e)}function Qe(e){return e==null||typeof e=="boolean"?Z(Ee):q(e)?Z(je,null,e.slice()):Rn(e)?gt(e):Z(Xn,null,String(e))}function gt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vt(e)}function Gs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(q(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Gs(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!qo(t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else G(t)?(t={default:t,_ctx:Re},n=32):(t=String(t),s&64?(n=16,t=[hc(t)]):n=8);e.children=t,e.shapeFlag|=n}function pc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Ae([t.class,s.class]));else if(i==="style")t.style=Ve([t.style,s.style]);else if(Hn(i)){const o=t[i],r=s[i];r&&o!==r&&!(q(o)&&o.includes(r))&&(t[i]=o?[].concat(o,r):r)}else i!==""&&(t[i]=s[i])}return t}function Xe(e,t,n,s=null){ze(e,t,7,[n,s])}const gc=Bo();let mc=0;function vc(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||gc,o={uid:mc++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new jr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Go(s,i),emitsOptions:Wo(s,i),emit:null,emitted:null,propsDefaults:le,inheritAttrs:s.inheritAttrs,ctx:le,data:le,props:le,attrs:le,slots:le,refs:le,setupState:le,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=ql.bind(null,o),e.ce&&e.ce(o),o}let xe=null;const ir=()=>xe||Re;let $n,Ps;{const e=Wn(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};$n=t("__VUE_INSTANCE_SETTERS__",n=>xe=n),Ps=t("__VUE_SSR_SETTERS__",n=>fn=n)}const mn=e=>{const t=xe;return $n(e),e.scope.on(),()=>{e.scope.off(),$n(t)}},yi=()=>{xe&&xe.scope.off(),$n(null)};function or(e){return e.vnode.shapeFlag&4}let fn=!1;function yc(e,t=!1,n=!1){t&&Ps(t);const{props:s,children:i}=e.vnode,o=or(e);Zl(e,s,o,t),sc(e,i,n||t);const r=o?bc(e,t):void 0;return t&&Ps(!1),r}function bc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ol);const{setup:s}=n;if(s){lt();const i=e.setupContext=s.length>1?xc(e):null,o=mn(e),r=gn(s,e,0,[e.props,i]),l=Ji(r);if(ct(),o(),(l||e.sp)&&!nn(e)&&Oo(e),l){if(r.then(yi,yi),t)return r.then(c=>{bi(e,c)}).catch(c=>{Kn(c,e,0)});e.asyncDep=r}else bi(e,r)}else rr(e)}function bi(e,t,n){G(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ue(t)&&(e.setupState=_o(t)),rr(e)}function rr(e,t,n){const s=e.type;e.render||(e.render=s.render||Ze);{const i=mn(e);lt();try{Rl(e)}finally{ct(),i()}}}const _c={get(e,t){return _e(e,"get",""),e[t]}};function xc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_c),slots:e.slots,emit:e.emit,expose:t}}function Jn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(_o(rl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in sn)return sn[n](e)},has(t,n){return n in t||n in sn}})):e.proxy}function wc(e,t=!0){return G(e)?e.displayName||e.name:e.name||t&&e.__name}function Cc(e){return G(e)&&"__vccOpts"in e}const ge=(e,t)=>fl(e,t,fn);function Es(e,t,n){try{On(-1);const s=arguments.length;return s===2?ue(t)&&!q(t)?Rn(t)?Z(e,null,[t]):Z(e,t):Z(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Rn(n)&&(n=[n]),Z(e,t,n))}finally{On(1)}}const Tc="3.5.25";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.25
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let ks;const _i=typeof window<"u"&&window.trustedTypes;if(_i)try{ks=_i.createPolicy("vue",{createHTML:e=>e})}catch{}const lr=ks?e=>ks.createHTML(e):e=>e,Sc="http://www.w3.org/2000/svg",Pc="http://www.w3.org/1998/Math/MathML",st=typeof document<"u"?document:null,xi=st&&st.createElement("template"),Ec={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?st.createElementNS(Sc,e):t==="mathml"?st.createElementNS(Pc,e):n?st.createElement(e,{is:n}):st.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>st.createTextNode(e),createComment:e=>st.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>st.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{xi.innerHTML=lr(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=xi.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},dt="transition",qt="animation",dn=Symbol("_vtc"),cr={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},kc=me({},Io,cr),Ic=e=>(e.displayName="Transition",e.props=kc,e),vn=Ic((e,{slots:t})=>Es(_l,Mc(e),t)),St=(e,t=[])=>{q(e)?e.forEach(n=>n(...t)):e&&e(...t)},wi=e=>e?q(e)?e.some(t=>t.length>1):e.length>1:!1;function Mc(e){const t={};for(const O in e)O in cr||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:a=r,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,T=Ac(i),S=T&&T[0],m=T&&T[1],{onBeforeEnter:I,onEnter:j,onEnterCancelled:H,onLeave:A,onLeaveCancelled:W,onBeforeAppear:$=I,onAppear:J=j,onAppearCancelled:ne=H}=t,V=(O,Q,ae,he)=>{O._enterCancelled=he,Pt(O,Q?u:l),Pt(O,Q?a:r),ae&&ae()},K=(O,Q)=>{O._isLeaving=!1,Pt(O,d),Pt(O,v),Pt(O,p),Q&&Q()},se=O=>(Q,ae)=>{const he=O?J:j,D=()=>V(Q,O,ae);St(he,[Q,D]),Ci(()=>{Pt(Q,O?c:o),nt(Q,O?u:l),wi(he)||Ti(Q,s,S,D)})};return me(t,{onBeforeEnter(O){St(I,[O]),nt(O,o),nt(O,r)},onBeforeAppear(O){St($,[O]),nt(O,c),nt(O,a)},onEnter:se(!1),onAppear:se(!0),onLeave(O,Q){O._isLeaving=!0;const ae=()=>K(O,Q);nt(O,d),O._enterCancelled?(nt(O,p),Ei(O)):(Ei(O),nt(O,p)),Ci(()=>{O._isLeaving&&(Pt(O,d),nt(O,v),wi(A)||Ti(O,s,m,ae))}),St(A,[O,ae])},onEnterCancelled(O){V(O,!1,void 0,!0),St(H,[O])},onAppearCancelled(O){V(O,!0,void 0,!0),St(ne,[O])},onLeaveCancelled(O){K(O),St(W,[O])}})}function Ac(e){if(e==null)return null;if(ue(e))return[as(e.enter),as(e.leave)];{const t=as(e);return[t,t]}}function as(e){return Lr(e)}function nt(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[dn]||(e[dn]=new Set)).add(t)}function Pt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[dn];n&&(n.delete(t),n.size||(e[dn]=void 0))}function Ci(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Lc=0;function Ti(e,t,n,s){const i=e._endId=++Lc,o=()=>{i===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:l,propCount:c}=Fc(e,t);if(!r)return s();const a=r+"end";let u=0;const d=()=>{e.removeEventListener(a,p),o()},p=v=>{v.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},l+1),e.addEventListener(a,p)}function Fc(e,t){const n=window.getComputedStyle(e),s=T=>(n[T]||"").split(", "),i=s(`${dt}Delay`),o=s(`${dt}Duration`),r=Si(i,o),l=s(`${qt}Delay`),c=s(`${qt}Duration`),a=Si(l,c);let u=null,d=0,p=0;t===dt?r>0&&(u=dt,d=r,p=o.length):t===qt?a>0&&(u=qt,d=a,p=c.length):(d=Math.max(r,a),u=d>0?r>a?dt:qt:null,p=u?u===dt?o.length:c.length:0);const v=u===dt&&/\b(?:transform|all)(?:,|$)/.test(s(`${dt}Property`).toString());return{type:u,timeout:d,propCount:p,hasTransform:v}}function Si(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Pi(n)+Pi(e[s])))}function Pi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ei(e){return(e?e.ownerDocument:document).body.offsetHeight}function Oc(e,t,n){const s=e[dn];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Dn=Symbol("_vod"),ur=Symbol("_vsh"),ar={name:"show",beforeMount(e,{value:t},{transition:n}){e[Dn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Yt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Yt(e,!0),s.enter(e)):s.leave(e,()=>{Yt(e,!1)}):Yt(e,t))},beforeUnmount(e,{value:t}){Yt(e,t)}};function Yt(e,t){e.style.display=t?e[Dn]:"none",e[ur]=!t}const Rc=Symbol(""),$c=/(?:^|;)\s*display\s*:/;function Dc(e,t,n){const s=e.style,i=pe(n);let o=!1;if(n&&!i){if(t)if(pe(t))for(const r of t.split(";")){const l=r.slice(0,r.indexOf(":")).trim();n[l]==null&&Sn(s,l,"")}else for(const r in t)n[r]==null&&Sn(s,r,"");for(const r in n)r==="display"&&(o=!0),Sn(s,r,n[r])}else if(i){if(t!==n){const r=s[Rc];r&&(n+=";"+r),s.cssText=n,o=$c.test(n)}}else t&&e.removeAttribute("style");Dn in e&&(e[Dn]=o?s.display:"",e[ur]&&(s.display="none"))}const ki=/\s*!important$/;function Sn(e,t,n){if(q(n))n.forEach(s=>Sn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Nc(e,t);ki.test(n)?e.setProperty(Lt(s),n.replace(ki,""),"important"):e[s]=n}}const Ii=["Webkit","Moz","ms"],fs={};function Nc(e,t){const n=fs[t];if(n)return n;let s=Be(t);if(s!=="filter"&&s in e)return fs[t]=s;s=Un(s);for(let i=0;i<Ii.length;i++){const o=Ii[i]+s;if(o in e)return fs[t]=o}return t}const Mi="http://www.w3.org/1999/xlink";function Ai(e,t,n,s,i,o=Nr(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Mi,t.slice(6,t.length)):e.setAttributeNS(Mi,t,n):n==null||o&&!to(n)?e.removeAttribute(t):e.setAttribute(t,o?"":yt(n)?String(n):n)}function Li(e,t,n,s,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?lr(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=to(n):n==null&&l==="string"?(n="",r=!0):l==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(i||t)}function jc(e,t,n,s){e.addEventListener(t,n,s)}function Hc(e,t,n,s){e.removeEventListener(t,n,s)}const Fi=Symbol("_vei");function Bc(e,t,n,s,i=null){const o=e[Fi]||(e[Fi]={}),r=o[t];if(s&&r)r.value=s;else{const[l,c]=Vc(t);if(s){const a=o[t]=zc(s,i);jc(e,l,a,c)}else r&&(Hc(e,l,r,c),o[t]=void 0)}}const Oi=/(?:Once|Passive|Capture)$/;function Vc(e){let t;if(Oi.test(e)){t={};let s;for(;s=e.match(Oi);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Lt(e.slice(2)),t]}let ds=0;const Uc=Promise.resolve(),Wc=()=>ds||(Uc.then(()=>ds=0),ds=Date.now());function zc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ze(Kc(s,n.value),t,5,[s])};return n.value=e,n.attached=Wc(),n}function Kc(e,t){if(q(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const Ri=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qc=(e,t,n,s,i,o)=>{const r=i==="svg";t==="class"?Oc(e,s,r):t==="style"?Dc(e,n,s):Hn(t)?Rs(t)||Bc(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yc(e,t,s,r))?(Li(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ai(e,t,s,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pe(s))?Li(e,Be(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ai(e,t,s,r))};function Yc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ri(t)&&G(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ri(t)&&pe(n)?!1:t in e}const Gc=["ctrl","shift","alt","meta"],Xc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Gc.some(n=>e[`${n}Key`]&&!t.includes(n))},Nn=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((i,...o)=>{for(let r=0;r<t.length;r++){const l=Xc[t[r]];if(l&&l(i,t))return}return e(i,...o)}))},Jc=me({patchProp:qc},Ec);let $i;function Qc(){return $i||($i=oc(Jc))}const Zc=((...e)=>{const t=Qc().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=tu(s);if(!i)return;const o=t._component;!G(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=n(i,!1,eu(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function eu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function tu(e){return pe(e)?document.querySelector(e):e}const fr=/^[a-z0-9]+(-[a-z0-9]+)*$/,Qn=(e,t,n,s="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;s=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),c=i.pop(),a={provider:i.length>0?i[0]:s,prefix:c,name:l};return t&&!Pn(a)?null:a}const o=i[0],r=o.split("-");if(r.length>1){const l={provider:s,prefix:r.shift(),name:r.join("-")};return t&&!Pn(l)?null:l}if(n&&s===""){const l={provider:s,prefix:"",name:o};return t&&!Pn(l,n)?null:l}return null},Pn=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,dr=Object.freeze({left:0,top:0,width:16,height:16}),jn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Zn=Object.freeze({...dr,...jn}),Is=Object.freeze({...Zn,body:"",hidden:!1});function nu(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function Di(e,t){const n=nu(e,t);for(const s in Is)s in jn?s in e&&!(s in n)&&(n[s]=jn[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function su(e,t){const n=e.icons,s=e.aliases||Object.create(null),i=Object.create(null);function o(r){if(n[r])return i[r]=[];if(!(r in i)){i[r]=null;const l=s[r]&&s[r].parent,c=l&&o(l);c&&(i[r]=[l].concat(c))}return i[r]}return Object.keys(n).concat(Object.keys(s)).forEach(o),i}function iu(e,t,n){const s=e.icons,i=e.aliases||Object.create(null);let o={};function r(l){o=Di(s[l]||i[l],o)}return r(t),n.forEach(r),Di(e,o)}function hr(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),n.push(i)});const s=su(e);for(const i in s){const o=s[i];o&&(t(i,iu(e,i,o)),n.push(i))}return n}const ou={provider:"",aliases:{},not_found:{},...dr};function hs(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function pr(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!hs(e,ou))return null;const n=t.icons;for(const i in n){const o=n[i];if(!i||typeof o.body!="string"||!hs(o,Is))return null}const s=t.aliases||Object.create(null);for(const i in s){const o=s[i],r=o.parent;if(!i||typeof r!="string"||!n[r]&&!s[r]||!hs(o,Is))return null}return t}const Ni=Object.create(null);function ru(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Ht(e,t){const n=Ni[e]||(Ni[e]=Object.create(null));return n[t]||(n[t]=ru(e,t))}function gr(e,t){return pr(t)?hr(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function lu(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let hn=!1;function mr(e){return typeof e=="boolean"&&(hn=e),hn}function cu(e){const t=typeof e=="string"?Qn(e,!0,hn):e;if(t){const n=Ht(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function uu(e,t){const n=Qn(e,!0,hn);if(!n)return!1;const s=Ht(n.provider,n.prefix);return t?lu(s,n.name,t):(s.missing.add(n.name),!0)}function au(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),hn&&!t&&!e.prefix){let i=!1;return pr(e)&&(e.prefix="",hr(e,(o,r)=>{uu(o,r)&&(i=!0)})),i}const n=e.prefix;if(!Pn({prefix:n,name:"a"}))return!1;const s=Ht(t,n);return!!gr(s,e)}const vr=Object.freeze({width:null,height:null}),yr=Object.freeze({...vr,...jn}),fu=/(-?[0-9.]*[0-9]+[0-9.]*)/g,du=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ji(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(fu);if(s===null||!s.length)return e;const i=[];let o=s.shift(),r=du.test(o);for(;;){if(r){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*t*n)/n)}else i.push(o);if(o=s.shift(),o===void 0)return i.join("");r=!r}}function hu(e,t="defs"){let n="";const s=e.indexOf("<"+t);for(;s>=0;){const i=e.indexOf(">",s),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const r=e.indexOf(">",o);if(r===-1)break;n+=e.slice(i+1,o).trim(),e=e.slice(0,s).trim()+e.slice(r+1)}return{defs:n,content:e}}function pu(e,t){return e?"<defs>"+e+"</defs>"+t:t}function gu(e,t,n){const s=hu(e);return pu(s.defs,t+s.content+n)}const mu=e=>e==="unset"||e==="undefined"||e==="none";function vu(e,t){const n={...Zn,...e},s={...yr,...t},i={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(S=>{const m=[],I=S.hFlip,j=S.vFlip;let H=S.rotate;I?j?H+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):j&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let A;switch(H<0&&(H-=Math.floor(H/4)*4),H=H%4,H){case 1:A=i.height/2+i.top,m.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:A=i.width/2+i.left,m.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}H%2===1&&(i.left!==i.top&&(A=i.left,i.left=i.top,i.top=A),i.width!==i.height&&(A=i.width,i.width=i.height,i.height=A)),m.length&&(o=gu(o,'<g transform="'+m.join(" ")+'">',"</g>"))});const r=s.width,l=s.height,c=i.width,a=i.height;let u,d;r===null?(d=l===null?"1em":l==="auto"?a:l,u=ji(d,c/a)):(u=r==="auto"?c:r,d=l===null?ji(u,a/c):l==="auto"?a:l);const p={},v=(S,m)=>{mu(m)||(p[S]=m.toString())};v("width",u),v("height",d);const T=[i.left,i.top,c,a];return p.viewBox=T.join(" "),{attributes:p,viewBox:T,body:o}}const yu=/\sid="(\S+)"/g,bu="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _u=0;function xu(e,t=bu){const n=[];let s;for(;s=yu.exec(e);)n.push(s[1]);if(!n.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(o=>{const r=typeof t=="function"?t(o):t+(_u++).toString(),l=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+r+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}const Ms=Object.create(null);function wu(e,t){Ms[e]=t}function As(e){return Ms[e]||Ms[""]}function Xs(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Js=Object.create(null),Gt=["https://api.simplesvg.com","https://api.unisvg.com"],En=[];for(;Gt.length>0;)Gt.length===1||Math.random()>.5?En.push(Gt.shift()):En.push(Gt.pop());Js[""]=Xs({resources:["https://api.iconify.design"].concat(En)});function Cu(e,t){const n=Xs(t);return n===null?!1:(Js[e]=n,!0)}function Qs(e){return Js[e]}const Tu=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Hi=Tu();function Su(e,t){const n=Qs(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let i=0;n.resources.forEach(r=>{i=Math.max(i,r.length)});const o=t+".json?icons=";s=n.maxURL-i-n.path.length-o.length}return s}function Pu(e){return e===404}const Eu=(e,t,n)=>{const s=[],i=Su(e,t),o="icons";let r={type:o,provider:e,prefix:t,icons:[]},l=0;return n.forEach((c,a)=>{l+=c.length+1,l>=i&&a>0&&(s.push(r),r={type:o,provider:e,prefix:t,icons:[]},l=c.length),r.icons.push(c)}),s.push(r),s};function ku(e){if(typeof e=="string"){const t=Qs(e);if(t)return t.path}return"/"}const Iu=(e,t,n)=>{if(!Hi){n("abort",424);return}let s=ku(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),c=new URLSearchParams({icons:l});s+=o+".json?"+c.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let i=503;Hi(e+s).then(o=>{const r=o.status;if(r!==200){setTimeout(()=>{n(Pu(r)?"abort":"next",r)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",i)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",i)})},Mu={prepare:Eu,send:Iu};function Au(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(i=>{if(s.name===i.name&&s.prefix===i.prefix&&s.provider===i.provider)return;s=i;const o=i.provider,r=i.prefix,l=i.name,c=n[o]||(n[o]=Object.create(null)),a=c[r]||(c[r]=Ht(o,r));let u;l in a.icons?u=t.loaded:r===""||a.missing.has(l)?u=t.missing:u=t.pending;const d={provider:o,prefix:r,name:l};u.push(d)}),t}function br(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(i=>i.id!==t))})}function Lu(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,i=e.prefix;t.forEach(o=>{const r=o.icons,l=r.pending.length;r.pending=r.pending.filter(c=>{if(c.prefix!==i)return!0;const a=c.name;if(e.icons[a])r.loaded.push({provider:s,prefix:i,name:a});else if(e.missing.has(a))r.missing.push({provider:s,prefix:i,name:a});else return n=!0,!0;return!1}),r.pending.length!==l&&(n||br([e],o.id),o.callback(r.loaded.slice(0),r.missing.slice(0),r.pending.slice(0),o.abort))})}))}let Fu=0;function Ou(e,t,n){const s=Fu++,i=br.bind(null,n,s);if(!t.pending.length)return i;const o={id:s,icons:t,callback:e,abort:i};return n.forEach(r=>{(r.loaderCallbacks||(r.loaderCallbacks=[])).push(o)}),i}function Ru(e,t=!0,n=!1){const s=[];return e.forEach(i=>{const o=typeof i=="string"?Qn(i,t,n):i;o&&s.push(o)}),s}var $u={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Du(e,t,n,s){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let r;if(e.random){let $=e.resources.slice(0);for(r=[];$.length>1;){const J=Math.floor(Math.random()*$.length);r.push($[J]),$=$.slice(0,J).concat($.slice(J+1))}r=r.concat($)}else r=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let c="pending",a=0,u,d=null,p=[],v=[];typeof s=="function"&&v.push(s);function T(){d&&(clearTimeout(d),d=null)}function S(){c==="pending"&&(c="aborted"),T(),p.forEach($=>{$.status==="pending"&&($.status="aborted")}),p=[]}function m($,J){J&&(v=[]),typeof $=="function"&&v.push($)}function I(){return{startTime:l,payload:t,status:c,queriesSent:a,queriesPending:p.length,subscribe:m,abort:S}}function j(){c="failed",v.forEach($=>{$(void 0,u)})}function H(){p.forEach($=>{$.status==="pending"&&($.status="aborted")}),p=[]}function A($,J,ne){const V=J!=="success";switch(p=p.filter(K=>K!==$),c){case"pending":break;case"failed":if(V||!e.dataAfterTimeout)return;break;default:return}if(J==="abort"){u=ne,j();return}if(V){u=ne,p.length||(r.length?W():j());return}if(T(),H(),!e.random){const K=e.resources.indexOf($.resource);K!==-1&&K!==e.index&&(e.index=K)}c="completed",v.forEach(K=>{K(ne)})}function W(){if(c!=="pending")return;T();const $=r.shift();if($===void 0){if(p.length){d=setTimeout(()=>{T(),c==="pending"&&(H(),j())},e.timeout);return}j();return}const J={status:"pending",resource:$,callback:(ne,V)=>{A(J,ne,V)}};p.push(J),a++,d=setTimeout(W,e.rotate),n($,t,J.callback)}return setTimeout(W),I}function _r(e){const t={...$u,...e};let n=[];function s(){n=n.filter(l=>l().status==="pending")}function i(l,c,a){const u=Du(t,l,c,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function o(l){return n.find(c=>l(c))||null}return{query:i,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:s}}function Bi(){}const ps=Object.create(null);function Nu(e){if(!ps[e]){const t=Qs(e);if(!t)return;const n=_r(t),s={config:t,redundancy:n};ps[e]=s}return ps[e]}function ju(e,t,n){let s,i;if(typeof e=="string"){const o=As(e);if(!o)return n(void 0,424),Bi;i=o.send;const r=Nu(e);r&&(s=r.redundancy)}else{const o=Xs(e);if(o){s=_r(o);const r=e.resources?e.resources[0]:"",l=As(r);l&&(i=l.send)}}return!s||!i?(n(void 0,424),Bi):s.query(t,i,n)().abort}function Vi(){}function Hu(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Lu(e)}))}function Bu(e){const t=[],n=[];return e.forEach(s=>{(s.match(fr)?t:n).push(s)}),{valid:t,invalid:n}}function Xt(e,t,n){function s(){const i=e.pendingIcons;t.forEach(o=>{i&&i.delete(o),e.icons[o]||e.missing.add(o)})}if(n&&typeof n=="object")try{if(!gr(e,n).length){s();return}}catch(i){console.error(i)}s(),Hu(e)}function Ui(e,t){e instanceof Promise?e.then(n=>{t(n)}).catch(()=>{t(null)}):t(e)}function Vu(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,i=e.iconsToLoad;if(delete e.iconsToLoad,!i||!i.length)return;const o=e.loadIcon;if(e.loadIcons&&(i.length>1||!o)){Ui(e.loadIcons(i,s,n),u=>{Xt(e,i,u)});return}if(o){i.forEach(u=>{const d=o(u,s,n);Ui(d,p=>{const v=p?{prefix:s,icons:{[u]:p}}:null;Xt(e,[u],v)})});return}const{valid:r,invalid:l}=Bu(i);if(l.length&&Xt(e,l,null),!r.length)return;const c=s.match(fr)?As(n):null;if(!c){Xt(e,r,null);return}c.prepare(n,s,r).forEach(u=>{ju(n,u,d=>{Xt(e,u.icons,d)})})}))}const Uu=(e,t)=>{const n=Ru(e,!0,mr()),s=Au(n);if(!s.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(s.loaded,s.missing,s.pending,Vi)}),()=>{c=!1}}const i=Object.create(null),o=[];let r,l;return s.pending.forEach(c=>{const{provider:a,prefix:u}=c;if(u===l&&a===r)return;r=a,l=u,o.push(Ht(a,u));const d=i[a]||(i[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(c=>{const{provider:a,prefix:u,name:d}=c,p=Ht(a,u),v=p.pendingIcons||(p.pendingIcons=new Set);v.has(d)||(v.add(d),i[a][u].push(d))}),o.forEach(c=>{const a=i[c.provider][c.prefix];a.length&&Vu(c,a)}),t?Ou(t,s,o):Vi};function Wu(e,t){const n={...e};for(const s in t){const i=t[s],o=typeof i;s in vr?(i===null||i&&(o==="string"||o==="number"))&&(n[s]=i):o===typeof n[s]&&(n[s]=s==="rotate"?i%4:i)}return n}const zu=/[\s,]+/;function Ku(e,t){t.split(zu).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function qu(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(e);return isNaN(i)?0:s(i)}else if(n!==e){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/i,o%1===0?s(o):0)}}return t}function Yu(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Gu(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Xu(e){return"data:image/svg+xml,"+Gu(e)}function Ju(e){return'url("'+Xu(e)+'")'}const Wi={...yr,inline:!1},Qu={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Zu={display:"inline-block"},Ls={backgroundColor:"currentColor"},xr={backgroundColor:"transparent"},zi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ki={webkitMask:Ls,mask:Ls,background:xr};for(const e in Ki){const t=Ki[e];for(const n in zi)t[e+n]=zi[n]}const kn={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";kn[e+"-flip"]=t,kn[e.slice(0,1)+"-flip"]=t,kn[e+"Flip"]=t});function qi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Yi=(e,t)=>{const n=Wu(Wi,t),s={...Qu},i=t.mode||"svg",o={},r=t.style,l=typeof r=="object"&&!(r instanceof Array)?r:{};for(let S in t){const m=t[S];if(m!==void 0)switch(S){case"icon":case"style":case"onLoad":case"mode":case"ssr":break;case"inline":case"hFlip":case"vFlip":n[S]=m===!0||m==="true"||m===1;break;case"flip":typeof m=="string"&&Ku(n,m);break;case"color":o.color=m;break;case"rotate":typeof m=="string"?n[S]=qu(m):typeof m=="number"&&(n[S]=m);break;case"ariaHidden":case"aria-hidden":m!==!0&&m!=="true"&&delete s["aria-hidden"];break;default:{const I=kn[S];I?(m===!0||m==="true"||m===1)&&(n[I]=!0):Wi[S]===void 0&&(s[S]=m)}}}const c=vu(e,n),a=c.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),i==="svg"){s.style={...o,...l},Object.assign(s,a);let S=0,m=t.id;return typeof m=="string"&&(m=m.replace(/-/g,"_")),s.innerHTML=xu(c.body,m?()=>m+"ID"+S++:"iconifyVue"),Es("svg",s)}const{body:u,width:d,height:p}=e,v=i==="mask"||(i==="bg"?!1:u.indexOf("currentColor")!==-1),T=Yu(u,{...a,width:d+"",height:p+""});return s.style={...o,"--svg":Ju(T),width:qi(a.width),height:qi(a.height),...Zu,...v?Ls:xr,...l},Es("span",s)};mr(!0);wu("",Mu);if(typeof document<"u"&&typeof window<"u"){const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!au(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const i=t[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Cu(n,i)||console.error(s)}catch{console.error(s)}}}}const ea={...Zn,body:""},de=Ke((e,{emit:t})=>{const n=z(null);function s(){var a,u;n.value&&((u=(a=n.value).abort)==null||u.call(a),n.value=null)}const i=z(!!e.ssr),o=z(""),r=ll(null);function l(){const a=e.icon;if(typeof a=="object"&&a!==null&&typeof a.body=="string")return o.value="",{data:a};let u;if(typeof a!="string"||(u=Qn(a,!1,!0))===null)return null;let d=cu(u);if(!d){const T=n.value;return(!T||T.name!==a)&&(d===null?n.value={name:a}:n.value={name:a,abort:Uu([u],c)}),null}s(),o.value!==a&&(o.value=a,wo(()=>{t("load",a)}));const p=e.customise;if(p){d=Object.assign({},d);const T=p(d.body,u.name,u.prefix,u.provider);typeof T=="string"&&(d.body=T)}const v=["iconify"];return u.prefix!==""&&v.push("iconify--"+u.prefix),u.provider!==""&&v.push("iconify--"+u.provider),{data:d,classes:v}}function c(){var u;const a=l();a?a.data!==((u=r.value)==null?void 0:u.data)&&(r.value=a):r.value=null}return i.value?c():qe(()=>{i.value=!0,c()}),At(()=>e.icon,c),Ye(s),()=>{const a=r.value;if(!a)return Yi(ea,e);let u=e;return a.classes&&(u={...e,class:a.classes.join(" ")}),Yi({...Zn,...a.data},u)}},{props:["icon","mode","ssr","width","height","style","color","inline","rotate","hFlip","horizontalFlip","vFlip","verticalFlip","flip","id","ariaHidden","customise","title"],emits:["load"]}),ta={key:0,class:"loading"},na={key:1,class:"error"},sa=["src","alt"],ia={key:2,class:"toolbar"},oa={class:"zoom-label"},ra=["title"],la=["title"],gs=10,ca=Ke({__name:"ImageViewer",props:{url:{},name:{}},setup(e){const t=z(),n=z(),s=z(!0),i=z(!1),o=z(1),r=z(0),l=z(0),c=z(0),a=z(!1),u=z(!0);let d;const p=z(!1);let v=0,T=0,S=0,m=0;const I=z(0),j=z(0),H=z(0),A=z(0);let W=0;const $=z(!1);let J=null;const ne=ge(()=>{if(!I.value||!j.value||!H.value||!A.value)return 1;const _=H.value/I.value,F=A.value/j.value;return Math.min(_,F,1)}),V=ge(()=>Math.max(.1,ne.value*.5)),K=ge(()=>{const _=ne.value*.05;return Math.abs(o.value-ne.value)<_}),se=ge(()=>Math.round(o.value*100)+"%"),O=ge(()=>K.value?"实际像素":"适合窗口");function Q(){n.value&&(n.value.style.transform=`scale(${o.value}) rotate(${r.value}deg)`)}function ae(){if(t.value){const _=t.value.getBoundingClientRect();H.value=_.width,A.value=_.height}}function he(_){$.value=!0,_(),setTimeout(()=>{$.value=!1},250)}function D(){o.value=ne.value,l.value=0,c.value=0,Q()}function N(){o.value=1,l.value=0,c.value=0,Q()}function U(){he(()=>{K.value?N():D()})}function R(){he(()=>{o.value=Math.min(gs,o.value*1.2),Q()})}function fe(){he(()=>{o.value=Math.max(V.value,o.value/1.2),Q()})}function ve(){he(()=>{r.value-=90,Q()})}function Ce(){he(()=>{r.value+=90,Q()})}function bt(){he(()=>{r.value=0,l.value=0,c.value=0,o.value=ne.value,Q()})}async function Ut(){t.value&&(document.fullscreenElement?await document.exitFullscreen():await t.value.requestFullscreen())}function Wt(){a.value=!!document.fullscreenElement,ae(),D(),a.value?_t():(u.value=!0,xt())}function ft(){Wt()}function _t(){u.value=!0,xt(),a.value&&(d=window.setTimeout(()=>{u.value=!1},2e3))}function xt(){d&&(clearTimeout(d),d=void 0)}function yn(){a.value&&_t()}function wt(_){if(_.preventDefault(),!t.value)return;const F=t.value.getBoundingClientRect(),X=_.clientX-F.left-F.width/2,re=_.clientY-F.top-F.height/2,ee=o.value,ye=_.deltaY>0?-1:1,be=ee*.05,Ie=Math.max(V.value,Math.min(gs,ee+ye*be));if(Math.abs(Ie-ee)>.001){const Le=Ie/ee;l.value=X-(X-l.value)*Le,c.value=re-(re-c.value)*Le,o.value=Ie,Q()}}function Zs(_){_.target.closest(".toolbar")||(p.value=!0,v=_.clientX,T=_.clientY,S=l.value,m=c.value,_.preventDefault())}function f(_){p.value&&(l.value=S+_.clientX-v,c.value=m+_.clientY-T)}function h(){p.value=!1}function g(_){_.target.closest(".toolbar")||(_.touches.length===1?(p.value=!0,v=_.touches[0].clientX,T=_.touches[0].clientY,S=l.value,m=c.value):_.touches.length===2&&(W=b(_.touches)))}function w(_){if(_.preventDefault(),_.touches.length===1&&p.value)l.value=S+_.touches[0].clientX-v,c.value=m+_.touches[0].clientY-T;else if(_.touches.length===2){const F=b(_.touches);if(W>0){const X=F/W;o.value=Math.min(Math.max(o.value*X,V.value),gs),Q()}W=F}}function y(){p.value=!1,W=0}function b(_){const F=_[0].clientX-_[1].clientX,X=_[0].clientY-_[1].clientY;return Math.sqrt(F*F+X*X)}function M(_){_.target.closest(".toolbar")||Ut()}function k(_){switch(_.key){case"+":case"=":R();break;case"-":fe();break;case"1":he(N);break;case"0":he(D);break;case"f":case"F":Ut();break;case"Escape":a.value&&(_.preventDefault(),document.exitFullscreen());break;case"[":ve();break;case"]":Ce();break;case"r":case"R":bt();break;case" ":_.preventDefault(),U();break}}function P(){n.value&&(I.value=n.value.naturalWidth,j.value=n.value.naturalHeight,s.value=!1,ae(),D())}function x(){s.value=!1,i.value=!0}function B(){ae(),t.value&&(J=new ResizeObserver(()=>{Wt()}),J.observe(t.value))}function L(){J&&(J.disconnect(),J=null)}return qe(()=>{B(),document.addEventListener("keydown",k),document.addEventListener("mousemove",f),document.addEventListener("mouseup",h),document.addEventListener("fullscreenchange",ft),window.addEventListener("resize",Wt)}),Ye(()=>{L(),xt(),document.removeEventListener("keydown",k),document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",h),document.removeEventListener("fullscreenchange",ft),window.removeEventListener("resize",ae)}),(_,F)=>(Y(),oe("div",{ref_key:"containerRef",ref:t,class:Ae(["viewer",{dragging:p.value,animated:$.value,fullscreen:a.value,"hide-controls":a.value&&!u.value}]),onWheel:Nn(wt,["prevent"]),onMousedown:Zs,onMousemove:yn,onTouchstart:g,onTouchmove:Nn(w,["prevent"]),onTouchend:y,onDblclick:M},[s.value?(Y(),oe("div",ta,[...F[0]||(F[0]=[E("div",{class:"spinner"},null,-1),E("span",null,"加载中...",-1)])])):i.value?(Y(),oe("div",na,[...F[1]||(F[1]=[E("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[E("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),E("circle",{cx:"8.5",cy:"8.5",r:"1.5"}),E("path",{d:"M21 15l-5-5L5 21"})],-1),E("p",null,"无法加载图片",-1)])])):ke("",!0),Eo(E("div",{class:"image-container",style:Ve({transform:`translate(${l.value}px, ${c.value}px)`})},[E("img",{ref_key:"imgRef",ref:n,src:e.url,alt:e.name,draggable:"false",onLoad:P,onError:x},null,40,sa)],4),[[ar,!s.value&&!i.value]]),!s.value&&!i.value?(Y(),oe("div",ia,[E("button",{onClick:fe,title:"缩小 (-)"},[Z(C(de),{icon:"lucide:zoom-out"})]),E("span",oa,De(se.value),1),E("button",{onClick:R,title:"放大 (+)"},[Z(C(de),{icon:"lucide:zoom-in"})]),F[2]||(F[2]=E("div",{class:"divider"},null,-1)),E("button",{onClick:ve,title:"逆时针旋转 ([)"},[Z(C(de),{icon:"lucide:rotate-ccw"})]),E("button",{onClick:Ce,title:"顺时针旋转 (])"},[Z(C(de),{icon:"lucide:rotate-cw"})]),F[3]||(F[3]=E("div",{class:"divider"},null,-1)),E("button",{class:"fit-toggle",onClick:U,title:`${O.value} (空格)`},[K.value?(Y(),Pe(C(de),{key:0,icon:"lucide:maximize-2"})):(Y(),Pe(C(de),{key:1,icon:"lucide:minimize-2"})),E("span",null,De(O.value),1)],8,ra),F[4]||(F[4]=E("div",{class:"divider"},null,-1)),E("button",{onClick:bt,title:"重置 (R)"},[Z(C(de),{icon:"lucide:refresh-ccw"})]),E("button",{onClick:Ut,title:a.value?"退出全屏 (F)":"全屏 (F)"},[a.value?(Y(),Pe(C(de),{key:0,icon:"lucide:minimize-2"})):(Y(),Pe(C(de),{key:1,icon:"lucide:fullscreen"}))],8,la)])):ke("",!0)],34))}}),et=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},ua=et(ca,[["__scopeId","data-v-25495e83"]]);function pn(e,t=!1){if(!e||isNaN(e))return"0:00";const n=Math.floor(e/3600),s=Math.floor(e%3600/60),i=Math.floor(e%60);return n>0||t?`${n}:${String(s).padStart(2,"0")}:${String(i).padStart(2,"0")}`:`${s}:${String(i).padStart(2,"0")}`}function aa(e,t){return`${pn(e)} / ${pn(t)}`}function wr(e){const t=z(!0),n=z(!1),s=z(!1),i=z(!1),o=z(0),r=z(0),l=z(0),c=z(1),a=z(1),u=ge(()=>r.value?o.value/r.value*100:0),d=ge(()=>r.value?l.value/r.value*100:0),p=ge(()=>aa(o.value,r.value)),v=[.5,.75,1,1.25,1.5,2];function T(){const R=e();R&&(R.paused?R.play():R.pause())}function S(){const R=e();R&&R.play()}function m(){const R=e();R&&R.pause()}function I(){const R=e();R&&(R.muted=!R.muted,i.value=R.muted)}function j(R){const fe=e();if(!fe)return;const ve=Math.max(0,Math.min(1,R));fe.volume=ve,c.value=ve,fe.muted=!1,i.value=!1}function H(R){const fe=e();fe&&j(fe.volume+R)}function A(R){const fe=e();fe&&(fe.currentTime=Math.max(0,Math.min(r.value,R)))}function W(R){A(R*r.value)}function $(R){const fe=e();fe&&(fe.currentTime+=R)}function J(R){const fe=e();fe&&(fe.playbackRate=R,a.value=R)}function ne(){s.value=!0}function V(){s.value=!1}let K=!1;function se(R){K=R}function O(){if(K)return;const R=e();R&&(o.value=R.currentTime,R.buffered.length>0&&(l.value=R.buffered.end(R.buffered.length-1)))}function Q(){const R=e();R&&(r.value=R.duration,t.value=!1)}function ae(){t.value=!1}function he(){t.value=!0}function D(){t.value=!1,n.value=!0}function N(R){switch(R.code){case"Space":R.preventDefault(),T();break;case"ArrowLeft":$(-10);break;case"ArrowRight":$(10);break;case"ArrowUp":R.preventDefault(),H(.1);break;case"ArrowDown":R.preventDefault(),H(-.1);break;case"KeyM":I();break}}function U(){const R=e();R==null||R.play().catch(()=>{})}return qe(()=>{document.addEventListener("keydown",N)}),Ye(()=>{document.removeEventListener("keydown",N)}),{isLoading:t,hasError:n,isPlaying:s,isMuted:i,currentTime:o,duration:r,buffered:l,volume:c,playbackRate:a,playedPercent:u,bufferedPercent:d,timeDisplay:p,speedOptions:v,togglePlay:T,play:S,pause:m,toggleMute:I,setVolume:j,adjustVolume:H,seekTo:A,seekToPercent:W,seek:$,setSpeed:J,autoPlay:U,setPauseTimeUpdate:se,handlePlay:ne,handlePause:V,handleTimeUpdate:O,handleLoadedMetadata:Q,handleCanPlay:ae,handleWaiting:he,handleError:D,formatTime:pn}}function fa(e){const t=z(!1);async function n(){const c=e();c&&(document.fullscreenElement?await document.exitFullscreen():await c.requestFullscreen())}async function s(){const c=e();!c||document.fullscreenElement||await c.requestFullscreen()}async function i(){document.fullscreenElement&&await document.exitFullscreen()}let o;function r(){t.value=!!document.fullscreenElement,o==null||o(t.value)}function l(c){o=c}return qe(()=>{document.addEventListener("fullscreenchange",r)}),Ye(()=>{document.removeEventListener("fullscreenchange",r)}),{isFullscreen:t,toggleFullscreen:n,enterFullscreen:s,exitFullscreen:i,setOnFullscreenChange:l}}function Bt(e){const n=e.trim().replace(",",".").match(/^(?:(\d+):)?(\d+):(\d+(?:\.\d+)?)$/);if(!n)return 0;const s=n[1]?parseInt(n[1],10):0,i=parseInt(n[2],10),o=parseFloat(n[3]);return s*3600+i*60+o}function Fs(e){const t=[],n=e.trim().split(/\n\s*\n/);for(const s of n){const i=s.trim().split(`
|
|
18
|
+
`);if(i.length<2)continue;let o=0;/-->/.test(i[0])||(o=1);const l=i[o].match(/(\d+:\d+:\d+[,\.]\d+)\s*-->\s*(\d+:\d+:\d+[,\.]\d+)/);if(!l)continue;const c=Bt(l[1]),a=Bt(l[2]),u=i.slice(o+1).join(`
|
|
19
|
+
`).trim();u&&t.push({start:c,end:a,text:u})}return t}function Cr(e){const t=[],n=e.split(`
|
|
20
|
+
`);let s=0;for(;s<n.length&&!n[s].includes("-->");)s++;for(;s<n.length;){const o=n[s].trim().match(/(\d+:?\d+:\d+\.\d+)\s*-->\s*(\d+:?\d+:\d+\.\d+)/);if(o){const r=Bt(o[1]),l=Bt(o[2]),c=[];for(s++;s<n.length&&n[s].trim()!==""&&!n[s].includes("-->");)c.push(n[s].trim()),s++;const a=c.join(`
|
|
21
|
+
`);a&&t.push({start:r,end:l,text:a})}else s++}return t}function Tr(e){const t=[],n=e.split(`
|
|
22
|
+
`);let s=!1,i=[],o=-1,r=-1,l=-1;for(const c of n){const a=c.trim();if(a.toLowerCase()==="[events]"){s=!0;continue}if(a.startsWith("[")&&a.endsWith("]")){s=!1;continue}if(s){if(a.toLowerCase().startsWith("format:")){i=a.substring(7).trim().split(",").map(d=>d.trim().toLowerCase()),o=i.indexOf("text"),r=i.indexOf("start"),l=i.indexOf("end");continue}if(a.toLowerCase().startsWith("dialogue:")){const u=a.substring(9).trim(),d=[];let p="",v=0;for(let T=0;T<u.length;T++){const S=u[T];S===","&&v<i.length-1?(d.push(p.trim()),p="",v++):p+=S}if(d.push(p.trim()),r>=0&&l>=0&&o>=0){const T=Bt(d[r]||"0"),S=Bt(d[l]||"0");let m=d[o]||"";m=m.replace(/\{[^}]*\}/g,"").replace(/\\N/g,`
|
|
23
|
+
`).replace(/\\n/g,`
|
|
24
|
+
`).replace(/\\h/g," ").trim(),m&&t.push({start:T,end:S,text:m})}}}}return t.sort((c,a)=>c.start-a.start),t}function da(e){const t=e.trim();return t.startsWith("WEBVTT")?"vtt":t.includes("[Script Info]")||t.includes("[Events]")?"ass":/^\d+\s*\n/.test(t)?"srt":"unknown"}function ha(e){switch(da(e)){case"srt":return Fs(e);case"vtt":return Cr(e);case"ass":return Tr(e);default:return Fs(e)}}function pa(e,t){switch(t.toLowerCase().replace(".","")){case"srt":return Fs(e);case"vtt":case"webvtt":return Cr(e);case"ass":case"ssa":return Tr(e);default:return ha(e)}}function ga(e,t){for(const n of e)if(t>=n.start&&t<=n.end)return n;return null}function ma(e){const t=e.toLowerCase(),n=[{pattern:/\.zh[-_]?(cn|hans?)?\./,label:"简体中文",language:"zh-CN"},{pattern:/\.zh[-_]?(tw|hant?)\./,label:"繁體中文",language:"zh-TW"},{pattern:/\.chs?\./,label:"简体中文",language:"zh-CN"},{pattern:/\.cht?\./,label:"繁體中文",language:"zh-TW"},{pattern:/\.chinese\./,label:"中文",language:"zh"},{pattern:/\.en(g(lish)?)?\./,label:"English",language:"en"},{pattern:/\.ja(p(anese)?)?\./,label:"日本語",language:"ja"},{pattern:/\.ko(r(ean)?)?\./,label:"한국어",language:"ko"},{pattern:/\.fr(ench)?\./,label:"Français",language:"fr"},{pattern:/\.de(utsch)?\./,label:"Deutsch",language:"de"},{pattern:/\.es(panol)?\./,label:"Español",language:"es"}];for(const{pattern:s,label:i,language:o}of n)if(s.test(t))return{label:i,language:o};return{label:"字幕",language:""}}const va=["innerHTML"],ya=Ke({__name:"SubtitleOverlay",props:{cue:{},visible:{type:Boolean},fontSize:{}},setup(e){const t=e,n=ge(()=>t.fontSize||24),s=ge(()=>{var i;return(i=t.cue)!=null&&i.text?t.cue.text.replace(/</g,"<").replace(/>/g,">").replace(/\n/g,"<br>"):""});return(i,o)=>(Y(),Pe(vn,{name:"subtitle-fade"},{default:Vt(()=>[e.visible&&e.cue?(Y(),oe("div",{key:0,class:"subtitle-overlay",style:Ve({"--subtitle-font-size":n.value+"px"})},[E("div",{class:"subtitle-text",innerHTML:s.value},null,8,va)],4)):ke("",!0)]),_:1}))}}),ba=et(ya,[["__scopeId","data-v-49e97071"]]);function Sr(e){const{getElement:t,onChange:n,thumbRadius:s=0}=e,i=z(!1);function o(d){const p=t();if(!p)return 0;const v=p.getBoundingClientRect(),T=v.width-s*2,S=d-v.left-s;return Math.max(0,Math.min(1,S/T))}function r(d){const p=o(d);n(p)}function l(d){d.preventDefault(),i.value=!0,r(d.clientX),document.addEventListener("mousemove",c),document.addEventListener("mouseup",a)}function c(d){i.value&&r(d.clientX)}function a(){i.value=!1,document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",a)}function u(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",a)}return Ye(u),{isDragging:i,handleMouseDown:l,cleanup:u}}const _a={class:"progress-bar"},xa=Ke({__name:"ProgressBar",props:{played:{},buffered:{},color:{}},emits:["change"],setup(e,{emit:t}){const n=e,s=t,i=z(),{isDragging:o,handleMouseDown:r}=Sr({getElement:()=>i.value,onChange:c=>s("change",c),thumbRadius:7}),l=ge(()=>n.color||"#e11d48");return(c,a)=>(Y(),oe("div",{ref_key:"containerRef",ref:i,class:Ae(["progress-container",{dragging:C(o)}]),onMousedown:a[0]||(a[0]=(...u)=>C(r)&&C(r)(...u))},[E("div",_a,[e.buffered!==void 0?(Y(),oe("div",{key:0,class:"progress-buffered",style:Ve({width:e.buffered+"%"})},null,4)):ke("",!0),E("div",{class:"progress-played",style:Ve({width:e.played+"%",backgroundColor:l.value})},null,4),E("div",{class:"progress-thumb",style:Ve({left:e.played+"%"})},null,4)])],34))}}),wa=et(xa,[["__scopeId","data-v-a6759090"]]),Ca={class:"volume-control"},Ta={class:"volume-label"},Sa=Ke({__name:"VolumeControl",props:{volume:{},muted:{type:Boolean}},emits:["update:volume","toggleMute"],setup(e,{emit:t}){const n=e,s=t,i=z(),{isDragging:o,handleMouseDown:r}=Sr({getElement:()=>i.value,onChange:a=>s("update:volume",a),thumbRadius:6}),l=ge(()=>n.muted||n.volume<=0?"lucide:volume-x":n.volume>.5?"lucide:volume-2":"lucide:volume-1"),c=ge(()=>Math.round(n.volume*100));return(a,u)=>(Y(),oe("div",Ca,[E("button",{class:"btn",onClick:u[0]||(u[0]=d=>s("toggleMute")),title:"静音 (M)"},[Z(C(de),{icon:l.value},null,8,["icon"])]),E("div",{ref_key:"volumeTrackRef",ref:i,class:Ae(["volume-track",{dragging:C(o)}]),onMousedown:u[1]||(u[1]=(...d)=>C(r)&&C(r)(...d))},[E("div",{class:"volume-progress",style:Ve({width:e.volume*100+"%"})},null,4),E("div",{class:"volume-thumb",style:Ve({left:e.volume*100+"%"})},null,4)],34),E("span",Ta,De(c.value),1)]))}}),Pa=et(Sa,[["__scopeId","data-v-943c892f"]]),Ea=["title"],ka={class:"speed-text"},Ia={key:0,class:"speed-menu"},Ma=["onClick"],Aa=Ke({__name:"SpeedMenu",props:{speed:{},options:{},activeColor:{}},emits:["update:speed"],setup(e,{emit:t}){const n=e,s=t,i=z(!1),o=n.options||[.5,.75,1,1.25,1.5,2];function r(c){s("update:speed",c),i.value=!1}function l(){i.value=!1}return qe(()=>{document.addEventListener("click",l)}),Ye(()=>{document.removeEventListener("click",l)}),(c,a)=>(Y(),oe("div",{class:"speed-wrapper",onClick:a[1]||(a[1]=Nn(()=>{},["stop"]))},[E("button",{class:"btn speed-btn",onClick:a[0]||(a[0]=u=>i.value=!i.value),title:`播放速度: ${e.speed}x`},[E("span",ka,De(e.speed)+"x",1)],8,Ea),Z(vn,{name:"menu-fade"},{default:Vt(()=>[i.value?(Y(),oe("div",Ia,[(Y(!0),oe(je,null,No(C(o),u=>(Y(),oe("button",{key:u,class:Ae(["speed-option",{active:e.speed===u}]),style:Ve(e.speed===u?{color:e.activeColor||"#e11d48"}:{}),onClick:d=>r(u)},De(u)+"x ",15,Ma))),128))])):ke("",!0)]),_:1})]))}}),La=et(Aa,[["__scopeId","data-v-b3a92295"]]),Fa={key:0,class:"subtitle-menu"},Oa={class:"check-mark"},Ra=["onClick"],$a={class:"check-mark"},Da={class:"check-mark"},Na=Ke({__name:"SubtitleMenu",props:{tracks:{},currentTrack:{},activeColor:{}},emits:["update:currentTrack","loadSubtitle"],setup(e,{emit:t}){const n=t,s=z(!1);function i(l){n("update:currentTrack",l),s.value=!1}function o(){n("loadSubtitle"),s.value=!1}function r(){s.value=!1}return qe(()=>{document.addEventListener("click",r)}),Ye(()=>{document.removeEventListener("click",r)}),(l,c)=>(Y(),oe("div",{class:"subtitle-wrapper",onClick:c[2]||(c[2]=Nn(()=>{},["stop"]))},[E("button",{class:Ae(["btn",{active:e.currentTrack>=0}]),title:"字幕",onClick:c[0]||(c[0]=a=>s.value=!s.value)},[Z(C(de),{icon:"lucide:captions"})],2),Z(vn,{name:"menu-fade"},{default:Vt(()=>[s.value?(Y(),oe("div",Fa,[E("button",{class:Ae(["menu-option",{active:e.currentTrack===-1}]),onClick:c[1]||(c[1]=a=>i(-1))},[E("span",Oa,[e.currentTrack===-1?(Y(),Pe(C(de),{key:0,icon:"lucide:check"})):ke("",!0)]),c[3]||(c[3]=E("span",null,"关闭",-1))],2),(Y(!0),oe(je,null,No(e.tracks,(a,u)=>(Y(),oe("button",{key:u,class:Ae(["menu-option",{active:e.currentTrack===u}]),onClick:d=>i(u)},[E("span",$a,[e.currentTrack===u?(Y(),Pe(C(de),{key:0,icon:"lucide:check"})):ke("",!0)]),E("span",null,De(a.label),1)],10,Ra))),128)),c[5]||(c[5]=E("div",{class:"menu-divider"},null,-1)),E("button",{class:"menu-option load-option",onClick:o},[E("span",Da,[Z(C(de),{icon:"lucide:plus"})]),c[4]||(c[4]=E("span",null,"加载字幕...",-1))])])):ke("",!0)]),_:1})]))}}),ja=et(Na,[["__scopeId","data-v-4bc354ae"]]),Ha={key:0,class:"controls"},Ba={class:"controls-row"},Va={class:"left-controls"},Ua={class:"progress-row"},Wa={class:"time time-current"},za={class:"time time-duration"},Ka={class:"center-controls"},qa={class:"right-controls"},Ya=["title"],Ga=Ke({__name:"PlayerControls",props:{showControls:{type:Boolean},hasError:{type:Boolean},isPlaying:{type:Boolean},isMuted:{type:Boolean},currentTime:{},duration:{},playedPercent:{},bufferedPercent:{},volume:{},playbackRate:{},isFullscreen:{type:Boolean},showSubtitle:{type:Boolean},showPiP:{type:Boolean},showFullscreen:{type:Boolean},subtitleTracks:{},currentTrackIndex:{}},emits:["togglePlay","seek","progressChange","volumeChange","toggleMute","speedChange","togglePiP","toggleFullscreen","trackChange","loadSubtitle"],setup(e,{emit:t}){const n=e,s=t,i=ge(()=>pn(n.currentTime)),o=ge(()=>pn(n.duration));function r(){s("togglePlay")}function l(m){s("seek",m)}function c(m){s("progressChange",m)}function a(m){s("volumeChange",m)}function u(){s("toggleMute")}function d(m){s("speedChange",m)}function p(){s("togglePiP")}function v(){s("toggleFullscreen")}function T(m){s("trackChange",m)}function S(){s("loadSubtitle")}return(m,I)=>(Y(),Pe(vn,{name:"controls-slide"},{default:Vt(()=>[e.hasError?ke("",!0):Eo((Y(),oe("div",Ha,[E("div",Ba,[E("div",Va,[E("div",Ua,[E("span",Wa,De(i.value),1),Z(wa,{played:e.playedPercent,buffered:e.bufferedPercent,onChange:c},null,8,["played","buffered"]),E("span",za,De(o.value),1)])]),E("div",Ka,[E("button",{class:"btn",onClick:I[0]||(I[0]=j=>l(-10)),title:"后退10秒 (←)"},[Z(C(de),{icon:"lucide:skip-back"})]),E("button",{class:"btn btn-play",onClick:r,title:"播放/暂停 (空格)"},[e.isPlaying?(Y(),Pe(C(de),{key:1,icon:"lucide:pause"})):(Y(),Pe(C(de),{key:0,icon:"lucide:play"}))]),E("button",{class:"btn",onClick:I[1]||(I[1]=j=>l(10)),title:"快进10秒 (→)"},[Z(C(de),{icon:"lucide:skip-forward"})])]),E("div",qa,[Z(Pa,{volume:e.volume,muted:e.isMuted,"onUpdate:volume":a,onToggleMute:u},null,8,["volume","muted"]),Z(La,{speed:e.playbackRate,"onUpdate:speed":d},null,8,["speed"]),e.showSubtitle?(Y(),Pe(ja,{key:0,tracks:e.subtitleTracks||[],"current-track":e.currentTrackIndex??-1,"onUpdate:currentTrack":T,onLoadSubtitle:S},null,8,["tracks","current-track"])):ke("",!0),e.showPiP?(Y(),oe("button",{key:1,class:"btn",onClick:p,title:"画中画 (P)"},[Z(C(de),{icon:"lucide:picture-in-picture"})])):ke("",!0),e.showFullscreen?(Y(),oe("button",{key:2,class:"btn",onClick:v,title:e.isFullscreen?"退出全屏 (F)":"全屏 (F)"},[e.isFullscreen?(Y(),Pe(C(de),{key:1,icon:"lucide:minimize"})):(Y(),Pe(C(de),{key:0,icon:"lucide:maximize"}))],8,Ya)):ke("",!0)])])],512)),[[ar,e.showControls]])]),_:1}))}}),Pr=et(Ga,[["__scopeId","data-v-5afc016f"]]),Xa=["src"],Ja={key:0,class:"loader"},Qa={key:0,class:"big-play"},Za={key:1,class:"error-overlay"},ef=2500,tf=Ke({__name:"VideoPlayer",props:{url:{},name:{}},setup(e){const t=z(),n=z(),s=wr(()=>n.value),{isFullscreen:i,toggleFullscreen:o,exitFullscreen:r}=fa(()=>t.value),l=z([]),c=z(-1),a=z(null),u=ge(()=>c.value>=0?l.value[c.value]:null);function d(){if(!u.value){a.value=null;return}a.value=ga(u.value.cues,s.currentTime.value)}At(()=>s.currentTime.value,d),At(c,d);async function p(){const D=document.createElement("input");D.type="file",D.accept=".srt,.vtt,.ass,.ssa",D.multiple=!0,D.onchange=async()=>{var N;if((N=D.files)!=null&&N.length)for(const U of Array.from(D.files))try{const R=await U.text(),fe=U.name.split(".").pop()||"",ve=pa(R,fe);if(ve.length>0){const{label:Ce,language:bt}=ma(U.name);l.value.push({label:Ce||U.name,language:bt,cues:ve}),c.value===-1&&(c.value=0)}}catch(R){console.error("加载字幕失败:",U.name,R)}},D.click()}function v(D){c.value=D}const T=z(!0);let S;function m(){S&&(clearTimeout(S),S=void 0)}function I(){m(),s.isPlaying.value&&(S=window.setTimeout(()=>{T.value=!1},ef))}function j(){T.value=!0,I()}function H(){j()}function A(){s.isPlaying.value&&(m(),T.value=!1)}At(()=>s.isPlaying.value,D=>{D?I():(m(),T.value=!0)});let W,$=0;function J(){$++,$===1&&(W=window.setTimeout(()=>{$===1&&s.togglePlay(),$=0},200))}function ne(){W&&(clearTimeout(W),W=void 0),$=0,o()}async function V(){n.value&&(document.pictureInPictureElement?await document.exitPictureInPicture():await n.value.requestPictureInPicture())}function K(){var D;(D=window.electronAPI)!=null&&D.hideWindow&&window.electronAPI.hideWindow()}function se(){var D;(D=window.electronAPI)!=null&&D.showWindow&&window.electronAPI.showWindow()}function O(D){switch(D.code){case"KeyF":o();break;case"KeyP":V();break;case"Escape":i.value&&r();break}}function Q(D){s.setPauseTimeUpdate(!0),s.seekToPercent(D),setTimeout(()=>s.setPauseTimeUpdate(!1),100)}function ae(D){s.setVolume(D)}function he(D){s.setSpeed(D)}return qe(()=>{var D,N;document.addEventListener("keydown",O),(D=n.value)==null||D.addEventListener("enterpictureinpicture",K),(N=n.value)==null||N.addEventListener("leavepictureinpicture",se),s.autoPlay()}),Ye(()=>{var D,N;document.removeEventListener("keydown",O),(D=n.value)==null||D.removeEventListener("enterpictureinpicture",K),(N=n.value)==null||N.removeEventListener("leavepictureinpicture",se),m(),W&&clearTimeout(W)}),(D,N)=>(Y(),oe("div",{ref_key:"playerRef",ref:t,class:Ae(["player",{fullscreen:C(i),"hide-cursor":!T.value}]),onMousemove:H,onMouseleave:A},[E("video",{ref_key:"videoRef",ref:n,src:e.url,preload:"metadata",onPlay:N[0]||(N[0]=(...U)=>C(s).handlePlay&&C(s).handlePlay(...U)),onPause:N[1]||(N[1]=(...U)=>C(s).handlePause&&C(s).handlePause(...U)),onTimeupdate:N[2]||(N[2]=(...U)=>C(s).handleTimeUpdate&&C(s).handleTimeUpdate(...U)),onLoadedmetadata:N[3]||(N[3]=(...U)=>C(s).handleLoadedMetadata&&C(s).handleLoadedMetadata(...U)),onCanplay:N[4]||(N[4]=(...U)=>C(s).handleCanPlay&&C(s).handleCanPlay(...U)),onWaiting:N[5]||(N[5]=(...U)=>C(s).handleWaiting&&C(s).handleWaiting(...U)),onError:N[6]||(N[6]=(...U)=>C(s).handleError&&C(s).handleError(...U)),onClick:J,onDblclick:ne},null,40,Xa),C(s).isLoading.value&&!C(s).hasError.value?(Y(),oe("div",Ja)):ke("",!0),Z(vn,{name:"fade"},{default:Vt(()=>[!C(s).isPlaying.value&&!C(s).hasError.value?(Y(),oe("div",Qa,[...N[7]||(N[7]=[E("svg",{viewBox:"0 0 24 24",fill:"currentColor"},[E("path",{d:"M8 5v14l11-7z"})],-1)])])):ke("",!0)]),_:1}),C(s).hasError.value?(Y(),oe("div",Za,[...N[8]||(N[8]=[E("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[E("circle",{cx:"12",cy:"12",r:"10"}),E("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),E("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),E("p",null,"无法播放此视频",-1)])])):ke("",!0),Z(ba,{cue:a.value,visible:c.value>=0},null,8,["cue","visible"]),Z(Pr,{"show-controls":T.value,"has-error":C(s).hasError.value,"is-playing":C(s).isPlaying.value,"is-muted":C(s).isMuted.value,"current-time":C(s).currentTime.value,duration:C(s).duration.value,"played-percent":C(s).playedPercent.value,"buffered-percent":C(s).bufferedPercent.value,volume:C(s).volume.value,"playback-rate":C(s).playbackRate.value,"is-fullscreen":C(i),"show-subtitle":!0,"show-pi-p":!0,"show-fullscreen":!0,"subtitle-tracks":l.value,"current-track-index":c.value,onTogglePlay:C(s).togglePlay,onSeek:C(s).seek,onProgressChange:Q,onVolumeChange:ae,onToggleMute:C(s).toggleMute,onSpeedChange:he,onTogglePiP:V,onToggleFullscreen:C(o),onTrackChange:v,onLoadSubtitle:p},null,8,["show-controls","has-error","is-playing","is-muted","current-time","duration","played-percent","buffered-percent","volume","playback-rate","is-fullscreen","subtitle-tracks","current-track-index","onTogglePlay","onSeek","onToggleMute","onToggleFullscreen"])],34))}}),nf=et(tf,[["__scopeId","data-v-03e1e685"]]),sf=["src"],of={class:"content"},rf={class:"cover"},lf={class:"title"},cf={class:"controls-wrapper"},uf=Ke({__name:"AudioPlayer",props:{url:{},name:{}},setup(e){const t=z(),n=wr(()=>t.value);function s(r){n.setPauseTimeUpdate(!0),n.seekToPercent(r),setTimeout(()=>n.setPauseTimeUpdate(!1),100)}function i(r){n.setVolume(r)}function o(r){n.setSpeed(r)}return qe(()=>{n.autoPlay()}),(r,l)=>(Y(),oe("div",{class:Ae(["player",{playing:C(n).isPlaying.value}])},[l[8]||(l[8]=E("div",{class:"bg-animation"},null,-1)),E("audio",{ref_key:"audioRef",ref:t,src:e.url,preload:"metadata",onPlay:l[0]||(l[0]=(...c)=>C(n).handlePlay&&C(n).handlePlay(...c)),onPause:l[1]||(l[1]=(...c)=>C(n).handlePause&&C(n).handlePause(...c)),onTimeupdate:l[2]||(l[2]=(...c)=>C(n).handleTimeUpdate&&C(n).handleTimeUpdate(...c)),onLoadedmetadata:l[3]||(l[3]=(...c)=>C(n).handleLoadedMetadata&&C(n).handleLoadedMetadata(...c)),onCanplay:l[4]||(l[4]=(...c)=>C(n).handleCanPlay&&C(n).handleCanPlay(...c)),onWaiting:l[5]||(l[5]=(...c)=>C(n).handleWaiting&&C(n).handleWaiting(...c)),onError:l[6]||(l[6]=(...c)=>C(n).handleError&&C(n).handleError(...c))},null,40,sf),E("div",of,[E("div",rf,[Z(C(de),{icon:"lucide:music-2"})]),E("p",lf,De(e.name),1),l[7]||(l[7]=E("p",{class:"subtitle"},"音频文件",-1))]),E("div",cf,[Z(Pr,{"show-controls":!0,"has-error":C(n).hasError.value,"is-playing":C(n).isPlaying.value,"is-muted":C(n).isMuted.value,"current-time":C(n).currentTime.value,duration:C(n).duration.value,"played-percent":C(n).playedPercent.value,"buffered-percent":C(n).bufferedPercent.value,volume:C(n).volume.value,"playback-rate":C(n).playbackRate.value,"show-subtitle":!1,"show-pi-p":!1,"show-fullscreen":!1,onTogglePlay:C(n).togglePlay,onSeek:C(n).seek,onProgressChange:s,onVolumeChange:i,onToggleMute:C(n).toggleMute,onSpeedChange:o},null,8,["has-error","is-playing","is-muted","current-time","duration","played-percent","buffered-percent","volume","playback-rate","onTogglePlay","onSeek","onToggleMute"])])],2))}}),af=et(uf,[["__scopeId","data-v-fd67d77f"]]),ff={key:0,class:"titlebar-content mac"},df={class:"window-title"},hf={key:1,class:"titlebar-content windows"},pf={class:"window-title"},gf={class:"window-controls"},mf=["title"],vf={key:0,class:"loading"},yf={key:1,class:"error"},bf={key:2,class:"media-container"},_f=Ke({__name:"App",setup(e){const t=z("video"),n=z(""),s=z(""),i=z(!0),o=z(""),r=z("darwin"),l=z(!1),c=ge(()=>r.value==="darwin"),a=ge(()=>r.value==="win32"),u={image:ua,video:nf,audio:af},d=ge(()=>u[t.value]);function p(){var m,I;(I=(m=window.electronAPI)==null?void 0:m.minimizeWindow)==null||I.call(m)}function v(){var m,I;(I=(m=window.electronAPI)==null?void 0:m.toggleMaximizeWindow)==null||I.call(m)}function T(){var m,I;(I=(m=window.electronAPI)==null?void 0:m.closeWindow)==null||I.call(m)}let S;return qe(()=>{var W,$;const m=new URLSearchParams(window.location.search),I=m.get("type"),j=m.get("url"),H=m.get("name"),A=m.get("platform");if(!I||!j){o.value="参数错误:缺少必要的媒体信息",i.value=!1;return}t.value=I,n.value=decodeURIComponent(j),s.value=H?decodeURIComponent(H):"未知文件",r.value=A||"darwin",i.value=!1,document.title=s.value,S=($=(W=window.electronAPI)==null?void 0:W.onMaximizeChange)==null?void 0:$.call(W,J=>{l.value=J})}),Ye(()=>{S==null||S()}),(m,I)=>(Y(),oe("div",{class:Ae(["app",{"platform-mac":c.value,"platform-windows":a.value}])},[E("div",{class:Ae(["titlebar",{"titlebar-mac":c.value,"titlebar-windows":a.value}])},[c.value?(Y(),oe("div",ff,[E("span",df,De(s.value),1)])):(Y(),oe("div",hf,[E("span",pf,De(s.value),1),E("div",gf,[E("button",{class:"control-btn minimize",onClick:p,title:"最小化"},[Z(C(de),{icon:"lucide:minus"})]),E("button",{class:"control-btn maximize",onClick:v,title:l.value?"还原":"最大化"},[Z(C(de),{icon:l.value?"lucide:square":"lucide:maximize"},null,8,["icon"])],8,mf),E("button",{class:"control-btn close",onClick:T,title:"关闭"},[Z(C(de),{icon:"lucide:x"})])])]))],2),i.value?(Y(),oe("div",vf,[...I[0]||(I[0]=[E("div",{class:"spinner"},null,-1),E("span",null,"加载中...",-1)])])):o.value?(Y(),oe("div",yf,[I[1]||(I[1]=E("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[E("circle",{cx:"12",cy:"12",r:"10"}),E("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),E("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1)),E("p",null,De(o.value),1)])):(Y(),oe("div",bf,[(Y(),Pe(Ll(d.value),{url:n.value,name:s.value},null,8,["url","name"]))]))],2))}}),xf=et(_f,[["__scopeId","data-v-e724da56"]]);Zc(xf).mount("#app");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.viewer[data-v-25495e83]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#1a1a1a;position:relative;cursor:grab;overflow:hidden}.viewer.dragging[data-v-25495e83]{cursor:grabbing}.viewer.fullscreen[data-v-25495e83]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999}.viewer.fullscreen.hide-controls[data-v-25495e83]{cursor:none}.viewer.fullscreen.hide-controls .toolbar[data-v-25495e83]{opacity:0!important;pointer-events:none}.viewer.fullscreen .toolbar[data-v-25495e83]{opacity:1;transform:translate(-50%) translateY(0)}.loading[data-v-25495e83],.error[data-v-25495e83]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.loading[data-v-25495e83]{color:#fff9;font-size:14px}.spinner[data-v-25495e83]{width:40px;height:40px;border:3px solid rgba(255,255,255,.1);border-top-color:#fff;border-radius:50%;animation:spin-25495e83 1s linear infinite}@keyframes spin-25495e83{to{transform:rotate(360deg)}}.error svg[data-v-25495e83]{width:48px;height:48px;color:#ff6b6b}.error p[data-v-25495e83]{color:#ffffffb3;font-size:14px}.image-container[data-v-25495e83]{display:flex;align-items:center;justify-content:center;will-change:transform}img[data-v-25495e83]{max-width:none;max-height:none;object-fit:contain;box-shadow:0 20px 60px #00000080;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;will-change:transform}.viewer.animated .image-container[data-v-25495e83],.viewer.animated img[data-v-25495e83]{transition:transform .2s cubic-bezier(.25,.1,.25,1)}.toolbar[data-v-25495e83]{position:absolute;bottom:16px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:4px;padding:10px 14px;background:#181818d9;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:12px;border:1px solid rgba(255,255,255,.08);box-shadow:0 8px 32px #0006;opacity:0;transition:opacity .25s,transform .25s;-webkit-app-region:no-drag;transform:translate(-50%) translateY(8px)}.viewer:hover .toolbar[data-v-25495e83]{opacity:1;transform:translate(-50%) translateY(0)}.toolbar button[data-v-25495e83]{width:32px;height:32px;border:none;background:transparent;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#ffffffd9;transition:all .15s}.toolbar button[data-v-25495e83]:hover{background:#ffffff26;color:#fff}.toolbar button[data-v-25495e83]:active{transform:scale(.95)}.toolbar button svg[data-v-25495e83],.toolbar button[data-v-25495e83] svg{width:18px;height:18px}.toolbar button[data-v-25495e83] .iconify{font-size:18px}.toolbar .divider[data-v-25495e83]{width:1px;height:20px;background:#ffffff1f;margin:0 6px}.zoom-label[data-v-25495e83]{color:#fff9;font-size:11px;font-weight:500;min-width:42px;text-align:center;font-variant-numeric:tabular-nums}.fit-toggle[data-v-25495e83]{width:auto!important;min-width:80px;padding:0 10px!important;gap:5px}.fit-toggle span[data-v-25495e83]{font-size:11px;white-space:nowrap}.subtitle-overlay[data-v-49e97071]{position:absolute;bottom:80px;left:0;right:0;display:flex;justify-content:center;padding:0 40px;pointer-events:none;z-index:10}.subtitle-text[data-v-49e97071]{max-width:80%;padding:8px 16px;background:#000000bf;border-radius:6px;color:#fff;font-size:var(--subtitle-font-size);font-weight:500;line-height:1.4;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.8);white-space:pre-wrap;word-break:break-word}.subtitle-fade-enter-active[data-v-49e97071],.subtitle-fade-leave-active[data-v-49e97071]{transition:opacity .15s ease}.subtitle-fade-enter-from[data-v-49e97071],.subtitle-fade-leave-to[data-v-49e97071]{opacity:0}.progress-container[data-v-a6759090]{flex:1;min-width:0;height:16px;display:flex;align-items:center;cursor:pointer;padding:0 6px;margin-left:-6px;margin-right:-6px;-webkit-user-select:none;user-select:none}.progress-bar[data-v-a6759090]{flex:1;height:3px;background:#ffffff26;border-radius:2px;position:relative;transition:height .15s}.progress-container:hover .progress-bar[data-v-a6759090],.progress-container.dragging .progress-bar[data-v-a6759090]{height:5px}.progress-buffered[data-v-a6759090]{position:absolute;left:0;top:0;height:100%;background:#ffffff40;border-radius:2px;pointer-events:none}.progress-played[data-v-a6759090]{position:absolute;left:0;top:0;height:100%;border-radius:2px;pointer-events:none}.progress-thumb[data-v-a6759090]{position:absolute;top:50%;width:12px;height:12px;background:#fff;border-radius:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s;box-shadow:0 1px 4px #0006;pointer-events:none}.progress-container:hover .progress-thumb[data-v-a6759090],.progress-container.dragging .progress-thumb[data-v-a6759090]{transform:translate(-50%,-50%) scale(1)}.volume-control[data-v-943c892f]{display:flex;align-items:center;gap:6px}.btn[data-v-943c892f]{width:32px;height:32px;background:transparent;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#ffffffd9;transition:all .2s;flex-shrink:0}.btn[data-v-943c892f]:hover{background:#ffffff26;color:#fff}.btn[data-v-943c892f]:active{transform:scale(.95)}.btn[data-v-943c892f] .iconify{font-size:18px}.volume-track[data-v-943c892f]{width:60px;height:4px;background:#fff3;border-radius:2px;position:relative;cursor:pointer;-webkit-user-select:none;user-select:none;transition:height .15s}.volume-track[data-v-943c892f]:hover,.volume-track.dragging[data-v-943c892f]{height:6px}.volume-progress[data-v-943c892f]{position:absolute;left:0;top:0;height:100%;background:#3b82f6;border-radius:2px;pointer-events:none}.volume-thumb[data-v-943c892f]{position:absolute;top:50%;width:10px;height:10px;background:#fff;border-radius:50%;transform:translate(-50%,-50%) scale(0);pointer-events:none;box-shadow:0 1px 3px #0000004d;transition:transform .15s}.volume-track:hover .volume-thumb[data-v-943c892f],.volume-track.dragging .volume-thumb[data-v-943c892f]{transform:translate(-50%,-50%) scale(1)}.volume-label[data-v-943c892f]{font-size:11px;font-weight:500;color:#fff9;min-width:24px;text-align:right;font-variant-numeric:tabular-nums}.speed-wrapper[data-v-b3a92295]{position:relative}.btn[data-v-b3a92295]{width:32px;height:32px;background:transparent;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#ffffffd9;transition:all .15s}.btn[data-v-b3a92295]:hover{background:#ffffff26;color:#fff}.btn[data-v-b3a92295]:active{transform:scale(.95)}.speed-text[data-v-b3a92295]{font-size:11px;font-weight:600;line-height:1}.speed-menu[data-v-b3a92295]{position:absolute;bottom:100%;right:0;margin-bottom:8px;background:#181818f2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:10px;padding:6px;min-width:90px;border:1px solid rgba(255,255,255,.08);box-shadow:0 8px 32px #00000080}.speed-option[data-v-b3a92295]{display:block;width:100%;padding:7px 12px;background:transparent;border:none;color:#fffc;font-size:12px;text-align:left;border-radius:5px;cursor:pointer;transition:background .15s}.speed-option[data-v-b3a92295]:hover{background:#ffffff1f}.speed-option.active[data-v-b3a92295]{font-weight:600}.menu-fade-enter-active[data-v-b3a92295],.menu-fade-leave-active[data-v-b3a92295]{transition:opacity .15s ease,transform .15s ease}.menu-fade-enter-from[data-v-b3a92295],.menu-fade-leave-to[data-v-b3a92295]{opacity:0;transform:translateY(6px)}.subtitle-wrapper[data-v-4bc354ae]{position:relative}.btn[data-v-4bc354ae]{width:32px;height:32px;background:transparent;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#ffffffd9;transition:all .15s}.btn[data-v-4bc354ae]:hover{background:#ffffff26;color:#fff}.btn[data-v-4bc354ae]:active{transform:scale(.95)}.btn.active[data-v-4bc354ae]{color:#22c55e}.btn[data-v-4bc354ae] .iconify{font-size:18px}.subtitle-menu[data-v-4bc354ae]{position:absolute;bottom:calc(100% + 8px);right:0;background:#181818f2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:10px;padding:6px;min-width:140px;border:1px solid rgba(255,255,255,.08);box-shadow:0 8px 32px #00000080}.menu-option[data-v-4bc354ae]{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;background:transparent;border:none;color:#fffc;font-size:13px;text-align:left;border-radius:6px;cursor:pointer;transition:background .15s}.menu-option[data-v-4bc354ae]:hover{background:#ffffff1f}.menu-option.active[data-v-4bc354ae]{color:#22c55e}.check-mark[data-v-4bc354ae]{width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.check-mark[data-v-4bc354ae] .iconify{font-size:14px}.load-option[data-v-4bc354ae]{color:#fff9}.load-option .check-mark[data-v-4bc354ae]{color:#ffffff80}.menu-divider[data-v-4bc354ae]{height:1px;margin:4px 6px;background:#ffffff1a}.menu-fade-enter-active[data-v-4bc354ae],.menu-fade-leave-active[data-v-4bc354ae]{transition:opacity .15s ease,transform .15s ease}.menu-fade-enter-from[data-v-4bc354ae],.menu-fade-leave-to[data-v-4bc354ae]{opacity:0;transform:translateY(6px)}.controls[data-v-5afc016f]{position:absolute;bottom:16px;left:16px;right:16px;background:#181818d9;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:12px;border:1px solid rgba(255,255,255,.08);padding:12px 16px;box-shadow:0 8px 32px #0006;-webkit-app-region:no-drag}.controls-slide-enter-active[data-v-5afc016f],.controls-slide-leave-active[data-v-5afc016f]{transition:opacity .25s ease,transform .25s ease}.controls-slide-enter-from[data-v-5afc016f],.controls-slide-leave-to[data-v-5afc016f]{opacity:0;transform:translateY(12px)}.progress-row[data-v-5afc016f]{display:flex;align-items:center;gap:12px;min-width:0;flex:1}.controls-row[data-v-5afc016f]{display:flex;align-items:center;justify-content:space-between;gap:20px}.left-controls[data-v-5afc016f]{display:flex;align-items:center;gap:8px;flex:1;min-width:0;margin-right:50px}.center-controls[data-v-5afc016f]{display:flex;align-items:center;gap:4px;flex-shrink:0}.right-controls[data-v-5afc016f]{display:flex;align-items:center;gap:4px;flex-shrink:0;justify-content:flex-end}.btn[data-v-5afc016f]{width:32px;height:32px;background:transparent;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#ffffffd9;transition:all .15s}.btn[data-v-5afc016f]:hover{background:#ffffff26;color:#fff}.btn[data-v-5afc016f]:active{transform:scale(.95)}.btn[data-v-5afc016f] .iconify{font-size:18px}.btn-play[data-v-5afc016f]{width:36px;height:36px}.btn-play[data-v-5afc016f] .iconify{font-size:20px}.time[data-v-5afc016f]{color:#ffffffb3;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;flex-shrink:0}.time-current[data-v-5afc016f]{text-align:left}.time-duration[data-v-5afc016f]{text-align:right}.player[data-v-03e1e685]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#000;position:relative;cursor:pointer}.player.hide-cursor[data-v-03e1e685]{cursor:none}video[data-v-03e1e685]{max-width:100%;max-height:100%;display:block}.player.fullscreen video[data-v-03e1e685]{width:100%;height:100%;max-width:none;max-height:none}.loader[data-v-03e1e685]{position:absolute;width:48px;height:48px;border:3px solid rgba(255,255,255,.15);border-top-color:#fff;border-radius:50%;animation:spin-03e1e685 1s linear infinite}@keyframes spin-03e1e685{to{transform:rotate(360deg)}}.big-play[data-v-03e1e685]{position:absolute;width:72px;height:72px;background:#00000080;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:50%;display:flex;align-items:center;justify-content:center;pointer-events:none}.big-play svg[data-v-03e1e685]{width:32px;height:32px;fill:#fff;margin-left:3px}.fade-enter-active[data-v-03e1e685],.fade-leave-active[data-v-03e1e685]{transition:opacity .2s ease}.fade-enter-from[data-v-03e1e685],.fade-leave-to[data-v-03e1e685]{opacity:0}.error-overlay[data-v-03e1e685]{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#000000e6}.error-overlay svg[data-v-03e1e685]{width:48px;height:48px;color:#ef4444}.error-overlay p[data-v-03e1e685]{color:#ffffffb3;font-size:14px}.player[data-v-fd67d77f]{width:100%;height:100%;display:flex;flex-direction:column;background:linear-gradient(145deg,#1a1a2e,#16213e,#0f3460);position:relative;overflow:hidden}.bg-animation[data-v-fd67d77f]{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.4;background:radial-gradient(circle at 20% 80%,rgba(236,72,153,.3) 0%,transparent 50%),radial-gradient(circle at 80% 20%,rgba(99,102,241,.3) 0%,transparent 50%);animation:bgPulse-fd67d77f 8s ease-in-out infinite}@keyframes bgPulse-fd67d77f{0%,to{transform:scale(1);opacity:.4}50%{transform:scale(1.1);opacity:.6}}.player.playing .bg-animation[data-v-fd67d77f]{animation:bgPulseActive-fd67d77f 2s ease-in-out infinite}@keyframes bgPulseActive-fd67d77f{0%,to{transform:scale(1);opacity:.5}50%{transform:scale(1.15);opacity:.8}}.content[data-v-fd67d77f]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(20px,5vw,40px) clamp(24px,6vw,40px);position:relative;z-index:1;min-height:0}.cover[data-v-fd67d77f]{width:clamp(120px,min(25vw,25vh),180px);height:clamp(120px,min(25vw,25vh),180px);background:linear-gradient(135deg,#ec4899,#8b5cf6,#6366f1);border-radius:clamp(24px,6vw,36px);display:flex;align-items:center;justify-content:center;box-shadow:0 25px 80px #ec489966,0 10px 40px #0000004d;margin-bottom:clamp(16px,4vw,32px);transition:transform .3s,box-shadow .3s;flex-shrink:0}.player.playing .cover[data-v-fd67d77f]{animation:coverPulse-fd67d77f 2s ease-in-out infinite}@keyframes coverPulse-fd67d77f{0%,to{transform:scale(1)}50%{transform:scale(1.03)}}.cover[data-v-fd67d77f] .iconify{width:44%;height:44%;max-width:80px;max-height:80px;font-size:80px;color:#fffffff2}.title[data-v-fd67d77f]{color:#fff;font-size:clamp(14px,2.5vw,18px);font-weight:600;text-align:center;max-width:min(90%,calc(100% - 48px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:clamp(10px,2.5vw,16px);padding:0 clamp(12px,3vw,0)}.subtitle[data-v-fd67d77f]{color:#ffffff80;font-size:clamp(11px,2vw,13px);padding:0 clamp(12px,3vw,0)}.controls-wrapper[data-v-fd67d77f]{width:100%;position:relative;z-index:1;padding:0 clamp(12px,3vw,16px) clamp(12px,3vw,16px);flex-shrink:0}.app[data-v-e724da56]{width:100%;height:100%;position:relative;display:flex;flex-direction:column}.titlebar[data-v-e724da56]{position:absolute;top:0;left:0;right:0;z-index:1000;-webkit-app-region:drag;background:#1c1c1ef2;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid rgba(255,255,255,.08)}.titlebar-content[data-v-e724da56]{display:flex;align-items:center;height:100%}.window-title[data-v-e724da56]{font-size:13px;font-weight:500;color:#ffffffd9;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.titlebar-mac[data-v-e724da56]{height:38px}.titlebar-content.mac[data-v-e724da56]{justify-content:center;padding-left:80px;padding-right:80px}.titlebar-mac .window-title[data-v-e724da56]{max-width:300px}.titlebar-windows[data-v-e724da56]{height:32px}.titlebar-content.windows[data-v-e724da56]{justify-content:space-between;padding-left:12px}.titlebar-windows .window-title[data-v-e724da56]{max-width:400px}.window-controls[data-v-e724da56]{display:flex;height:100%;-webkit-app-region:no-drag}.control-btn[data-v-e724da56]{width:46px;height:100%;border:none;background:transparent;color:#ffffffbf;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,color .15s;font-size:16px}.control-btn[data-v-e724da56]:hover{background:#ffffff1a;color:#fffffff2}.control-btn.close[data-v-e724da56]:hover{background:#e81123;color:#fff}.control-btn[data-v-e724da56]:active{background:#ffffff0d}.control-btn.close[data-v-e724da56]:active{background:#bf0f1d}.media-container[data-v-e724da56],.loading[data-v-e724da56],.error[data-v-e724da56]{flex:1;width:100%;height:100%;padding-top:38px;overflow:hidden}.platform-windows .media-container[data-v-e724da56],.platform-windows .loading[data-v-e724da56],.platform-windows .error[data-v-e724da56]{padding-top:32px}.loading[data-v-e724da56]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#fff9;font-size:14px}.spinner[data-v-e724da56]{width:40px;height:40px;border:3px solid rgba(255,255,255,.1);border-top-color:#fff;border-radius:50%;animation:spin-e724da56 1s linear infinite}@keyframes spin-e724da56{to{transform:rotate(360deg)}}.error[data-v-e724da56]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.error svg[data-v-e724da56]{width:48px;height:48px;color:#ff6b6b}.error p[data-v-e724da56]{color:#ffffffb3;font-size:14px}*{margin:0;padding:0;box-sizing:border-box}html,body,#app{width:100%;height:100%;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,Roboto,sans-serif;-webkit-user-select:none;user-select:none;background:#0d0d0d}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#ffffff4d}
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta
|
|
7
|
+
http-equiv="Content-Security-Policy"
|
|
8
|
+
content="default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: app: file:; media-src 'self' app: file:; connect-src 'self' https://api.iconify.design https://api.simplesvg.com https://api.unisvg.com;"
|
|
9
|
+
/>
|
|
10
|
+
<title>媒体预览</title>
|
|
11
|
+
<script type="module" crossorigin src="./assets/index-DeGaGPLP.js"></script>
|
|
12
|
+
<link rel="stylesheet" crossorigin href="./assets/style-CLLWaNtJ.css">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<div id="app"></div>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
|
18
|
+
|
package/dist/path.cjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/path.ts
|
|
21
|
+
var path_exports = {};
|
|
22
|
+
__export(path_exports, {
|
|
23
|
+
buildPreviewUrl: () => buildPreviewUrl,
|
|
24
|
+
getPreviewHtmlPath: () => getPreviewHtmlPath
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(path_exports);
|
|
27
|
+
var import_path = require("path");
|
|
28
|
+
function getPreviewHtmlPath() {
|
|
29
|
+
return (0, import_path.join)(__dirname, "index.html");
|
|
30
|
+
}
|
|
31
|
+
function buildPreviewUrl(params) {
|
|
32
|
+
const searchParams = new URLSearchParams({
|
|
33
|
+
type: params.type,
|
|
34
|
+
url: encodeURIComponent(params.url),
|
|
35
|
+
name: encodeURIComponent(params.name)
|
|
36
|
+
});
|
|
37
|
+
return `file://${getPreviewHtmlPath()}?${searchParams.toString()}`;
|
|
38
|
+
}
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
buildPreviewUrl,
|
|
42
|
+
getPreviewHtmlPath
|
|
43
|
+
});
|
package/dist/path.d.cts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取预览页面 HTML 文件的绝对路径
|
|
3
|
+
* 使用 __dirname 在运行时解析(tsup 会正确处理)
|
|
4
|
+
*/
|
|
5
|
+
declare function getPreviewHtmlPath(): string;
|
|
6
|
+
/** 构建预览页面的 URL(带参数) */
|
|
7
|
+
declare function buildPreviewUrl(params: {
|
|
8
|
+
type: 'image' | 'video' | 'audio';
|
|
9
|
+
url: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}): string;
|
|
12
|
+
|
|
13
|
+
export { buildPreviewUrl, getPreviewHtmlPath };
|
package/dist/path.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取预览页面 HTML 文件的绝对路径
|
|
3
|
+
* 使用 __dirname 在运行时解析(tsup 会正确处理)
|
|
4
|
+
*/
|
|
5
|
+
declare function getPreviewHtmlPath(): string;
|
|
6
|
+
/** 构建预览页面的 URL(带参数) */
|
|
7
|
+
declare function buildPreviewUrl(params: {
|
|
8
|
+
type: 'image' | 'video' | 'audio';
|
|
9
|
+
url: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}): string;
|
|
12
|
+
|
|
13
|
+
export { buildPreviewUrl, getPreviewHtmlPath };
|
package/dist/path.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// ../../node_modules/tsup/assets/esm_shims.js
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
var getFilename = () => fileURLToPath(import.meta.url);
|
|
5
|
+
var getDirname = () => path.dirname(getFilename());
|
|
6
|
+
var __dirname = /* @__PURE__ */ getDirname();
|
|
7
|
+
|
|
8
|
+
// src/path.ts
|
|
9
|
+
import { join } from "path";
|
|
10
|
+
function getPreviewHtmlPath() {
|
|
11
|
+
return join(__dirname, "index.html");
|
|
12
|
+
}
|
|
13
|
+
function buildPreviewUrl(params) {
|
|
14
|
+
const searchParams = new URLSearchParams({
|
|
15
|
+
type: params.type,
|
|
16
|
+
url: encodeURIComponent(params.url),
|
|
17
|
+
name: encodeURIComponent(params.name)
|
|
18
|
+
});
|
|
19
|
+
return `file://${getPreviewHtmlPath()}?${searchParams.toString()}`;
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
buildPreviewUrl,
|
|
23
|
+
getPreviewHtmlPath
|
|
24
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@huyooo/file-explorer-preview",
|
|
3
|
+
"version": "0.4.5",
|
|
4
|
+
"description": "Media preview window for File Explorer - supports image, video, and audio",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.html",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./dist/index.html",
|
|
9
|
+
"./path": {
|
|
10
|
+
"types": "./dist/path.d.ts",
|
|
11
|
+
"import": "./dist/path.js",
|
|
12
|
+
"require": "./dist/path.cjs"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "vite build && tsup",
|
|
20
|
+
"dev": "vite",
|
|
21
|
+
"preview": "vite preview",
|
|
22
|
+
"clean": "rm -rf dist"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@iconify-json/lucide": "^1.2.82",
|
|
26
|
+
"@iconify/vue": "^5.0.0",
|
|
27
|
+
"vue": "^3.5.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@vitejs/plugin-vue": "^5.0.0",
|
|
31
|
+
"tsup": "^8.0.0",
|
|
32
|
+
"typescript": "^5.0.0",
|
|
33
|
+
"vite": "^6.0.0"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"file",
|
|
37
|
+
"explorer",
|
|
38
|
+
"preview",
|
|
39
|
+
"media",
|
|
40
|
+
"video",
|
|
41
|
+
"audio",
|
|
42
|
+
"image",
|
|
43
|
+
"electron"
|
|
44
|
+
],
|
|
45
|
+
"author": "huyooo",
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
49
|
+
}
|
|
50
|
+
}
|