diff --git a/docs/assets/index.6dda6766.js b/docs/assets/index.eafff7c1.js similarity index 64% rename from docs/assets/index.6dda6766.js rename to docs/assets/index.eafff7c1.js index 0f86639..7d83277 100644 --- a/docs/assets/index.6dda6766.js +++ b/docs/assets/index.eafff7c1.js @@ -1 +1 @@ -var Eo=Object.defineProperty;var Oo=(e,t,n)=>t in e?Eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var v=(e,t,n)=>(Oo(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function nr(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}function rr(e){if(I(e)){const t={};for(let n=0;n{if(n){const r=n.split(Mo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function gn(e){let t="";if(ae(e))t=e;else if(I(e))for(let n=0;nae(e)?e:e==null?"":I(e)||te(e)&&(e.toString===Ti||!N(e.toString))?JSON.stringify(e,Si,2):String(e),Si=(e,t)=>t&&t.__v_isRef?Si(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Fi(t)?{[`Set(${t.size})`]:[...t.values()]}:te(t)&&!I(t)&&!Wi(t)?String(t):t,V={},vt=[],Re=()=>{},Do=()=>!1,ko=/^on[^a-z]/,yn=e=>ko.test(e),ir=e=>e.startsWith("onUpdate:"),ye=Object.assign,or=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ro=Object.prototype.hasOwnProperty,$=(e,t)=>Ro.call(e,t),I=Array.isArray,_t=e=>bn(e)==="[object Map]",Fi=e=>bn(e)==="[object Set]",N=e=>typeof e=="function",ae=e=>typeof e=="string",sr=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",xi=e=>te(e)&&N(e.then)&&N(e.catch),Ti=Object.prototype.toString,bn=e=>Ti.call(e),$o=e=>bn(e).slice(8,-1),Wi=e=>bn(e)==="[object Object]",lr=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,rn=nr(",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))},jo=/-(\w)/g,St=vn(e=>e.replace(jo,(t,n)=>n?n.toUpperCase():"")),Uo=/\B([A-Z])/g,Tt=vn(e=>e.replace(Uo,"-$1").toLowerCase()),Pi=vn(e=>e.charAt(0).toUpperCase()+e.slice(1)),An=vn(e=>e?`on${Pi(e)}`:""),$t=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ei=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Nr;const zo=()=>Nr||(Nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class qo{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Oi=e=>(e.w&rt)>0,Ai=e=>(e.n&rt)>0,Qo=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":I(e)?lr(n)&&l.push(s.get("length")):(l.push(s.get(dt)),_t(e)&&l.push(s.get(jn)));break;case"delete":I(e)||(l.push(s.get(dt)),_t(e)&&l.push(s.get(jn)));break;case"set":_t(e)&&l.push(s.get(dt));break}if(l.length===1)l[0]&&Un(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);Un(cr(c))}}function Un(e,t){const n=I(e)?e:[...e];for(const r of n)r.computed&&Dr(r);for(const r of n)r.computed||Dr(r)}function Dr(e,t){(e!==Be||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Yo=nr("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(sr)),Go=ur(),Zo=ur(!1,!0),es=ur(!0),kr=ts();function ts(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=q(this);for(let o=0,s=this.length;o{e[t]=function(...n){Wt();const r=q(this)[t].apply(this,n);return Pt(),r}}),e}function ur(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?ys:ki:t?Di:Bi).get(r))return r;const s=I(r);if(!e&&s&&$(kr,i))return Reflect.get(kr,i,o);const l=Reflect.get(r,i,o);return(sr(i)?Ii.has(i):Yo(i))||(e||Pe(r,"get",i),t)?l:ce(l)?s&&lr(i)?l:l.value:te(l)?e?Ri(l):hr(l):l}}const ns=Li(),rs=Li(!0);function Li(e=!1){return function(n,r,i,o){let s=n[r];if(Ft(s)&&ce(s)&&!ce(i))return!1;if(!e&&(!dn(i)&&!Ft(i)&&(s=q(s),i=q(i)),!I(n)&&ce(s)&&!ce(i)))return s.value=i,!0;const l=I(n)&&lr(r)?Number(r)e,_n=e=>Reflect.getPrototypeOf(e);function Jt(e,t,n=!1,r=!1){e=e.__v_raw;const i=q(e),o=q(t);n||(t!==o&&Pe(i,"get",t),Pe(i,"get",o));const{has:s}=_n(i),l=r?fr:n?mr:jt;if(s.call(i,t))return l(e.get(t));if(s.call(i,o))return l(e.get(o));e!==i&&e.get(t)}function Yt(e,t=!1){const n=this.__v_raw,r=q(n),i=q(e);return t||(e!==i&&Pe(r,"has",e),Pe(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Gt(e,t=!1){return e=e.__v_raw,!t&&Pe(q(e),"iterate",dt),Reflect.get(e,"size",e)}function Rr(e){e=q(e);const t=q(this);return _n(t).has.call(t,e)||(t.add(e),Qe(t,"add",e,e)),this}function $r(e,t){t=q(t);const n=q(this),{has:r,get:i}=_n(n);let o=r.call(n,e);o||(e=q(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?$t(t,s)&&Qe(n,"set",e,t):Qe(n,"add",e,t),this}function jr(e){const t=q(this),{has:n,get:r}=_n(t);let i=n.call(t,e);i||(e=q(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Qe(t,"delete",e,void 0),o}function Ur(){const e=q(this),t=e.size!==0,n=e.clear();return t&&Qe(e,"clear",void 0,void 0),n}function Zt(e,t){return function(r,i){const o=this,s=o.__v_raw,l=q(s),c=t?fr:e?mr:jt;return!e&&Pe(l,"iterate",dt),s.forEach((u,d)=>r.call(i,c(u),c(d),o))}}function en(e,t,n){return function(...r){const i=this.__v_raw,o=q(i),s=_t(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=i[e](...r),d=n?fr:t?mr:jt;return!t&&Pe(o,"iterate",c?jn:dt),{next(){const{value:h,done:m}=u.next();return m?{value:h,done:m}:{value:l?[d(h[0]),d(h[1])]:d(h),done:m}},[Symbol.iterator](){return this}}}}function Ye(e){return function(...t){return e==="delete"?!1:this}}function as(){const e={get(o){return Jt(this,o)},get size(){return Gt(this)},has:Yt,add:Rr,set:$r,delete:jr,clear:Ur,forEach:Zt(!1,!1)},t={get(o){return Jt(this,o,!1,!0)},get size(){return Gt(this)},has:Yt,add:Rr,set:$r,delete:jr,clear:Ur,forEach:Zt(!1,!0)},n={get(o){return Jt(this,o,!0)},get size(){return Gt(this,!0)},has(o){return Yt.call(this,o,!0)},add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear"),forEach:Zt(!0,!1)},r={get(o){return Jt(this,o,!0,!0)},get size(){return Gt(this,!0)},has(o){return Yt.call(this,o,!0)},add:Ye("add"),set:Ye("set"),delete:Ye("delete"),clear:Ye("clear"),forEach:Zt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=en(o,!1,!1),n[o]=en(o,!0,!1),t[o]=en(o,!1,!0),r[o]=en(o,!0,!0)}),[e,n,t,r]}const[us,fs,ds,hs]=as();function dr(e,t){const n=t?e?hs:ds:e?fs:us;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get($(n,i)&&i in r?n:r,i,o)}const ps={get:dr(!1,!1)},ms={get:dr(!1,!0)},gs={get:dr(!0,!1)},Bi=new WeakMap,Di=new WeakMap,ki=new WeakMap,ys=new WeakMap;function bs(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vs(e){return e.__v_skip||!Object.isExtensible(e)?0:bs($o(e))}function hr(e){return Ft(e)?e:pr(e,!1,Ni,ps,Bi)}function _s(e){return pr(e,!1,cs,ms,Di)}function Ri(e){return pr(e,!0,ls,gs,ki)}function pr(e,t,n,r,i){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=vs(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return i.set(e,l),l}function Ct(e){return Ft(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function dn(e){return!!(e&&e.__v_isShallow)}function $i(e){return Ct(e)||Ft(e)}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function ji(e){return fn(e,"__v_skip",!0),e}const jt=e=>te(e)?hr(e):e,mr=e=>te(e)?Ri(e):e;function Ui(e){tt&&Be&&(e=q(e),Hi(e.dep||(e.dep=cr())))}function zi(e,t){e=q(e),e.dep&&Un(e.dep)}function ce(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return qi(e,!1)}function on(e){return qi(e,!0)}function qi(e,t){return ce(e)?e:new Cs(e,t)}class Cs{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:jt(t)}get value(){return Ui(this),this._value}set value(t){const n=this.__v_isShallow||dn(t)||Ft(t);t=n?t:q(t),$t(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:jt(t),zi(this))}}function Ne(e){return ce(e)?e.value:e}const ws={get:(e,t,n)=>Ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ce(i)&&!ce(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ki(e){return Ct(e)?e:new Proxy(e,ws)}var Vi;class Ss{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Vi]=!1,this._dirty=!0,this.effect=new ar(t,()=>{this._dirty||(this._dirty=!0,zi(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=q(this);return Ui(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Vi="__v_isReadonly";function Fs(e,t,n=!1){let r,i;const o=N(e);return o?(r=e,i=Re):(r=e.get,i=e.set),new Ss(r,i,o||!i,n)}function nt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Cn(o,t,n)}return i}function Ae(e,t,n,r){if(N(e)){const o=nt(e,t,n,r);return o&&xi(o)&&o.catch(s=>{Cn(s,t,n)}),o}const i=[];for(let o=0;o>>1;zt(me[r])ze&&me.splice(t,1)}function Ps(e){I(e)?wt.push(...e):(!Ke||!Ke.includes(e,e.allowRecurse?ct+1:ct))&&wt.push(e),Ji()}function zr(e,t=Ut?ze+1:0){for(;tzt(n)-zt(r)),ct=0;cte.id==null?1/0:e.id,Es=(e,t)=>{const n=zt(e)-zt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gi(e){zn=!1,Ut=!0,me.sort(Es);const t=Re;try{for(ze=0;zeae(F)?F.trim():F)),h&&(i=n.map(Ei))}let l,c=r[l=An(t)]||r[l=An(St(t))];!c&&o&&(c=r[l=An(Tt(t))]),c&&Ae(c,e,6,i);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ae(u,e,6,i)}}function Zi(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},l=!1;if(!N(e)){const c=u=>{const d=Zi(u,t,!0);d&&(l=!0,ye(s,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(te(e)&&r.set(e,null),null):(I(o)?o.forEach(c=>s[c]=null):ye(s,o),te(e)&&r.set(e,s),s)}function wn(e,t){return!e||!yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),$(e,t[0].toLowerCase()+t.slice(1))||$(e,Tt(t))||$(e,t))}let De=null,eo=null;function hn(e){const t=De;return De=e,eo=e&&e.type.__scopeId||null,t}function As(e,t=De,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&ei(-1);const o=hn(t);let s;try{s=e(...i)}finally{hn(o),r._d&&ei(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Hn(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:h,data:m,setupState:F,ctx:W,inheritAttrs:T}=e;let A,B;const ne=hn(e);try{if(n.shapeFlag&4){const U=i||r;A=Ue(d.call(U,U,h,o,F,m,W)),B=c}else{const U=t;A=Ue(U.length>1?U(o,{attrs:c,slots:l,emit:u}):U(o,null)),B=t.props?c:Ms(c)}}catch(U){Dt.length=0,Cn(U,e,1),A=se(Xe)}let O=A;if(B&&T!==!1){const U=Object.keys(B),{shapeFlag:X}=O;U.length&&X&7&&(s&&U.some(ir)&&(B=Hs(B,s)),O=it(O,B))}return n.dirs&&(O=it(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),A=O,hn(ne),A}const Ms=e=>{let t;for(const n in e)(n==="class"||n==="style"||yn(n))&&((t||(t={}))[n]=e[n]);return t},Hs=(e,t)=>{const n={};for(const r in e)(!ir(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Is(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?qr(r,s,u):!!s;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Bs(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):Ps(e)}function Ds(e,t){if(de){let n=de.provides;const r=de.parent&&de.parent.provides;r===n&&(n=de.provides=Object.create(r)),n[e]=t}}function sn(e,t,n=!1){const r=de||De;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&N(t)?t.call(r.proxy):t}}function br(e,t){return vr(e,null,t)}const tn={};function Me(e,t,n){return vr(e,t,n)}function vr(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=V){const l=de;let c,u=!1,d=!1;if(ce(e)?(c=()=>e.value,u=dn(e)):Ct(e)?(c=()=>e,r=!0):I(e)?(d=!0,u=e.some(O=>Ct(O)||dn(O)),c=()=>e.map(O=>{if(ce(O))return O.value;if(Ct(O))return ft(O);if(N(O))return nt(O,l,2)})):N(e)?t?c=()=>nt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),Ae(e,l,3,[m])}:c=Re,t&&r){const O=c;c=()=>ft(O())}let h,m=O=>{h=B.onStop=()=>{nt(O,l,4)}},F;if(Kt)if(m=Re,t?n&&Ae(t,l,3,[c(),d?[]:void 0,m]):c(),i==="sync"){const O=Hl();F=O.__watcherHandles||(O.__watcherHandles=[])}else return Re;let W=d?new Array(e.length).fill(tn):tn;const T=()=>{if(!!B.active)if(t){const O=B.run();(r||u||(d?O.some((U,X)=>$t(U,W[X])):$t(O,W)))&&(h&&h(),Ae(t,l,3,[O,W===tn?void 0:d&&W[0]===tn?[]:W,m]),W=O)}else B.run()};T.allowRecurse=!!t;let A;i==="sync"?A=T:i==="post"?A=()=>Se(T,l&&l.suspense):(T.pre=!0,l&&(T.id=l.uid),A=()=>yr(T));const B=new ar(c,A);t?n?T():W=B.run():i==="post"?Se(B.run.bind(B),l&&l.suspense):B.run();const ne=()=>{B.stop(),l&&l.scope&&or(l.scope.effects,B)};return F&&F.push(ne),ne}function ks(e,t,n){const r=this.proxy,i=ae(e)?e.includes(".")?to(r,e):()=>r[e]:e.bind(r,r);let o;N(t)?o=t:(o=t.handler,n=t);const s=de;xt(this);const l=vr(i,o.bind(r),n);return s?xt(s):ht(),l}function to(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{ft(n,t)});else if(Wi(e))for(const n in e)ft(e[n],t);return e}function Rs(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _r(()=>{e.isMounted=!0}),oo(()=>{e.isUnmounting=!0}),e}const Oe=[Function,Array],$s={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oe,onEnter:Oe,onAfterEnter:Oe,onEnterCancelled:Oe,onBeforeLeave:Oe,onLeave:Oe,onAfterLeave:Oe,onLeaveCancelled:Oe,onBeforeAppear:Oe,onAppear:Oe,onAfterAppear:Oe,onAppearCancelled:Oe},setup(e,{slots:t}){const n=yo(),r=Rs();let i;return()=>{const o=t.default&&ro(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const T of o)if(T.type!==Xe){s=T;break}}const l=q(e),{mode:c}=l;if(r.isLeaving)return In(s);const u=Kr(s);if(!u)return In(s);const d=qn(u,l,r,n);Kn(u,d);const h=n.subTree,m=h&&Kr(h);let F=!1;const{getTransitionKey:W}=u.type;if(W){const T=W();i===void 0?i=T:T!==i&&(i=T,F=!0)}if(m&&m.type!==Xe&&(!at(u,m)||F)){const T=qn(m,l,r,n);if(Kn(m,T),c==="out-in")return r.isLeaving=!0,T.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},In(s);c==="in-out"&&u.type!==Xe&&(T.delayLeave=(A,B,ne)=>{const O=no(r,m);O[String(m.key)]=m,A._leaveCb=()=>{B(),A._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=ne})}return s}}},js=$s;function no(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function qn(e,t,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:m,onAfterLeave:F,onLeaveCancelled:W,onBeforeAppear:T,onAppear:A,onAfterAppear:B,onAppearCancelled:ne}=t,O=String(e.key),U=no(n,e),X=(L,ee)=>{L&&Ae(L,r,9,ee)},Ce=(L,ee)=>{const Y=ee[1];X(L,ee),I(L)?L.every(ie=>ie.length<=1)&&Y():L.length<=1&&Y()},He={mode:o,persisted:s,beforeEnter(L){let ee=l;if(!n.isMounted)if(i)ee=T||l;else return;L._leaveCb&&L._leaveCb(!0);const Y=U[O];Y&&at(e,Y)&&Y.el._leaveCb&&Y.el._leaveCb(),X(ee,[L])},enter(L){let ee=c,Y=u,ie=d;if(!n.isMounted)if(i)ee=A||c,Y=B||u,ie=ne||d;else return;let oe=!1;const xe=L._enterCb=Ie=>{oe||(oe=!0,Ie?X(ie,[L]):X(Y,[L]),He.delayedLeave&&He.delayedLeave(),L._enterCb=void 0)};ee?Ce(ee,[L,xe]):xe()},leave(L,ee){const Y=String(e.key);if(L._enterCb&&L._enterCb(!0),n.isUnmounting)return ee();X(h,[L]);let ie=!1;const oe=L._leaveCb=xe=>{ie||(ie=!0,ee(),xe?X(W,[L]):X(F,[L]),L._leaveCb=void 0,U[Y]===e&&delete U[Y])};U[Y]=e,m?Ce(m,[L,oe]):oe()},clone(L){return qn(L,t,n,r)}};return He}function In(e){if(Sn(e))return e=it(e),e.children=null,e}function Kr(e){return Sn(e)?e.children?e.children[0]:void 0:e}function Kn(e,t){e.shapeFlag&6&&e.component?Kn(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 ro(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,Sn=e=>e.type.__isKeepAlive;function Us(e,t){io(e,"a",t)}function zs(e,t){io(e,"da",t)}function io(e,t,n=de){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Fn(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Sn(i.parent.vnode)&&qs(r,t,n,i),i=i.parent}}function qs(e,t,n,r){const i=Fn(t,e,r,!0);so(()=>{or(r[t],i)},n)}function Fn(e,t,n=de,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Wt(),xt(n);const l=Ae(t,n,e,s);return ht(),Pt(),l});return r?i.unshift(o):i.push(o),o}}const Je=e=>(t,n=de)=>(!Kt||e==="sp")&&Fn(e,(...r)=>t(...r),n),Ks=Je("bm"),_r=Je("m"),Vs=Je("bu"),Xs=Je("u"),oo=Je("bum"),so=Je("um"),Qs=Je("sp"),Js=Je("rtg"),Ys=Je("rtc");function Gs(e,t=de){Fn("ec",e,t)}function Vr(e,t){const n=De;if(n===null)return e;const r=Tn(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;oe?bo(e)?Tn(e)||e.proxy:Vn(e.parent):null,Bt=ye(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=>Vn(e.parent),$root:e=>Vn(e.root),$emit:e=>e.emit,$options:e=>Cr(e),$forceUpdate:e=>e.f||(e.f=()=>yr(e.update)),$nextTick:e=>e.n||(e.n=Qi.bind(e.proxy)),$watch:e=>ks.bind(e)}),el={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const F=s[t];if(F!==void 0)switch(F){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(r!==V&&$(r,t))return s[t]=1,r[t];if(i!==V&&$(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&$(u,t))return s[t]=3,o[t];if(n!==V&&$(n,t))return s[t]=4,n[t];Xn&&(s[t]=0)}}const d=Bt[t];let h,m;if(d)return t==="$attrs"&&Pe(e,"get",t),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==V&&$(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,$(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return i!==V&&$(i,t)?(i[t]=n,!0):r!==V&&$(r,t)?(r[t]=n,!0):$(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let l;return!!n[s]||e!==V&&$(e,s)||t!==V&&$(t,s)||(l=o[0])&&$(l,s)||$(r,s)||$(Bt,s)||$(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Xn=!0;function tl(e){const t=Cr(e),n=e.proxy,r=e.ctx;Xn=!1,t.beforeCreate&&Xr(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:c,inject:u,created:d,beforeMount:h,mounted:m,beforeUpdate:F,updated:W,activated:T,deactivated:A,beforeDestroy:B,beforeUnmount:ne,destroyed:O,unmounted:U,render:X,renderTracked:Ce,renderTriggered:He,errorCaptured:L,serverPrefetch:ee,expose:Y,inheritAttrs:ie,components:oe,directives:xe,filters:Ie}=t;if(u&&nl(u,r,null,e.appContext.config.unwrapInjectedRef),s)for(const R in s){const j=s[R];N(j)&&(r[R]=j.bind(n))}if(i){const R=i.call(n,n);te(R)&&(e.data=hr(R))}if(Xn=!0,o)for(const R in o){const j=o[R],fe=N(j)?j.bind(n,n):N(j.get)?j.get.bind(n,n):Re,we=!N(j)&&N(j.set)?j.set.bind(n):Re,Ee=Wn({get:fe,set:we});Object.defineProperty(r,R,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:be=>Ee.value=be})}if(l)for(const R in l)lo(l[R],r,n,R);if(c){const R=N(c)?c.call(n):c;Reflect.ownKeys(R).forEach(j=>{Ds(j,R[j])})}d&&Xr(d,e,"c");function Q(R,j){I(j)?j.forEach(fe=>R(fe.bind(n))):j&&R(j.bind(n))}if(Q(Ks,h),Q(_r,m),Q(Vs,F),Q(Xs,W),Q(Us,T),Q(zs,A),Q(Gs,L),Q(Ys,Ce),Q(Js,He),Q(oo,ne),Q(so,U),Q(Qs,ee),I(Y))if(Y.length){const R=e.exposed||(e.exposed={});Y.forEach(j=>{Object.defineProperty(R,j,{get:()=>n[j],set:fe=>n[j]=fe})})}else e.exposed||(e.exposed={});X&&e.render===Re&&(e.render=X),ie!=null&&(e.inheritAttrs=ie),oe&&(e.components=oe),xe&&(e.directives=xe)}function nl(e,t,n=Re,r=!1){I(e)&&(e=Qn(e));for(const i in e){const o=e[i];let s;te(o)?"default"in o?s=sn(o.from||i,o.default,!0):s=sn(o.from||i):s=sn(o),ce(s)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[i]=s}}function Xr(e,t,n){Ae(I(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function lo(e,t,n,r){const i=r.includes(".")?to(n,r):()=>n[r];if(ae(e)){const o=t[e];N(o)&&Me(i,o)}else if(N(e))Me(i,e.bind(n));else if(te(e))if(I(e))e.forEach(o=>lo(o,t,n,r));else{const o=N(e.handler)?e.handler.bind(n):t[e.handler];N(o)&&Me(i,o,e)}}function Cr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(u=>pn(c,u,s,!0)),pn(c,t,s)),te(t)&&o.set(t,c),c}function pn(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&pn(e,o,n,!0),i&&i.forEach(s=>pn(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=rl[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const rl={data:Qr,props:lt,emits:lt,methods:lt,computed:lt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:lt,directives:lt,watch:ol,provide:Qr,inject:il};function Qr(e,t){return t?e?function(){return ye(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function il(e,t){return lt(Qn(e),Qn(t))}function Qn(e){if(I(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[m,F]=ao(h,t,!0);ye(s,m),F&&l.push(...F)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return te(e)&&r.set(e,vt),vt;if(I(o))for(let d=0;d-1,F[1]=T<0||W-1||$(F,"default"))&&l.push(h)}}}const u=[s,l];return te(e)&&r.set(e,u),u}function Jr(e){return e[0]!=="$"}function Yr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Gr(e,t){return Yr(e)===Yr(t)}function Zr(e,t){return I(t)?t.findIndex(n=>Gr(n,e)):N(t)&&Gr(t,e)?0:-1}const uo=e=>e[0]==="_"||e==="$stable",wr=e=>I(e)?e.map(Ue):[Ue(e)],cl=(e,t,n)=>{if(t._n)return t;const r=As((...i)=>wr(t(...i)),n);return r._c=!1,r},fo=(e,t,n)=>{const r=e._ctx;for(const i in e){if(uo(i))continue;const o=e[i];if(N(o))t[i]=cl(i,o,r);else if(o!=null){const s=wr(o);t[i]=()=>s}}},ho=(e,t)=>{const n=wr(t);e.slots.default=()=>n},al=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=q(t),fn(t,"_",n)):fo(t,e.slots={})}else e.slots={},t&&ho(e,t);fn(e.slots,xn,1)},ul=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=V;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ye(i,t),!n&&l===1&&delete i._):(o=!t.$stable,fo(t,i)),s=t}else t&&(ho(e,t),s={default:1});if(o)for(const l in i)!uo(l)&&!(l in s)&&delete i[l]};function po(){return{app:null,config:{isNativeTag:Do,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 fl=0;function dl(e,t){return function(r,i=null){N(r)||(r=Object.assign({},r)),i!=null&&!te(i)&&(i=null);const o=po(),s=new Set;let l=!1;const c=o.app={_uid:fl++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:Il,get config(){return o.config},set config(u){},use(u,...d){return s.has(u)||(u&&N(u.install)?(s.add(u),u.install(c,...d)):N(u)&&(s.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const m=se(r,i);return m.appContext=o,d&&t?t(m,u):e(m,u,h),l=!0,c._container=u,u.__vue_app__=c,Tn(m.component)||m.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c}};return c}}function Yn(e,t,n,r,i=!1){if(I(e)){e.forEach((m,F)=>Yn(m,t&&(I(t)?t[F]:t),n,r,i));return}if(ln(r)&&!i)return;const o=r.shapeFlag&4?Tn(r.component)||r.component.proxy:r.el,s=i?null:o,{i:l,r:c}=e,u=t&&t.r,d=l.refs===V?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(ae(u)?(d[u]=null,$(h,u)&&(h[u]=null)):ce(u)&&(u.value=null)),N(c))nt(c,l,12,[s,d]);else{const m=ae(c),F=ce(c);if(m||F){const W=()=>{if(e.f){const T=m?$(h,c)?h[c]:d[c]:c.value;i?I(T)&&or(T,o):I(T)?T.includes(o)||T.push(o):m?(d[c]=[o],$(h,c)&&(h[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else m?(d[c]=s,$(h,c)&&(h[c]=s)):F&&(c.value=s,e.k&&(d[e.k]=s))};s?(W.id=-1,Se(W,n)):W()}}}const Se=Bs;function hl(e){return pl(e)}function pl(e,t){const n=zo();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:l,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:m,setScopeId:F=Re,insertStaticContent:W}=e,T=(a,f,p,y=null,g=null,C=null,S=!1,_=null,w=!!f.dynamicChildren)=>{if(a===f)return;a&&!at(a,f)&&(y=Qt(a),be(a,g,C,!0),a=null),f.patchFlag===-2&&(w=!1,f.dynamicChildren=null);const{type:b,ref:P,shapeFlag:x}=f;switch(b){case Sr:A(a,f,p,y);break;case Xe:B(a,f,p,y);break;case cn:a==null&&ne(f,p,y,S);break;case Fe:oe(a,f,p,y,g,C,S,_,w);break;default:x&1?X(a,f,p,y,g,C,S,_,w):x&6?xe(a,f,p,y,g,C,S,_,w):(x&64||x&128)&&b.process(a,f,p,y,g,C,S,_,w,mt)}P!=null&&g&&Yn(P,a&&a.ref,C,f||a,!f)},A=(a,f,p,y)=>{if(a==null)r(f.el=l(f.children),p,y);else{const g=f.el=a.el;f.children!==a.children&&u(g,f.children)}},B=(a,f,p,y)=>{a==null?r(f.el=c(f.children||""),p,y):f.el=a.el},ne=(a,f,p,y)=>{[a.el,a.anchor]=W(a.children,f,p,y,a.el,a.anchor)},O=({el:a,anchor:f},p,y)=>{let g;for(;a&&a!==f;)g=m(a),r(a,p,y),a=g;r(f,p,y)},U=({el:a,anchor:f})=>{let p;for(;a&&a!==f;)p=m(a),i(a),a=p;i(f)},X=(a,f,p,y,g,C,S,_,w)=>{S=S||f.type==="svg",a==null?Ce(f,p,y,g,C,S,_,w):ee(a,f,g,C,S,_,w)},Ce=(a,f,p,y,g,C,S,_)=>{let w,b;const{type:P,props:x,shapeFlag:E,transition:M,dirs:D}=a;if(w=a.el=s(a.type,C,x&&x.is,x),E&8?d(w,a.children):E&16&&L(a.children,w,null,y,g,C&&P!=="foreignObject",S,_),D&&ot(a,null,y,"created"),x){for(const K in x)K!=="value"&&!rn(K)&&o(w,K,null,x[K],C,a.children,y,g,qe);"value"in x&&o(w,"value",null,x.value),(b=x.onVnodeBeforeMount)&&je(b,y,a)}He(w,a,a.scopeId,S,y),D&&ot(a,null,y,"beforeMount");const J=(!g||g&&!g.pendingBranch)&&M&&!M.persisted;J&&M.beforeEnter(w),r(w,f,p),((b=x&&x.onVnodeMounted)||J||D)&&Se(()=>{b&&je(b,y,a),J&&M.enter(w),D&&ot(a,null,y,"mounted")},g)},He=(a,f,p,y,g)=>{if(p&&F(a,p),y)for(let C=0;C{for(let b=w;b{const _=f.el=a.el;let{patchFlag:w,dynamicChildren:b,dirs:P}=f;w|=a.patchFlag&16;const x=a.props||V,E=f.props||V;let M;p&&st(p,!1),(M=E.onVnodeBeforeUpdate)&&je(M,p,f,a),P&&ot(f,a,p,"beforeUpdate"),p&&st(p,!0);const D=g&&f.type!=="foreignObject";if(b?Y(a.dynamicChildren,b,_,p,y,D,C):S||j(a,f,_,null,p,y,D,C,!1),w>0){if(w&16)ie(_,f,x,E,p,y,g);else if(w&2&&x.class!==E.class&&o(_,"class",null,E.class,g),w&4&&o(_,"style",x.style,E.style,g),w&8){const J=f.dynamicProps;for(let K=0;K{M&&je(M,p,f,a),P&&ot(f,a,p,"updated")},y)},Y=(a,f,p,y,g,C,S)=>{for(let _=0;_{if(p!==y){if(p!==V)for(const _ in p)!rn(_)&&!(_ in y)&&o(a,_,p[_],null,S,f.children,g,C,qe);for(const _ in y){if(rn(_))continue;const w=y[_],b=p[_];w!==b&&_!=="value"&&o(a,_,b,w,S,f.children,g,C,qe)}"value"in y&&o(a,"value",p.value,y.value)}},oe=(a,f,p,y,g,C,S,_,w)=>{const b=f.el=a?a.el:l(""),P=f.anchor=a?a.anchor:l("");let{patchFlag:x,dynamicChildren:E,slotScopeIds:M}=f;M&&(_=_?_.concat(M):M),a==null?(r(b,p,y),r(P,p,y),L(f.children,p,P,g,C,S,_,w)):x>0&&x&64&&E&&a.dynamicChildren?(Y(a.dynamicChildren,E,p,g,C,S,_),(f.key!=null||g&&f===g.subTree)&&mo(a,f,!0)):j(a,f,p,P,g,C,S,_,w)},xe=(a,f,p,y,g,C,S,_,w)=>{f.slotScopeIds=_,a==null?f.shapeFlag&512?g.ctx.activate(f,p,y,S,w):Ie(f,p,y,g,C,S,w):ue(a,f,w)},Ie=(a,f,p,y,g,C,S)=>{const _=a.component=Tl(a,y,g);if(Sn(a)&&(_.ctx.renderer=mt),Wl(_),_.asyncDep){if(g&&g.registerDep(_,Q),!a.el){const w=_.subTree=se(Xe);B(null,w,f,p)}return}Q(_,a,f,p,g,C,S)},ue=(a,f,p)=>{const y=f.component=a.component;if(Is(a,f,p))if(y.asyncDep&&!y.asyncResolved){R(y,f,p);return}else y.next=f,Ws(y.update),y.update();else f.el=a.el,y.vnode=f},Q=(a,f,p,y,g,C,S)=>{const _=()=>{if(a.isMounted){let{next:P,bu:x,u:E,parent:M,vnode:D}=a,J=P,K;st(a,!1),P?(P.el=D.el,R(a,P,S)):P=D,x&&Mn(x),(K=P.props&&P.props.onVnodeBeforeUpdate)&&je(K,M,P,D),st(a,!0);const re=Hn(a),Le=a.subTree;a.subTree=re,T(Le,re,h(Le.el),Qt(Le),a,g,C),P.el=re.el,J===null&&Ls(a,re.el),E&&Se(E,g),(K=P.props&&P.props.onVnodeUpdated)&&Se(()=>je(K,M,P,D),g)}else{let P;const{el:x,props:E}=f,{bm:M,m:D,parent:J}=a,K=ln(f);if(st(a,!1),M&&Mn(M),!K&&(P=E&&E.onVnodeBeforeMount)&&je(P,J,f),st(a,!0),x&&On){const re=()=>{a.subTree=Hn(a),On(x,a.subTree,a,g,null)};K?f.type.__asyncLoader().then(()=>!a.isUnmounted&&re()):re()}else{const re=a.subTree=Hn(a);T(null,re,p,y,a,g,C),f.el=re.el}if(D&&Se(D,g),!K&&(P=E&&E.onVnodeMounted)){const re=f;Se(()=>je(P,J,re),g)}(f.shapeFlag&256||J&&ln(J.vnode)&&J.vnode.shapeFlag&256)&&a.a&&Se(a.a,g),a.isMounted=!0,f=p=y=null}},w=a.effect=new ar(_,()=>yr(b),a.scope),b=a.update=()=>w.run();b.id=a.uid,st(a,!0),b()},R=(a,f,p)=>{f.component=a;const y=a.vnode.props;a.vnode=f,a.next=null,ll(a,f.props,y,p),ul(a,f.children,p),Wt(),zr(),Pt()},j=(a,f,p,y,g,C,S,_,w=!1)=>{const b=a&&a.children,P=a?a.shapeFlag:0,x=f.children,{patchFlag:E,shapeFlag:M}=f;if(E>0){if(E&128){we(b,x,p,y,g,C,S,_,w);return}else if(E&256){fe(b,x,p,y,g,C,S,_,w);return}}M&8?(P&16&&qe(b,g,C),x!==b&&d(p,x)):P&16?M&16?we(b,x,p,y,g,C,S,_,w):qe(b,g,C,!0):(P&8&&d(p,""),M&16&&L(x,p,y,g,C,S,_,w))},fe=(a,f,p,y,g,C,S,_,w)=>{a=a||vt,f=f||vt;const b=a.length,P=f.length,x=Math.min(b,P);let E;for(E=0;EP?qe(a,g,C,!0,!1,x):L(f,p,y,g,C,S,_,w,x)},we=(a,f,p,y,g,C,S,_,w)=>{let b=0;const P=f.length;let x=a.length-1,E=P-1;for(;b<=x&&b<=E;){const M=a[b],D=f[b]=w?Ge(f[b]):Ue(f[b]);if(at(M,D))T(M,D,p,null,g,C,S,_,w);else break;b++}for(;b<=x&&b<=E;){const M=a[x],D=f[E]=w?Ge(f[E]):Ue(f[E]);if(at(M,D))T(M,D,p,null,g,C,S,_,w);else break;x--,E--}if(b>x){if(b<=E){const M=E+1,D=ME)for(;b<=x;)be(a[b],g,C,!0),b++;else{const M=b,D=b,J=new Map;for(b=D;b<=E;b++){const Te=f[b]=w?Ge(f[b]):Ue(f[b]);Te.key!=null&&J.set(Te.key,b)}let K,re=0;const Le=E-D+1;let gt=!1,Hr=0;const It=new Array(Le);for(b=0;b=Le){be(Te,g,C,!0);continue}let $e;if(Te.key!=null)$e=J.get(Te.key);else for(K=D;K<=E;K++)if(It[K-D]===0&&at(Te,f[K])){$e=K;break}$e===void 0?be(Te,g,C,!0):(It[$e-D]=b+1,$e>=Hr?Hr=$e:gt=!0,T(Te,f[$e],p,null,g,C,S,_,w),re++)}const Ir=gt?ml(It):vt;for(K=Ir.length-1,b=Le-1;b>=0;b--){const Te=D+b,$e=f[Te],Lr=Te+1{const{el:C,type:S,transition:_,children:w,shapeFlag:b}=a;if(b&6){Ee(a.component.subTree,f,p,y);return}if(b&128){a.suspense.move(f,p,y);return}if(b&64){S.move(a,f,p,mt);return}if(S===Fe){r(C,f,p);for(let x=0;x_.enter(C),g);else{const{leave:x,delayLeave:E,afterLeave:M}=_,D=()=>r(C,f,p),J=()=>{x(C,()=>{D(),M&&M()})};E?E(C,D,J):J()}else r(C,f,p)},be=(a,f,p,y=!1,g=!1)=>{const{type:C,props:S,ref:_,children:w,dynamicChildren:b,shapeFlag:P,patchFlag:x,dirs:E}=a;if(_!=null&&Yn(_,null,p,a,!0),P&256){f.ctx.deactivate(a);return}const M=P&1&&E,D=!ln(a);let J;if(D&&(J=S&&S.onVnodeBeforeUnmount)&&je(J,f,a),P&6)Xt(a.component,p,y);else{if(P&128){a.suspense.unmount(p,y);return}M&&ot(a,null,f,"beforeUnmount"),P&64?a.type.remove(a,f,p,g,mt,y):b&&(C!==Fe||x>0&&x&64)?qe(b,f,p,!1,!0):(C===Fe&&x&384||!g&&P&16)&&qe(w,f,p),y&&Ht(a)}(D&&(J=S&&S.onVnodeUnmounted)||M)&&Se(()=>{J&&je(J,f,a),M&&ot(a,null,f,"unmounted")},p)},Ht=a=>{const{type:f,el:p,anchor:y,transition:g}=a;if(f===Fe){he(p,y);return}if(f===cn){U(a);return}const C=()=>{i(p),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(a.shapeFlag&1&&g&&!g.persisted){const{leave:S,delayLeave:_}=g,w=()=>S(p,C);_?_(a.el,C,w):w()}else C()},he=(a,f)=>{let p;for(;a!==f;)p=m(a),i(a),a=p;i(f)},Xt=(a,f,p)=>{const{bum:y,scope:g,update:C,subTree:S,um:_}=a;y&&Mn(y),g.stop(),C&&(C.active=!1,be(S,a,f,p)),_&&Se(_,f),Se(()=>{a.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},qe=(a,f,p,y=!1,g=!1,C=0)=>{for(let S=C;Sa.shapeFlag&6?Qt(a.component.subTree):a.shapeFlag&128?a.suspense.next():m(a.anchor||a.el),Mr=(a,f,p)=>{a==null?f._vnode&&be(f._vnode,null,null,!0):T(f._vnode||null,a,f,null,null,null,p),zr(),Yi(),f._vnode=a},mt={p:T,um:be,m:Ee,r:Ht,mt:Ie,mc:L,pc:j,pbc:Y,n:Qt,o:e};let En,On;return t&&([En,On]=t(mt)),{render:Mr,hydrate:En,createApp:dl(Mr,En)}}function st({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function mo(e,t,n=!1){const r=e.children,i=t.children;if(I(r)&&I(i))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}const gl=e=>e.__isTeleport,Fe=Symbol(void 0),Sr=Symbol(void 0),Xe=Symbol(void 0),cn=Symbol(void 0),Dt=[];let ke=null;function Ot(e=!1){Dt.push(ke=e?null:[])}function yl(){Dt.pop(),ke=Dt[Dt.length-1]||null}let qt=1;function ei(e){qt+=e}function bl(e){return e.dynamicChildren=qt>0?ke||vt:null,yl(),qt>0&&ke&&ke.push(e),e}function At(e,t,n,r,i,o){return bl(H(e,t,n,r,i,o,!0))}function vl(e){return e?e.__v_isVNode===!0:!1}function at(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",go=({key:e})=>e!=null?e:null,an=({ref:e,ref_key:t,ref_for:n})=>e!=null?ae(e)||ce(e)||N(e)?{i:De,r:e,k:t,f:!!n}:e:null;function H(e,t=null,n=null,r=0,i=null,o=e===Fe?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&go(t),ref:t&&an(t),scopeId:eo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(xr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ae(n)?8:16),qt>0&&!s&&ke&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ke.push(c),c}const se=_l;function _l(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===Zs)&&(e=Xe),vl(e)){const l=it(e,t,!0);return n&&xr(l,n),qt>0&&!o&&ke&&(l.shapeFlag&6?ke[ke.indexOf(e)]=l:ke.push(l)),l.patchFlag|=-2,l}if(Al(e)&&(e=e.__vccOpts),t){t=Cl(t);let{class:l,style:c}=t;l&&!ae(l)&&(t.class=gn(l)),te(c)&&($i(c)&&!I(c)&&(c=ye({},c)),t.style=rr(c))}const s=ae(e)?1:Ns(e)?128:gl(e)?64:te(e)?4:N(e)?2:0;return H(e,t,n,r,i,s,o,!0)}function Cl(e){return e?$i(e)||xn in e?ye({},e):e:null}function it(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,l=t?Sl(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&go(l),ref:t&&t.ref?n&&i?I(i)?i.concat(an(t)):[i,an(t)]:an(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&it(e.ssContent),ssFallback:e.ssFallback&&it(e.ssFallback),el:e.el,anchor:e.anchor}}function Fr(e=" ",t=0){return se(Sr,null,e,t)}function wl(e,t){const n=se(cn,null,e);return n.staticCount=t,n}function Ue(e){return e==null||typeof e=="boolean"?se(Xe):I(e)?se(Fe,null,e.slice()):typeof e=="object"?Ge(e):se(Sr,null,String(e))}function Ge(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:it(e)}function xr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(I(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),xr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(xn in t)?t._ctx=De:i===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else N(t)?(t={default:t,_ctx:De},n=32):(t=String(t),r&64?(n=16,t=[Fr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Sl(...e){const t={};for(let n=0;nde||De,xt=e=>{de=e,e.scope.on()},ht=()=>{de&&de.scope.off(),de=null};function bo(e){return e.vnode.shapeFlag&4}let Kt=!1;function Wl(e,t=!1){Kt=t;const{props:n,children:r}=e.vnode,i=bo(e);sl(e,n,i,t),al(e,r);const o=i?Pl(e,t):void 0;return Kt=!1,o}function Pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ji(new Proxy(e.ctx,el));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Ol(e):null;xt(e),Wt();const o=nt(r,e,0,[e.props,i]);if(Pt(),ht(),xi(o)){if(o.then(ht,ht),t)return o.then(s=>{ti(e,s,t)}).catch(s=>{Cn(s,e,0)});e.asyncDep=o}else ti(e,o,t)}else vo(e,t)}function ti(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=Ki(t)),vo(e,n)}let ni;function vo(e,t,n){const r=e.type;if(!e.render){if(!t&&ni&&!r.render){const i=r.template||Cr(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=ye(ye({isCustomElement:o,delimiters:l},s),c);r.render=ni(i,u)}}e.render=r.render||Re}xt(e),Wt(),tl(e),Pt(),ht()}function El(e){return new Proxy(e.attrs,{get(t,n){return Pe(e,"get","$attrs"),t[n]}})}function Ol(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=El(e))},slots:e.slots,emit:e.emit,expose:t}}function Tn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ki(ji(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Bt)return Bt[n](e)},has(t,n){return n in t||n in Bt}}))}function Al(e){return N(e)&&"__vccOpts"in e}const Wn=(e,t)=>Fs(e,t,Kt),Ml=Symbol(""),Hl=()=>sn(Ml),Il="3.2.44",Ll="http://www.w3.org/2000/svg",ut=typeof document<"u"?document:null,ri=ut&&ut.createElement("template"),Nl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?ut.createElementNS(Ll,e):ut.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{ri.innerHTML=r?`${e}`:e;const l=ri.content;if(r){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Bl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Dl(e,t,n){const r=e.style,i=ae(n);if(n&&!i){for(const o in n)Gn(r,o,n[o]);if(t&&!ae(t))for(const o in t)n[o]==null&&Gn(r,o,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const ii=/\s*!important$/;function Gn(e,t,n){if(I(n))n.forEach(r=>Gn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kl(e,t);ii.test(n)?e.setProperty(Tt(r),n.replace(ii,""),"important"):e[r]=n}}const oi=["Webkit","Moz","ms"],Ln={};function kl(e,t){const n=Ln[t];if(n)return n;let r=St(t);if(r!=="filter"&&r in e)return Ln[t]=r;r=Pi(r);for(let i=0;iNn||(Kl.then(()=>Nn=0),Nn=Date.now());function Xl(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ae(Ql(r,n.value),t,5,[r])};return n.value=e,n.attached=Vl(),n}function Ql(e,t){if(I(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const ci=/^on[a-z]/,Jl=(e,t,n,r,i=!1,o,s,l,c)=>{t==="class"?Bl(e,r,i):t==="style"?Dl(e,n,r):yn(t)?ir(t)||zl(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yl(e,t,r,i))?$l(e,t,r,o,s,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Rl(e,t,r,i))};function Yl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ci.test(t)&&N(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ci.test(t)&&ae(n)?!1:t in e}const Gl={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};js.props;const ai={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Lt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lt(e,!0),r.enter(e)):r.leave(e,()=>{Lt(e,!1)}):Lt(e,t))},beforeUnmount(e,{value:t}){Lt(e,t)}};function Lt(e,t){e.style.display=t?e._vod:"none"}const Zl=ye({patchProp:Jl},Nl);let ui;function ec(){return ui||(ui=hl(Zl))}const tc=(...e)=>{const t=ec().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=nc(r);if(!i)return;const o=t._component;!N(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function nc(e){return ae(e)?document.querySelector(e):e}const rc="/vue-audio-visual/assets/logo.64bab856.png";var fi;const Mt=typeof window<"u",ic=e=>typeof e=="string",oc=()=>{};Mt&&((fi=window==null?void 0:window.navigator)==null?void 0:fi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e){return typeof e=="function"?e():Ne(e)}function di(e,t=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(t?()=>i(n):r,e)})}function sc(e){return e}function lc(e,...t){return t.some(n=>n in e)}function Bn(){const e=[],t=i=>{const o=e.indexOf(i);o!==-1&&e.splice(o,1)};return{on:i=>(e.push(i),{off:()=>t(i)}),off:t,trigger:i=>{e.forEach(o=>o(i))}}}function Tr(e){return Vo()?(Xo(e),!0):!1}function Dn(e){return typeof e=="function"?Wn(e):Z(e)}function cc(e,t=!0){yo()?_r(e):t?e():Qi(e)}function Zn(e,t=!1){function n(h,{flush:m="sync",deep:F=!1,timeout:W,throwOnTimeout:T}={}){let A=null;const ne=[new Promise(O=>{A=Me(e,U=>{h(U)!==t&&(A==null||A(),O(U))},{flush:m,deep:F,immediate:!0})})];return W!=null&&ne.push(di(W,T).then(()=>z(e)).finally(()=>A==null?void 0:A())),Promise.race(ne)}function r(h,m){if(!ce(h))return n(U=>U===h,m);const{flush:F="sync",deep:W=!1,timeout:T,throwOnTimeout:A}=m!=null?m:{};let B=null;const O=[new Promise(U=>{B=Me([e,h],([X,Ce])=>{t!==(X===Ce)&&(B==null||B(),U(X))},{flush:F,deep:W,immediate:!0})})];return T!=null&&O.push(di(T,A).then(()=>z(e)).finally(()=>(B==null||B(),z(e)))),Promise.race(O)}function i(h){return n(m=>Boolean(m),h)}function o(h){return r(null,h)}function s(h){return r(void 0,h)}function l(h){return n(Number.isNaN,h)}function c(h,m){return n(F=>{const W=Array.from(F);return W.includes(h)||W.includes(z(h))},m)}function u(h){return d(1,h)}function d(h=1,m){let F=-1;return n(()=>(F+=1,F>=h),m)}return Array.isArray(z(e))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return Zn(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:u,changedTimes:d,get not(){return Zn(e,!t)}}}function ac(e){return Zn(e)}function uc(e,t,n={}){const{immediate:r=!0}=n,i=Z(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function l(){i.value=!1,s()}function c(...u){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...u)},z(t))}return r&&(i.value=!0,Mt&&c()),Tr(l),{isPending:i,start:c,stop:l}}function fc(e){var t;const n=z(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Wr=Mt?window:void 0;Mt&&window.document;const dc=Mt?window.navigator:void 0;Mt&&window.location;function et(...e){let t,n,r,i;if(ic(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Wr):[t,n,r,i]=e,!t)return oc;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,m)=>(d.addEventListener(h,m,i),()=>d.removeEventListener(h,m,i)),c=Me(()=>fc(t),d=>{s(),d&&o.push(...n.flatMap(h=>r.map(m=>l(d,h,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return Tr(u),u}function hc(e,t=!1){const n=Z(),r=()=>n.value=Boolean(e());return r(),cc(r,t),n}const er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tr="__vueuse_ssr_handlers__";er[tr]=er[tr]||{};er[tr];function Pr(e,t={}){const{immediate:n=!0,window:r=Wr}=t,i=Z(!1);let o=null;function s(){!i.value||!r||(e(),o=r.requestAnimationFrame(s))}function l(){!i.value&&r&&(i.value=!0,s())}function c(){i.value=!1,o!=null&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&l(),Tr(c),{isActive:i,pause:c,resume:l}}var pc=Object.defineProperty,mc=Object.defineProperties,gc=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,yc=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?pc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t)=>{for(var n in t||(t={}))yc.call(t,n)&&pi(e,n,t[n]);if(hi)for(var n of hi(t))bc.call(t,n)&&pi(e,n,t[n]);return e},Ze=(e,t)=>mc(e,gc(t));const vc={json:"application/json",text:"text/plain",formData:"multipart/form-data"};function mn(e){return lc(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function _c(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function kt(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries([...e.entries()]):e}function yt(e,...t){return e==="overwrite"?async n=>{const r=t[t.length-1];return r!==void 0&&await r(n),n}:async n=>(await t.reduce((r,i)=>r.then(async()=>{i&&(n=G(G({},n),await i(n)))}),Promise.resolve()),n)}function Cc(e={}){const t=e.combination||"chain",n=e.options||{},r=e.fetchOptions||{};function i(o,...s){const l=Wn(()=>{const d=z(e.baseUrl),h=z(o);return d&&!_c(h)?Sc(d,h):h});let c=n,u=r;return s.length>0&&(mn(s[0])?c=Ze(G(G({},c),s[0]),{beforeFetch:yt(t,n.beforeFetch,s[0].beforeFetch),afterFetch:yt(t,n.afterFetch,s[0].afterFetch),onFetchError:yt(t,n.onFetchError,s[0].onFetchError)}):u=Ze(G(G({},u),s[0]),{headers:G(G({},kt(u.headers)||{}),kt(s[0].headers)||{})})),s.length>1&&mn(s[1])&&(c=Ze(G(G({},c),s[1]),{beforeFetch:yt(t,n.beforeFetch,s[1].beforeFetch),afterFetch:yt(t,n.afterFetch,s[1].afterFetch),onFetchError:yt(t,n.onFetchError,s[1].onFetchError)})),wc(l,u,c)}return i}function wc(e,...t){var n;const r=typeof AbortController=="function";let i={},o={immediate:!0,refetch:!1,timeout:0};const s={method:"GET",type:"text",payload:void 0};t.length>0&&(mn(t[0])?o=G(G({},o),t[0]):i=t[0]),t.length>1&&mn(t[1])&&(o=G(G({},o),t[1]));const{fetch:l=(n=Wr)==null?void 0:n.fetch,initialData:c,timeout:u}=o,d=Bn(),h=Bn(),m=Bn(),F=Z(!1),W=Z(!1),T=Z(!1),A=Z(null),B=on(null),ne=on(null),O=on(c),U=Wn(()=>r&&W.value);let X,Ce;const He=()=>{r&&X&&X.abort()},L=ue=>{W.value=ue,F.value=!ue};u&&(Ce=uc(He,u,{immediate:!1}));const ee=async(ue=!1)=>{var Q;L(!0),ne.value=null,A.value=null,T.value=!1,X=void 0,r&&(X=new AbortController,X.signal.onabort=()=>T.value=!0,i=Ze(G({},i),{signal:X.signal}));const R={method:s.method,headers:{}};if(s.payload){const Ee=kt(R.headers);s.payloadType&&(Ee["Content-Type"]=(Q=vc[s.payloadType])!=null?Q:s.payloadType);const be=z(s.payload);R.body=s.payloadType==="json"?JSON.stringify(be):be}let j=!1;const fe={url:z(e),options:G(G({},R),i),cancel:()=>{j=!0}};if(o.beforeFetch&&Object.assign(fe,await o.beforeFetch(fe)),j||!l)return L(!1),Promise.resolve(null);let we=null;return Ce&&Ce.start(),new Promise((Ee,be)=>{var Ht;l(fe.url,Ze(G(G({},R),fe.options),{headers:G(G({},kt(R.headers)),kt((Ht=fe.options)==null?void 0:Ht.headers))})).then(async he=>{if(B.value=he,A.value=he.status,we=await he[s.type](),o.afterFetch&&A.value>=200&&A.value<300&&({data:we}=await o.afterFetch({data:we,response:he})),O.value=we,!he.ok)throw new Error(he.statusText);return d.trigger(he),Ee(he)}).catch(async he=>{let Xt=he.message||he.name;return o.onFetchError&&({data:we,error:Xt}=await o.onFetchError({data:we,error:he,response:B.value})),O.value=we,ne.value=Xt,h.trigger(he),ue?be(he):Ee(null)}).finally(()=>{L(!1),Ce&&Ce.stop(),m.trigger(null)})})},Y=Dn(o.refetch);Me([Y,Dn(e)],([ue])=>ue&&ee(),{deep:!0});const ie={isFinished:F,statusCode:A,response:B,error:ne,data:O,isFetching:W,canAbort:U,aborted:T,abort:He,execute:ee,onFetchResponse:d.on,onFetchError:h.on,onFetchFinally:m.on,get:oe("GET"),put:oe("PUT"),post:oe("POST"),delete:oe("DELETE"),patch:oe("PATCH"),head:oe("HEAD"),options:oe("OPTIONS"),json:Ie("json"),text:Ie("text"),blob:Ie("blob"),arrayBuffer:Ie("arrayBuffer"),formData:Ie("formData")};function oe(ue){return(Q,R)=>{if(!W.value){s.method=ue,s.payload=Q,s.payloadType=R,ce(s.payload)&&Me([Y,Dn(s.payload)],([fe])=>fe&&ee(),{deep:!0});const j=z(s.payload);return!R&&j&&Object.getPrototypeOf(j)===Object.prototype&&(s.payloadType="json"),Ze(G({},ie),{then(fe,we){return xe().then(fe,we)}})}}}function xe(){return new Promise((ue,Q)=>{ac(F).toBe(!0).then(()=>ue(ie)).catch(R=>Q(R))})}function Ie(ue){return()=>{if(!W.value)return s.type=ue,Ze(G({},ie),{then(Q,R){return xe().then(Q,R)}})}}return o.immediate&&setTimeout(ee,0),Ze(G({},ie),{then(ue,Q){return xe().then(ue,Q)}})}function Sc(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}var mi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(mi||(mi={}));var Fc=Object.defineProperty,gi=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty,Tc=Object.prototype.propertyIsEnumerable,yi=(e,t,n)=>t in e?Fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wc=(e,t)=>{for(var n in t||(t={}))xc.call(t,n)&&yi(e,n,t[n]);if(gi)for(var n of gi(t))Tc.call(t,n)&&yi(e,n,t[n]);return e};const Pc={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Wc({linear:sc},Pc);function Ec(e={}){var t,n;const r=Z((t=e.enabled)!=null?t:!1),i=Z((n=e.autoSwitch)!=null?n:!0),o=Z(e.videoDeviceId),s=Z(e.audioDeviceId),{navigator:l=dc}=e,c=hc(()=>{var A;return(A=l==null?void 0:l.mediaDevices)==null?void 0:A.getUserMedia}),u=on();function d(A){return A.value==="none"||A.value===!1?!1:A.value==null?!0:{deviceId:A.value}}async function h(){if(!(!c.value||u.value))return u.value=await l.mediaDevices.getUserMedia({video:d(o),audio:d(s)}),u.value}async function m(){var A;(A=u.value)==null||A.getTracks().forEach(B=>B.stop()),u.value=void 0}function F(){m(),r.value=!1}async function W(){return await h(),u.value&&(r.value=!0),u.value}async function T(){return m(),await W()}return Me(r,A=>{A?h():m()},{immediate:!0}),Me([o,s],()=>{i.value&&u.value&&T()},{immediate:!0}),{isSupported:c,stream:u,start:W,stop:F,restart:T,videoDeviceId:o,audioDeviceId:s,enabled:r,autoSwitch:i}}const Ve=e=>e===void 0;function k(e,t){const n=z(e);return Ve(n)?t:Number(n)}function pt(e,t){const n=z(e);return Array.isArray(n)?n:n?String(n):t}function le(e,t){const n=z(e);return Ve(n)?t:String(n)}function ge(e,t){const n=z(e);return Ve(n)?t:Boolean(n)}const Pn={src:{type:String,default:null},audioControls:{type:Boolean,default:!0},corsAnonym:{type:Boolean,default:!1},canvWidth:{type:Number,default:300},canvHeight:{type:Number,default:80},canvFillColor:{type:[String,Array],default:""},placeholder:{type:Boolean,default:!0}},Oc={barWidth:{type:Number,default:5},barSpace:{type:Number,default:1},barColor:{type:[String,Array],default:"#0A0AFF"},capsHeight:{type:Number,default:0},capsDropSpeed:{type:Number,default:.9},capsColor:{type:String,default:"#A0A0FF"},brickHeight:{type:Number,default:0},brickSpace:{type:Number,default:1},symmetric:{type:Boolean,default:!1},fftSize:{type:Number,default:1024}},_e={...Pn,...Oc};function Ac(){return _e}class _o{constructor(t){v(this,"barColor");v(this,"barSpace");v(this,"barWidth");v(this,"brickHeight");v(this,"brickSpace");v(this,"canvFillColor");v(this,"canvHeight");v(this,"canvWidth");v(this,"capsColor");v(this,"capsDropSpeed");v(this,"capsHeight");v(this,"fftSize");v(this,"frqBits");v(this,"placeholder");v(this,"symmetric");this.barColor=pt(t.barColor,_e.barColor.default),this.barSpace=k(t.barSpace,_e.barSpace.default),this.brickHeight=k(t.brickHeight,_e.brickHeight.default),this.brickSpace=k(t.brickSpace,_e.brickSpace.default),this.canvFillColor=pt(t.canvFillColor,_e.canvFillColor.default),this.canvHeight=k(t.canvHeight,_e.canvHeight.default),this.canvWidth=k(t.canvWidth,_e.canvWidth.default),this.capsColor=le(t.capsColor,_e.capsColor.default),this.capsDropSpeed=k(t.capsDropSpeed,_e.capsDropSpeed.default),this.capsHeight=k(t.capsHeight,_e.capsHeight.default),this.fftSize=k(t.fftSize,_e.fftSize.default),this.frqBits=this.fftSize>>1,this.placeholder=ge(t.placeholder,_e.placeholder.default),this.symmetric=ge(t.symmetric,_e.symmetric.default);const n=k(t.barWidth,_e.barWidth.default);this.barWidth=n>this.canvWidth?this.canvWidth:n}alignSym(t){return this.symmetric?(this.canvHeight-t)/2:0}}const Mc={lineWidth:{type:Number,default:2},lineColor:{type:[String,Array],default:"#9F9"},fftSize:{type:Number,default:128}},Co={...Pn,...Mc};function Hc(){return Co}class bi{constructor(t){v(this,"canvWidth");v(this,"canvHeight");v(this,"canvFillColor");v(this,"lineWidth");v(this,"lineColor");v(this,"fftSize");v(this,"placeholder");const n=Co;this.canvWidth=k(t.canvWidth,n.canvWidth.default),this.canvHeight=k(t.canvHeight,n.canvHeight.default),this.canvFillColor=pt(t.canvFillColor,n.canvFillColor.default),this.lineWidth=k(t.lineWidth,n.lineWidth.default),this.lineColor=pt(t.lineColor,n.lineColor.default),this.fftSize=k(t.fftSize,n.fftSize.default),this.placeholder=ge(t.placeholder,n.placeholder.default)}}const Ic={fftSize:{type:Number,default:1024},canvWidth:{type:Number,default:100},canvHeight:{type:Number,default:100},radius:{type:Number,default:0},lineWidth:{type:Number,default:1},lineSpace:{type:Number,default:1},outlineColor:{type:String,default:"#0000FF"},outlineWidth:{type:Number,default:.3},barWidth:{type:Number,default:1},barLength:{type:Number,default:0},barColor:{type:[String,Array],default:["#FFFFFF","#0000FF"]},progress:{type:Boolean,default:!0},progressWidth:{type:Number,default:1},progressColor:{type:String,default:"#0000FF"},progressClockwise:{type:Boolean,default:!0},outlineMeterSpace:{type:Number,default:3},playtime:{type:Boolean,default:!1},playtimeFont:{type:String,default:"14px Monaco"},playtimeColor:{type:String,default:"#00f"},rotateGraph:{type:Boolean,default:!1},rotateSpeed:{type:Number,default:.001}},wo={...Pn,...Ic};function Lc(){return wo}let nn=1.5;class vi{constructor(t){v(this,"barColor");v(this,"barLength");v(this,"barWidth");v(this,"canvFillColor");v(this,"canvHeight");v(this,"canvWidth");v(this,"fftSize");v(this,"lineSpace");v(this,"lineWidth");v(this,"outlineColor");v(this,"outlineMeterSpace");v(this,"outlineWidth");v(this,"placeholder");v(this,"playtime");v(this,"playtimeColor");v(this,"playtimeFont");v(this,"progress");v(this,"progressClockwise");v(this,"progressColor");v(this,"progressWidth");v(this,"radius");v(this,"rotateGraph");v(this,"rotateSpeed");const n=wo;this.barColor=pt(t.barColor,n.barColor.default),this.barLength=k(t.barLength,n.barLength.default),this.barWidth=k(t.barWidth,n.barWidth.default),this.canvFillColor=pt(t.canvFillColor,n.canvFillColor.default),this.canvHeight=k(t.canvHeight,n.canvHeight.default),this.canvWidth=k(t.canvWidth,n.canvWidth.default),this.fftSize=k(t.fftSize,n.fftSize.default),this.lineSpace=k(t.lineSpace,n.lineSpace.default),this.lineWidth=k(t.lineWidth,n.lineWidth.default),this.outlineColor=le(t.outlineColor,n.outlineColor.default),this.outlineMeterSpace=k(t.outlineMeterSpace,n.outlineMeterSpace.default),this.outlineWidth=k(t.outlineWidth,n.outlineWidth.default),this.lineWidth=k(t.lineWidth,n.lineWidth.default),this.placeholder=ge(t.placeholder,n.placeholder.default),this.playtime=ge(t.playtime,n.playtime.default),this.playtimeColor=le(t.playtimeColor,n.playtimeColor.default),this.playtimeFont=le(t.playtimeFont,n.playtimeFont.default),this.progress=ge(t.progress,n.progress.default),this.progressClockwise=ge(t.progressClockwise,n.progressClockwise.default),this.progressColor=le(t.progressColor,n.progressColor.default),this.progressWidth=k(t.progressWidth,n.progressWidth.default),this.radius=k(t.radius,n.radius.default),this.rotateGraph=ge(t.rotateGraph,n.rotateGraph.default),this.rotateSpeed=k(t.rotateSpeed,n.rotateSpeed.default)}get cx(){return this.canvWidth/2}get cy(){return this.canvHeight/2}get r(){return this.radius>0?this.radius:Math.round(this.canvWidth/2*.7)}get arcStep(){return Math.ceil(this.lineWidth+this.lineSpace)}get barLen(){return this.barLength>0?this.barLength:this.canvWidth/2-this.r}get angle(){const t=()=>nn===3.5?1.5:nn+this.rotateSpeed;return nn=this.rotateGraph?t():1.5,Math.PI*nn}}const Nc={canvWidth:{type:Number,default:500},canvHeight:{type:Number,default:80},playedLineWidth:{type:Number,default:.5},playedLineColor:{type:String,default:"navy"},noplayedLineWidth:{type:Number,default:.5},noplayedLineColor:{type:String,default:"lime"},playtime:{type:Boolean,default:!0},playtimeWithMs:{type:Boolean,default:!0},playtimeFontSize:{type:Number,default:12},playtimeFontFamily:{type:String,default:"monospace"},playtimeFontColor:{type:String,default:"grey"},playtimeTextBottom:{type:Boolean,default:!1},playtimeSlider:{type:Boolean,default:!0},playtimeSliderColor:{type:String,default:"red"},playtimeSliderWidth:{type:Number,default:1},playtimeClickable:{type:Boolean,default:!0},requester:{type:Function,default:fetch}},So={...Pn,...Nc};function Bc(){return So}class Dc{constructor(t){v(this,"src");v(this,"canvWidth");v(this,"canvHeight");v(this,"canvFillColor");v(this,"currentTime");v(this,"duration");v(this,"playedLineWidth");v(this,"playedLineColor");v(this,"noplayedLineWidth");v(this,"noplayedLineColor");v(this,"playtime");v(this,"playtimeWithMs");v(this,"playtimeFontSize");v(this,"playtimeFontFamily");v(this,"playtimeFontColor");v(this,"playtimeTextBottom");v(this,"playtimeSlider");v(this,"playtimeSliderColor");v(this,"playtimeSliderWidth");v(this,"playtimeClickable");const n=So;this.canvWidth=k(t.canvWidth,n.canvWidth.default),this.canvHeight=k(t.canvHeight,n.canvHeight.default),this.canvFillColor=pt(t.canvFillColor,n.canvFillColor.default),this.playedLineWidth=k(t.playedLineWidth,n.playedLineWidth.default),this.playedLineColor=le(t.playedLineColor,n.playedLineColor.default),this.noplayedLineWidth=k(t.noplayedLineWidth,n.noplayedLineWidth.default),this.noplayedLineColor=le(t.noplayedLineColor,n.noplayedLineColor.default),this.playtime=ge(t.playtime,n.playtime.default),this.playtimeWithMs=ge(t.playtimeWithMs,n.playtimeWithMs.default),this.playtimeFontSize=k(t.playtimeFontSize,n.playtimeFontSize.default),this.playtimeFontFamily=le(t.playtimeFontFamily,n.playtimeFontFamily.default),this.playtimeFontColor=le(t.playtimeFontColor,n.playtimeFontColor.default),this.playtimeTextBottom=ge(t.playtimeTextBottom,n.playtimeTextBottom.default),this.playtimeSlider=ge(t.playtimeSlider,n.playtimeSlider.default),this.playtimeSliderColor=le(t.playtimeSliderColor,n.playtimeSliderColor.default),this.playtimeSliderWidth=k(t.playtimeSliderWidth,n.playtimeSliderWidth.default),this.playtimeClickable=ge(t.playtimeClickable,n.playtimeClickable.default),this.src=Ve(t.src)?null:String(t.src),this.currentTime=0,this.duration=0}get playX(){return this.duration?~~(this.currentTime/this.duration*this.canvWidth):0}get timePlayed(){const t=[this.currentTime/3600,this.currentTime/60%60,this.currentTime%60].map(r=>String(~~r).padStart(2,"0")).join(":");if(!this.playtimeWithMs)return t;const n=~~(this.currentTime%1*1e3);return[t,String(n).padStart(3,"0")].join(".")}}const kc={media:{type:Object,required:!1,default:null},canvWidth:{type:Number,default:0},canvClass:{type:String,default:""},canvHeight:{type:Number,default:0},canvFillColor:{type:String,default:""},circleGradient:{type:Array,default:[[0,"palegreen"],[.3,"lime"],[.7,"limegreen"],[1,"green"]]},fftSize:{type:Number},type:{type:String,default:"wform"},frequLnum:{type:Number,default:60},frequLineCap:{type:Boolean,default:!1},frequDirection:{type:String,default:"lr"},lineColor:{type:String,default:"lime"},lineWidth:{type:Number},radius:{type:Number,default:4},connectDestination:{type:Boolean,default:!1},vbarBgColor:{type:String,default:"#e1e1e1"},vbarCaps:{type:Boolean,default:!0},vbarSpace:{type:Number,default:1},vbarWidth:{type:Number,default:4},vbarFillColor:{type:String,default:"lime"},vbarRightColor:{type:String,default:"#c0c0c0"}},Fo={...kc};function Rc(){return Fo}class kn{constructor(t){v(this,"canvWidth");v(this,"canvHeight");v(this,"canvFillColor");v(this,"canvClass");v(this,"circleGradient");v(this,"fftSize");v(this,"type");v(this,"frequLnum");v(this,"frequLineCap");v(this,"frequDirection");v(this,"lineColor");v(this,"lineWidth");v(this,"radius");v(this,"connectDestination");v(this,"vbarBgColor");v(this,"vbarCaps");v(this,"vbarFillColor");v(this,"vbarRightColor");v(this,"vbarSpace");v(this,"vbarWidth");const n=Fo;this.canvFillColor=le(t.canvFillColor,n.canvFillColor.default),this.canvClass=le(t.canvClass,n.canvClass.default),this.circleGradient=Ve(t.circleGradient)?n.circleGradient.default:t.circleGradient,this.type=le(t.type,n.type.default),this.fftSize=Ve(t.fftSize)?this.type==="frequ"?1024:8192:Number(t.fftSize),this.frequLnum=k(t.frequLnum,n.frequLnum.default),this.frequLineCap=ge(t.frequLineCap,n.frequLineCap.default),this.frequDirection=le(t.frequDirection,n.frequDirection.default),this.lineColor=le(t.lineColor,n.lineColor.default),this.lineWidth=Ve(t.lineWidth)?this.type==="frequ"?3:.5:Number(t.lineWidth),this.radius=k(t.radius,n.radius.default),this.connectDestination=ge(t.connectDestination,n.connectDestination.default),this.vbarBgColor=le(t.vbarBgColor,n.vbarBgColor.default),this.vbarCaps=ge(t.vbarCaps,n.vbarCaps.default),this.vbarFillColor=le(t.vbarFillColor,n.vbarFillColor.default),this.vbarRightColor=le(t.vbarRightColor,n.vbarRightColor.default),this.vbarSpace=k(t.vbarSpace,n.vbarSpace.default),this.vbarWidth=k(t.vbarWidth,n.vbarWidth.default),this.canvWidth=Ve(t.canvWidth)||Number(t.canvWidth)===0?this.defaultWidth:Number(t.canvWidth),this.canvHeight=Ve(t.canvHeight)||Number(t.canvHeight)===0?this.defaultHeight:Number(t.canvHeight)}get defaultWidth(){switch(this.type){case"vbar":return 50;case"frequ":return 300;case"circle":return 80;default:return 200}}get defaultHeight(){switch(this.type){case"vbar":return 20;case"frequ":return 80;case"circle":return 80;default:return 40}}}function Er(e,t,n){let r=null,i=null,o=null;const s=t||1024,l=new Uint8Array(s/2),{pause:c,resume:u}=Pr(()=>{!i||(i.getByteFrequencyData(l),n(l))},{immediate:!1});et(e,"play",()=>{const d=z(e);!d||(r||(r=new AudioContext,o=r.createMediaElementSource(d)),i=r.createAnalyser(),i.fftSize=s,o==null||o.connect(i),i.connect(r.destination),r.resume(),u())}),et(e,"pause",()=>{r==null||r.suspend(),o==null||o.disconnect(),i==null||i.disconnect(),c()})}function Vt(e,t){const n=Z(null);return br(()=>{const r=z(e);!r||(n.value=r.getContext("2d"),r.width=t.canvWidth,r.height=t.canvHeight)}),n}function Or(e,t,n,r){e.clearRect(0,0,t,n),r&&(e.fillStyle=Ar(e,t,n,r),e.fillRect(0,0,t,n))}function Ar(e,t,n,r){if(!Array.isArray(r))return r||"";const i=e.createLinearGradient(t/2,0,t/2,n);let o=0;return r.forEach(s=>{i.addColorStop(o,s),o+=1/r.length}),i}function $c(e,t,n){const r=new bi(n),i=Vt(t,r);Me(i,()=>{!r.placeholder||!z(i)||_i(new Uint8Array(r.fftSize),i,r)}),Er(e,r.fftSize,o=>{_i(o,i,new bi(n))})}function _i(e,t,n){const r=z(t);if(!r)return;const i=n.canvWidth,o=n.canvHeight,s=n.lineWidth,l=e.length,c=~~i/2/l;let u=0;const d=()=>{let h=0;for(let m=0;m(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,jc),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}}),Rt=Array(16).fill(0);function zc(e,t,n){const r=new _o(n);Rt.length=r.fftSize/2,Rt.fill(0);const i=Vt(t,r);et(e,"loadedmetadata",()=>{!r.placeholder||!i||Ci(new Uint8Array(r.fftSize/2),i,n)}),Er(e,r.fftSize,o=>{Ci(o,i,n)})}function Ci(e,t,n){const r=z(t);if(!r)return;const i=new _o(n),o=Math.round((i.barWidth+i.barSpace)/i.frqBits*i.canvWidth),s=e.length;let l=0;Or(r,i.canvWidth,i.canvHeight,i.canvFillColor);for(let c=0;cm+h,0)/o),d=u/255*i.canvHeight;qc(r,i,u,c,l),r.fillStyle=Ar(r,i.canvWidth,i.canvHeight,i.barColor),i.brickHeight>0?Kc(r,i,d,l):r.fillRect(l,i.canvHeight-d-i.alignSym(d),i.barWidth,d),l+=i.barWidth+i.barSpace}}function qc(e,t,n,r,i){if(t.capsHeight===0)return;const o=Rt[r]<=n?n:Rt[r]-t.capsDropSpeed;Rt[r]=o;const s=o/255*t.canvHeight,l=t.canvHeight-s-t.capsHeight-t.alignSym(s);e.fillStyle=t.capsColor,e.fillRect(i,l,t.barWidth,t.capsHeight),t.symmetric&&e.fillRect(i,t.canvHeight-l-t.capsHeight,t.barWidth,t.capsHeight)}function Kc(e,t,n,r){for(let i=0;i(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,Vc),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}});function Qc(e,t,n){const r=new vi(n),i=Vt(t,r);et(e,"loadedmetadata",()=>{Yc(i,r)}),Er(e,r.fftSize,o=>{Jc(o,i,e,new vi(n))})}function Jc(e,t,n,r){const i=z(t);if(!i)return;const o=z(n);if(!o)return;const s=e.length,l=(r.lineWidth+r.lineSpace)/s*(2*Math.PI);Or(i,r.canvWidth,r.canvHeight,r.canvFillColor),xo(i,r),Gc(i,o,r),Zc(i,o,r),i.lineWidth=r.barWidth,i.strokeStyle=ea(i,r);let c=r.angle;for(let u=0;uF+m,0)/r.arcStep),h=r.r+d/255*r.barLen;i.beginPath(),i.moveTo(r.r*Math.cos(c)+r.cx,r.r*Math.sin(c)+r.cy),i.lineTo(h*Math.cos(c)+r.cx,h*Math.sin(c)+r.cy),i.stroke()}}function Yc(e,t){const n=z(e);!n||(xo(n,t),To(n,"0:00",t))}function xo(e,t){t.outlineWidth!==0&&(e.beginPath(),e.strokeStyle=t.outlineColor,e.lineWidth=t.outlineWidth,e.arc(t.cx,t.cy,t.r,0,2*Math.PI),e.stroke())}function Gc(e,t,n){if(!n.progress)return;const{currentTime:r,duration:i}=t,o=r/i*2*Math.PI,s=Math.PI*1.5+o;!o||(e.lineWidth=n.progressWidth,e.strokeStyle=n.progressColor,e.beginPath(),e.arc(n.cx,n.cy,n.r-n.outlineWidth-n.outlineMeterSpace,1.5*Math.PI,s,n.progressClockwise),e.stroke())}function Zc(e,t,n){const{currentTime:r}=t,i=Math.floor(r/60),o=Math.floor(r)%60,s=o<10?`0${o}`:`${o}`,l=`${i}:${s}`;To(e,l,n)}function To(e,t,n){e.font=n.playtimeFont,e.fillStyle=n.playtimeColor,e.textAlign="center",e.fillText(t,n.cx,n.cy+parseInt(n.playtimeFont)*.25)}function ea(e,t){if(!Array.isArray(t.barColor))return t.barColor;const n=e.createRadialGradient(t.cx,t.cy,t.canvWidth/2,t.cx,t.cy,0);let r=0;return t.barColor.forEach(i=>{n.addColorStop(r,i),r+=1/t.barColor.length}),n}const ta=["controls","src"],na=Et({__name:"AVCircle",props:Lc(),setup(e){const t=e,n=Z(null),r=Z(null);return Qc(n,r,t),(i,o)=>(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,ta),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}}),pe=[];function ra(e,t,n,r={}){const i=new Dc(n),o=Vt(t,i);ia(o,i,r);const{pause:s,resume:l}=Pr(()=>{var c,u;i.currentTime=(u=(c=e==null?void 0:e.value)==null?void 0:c.currentTime)!=null?u:0,un(o,i)},{immediate:!1});et(e,"play",()=>l()),et(e,"pause",()=>s()),et(e,"timeupdate",()=>{const c=z(e);!c||(i.currentTime=c.currentTime,un(o,i))}),et(t,"click",c=>{if(!i.playtimeClickable)return;const u=z(e);!u||(u.currentTime=c.offsetX/i.canvWidth*i.duration,i.currentTime=u.currentTime,un(o,i))})}function un(e,t){const n=z(e);if(!n)return;let r=0;n.clearRect(0,0,t.canvWidth,t.canvHeight);const i=(o,s,l,c)=>{for(n.lineWidth=l,n.strokeStyle=c,n.beginPath();ot.canvWidth-i-r?t.playX-i-r:t.playX+r,s=t.playtimeTextBottom?t.canvHeight-t.playtimeFontSize+r:t.playtimeFontSize+r;e.fillStyle=t.playtimeFontColor,e.font=`${t.playtimeFontSize}px ${t.playtimeFontFamily}`,e.fillText(n,o,s)}function ia(e,t,n){if(!t.src)return;Cc(n)(t.src).arrayBuffer().then(({error:i,data:o})=>{const s=z(i);if(s!==null){console.error(`Failed get url '${t.src}': ${s}`);return}if(o.value===null){console.error("invalid arrayBuffer data received");return}new AudioContext().decodeAudioData(o.value).then(c=>{t.duration=c.duration,oa(c,t),un(e,t)}).catch(c=>{console.error("Failed to decode audio array buffer:",c)})}),br(()=>{const i=z(e);!i||(i.lineWidth=t.noplayedLineWidth,i.strokeStyle=t.noplayedLineColor,i.beginPath(),i.moveTo(0,t.canvHeight/2),i.lineTo(t.canvWidth,t.canvHeight/2),i.stroke(),Wo(i,t),t.playtime&&Po(i,t))})}function oa(e,t){pe.slice(0);let n=0,r=0,i=0,o=0;const s=Math.ceil(e.length/t.canvWidth),l=t.canvWidth,c=t.canvHeight;for(let u=0;ur?d[W]:r;pe[h]&&(pe[h][0]=pe[h][0]n?n:pe[h][1]),pe[h]=[r,n]}}for(let u=0;u(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,sa),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}});function ca(e,t){const n=t;let r;const i=Vt(e,new kn(n)),{pause:o,resume:s}=Pr(()=>{!r||ua(r,i,new kn(n))},{immediate:!1});br(()=>{const l=z(n.media);l?(r=aa(l,new kn(n)),s()):o()})}function aa(e,t){const n=new AudioContext,r=n.createAnalyser();return n.createMediaStreamSource(e).connect(r),r.fftSize=t.fftSize,t.connectDestination&&r.connect(n.destination),r}function ua(e,t,n){const r=z(t);if(!r)return;const i=new Uint8Array(e.fftSize);switch(n.canvFillColor&&(r.fillStyle=n.canvFillColor),r.clearRect(0,0,n.canvWidth,n.canvHeight),r.beginPath(),r.strokeStyle=n.lineColor,n.type){case"frequ":e.getByteFrequencyData(i),fa(i,r,n);break;case"circle":e.getByteFrequencyData(i),ha(i,r,n);break;case"vbar":e.getByteFrequencyData(i),da(i,r,n);break;default:e.getByteTimeDomainData(i),pa(i,r,n);break}}function fa(e,t,n){const r=n.frequDirection==="mo",i=r?n.canvWidth/2:0,o=r?n.frequLnum/2:n.frequLnum,s=r?n.canvWidth/o/2:n.canvWidth/o,l=n.canvHeight,c=n.lineWidth||2;for(let u=0;uF+W/255*l,0)/s,m=(l-h)/2+2;t.lineWidth=c,t.lineCap=n.frequLineCap?"round":"butt",t.moveTo(i+d,m),t.lineTo(i+d,l-m),t.stroke(),r&&u>0&&(t.moveTo(i-d,m),t.lineTo(i-d,l-m),t.stroke())}}function da(e,t,n){const r=n.vbarWidth,i=n.vbarSpace,o=r<5?5:r/2;let s=0;for(let c=0;cl?n.vbarRightColor:n.vbarFillColor,t.beginPath(),t.moveTo(c,o),t.lineTo(c,n.canvHeight-o),t.stroke()}function ha(e,t,n){const r=n.canvWidth/2,i=n.canvHeight/2,o=r(Ot(),At("canvas",{ref_key:"canvas",ref:n},null,512))}}),ma={class:"container"},ga=wl('

Vue-Audio-Visual Vue plugin demo

See source this page source code for details
',1),ya={class:"row row-cols-3 mb-5 justify-content-start"},ba={class:"col"},va=H("h3",null,[H("code",null,"")],-1),_a={class:"col"},Ca=H("h3",null,[H("code",null,"")],-1),wa={class:"col"},Sa=H("h3",null,[H("code",null,"")],-1),Fa={class:"d-flex align-items-center"},xa={class:"row row-cols-2"},Ta={class:"col"},Wa=H("h3",null,[H("code",null,"")],-1),Pa={class:"col"},Ea=H("h3",null,[H("code",null,"")],-1),Oa={class:"card mt-3"},Aa=H("div",{class:"card-header text-primary"},[H("i",{class:"bi-mic-fill"}),Fr("Microphone media visualization ")],-1),Ma=H("div",{class:"card-body"},' To start click "Enable" and allow audio if asked. ',-1),Ha=[Aa,Ma],Ia={class:"row row-cols-2"},La={class:"col"},Na=H("p",{class:"font-monospace text-muted mb-0"},'type="frequ"',-1),Ba=H("p",{class:"font-monospace text-muted text-nowrap mt-3 mb-0"},' type="frequ" frequ-direction="mo"',-1),Da=H("p",{class:"font-monospace text-muted mt-2 mb-0"},'type="wform"',-1),ka={class:"col"},Ra=H("p",{class:"font-monospace text-muted mb-0"},'type="vbar"',-1),$a=H("p",{class:"font-monospace text-muted mb-0 mt-3"},' type="frequ" :frequ-lnum="3"',-1),ja=H("p",{class:"font-monospace text-muted mb-0 mt-2"},'type="circle"',-1),Ua=Et({__name:"App",setup(e){const t=Z("./file_example_MP3_1MG.mp3"),n=Z(!1),{stream:r,enabled:i}=Ec();return Me(i,()=>{n.value||i&&(n.value=!0)}),(o,s)=>(Ot(),At("div",ma,[ga,H("div",ya,[H("div",ba,[va,se(Uc,{src:t.value,"cors-anonym":!1},null,8,["src"])]),H("div",_a,[Ca,se(Xc,{src:t.value,"caps-color":"#FFF","bar-color":["#f00","#ff0","#0f0"],"canv-fill-color":"#000","brick-height":6,"bar-width":10,"caps-height":2},null,8,["src"])]),H("div",wa,[Sa,H("div",Fa,[se(na,{src:t.value,"outline-width":.5,"progress-width":5,"outline-meter-space":4,playtime:!0,"playtime-font":"16px Monaco"},null,8,["src","outline-width"])])])]),H("div",xa,[H("div",Ta,[Wa,se(la,{src:t.value,"noplayed-line-color":"#CFCFCF","played-line-color":"lime"},null,8,["src"])]),H("div",Pa,[Ea,H("button",{class:"btn btn-primary btn-default",onClick:s[0]||(s[0]=l=>i.value=!Ne(i)),type:"submit"},[H("i",{class:gn(Ne(i)?"bi-pause-circle":"bi-play-circle")},null,2),Fr(" "+Bo(Ne(i)?"Pause":"Enable"),1)]),Vr(H("div",Oa,Ha,512),[[ai,!n.value]]),Vr(H("div",Ia,[H("div",La,[Na,se(bt,{media:Ne(r),type:"frequ","line-color":"darkorange"},null,8,["media"]),Ba,se(bt,{media:Ne(r),type:"frequ","frequ-direction":"mo","frequ-lnum":60,"line-color":"darkorange"},null,8,["media"]),Da,se(bt,{media:Ne(r),type:"wform","line-color":"blue"},null,8,["media"])]),H("div",ka,[Ra,se(bt,{media:Ne(r),type:"vbar"},null,8,["media"]),$a,se(bt,{media:Ne(r),"canv-width":30,"canv-height":30,type:"frequ","frequ-line-cap":!0,"frequ-lnum":3,"line-width":6},null,8,["media"]),ja,se(bt,{media:Ne(r),type:"circle"},null,8,["media"])])],512),[[ai,n.value]])])])]))}});tc(Ua).mount("#app"); +var Eo=Object.defineProperty;var Oo=(e,t,n)=>t in e?Eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var v=(e,t,n)=>(Oo(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).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 r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function nr(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i!!n[i.toLowerCase()]:i=>!!n[i]}function rr(e){if(I(e)){const t={};for(let n=0;n{if(n){const r=n.split(Mo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function gn(e){let t="";if(ue(e))t=e;else if(I(e))for(let n=0;nue(e)?e:e==null?"":I(e)||te(e)&&(e.toString===Ti||!N(e.toString))?JSON.stringify(e,Si,2):String(e),Si=(e,t)=>t&&t.__v_isRef?Si(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:Fi(t)?{[`Set(${t.size})`]:[...t.values()]}:te(t)&&!I(t)&&!Wi(t)?String(t):t,V={},vt=[],Re=()=>{},Do=()=>!1,ko=/^on[^a-z]/,yn=e=>ko.test(e),ir=e=>e.startsWith("onUpdate:"),ye=Object.assign,or=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ro=Object.prototype.hasOwnProperty,$=(e,t)=>Ro.call(e,t),I=Array.isArray,_t=e=>bn(e)==="[object Map]",Fi=e=>bn(e)==="[object Set]",N=e=>typeof e=="function",ue=e=>typeof e=="string",sr=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",xi=e=>te(e)&&N(e.then)&&N(e.catch),Ti=Object.prototype.toString,bn=e=>Ti.call(e),$o=e=>bn(e).slice(8,-1),Wi=e=>bn(e)==="[object Object]",lr=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,on=nr(",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))},jo=/-(\w)/g,St=vn(e=>e.replace(jo,(t,n)=>n?n.toUpperCase():"")),Uo=/\B([A-Z])/g,Tt=vn(e=>e.replace(Uo,"-$1").toLowerCase()),Pi=vn(e=>e.charAt(0).toUpperCase()+e.slice(1)),An=vn(e=>e?`on${Pi(e)}`:""),jt=(e,t)=>!Object.is(e,t),Mn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ei=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Nr;const zo=()=>Nr||(Nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class qo{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Oi=e=>(e.w&rt)>0,Ai=e=>(e.n&rt)>0,Qo=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=c)&&l.push(u)})}else switch(n!==void 0&&l.push(s.get(n)),t){case"add":I(e)?lr(n)&&l.push(s.get("length")):(l.push(s.get(dt)),_t(e)&&l.push(s.get(jn)));break;case"delete":I(e)||(l.push(s.get(dt)),_t(e)&&l.push(s.get(jn)));break;case"set":_t(e)&&l.push(s.get(dt));break}if(l.length===1)l[0]&&Un(l[0]);else{const c=[];for(const u of l)u&&c.push(...u);Un(cr(c))}}function Un(e,t){const n=I(e)?e:[...e];for(const r of n)r.computed&&Dr(r);for(const r of n)r.computed||Dr(r)}function Dr(e,t){(e!==Be||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Yo=nr("__proto__,__v_isRef,__isVue"),Ii=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(sr)),Go=ur(),Zo=ur(!1,!0),es=ur(!0),kr=ts();function ts(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=q(this);for(let o=0,s=this.length;o{e[t]=function(...n){Wt();const r=q(this)[t].apply(this,n);return Pt(),r}}),e}function ur(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?ys:ki:t?Di:Bi).get(r))return r;const s=I(r);if(!e&&s&&$(kr,i))return Reflect.get(kr,i,o);const l=Reflect.get(r,i,o);return(sr(i)?Ii.has(i):Yo(i))||(e||Pe(r,"get",i),t)?l:ae(l)?s&&lr(i)?l:l.value:te(l)?e?Ri(l):hr(l):l}}const ns=Li(),rs=Li(!0);function Li(e=!1){return function(n,r,i,o){let s=n[r];if(Ft(s)&&ae(s)&&!ae(i))return!1;if(!e&&(!dn(i)&&!Ft(i)&&(s=q(s),i=q(i)),!I(n)&&ae(s)&&!ae(i)))return s.value=i,!0;const l=I(n)&&lr(r)?Number(r)e,_n=e=>Reflect.getPrototypeOf(e);function Yt(e,t,n=!1,r=!1){e=e.__v_raw;const i=q(e),o=q(t);n||(t!==o&&Pe(i,"get",t),Pe(i,"get",o));const{has:s}=_n(i),l=r?fr:n?mr:Ut;if(s.call(i,t))return l(e.get(t));if(s.call(i,o))return l(e.get(o));e!==i&&e.get(t)}function Gt(e,t=!1){const n=this.__v_raw,r=q(n),i=q(e);return t||(e!==i&&Pe(r,"has",e),Pe(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Zt(e,t=!1){return e=e.__v_raw,!t&&Pe(q(e),"iterate",dt),Reflect.get(e,"size",e)}function Rr(e){e=q(e);const t=q(this);return _n(t).has.call(t,e)||(t.add(e),Je(t,"add",e,e)),this}function $r(e,t){t=q(t);const n=q(this),{has:r,get:i}=_n(n);let o=r.call(n,e);o||(e=q(e),o=r.call(n,e));const s=i.call(n,e);return n.set(e,t),o?jt(t,s)&&Je(n,"set",e,t):Je(n,"add",e,t),this}function jr(e){const t=q(this),{has:n,get:r}=_n(t);let i=n.call(t,e);i||(e=q(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&Je(t,"delete",e,void 0),o}function Ur(){const e=q(this),t=e.size!==0,n=e.clear();return t&&Je(e,"clear",void 0,void 0),n}function en(e,t){return function(r,i){const o=this,s=o.__v_raw,l=q(s),c=t?fr:e?mr:Ut;return!e&&Pe(l,"iterate",dt),s.forEach((u,d)=>r.call(i,c(u),c(d),o))}}function tn(e,t,n){return function(...r){const i=this.__v_raw,o=q(i),s=_t(o),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=i[e](...r),d=n?fr:t?mr:Ut;return!t&&Pe(o,"iterate",c?jn:dt),{next(){const{value:h,done:m}=u.next();return m?{value:h,done:m}:{value:l?[d(h[0]),d(h[1])]:d(h),done:m}},[Symbol.iterator](){return this}}}}function Ge(e){return function(...t){return e==="delete"?!1:this}}function as(){const e={get(o){return Yt(this,o)},get size(){return Zt(this)},has:Gt,add:Rr,set:$r,delete:jr,clear:Ur,forEach:en(!1,!1)},t={get(o){return Yt(this,o,!1,!0)},get size(){return Zt(this)},has:Gt,add:Rr,set:$r,delete:jr,clear:Ur,forEach:en(!1,!0)},n={get(o){return Yt(this,o,!0)},get size(){return Zt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:en(!0,!1)},r={get(o){return Yt(this,o,!0,!0)},get size(){return Zt(this,!0)},has(o){return Gt.call(this,o,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:en(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=tn(o,!1,!1),n[o]=tn(o,!0,!1),t[o]=tn(o,!1,!0),r[o]=tn(o,!0,!0)}),[e,n,t,r]}const[us,fs,ds,hs]=as();function dr(e,t){const n=t?e?hs:ds:e?fs:us;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get($(n,i)&&i in r?n:r,i,o)}const ps={get:dr(!1,!1)},ms={get:dr(!1,!0)},gs={get:dr(!0,!1)},Bi=new WeakMap,Di=new WeakMap,ki=new WeakMap,ys=new WeakMap;function bs(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vs(e){return e.__v_skip||!Object.isExtensible(e)?0:bs($o(e))}function hr(e){return Ft(e)?e:pr(e,!1,Ni,ps,Bi)}function _s(e){return pr(e,!1,cs,ms,Di)}function Ri(e){return pr(e,!0,ls,gs,ki)}function pr(e,t,n,r,i){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=vs(e);if(s===0)return e;const l=new Proxy(e,s===2?r:n);return i.set(e,l),l}function Ct(e){return Ft(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function dn(e){return!!(e&&e.__v_isShallow)}function $i(e){return Ct(e)||Ft(e)}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function ji(e){return fn(e,"__v_skip",!0),e}const Ut=e=>te(e)?hr(e):e,mr=e=>te(e)?Ri(e):e;function Ui(e){tt&&Be&&(e=q(e),Hi(e.dep||(e.dep=cr())))}function zi(e,t){e=q(e),e.dep&&Un(e.dep)}function ae(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return qi(e,!1)}function sn(e){return qi(e,!0)}function qi(e,t){return ae(e)?e:new Cs(e,t)}class Cs{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:q(t),this._value=n?t:Ut(t)}get value(){return Ui(this),this._value}set value(t){const n=this.__v_isShallow||dn(t)||Ft(t);t=n?t:q(t),jt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ut(t),zi(this))}}function Ne(e){return ae(e)?e.value:e}const ws={get:(e,t,n)=>Ne(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ae(i)&&!ae(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ki(e){return Ct(e)?e:new Proxy(e,ws)}var Vi;class Ss{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Vi]=!1,this._dirty=!0,this.effect=new ar(t,()=>{this._dirty||(this._dirty=!0,zi(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=q(this);return Ui(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Vi="__v_isReadonly";function Fs(e,t,n=!1){let r,i;const o=N(e);return o?(r=e,i=Re):(r=e.get,i=e.set),new Ss(r,i,o||!i,n)}function nt(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Cn(o,t,n)}return i}function Ae(e,t,n,r){if(N(e)){const o=nt(e,t,n,r);return o&&xi(o)&&o.catch(s=>{Cn(s,t,n)}),o}const i=[];for(let o=0;o>>1;qt(me[r])ze&&me.splice(t,1)}function Ps(e){I(e)?wt.push(...e):(!Ke||!Ke.includes(e,e.allowRecurse?ct+1:ct))&&wt.push(e),Ji()}function zr(e,t=zt?ze+1:0){for(;tqt(n)-qt(r)),ct=0;cte.id==null?1/0:e.id,Es=(e,t)=>{const n=qt(e)-qt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Gi(e){zn=!1,zt=!0,me.sort(Es);const t=Re;try{for(ze=0;zeue(F)?F.trim():F)),h&&(i=n.map(Ei))}let l,c=r[l=An(t)]||r[l=An(St(t))];!c&&o&&(c=r[l=An(Tt(t))]),c&&Ae(c,e,6,i);const u=r[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ae(u,e,6,i)}}function Zi(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},l=!1;if(!N(e)){const c=u=>{const d=Zi(u,t,!0);d&&(l=!0,ye(s,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!l?(te(e)&&r.set(e,null),null):(I(o)?o.forEach(c=>s[c]=null):ye(s,o),te(e)&&r.set(e,s),s)}function wn(e,t){return!e||!yn(t)?!1:(t=t.slice(2).replace(/Once$/,""),$(e,t[0].toLowerCase()+t.slice(1))||$(e,Tt(t))||$(e,t))}let De=null,eo=null;function hn(e){const t=De;return De=e,eo=e&&e.type.__scopeId||null,t}function As(e,t=De,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&ei(-1);const o=hn(t);let s;try{s=e(...i)}finally{hn(o),r._d&&ei(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Hn(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:l,attrs:c,emit:u,render:d,renderCache:h,data:m,setupState:F,ctx:W,inheritAttrs:T}=e;let A,B;const ne=hn(e);try{if(n.shapeFlag&4){const z=i||r;A=Ue(d.call(z,z,h,o,F,m,W)),B=c}else{const z=t;A=Ue(z.length>1?z(o,{attrs:c,slots:l,emit:u}):z(o,null)),B=t.props?c:Ms(c)}}catch(z){kt.length=0,Cn(z,e,1),A=le(Qe)}let O=A;if(B&&T!==!1){const z=Object.keys(B),{shapeFlag:X}=O;z.length&&X&7&&(s&&z.some(ir)&&(B=Hs(B,s)),O=it(O,B))}return n.dirs&&(O=it(O),O.dirs=O.dirs?O.dirs.concat(n.dirs):n.dirs),n.transition&&(O.transition=n.transition),A=O,hn(ne),A}const Ms=e=>{let t;for(const n in e)(n==="class"||n==="style"||yn(n))&&((t||(t={}))[n]=e[n]);return t},Hs=(e,t)=>{const n={};for(const r in e)(!ir(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Is(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:l,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?qr(r,s,u):!!s;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Bs(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):Ps(e)}function Ds(e,t){if(he){let n=he.provides;const r=he.parent&&he.parent.provides;r===n&&(n=he.provides=Object.create(r)),n[e]=t}}function ln(e,t,n=!1){const r=he||De;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&N(t)?t.call(r.proxy):t}}function br(e,t){return vr(e,null,t)}const nn={};function Me(e,t,n){return vr(e,t,n)}function vr(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=V){const l=he;let c,u=!1,d=!1;if(ae(e)?(c=()=>e.value,u=dn(e)):Ct(e)?(c=()=>e,r=!0):I(e)?(d=!0,u=e.some(O=>Ct(O)||dn(O)),c=()=>e.map(O=>{if(ae(O))return O.value;if(Ct(O))return ft(O);if(N(O))return nt(O,l,2)})):N(e)?t?c=()=>nt(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return h&&h(),Ae(e,l,3,[m])}:c=Re,t&&r){const O=c;c=()=>ft(O())}let h,m=O=>{h=B.onStop=()=>{nt(O,l,4)}},F;if(Vt)if(m=Re,t?n&&Ae(t,l,3,[c(),d?[]:void 0,m]):c(),i==="sync"){const O=Hl();F=O.__watcherHandles||(O.__watcherHandles=[])}else return Re;let W=d?new Array(e.length).fill(nn):nn;const T=()=>{if(!!B.active)if(t){const O=B.run();(r||u||(d?O.some((z,X)=>jt(z,W[X])):jt(O,W)))&&(h&&h(),Ae(t,l,3,[O,W===nn?void 0:d&&W[0]===nn?[]:W,m]),W=O)}else B.run()};T.allowRecurse=!!t;let A;i==="sync"?A=T:i==="post"?A=()=>Se(T,l&&l.suspense):(T.pre=!0,l&&(T.id=l.uid),A=()=>yr(T));const B=new ar(c,A);t?n?T():W=B.run():i==="post"?Se(B.run.bind(B),l&&l.suspense):B.run();const ne=()=>{B.stop(),l&&l.scope&&or(l.scope.effects,B)};return F&&F.push(ne),ne}function ks(e,t,n){const r=this.proxy,i=ue(e)?e.includes(".")?to(r,e):()=>r[e]:e.bind(r,r);let o;N(t)?o=t:(o=t.handler,n=t);const s=he;xt(this);const l=vr(i,o.bind(r),n);return s?xt(s):ht(),l}function to(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i{ft(n,t)});else if(Wi(e))for(const n in e)ft(e[n],t);return e}function Rs(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return _r(()=>{e.isMounted=!0}),oo(()=>{e.isUnmounting=!0}),e}const Oe=[Function,Array],$s={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oe,onEnter:Oe,onAfterEnter:Oe,onEnterCancelled:Oe,onBeforeLeave:Oe,onLeave:Oe,onAfterLeave:Oe,onLeaveCancelled:Oe,onBeforeAppear:Oe,onAppear:Oe,onAfterAppear:Oe,onAppearCancelled:Oe},setup(e,{slots:t}){const n=yo(),r=Rs();let i;return()=>{const o=t.default&&ro(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const T of o)if(T.type!==Qe){s=T;break}}const l=q(e),{mode:c}=l;if(r.isLeaving)return In(s);const u=Kr(s);if(!u)return In(s);const d=qn(u,l,r,n);Kn(u,d);const h=n.subTree,m=h&&Kr(h);let F=!1;const{getTransitionKey:W}=u.type;if(W){const T=W();i===void 0?i=T:T!==i&&(i=T,F=!0)}if(m&&m.type!==Qe&&(!at(u,m)||F)){const T=qn(m,l,r,n);if(Kn(m,T),c==="out-in")return r.isLeaving=!0,T.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},In(s);c==="in-out"&&u.type!==Qe&&(T.delayLeave=(A,B,ne)=>{const O=no(r,m);O[String(m.key)]=m,A._leaveCb=()=>{B(),A._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=ne})}return s}}},js=$s;function no(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function qn(e,t,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:m,onAfterLeave:F,onLeaveCancelled:W,onBeforeAppear:T,onAppear:A,onAfterAppear:B,onAppearCancelled:ne}=t,O=String(e.key),z=no(n,e),X=(L,ee)=>{L&&Ae(L,r,9,ee)},Ce=(L,ee)=>{const Y=ee[1];X(L,ee),I(L)?L.every(ie=>ie.length<=1)&&Y():L.length<=1&&Y()},He={mode:o,persisted:s,beforeEnter(L){let ee=l;if(!n.isMounted)if(i)ee=T||l;else return;L._leaveCb&&L._leaveCb(!0);const Y=z[O];Y&&at(e,Y)&&Y.el._leaveCb&&Y.el._leaveCb(),X(ee,[L])},enter(L){let ee=c,Y=u,ie=d;if(!n.isMounted)if(i)ee=A||c,Y=B||u,ie=ne||d;else return;let oe=!1;const xe=L._enterCb=Ie=>{oe||(oe=!0,Ie?X(ie,[L]):X(Y,[L]),He.delayedLeave&&He.delayedLeave(),L._enterCb=void 0)};ee?Ce(ee,[L,xe]):xe()},leave(L,ee){const Y=String(e.key);if(L._enterCb&&L._enterCb(!0),n.isUnmounting)return ee();X(h,[L]);let ie=!1;const oe=L._leaveCb=xe=>{ie||(ie=!0,ee(),xe?X(W,[L]):X(F,[L]),L._leaveCb=void 0,z[Y]===e&&delete z[Y])};z[Y]=e,m?Ce(m,[L,oe]):oe()},clone(L){return qn(L,t,n,r)}};return He}function In(e){if(Sn(e))return e=it(e),e.children=null,e}function Kr(e){return Sn(e)?e.children?e.children[0]:void 0:e}function Kn(e,t){e.shapeFlag&6&&e.component?Kn(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 ro(e,t=!1,n){let r=[],i=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,Sn=e=>e.type.__isKeepAlive;function Us(e,t){io(e,"a",t)}function zs(e,t){io(e,"da",t)}function io(e,t,n=he){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Fn(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Sn(i.parent.vnode)&&qs(r,t,n,i),i=i.parent}}function qs(e,t,n,r){const i=Fn(t,e,r,!0);so(()=>{or(r[t],i)},n)}function Fn(e,t,n=he,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Wt(),xt(n);const l=Ae(t,n,e,s);return ht(),Pt(),l});return r?i.unshift(o):i.push(o),o}}const Ye=e=>(t,n=he)=>(!Vt||e==="sp")&&Fn(e,(...r)=>t(...r),n),Ks=Ye("bm"),_r=Ye("m"),Vs=Ye("bu"),Xs=Ye("u"),oo=Ye("bum"),so=Ye("um"),Qs=Ye("sp"),Js=Ye("rtg"),Ys=Ye("rtc");function Gs(e,t=he){Fn("ec",e,t)}function Vr(e,t){const n=De;if(n===null)return e;const r=Tn(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;oe?bo(e)?Tn(e)||e.proxy:Vn(e.parent):null,Dt=ye(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=>Vn(e.parent),$root:e=>Vn(e.root),$emit:e=>e.emit,$options:e=>Cr(e),$forceUpdate:e=>e.f||(e.f=()=>yr(e.update)),$nextTick:e=>e.n||(e.n=Qi.bind(e.proxy)),$watch:e=>ks.bind(e)}),el={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:l,appContext:c}=e;let u;if(t[0]!=="$"){const F=s[t];if(F!==void 0)switch(F){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(r!==V&&$(r,t))return s[t]=1,r[t];if(i!==V&&$(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&$(u,t))return s[t]=3,o[t];if(n!==V&&$(n,t))return s[t]=4,n[t];Xn&&(s[t]=0)}}const d=Dt[t];let h,m;if(d)return t==="$attrs"&&Pe(e,"get",t),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==V&&$(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,$(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return i!==V&&$(i,t)?(i[t]=n,!0):r!==V&&$(r,t)?(r[t]=n,!0):$(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let l;return!!n[s]||e!==V&&$(e,s)||t!==V&&$(t,s)||(l=o[0])&&$(l,s)||$(r,s)||$(Dt,s)||$(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:$(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Xn=!0;function tl(e){const t=Cr(e),n=e.proxy,r=e.ctx;Xn=!1,t.beforeCreate&&Xr(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:l,provide:c,inject:u,created:d,beforeMount:h,mounted:m,beforeUpdate:F,updated:W,activated:T,deactivated:A,beforeDestroy:B,beforeUnmount:ne,destroyed:O,unmounted:z,render:X,renderTracked:Ce,renderTriggered:He,errorCaptured:L,serverPrefetch:ee,expose:Y,inheritAttrs:ie,components:oe,directives:xe,filters:Ie}=t;if(u&&nl(u,r,null,e.appContext.config.unwrapInjectedRef),s)for(const R in s){const j=s[R];N(j)&&(r[R]=j.bind(n))}if(i){const R=i.call(n,n);te(R)&&(e.data=hr(R))}if(Xn=!0,o)for(const R in o){const j=o[R],de=N(j)?j.bind(n,n):N(j.get)?j.get.bind(n,n):Re,we=!N(j)&&N(j.set)?j.set.bind(n):Re,Ee=Wn({get:de,set:we});Object.defineProperty(r,R,{enumerable:!0,configurable:!0,get:()=>Ee.value,set:be=>Ee.value=be})}if(l)for(const R in l)lo(l[R],r,n,R);if(c){const R=N(c)?c.call(n):c;Reflect.ownKeys(R).forEach(j=>{Ds(j,R[j])})}d&&Xr(d,e,"c");function Q(R,j){I(j)?j.forEach(de=>R(de.bind(n))):j&&R(j.bind(n))}if(Q(Ks,h),Q(_r,m),Q(Vs,F),Q(Xs,W),Q(Us,T),Q(zs,A),Q(Gs,L),Q(Ys,Ce),Q(Js,He),Q(oo,ne),Q(so,z),Q(Qs,ee),I(Y))if(Y.length){const R=e.exposed||(e.exposed={});Y.forEach(j=>{Object.defineProperty(R,j,{get:()=>n[j],set:de=>n[j]=de})})}else e.exposed||(e.exposed={});X&&e.render===Re&&(e.render=X),ie!=null&&(e.inheritAttrs=ie),oe&&(e.components=oe),xe&&(e.directives=xe)}function nl(e,t,n=Re,r=!1){I(e)&&(e=Qn(e));for(const i in e){const o=e[i];let s;te(o)?"default"in o?s=ln(o.from||i,o.default,!0):s=ln(o.from||i):s=ln(o),ae(s)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:l=>s.value=l}):t[i]=s}}function Xr(e,t,n){Ae(I(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function lo(e,t,n,r){const i=r.includes(".")?to(n,r):()=>n[r];if(ue(e)){const o=t[e];N(o)&&Me(i,o)}else if(N(e))Me(i,e.bind(n));else if(te(e))if(I(e))e.forEach(o=>lo(o,t,n,r));else{const o=N(e.handler)?e.handler.bind(n):t[e.handler];N(o)&&Me(i,o,e)}}function Cr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let c;return l?c=l:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(u=>pn(c,u,s,!0)),pn(c,t,s)),te(t)&&o.set(t,c),c}function pn(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&pn(e,o,n,!0),i&&i.forEach(s=>pn(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=rl[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const rl={data:Qr,props:lt,emits:lt,methods:lt,computed:lt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:lt,directives:lt,watch:ol,provide:Qr,inject:il};function Qr(e,t){return t?e?function(){return ye(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function il(e,t){return lt(Qn(e),Qn(t))}function Qn(e){if(I(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[m,F]=ao(h,t,!0);ye(s,m),F&&l.push(...F)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!c)return te(e)&&r.set(e,vt),vt;if(I(o))for(let d=0;d-1,F[1]=T<0||W-1||$(F,"default"))&&l.push(h)}}}const u=[s,l];return te(e)&&r.set(e,u),u}function Jr(e){return e[0]!=="$"}function Yr(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Gr(e,t){return Yr(e)===Yr(t)}function Zr(e,t){return I(t)?t.findIndex(n=>Gr(n,e)):N(t)&&Gr(t,e)?0:-1}const uo=e=>e[0]==="_"||e==="$stable",wr=e=>I(e)?e.map(Ue):[Ue(e)],cl=(e,t,n)=>{if(t._n)return t;const r=As((...i)=>wr(t(...i)),n);return r._c=!1,r},fo=(e,t,n)=>{const r=e._ctx;for(const i in e){if(uo(i))continue;const o=e[i];if(N(o))t[i]=cl(i,o,r);else if(o!=null){const s=wr(o);t[i]=()=>s}}},ho=(e,t)=>{const n=wr(t);e.slots.default=()=>n},al=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=q(t),fn(t,"_",n)):fo(t,e.slots={})}else e.slots={},t&&ho(e,t);fn(e.slots,xn,1)},ul=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=V;if(r.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:(ye(i,t),!n&&l===1&&delete i._):(o=!t.$stable,fo(t,i)),s=t}else t&&(ho(e,t),s={default:1});if(o)for(const l in i)!uo(l)&&!(l in s)&&delete i[l]};function po(){return{app:null,config:{isNativeTag:Do,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 fl=0;function dl(e,t){return function(r,i=null){N(r)||(r=Object.assign({},r)),i!=null&&!te(i)&&(i=null);const o=po(),s=new Set;let l=!1;const c=o.app={_uid:fl++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:Il,get config(){return o.config},set config(u){},use(u,...d){return s.has(u)||(u&&N(u.install)?(s.add(u),u.install(c,...d)):N(u)&&(s.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const m=le(r,i);return m.appContext=o,d&&t?t(m,u):e(m,u,h),l=!0,c._container=u,u.__vue_app__=c,Tn(m.component)||m.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c}};return c}}function Yn(e,t,n,r,i=!1){if(I(e)){e.forEach((m,F)=>Yn(m,t&&(I(t)?t[F]:t),n,r,i));return}if(cn(r)&&!i)return;const o=r.shapeFlag&4?Tn(r.component)||r.component.proxy:r.el,s=i?null:o,{i:l,r:c}=e,u=t&&t.r,d=l.refs===V?l.refs={}:l.refs,h=l.setupState;if(u!=null&&u!==c&&(ue(u)?(d[u]=null,$(h,u)&&(h[u]=null)):ae(u)&&(u.value=null)),N(c))nt(c,l,12,[s,d]);else{const m=ue(c),F=ae(c);if(m||F){const W=()=>{if(e.f){const T=m?$(h,c)?h[c]:d[c]:c.value;i?I(T)&&or(T,o):I(T)?T.includes(o)||T.push(o):m?(d[c]=[o],$(h,c)&&(h[c]=d[c])):(c.value=[o],e.k&&(d[e.k]=c.value))}else m?(d[c]=s,$(h,c)&&(h[c]=s)):F&&(c.value=s,e.k&&(d[e.k]=s))};s?(W.id=-1,Se(W,n)):W()}}}const Se=Bs;function hl(e){return pl(e)}function pl(e,t){const n=zo();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:l,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:m,setScopeId:F=Re,insertStaticContent:W}=e,T=(a,f,p,y=null,g=null,C=null,S=!1,_=null,w=!!f.dynamicChildren)=>{if(a===f)return;a&&!at(a,f)&&(y=Jt(a),be(a,g,C,!0),a=null),f.patchFlag===-2&&(w=!1,f.dynamicChildren=null);const{type:b,ref:P,shapeFlag:x}=f;switch(b){case Sr:A(a,f,p,y);break;case Qe:B(a,f,p,y);break;case an:a==null&&ne(f,p,y,S);break;case Fe:oe(a,f,p,y,g,C,S,_,w);break;default:x&1?X(a,f,p,y,g,C,S,_,w):x&6?xe(a,f,p,y,g,C,S,_,w):(x&64||x&128)&&b.process(a,f,p,y,g,C,S,_,w,mt)}P!=null&&g&&Yn(P,a&&a.ref,C,f||a,!f)},A=(a,f,p,y)=>{if(a==null)r(f.el=l(f.children),p,y);else{const g=f.el=a.el;f.children!==a.children&&u(g,f.children)}},B=(a,f,p,y)=>{a==null?r(f.el=c(f.children||""),p,y):f.el=a.el},ne=(a,f,p,y)=>{[a.el,a.anchor]=W(a.children,f,p,y,a.el,a.anchor)},O=({el:a,anchor:f},p,y)=>{let g;for(;a&&a!==f;)g=m(a),r(a,p,y),a=g;r(f,p,y)},z=({el:a,anchor:f})=>{let p;for(;a&&a!==f;)p=m(a),i(a),a=p;i(f)},X=(a,f,p,y,g,C,S,_,w)=>{S=S||f.type==="svg",a==null?Ce(f,p,y,g,C,S,_,w):ee(a,f,g,C,S,_,w)},Ce=(a,f,p,y,g,C,S,_)=>{let w,b;const{type:P,props:x,shapeFlag:E,transition:M,dirs:D}=a;if(w=a.el=s(a.type,C,x&&x.is,x),E&8?d(w,a.children):E&16&&L(a.children,w,null,y,g,C&&P!=="foreignObject",S,_),D&&ot(a,null,y,"created"),x){for(const K in x)K!=="value"&&!on(K)&&o(w,K,null,x[K],C,a.children,y,g,qe);"value"in x&&o(w,"value",null,x.value),(b=x.onVnodeBeforeMount)&&je(b,y,a)}He(w,a,a.scopeId,S,y),D&&ot(a,null,y,"beforeMount");const J=(!g||g&&!g.pendingBranch)&&M&&!M.persisted;J&&M.beforeEnter(w),r(w,f,p),((b=x&&x.onVnodeMounted)||J||D)&&Se(()=>{b&&je(b,y,a),J&&M.enter(w),D&&ot(a,null,y,"mounted")},g)},He=(a,f,p,y,g)=>{if(p&&F(a,p),y)for(let C=0;C{for(let b=w;b{const _=f.el=a.el;let{patchFlag:w,dynamicChildren:b,dirs:P}=f;w|=a.patchFlag&16;const x=a.props||V,E=f.props||V;let M;p&&st(p,!1),(M=E.onVnodeBeforeUpdate)&&je(M,p,f,a),P&&ot(f,a,p,"beforeUpdate"),p&&st(p,!0);const D=g&&f.type!=="foreignObject";if(b?Y(a.dynamicChildren,b,_,p,y,D,C):S||j(a,f,_,null,p,y,D,C,!1),w>0){if(w&16)ie(_,f,x,E,p,y,g);else if(w&2&&x.class!==E.class&&o(_,"class",null,E.class,g),w&4&&o(_,"style",x.style,E.style,g),w&8){const J=f.dynamicProps;for(let K=0;K{M&&je(M,p,f,a),P&&ot(f,a,p,"updated")},y)},Y=(a,f,p,y,g,C,S)=>{for(let _=0;_{if(p!==y){if(p!==V)for(const _ in p)!on(_)&&!(_ in y)&&o(a,_,p[_],null,S,f.children,g,C,qe);for(const _ in y){if(on(_))continue;const w=y[_],b=p[_];w!==b&&_!=="value"&&o(a,_,b,w,S,f.children,g,C,qe)}"value"in y&&o(a,"value",p.value,y.value)}},oe=(a,f,p,y,g,C,S,_,w)=>{const b=f.el=a?a.el:l(""),P=f.anchor=a?a.anchor:l("");let{patchFlag:x,dynamicChildren:E,slotScopeIds:M}=f;M&&(_=_?_.concat(M):M),a==null?(r(b,p,y),r(P,p,y),L(f.children,p,P,g,C,S,_,w)):x>0&&x&64&&E&&a.dynamicChildren?(Y(a.dynamicChildren,E,p,g,C,S,_),(f.key!=null||g&&f===g.subTree)&&mo(a,f,!0)):j(a,f,p,P,g,C,S,_,w)},xe=(a,f,p,y,g,C,S,_,w)=>{f.slotScopeIds=_,a==null?f.shapeFlag&512?g.ctx.activate(f,p,y,S,w):Ie(f,p,y,g,C,S,w):fe(a,f,w)},Ie=(a,f,p,y,g,C,S)=>{const _=a.component=Tl(a,y,g);if(Sn(a)&&(_.ctx.renderer=mt),Wl(_),_.asyncDep){if(g&&g.registerDep(_,Q),!a.el){const w=_.subTree=le(Qe);B(null,w,f,p)}return}Q(_,a,f,p,g,C,S)},fe=(a,f,p)=>{const y=f.component=a.component;if(Is(a,f,p))if(y.asyncDep&&!y.asyncResolved){R(y,f,p);return}else y.next=f,Ws(y.update),y.update();else f.el=a.el,y.vnode=f},Q=(a,f,p,y,g,C,S)=>{const _=()=>{if(a.isMounted){let{next:P,bu:x,u:E,parent:M,vnode:D}=a,J=P,K;st(a,!1),P?(P.el=D.el,R(a,P,S)):P=D,x&&Mn(x),(K=P.props&&P.props.onVnodeBeforeUpdate)&&je(K,M,P,D),st(a,!0);const re=Hn(a),Le=a.subTree;a.subTree=re,T(Le,re,h(Le.el),Jt(Le),a,g,C),P.el=re.el,J===null&&Ls(a,re.el),E&&Se(E,g),(K=P.props&&P.props.onVnodeUpdated)&&Se(()=>je(K,M,P,D),g)}else{let P;const{el:x,props:E}=f,{bm:M,m:D,parent:J}=a,K=cn(f);if(st(a,!1),M&&Mn(M),!K&&(P=E&&E.onVnodeBeforeMount)&&je(P,J,f),st(a,!0),x&&On){const re=()=>{a.subTree=Hn(a),On(x,a.subTree,a,g,null)};K?f.type.__asyncLoader().then(()=>!a.isUnmounted&&re()):re()}else{const re=a.subTree=Hn(a);T(null,re,p,y,a,g,C),f.el=re.el}if(D&&Se(D,g),!K&&(P=E&&E.onVnodeMounted)){const re=f;Se(()=>je(P,J,re),g)}(f.shapeFlag&256||J&&cn(J.vnode)&&J.vnode.shapeFlag&256)&&a.a&&Se(a.a,g),a.isMounted=!0,f=p=y=null}},w=a.effect=new ar(_,()=>yr(b),a.scope),b=a.update=()=>w.run();b.id=a.uid,st(a,!0),b()},R=(a,f,p)=>{f.component=a;const y=a.vnode.props;a.vnode=f,a.next=null,ll(a,f.props,y,p),ul(a,f.children,p),Wt(),zr(),Pt()},j=(a,f,p,y,g,C,S,_,w=!1)=>{const b=a&&a.children,P=a?a.shapeFlag:0,x=f.children,{patchFlag:E,shapeFlag:M}=f;if(E>0){if(E&128){we(b,x,p,y,g,C,S,_,w);return}else if(E&256){de(b,x,p,y,g,C,S,_,w);return}}M&8?(P&16&&qe(b,g,C),x!==b&&d(p,x)):P&16?M&16?we(b,x,p,y,g,C,S,_,w):qe(b,g,C,!0):(P&8&&d(p,""),M&16&&L(x,p,y,g,C,S,_,w))},de=(a,f,p,y,g,C,S,_,w)=>{a=a||vt,f=f||vt;const b=a.length,P=f.length,x=Math.min(b,P);let E;for(E=0;EP?qe(a,g,C,!0,!1,x):L(f,p,y,g,C,S,_,w,x)},we=(a,f,p,y,g,C,S,_,w)=>{let b=0;const P=f.length;let x=a.length-1,E=P-1;for(;b<=x&&b<=E;){const M=a[b],D=f[b]=w?Ze(f[b]):Ue(f[b]);if(at(M,D))T(M,D,p,null,g,C,S,_,w);else break;b++}for(;b<=x&&b<=E;){const M=a[x],D=f[E]=w?Ze(f[E]):Ue(f[E]);if(at(M,D))T(M,D,p,null,g,C,S,_,w);else break;x--,E--}if(b>x){if(b<=E){const M=E+1,D=ME)for(;b<=x;)be(a[b],g,C,!0),b++;else{const M=b,D=b,J=new Map;for(b=D;b<=E;b++){const Te=f[b]=w?Ze(f[b]):Ue(f[b]);Te.key!=null&&J.set(Te.key,b)}let K,re=0;const Le=E-D+1;let gt=!1,Hr=0;const It=new Array(Le);for(b=0;b=Le){be(Te,g,C,!0);continue}let $e;if(Te.key!=null)$e=J.get(Te.key);else for(K=D;K<=E;K++)if(It[K-D]===0&&at(Te,f[K])){$e=K;break}$e===void 0?be(Te,g,C,!0):(It[$e-D]=b+1,$e>=Hr?Hr=$e:gt=!0,T(Te,f[$e],p,null,g,C,S,_,w),re++)}const Ir=gt?ml(It):vt;for(K=Ir.length-1,b=Le-1;b>=0;b--){const Te=D+b,$e=f[Te],Lr=Te+1{const{el:C,type:S,transition:_,children:w,shapeFlag:b}=a;if(b&6){Ee(a.component.subTree,f,p,y);return}if(b&128){a.suspense.move(f,p,y);return}if(b&64){S.move(a,f,p,mt);return}if(S===Fe){r(C,f,p);for(let x=0;x_.enter(C),g);else{const{leave:x,delayLeave:E,afterLeave:M}=_,D=()=>r(C,f,p),J=()=>{x(C,()=>{D(),M&&M()})};E?E(C,D,J):J()}else r(C,f,p)},be=(a,f,p,y=!1,g=!1)=>{const{type:C,props:S,ref:_,children:w,dynamicChildren:b,shapeFlag:P,patchFlag:x,dirs:E}=a;if(_!=null&&Yn(_,null,p,a,!0),P&256){f.ctx.deactivate(a);return}const M=P&1&&E,D=!cn(a);let J;if(D&&(J=S&&S.onVnodeBeforeUnmount)&&je(J,f,a),P&6)Qt(a.component,p,y);else{if(P&128){a.suspense.unmount(p,y);return}M&&ot(a,null,f,"beforeUnmount"),P&64?a.type.remove(a,f,p,g,mt,y):b&&(C!==Fe||x>0&&x&64)?qe(b,f,p,!1,!0):(C===Fe&&x&384||!g&&P&16)&&qe(w,f,p),y&&Ht(a)}(D&&(J=S&&S.onVnodeUnmounted)||M)&&Se(()=>{J&&je(J,f,a),M&&ot(a,null,f,"unmounted")},p)},Ht=a=>{const{type:f,el:p,anchor:y,transition:g}=a;if(f===Fe){pe(p,y);return}if(f===an){z(a);return}const C=()=>{i(p),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(a.shapeFlag&1&&g&&!g.persisted){const{leave:S,delayLeave:_}=g,w=()=>S(p,C);_?_(a.el,C,w):w()}else C()},pe=(a,f)=>{let p;for(;a!==f;)p=m(a),i(a),a=p;i(f)},Qt=(a,f,p)=>{const{bum:y,scope:g,update:C,subTree:S,um:_}=a;y&&Mn(y),g.stop(),C&&(C.active=!1,be(S,a,f,p)),_&&Se(_,f),Se(()=>{a.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&a.asyncDep&&!a.asyncResolved&&a.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},qe=(a,f,p,y=!1,g=!1,C=0)=>{for(let S=C;Sa.shapeFlag&6?Jt(a.component.subTree):a.shapeFlag&128?a.suspense.next():m(a.anchor||a.el),Mr=(a,f,p)=>{a==null?f._vnode&&be(f._vnode,null,null,!0):T(f._vnode||null,a,f,null,null,null,p),zr(),Yi(),f._vnode=a},mt={p:T,um:be,m:Ee,r:Ht,mt:Ie,mc:L,pc:j,pbc:Y,n:Jt,o:e};let En,On;return t&&([En,On]=t(mt)),{render:Mr,hydrate:En,createApp:dl(Mr,En)}}function st({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function mo(e,t,n=!1){const r=e.children,i=t.children;if(I(r)&&I(i))for(let o=0;o>1,e[n[l]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}const gl=e=>e.__isTeleport,Fe=Symbol(void 0),Sr=Symbol(void 0),Qe=Symbol(void 0),an=Symbol(void 0),kt=[];let ke=null;function Ot(e=!1){kt.push(ke=e?null:[])}function yl(){kt.pop(),ke=kt[kt.length-1]||null}let Kt=1;function ei(e){Kt+=e}function bl(e){return e.dynamicChildren=Kt>0?ke||vt:null,yl(),Kt>0&&ke&&ke.push(e),e}function At(e,t,n,r,i,o){return bl(H(e,t,n,r,i,o,!0))}function vl(e){return e?e.__v_isVNode===!0:!1}function at(e,t){return e.type===t.type&&e.key===t.key}const xn="__vInternal",go=({key:e})=>e!=null?e:null,un=({ref:e,ref_key:t,ref_for:n})=>e!=null?ue(e)||ae(e)||N(e)?{i:De,r:e,k:t,f:!!n}:e:null;function H(e,t=null,n=null,r=0,i=null,o=e===Fe?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&go(t),ref:t&&un(t),scopeId:eo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return l?(xr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ue(n)?8:16),Kt>0&&!s&&ke&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&ke.push(c),c}const le=_l;function _l(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===Zs)&&(e=Qe),vl(e)){const l=it(e,t,!0);return n&&xr(l,n),Kt>0&&!o&&ke&&(l.shapeFlag&6?ke[ke.indexOf(e)]=l:ke.push(l)),l.patchFlag|=-2,l}if(Al(e)&&(e=e.__vccOpts),t){t=Cl(t);let{class:l,style:c}=t;l&&!ue(l)&&(t.class=gn(l)),te(c)&&($i(c)&&!I(c)&&(c=ye({},c)),t.style=rr(c))}const s=ue(e)?1:Ns(e)?128:gl(e)?64:te(e)?4:N(e)?2:0;return H(e,t,n,r,i,s,o,!0)}function Cl(e){return e?$i(e)||xn in e?ye({},e):e:null}function it(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,l=t?Sl(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&go(l),ref:t&&t.ref?n&&i?I(i)?i.concat(un(t)):[i,un(t)]:un(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&it(e.ssContent),ssFallback:e.ssFallback&&it(e.ssFallback),el:e.el,anchor:e.anchor}}function Fr(e=" ",t=0){return le(Sr,null,e,t)}function wl(e,t){const n=le(an,null,e);return n.staticCount=t,n}function Ue(e){return e==null||typeof e=="boolean"?le(Qe):I(e)?le(Fe,null,e.slice()):typeof e=="object"?Ze(e):le(Sr,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:it(e)}function xr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(I(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),xr(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(xn in t)?t._ctx=De:i===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else N(t)?(t={default:t,_ctx:De},n=32):(t=String(t),r&64?(n=16,t=[Fr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Sl(...e){const t={};for(let n=0;nhe||De,xt=e=>{he=e,e.scope.on()},ht=()=>{he&&he.scope.off(),he=null};function bo(e){return e.vnode.shapeFlag&4}let Vt=!1;function Wl(e,t=!1){Vt=t;const{props:n,children:r}=e.vnode,i=bo(e);sl(e,n,i,t),al(e,r);const o=i?Pl(e,t):void 0;return Vt=!1,o}function Pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ji(new Proxy(e.ctx,el));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Ol(e):null;xt(e),Wt();const o=nt(r,e,0,[e.props,i]);if(Pt(),ht(),xi(o)){if(o.then(ht,ht),t)return o.then(s=>{ti(e,s,t)}).catch(s=>{Cn(s,e,0)});e.asyncDep=o}else ti(e,o,t)}else vo(e,t)}function ti(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=Ki(t)),vo(e,n)}let ni;function vo(e,t,n){const r=e.type;if(!e.render){if(!t&&ni&&!r.render){const i=r.template||Cr(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,u=ye(ye({isCustomElement:o,delimiters:l},s),c);r.render=ni(i,u)}}e.render=r.render||Re}xt(e),Wt(),tl(e),Pt(),ht()}function El(e){return new Proxy(e.attrs,{get(t,n){return Pe(e,"get","$attrs"),t[n]}})}function Ol(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=El(e))},slots:e.slots,emit:e.emit,expose:t}}function Tn(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ki(ji(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Dt)return Dt[n](e)},has(t,n){return n in t||n in Dt}}))}function Al(e){return N(e)&&"__vccOpts"in e}const Wn=(e,t)=>Fs(e,t,Vt),Ml=Symbol(""),Hl=()=>ln(Ml),Il="3.2.44",Ll="http://www.w3.org/2000/svg",ut=typeof document<"u"?document:null,ri=ut&&ut.createElement("template"),Nl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?ut.createElementNS(Ll,e):ut.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{ri.innerHTML=r?`${e}`:e;const l=ri.content;if(r){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Bl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Dl(e,t,n){const r=e.style,i=ue(n);if(n&&!i){for(const o in n)Gn(r,o,n[o]);if(t&&!ue(t))for(const o in t)n[o]==null&&Gn(r,o,"")}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const ii=/\s*!important$/;function Gn(e,t,n){if(I(n))n.forEach(r=>Gn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=kl(e,t);ii.test(n)?e.setProperty(Tt(r),n.replace(ii,""),"important"):e[r]=n}}const oi=["Webkit","Moz","ms"],Ln={};function kl(e,t){const n=Ln[t];if(n)return n;let r=St(t);if(r!=="filter"&&r in e)return Ln[t]=r;r=Pi(r);for(let i=0;iNn||(Kl.then(()=>Nn=0),Nn=Date.now());function Xl(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ae(Ql(r,n.value),t,5,[r])};return n.value=e,n.attached=Vl(),n}function Ql(e,t){if(I(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const ci=/^on[a-z]/,Jl=(e,t,n,r,i=!1,o,s,l,c)=>{t==="class"?Bl(e,r,i):t==="style"?Dl(e,n,r):yn(t)?ir(t)||zl(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Yl(e,t,r,i))?$l(e,t,r,o,s,l,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Rl(e,t,r,i))};function Yl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ci.test(t)&&N(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ci.test(t)&&ue(n)?!1:t in e}const Gl={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};js.props;const ai={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Lt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Lt(e,!0),r.enter(e)):r.leave(e,()=>{Lt(e,!1)}):Lt(e,t))},beforeUnmount(e,{value:t}){Lt(e,t)}};function Lt(e,t){e.style.display=t?e._vod:"none"}const Zl=ye({patchProp:Jl},Nl);let ui;function ec(){return ui||(ui=hl(Zl))}const tc=(...e)=>{const t=ec().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=nc(r);if(!i)return;const o=t._component;!N(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};function nc(e){return ue(e)?document.querySelector(e):e}const rc="/vue-audio-visual/assets/logo.64bab856.png";var fi;const Mt=typeof window<"u",ic=e=>typeof e=="string",oc=()=>{};Mt&&((fi=window==null?void 0:window.navigator)==null?void 0:fi.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function U(e){return typeof e=="function"?e():Ne(e)}function di(e,t=!1,n="Timeout"){return new Promise((r,i)=>{setTimeout(t?()=>i(n):r,e)})}function sc(e){return e}function lc(e,...t){return t.some(n=>n in e)}function Bn(){const e=[],t=i=>{const o=e.indexOf(i);o!==-1&&e.splice(o,1)};return{on:i=>(e.push(i),{off:()=>t(i)}),off:t,trigger:i=>{e.forEach(o=>o(i))}}}function Tr(e){return Vo()?(Xo(e),!0):!1}function Dn(e){return typeof e=="function"?Wn(e):Z(e)}function cc(e,t=!0){yo()?_r(e):t?e():Qi(e)}function Zn(e,t=!1){function n(h,{flush:m="sync",deep:F=!1,timeout:W,throwOnTimeout:T}={}){let A=null;const ne=[new Promise(O=>{A=Me(e,z=>{h(z)!==t&&(A==null||A(),O(z))},{flush:m,deep:F,immediate:!0})})];return W!=null&&ne.push(di(W,T).then(()=>U(e)).finally(()=>A==null?void 0:A())),Promise.race(ne)}function r(h,m){if(!ae(h))return n(z=>z===h,m);const{flush:F="sync",deep:W=!1,timeout:T,throwOnTimeout:A}=m!=null?m:{};let B=null;const O=[new Promise(z=>{B=Me([e,h],([X,Ce])=>{t!==(X===Ce)&&(B==null||B(),z(X))},{flush:F,deep:W,immediate:!0})})];return T!=null&&O.push(di(T,A).then(()=>U(e)).finally(()=>(B==null||B(),U(e)))),Promise.race(O)}function i(h){return n(m=>Boolean(m),h)}function o(h){return r(null,h)}function s(h){return r(void 0,h)}function l(h){return n(Number.isNaN,h)}function c(h,m){return n(F=>{const W=Array.from(F);return W.includes(h)||W.includes(U(h))},m)}function u(h){return d(1,h)}function d(h=1,m){let F=-1;return n(()=>(F+=1,F>=h),m)}return Array.isArray(U(e))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return Zn(e,!t)}}:{toMatch:n,toBe:r,toBeTruthy:i,toBeNull:o,toBeNaN:l,toBeUndefined:s,changed:u,changedTimes:d,get not(){return Zn(e,!t)}}}function ac(e){return Zn(e)}function uc(e,t,n={}){const{immediate:r=!0}=n,i=Z(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function l(){i.value=!1,s()}function c(...u){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...u)},U(t))}return r&&(i.value=!0,Mt&&c()),Tr(l),{isPending:i,start:c,stop:l}}function fc(e){var t;const n=U(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Wr=Mt?window:void 0;Mt&&window.document;const dc=Mt?window.navigator:void 0;Mt&&window.location;function Ve(...e){let t,n,r,i;if(ic(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=Wr):[t,n,r,i]=e,!t)return oc;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],s=()=>{o.forEach(d=>d()),o.length=0},l=(d,h,m)=>(d.addEventListener(h,m,i),()=>d.removeEventListener(h,m,i)),c=Me(()=>fc(t),d=>{s(),d&&o.push(...n.flatMap(h=>r.map(m=>l(d,h,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return Tr(u),u}function hc(e,t=!1){const n=Z(),r=()=>n.value=Boolean(e());return r(),cc(r,t),n}const er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},tr="__vueuse_ssr_handlers__";er[tr]=er[tr]||{};er[tr];function Pr(e,t={}){const{immediate:n=!0,window:r=Wr}=t,i=Z(!1);let o=null;function s(){!i.value||!r||(e(),o=r.requestAnimationFrame(s))}function l(){!i.value&&r&&(i.value=!0,s())}function c(){i.value=!1,o!=null&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&l(),Tr(c),{isActive:i,pause:c,resume:l}}var pc=Object.defineProperty,mc=Object.defineProperties,gc=Object.getOwnPropertyDescriptors,hi=Object.getOwnPropertySymbols,yc=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable,pi=(e,t,n)=>t in e?pc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,G=(e,t)=>{for(var n in t||(t={}))yc.call(t,n)&&pi(e,n,t[n]);if(hi)for(var n of hi(t))bc.call(t,n)&&pi(e,n,t[n]);return e},et=(e,t)=>mc(e,gc(t));const vc={json:"application/json",text:"text/plain",formData:"multipart/form-data"};function mn(e){return lc(e,"immediate","refetch","initialData","timeout","beforeFetch","afterFetch","onFetchError","fetch")}function _c(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rt(e){return typeof Headers<"u"&&e instanceof Headers?Object.fromEntries([...e.entries()]):e}function yt(e,...t){return e==="overwrite"?async n=>{const r=t[t.length-1];return r!==void 0&&await r(n),n}:async n=>(await t.reduce((r,i)=>r.then(async()=>{i&&(n=G(G({},n),await i(n)))}),Promise.resolve()),n)}function Cc(e={}){const t=e.combination||"chain",n=e.options||{},r=e.fetchOptions||{};function i(o,...s){const l=Wn(()=>{const d=U(e.baseUrl),h=U(o);return d&&!_c(h)?Sc(d,h):h});let c=n,u=r;return s.length>0&&(mn(s[0])?c=et(G(G({},c),s[0]),{beforeFetch:yt(t,n.beforeFetch,s[0].beforeFetch),afterFetch:yt(t,n.afterFetch,s[0].afterFetch),onFetchError:yt(t,n.onFetchError,s[0].onFetchError)}):u=et(G(G({},u),s[0]),{headers:G(G({},Rt(u.headers)||{}),Rt(s[0].headers)||{})})),s.length>1&&mn(s[1])&&(c=et(G(G({},c),s[1]),{beforeFetch:yt(t,n.beforeFetch,s[1].beforeFetch),afterFetch:yt(t,n.afterFetch,s[1].afterFetch),onFetchError:yt(t,n.onFetchError,s[1].onFetchError)})),wc(l,u,c)}return i}function wc(e,...t){var n;const r=typeof AbortController=="function";let i={},o={immediate:!0,refetch:!1,timeout:0};const s={method:"GET",type:"text",payload:void 0};t.length>0&&(mn(t[0])?o=G(G({},o),t[0]):i=t[0]),t.length>1&&mn(t[1])&&(o=G(G({},o),t[1]));const{fetch:l=(n=Wr)==null?void 0:n.fetch,initialData:c,timeout:u}=o,d=Bn(),h=Bn(),m=Bn(),F=Z(!1),W=Z(!1),T=Z(!1),A=Z(null),B=sn(null),ne=sn(null),O=sn(c),z=Wn(()=>r&&W.value);let X,Ce;const He=()=>{r&&X&&X.abort()},L=fe=>{W.value=fe,F.value=!fe};u&&(Ce=uc(He,u,{immediate:!1}));const ee=async(fe=!1)=>{var Q;L(!0),ne.value=null,A.value=null,T.value=!1,X=void 0,r&&(X=new AbortController,X.signal.onabort=()=>T.value=!0,i=et(G({},i),{signal:X.signal}));const R={method:s.method,headers:{}};if(s.payload){const Ee=Rt(R.headers);s.payloadType&&(Ee["Content-Type"]=(Q=vc[s.payloadType])!=null?Q:s.payloadType);const be=U(s.payload);R.body=s.payloadType==="json"?JSON.stringify(be):be}let j=!1;const de={url:U(e),options:G(G({},R),i),cancel:()=>{j=!0}};if(o.beforeFetch&&Object.assign(de,await o.beforeFetch(de)),j||!l)return L(!1),Promise.resolve(null);let we=null;return Ce&&Ce.start(),new Promise((Ee,be)=>{var Ht;l(de.url,et(G(G({},R),de.options),{headers:G(G({},Rt(R.headers)),Rt((Ht=de.options)==null?void 0:Ht.headers))})).then(async pe=>{if(B.value=pe,A.value=pe.status,we=await pe[s.type](),o.afterFetch&&A.value>=200&&A.value<300&&({data:we}=await o.afterFetch({data:we,response:pe})),O.value=we,!pe.ok)throw new Error(pe.statusText);return d.trigger(pe),Ee(pe)}).catch(async pe=>{let Qt=pe.message||pe.name;return o.onFetchError&&({data:we,error:Qt}=await o.onFetchError({data:we,error:pe,response:B.value})),O.value=we,ne.value=Qt,h.trigger(pe),fe?be(pe):Ee(null)}).finally(()=>{L(!1),Ce&&Ce.stop(),m.trigger(null)})})},Y=Dn(o.refetch);Me([Y,Dn(e)],([fe])=>fe&&ee(),{deep:!0});const ie={isFinished:F,statusCode:A,response:B,error:ne,data:O,isFetching:W,canAbort:z,aborted:T,abort:He,execute:ee,onFetchResponse:d.on,onFetchError:h.on,onFetchFinally:m.on,get:oe("GET"),put:oe("PUT"),post:oe("POST"),delete:oe("DELETE"),patch:oe("PATCH"),head:oe("HEAD"),options:oe("OPTIONS"),json:Ie("json"),text:Ie("text"),blob:Ie("blob"),arrayBuffer:Ie("arrayBuffer"),formData:Ie("formData")};function oe(fe){return(Q,R)=>{if(!W.value){s.method=fe,s.payload=Q,s.payloadType=R,ae(s.payload)&&Me([Y,Dn(s.payload)],([de])=>de&&ee(),{deep:!0});const j=U(s.payload);return!R&&j&&Object.getPrototypeOf(j)===Object.prototype&&(s.payloadType="json"),et(G({},ie),{then(de,we){return xe().then(de,we)}})}}}function xe(){return new Promise((fe,Q)=>{ac(F).toBe(!0).then(()=>fe(ie)).catch(R=>Q(R))})}function Ie(fe){return()=>{if(!W.value)return s.type=fe,et(G({},ie),{then(Q,R){return xe().then(Q,R)}})}}return o.immediate&&setTimeout(ee,0),et(G({},ie),{then(fe,Q){return xe().then(fe,Q)}})}function Sc(e,t){return!e.endsWith("/")&&!t.startsWith("/")?`${e}/${t}`:`${e}${t}`}var mi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(mi||(mi={}));var Fc=Object.defineProperty,gi=Object.getOwnPropertySymbols,xc=Object.prototype.hasOwnProperty,Tc=Object.prototype.propertyIsEnumerable,yi=(e,t,n)=>t in e?Fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wc=(e,t)=>{for(var n in t||(t={}))xc.call(t,n)&&yi(e,n,t[n]);if(gi)for(var n of gi(t))Tc.call(t,n)&&yi(e,n,t[n]);return e};const Pc={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};Wc({linear:sc},Pc);function Ec(e={}){var t,n;const r=Z((t=e.enabled)!=null?t:!1),i=Z((n=e.autoSwitch)!=null?n:!0),o=Z(e.videoDeviceId),s=Z(e.audioDeviceId),{navigator:l=dc}=e,c=hc(()=>{var A;return(A=l==null?void 0:l.mediaDevices)==null?void 0:A.getUserMedia}),u=sn();function d(A){return A.value==="none"||A.value===!1?!1:A.value==null?!0:{deviceId:A.value}}async function h(){if(!(!c.value||u.value))return u.value=await l.mediaDevices.getUserMedia({video:d(o),audio:d(s)}),u.value}async function m(){var A;(A=u.value)==null||A.getTracks().forEach(B=>B.stop()),u.value=void 0}function F(){m(),r.value=!1}async function W(){return await h(),u.value&&(r.value=!0),u.value}async function T(){return m(),await W()}return Me(r,A=>{A?h():m()},{immediate:!0}),Me([o,s],()=>{i.value&&u.value&&T()},{immediate:!0}),{isSupported:c,stream:u,start:W,stop:F,restart:T,videoDeviceId:o,audioDeviceId:s,enabled:r,autoSwitch:i}}const Xe=e=>e===void 0;function k(e,t){const n=U(e);return Xe(n)?t:Number(n)}function pt(e,t){const n=U(e);return Array.isArray(n)?n:n?String(n):t}function ce(e,t){const n=U(e);return Xe(n)?t:String(n)}function ge(e,t){const n=U(e);return Xe(n)?t:Boolean(n)}const Pn={src:{type:String,default:null},audioControls:{type:Boolean,default:!0},corsAnonym:{type:Boolean,default:!1},canvWidth:{type:Number,default:300},canvHeight:{type:Number,default:80},canvFillColor:{type:[String,Array],default:""},placeholder:{type:Boolean,default:!0}},Oc={barWidth:{type:Number,default:5},barSpace:{type:Number,default:1},barColor:{type:[String,Array],default:"#0A0AFF"},capsHeight:{type:Number,default:0},capsDropSpeed:{type:Number,default:.9},capsColor:{type:String,default:"#A0A0FF"},brickHeight:{type:Number,default:0},brickSpace:{type:Number,default:1},symmetric:{type:Boolean,default:!1},fftSize:{type:Number,default:1024}},_e={...Pn,...Oc};function Ac(){return _e}class _o{constructor(t){v(this,"barColor");v(this,"barSpace");v(this,"barWidth");v(this,"brickHeight");v(this,"brickSpace");v(this,"canvFillColor");v(this,"canvHeight");v(this,"canvWidth");v(this,"capsColor");v(this,"capsDropSpeed");v(this,"capsHeight");v(this,"fftSize");v(this,"frqBits");v(this,"placeholder");v(this,"symmetric");this.barColor=pt(t.barColor,_e.barColor.default),this.barSpace=k(t.barSpace,_e.barSpace.default),this.brickHeight=k(t.brickHeight,_e.brickHeight.default),this.brickSpace=k(t.brickSpace,_e.brickSpace.default),this.canvFillColor=pt(t.canvFillColor,_e.canvFillColor.default),this.canvHeight=k(t.canvHeight,_e.canvHeight.default),this.canvWidth=k(t.canvWidth,_e.canvWidth.default),this.capsColor=ce(t.capsColor,_e.capsColor.default),this.capsDropSpeed=k(t.capsDropSpeed,_e.capsDropSpeed.default),this.capsHeight=k(t.capsHeight,_e.capsHeight.default),this.fftSize=k(t.fftSize,_e.fftSize.default),this.frqBits=this.fftSize>>1,this.placeholder=ge(t.placeholder,_e.placeholder.default),this.symmetric=ge(t.symmetric,_e.symmetric.default);const n=k(t.barWidth,_e.barWidth.default);this.barWidth=n>this.canvWidth?this.canvWidth:n}alignSym(t){return this.symmetric?(this.canvHeight-t)/2:0}}const Mc={lineWidth:{type:Number,default:2},lineColor:{type:[String,Array],default:"#9F9"},fftSize:{type:Number,default:128}},Co={...Pn,...Mc};function Hc(){return Co}class bi{constructor(t){v(this,"canvWidth");v(this,"canvHeight");v(this,"canvFillColor");v(this,"lineWidth");v(this,"lineColor");v(this,"fftSize");v(this,"placeholder");const n=Co;this.canvWidth=k(t.canvWidth,n.canvWidth.default),this.canvHeight=k(t.canvHeight,n.canvHeight.default),this.canvFillColor=pt(t.canvFillColor,n.canvFillColor.default),this.lineWidth=k(t.lineWidth,n.lineWidth.default),this.lineColor=pt(t.lineColor,n.lineColor.default),this.fftSize=k(t.fftSize,n.fftSize.default),this.placeholder=ge(t.placeholder,n.placeholder.default)}}const Ic={fftSize:{type:Number,default:1024},canvWidth:{type:Number,default:100},canvHeight:{type:Number,default:100},radius:{type:Number,default:0},lineWidth:{type:Number,default:1},lineSpace:{type:Number,default:1},outlineColor:{type:String,default:"#0000FF"},outlineWidth:{type:Number,default:.3},barWidth:{type:Number,default:1},barLength:{type:Number,default:0},barColor:{type:[String,Array],default:["#FFFFFF","#0000FF"]},progress:{type:Boolean,default:!0},progressWidth:{type:Number,default:1},progressColor:{type:String,default:"#0000FF"},progressClockwise:{type:Boolean,default:!0},outlineMeterSpace:{type:Number,default:3},playtime:{type:Boolean,default:!1},playtimeFont:{type:String,default:"14px Monaco"},playtimeColor:{type:String,default:"#00f"},rotateGraph:{type:Boolean,default:!1},rotateSpeed:{type:Number,default:.001}},wo={...Pn,...Ic};function Lc(){return wo}let rn=1.5;class vi{constructor(t){v(this,"barColor");v(this,"barLength");v(this,"barWidth");v(this,"canvFillColor");v(this,"canvHeight");v(this,"canvWidth");v(this,"fftSize");v(this,"lineSpace");v(this,"lineWidth");v(this,"outlineColor");v(this,"outlineMeterSpace");v(this,"outlineWidth");v(this,"placeholder");v(this,"playtime");v(this,"playtimeColor");v(this,"playtimeFont");v(this,"progress");v(this,"progressClockwise");v(this,"progressColor");v(this,"progressWidth");v(this,"radius");v(this,"rotateGraph");v(this,"rotateSpeed");const n=wo;this.barColor=pt(t.barColor,n.barColor.default),this.barLength=k(t.barLength,n.barLength.default),this.barWidth=k(t.barWidth,n.barWidth.default),this.canvFillColor=pt(t.canvFillColor,n.canvFillColor.default),this.canvHeight=k(t.canvHeight,n.canvHeight.default),this.canvWidth=k(t.canvWidth,n.canvWidth.default),this.fftSize=k(t.fftSize,n.fftSize.default),this.lineSpace=k(t.lineSpace,n.lineSpace.default),this.lineWidth=k(t.lineWidth,n.lineWidth.default),this.outlineColor=ce(t.outlineColor,n.outlineColor.default),this.outlineMeterSpace=k(t.outlineMeterSpace,n.outlineMeterSpace.default),this.outlineWidth=k(t.outlineWidth,n.outlineWidth.default),this.lineWidth=k(t.lineWidth,n.lineWidth.default),this.placeholder=ge(t.placeholder,n.placeholder.default),this.playtime=ge(t.playtime,n.playtime.default),this.playtimeColor=ce(t.playtimeColor,n.playtimeColor.default),this.playtimeFont=ce(t.playtimeFont,n.playtimeFont.default),this.progress=ge(t.progress,n.progress.default),this.progressClockwise=ge(t.progressClockwise,n.progressClockwise.default),this.progressColor=ce(t.progressColor,n.progressColor.default),this.progressWidth=k(t.progressWidth,n.progressWidth.default),this.radius=k(t.radius,n.radius.default),this.rotateGraph=ge(t.rotateGraph,n.rotateGraph.default),this.rotateSpeed=k(t.rotateSpeed,n.rotateSpeed.default)}get cx(){return this.canvWidth/2}get cy(){return this.canvHeight/2}get r(){return this.radius>0?this.radius:Math.round(this.canvWidth/2*.7)}get arcStep(){return Math.ceil(this.lineWidth+this.lineSpace)}get barLen(){return this.barLength>0?this.barLength:this.canvWidth/2-this.r}get angle(){const t=()=>rn===3.5?1.5:rn+this.rotateSpeed;return rn=this.rotateGraph?t():1.5,Math.PI*rn}}const Nc={canvWidth:{type:Number,default:500},canvHeight:{type:Number,default:80},playedLineWidth:{type:Number,default:.5},playedLineColor:{type:String,default:"navy"},noplayedLineWidth:{type:Number,default:.5},noplayedLineColor:{type:String,default:"lime"},playtime:{type:Boolean,default:!0},playtimeWithMs:{type:Boolean,default:!0},playtimeFontSize:{type:Number,default:12},playtimeFontFamily:{type:String,default:"monospace"},playtimeFontColor:{type:String,default:"grey"},playtimeTextBottom:{type:Boolean,default:!1},playtimeSlider:{type:Boolean,default:!0},playtimeSliderColor:{type:String,default:"red"},playtimeSliderWidth:{type:Number,default:1},playtimeClickable:{type:Boolean,default:!0},requester:{type:Function,default:fetch}},So={...Pn,...Nc};function Bc(){return So}class Dc{constructor(t){v(this,"src");v(this,"canvWidth");v(this,"canvHeight");v(this,"canvFillColor");v(this,"currentTime");v(this,"duration");v(this,"playedLineWidth");v(this,"playedLineColor");v(this,"noplayedLineWidth");v(this,"noplayedLineColor");v(this,"playtime");v(this,"playtimeWithMs");v(this,"playtimeFontSize");v(this,"playtimeFontFamily");v(this,"playtimeFontColor");v(this,"playtimeTextBottom");v(this,"playtimeSlider");v(this,"playtimeSliderColor");v(this,"playtimeSliderWidth");v(this,"playtimeClickable");const n=So;this.canvWidth=k(t.canvWidth,n.canvWidth.default),this.canvHeight=k(t.canvHeight,n.canvHeight.default),this.canvFillColor=pt(t.canvFillColor,n.canvFillColor.default),this.playedLineWidth=k(t.playedLineWidth,n.playedLineWidth.default),this.playedLineColor=ce(t.playedLineColor,n.playedLineColor.default),this.noplayedLineWidth=k(t.noplayedLineWidth,n.noplayedLineWidth.default),this.noplayedLineColor=ce(t.noplayedLineColor,n.noplayedLineColor.default),this.playtime=ge(t.playtime,n.playtime.default),this.playtimeWithMs=ge(t.playtimeWithMs,n.playtimeWithMs.default),this.playtimeFontSize=k(t.playtimeFontSize,n.playtimeFontSize.default),this.playtimeFontFamily=ce(t.playtimeFontFamily,n.playtimeFontFamily.default),this.playtimeFontColor=ce(t.playtimeFontColor,n.playtimeFontColor.default),this.playtimeTextBottom=ge(t.playtimeTextBottom,n.playtimeTextBottom.default),this.playtimeSlider=ge(t.playtimeSlider,n.playtimeSlider.default),this.playtimeSliderColor=ce(t.playtimeSliderColor,n.playtimeSliderColor.default),this.playtimeSliderWidth=k(t.playtimeSliderWidth,n.playtimeSliderWidth.default),this.playtimeClickable=ge(t.playtimeClickable,n.playtimeClickable.default),this.src=Xe(t.src)?null:String(t.src),this.currentTime=0,this.duration=0}get playX(){if(!this.duration)return 0;const t=~~(this.currentTime/this.duration*this.canvWidth);return t>this.canvWidth?this.canvWidth:t}get timePlayed(){const t=[this.currentTime/3600,this.currentTime/60%60,this.currentTime%60].map(r=>String(~~r).padStart(2,"0")).join(":");if(!this.playtimeWithMs)return t;const n=~~(this.currentTime%1*1e3);return[t,String(n).padStart(3,"0")].join(".")}}const kc={media:{type:Object,required:!1,default:null},canvWidth:{type:Number,default:0},canvClass:{type:String,default:""},canvHeight:{type:Number,default:0},canvFillColor:{type:String,default:""},circleGradient:{type:Array,default:[[0,"palegreen"],[.3,"lime"],[.7,"limegreen"],[1,"green"]]},fftSize:{type:Number},type:{type:String,default:"wform"},frequLnum:{type:Number,default:60},frequLineCap:{type:Boolean,default:!1},frequDirection:{type:String,default:"lr"},lineColor:{type:String,default:"lime"},lineWidth:{type:Number},radius:{type:Number,default:4},connectDestination:{type:Boolean,default:!1},vbarBgColor:{type:String,default:"#e1e1e1"},vbarCaps:{type:Boolean,default:!0},vbarSpace:{type:Number,default:1},vbarWidth:{type:Number,default:4},vbarFillColor:{type:String,default:"lime"},vbarRightColor:{type:String,default:"#c0c0c0"}},Fo={...kc};function Rc(){return Fo}class kn{constructor(t){v(this,"canvWidth");v(this,"canvHeight");v(this,"canvFillColor");v(this,"canvClass");v(this,"circleGradient");v(this,"fftSize");v(this,"type");v(this,"frequLnum");v(this,"frequLineCap");v(this,"frequDirection");v(this,"lineColor");v(this,"lineWidth");v(this,"radius");v(this,"connectDestination");v(this,"vbarBgColor");v(this,"vbarCaps");v(this,"vbarFillColor");v(this,"vbarRightColor");v(this,"vbarSpace");v(this,"vbarWidth");const n=Fo;this.canvFillColor=ce(t.canvFillColor,n.canvFillColor.default),this.canvClass=ce(t.canvClass,n.canvClass.default),this.circleGradient=Xe(t.circleGradient)?n.circleGradient.default:t.circleGradient,this.type=ce(t.type,n.type.default),this.fftSize=Xe(t.fftSize)?this.type==="frequ"?1024:8192:Number(t.fftSize),this.frequLnum=k(t.frequLnum,n.frequLnum.default),this.frequLineCap=ge(t.frequLineCap,n.frequLineCap.default),this.frequDirection=ce(t.frequDirection,n.frequDirection.default),this.lineColor=ce(t.lineColor,n.lineColor.default),this.lineWidth=Xe(t.lineWidth)?this.type==="frequ"?3:.5:Number(t.lineWidth),this.radius=k(t.radius,n.radius.default),this.connectDestination=ge(t.connectDestination,n.connectDestination.default),this.vbarBgColor=ce(t.vbarBgColor,n.vbarBgColor.default),this.vbarCaps=ge(t.vbarCaps,n.vbarCaps.default),this.vbarFillColor=ce(t.vbarFillColor,n.vbarFillColor.default),this.vbarRightColor=ce(t.vbarRightColor,n.vbarRightColor.default),this.vbarSpace=k(t.vbarSpace,n.vbarSpace.default),this.vbarWidth=k(t.vbarWidth,n.vbarWidth.default),this.canvWidth=Xe(t.canvWidth)||Number(t.canvWidth)===0?this.defaultWidth:Number(t.canvWidth),this.canvHeight=Xe(t.canvHeight)||Number(t.canvHeight)===0?this.defaultHeight:Number(t.canvHeight)}get defaultWidth(){switch(this.type){case"vbar":return 50;case"frequ":return 300;case"circle":return 80;default:return 200}}get defaultHeight(){switch(this.type){case"vbar":return 20;case"frequ":return 80;case"circle":return 80;default:return 40}}}function Er(e,t,n){let r=null,i=null,o=null;const s=t||1024,l=new Uint8Array(s/2),{pause:c,resume:u}=Pr(()=>{!i||(i.getByteFrequencyData(l),n(l))},{immediate:!1});Ve(e,"play",()=>{const d=U(e);!d||(r||(r=new AudioContext,o=r.createMediaElementSource(d)),i=r.createAnalyser(),i.fftSize=s,o==null||o.connect(i),i.connect(r.destination),r.resume(),u())}),Ve(e,"pause",()=>{r==null||r.suspend(),o==null||o.disconnect(),i==null||i.disconnect(),c()})}function Xt(e,t){const n=Z(null);return br(()=>{const r=U(e);!r||(n.value=r.getContext("2d"),r.width=t.canvWidth,r.height=t.canvHeight)}),n}function Or(e,t,n,r){e.clearRect(0,0,t,n),r&&(e.fillStyle=Ar(e,t,n,r),e.fillRect(0,0,t,n))}function Ar(e,t,n,r){if(!Array.isArray(r))return r||"";const i=e.createLinearGradient(t/2,0,t/2,n);let o=0;return r.forEach(s=>{i.addColorStop(o,s),o+=1/r.length}),i}function $c(e,t,n){const r=new bi(n),i=Xt(t,r);Me(i,()=>{!r.placeholder||!U(i)||_i(new Uint8Array(r.fftSize),i,r)}),Er(e,r.fftSize,o=>{_i(o,i,new bi(n))})}function _i(e,t,n){const r=U(t);if(!r)return;const i=n.canvWidth,o=n.canvHeight,s=n.lineWidth,l=e.length,c=~~i/2/l;let u=0;const d=()=>{let h=0;for(let m=0;m(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,jc),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}}),$t=Array(16).fill(0);function zc(e,t,n){const r=new _o(n);$t.length=r.fftSize/2,$t.fill(0);const i=Xt(t,r);Ve(e,"loadedmetadata",()=>{!r.placeholder||!i||Ci(new Uint8Array(r.fftSize/2),i,n)}),Er(e,r.fftSize,o=>{Ci(o,i,n)})}function Ci(e,t,n){const r=U(t);if(!r)return;const i=new _o(n),o=Math.round((i.barWidth+i.barSpace)/i.frqBits*i.canvWidth),s=e.length;let l=0;Or(r,i.canvWidth,i.canvHeight,i.canvFillColor);for(let c=0;cm+h,0)/o),d=u/255*i.canvHeight;qc(r,i,u,c,l),r.fillStyle=Ar(r,i.canvWidth,i.canvHeight,i.barColor),i.brickHeight>0?Kc(r,i,d,l):r.fillRect(l,i.canvHeight-d-i.alignSym(d),i.barWidth,d),l+=i.barWidth+i.barSpace}}function qc(e,t,n,r,i){if(t.capsHeight===0)return;const o=$t[r]<=n?n:$t[r]-t.capsDropSpeed;$t[r]=o;const s=o/255*t.canvHeight,l=t.canvHeight-s-t.capsHeight-t.alignSym(s);e.fillStyle=t.capsColor,e.fillRect(i,l,t.barWidth,t.capsHeight),t.symmetric&&e.fillRect(i,t.canvHeight-l-t.capsHeight,t.barWidth,t.capsHeight)}function Kc(e,t,n,r){for(let i=0;i(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,Vc),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}});function Qc(e,t,n){const r=new vi(n),i=Xt(t,r);Ve(e,"loadedmetadata",()=>{Yc(i,r)}),Er(e,r.fftSize,o=>{Jc(o,i,e,new vi(n))})}function Jc(e,t,n,r){const i=U(t);if(!i)return;const o=U(n);if(!o)return;const s=e.length,l=(r.lineWidth+r.lineSpace)/s*(2*Math.PI);Or(i,r.canvWidth,r.canvHeight,r.canvFillColor),xo(i,r),Gc(i,o,r),Zc(i,o,r),i.lineWidth=r.barWidth,i.strokeStyle=ea(i,r);let c=r.angle;for(let u=0;uF+m,0)/r.arcStep),h=r.r+d/255*r.barLen;i.beginPath(),i.moveTo(r.r*Math.cos(c)+r.cx,r.r*Math.sin(c)+r.cy),i.lineTo(h*Math.cos(c)+r.cx,h*Math.sin(c)+r.cy),i.stroke()}}function Yc(e,t){const n=U(e);!n||(xo(n,t),To(n,"0:00",t))}function xo(e,t){t.outlineWidth!==0&&(e.beginPath(),e.strokeStyle=t.outlineColor,e.lineWidth=t.outlineWidth,e.arc(t.cx,t.cy,t.r,0,2*Math.PI),e.stroke())}function Gc(e,t,n){if(!n.progress)return;const{currentTime:r,duration:i}=t,o=r/i*2*Math.PI,s=Math.PI*1.5+o;!o||(e.lineWidth=n.progressWidth,e.strokeStyle=n.progressColor,e.beginPath(),e.arc(n.cx,n.cy,n.r-n.outlineWidth-n.outlineMeterSpace,1.5*Math.PI,s,n.progressClockwise),e.stroke())}function Zc(e,t,n){const{currentTime:r}=t,i=Math.floor(r/60),o=Math.floor(r)%60,s=o<10?`0${o}`:`${o}`,l=`${i}:${s}`;To(e,l,n)}function To(e,t,n){e.font=n.playtimeFont,e.fillStyle=n.playtimeColor,e.textAlign="center",e.fillText(t,n.cx,n.cy+parseInt(n.playtimeFont)*.25)}function ea(e,t){if(!Array.isArray(t.barColor))return t.barColor;const n=e.createRadialGradient(t.cx,t.cy,t.canvWidth/2,t.cx,t.cy,0);let r=0;return t.barColor.forEach(i=>{n.addColorStop(r,i),r+=1/t.barColor.length}),n}const ta=["controls","src"],na=Et({__name:"AVCircle",props:Lc(),setup(e){const t=e,n=Z(null),r=Z(null);return Qc(n,r,t),(i,o)=>(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,ta),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}}),se=[];function ra(e,t,n,r={}){const i=new Dc(n),o=Xt(t,i);ia(o,i,r);const{pause:s,resume:l}=Pr(()=>{var c,u;i.currentTime=(u=(c=e==null?void 0:e.value)==null?void 0:c.currentTime)!=null?u:0,Bt(o,i)},{immediate:!1});Ve(e,"play",l),Ve(e,"pause",s),Ve(e,"ended",()=>{const c=U(e);!c||c.duration===i.duration||(i.duration=c.duration,Bt(o,i))}),Ve(e,"timeupdate",()=>{const c=U(e);!c||(i.currentTime=c.currentTime,Bt(o,i))}),Ve(t,"click",c=>{if(!i.playtimeClickable)return;const u=U(e);!u||(u.currentTime=c.offsetX/i.canvWidth*i.duration,i.currentTime=u.currentTime,Bt(o,i))})}function Bt(e,t){const n=U(e);if(!n)return;let r=0;n.clearRect(0,0,t.canvWidth,t.canvHeight);const i=(o,s,l,c)=>{for(n.lineWidth=l,n.strokeStyle=c,s=s>se.length?se.length:s,n.beginPath();ot.canvWidth-i-r?t.playX-i-r:t.playX+r,s=t.playtimeTextBottom?t.canvHeight-t.playtimeFontSize+r:t.playtimeFontSize+r;e.fillStyle=t.playtimeFontColor,e.font=`${t.playtimeFontSize}px ${t.playtimeFontFamily}`,e.fillText(n,o,s)}function ia(e,t,n){if(!t.src)return;Cc(n)(t.src).arrayBuffer().then(({error:i,data:o})=>{const s=U(i);if(s!==null){console.error(`Failed get url '${t.src}': ${s}`);return}if(o.value===null){console.error("invalid arrayBuffer data received");return}new AudioContext().decodeAudioData(o.value).then(c=>{t.duration=c.duration,oa(c,t),Bt(e,t)}).catch(c=>{console.error("Failed to decode audio array buffer:",c)})}),br(()=>{const i=U(e);!i||(i.lineWidth=t.noplayedLineWidth,i.strokeStyle=t.noplayedLineColor,i.beginPath(),i.moveTo(0,t.canvHeight/2),i.lineTo(t.canvWidth,t.canvHeight/2),i.stroke(),Wo(i,t),t.playtime&&Po(i,t))})}function oa(e,t){se.slice(0);let n=0,r=0,i=0,o=0;const s=Math.ceil(e.length/t.canvWidth),l=t.canvWidth,c=t.canvHeight;for(let u=0;ur?d[W]:r;se[h]&&(se[h][0]=se[h][0]n?n:se[h][1]),se[h]=[r,n]}}for(let u=0;u(Ot(),At(Fe,null,[H("audio",{ref_key:"player",ref:n,controls:t.audioControls,src:t.src},null,8,sa),H("canvas",{ref_key:"canvas",ref:r},null,512)],64))}});function ca(e,t){const n=t;let r;const i=Xt(e,new kn(n)),{pause:o,resume:s}=Pr(()=>{!r||ua(r,i,new kn(n))},{immediate:!1});br(()=>{const l=U(n.media);l?(r=aa(l,new kn(n)),s()):o()})}function aa(e,t){const n=new AudioContext,r=n.createAnalyser();return n.createMediaStreamSource(e).connect(r),r.fftSize=t.fftSize,t.connectDestination&&r.connect(n.destination),r}function ua(e,t,n){const r=U(t);if(!r)return;const i=new Uint8Array(e.fftSize);switch(n.canvFillColor&&(r.fillStyle=n.canvFillColor),r.clearRect(0,0,n.canvWidth,n.canvHeight),r.beginPath(),r.strokeStyle=n.lineColor,n.type){case"frequ":e.getByteFrequencyData(i),fa(i,r,n);break;case"circle":e.getByteFrequencyData(i),ha(i,r,n);break;case"vbar":e.getByteFrequencyData(i),da(i,r,n);break;default:e.getByteTimeDomainData(i),pa(i,r,n);break}}function fa(e,t,n){const r=n.frequDirection==="mo",i=r?n.canvWidth/2:0,o=r?n.frequLnum/2:n.frequLnum,s=r?n.canvWidth/o/2:n.canvWidth/o,l=n.canvHeight,c=n.lineWidth||2;for(let u=0;uF+W/255*l,0)/s,m=(l-h)/2+2;t.lineWidth=c,t.lineCap=n.frequLineCap?"round":"butt",t.moveTo(i+d,m),t.lineTo(i+d,l-m),t.stroke(),r&&u>0&&(t.moveTo(i-d,m),t.lineTo(i-d,l-m),t.stroke())}}function da(e,t,n){const r=n.vbarWidth,i=n.vbarSpace,o=r<5?5:r/2;let s=0;for(let c=0;cl?n.vbarRightColor:n.vbarFillColor,t.beginPath(),t.moveTo(c,o),t.lineTo(c,n.canvHeight-o),t.stroke()}function ha(e,t,n){const r=n.canvWidth/2,i=n.canvHeight/2,o=r(Ot(),At("canvas",{ref_key:"canvas",ref:n},null,512))}}),ma={class:"container"},ga=wl('

Vue-Audio-Visual Vue plugin demo

See source this page source code for details
',1),ya={class:"row row-cols-3 mb-5 justify-content-start"},ba={class:"col"},va=H("h3",null,[H("code",null,"")],-1),_a={class:"col"},Ca=H("h3",null,[H("code",null,"")],-1),wa={class:"col"},Sa=H("h3",null,[H("code",null,"")],-1),Fa={class:"d-flex align-items-center"},xa={class:"row row-cols-2"},Ta={class:"col"},Wa=H("h3",null,[H("code",null,"")],-1),Pa={class:"col"},Ea=H("h3",null,[H("code",null,"")],-1),Oa={class:"card mt-3"},Aa=H("div",{class:"card-header text-primary"},[H("i",{class:"bi-mic-fill"}),Fr("Microphone media visualization ")],-1),Ma=H("div",{class:"card-body"},' To start click "Enable" and allow audio if asked. ',-1),Ha=[Aa,Ma],Ia={class:"row row-cols-2"},La={class:"col"},Na=H("p",{class:"font-monospace text-muted mb-0"},'type="frequ"',-1),Ba=H("p",{class:"font-monospace text-muted text-nowrap mt-3 mb-0"},' type="frequ" frequ-direction="mo"',-1),Da=H("p",{class:"font-monospace text-muted mt-2 mb-0"},'type="wform"',-1),ka={class:"col"},Ra=H("p",{class:"font-monospace text-muted mb-0"},'type="vbar"',-1),$a=H("p",{class:"font-monospace text-muted mb-0 mt-3"},' type="frequ" :frequ-lnum="3"',-1),ja=H("p",{class:"font-monospace text-muted mb-0 mt-2"},'type="circle"',-1),Ua=Et({__name:"App",setup(e){const t=Z("./file_example_MP3_1MG.mp3"),n=Z(!1),{stream:r,enabled:i}=Ec();return Me(i,()=>{n.value||i&&(n.value=!0)}),(o,s)=>(Ot(),At("div",ma,[ga,H("div",ya,[H("div",ba,[va,le(Uc,{src:t.value,"cors-anonym":!1},null,8,["src"])]),H("div",_a,[Ca,le(Xc,{src:t.value,"caps-color":"#FFF","bar-color":["#f00","#ff0","#0f0"],"canv-fill-color":"#000","brick-height":6,"bar-width":10,"caps-height":2},null,8,["src"])]),H("div",wa,[Sa,H("div",Fa,[le(na,{src:t.value,"outline-width":.5,"progress-width":5,"outline-meter-space":4,playtime:!0,"playtime-font":"16px Monaco"},null,8,["src","outline-width"])])])]),H("div",xa,[H("div",Ta,[Wa,le(la,{src:t.value,"noplayed-line-color":"#CFCFCF","played-line-color":"lime"},null,8,["src"])]),H("div",Pa,[Ea,H("button",{class:"btn btn-primary btn-default",onClick:s[0]||(s[0]=l=>i.value=!Ne(i)),type:"submit"},[H("i",{class:gn(Ne(i)?"bi-pause-circle":"bi-play-circle")},null,2),Fr(" "+Bo(Ne(i)?"Pause":"Enable"),1)]),Vr(H("div",Oa,Ha,512),[[ai,!n.value]]),Vr(H("div",Ia,[H("div",La,[Na,le(bt,{media:Ne(r),type:"frequ","line-color":"darkorange"},null,8,["media"]),Ba,le(bt,{media:Ne(r),type:"frequ","frequ-direction":"mo","frequ-lnum":60,"line-color":"darkorange"},null,8,["media"]),Da,le(bt,{media:Ne(r),type:"wform","line-color":"blue"},null,8,["media"])]),H("div",ka,[Ra,le(bt,{media:Ne(r),type:"vbar"},null,8,["media"]),$a,le(bt,{media:Ne(r),"canv-width":30,"canv-height":30,type:"frequ","frequ-line-cap":!0,"frequ-lnum":3,"line-width":6},null,8,["media"]),ja,le(bt,{media:Ne(r),type:"circle"},null,8,["media"])])],512),[[ai,n.value]])])])]))}});tc(Ua).mount("#app"); diff --git a/docs/index.html b/docs/index.html index cc1cd27..74f4c9c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ Vue audio visual plugin demo - + diff --git a/src/App.vue b/src/App.vue index e528b5a..6e767e8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,26 +37,17 @@ watch(enabled, () => {

<AVLine>

- +

<AVBars>

- +

<AVCircle>

-
@@ -64,13 +55,13 @@ watch(enabled, () => {

<AVWaveform>

- +

<AVMedia>

-
@@ -83,27 +74,24 @@ watch(enabled, () => {

type="frequ"

- +

type="frequ" frequ-direction="mo"

- +

type="wform"

- +

type="vbar"

- +

type="frequ" :frequ-lnum="3"

- +

type="circle"

@@ -114,5 +102,4 @@ watch(enabled, () => {
- + diff --git a/src/composables/useAVWaveform.ts b/src/composables/useAVWaveform.ts index fdd93b8..c702f4a 100644 --- a/src/composables/useAVWaveform.ts +++ b/src/composables/useAVWaveform.ts @@ -22,8 +22,19 @@ export function useAVWaveform( draw(ctx, p) }, { immediate: false }) - useEventListener(player, 'play', () => resume()) - useEventListener(player, 'pause', () => pause()) + useEventListener(player, 'play', resume) + useEventListener(player, 'pause', pause) + useEventListener(player, 'ended', () => { + // this is a patch for weba file formats. + // weba files when buffered with fetchData function return + // wrong data duration which is longer then real duration. + // So, when file is finished to play waveform still have empty + // space in the end. This will try to fix it. + const audio = resolveUnref(player) + if (!audio || audio.duration === p.duration) return + p.duration = audio.duration + draw(ctx, p) + }) useEventListener(player, 'timeupdate', () => { const audio = resolveUnref(player) if (!audio) return @@ -50,6 +61,7 @@ export function draw(canvas: Ref, p: Waveform) const waveform = (x: number, to: number, lw: number, color: string): number => { ctx.lineWidth = lw ctx.strokeStyle = color + to = to > peaks.length ? peaks.length : to ctx.beginPath() for (; x < to; x++) { ctx.moveTo(x, peaks[x][0]) diff --git a/src/composables/useProps/Waveform.ts b/src/composables/useProps/Waveform.ts index d19f5ab..ccad7b6 100644 --- a/src/composables/useProps/Waveform.ts +++ b/src/composables/useProps/Waveform.ts @@ -208,11 +208,12 @@ export class Waveform { this.currentTime = 0 this.duration = 0 } - get playX (): number { + get playX(): number { if (!this.duration) return 0 - return ~~(this.currentTime / this.duration * this.canvWidth) + const x = ~~(this.currentTime / this.duration * this.canvWidth) + return x > this.canvWidth ? this.canvWidth : x } - get timePlayed (): string { + get timePlayed(): string { const time = [ this.currentTime / 3600, this.currentTime / 60 % 60,