a109f5bab1
feat: implement useKeyboard composable for keyboard controls in the player feat: create PlaylistDetail view to display playlist information and tracks
9 lines
237 KiB
JavaScript
9 lines
237 KiB
JavaScript
var e=Object.defineProperty,t=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),n=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function r(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var i={},a=[],o=()=>{},s=()=>!1,c=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),l=e=>e.startsWith(`onUpdate:`),u=Object.assign,d=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},f=Object.prototype.hasOwnProperty,p=(e,t)=>f.call(e,t),m=Array.isArray,h=e=>w(e)===`[object Map]`,g=e=>w(e)===`[object Set]`,_=e=>w(e)===`[object Date]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),C=Object.prototype.toString,w=e=>C.call(e),ee=e=>w(e).slice(8,-1),te=e=>w(e)===`[object Object]`,T=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,E=r(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),D=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ne=/-\w/g,O=D(e=>e.replace(ne,e=>e.slice(1).toUpperCase())),re=/\B([A-Z])/g,ie=D(e=>e.replace(re,`-$1`).toLowerCase()),ae=D(e=>e.charAt(0).toUpperCase()+e.slice(1)),k=D(e=>e?`on${ae(e)}`:``),oe=(e,t)=>!Object.is(e,t),se=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ce=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},le=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ue,de=()=>ue||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function fe(e){if(m(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?ge(r):fe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(y(e)||x(e))return e}var pe=/;(?![^(]*\))/g,me=/:([^]+)/,he=/\/\*[^]*?\*\//g;function ge(e){let t={};return e.replace(he,``).split(pe).forEach(e=>{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function A(e){let t=``;if(y(e))t=e;else if(m(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var _e=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ve=r(_e);_e+``;function ye(e){return!!e||e===``}function be(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=xe(e[r],t[r]);return n}function xe(e,t){if(e===t)return!0;let n=_(e),r=_(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=b(e),r=b(t),n||r)return e===t;if(n=m(e),r=m(t),n||r)return n&&r?be(e,t):!1;if(n=x(e),r=x(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!xe(e[n],t[n]))return!1}}return String(e)===String(t)}function Se(e,t){return e.findIndex(e=>xe(e,t))}var Ce=e=>!!(e&&e.__v_isRef===!0),j=e=>y(e)?e:e==null?``:m(e)||x(e)&&(e.toString===C||!v(e.toString))?Ce(e)?j(e.value):JSON.stringify(e,we,2):String(e),we=(e,t)=>Ce(t)?we(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Te(t,r)+` =>`]=n,e),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Te(e))}:b(t)?Te(t):x(t)&&!m(t)&&!te(t)?String(t):t,Te=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e,M,Ee=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&M&&(M.active?(this.parent=M,this.index=(M.scopes||=[]).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){let t=M;try{return M=this,e()}finally{M=t}}}on(){++this._on===1&&(this.prevScope=M,M=this)}off(){if(this._on>0&&--this._on===0){if(M===this)M=this.prevScope;else{let e=M;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function De(e){return new Ee(e)}function Oe(){return M}function ke(e,t=!1){M&&M.cleanups.push(e)}var N,Ae=new WeakSet,je=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,M&&(M.active?M.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ae.has(this)&&(Ae.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Fe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Je(this),Re(this);let e=N,t=We;N=this,We=!0;try{return this.fn()}finally{ze(this),N=e,We=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)He(e);this.deps=this.depsTail=void 0,Je(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ae.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Be(this)&&this.run()}get dirty(){return Be(this)}},Me=0,Ne,Pe;function Fe(e,t=!1){if(e.flags|=8,t){e.next=Pe,Pe=e;return}e.next=Ne,Ne=e}function Ie(){Me++}function Le(){if(--Me>0)return;if(Pe){let e=Pe;for(Pe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ne;){let t=Ne;for(Ne=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Re(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),He(r),Ue(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Be(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ve(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ve(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ye)||(e.globalVersion=Ye,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Be(e))))return;e.flags|=2;let t=e.dep,n=N,r=We;N=e,We=!0;try{Re(e);let n=e.fn(e._value);(t.version===0||oe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{N=n,We=r,ze(e),e.flags&=-3}}function He(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)He(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ue(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var We=!0,Ge=[];function Ke(){Ge.push(We),We=!1}function qe(){let e=Ge.pop();We=e===void 0?!0:e}function Je(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=N;N=void 0;try{t()}finally{N=e}}}var Ye=0,Xe=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ze=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!N||!We||N===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==N)t=this.activeLink=new Xe(N,this),N.deps?(t.prevDep=N.depsTail,N.depsTail.nextDep=t,N.depsTail=t):N.deps=N.depsTail=t,Qe(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=N.depsTail,t.nextDep=void 0,N.depsTail.nextDep=t,N.depsTail=t,N.deps===t&&(N.deps=e)}return t}trigger(e){this.version++,Ye++,this.notify(e)}notify(e){Ie();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Le()}}};function Qe(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Qe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var $e=new WeakMap,et=Symbol(``),tt=Symbol(``),nt=Symbol(``);function rt(e,t,n){if(We&&N){let t=$e.get(e);t||$e.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ze),r.map=t,r.key=n),r.track()}}function it(e,t,n,r,i,a){let o=$e.get(e);if(!o){Ye++;return}let s=e=>{e&&e.trigger()};if(Ie(),t===`clear`)o.forEach(s);else{let i=m(e),a=i&&T(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===nt||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(nt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(et)),h(e)&&s(o.get(tt)));break;case`delete`:i||(s(o.get(et)),h(e)&&s(o.get(tt)));break;case`set`:h(e)&&s(o.get(et));break}}Le()}function at(e,t){let n=$e.get(e);return n&&n.get(t)}function ot(e){let t=P(e);return t===e?t:(rt(t,`iterate`,nt),Kt(e)?t:t.map(Yt))}function st(e){return rt(e=P(e),`iterate`,nt),e}function ct(e,t){return Gt(e)?Xt(Wt(e)?Yt(t):t):Yt(t)}var lt={__proto__:null,[Symbol.iterator](){return ut(this,Symbol.iterator,e=>ct(this,e))},concat(...e){return ot(this).concat(...e.map(e=>m(e)?ot(e):e))},entries(){return ut(this,`entries`,e=>(e[1]=ct(this,e[1]),e))},every(e,t){return ft(this,`every`,e,t,void 0,arguments)},filter(e,t){return ft(this,`filter`,e,t,e=>e.map(e=>ct(this,e)),arguments)},find(e,t){return ft(this,`find`,e,t,e=>ct(this,e),arguments)},findIndex(e,t){return ft(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ft(this,`findLast`,e,t,e=>ct(this,e),arguments)},findLastIndex(e,t){return ft(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ft(this,`forEach`,e,t,void 0,arguments)},includes(...e){return mt(this,`includes`,e)},indexOf(...e){return mt(this,`indexOf`,e)},join(e){return ot(this).join(e)},lastIndexOf(...e){return mt(this,`lastIndexOf`,e)},map(e,t){return ft(this,`map`,e,t,void 0,arguments)},pop(){return ht(this,`pop`)},push(...e){return ht(this,`push`,e)},reduce(e,...t){return pt(this,`reduce`,e,t)},reduceRight(e,...t){return pt(this,`reduceRight`,e,t)},shift(){return ht(this,`shift`)},some(e,t){return ft(this,`some`,e,t,void 0,arguments)},splice(...e){return ht(this,`splice`,e)},toReversed(){return ot(this).toReversed()},toSorted(e){return ot(this).toSorted(e)},toSpliced(...e){return ot(this).toSpliced(...e)},unshift(...e){return ht(this,`unshift`,e)},values(){return ut(this,`values`,e=>ct(this,e))}};function ut(e,t,n){let r=st(e),i=r[t]();return r!==e&&!Kt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var dt=Array.prototype;function ft(e,t,n,r,i,a){let o=st(e),s=o!==e&&!Kt(e),c=o[t];if(c!==dt[t]){let t=c.apply(e,a);return s?Yt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,ct(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function pt(e,t,n,r){let i=st(e),a=i!==e&&!Kt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=ct(e,t)),n.call(this,t,ct(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?ct(e,c):c}function mt(e,t,n){let r=P(e);rt(r,`iterate`,nt);let i=r[t](...n);return(i===-1||i===!1)&&qt(n[0])?(n[0]=P(n[0]),r[t](...n)):i}function ht(e,t,n=[]){Ke(),Ie();let r=P(e)[t].apply(e,n);return Le(),qe(),r}var gt=r(`__proto__,__v_isRef,__isVue`),_t=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function vt(e){b(e)||(e=String(e));let t=P(this);return rt(t,`has`,e),t.hasOwnProperty(e)}var yt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Lt:It:i?Ft:Pt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=m(e);if(!r){let e;if(a&&(e=lt[t]))return e;if(t===`hasOwnProperty`)return vt}let o=Reflect.get(e,t,F(e)?e:n);if((b(t)?_t.has(t):gt(t))||(r||rt(e,`get`,t),i))return o;if(F(o)){let e=a&&T(t)?o:o.value;return r&&x(e)?Ht(e):e}return x(o)?r?Ht(o):Bt(o):o}},bt=class extends yt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=m(e)&&T(t);if(!this._isShallow){let e=Gt(i);if(!Kt(n)&&!Gt(n)&&(i=P(i),n=P(n)),!a&&F(i)&&!F(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:p(e,t),s=Reflect.set(e,t,n,F(e)?e:r);return e===P(r)&&(o?oe(n,i)&&it(e,`set`,t,n,i):it(e,`add`,t,n)),s}deleteProperty(e,t){let n=p(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&it(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!b(t)||!_t.has(t))&&rt(e,`has`,t),n}ownKeys(e){return rt(e,`iterate`,m(e)?`length`:et),Reflect.ownKeys(e)}},xt=class extends yt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},St=new bt,Ct=new xt,wt=new bt(!0),Tt=e=>e,Et=e=>Reflect.getPrototypeOf(e);function Dt(e,t,n){return function(...r){let i=this.__v_raw,a=P(i),o=h(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,l=i[e](...r),d=n?Tt:t?Xt:Yt;return!t&&rt(a,`iterate`,c?tt:et),u(Object.create(l),{next(){let{value:e,done:t}=l.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ot(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function kt(e,t){let n={get(n){let r=this.__v_raw,i=P(r),a=P(n);e||(oe(n,a)&&rt(i,`get`,n),rt(i,`get`,a));let{has:o}=Et(i),s=t?Tt:e?Xt:Yt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&rt(P(t),`iterate`,et),t.size},has(t){let n=this.__v_raw,r=P(n),i=P(t);return e||(oe(t,i)&&rt(r,`has`,t),rt(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=P(a),s=t?Tt:e?Xt:Yt;return!e&&rt(o,`iterate`,et),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return u(n,e?{add:Ot(`add`),set:Ot(`set`),delete:Ot(`delete`),clear:Ot(`clear`)}:{add(e){let n=P(this),r=Et(n),i=P(e),a=!t&&!Kt(e)&&!Gt(e)?i:e;return r.has.call(n,a)||oe(e,a)&&r.has.call(n,e)||oe(i,a)&&r.has.call(n,i)||(n.add(a),it(n,`add`,a,a)),this},set(e,n){!t&&!Kt(n)&&!Gt(n)&&(n=P(n));let r=P(this),{has:i,get:a}=Et(r),o=i.call(r,e);o||=(e=P(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?oe(n,s)&&it(r,`set`,e,n,s):it(r,`add`,e,n),this},delete(e){let t=P(this),{has:n,get:r}=Et(t),i=n.call(t,e);i||=(e=P(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&it(t,`delete`,e,void 0,a),o},clear(){let e=P(this),t=e.size!==0,n=e.clear();return t&&it(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Dt(r,e,t)}),n}function At(e,t){let n=kt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(p(n,r)&&r in t?n:t,r,i)}var jt={get:At(!1,!1)},Mt={get:At(!1,!0)},Nt={get:At(!0,!1)},Pt=new WeakMap,Ft=new WeakMap,It=new WeakMap,Lt=new WeakMap;function Rt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function zt(e){return e.__v_skip||!Object.isExtensible(e)?0:Rt(ee(e))}function Bt(e){return Gt(e)?e:Ut(e,!1,St,jt,Pt)}function Vt(e){return Ut(e,!1,wt,Mt,Ft)}function Ht(e){return Ut(e,!0,Ct,Nt,It)}function Ut(e,t,n,r,i){if(!x(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;let a=zt(e);if(a===0)return e;let o=i.get(e);if(o)return o;let s=new Proxy(e,a===2?r:n);return i.set(e,s),s}function Wt(e){return Gt(e)?Wt(e.__v_raw):!!(e&&e.__v_isReactive)}function Gt(e){return!!(e&&e.__v_isReadonly)}function Kt(e){return!!(e&&e.__v_isShallow)}function qt(e){return e?!!e.__v_raw:!1}function P(e){let t=e&&e.__v_raw;return t?P(t):e}function Jt(e){return!p(e,`__v_skip`)&&Object.isExtensible(e)&&ce(e,`__v_skip`,!0),e}var Yt=e=>x(e)?Bt(e):e,Xt=e=>x(e)?Ht(e):e;function F(e){return e?e.__v_isRef===!0:!1}function I(e){return Qt(e,!1)}function Zt(e){return Qt(e,!0)}function Qt(e,t){return F(e)?e:new $t(e,t)}var $t=class{constructor(e,t){this.dep=new Ze,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:P(e),this._value=t?e:Yt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Kt(e)||Gt(e);e=n?e:P(e),oe(e,t)&&(this._rawValue=e,this._value=n?e:Yt(e),this.dep.trigger())}};function L(e){return F(e)?e.value:e}var en={get:(e,t,n)=>t===`__v_raw`?e:L(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return F(i)&&!F(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function tn(e){return Wt(e)?e:new Proxy(e,en)}function nn(e){let t=m(e)?Array(e.length):{};for(let n in e)t[n]=an(e,n);return t}var rn=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=P(e);let r=!0,i=e;if(!m(e)||b(this._key)||!T(this._key))do r=!qt(i)||Kt(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=L(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&F(this._raw[this._key])){let t=this._object[this._key];if(F(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return at(this._raw,this._key)}};function an(e,t,n){return new rn(e,t,n)}var on=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ze(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ye-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&N!==this)return Fe(this,!0),!0}get value(){let e=this.dep.track();return Ve(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function sn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new on(r,i,n)}var cn={},ln=new WeakMap,un=void 0;function dn(e,t=!1,n=un){if(n){let t=ln.get(n);t||ln.set(n,t=[]),t.push(e)}}function fn(e,t,n=i){let{immediate:r,deep:a,once:s,scheduler:c,augmentJob:l,call:u}=n,f=e=>a?e:Kt(e)||a===!1||a===0?pn(e,1):pn(e),p,h,g,_,y=!1,b=!1;if(F(e)?(h=()=>e.value,y=Kt(e)):Wt(e)?(h=()=>f(e),y=!0):m(e)?(b=!0,y=e.some(e=>Wt(e)||Kt(e)),h=()=>e.map(e=>{if(F(e))return e.value;if(Wt(e))return f(e);if(v(e))return u?u(e,2):e()})):h=v(e)?t?u?()=>u(e,2):e:()=>{if(g){Ke();try{g()}finally{qe()}}let t=un;un=p;try{return u?u(e,3,[_]):e(_)}finally{un=t}}:o,t&&a){let e=h,t=a===!0?1/0:a;h=()=>pn(e(),t)}let x=Oe(),S=()=>{p.stop(),x&&x.active&&d(x.effects,p)};if(s&&t){let e=t;t=(...t)=>{e(...t),S()}}let C=b?Array(e.length).fill(cn):cn,w=e=>{if(!(!(p.flags&1)||!p.dirty&&!e))if(t){let e=p.run();if(a||y||(b?e.some((e,t)=>oe(e,C[t])):oe(e,C))){g&&g();let n=un;un=p;try{let n=[e,C===cn?void 0:b&&C[0]===cn?[]:C,_];C=e,u?u(t,3,n):t(...n)}finally{un=n}}}else p.run()};return l&&l(w),p=new je(h),p.scheduler=c?()=>c(w,!1):w,_=e=>dn(e,!1,p),g=p.onStop=()=>{let e=ln.get(p);if(e){if(u)u(e,4);else for(let t of e)t();ln.delete(p)}},t?r?w(!0):C=p.run():c?c(w.bind(null,!0),!0):p.run(),S.pause=p.pause.bind(p),S.resume=p.resume.bind(p),S.stop=S,S}function pn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,F(e))pn(e.value,t,n);else if(m(e))for(let r=0;r<e.length;r++)pn(e[r],t,n);else if(g(e)||h(e))e.forEach(e=>{pn(e,t,n)});else if(te(e)){for(let r in e)pn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&pn(e[r],t,n)}return e}function mn(e,t,n,r){try{return r?e(...r):e()}catch(e){gn(e,t,n)}}function hn(e,t,n,r){if(v(e)){let i=mn(e,t,n,r);return i&&S(i)&&i.catch(e=>{gn(e,t,n)}),i}if(m(e)){let i=[];for(let a=0;a<e.length;a++)i.push(hn(e[a],t,n,r));return i}}function gn(e,t,n,r=!0){let a=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=t&&t.appContext.config||i;if(t){let r=t.parent,i=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t){for(let n=0;n<t.length;n++)if(t[n](e,i,a)===!1)return}r=r.parent}if(o){Ke(),mn(o,null,10,[e,i,a]),qe();return}}_n(e,n,a,r,s)}function _n(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var vn=[],yn=-1,bn=[],xn=null,Sn=0,Cn=Promise.resolve(),wn=null;function Tn(e){let t=wn||Cn;return e?t.then(this?e.bind(this):e):t}function En(e){let t=yn+1,n=vn.length;for(;t<n;){let r=t+n>>>1,i=vn[r],a=Mn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function Dn(e){if(!(e.flags&1)){let t=Mn(e),n=vn[vn.length-1];!n||!(e.flags&2)&&t>=Mn(n)?vn.push(e):vn.splice(En(t),0,e),e.flags|=1,On()}}function On(){wn||=Cn.then(Nn)}function kn(e){m(e)?bn.push(...e):xn&&e.id===-1?xn.splice(Sn+1,0,e):e.flags&1||(bn.push(e),e.flags|=1),On()}function An(e,t,n=yn+1){for(;n<vn.length;n++){let t=vn[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;vn.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function jn(e){if(bn.length){let e=[...new Set(bn)].sort((e,t)=>Mn(e)-Mn(t));if(bn.length=0,xn){xn.push(...e);return}for(xn=e,Sn=0;Sn<xn.length;Sn++){let e=xn[Sn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}xn=null,Sn=0}}var Mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Nn(e){try{for(yn=0;yn<vn.length;yn++){let e=vn[yn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),mn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;yn<vn.length;yn++){let e=vn[yn];e&&(e.flags&=-2)}yn=-1,vn.length=0,jn(e),wn=null,(vn.length||bn.length)&&Nn(e)}}var Pn=null,Fn=null;function In(e){let t=Pn;return Pn=e,Fn=e&&e.type.__scopeId||null,t}function Ln(e,t=Pn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Ji(-1);let i=In(t),a;try{a=e(...n)}finally{In(i),r._d&&Ji(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Rn(e,t){if(Pn===null)return e;let n=ka(Pn),r=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=i]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&pn(o),r.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function zn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(Ke(),hn(c,n,8,[e.el,s,e,t]),qe())}}function Bn(e,t){if(pa){let n=pa.provides,r=pa.parent&&pa.parent.provides;r===n&&(n=pa.provides=Object.create(r)),n[e]=t}}function Vn(e,t,n=!1){let r=ma();if(r||Zr){let i=Zr?Zr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t}}function Hn(){return!!(ma()||Zr)}var Un=Symbol.for(`v-scx`),Wn=()=>Vn(Un);function Gn(e,t,n){return Kn(e,t,n)}function Kn(e,t,n=i){let{immediate:r,deep:a,flush:s,once:c}=n,l=u({},n),d=t&&r||!t&&s!==`post`,f;if(ba){if(s===`sync`){let e=Wn();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=o,e.resume=o,e.pause=o,e}}let p=pa;l.call=(e,t,n)=>hn(e,p,t,n);let m=!1;s===`post`?l.scheduler=e=>{Oi(e,p&&p.suspense)}:s!==`sync`&&(m=!0,l.scheduler=(e,t)=>{t?e():Dn(e)}),l.augmentJob=e=>{t&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=fn(e,t,l);return ba&&(f?f.push(h):d&&h()),h}function qn(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Jn(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=_a(this),s=Kn(i,a.bind(r),n);return o(),s}function Jn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Yn=Symbol(`_vte`),Xn=e=>e.__isTeleport,Zn=Symbol(`_leaveCb`);function Qn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qn(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 $n(e,t){return v(e)?u({name:e.name},t,{setup:e}):e}function er(e){e.ids=[e.ids[0]+ e.ids[2]+++`-`,0,0]}function tr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var nr=new WeakMap;function rr(e,t,n,r,a=!1){if(m(e)){e.forEach((e,i)=>rr(e,t&&(m(t)?t[i]:t),n,r,a));return}if(ar(r)&&!a){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&rr(e,t,n,r.component.subTree);return}let o=r.shapeFlag&4?ka(r.component):r.el,c=a?null:o,{i:l,r:u}=e,f=t&&t.r,h=l.refs===i?l.refs={}:l.refs,g=l.setupState,_=P(g),b=g===i?s:e=>tr(h,e)?!1:p(_,e),x=(e,t)=>!(t&&tr(h,t));if(f!=null&&f!==u){if(ir(t),y(f))h[f]=null,b(f)&&(g[f]=null);else if(F(f)){let e=t;x(f,e.k)&&(f.value=null),e.k&&(h[e.k]=null)}}if(v(u))mn(u,l,12,[c,h]);else{let t=y(u),r=F(u);if(t||r){let i=()=>{if(e.f){let n=t?b(u)?g[u]:h[u]:x(u)||!e.k?u.value:h[e.k];if(a)m(n)&&d(n,o);else if(m(n))n.includes(o)||n.push(o);else if(t)h[u]=[o],b(u)&&(g[u]=h[u]);else{let t=[o];x(u,e.k)&&(u.value=t),e.k&&(h[e.k]=t)}}else t?(h[u]=c,b(u)&&(g[u]=c)):r&&(x(u,e.k)&&(u.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),nr.delete(e)};t.id=-1,nr.set(e,t),Oi(t,n)}else ir(e),i()}}}function ir(e){let t=nr.get(e);t&&(t.flags|=8,nr.delete(e))}de().requestIdleCallback,de().cancelIdleCallback;var ar=e=>!!e.type.__asyncLoader,or=e=>e.type.__isKeepAlive;function sr(e,t){lr(e,`a`,t)}function cr(e,t){lr(e,`da`,t)}function lr(e,t,n=pa){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(dr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)or(e.parent.vnode)&&ur(r,t,n,e),e=e.parent}}function ur(e,t,n,r){let i=dr(t,e,r,!0);vr(()=>{d(r[t],i)},n)}function dr(e,t,n=pa,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{Ke();let i=_a(n),a=hn(t,n,e,r);return i(),qe(),a};return r?i.unshift(a):i.push(a),a}}var fr=e=>(t,n=pa)=>{(!ba||e===`sp`)&&dr(e,(...e)=>t(...e),n)},pr=fr(`bm`),mr=fr(`m`),hr=fr(`bu`),gr=fr(`u`),_r=fr(`bum`),vr=fr(`um`),yr=fr(`sp`),br=fr(`rtg`),xr=fr(`rtc`);function Sr(e,t=pa){dr(`ec`,e,t)}var Cr=`components`;function wr(e,t){return Er(Cr,e,!0,t)||e}var Tr=Symbol.for(`v-ndc`);function Er(e,t,n=!0,r=!1){let i=Pn||pa;if(i){let n=i.type;if(e===Cr){let e=Aa(n,!1);if(e&&(e===t||e===O(t)||e===ae(O(t))))return n}let a=Dr(i[e]||n[e],t)||Dr(i.appContext[e],t);return!a&&r?n:a}}function Dr(e,t){return e&&(e[t]||e[O(t)]||e[ae(O(t))])}function R(e,t,n,r){let i,a=n&&n[r],o=m(e);if(o||y(e)){let n=o&&Wt(e),r=!1,s=!1;n&&(r=!Kt(e),s=Gt(e),e=st(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Xt(Yt(e[n])):Yt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(x(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}var Or=e=>e?ya(e)?ka(e):Or(e.parent):null,kr=u(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=>Or(e.parent),$root:e=>Or(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Rr(e),$forceUpdate:e=>e.f||=()=>{Dn(e.update)},$nextTick:e=>e.n||=Tn.bind(e.proxy),$watch:e=>qn.bind(e)}),Ar=(e,t)=>e!==i&&!e.__isScriptSetup&&p(e,t),jr={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:r,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return r[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(Ar(r,t))return s[t]=1,r[t];else if(a!==i&&p(a,t))return s[t]=2,a[t];else if(p(o,t))return s[t]=3,o[t];else if(n!==i&&p(n,t))return s[t]=4,n[t];else Nr&&(s[t]=0)}let u=kr[t],d,f;if(u)return t===`$attrs`&&rt(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==i&&p(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,p(f,t))return f[t]},set({_:e},t,n){let{data:r,setupState:a,ctx:o}=e;return Ar(a,t)?(a[t]=n,!0):r!==i&&p(r,t)?(r[t]=n,!0):p(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:a,props:o,type:s}},c){let l;return!!(n[c]||e!==i&&c[0]!==`$`&&p(e,c)||Ar(t,c)||p(o,c)||p(r,c)||p(kr,c)||p(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?p(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Mr(e){return m(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var Nr=!0;function Pr(e){let t=Rr(e),n=e.proxy,r=e.ctx;Nr=!1,t.beforeCreate&&Ir(t.beforeCreate,e,`bc`);let{data:i,computed:a,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:p,beforeUpdate:h,updated:g,activated:_,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:te,renderTriggered:T,errorCaptured:E,serverPrefetch:D,expose:ne,inheritAttrs:O,components:re,directives:ie,filters:ae}=t;if(u&&Fr(u,r,null),s)for(let e in s){let t=s[e];v(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);x(t)&&(e.data=Bt(t))}if(Nr=!0,a)for(let e in a){let t=a[e],i=K({get:v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):o,set:!v(t)&&v(t.set)?t.set.bind(n):o});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Lr(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Bn(t,e[t])})}d&&Ir(d,e,`c`);function k(e,t){m(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(k(pr,f),k(mr,p),k(hr,h),k(gr,g),k(sr,_),k(cr,y),k(Sr,E),k(xr,te),k(br,T),k(_r,S),k(vr,w),k(yr,D),m(ne))if(ne.length){let t=e.exposed||={};ne.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={};ee&&e.render===o&&(e.render=ee),O!=null&&(e.inheritAttrs=O),re&&(e.components=re),ie&&(e.directives=ie),D&&er(e)}function Fr(e,t,n=o){m(e)&&(e=Ur(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?Vn(r.from||n,r.default,!0):Vn(r.from||n):Vn(r),F(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ir(e,t,n){hn(m(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Lr(e,t,n,r){let i=r.includes(`.`)?Jn(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Gn(i,n)}else if(v(e))Gn(i,e.bind(n));else if(x(e))if(m(e))e.forEach(e=>Lr(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Gn(i,r,e)}}function Rr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>zr(c,e,o,!0)),zr(c,t,o)),x(t)&&a.set(t,c),c}function zr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&zr(e,a,n,!0),i&&i.forEach(t=>zr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Br[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Br={data:Vr,props:Kr,emits:Kr,methods:Gr,computed:Gr,beforeCreate:Wr,created:Wr,beforeMount:Wr,mounted:Wr,beforeUpdate:Wr,updated:Wr,beforeDestroy:Wr,beforeUnmount:Wr,destroyed:Wr,unmounted:Wr,activated:Wr,deactivated:Wr,errorCaptured:Wr,serverPrefetch:Wr,components:Gr,directives:Gr,watch:qr,provide:Vr,inject:Hr};function Vr(e,t){return t?e?function(){return u(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function Hr(e,t){return Gr(Ur(e),Ur(t))}function Ur(e){if(m(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Wr(e,t){return e?[...new Set([].concat(e,t))]:t}function Gr(e,t){return e?u(Object.create(null),e,t):t}function Kr(e,t){return e?m(e)&&m(t)?[...new Set([...e,...t])]:u(Object.create(null),Mr(e),Mr(t??{})):t}function qr(e,t){if(!e)return t;if(!t)return e;let n=u(Object.create(null),e);for(let r in t)n[r]=Wr(e[r],t[r]);return n}function Jr(){return{app:null,config:{isNativeTag:s,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}}var Yr=0;function Xr(e,t){return function(n,r=null){v(n)||(n=u({},n)),r!=null&&!x(r)&&(r=null);let i=Jr(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:Yr++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Na,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&v(e.install)?(a.add(e),e.install(c,...t)):v(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||U(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,ka(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(hn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=Zr;Zr=c;try{return e()}finally{Zr=t}}};return c}}var Zr=null,Qr=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${O(t)}Modifiers`]||e[`${ie(t)}Modifiers`];function $r(e,t,...n){if(e.isUnmounted)return;let r=e.vnode.props||i,a=n,o=t.startsWith(`update:`),s=o&&Qr(r,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=n.map(le)));let c,l=r[c=k(t)]||r[c=k(O(t))];!l&&o&&(l=r[c=k(ie(t))]),l&&hn(l,e,6,a);let u=r[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,hn(u,e,6,a)}}var ei=new WeakMap;function ti(e,t,n=!1){let r=n?ei:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=ti(e,t,!0);n&&(s=!0,u(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(x(e)&&r.set(e,null),null):(m(a)?a.forEach(e=>o[e]=null):u(o,a),x(e)&&r.set(e,o),o)}function ni(e,t){return!e||!c(t)?!1:(t=t.slice(2).replace(/Once$/,``),p(e,t[0].toLowerCase()+t.slice(1))||p(e,ie(t))||p(e,t))}function ri(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:c,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=In(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=aa(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=aa(e.length>1?e(f,{attrs:s,slots:o,emit:c}):e(f,null)),y=t.props?s:ii(s)}}catch(t){Wi.length=0,gn(t,e,1),v=U(Hi)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(l)&&(y=ai(y,a)),b=ra(b,y,!1,!0))}return n.dirs&&(b=ra(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Qn(b,n.transition),v=b,In(_),v}var ii=e=>{let t;for(let n in e)(n===`class`||n===`style`||c(n))&&((t||={})[n]=e[n]);return t},ai=(e,t)=>{let n={};for(let r in e)(!l(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?si(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(ci(o,r,n)&&!ni(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?si(r,o,l):!0:!!o;return!1}function si(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(ci(t,e,a)&&!ni(n,a))return!0}return!1}function ci(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!xe(r,i):r!==i}function li({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var ui={},di=()=>Object.create(ui),fi=e=>Object.getPrototypeOf(e)===ui;function pi(e,t,n,r=!1){let i={},a=di();e.propsDefaults=Object.create(null),hi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:Vt(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function mi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=P(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ni(e.emitsOptions,o))continue;let u=t[o];if(c)if(p(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=O(o);i[t]=gi(c,s,t,u,e,!1)}else u!==a[o]&&(a[o]=u,l=!0)}}}else{hi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!p(t,a)&&((r=ie(a))===a||!p(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=gi(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!p(t,e))&&(delete a[e],l=!0)}l&&it(e.attrs,`set`,``)}function hi(e,t,n,r){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let i in t){if(E(i))continue;let l=t[i],u;a&&p(a,u=O(i))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:ni(e.emitsOptions,i)||(!(i in r)||l!==r[i])&&(r[i]=l,s=!0)}if(o){let t=P(n),r=c||i;for(let i=0;i<o.length;i++){let s=o[i];n[s]=gi(a,t,s,r[s],e,!p(r,s))}}return s}function gi(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=p(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=_a(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===ie(n))&&(r=!0))}return r}var _i=new WeakMap;function vi(e,t,n=!1){let r=n?_i:t.propsCache,o=r.get(e);if(o)return o;let s=e.props,c={},l=[],d=!1;if(!v(e)){let r=e=>{d=!0;let[n,r]=vi(e,t,!0);u(c,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return x(e)&&r.set(e,a),a;if(m(s))for(let e=0;e<s.length;e++){let t=O(s[e]);yi(t)&&(c[t]=i)}else if(s)for(let e in s){let t=O(e);if(yi(t)){let n=s[e],r=c[t]=m(n)||v(n)?{type:n}:u({},n),i=r.type,a=!1,o=!0;if(m(i))for(let e=0;e<i.length;++e){let t=i[e],n=v(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||p(r,`default`))&&l.push(t)}}let f=[c,l];return x(e)&&r.set(e,f),f}function yi(e){return e[0]!==`$`&&!E(e)}var bi=e=>e===`_`||e===`_ctx`||e===`$stable`,xi=e=>m(e)?e.map(aa):[aa(e)],Si=(e,t,n)=>{if(t._n)return t;let r=Ln((...e)=>xi(t(...e)),n);return r._c=!1,r},Ci=(e,t,n)=>{let r=e._ctx;for(let n in e){if(bi(n))continue;let i=e[n];if(v(i))t[n]=Si(n,i,r);else if(i!=null){let e=xi(i);t[n]=()=>e}}},wi=(e,t)=>{let n=xi(t);e.slots.default=()=>n},Ti=(e,t,n)=>{for(let r in t)(n||!bi(r))&&(e[r]=t[r])},Ei=(e,t,n)=>{let r=e.slots=di();if(e.vnode.shapeFlag&32){let e=t._;e?(Ti(r,t,n),n&&ce(r,`_`,e,!0)):Ci(t,r)}else t&&wi(e,t)},Di=(e,t,n)=>{let{vnode:r,slots:a}=e,o=!0,s=i;if(r.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Ti(a,t,n):(o=!t.$stable,Ci(t,a)),s=t}else t&&(wi(e,t),s={default:1});if(o)for(let e in a)!bi(e)&&s[e]==null&&delete a[e]},Oi=Bi;function ki(e){return Ai(e)}function Ai(e,t){let n=de();n.__VUE__=!0;let{insert:r,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=o,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!Qi(e,t)&&(r=ve(e),me(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Vi:y(e,t,n,r);break;case Hi:b(e,t,n,r);break;case Ui:e??x(t,n,r,o);break;case z:re(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?ie(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,xe)}u!=null&&i?rr(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&rr(e.ref,null,a,e,!0)},y=(e,t,n,i)=>{if(e==null)r(t.el=u(t.children),n,i);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,i)=>{e==null?r(t.el=d(t.children||``),n,i):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,i)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,i),e=a;r(t,n,i)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),D(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,i,a,o,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,o,m&&m.is,m),h&8?p(d,e.children):h&16&&T(e.children,d,null,i,a,ji(e,o),s,u),_&&zn(e,null,i,`created`),te(d,e,e.scopeId,s,i),m){for(let e in m)e!==`value`&&!E(e)&&c(d,e,null,m[e],o,i);`value`in m&&c(d,`value`,null,m.value,o),(f=m.onVnodeBeforeMount)&&la(f,i,e)}_&&zn(e,null,i,`beforeMount`);let v=Ni(a,g);v&&g.beforeEnter(d),r(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Oi(()=>{try{f&&la(f,i,e),v&&g.enter(d),_&&zn(e,null,i,`mounted`)}finally{}},a)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||zi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;te(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++)v(null,e[l]=s?oa(e[l]):aa(e[l]),t,n,r,i,a,o,s)},D=(e,t,n,r,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||i,h=t.props||i,g;if(n&&Mi(n,!1),(g=h.onVnodeBeforeUpdate)&&la(g,n,t,e),f&&zn(t,e,n,`beforeUpdate`),n&&Mi(n,!0),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?ne(e.dynamicChildren,d,l,n,r,ji(t,a),o):s||le(e,t,l,null,n,r,ji(t,a),o,!1),u>0){if(u&16)O(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else !s&&d==null&&O(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&Oi(()=>{g&&la(g,n,t,e),f&&zn(t,e,n,`updated`)},r)},ne=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s];v(c,l,c.el&&(c.type===z||!Qi(c,l)||c.shapeFlag&198)?m(c.el):n,null,r,i,a,o,!0)}},O=(e,t,n,r,a)=>{if(t!==n){if(t!==i)for(let i in t)!E(i)&&!(i in n)&&c(e,i,t[i],null,a,r);for(let i in n){if(E(i))continue;let o=n[i],s=t[i];o!==s&&i!==`value`&&c(e,i,s,o,a,r)}`value`in n&&c(e,`value`,t.value,n.value,a)}},re=(e,t,n,i,a,o,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(r(d,n,i),r(f,n,i),T(t.children||[],n,f,a,o,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ne(e.dynamicChildren,m,n,a,o,s,c),(t.key!=null||a&&t===a.subTree)&&Pi(e,t,!0)):le(e,t,n,f,a,o,s,c,l)},ie=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):ae(t,n,r,i,a,o,c):k(e,t,c)},ae=(e,t,n,r,i,a,o)=>{let s=e.component=fa(e,r,i);if(or(e)&&(s.ctx.renderer=xe),xa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,oe,o),!e.el){let r=s.subTree=U(Hi);b(null,r,t,n),e.placeholder=r.el}}else oe(s,e,t,n,i,a,o)},k=(e,t,n)=>{let r=t.component=e.component;if(oi(e,t,n))if(r.asyncDep&&!r.asyncResolved){ce(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},oe=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ii(e);if(n){t&&(t.el=c.el,ce(e,t,o)),n.asyncDep.then(()=>{Oi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Mi(e,!1),t?(t.el=c.el,ce(e,t,o)):t=c,n&&se(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&la(d,s,t,c),Mi(e,!0);let f=ri(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ve(p),e,i,a),t.el=f.el,u===null&&li(e,f.el),r&&Oi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Oi(()=>la(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=ar(t);if(Mi(e,!1),l&&se(l),!m&&(o=c&&c.onVnodeBeforeMount)&&la(o,d,t),Mi(e,!0),s&&Ce){let t=()=>{e.subTree=ri(e),Ce(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ri(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Oi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Oi(()=>la(o,d,e),i)}(t.shapeFlag&256||d&&ar(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Oi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new je(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>Dn(u),Mi(e,!0),l()},ce=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,mi(e,t.props,r,n),Di(e,t.children,n),Ke(),An(e),qe()},le=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){fe(l,d,n,r,i,a,o,s,c);return}else if(f&256){ue(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&_e(l,i,a),d!==l&&p(n,d)):u&16?m&16?fe(l,d,n,r,i,a,o,s,c):_e(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},ue=(e,t,n,r,i,o,s,c,l)=>{e||=a,t||=a;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let r=t[p]=l?oa(t[p]):aa(t[p]);v(e[p],r,n,null,i,o,s,c,l)}u>d?_e(e,i,o,!0,!1,f):T(t,n,r,i,o,s,c,l,f)},fe=(e,t,n,r,i,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],a=t[u]=l?oa(t[u]):aa(t[u]);if(Qi(r,a))v(r,a,n,null,i,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],a=t[p]=l?oa(t[p]):aa(t[p]);if(Qi(r,a))v(r,a,n,null,i,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,a=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?oa(t[u]):aa(t[u]),n,a,i,o,s,c,l),u++}}else if(u>p)for(;u<=f;)me(e[u],i,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?oa(t[u]):aa(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){me(r,i,o,!0);continue}let a;if(r.key!=null)a=g.get(r.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&Qi(r,t[_])){a=_;break}a===void 0?me(r,i,o,!0):(C[a-h]=u+1,a>=S?S=a:x=!0,v(r,t[a],n,null,i,o,s,c,l),y++)}let w=x?Fi(C):a;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,a=t[e],f=t[e+1],p=e+1<d?f.el||Ri(f):r;C[u]===0?v(null,a,n,p,i,o,s,c,l):x&&(_<0||u!==w[_]?pe(a,n,p,2):_--)}}},pe=(e,t,n,i,a=null)=>{let{el:o,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){pe(e.component.subTree,t,n,i);return}if(d&128){e.suspense.move(t,n,i);return}if(d&64){c.move(e,t,n,xe);return}if(c===z){r(o,t,n);for(let e=0;e<u.length;e++)pe(u[e],t,n,i);r(e.anchor,t,n);return}if(c===Ui){S(e,t,n);return}if(i!==2&&d&1&&l)if(i===0)l.beforeEnter(o),r(o,t,n),Oi(()=>l.enter(o),a);else{let{leave:i,delayLeave:a,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(o):r(o,t,n)},d=()=>{o._isLeaving&&o[Zn](!0),i(o,()=>{u(),c&&c()})};a?a(o,u,d):d()}else r(o,t,n)},me=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(Ke(),rr(s,null,n,e,!0),qe()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!ar(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&la(_,t,e),u&6)A(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&zn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,xe,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?_e(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&_e(c,t,n),r&&he(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Oi(()=>{_&&la(_,t,e),h&&zn(e,null,t,`unmounted`),v&&(e.el=null)},n)},he=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===z){ge(n,r);return}if(t===Ui){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ge=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},A=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Li(c),Li(l),r&&se(r),i.stop(),a&&(a.flags|=8,me(o,e,t,n)),s&&Oi(s,t),Oi(()=>{e.isUnmounted=!0},t)},_e=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)me(e[o],t,n,r,i)},ve=e=>{if(e.shapeFlag&6)return ve(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Yn];return n?h(n):t},ye=!1,be=(e,t,n)=>{let r;e==null?t._vnode&&(me(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,ye||=(ye=!0,An(r),jn(),!1)},xe={p:v,um:me,m:pe,r:he,mt:ae,mc:T,pc:le,pbc:ne,n:ve,o:e},Se,Ce;return t&&([Se,Ce]=t(xe)),{render:be,hydrate:Se,createApp:Xr(be,Se)}}function ji({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Mi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ni(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Pi(e,t,n=!1){let r=e.children,i=t.children;if(m(r)&&m(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=oa(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Pi(t,a)),a.type===Vi&&(a.patchFlag===-1&&(a=i[e]=oa(a)),a.el=t.el),a.type===Hi&&!a.el&&(a.el=t.el)}}function Fi(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-- >0;)n[a]=o,o=t[o];return n}function Ii(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ii(t)}function Li(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ri(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Ri(t.subTree):null}var zi=e=>e.__isSuspense;function Bi(e,t){t&&t.pendingBranch?m(e)?t.effects.push(...e):t.effects.push(e):kn(e)}var z=Symbol.for(`v-fgt`),Vi=Symbol.for(`v-txt`),Hi=Symbol.for(`v-cmt`),Ui=Symbol.for(`v-stc`),Wi=[],Gi=null;function B(e=!1){Wi.push(Gi=e?null:[])}function Ki(){Wi.pop(),Gi=Wi[Wi.length-1]||null}var qi=1;function Ji(e,t=!1){qi+=e,e<0&&Gi&&t&&(Gi.hasOnce=!0)}function Yi(e){return e.dynamicChildren=qi>0?Gi||a:null,Ki(),qi>0&&Gi&&Gi.push(e),e}function V(e,t,n,r,i,a){return Yi(H(e,t,n,r,i,a,!0))}function Xi(e,t,n,r,i){return Yi(U(e,t,n,r,i,!0))}function Zi(e){return e?e.__v_isVNode===!0:!1}function Qi(e,t){return e.type===t.type&&e.key===t.key}var $i=({key:e})=>e??null,ea=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||F(e)||v(e)?{i:Pn,r:e,k:t,f:!!n}:e);function H(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&$i(t),ref:t&&ea(t),scopeId:Fn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pn};return s?(sa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),qi>0&&!o&&Gi&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Gi.push(c),c}var U=ta;function ta(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Tr)&&(e=Hi),Zi(e)){let r=ra(e,t,!0);return n&&sa(r,n),qi>0&&!a&&Gi&&(r.shapeFlag&6?Gi[Gi.indexOf(e)]=r:Gi.push(r)),r.patchFlag=-2,r}if(ja(e)&&(e=e.__vccOpts),t){t=na(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=A(e)),x(n)&&(qt(n)&&!m(n)&&(n=u({},n)),t.style=fe(n))}let o=y(e)?1:zi(e)?128:Xn(e)?64:x(e)?4:v(e)?2:0;return H(e,t,n,r,i,o,a,!0)}function na(e){return e?qt(e)||fi(e)?u({},e):e:null}function ra(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ca(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&$i(l),ref:t&&t.ref?n&&a?m(a)?a.concat(ea(t)):[a,ea(t)]:ea(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==z?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ra(e.ssContent),ssFallback:e.ssFallback&&ra(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Qn(u,c.clone(u)),u}function W(e=` `,t=0){return U(Vi,null,e,t)}function ia(e,t){let n=U(Ui,null,e);return n.staticCount=t,n}function G(e=``,t=!1){return t?(B(),Xi(Hi,null,e)):U(Hi,null,e)}function aa(e){return e==null||typeof e==`boolean`?U(Hi):m(e)?U(z,null,e.slice()):Zi(e)?oa(e):U(Vi,null,String(e))}function oa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ra(e)}function sa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(m(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),sa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!fi(t)?t._ctx=Pn:r===3&&Pn&&(Pn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else v(t)?(t={default:t,_ctx:Pn},n=32):(t=String(t),r&64?(n=16,t=[W(t)]):n=8);e.children=t,e.shapeFlag|=n}function ca(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=A([t.class,r.class]));else if(e===`style`)t.style=fe([t.style,r.style]);else if(c(e)){let n=t[e],i=r[e];i&&n!==i&&!(m(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!l(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function la(e,t,n,r=null){hn(e,t,7,[n,r])}var ua=Jr(),da=0;function fa(e,t,n){let r=e.type,a=(t?t.appContext:e.appContext)||ua,o={uid:da++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ee(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:vi(r,a),emitsOptions:ti(r,a),emit:null,emitted:null,propsDefaults:i,inheritAttrs:r.inheritAttrs,ctx:i,data:i,props:i,attrs:i,slots:i,refs:i,setupState:i,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=$r.bind(null,o),e.ce&&e.ce(o),o}var pa=null,ma=()=>pa||Pn,ha,ga;{let e=de(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ha=t(`__VUE_INSTANCE_SETTERS__`,e=>pa=e),ga=t(`__VUE_SSR_SETTERS__`,e=>ba=e)}var _a=e=>{let t=pa;return ha(e),e.scope.on(),()=>{e.scope.off(),ha(t)}},va=()=>{pa&&pa.scope.off(),ha(null)};function ya(e){return e.vnode.shapeFlag&4}var ba=!1;function xa(e,t=!1,n=!1){t&&ga(t);let{props:r,children:i}=e.vnode,a=ya(e);pi(e,r,a,t),Ei(e,i,n||t);let o=a?Sa(e,t):void 0;return t&&ga(!1),o}function Sa(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jr);let{setup:r}=n;if(r){Ke();let n=e.setupContext=r.length>1?Oa(e):null,i=_a(e),a=mn(r,e,0,[e.props,n]),o=S(a);if(qe(),i(),(o||e.sp)&&!ar(e)&&er(e),o){if(a.then(va,va),t)return a.then(n=>{Ca(e,n,t)}).catch(t=>{gn(t,e,0)});e.asyncDep=a}else Ca(e,a,t)}else Ea(e,t)}function Ca(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=tn(t)),Ea(e,n)}var wa,Ta;function Ea(e,t,n){let r=e.type;if(!e.render){if(!t&&wa&&!r.render){let t=r.template||Rr(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r;r.render=wa(t,u(u({isCustomElement:n,delimiters:a},i),o))}}e.render=r.render||o,Ta&&Ta(e)}{let t=_a(e);Ke();try{Pr(e)}finally{qe(),t()}}}var Da={get(e,t){return rt(e,`get`,``),e[t]}};function Oa(e){return{attrs:new Proxy(e.attrs,Da),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function ka(e){return e.exposed?e.exposeProxy||=new Proxy(tn(Jt(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kr)return kr[n](e)},has(e,t){return t in e||t in kr}}):e.proxy}function Aa(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function ja(e){return v(e)&&`__vccOpts`in e}var K=(e,t)=>sn(e,t,ba);function Ma(e,t,n){try{Ji(-1);let r=arguments.length;return r===2?x(t)&&!m(t)?Zi(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Zi(n)&&(n=[n]),U(e,t,n))}finally{Ji(1)}}var Na=`3.5.34`,Pa=void 0,Fa=typeof window<`u`&&window.trustedTypes;if(Fa)try{Pa=Fa.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ia=Pa?e=>Pa.createHTML(e):e=>e,La=`http://www.w3.org/2000/svg`,Ra=`http://www.w3.org/1998/Math/MathML`,za=typeof document<`u`?document:null,Ba=za&&za.createElement(`template`),Va={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?za.createElementNS(La,e):t===`mathml`?za.createElementNS(Ra,e):n?za.createElement(e,{is:n}):za.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>za.createTextNode(e),createComment:e=>za.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>za.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Ba.innerHTML=Ia(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ba.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ha=Symbol(`_vtc`);function Ua(e,t,n){let r=e[Ha];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Wa=Symbol(`_vod`),Ga=Symbol(`_vsh`),Ka=Symbol(``),qa=/(?:^|;)\s*display\s*:/;function Ja(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t)if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Xa(r,t,``)}else for(let e in t)n[e]??Xa(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Xa(r,i,``):eo(e,i,!y(t)&&t?t[i]:void 0,o)||Xa(r,i,o)}}else if(i){if(t!==n){let e=r[Ka];e&&(n+=`;`+e),r.cssText=n,a=qa.test(n)}}else t&&e.removeAttribute(`style`);Wa in e&&(e[Wa]=a?r.display:``,e[Ga]&&(r.display=`none`))}var Ya=/\s*!important$/;function Xa(e,t,n){if(m(n))n.forEach(n=>Xa(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=$a(e,t);Ya.test(n)?e.setProperty(ie(r),n.replace(Ya,``),`important`):e[r]=n}}var Za=[`Webkit`,`Moz`,`ms`],Qa={};function $a(e,t){let n=Qa[t];if(n)return n;let r=O(t);if(r!==`filter`&&r in e)return Qa[t]=r;r=ae(r);for(let n=0;n<Za.length;n++){let i=Za[n]+r;if(i in e)return Qa[t]=i}return t}function eo(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var to=`http://www.w3.org/1999/xlink`;function no(e,t,n,r,i,a=ve(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(to,t.slice(6,t.length)):e.setAttributeNS(to,t,n):n==null||a&&!ye(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function ro(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ia(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=ye(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function io(e,t,n,r){e.addEventListener(t,n,r)}function ao(e,t,n,r){e.removeEventListener(t,n,r)}var oo=Symbol(`_vei`);function so(e,t,n,r,i=null){let a=e[oo]||(e[oo]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=lo(t);r?io(e,n,a[t]=mo(r,i),s):o&&(ao(e,n,o,s),a[t]=void 0)}}var co=/(?:Once|Passive|Capture)$/;function lo(e){let t;if(co.test(e)){t={};let n;for(;n=e.match(co);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):ie(e.slice(2)),t]}var uo=0,fo=Promise.resolve(),po=()=>uo||=(fo.then(()=>uo=0),Date.now());function mo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;hn(ho(e,n.value),t,5,[e])};return n.value=e,n.attached=po(),n}function ho(e,t){if(m(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var go=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_o=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Ua(e,r,o):t===`style`?Ja(e,n,r):c(t)?l(t)||so(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):vo(e,t,r,o))?(ro(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&no(e,t,r,o,a,t!==`value`)):e._isVueCE&&(yo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?ro(e,O(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),no(e,t,r,o))};function vo(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&go(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return go(t)&&y(n)?!1:t in e}function yo(e,t){let n=e._def.props;if(!n)return!1;let r=O(t);return Array.isArray(n)?n.some(e=>O(e)===r):Object.keys(n).some(e=>O(e)===r)}var bo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return m(t)?e=>se(t,e):t};function xo(e){e.target.composing=!0}function So(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var Co=Symbol(`_assign`);function wo(e,t,n){return t&&(e=e.trim()),n&&(e=le(e)),e}var To={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Co]=bo(i);let a=r||i.props&&i.props.type===`number`;io(e,t?`change`:`input`,t=>{t.target.composing||e[Co](wo(e.value,n,a))}),(n||a)&&io(e,`change`,()=>{e.value=wo(e.value,n,a)}),t||(io(e,`compositionstart`,xo),io(e,`compositionend`,So),io(e,`change`,So))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[Co]=bo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?le(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Eo={deep:!0,created(e,t,n){e[Co]=bo(n),io(e,`change`,()=>{let t=e._modelValue,n=jo(e),r=e.checked,i=e[Co];if(m(t)){let e=Se(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(g(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Mo(e,r))})},mounted:Do,beforeUpdate(e,t,n){e[Co]=bo(n),Do(e,t,n)}};function Do(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(m(t))i=Se(t,r.props.value)>-1;else if(g(t))i=t.has(r.props.value);else{if(t===n)return;i=xe(t,Mo(e,!0))}e.checked!==i&&(e.checked=i)}var Oo={created(e,{value:t},n){e.checked=xe(t,n.props.value),e[Co]=bo(n),io(e,`change`,()=>{e[Co](jo(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Co]=bo(r),t!==n&&(e.checked=xe(t,r.props.value))}},ko={deep:!0,created(e,{value:t,modifiers:{number:n}},r){let i=g(t);io(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?le(jo(e)):jo(e));e[Co](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Tn(()=>{e._assigning=!1})}),e[Co]=bo(r)},mounted(e,{value:t}){Ao(e,t)},beforeUpdate(e,t,n){e[Co]=bo(n)},updated(e,{value:t}){e._assigning||Ao(e,t)}};function Ao(e,t){let n=e.multiple,r=m(t);if(!(n&&!r&&!g(t))){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=jo(a);if(n)if(r){let e=typeof o;e===`string`||e===`number`?a.selected=t.some(e=>String(e)===String(o)):a.selected=Se(t,o)>-1}else a.selected=t.has(o);else if(xe(jo(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function jo(e){return`_value`in e?e._value:e.value}function Mo(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var No={created(e,t,n){Fo(e,t,n,null,`created`)},mounted(e,t,n){Fo(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Fo(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Fo(e,t,n,r,`updated`)}};function Po(e,t){switch(e){case`SELECT`:return ko;case`TEXTAREA`:return To;default:switch(t){case`checkbox`:return Eo;case`radio`:return Oo;default:return To}}}function Fo(e,t,n,r,i){let a=Po(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}var Io=[`ctrl`,`shift`,`alt`,`meta`],Lo={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Io.some(n=>e[`${n}Key`]&&!t.includes(n))},Ro=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Lo[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},zo={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Bo=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=ie(n.key);if(t.some(e=>e===r||zo[e]===r))return e(n)}))},Vo=u({patchProp:_o},Va),Ho;function Uo(){return Ho||=ki(Vo)}var Wo=((...e)=>{let t=Uo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ko(e);if(!r)return;let i=t._component;!v(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Go(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Go(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ko(e){return y(e)?document.querySelector(e):e}var qo=typeof window<`u`,Jo,Yo=e=>Jo=e,Xo=Symbol();function Zo(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Qo;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Qo||={});var $o=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function es(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function ts(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){os(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function ns(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function rs(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var is=typeof navigator==`object`?navigator:{userAgent:``},as=/Macintosh/.test(is.userAgent)&&/AppleWebKit/.test(is.userAgent)&&!/Safari/.test(is.userAgent),os=qo?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!as?ss:`msSaveOrOpenBlob`in is?cs:ls:()=>{};function ss(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?rs(r):ns(r.href)?ts(e,t,n):(r.target=`_blank`,rs(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){rs(r)},0))}function cs(e,t=`download`,n){if(typeof e==`string`)if(ns(e))ts(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){rs(t)})}else navigator.msSaveOrOpenBlob(es(e,n),t)}function ls(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return ts(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String($o.HTMLElement))||`safari`in $o,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||as)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:us}=Object;function ds(){let e=De(!0),t=e.run(()=>I({})),n=[],r=[],i=Jt({install(e){Yo(i),i._a=e,e.provide(Xo,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var fs=()=>{};function ps(e,t,n,r=fs){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Oe()&&ke(i),i}function ms(e,...t){e.forEach(e=>{e(...t)})}var hs=e=>e(),gs=Symbol(),_s=Symbol();function vs(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];Zo(i)&&Zo(r)&&e.hasOwnProperty(n)&&!F(r)&&!Wt(r)?e[n]=vs(i,r):e[n]=r}return e}var ys=Symbol();function bs(e){return!Zo(e)||!Object.prototype.hasOwnProperty.call(e,ys)}var{assign:xs}=Object;function Ss(e){return!!(F(e)&&e.effect)}function Cs(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),xs(nn(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=Jt(K(()=>{Yo(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=ws(e,l,t,n,r,!0),c}function ws(e,t,n={},r,i,a){let o,s=xs({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Qo.patchFunction,storeId:e,events:void 0}):(vs(r.state.value[e],t),n={type:Qo.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();Tn().then(()=>{m===i&&(l=!0)}),u=!0,ms(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{xs(e,t)})}:fs;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(gs in t)return t[_s]=n,t;let i=function(){Yo(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}ms(f,{args:n,name:i[_s],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw ms(o,e),e}return l instanceof Promise?l.then(e=>(ms(a,e),e)).catch(e=>(ms(o,e),Promise.reject(e))):(ms(a,l),l)};return i[gs]=!0,i[_s]=n,i},y=Bt({_p:r,$id:e,$onAction:ps.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=ps(d,t,n.detached,()=>a()),a=o.run(()=>Gn(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Qo.direct,events:void 0},r)},xs({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||hs)(()=>r._e.run(()=>(o=De()).run(()=>t({action:v}))));for(let t in b){let n=b[t];F(n)&&!Ss(n)||Wt(n)?a||(p&&bs(n)&&(F(n)?n.value=p[t]:vs(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return xs(y,b),xs(P(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{xs(t,e)})}}),r._p.forEach(e=>{xs(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function Ts(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=Hn();return n||=o?Vn(Xo,null):null,n&&Yo(n),n=Jo,n._s.has(e)||(i?ws(e,t,r,n):Cs(e,r,n)),n._s.get(e)}return a.$id=e,a}var Es=typeof document<`u`;function Ds(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Os(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Ds(e.default)}var q=Object.assign;function ks(e,t){let n={};for(let r in t){let i=t[r];n[r]=js(i)?i.map(e):e(i)}return n}var As=()=>{},js=Array.isArray;function Ms(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Ns=/#/g,Ps=/&/g,Fs=/\//g,Is=/=/g,Ls=/\?/g,Rs=/\+/g,zs=/%5B/g,Bs=/%5D/g,Vs=/%5E/g,Hs=/%60/g,Us=/%7B/g,Ws=/%7C/g,Gs=/%7D/g,Ks=/%20/g;function qs(e){return e==null?``:encodeURI(``+e).replace(Ws,`|`).replace(zs,`[`).replace(Bs,`]`)}function Js(e){return qs(e).replace(Us,`{`).replace(Gs,`}`).replace(Vs,`^`)}function Ys(e){return qs(e).replace(Rs,`%2B`).replace(Ks,`+`).replace(Ns,`%23`).replace(Ps,`%26`).replace(Hs,"`").replace(Us,`{`).replace(Gs,`}`).replace(Vs,`^`)}function Xs(e){return Ys(e).replace(Is,`%3D`)}function Zs(e){return qs(e).replace(Ns,`%23`).replace(Ls,`%3F`)}function Qs(e){return Zs(e).replace(Fs,`%2F`)}function $s(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ec=/\/$/,tc=e=>e.replace(ec,``);function nc(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=uc(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:$s(o)}}function rc(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function ic(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ac(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&oc(t.matched[r],n.matched[i])&&sc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function oc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function sc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!cc(e[n],t[n]))return!1;return!0}function cc(e,t){return js(e)?lc(e,t):js(t)?lc(t,e):e?.valueOf()===t?.valueOf()}function lc(e,t){return js(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function uc(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var dc={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},fc=function(e){return e.pop=`pop`,e.push=`push`,e}({}),pc=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function mc(e){if(!e)if(Es){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),tc(e)}var hc=/^[^#]+#/;function gc(e,t){return e.replace(hc,`#`)+t}function _c(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var vc=()=>({left:window.scrollX,top:window.scrollY});function yc(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=_c(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function bc(e,t){return(history.state?history.state.position-t:-1)+e}var xc=new Map;function Sc(e,t){xc.set(e,t)}function Cc(e){let t=xc.get(e);return xc.delete(e),t}function wc(e){return typeof e==`string`||e&&typeof e==`object`}function Tc(e){return typeof e==`string`||typeof e==`symbol`}var J=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Ec=Symbol(``);J.MATCHER_NOT_FOUND,J.NAVIGATION_GUARD_REDIRECT,J.NAVIGATION_ABORTED,J.NAVIGATION_CANCELLED,J.NAVIGATION_DUPLICATED;function Dc(e,t){return q(Error(),{type:e,[Ec]:!0},t)}function Oc(e,t){return e instanceof Error&&Ec in e&&(t==null||!!(e.type&t))}function kc(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Rs,` `),i=r.indexOf(`=`),a=$s(i<0?r:r.slice(0,i)),o=i<0?null:$s(r.slice(i+1));if(a in t){let e=t[a];js(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ac(e){let t=``;for(let n in e){let r=e[n];if(n=Xs(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(js(r)?r.map(e=>e&&Ys(e)):[r&&Ys(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function jc(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=js(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}var Mc=Symbol(``),Nc=Symbol(``),Pc=Symbol(``),Fc=Symbol(``),Ic=Symbol(``);function Lc(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Rc(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Dc(J.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):wc(e)?c(Dc(J.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function zc(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Ds(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Rc(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Os(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Rc(c,n,r,o,e,i)()}))}}return a}function Bc(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>oc(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>oc(e,s))||i.push(s))}return[n,r,i]}var Vc=()=>location.protocol+`//`+location.host;function Hc(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),ic(n,``)}return ic(n,e)+r+i}function Uc(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Hc(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:fc.pop,direction:u?u>0?pc.forward:pc.back:pc.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(q({},e.state,{scroll:vc()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Wc(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?vc():null}}function Gc(e){let{history:t,location:n}=window,r={value:Hc(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Vc()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,q({},t.state,Wc(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=q({},i.value,t.state,{forward:e,scroll:vc()});a(o.current,o,!0),a(e,q({},Wc(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Kc(e){e=mc(e);let t=Gc(e),n=Uc(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=q({location:``,base:e,go:r,createHref:gc.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var qc=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Y=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Y||{}),Jc={type:qc.Static,value:``},Yc=/[a-zA-Z0-9_]/;function Xc(e){if(!e)return[[]];if(e===`/`)return[[Jc]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Y.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Y.Static?a.push({type:qc.Static,value:l}):n===Y.Param||n===Y.ParamRegExp||n===Y.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:qc.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Y.ParamRegExp){r=n,n=Y.EscapeNext;continue}switch(n){case Y.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Y.Param):f();break;case Y.EscapeNext:f(),n=r;break;case Y.Param:c===`(`?n=Y.ParamRegExp:Yc.test(c)?f():(d(),n=Y.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Y.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Y.ParamRegExpEnd:u+=c;break;case Y.ParamRegExpEnd:d(),n=Y.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Y.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Zc=`[^/]+?`,Qc={sensitive:!1,strict:!1,start:!0,end:!0},$c=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($c||{}),el=/[.+*?^${}()[\]/\\]/g;function tl(e,t){let n=q({},Qc,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$c.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$c.Segment+(n.sensitive?$c.BonusCaseSensitive:0);if(o.type===qc.Static)r||(i+=`/`),i+=o.value.replace(el,`\\$&`),s+=$c.Static;else if(o.type===qc.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Zc;if(u!==Zc){s+=$c.BonusCustomRegExp;try{`${u}`}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$c.Dynamic,c&&(s+=$c.BonusOptional),n&&(s+=$c.BonusRepeatable),u===`.*`&&(s+=$c.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$c.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===qc.Static)n+=e.value;else if(e.type===qc.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(js(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=js(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function nl(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$c.Static+$c.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$c.Static+$c.Segment?1:-1:0}function rl(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=nl(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(il(r))return 1;if(il(i))return-1}return i.length-r.length}function il(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var al={strict:!1,end:!0,sensitive:!1};function ol(e,t,n){let r=q(tl(Xc(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function sl(e,t){let n=[],r=new Map;t=Ms(al,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=ll(e);s.aliasOf=r&&r.record;let l=Ms(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(ll(q({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=ol(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!dl(d)&&o(e.name)),hl(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:As}function o(e){if(Tc(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=pl(e,n);n.splice(t,0,e),e.record.name&&!dl(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Dc(J.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=q(cl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&cl(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Dc(J.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=q({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:fl(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function cl(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function ll(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:ul(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function ul(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function dl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fl(e){return e.reduce((e,t)=>q(e,t.meta),{})}function pl(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;rl(e,t[i])<0?r=i:n=i+1}let i=ml(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function ml(e){let t=e;for(;t=t.parent;)if(hl(t)&&rl(e,t)===0)return t}function hl({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function gl(e){let t=Vn(Pc),n=Vn(Fc),r=K(()=>{let n=L(e.to);return t.resolve(n)}),i=K(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(oc.bind(null,i));if(o>-1)return o;let s=xl(e[t-2]);return t>1&&xl(i)===s&&a[a.length-1].path!==s?a.findIndex(oc.bind(null,e[t-2])):o}),a=K(()=>i.value>-1&&bl(n.params,r.value.params)),o=K(()=>i.value>-1&&i.value===n.matched.length-1&&sc(n.params,r.value.params));function s(n={}){if(yl(n)){let n=t[L(e.replace)?`replace`:`push`](L(e.to)).catch(As);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:K(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function _l(e){return e.length===1?e[0]:e}var vl=$n({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:gl,setup(e,{slots:t}){let n=Bt(gl(e)),{options:r}=Vn(Pc),i=K(()=>({[Sl(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Sl(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&_l(t.default(n));return e.custom?r:Ma(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function yl(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bl(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!js(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function xl(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Sl=(e,t,n)=>e??t??n,Cl=$n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=Vn(Ic),i=K(()=>e.route||r.value),a=Vn(Nc,0),o=K(()=>{let e=L(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=K(()=>i.value.matched[o.value]);Bn(Nc,K(()=>o.value+1)),Bn(Mc,s),Bn(Ic,i);let c=I();return Gn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!oc(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return wl(n.default,{Component:l,route:r});let u=o.props[a],d=Ma(l,q({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return wl(n.default,{Component:d,route:r})||d}}});function wl(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Tl=Cl;function El(e){let t=sl(e.routes,e),n=e.parseQuery||kc,r=e.stringifyQuery||Ac,i=e.history,a=Lc(),o=Lc(),s=Lc(),c=Zt(dc),l=dc;Es&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=ks.bind(null,e=>``+e),d=ks.bind(null,Qs),f=ks.bind(null,$s);function p(e,n){let r,i;return Tc(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=q({},a||c.value),typeof e==`string`){let r=nc(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return q(r,o,{params:f(o.params),hash:$s(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=q({},e,{path:nc(n,e.path,a.path).path});else{let t=q({},e.params);for(let e in t)t[e]??delete t[e];o=q({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=rc(r,q({},e,{hash:Js(l),path:s.path})),m=i.createHref(p);return q({fullPath:p,hash:l,query:r===Ac?jc(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?nc(n,e,c.value.path):q({},e)}function y(e,t){if(l!==e)return Dc(J.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return C(e)}function x(e){return b(q(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),q({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C(q(v(u),{state:typeof u==`object`?q({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&ac(r,i,n)&&(f=Dc(J.NAVIGATION_DUPLICATED,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):te(d,i)).catch(e=>Oc(e)?Oc(e,J.NAVIGATION_GUARD_REDIRECT)?e:oe(e):ae(e,d,i)).then(e=>{if(e){if(Oc(e,J.NAVIGATION_GUARD_REDIRECT))return C(q({replace:s},v(e.to),{state:typeof e.to==`object`?q({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return T(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function ee(e){let t=ue.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function te(e,t){let n,[r,i,s]=Bc(e,t);n=zc(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Rc(r,e,t))});let c=w.bind(null,e,t);return n.push(c),fe(n).then(()=>{n=[];for(let r of a.list())n.push(Rc(r,e,t));return n.push(c),fe(n)}).then(()=>{n=zc(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Rc(r,e,t))});return n.push(c),fe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(js(r.beforeEnter))for(let i of r.beforeEnter)n.push(Rc(i,e,t));else n.push(Rc(r.beforeEnter,e,t));return n.push(c),fe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=zc(s,`beforeRouteEnter`,e,t,ee),n.push(c),fe(n))).then(()=>{n=[];for(let r of o.list())n.push(Rc(r,e,t));return n.push(c),fe(n)}).catch(e=>Oc(e,J.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function T(e,t,n){s.list().forEach(r=>ee(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===dc,l=Es?history.state:{};n&&(r||s?i.replace(e.fullPath,q({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let D;function ne(){D||=i.listen((e,t,n)=>{if(!de.listening)return;let r=_(e),a=S(r,de.currentRoute.value);if(a){C(q(a,{replace:!0,force:!0}),r).catch(As);return}l=r;let o=c.value;Es&&Sc(bc(o.fullPath,n.delta),vc()),te(r,o).catch(e=>Oc(e,J.NAVIGATION_ABORTED|J.NAVIGATION_CANCELLED)?e:Oc(e,J.NAVIGATION_GUARD_REDIRECT)?(C(q(v(e.to),{force:!0}),r).then(e=>{Oc(e,J.NAVIGATION_ABORTED|J.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===fc.pop&&i.go(-1,!1)}).catch(As),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!Oc(e,J.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===fc.pop&&Oc(e,J.NAVIGATION_ABORTED|J.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),T(r,o,e)}).catch(As)})}let O=Lc(),re=Lc(),ie;function ae(e,t,n){oe(e);let r=re.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function k(){return ie&&c.value!==dc?Promise.resolve():new Promise((e,t)=>{O.add([e,t])})}function oe(e){return ie||(ie=!e,ne(),O.list().forEach(([t,n])=>e?n(e):t()),O.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!Es||!a)return Promise.resolve();let o=!r&&Cc(bc(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return Tn().then(()=>a(t,n,o)).then(e=>e&&yc(e)).catch(e=>ae(e,t,n))}let ce=e=>i.go(e),le,ue=new Set,de={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:re.add,isReady:k,install(e){e.component(`RouterLink`,vl),e.component(`RouterView`,Tl),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>L(c)}),Es&&!le&&c.value===dc&&(le=!0,b(i.location).catch(e=>{}));let t={};for(let e in dc)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(Pc,de),e.provide(Fc,Vt(t)),e.provide(Ic,c);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(l=dc,D&&D(),D=null,c.value=dc,le=!1,ie=!1),n()}}};function fe(e){return e.reduce((e,t)=>e.then(()=>ee(t)),Promise.resolve())}return de}function Dl(){return Vn(Pc)}function Ol(e){return Vn(Fc)}function kl(e,t){return function(){return e.apply(t,arguments)}}var{toString:Al}=Object.prototype,{getPrototypeOf:jl}=Object,{iterator:Ml,toStringTag:Nl}=Symbol,Pl=(e=>t=>{let n=Al.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fl=e=>(e=e.toLowerCase(),t=>Pl(t)===e),Il=e=>t=>typeof t===e,{isArray:Ll}=Array,Rl=Il(`undefined`);function zl(e){return e!==null&&!Rl(e)&&e.constructor!==null&&!Rl(e.constructor)&&Ul(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Bl=Fl(`ArrayBuffer`);function Vl(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bl(e.buffer),t}var Hl=Il(`string`),Ul=Il(`function`),Wl=Il(`number`),Gl=e=>typeof e==`object`&&!!e,Kl=e=>e===!0||e===!1,ql=e=>{if(Pl(e)!==`object`)return!1;let t=jl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Nl in e)&&!(Ml in e)},Jl=e=>{if(!Gl(e)||zl(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Yl=Fl(`Date`),Xl=Fl(`File`),Zl=e=>!!(e&&e.uri!==void 0),Ql=e=>e&&e.getParts!==void 0,$l=Fl(`Blob`),eu=Fl(`FileList`),tu=e=>Gl(e)&&Ul(e.pipe);function nu(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var ru=nu(),iu=ru.FormData===void 0?void 0:ru.FormData,au=e=>{if(!e)return!1;if(iu&&e instanceof iu)return!0;let t=jl(e);if(!t||t===Object.prototype||!Ul(e.append))return!1;let n=Pl(e);return n===`formdata`||n===`object`&&Ul(e.toString)&&e.toString()===`[object FormData]`},ou=Fl(`URLSearchParams`),[su,cu,lu,uu]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(Fl),du=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function fu(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),Ll(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(zl(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function pu(e,t){if(zl(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var mu=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,hu=e=>!Rl(e)&&e!==mu;function gu(...e){let{caseless:t,skipUndefined:n}=hu(this)&&this||{},r={},i=(e,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=t&&pu(r,i)||i,o=Ou(r,a)?r[a]:void 0;ql(o)&&ql(e)?r[a]=gu(o,e):ql(e)?r[a]=gu({},e):Ll(e)?r[a]=e.slice():(!n||!Rl(e))&&(r[a]=e)};for(let t=0,n=e.length;t<n;t++)e[t]&&fu(e[t],i);return r}var _u=(e,t,n,{allOwnKeys:r}={})=>(fu(t,(t,r)=>{n&&Ul(t)?Object.defineProperty(e,r,{__proto__:null,value:kl(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),vu=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yu=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},bu=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&jl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xu=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},Su=e=>{if(!e)return null;if(Ll(e))return e;let t=e.length;if(!Wl(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},Cu=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&jl(Uint8Array)),wu=(e,t)=>{let n=(e&&e[Ml]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},Tu=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Eu=Fl(`HTMLFormElement`),Du=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),Ou=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ku=Fl(`RegExp`),Au=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};fu(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},ju=e=>{Au(e,(t,n)=>{if(Ul(e)&&[`arguments`,`caller`,`callee`].includes(n))return!1;let r=e[n];if(Ul(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},Mu=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Ll(e)?r(e):r(String(e).split(t)),n},Nu=()=>{},Pu=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Fu(e){return!!(e&&Ul(e.append)&&e[Nl]===`FormData`&&e[Ml])}var Iu=e=>{let t=new WeakSet,n=e=>{if(Gl(e)){if(t.has(e))return;if(zl(e))return e;if(!(`toJSON`in e)){t.add(e);let r=Ll(e)?[]:{};return fu(e,(e,t)=>{let i=n(e);!Rl(i)&&(r[t]=i)}),t.delete(e),r}}return e};return n(e)},Lu=Fl(`AsyncFunction`),Ru=e=>e&&(Gl(e)||Ul(e))&&Ul(e.then)&&Ul(e.catch),zu=((e,t)=>e?setImmediate:t?((e,t)=>(mu.addEventListener(`message`,({source:n,data:r})=>{n===mu&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),mu.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,Ul(mu.postMessage)),X={isArray:Ll,isArrayBuffer:Bl,isBuffer:zl,isFormData:au,isArrayBufferView:Vl,isString:Hl,isNumber:Wl,isBoolean:Kl,isObject:Gl,isPlainObject:ql,isEmptyObject:Jl,isReadableStream:su,isRequest:cu,isResponse:lu,isHeaders:uu,isUndefined:Rl,isDate:Yl,isFile:Xl,isReactNativeBlob:Zl,isReactNative:Ql,isBlob:$l,isRegExp:ku,isFunction:Ul,isStream:tu,isURLSearchParams:ou,isTypedArray:Cu,isFileList:eu,forEach:fu,merge:gu,extend:_u,trim:du,stripBOM:vu,inherits:yu,toFlatObject:bu,kindOf:Pl,kindOfTest:Fl,endsWith:xu,toArray:Su,forEachEntry:wu,matchAll:Tu,isHTMLForm:Eu,hasOwnProperty:Ou,hasOwnProp:Ou,reduceDescriptors:Au,freezeMethods:ju,toObjectSet:Mu,toCamelCase:Du,noop:Nu,toFiniteNumber:Pu,findKey:pu,global:mu,isContextDefined:hu,isSpecCompliantForm:Fu,toJSONObject:Iu,isAsyncFn:Lu,isThenable:Ru,setImmediate:zu,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(mu):typeof process<`u`&&process.nextTick||zu,isIterable:e=>e!=null&&Ul(e[Ml])},Bu=X.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Vu=e=>{let t={},n,r,i;return e&&e.split(`
|
||
`).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Bu[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t};function Hu(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(t!==9&&t!==32)break;--n}return t===0&&n===e.length?e:e.slice(t,n)}var Uu=RegExp(`[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+`,`g`),Wu=RegExp(`[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+`,`g`);function Gu(e,t){return X.isArray(e)?e.map(e=>Gu(e,t)):Hu(String(e).replace(t,``))}var Ku=e=>Gu(e,Uu),qu=e=>Gu(e,Wu);function Ju(e){let t=Object.create(null);return X.forEach(e.toJSON(),(e,n)=>{t[n]=qu(e)}),t}var Yu=Symbol(`internals`);function Xu(e){return e&&String(e).trim().toLowerCase()}function Zu(e){return e===!1||e==null?e:X.isArray(e)?e.map(Zu):Ku(String(e))}function Qu(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var $u=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ed(e,t,n,r,i){if(X.isFunction(r))return r.call(this,t,n);if(i&&(t=n),X.isString(t)){if(X.isString(r))return t.indexOf(r)!==-1;if(X.isRegExp(r))return r.test(t)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function nd(e,t){let n=X.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var rd=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Xu(t);if(!i)throw Error(`header name must be a non-empty string`);let a=X.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Zu(e))}let a=(e,t)=>X.forEach(e,(e,n)=>i(e,n,t));if(X.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(X.isString(e)&&(e=e.trim())&&!$u(e))a(Vu(e),t);else if(X.isObject(e)&&X.isIterable(e)){let n={},r,i;for(let t of e){if(!X.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?X.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Xu(e),e){let n=X.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Qu(e);if(X.isFunction(t))return t.call(this,e,n);if(X.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Xu(e),e){let n=X.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||ed(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Xu(e),e){let i=X.findKey(n,e);i&&(!t||ed(n,n[i],i,t))&&(delete n[i],r=!0)}}return X.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||ed(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return X.forEach(this,(r,i)=>{let a=X.findKey(n,i);if(a){t[a]=Zu(r),delete t[i];return}let o=e?td(i):String(i).trim();o!==i&&delete t[i],t[o]=Zu(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return X.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&X.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
|
||
`)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[Yu]=this[Yu]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Xu(e);t[r]||(nd(n,e),t[r]=!0)}return X.isArray(e)?e.forEach(r):r(e),this}};rd.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),X.reduceDescriptors(rd.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),X.freezeMethods(rd);var id=`[REDACTED ****]`;function ad(e){if(X.hasOwnProp(e,`toJSON`))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(X.hasOwnProp(t,`toJSON`))return!0;t=Object.getPrototypeOf(t)}return!1}function od(e,t){let n=new Set(t.map(e=>String(e).toLowerCase())),r=[],i=e=>{if(typeof e!=`object`||!e||X.isBuffer(e))return e;if(r.indexOf(e)!==-1)return;e instanceof rd&&(e=e.toJSON()),r.push(e);let t;if(X.isArray(e))t=[],e.forEach((e,n)=>{let r=i(e);X.isUndefined(r)||(t[n]=r)});else{if(!X.isPlainObject(e)&&ad(e))return r.pop(),e;t=Object.create(null);for(let[r,a]of Object.entries(e)){let e=n.has(r.toLowerCase())?id:i(a);X.isUndefined(e)||(t[r]=e)}}return r.pop(),t};return i(e)}var Z=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){let e=this.config,t=e&&X.hasOwnProp(e,`redact`)?e.redact:void 0,n=X.isArray(t)&&t.length>0?od(e,t):X.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};Z.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,Z.ERR_BAD_OPTION=`ERR_BAD_OPTION`,Z.ECONNABORTED=`ECONNABORTED`,Z.ETIMEDOUT=`ETIMEDOUT`,Z.ECONNREFUSED=`ECONNREFUSED`,Z.ERR_NETWORK=`ERR_NETWORK`,Z.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,Z.ERR_DEPRECATED=`ERR_DEPRECATED`,Z.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,Z.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,Z.ERR_CANCELED=`ERR_CANCELED`,Z.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,Z.ERR_INVALID_URL=`ERR_INVALID_URL`,Z.ERR_FORM_DATA_DEPTH_EXCEEDED=`ERR_FORM_DATA_DEPTH_EXCEEDED`;function sd(e){return X.isPlainObject(e)||X.isArray(e)}function cd(e){return X.endsWith(e,`[]`)?e.slice(0,-2):e}function ld(e,t,n){return e?e.concat(t).map(function(e,t){return e=cd(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function ud(e){return X.isArray(e)&&!e.some(sd)}var dd=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function fd(e,t,n){if(!X.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=X.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||d,a=n.dots,o=n.indexes,s=n.Blob||typeof Blob<`u`&&Blob,c=n.maxDepth===void 0?100:n.maxDepth,l=s&&X.isSpecCompliantForm(t);if(!X.isFunction(i))throw TypeError(`visitor must be a function`);function u(e){if(e===null)return``;if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!l&&X.isBlob(e))throw new Z(`Blob is not supported. Use a Buffer instead.`);return X.isArrayBuffer(e)||X.isTypedArray(e)?l&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function d(e,n,i){let s=e;if(X.isReactNative(t)&&X.isReactNativeBlob(e))return t.append(ld(i,n,a),u(e)),!1;if(e&&!i&&typeof e==`object`){if(X.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(X.isArray(e)&&ud(e)||(X.isFileList(e)||X.endsWith(n,`[]`))&&(s=X.toArray(e)))return n=cd(n),s.forEach(function(e,r){!(X.isUndefined(e)||e===null)&&t.append(o===!0?ld([n],r,a):o===null?n:n+`[]`,u(e))}),!1}return sd(e)?!0:(t.append(ld(i,n,a),u(e)),!1)}let f=[],p=Object.assign(dd,{defaultVisitor:d,convertValue:u,isVisitable:sd});function m(e,n,r=0){if(!X.isUndefined(e)){if(r>c)throw new Z(`Object is too deeply nested (`+r+` levels). Max depth: `+c,Z.ERR_FORM_DATA_DEPTH_EXCEEDED);if(f.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));f.push(e),X.forEach(e,function(e,a){(!(X.isUndefined(e)||e===null)&&i.call(t,e,X.isString(a)?a.trim():a,n,p))===!0&&m(e,n?n.concat(a):[a],r+1)}),f.pop()}}if(!X.isObject(e))throw TypeError(`data must be an object`);return m(e),t}function pd(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function md(e,t){this._pairs=[],e&&fd(e,this,t)}var hd=md.prototype;hd.append=function(e,t){this._pairs.push([e,t])},hd.toString=function(e){let t=e?function(t){return e.call(this,t,pd)}:pd;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function gd(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function _d(e,t,n){if(!t)return e;let r=n&&n.encode||gd,i=X.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):X.isURLSearchParams(t)?t.toString():new md(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var vd=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){X.forEach(this.handlers,function(t){t!==null&&e(t)})}},yd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},bd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:md,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},xd=n({hasBrowserEnv:()=>Sd,hasStandardBrowserEnv:()=>wd,hasStandardBrowserWebWorkerEnv:()=>Td,navigator:()=>Cd,origin:()=>Ed}),Sd=typeof window<`u`&&typeof document<`u`,Cd=typeof navigator==`object`&&navigator||void 0,wd=Sd&&(!Cd||[`ReactNative`,`NativeScript`,`NS`].indexOf(Cd.product)<0),Td=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Ed=Sd&&window.location.href||`http://localhost`,Dd={...xd,...bd};function Od(e,t){return fd(e,new Dd.classes.URLSearchParams,{visitor:function(e,t,n,r){return Dd.isNode&&X.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function kd(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Ad(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function jd(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&X.isArray(r)?r.length:a,s?(X.hasOwnProp(r,a)?r[a]=X.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n,!o):((!X.hasOwnProp(r,a)||!X.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&X.isArray(r[a])&&(r[a]=Ad(r[a])),!o)}if(X.isFormData(e)&&X.isFunction(e.entries)){let n={};return X.forEachEntry(e,(e,r)=>{t(kd(e),r,n,0)}),n}return null}var Md=(e,t)=>e!=null&&X.hasOwnProp(e,t)?e[t]:void 0;function Nd(e,t,n){if(X.isString(e))try{return(t||JSON.parse)(e),X.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Pd={transitional:yd,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=X.isObject(e);if(i&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return r?JSON.stringify(jd(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){let t=Md(this,`formSerializer`);if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return Od(e,t).toString();if((a=X.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let n=Md(this,`env`),r=n&&n.FormData;return fd(a?{"files[]":e}:e,r&&new r,t)}}return i||r?(t.setContentType(`application/json`,!1),Nd(e)):e}],transformResponse:[function(e){let t=Md(this,`transitional`)||Pd.transitional,n=t&&t.forcedJSONParsing,r=Md(this,`responseType`),i=r===`json`;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(n&&!r||i)){let n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,Md(this,`parseReviver`))}catch(e){if(n)throw e.name===`SyntaxError`?Z.from(e,Z.ERR_BAD_RESPONSE,this,null,Md(this,`response`)):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Dd.classes.FormData,Blob:Dd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`],e=>{Pd.headers[e]={}});function Fd(e,t){let n=this||Pd,r=t||n,i=rd.from(r.headers),a=r.data;return X.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Id(e){return!!(e&&e.__CANCEL__)}var Ld=class extends Z{constructor(e,t,n){super(e??`canceled`,Z.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function Rd(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Z(`Request failed with status code `+n.status,n.status>=400&&n.status<500?Z.ERR_BAD_REQUEST:Z.ERR_BAD_RESPONSE,n.config,n.request,n))}function zd(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||``}function Bd(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function Vd(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var Hd=(e,t,n=3)=>{let r=0,i=Bd(50,250);return Vd(n=>{if(!n||typeof n.loaded!=`number`)return;let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=o==null?a:Math.min(a,o),c=Math.max(0,s-r),l=i(c);r=Math.max(r,s),e({loaded:s,total:o,progress:o?s/o:void 0,bytes:c,rate:l||void 0,estimated:l&&o?(o-s)/l:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},Ud=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wd=e=>(...t)=>X.asap(()=>e(...t)),Gd=Dd.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Dd.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Dd.origin),Dd.navigator&&/(msie|trident)/i.test(Dd.navigator.userAgent)):()=>!0,Kd=Dd.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];X.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),X.isString(r)&&s.push(`path=${r}`),X.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),X.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.split(`;`);for(let n=0;n<t.length;n++){let r=t[n].replace(/^\s+/,``),i=r.indexOf(`=`);if(i!==-1&&r.slice(0,i)===e)return decodeURIComponent(r.slice(i+1))}return null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function qd(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function Jd(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function Yd(e,t,n){let r=!qd(t);return e&&(r||n===!1)?Jd(e,t):t}var Xd=e=>e instanceof rd?{...e}:e;function Zd(e,t){t||={};let n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(e,t,n,r){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:r},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function i(e,t,n,i){if(!X.isUndefined(t))return r(e,t,n,i);if(!X.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!X.isUndefined(t))return r(void 0,t)}function o(e,t){if(!X.isUndefined(t))return r(void 0,t);if(!X.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(X.hasOwnProp(t,a))return r(n,i);if(X.hasOwnProp(e,a))return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Xd(e),Xd(t),n,!0)};return X.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=X.hasOwnProp(c,r)?c[r]:i,o=a(X.hasOwnProp(e,r)?e[r]:void 0,X.hasOwnProp(t,r)?t[r]:void 0,r);X.isUndefined(o)&&a!==s||(n[r]=o)}),n}var Qd=[`content-type`,`content-length`];function $d(e,t,n){if(n!==`content-only`){e.set(t);return}Object.entries(t).forEach(([t,n])=>{Qd.includes(t.toLowerCase())&&e.set(t,n)})}var ef=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))),tf=e=>{let t=Zd({},e),n=e=>X.hasOwnProp(t,e)?t[e]:void 0,r=n(`data`),i=n(`withXSRFToken`),a=n(`xsrfHeaderName`),o=n(`xsrfCookieName`),s=n(`headers`),c=n(`auth`),l=n(`baseURL`),u=n(`allowAbsoluteUrls`),d=n(`url`);if(t.headers=s=rd.from(s),t.url=_d(Yd(l,d,u),e.params,e.paramsSerializer),c&&s.set(`Authorization`,`Basic `+btoa((c.username||``)+`:`+(c.password?ef(c.password):``))),X.isFormData(r)&&(Dd.hasStandardBrowserEnv||Dd.hasStandardBrowserWebWorkerEnv?s.setContentType(void 0):X.isFunction(r.getHeaders)&&$d(s,r.getHeaders(),n(`formDataHeaderPolicy`))),Dd.hasStandardBrowserEnv&&(X.isFunction(i)&&(i=i(t)),i===!0||i==null&&Gd(t.url))){let e=a&&o&&Kd.read(o);e&&s.set(a,e)}return t},nf=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=tf(e),i=r.data,a=rd.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function m(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let h=new XMLHttpRequest;h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout;function g(){if(!h)return;let r=rd.from(`getAllResponseHeaders`in h&&h.getAllResponseHeaders());Rd(function(e){t(e),m()},function(e){n(e),m()},{data:!o||o===`text`||o===`json`?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}`onloadend`in h?h.onloadend=g:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.startsWith(`file:`))||setTimeout(g)},h.onabort=function(){h&&=(n(new Z(`Request aborted`,Z.ECONNABORTED,e,h)),m(),null)},h.onerror=function(t){let r=new Z(t&&t.message?t.message:`Network Error`,Z.ERR_NETWORK,e,h);r.event=t||null,n(r),m(),h=null},h.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||yd;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Z(t,i.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,h)),m(),h=null},i===void 0&&a.setContentType(null),`setRequestHeader`in h&&X.forEach(Ju(a),function(e,t){h.setRequestHeader(t,e)}),X.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),o&&o!==`json`&&(h.responseType=r.responseType),c&&([d,p]=Hd(c,!0),h.addEventListener(`progress`,d)),s&&h.upload&&([u,f]=Hd(s),h.upload.addEventListener(`progress`,u),h.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{h&&=(n(!t||t.type?new Ld(null,e,h):t),h.abort(),m(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let _=zd(r.url);if(_&&!Dd.protocols.includes(_)){n(new Z(`Unsupported protocol `+_+`:`,Z.ERR_BAD_REQUEST,e));return}h.send(i||null)})},rf=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,r=!1,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof Z?t:new Ld(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new Z(`timeout of ${t}ms exceeded`,Z.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>X.asap(o),s},af=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},of=async function*(e,t){for await(let n of sf(e))yield*af(n,t)},sf=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},cf=(e,t,n,r)=>{let i=of(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})};function lf(e){if(!e||typeof e!=`string`||!e.startsWith(`data:`))return 0;let t=e.indexOf(`,`);if(t<0)return 0;let n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length,t=r.length;for(let n=0;n<t;n++)if(r.charCodeAt(n)===37&&n+2<t){let t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1,a=e=>e>=2&&r.charCodeAt(e-2)===37&&r.charCodeAt(e-1)===51&&(r.charCodeAt(e)===68||r.charCodeAt(e)===100);i>=0&&(r.charCodeAt(i)===61?(n++,i--):a(i)&&(n++,i-=3)),n===1&&i>=0&&(r.charCodeAt(i)===61||a(i))&&n++;let o=Math.floor(e/4)*3-(n||0);return o>0?o:0}if(typeof Buffer<`u`&&typeof Buffer.byteLength==`function`)return Buffer.byteLength(r,`utf8`);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i}var uf=`1.16.1`,df=64*1024,{isFunction:ff}=X,pf=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mf=e=>{let t=X.global!==void 0&&X.global!==null?X.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=X.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);let{fetch:i,Request:a,Response:o}=e,s=i?ff(i):typeof fetch==`function`,c=ff(a),l=ff(o);if(!s)return!1;let u=s&&ff(n),d=s&&(typeof r==`function`?(e=>t=>e.encode(t))(new r):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&pf(()=>{let e=!1,t=new a(Dd.origin,{body:new n,method:`POST`,get duplex(){return e=!0,`half`}}),r=t.headers.has(`Content-Type`);return t.body!=null&&t.body.cancel(),e&&!r}),p=l&&u&&pf(()=>X.isReadableStream(new o(``).body)),m={stream:p&&(e=>e.body)};s&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!m[e]&&(m[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Z(`Response type '${e}' is not supported`,Z.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(e==null)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e))return(await new a(Dd.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(X.isArrayBufferView(e)||X.isArrayBuffer(e))return e.byteLength;if(X.isURLSearchParams(e)&&(e+=``),X.isString(e))return(await d(e)).byteLength},g=async(e,t)=>X.toFiniteNumber(e.getContentLength())??h(t);return async e=>{let{url:t,method:n,data:s,signal:l,cancelToken:u,timeout:d,onDownloadProgress:h,onUploadProgress:_,responseType:v,headers:y,withCredentials:b=`same-origin`,fetchOptions:x,maxContentLength:S,maxBodyLength:C}=tf(e),w=X.isNumber(S)&&S>-1,ee=X.isNumber(C)&&C>-1,te=i||fetch;v=v?(v+``).toLowerCase():`text`;let T=rf([l,u&&u.toAbortSignal()],d),E=null,D=T&&T.unsubscribe&&(()=>{T.unsubscribe()}),ne;try{if(w&&typeof t==`string`&&t.startsWith(`data:`)&&lf(t)>S)throw new Z(`maxContentLength size of `+S+` exceeded`,Z.ERR_BAD_RESPONSE,e,E);if(ee&&n!==`get`&&n!==`head`){let t=await g(y,s);if(typeof t==`number`&&isFinite(t)&&t>C)throw new Z(`Request body larger than maxBodyLength limit`,Z.ERR_BAD_REQUEST,e,E)}if(_&&f&&n!==`get`&&n!==`head`&&(ne=await g(y,s))!==0){let e=new a(t,{method:`POST`,body:s,duplex:`half`}),n;if(X.isFormData(s)&&(n=e.headers.get(`content-type`))&&y.setContentType(n),e.body){let[t,n]=Ud(ne,Hd(Wd(_)));s=cf(e.body,df,t,n)}}X.isString(b)||(b=b?`include`:`omit`);let i=c&&`credentials`in a.prototype;if(X.isFormData(s)){let e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete(`content-type`)}y.set(`User-Agent`,`axios/`+uf,!1);let l={...x,signal:T,method:n.toUpperCase(),headers:Ju(y.normalize()),body:s,duplex:`half`,credentials:i?b:void 0};E=c&&new a(t,l);let u=await(c?te(E,x):te(t,l));if(w){let t=X.toFiniteNumber(u.headers.get(`content-length`));if(t!=null&&t>S)throw new Z(`maxContentLength size of `+S+` exceeded`,Z.ERR_BAD_RESPONSE,e,E)}let d=p&&(v===`stream`||v===`response`);if(p&&u.body&&(h||w||d&&D)){let t={};[`status`,`statusText`,`headers`].forEach(e=>{t[e]=u[e]});let n=X.toFiniteNumber(u.headers.get(`content-length`)),[r,i]=h&&Ud(n,Hd(Wd(h),!0))||[],a=0;u=new o(cf(u.body,df,t=>{if(w&&(a=t,a>S))throw new Z(`maxContentLength size of `+S+` exceeded`,Z.ERR_BAD_RESPONSE,e,E);r&&r(t)},()=>{i&&i(),D&&D()}),t)}v||=`text`;let O=await m[X.findKey(m,v)||`text`](u,e);if(w&&!p&&!d){let t;if(O!=null&&(typeof O.byteLength==`number`?t=O.byteLength:typeof O.size==`number`?t=O.size:typeof O==`string`&&(t=typeof r==`function`?new r().encode(O).byteLength:O.length)),typeof t==`number`&&t>S)throw new Z(`maxContentLength size of `+S+` exceeded`,Z.ERR_BAD_RESPONSE,e,E)}return!d&&D&&D(),await new Promise((t,n)=>{Rd(t,n,{data:O,headers:rd.from(u.headers),status:u.status,statusText:u.statusText,config:e,request:E})})}catch(t){if(D&&D(),T&&T.aborted&&T.reason instanceof Z){let n=T.reason;throw n.config=e,E&&(n.request=E),t!==n&&(n.cause=t),n}throw t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new Z(`Network Error`,Z.ERR_NETWORK,e,E,t&&t.response),{cause:t.cause||t}):Z.from(t,t&&t.code,e,E,t&&t.response)}}},hf=new Map,gf=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=hf;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:mf(t)),l=c;return c};gf();var _f={http:null,xhr:nf,fetch:{get:gf}};X.forEach(_f,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});var vf=e=>`- ${e}`,yf=e=>X.isFunction(e)||e===null||e===!1;function bf(e,t){e=X.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!yf(r)&&(i=_f[(n=String(r)).toLowerCase()],i===void 0))throw new Z(`Unknown adapter '${n}'`);if(i&&(X.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new Z(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
|
||
`+e.map(vf).join(`
|
||
`):` `+vf(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var xf={getAdapter:bf,adapters:_f};function Sf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ld(null,e)}function Cf(e){return Sf(e),e.headers=rd.from(e.headers),e.data=Fd.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),xf.getAdapter(e.adapter||Pd.adapter,e)(e).then(function(t){Sf(e),e.response=t;try{t.data=Fd.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rd.from(t.headers),t},function(t){if(!Id(t)&&(Sf(e),t&&t.response)){e.response=t.response;try{t.response.data=Fd.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rd.from(t.response.headers)}return Promise.reject(t)})}var wf={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{wf[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Tf={};wf.transitional=function(e,t,n){function r(e,t){return`[Axios v`+uf+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new Z(r(i,` has been removed`+(t?` in `+t:``)),Z.ERR_DEPRECATED);return t&&!Tf[i]&&(Tf[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},wf.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Ef(e,t,n){if(typeof e!=`object`)throw new Z(`options must be an object`,Z.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=Object.prototype.hasOwnProperty.call(t,a)?t[a]:void 0;if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new Z(`option `+a+` must be `+n,Z.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Z(`Unknown option `+a,Z.ERR_BAD_OPTION)}}var Df={assertOptions:Ef,validators:wf},Of=Df.validators,kf=class{constructor(e){this.defaults=e||{},this.interceptors={request:new vd,response:new vd}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return``;let e=t.stack.indexOf(`
|
||
`);return e===-1?``:t.stack.slice(e+1)})();try{if(!e.stack)e.stack=n;else if(n){let t=n.indexOf(`
|
||
`),r=t===-1?-1:n.indexOf(`
|
||
`,t+1),i=r===-1?``:n.slice(r+1);String(e.stack).endsWith(i)||(e.stack+=`
|
||
`+n)}}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=Zd(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Df.assertOptions(n,{silentJSONParsing:Of.transitional(Of.boolean),forcedJSONParsing:Of.transitional(Of.boolean),clarifyTimeoutError:Of.transitional(Of.boolean),legacyInterceptorReqResOrdering:Of.transitional(Of.boolean)},!1),r!=null&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:Df.assertOptions(r,{encode:Of.function,serialize:Of.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Df.assertOptions(t,{baseUrl:Of.spelling(`baseURL`),withXsrfToken:Of.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&X.merge(i.common,i[t.method]);i&&X.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`query`,`common`],e=>{delete i[e]}),t.headers=rd.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||yd;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Cf.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Cf.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=Zd(this.defaults,e),_d(Yd(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};X.forEach([`delete`,`get`,`head`,`options`],function(e){kf.prototype[e]=function(t,n){return this.request(Zd(n||{},{method:e,url:t,data:(n||{}).data}))}}),X.forEach([`post`,`put`,`patch`,`query`],function(e){function t(t){return function(n,r,i){return this.request(Zd(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}kf.prototype[e]=t(),e!==`query`&&(kf.prototype[e+`Form`]=t(!0))});var Af=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new Ld(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function jf(e){return function(t){return e.apply(null,t)}}function Mf(e){return X.isObject(e)&&e.isAxiosError===!0}var Nf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Nf).forEach(([e,t])=>{Nf[t]=e});function Pf(e){let t=new kf(e),n=kl(kf.prototype.request,t);return X.extend(n,kf.prototype,t,{allOwnKeys:!0}),X.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return Pf(Zd(e,t))},n}var Q=Pf(Pd);Q.Axios=kf,Q.CanceledError=Ld,Q.CancelToken=Af,Q.isCancel=Id,Q.VERSION=uf,Q.toFormData=fd,Q.AxiosError=Z,Q.Cancel=Q.CanceledError,Q.all=function(e){return Promise.all(e)},Q.spread=jf,Q.isAxiosError=Mf,Q.mergeConfig=Zd,Q.AxiosHeaders=rd,Q.formToJSON=e=>jd(X.isHTMLForm(e)?new FormData(e):e),Q.getAdapter=xf.getAdapter,Q.HttpStatusCode=Nf,Q.default=Q;var $=Q.create({baseURL:`http://localhost:3000/api`,withCredentials:!0,headers:{"Content-Type":`application/json`}});$.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status===401&&!t._retry){t._retry=!0;try{return await Q.post(`${$.defaults.baseURL}/auth/refresh`,{},{withCredentials:!0}),$(t)}catch{return Promise.reject(e)}}return Promise.reject(e)});var Ff=Ts(`auth`,()=>{let e=I(null),t=I(!1),n=K(()=>!!e.value),r=K(()=>e.value?.role===`admin`),i=K(()=>e.value?.role===`artist`),a=K(()=>new Set(e.value?.likedTracks||[]));async function o(){try{let{data:t}=await $.get(`/auth/me`);t.success&&(e.value=t.data.user)}catch{e.value=null}}async function s(n,r){t.value=!0;try{let{data:t}=await $.post(`/auth/login`,{identifier:n,password:r});return t.success&&(e.value=t.data.user),{success:!0}}catch(e){return{success:!1,message:e.response?.data?.message||`Login failed`}}finally{t.value=!1}}async function c(n){t.value=!0;try{let{data:t}=await $.post(`/auth/register`,n);return t.success&&(e.value=t.data.user),{success:!0}}catch(e){return{success:!1,message:e.response?.data?.message||`Registration failed`}}finally{t.value=!1}}async function l(){try{await $.post(`/auth/logout`)}finally{e.value=null}}async function u(n){t.value=!0;try{let{data:t}=await $.put(`/auth/profile`,n,{headers:{"Content-Type":`multipart/form-data`}});return t.success&&(e.value=t.data),{success:!0}}catch(e){return{success:!1,message:e.response?.data?.message||`Update failed`}}finally{t.value=!1}}async function d(t){let n=a.value.has(t);try{n?(await $.delete(`/tracks/${t}/like`),e.value&&(e.value.likedTracks=e.value.likedTracks.filter(e=>e!==t))):(await $.post(`/tracks/${t}/like`),e.value&&e.value.likedTracks.push(t))}catch{}}return{user:e,loading:t,isLoggedIn:n,isAdmin:r,isArtist:i,likedTrackIds:a,checkSession:o,login:s,register:c,logout:l,updateProfile:u,toggleLike:d}}),If=n({useUiStore:()=>Lf}),Lf=Ts(`ui`,()=>{let e=I([]),t=0;function n(n,r=`info`){let i=++t;e.value.push({id:i,message:n,type:r}),setTimeout(()=>{e.value=e.value.filter(e=>e.id!==i)},3e3)}function r(t){e.value=e.value.filter(e=>e.id!==t)}return{toasts:e,showToast:n,dismissToast:r}}),Rf=t((e=>{(function(){var t=function(){this.init()};t.prototype={init:function(){var e=this||n;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent=`canplaythrough`,e._navigator=typeof window<`u`&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||n;if(e=parseFloat(e),t.ctx||u(),e!==void 0&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.volume=o._volume*e)}return t}return t._volume},mute:function(e){var t=this||n;t.ctx||u(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,n.ctx.currentTime);for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var i=t._howls[r]._getSoundIds(),a=0;a<i.length;a++){var o=t._howls[r]._soundById(i[a]);o&&o._node&&(o._node.muted=e?!0:o._muted)}return t},stop:function(){for(var e=this||n,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||n,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&e.ctx.close!==void 0&&(e.ctx.close(),e.ctx=null,u()),e},codecs:function(e){return(this||n)._codecs[e.replace(/^x-/,``)]},_setup:function(){var e=this||n;if(e.state=e.ctx&&e.ctx.state||`suspended`,e._autoSuspend(),!e.usingWebAudio)if(typeof Audio<`u`)try{var t=new Audio;t.oncanplaythrough===void 0&&(e._canPlayEvent=`canplay`)}catch{e.noAudio=!0}else e.noAudio=!0;try{var t=new Audio;t.muted&&(e.noAudio=!0)}catch{}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||n,t=null;try{t=typeof Audio<`u`?new Audio:null}catch{return e}if(!t||typeof t.canPlayType!=`function`)return e;var r=t.canPlayType(`audio/mpeg;`).replace(/^no$/,``),i=e._navigator?e._navigator.userAgent:``,a=i.match(/OPR\/(\d+)/g),o=a&&parseInt(a[0].split(`/`)[1],10)<33,s=i.indexOf(`Safari`)!==-1&&i.indexOf(`Chrome`)===-1,c=i.match(/Version\/(.*?) /),l=s&&c&&parseInt(c[1],10)<15;return e._codecs={mp3:!!(!o&&(r||t.canPlayType(`audio/mp3;`).replace(/^no$/,``))),mpeg:!!r,opus:!!t.canPlayType(`audio/ogg; codecs="opus"`).replace(/^no$/,``),ogg:!!t.canPlayType(`audio/ogg; codecs="vorbis"`).replace(/^no$/,``),oga:!!t.canPlayType(`audio/ogg; codecs="vorbis"`).replace(/^no$/,``),wav:!!(t.canPlayType(`audio/wav; codecs="1"`)||t.canPlayType(`audio/wav`)).replace(/^no$/,``),aac:!!t.canPlayType(`audio/aac;`).replace(/^no$/,``),caf:!!t.canPlayType(`audio/x-caf;`).replace(/^no$/,``),m4a:!!(t.canPlayType(`audio/x-m4a;`)||t.canPlayType(`audio/m4a;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),m4b:!!(t.canPlayType(`audio/x-m4b;`)||t.canPlayType(`audio/m4b;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),mp4:!!(t.canPlayType(`audio/x-mp4;`)||t.canPlayType(`audio/mp4;`)||t.canPlayType(`audio/aac;`)).replace(/^no$/,``),weba:!!(!l&&t.canPlayType(`audio/webm; codecs="vorbis"`).replace(/^no$/,``)),webm:!!(!l&&t.canPlayType(`audio/webm; codecs="vorbis"`).replace(/^no$/,``)),dolby:!!t.canPlayType(`audio/mp4; codecs="ec-3"`).replace(/^no$/,``),flac:!!(t.canPlayType(`audio/x-flac;`)||t.canPlayType(`audio/flac;`)).replace(/^no$/,``)},e},_unlockAudio:function(){var e=this||n;if(!(e._audioUnlocked||!e.ctx)){e._audioUnlocked=!1,e.autoUnlock=!1,!e._mobileUnloaded&&e.ctx.sampleRate!==44100&&(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch{e.noAudio=!0;break}for(var i=0;i<e._howls.length;i++)if(!e._howls[i]._webAudio)for(var a=e._howls[i]._getSoundIds(),o=0;o<a.length;o++){var s=e._howls[i]._soundById(a[o]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var c=e.ctx.createBufferSource();c.buffer=e._scratchBuffer,c.connect(e.ctx.destination),c.start===void 0?c.noteOn(0):c.start(0),typeof e.ctx.resume==`function`&&e.ctx.resume(),c.onended=function(){c.disconnect(0),e._audioUnlocked=!0,document.removeEventListener(`touchstart`,t,!0),document.removeEventListener(`touchend`,t,!0),document.removeEventListener(`click`,t,!0),document.removeEventListener(`keydown`,t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit(`unlock`)}};return document.addEventListener(`touchstart`,t,!0),document.addEventListener(`touchend`,t,!0),document.addEventListener(`click`,t,!0),document.addEventListener(`keydown`,t,!0),e}},_obtainHtml5Audio:function(){var e=this||n;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=new Audio().play();return t&&typeof Promise<`u`&&(t instanceof Promise||typeof t.then==`function`)&&t.catch(function(){console.warn(`HTML5 Audio pool exhausted, returning potentially locked audio object.`)}),new Audio},_releaseHtml5Audio:function(e){var t=this||n;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(!(!e.autoSuspend||!e.ctx||e.ctx.suspend===void 0||!n.usingWebAudio)){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio){for(var r=0;r<e._howls[t]._sounds.length;r++)if(!e._howls[t]._sounds[r]._paused)return e}return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){if(e.autoSuspend){e._suspendTimer=null,e.state=`suspending`;var t=function(){e.state=`suspended`,e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}},3e4),e}},_autoResume:function(){var e=this;if(!(!e.ctx||e.ctx.resume===void 0||!n.usingWebAudio))return e.state===`running`&&e.ctx.state!==`interrupted`&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):e.state===`suspended`||e.state===`running`&&e.ctx.state===`interrupted`?(e.ctx.resume().then(function(){e.state=`running`;for(var t=0;t<e._howls.length;t++)e._howls[t]._emit(`resume`)}),e._suspendTimer&&=(clearTimeout(e._suspendTimer),null)):e.state===`suspending`&&(e._resumeAfterSuspend=!0),e}};var n=new t,r=function(e){var t=this;if(!e.src||e.src.length===0){console.error(`An array of source files must be passed with any new Howl.`);return}t.init(e)};r.prototype={init:function(e){var t=this;return n.ctx||u(),t._autoplay=e.autoplay||!1,t._format=typeof e.format==`string`?[e.format]:e.format,t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload=typeof e.preload==`boolean`||e.preload===`metadata`?e.preload:!0,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src=typeof e.src==`string`?[e.src]:e.src,t._volume=e.volume===void 0?1:e.volume,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:`GET`,headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:e.xhr&&e.xhr.withCredentials?e.xhr.withCredentials:!1},t._duration=0,t._state=`unloaded`,t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=n.usingWebAudio&&!t._html5,n.ctx!==void 0&&n.ctx&&n.autoUnlock&&n._unlockAudio(),n._howls.push(t),t._autoplay&&t._queue.push({event:`play`,action:function(){t.play()}}),t._preload&&t._preload!==`none`&&t.load(),t},load:function(){var e=this,t=null;if(n.noAudio){e._emit(`loaderror`,null,`No audio support.`);return}typeof e._src==`string`&&(e._src=[e._src]);for(var r=0;r<e._src.length;r++){var a,s;if(e._format&&e._format[r])a=e._format[r];else{if(s=e._src[r],typeof s!=`string`){e._emit(`loaderror`,null,`Non-string found in selected audio sources - ignoring.`);continue}a=/^data:audio\/([^;,]+);/i.exec(s),a||=/\.([^.]+)$/.exec(s.split(`?`,1)[0]),a&&=a[1].toLowerCase()}if(a||console.warn(`No file extension was found. Consider using the "format" property or specify an extension.`),a&&n.codecs(a)){t=e._src[r];break}}if(!t){e._emit(`loaderror`,null,`No codec support for selected audio sources.`);return}return e._src=t,e._state=`loading`,window.location.protocol===`https:`&&t.slice(0,5)===`http:`&&(e._html5=!0,e._webAudio=!1),new i(e),e._webAudio&&o(e),e},play:function(e,t){var r=this,i=null;if(typeof e==`number`)i=e,e=null;else if(typeof e==`string`&&r._state===`loaded`&&!r._sprite[e])return null;else if(e===void 0&&(e=`__default`,!r._playLock)){for(var a=0,o=0;o<r._sounds.length;o++)r._sounds[o]._paused&&!r._sounds[o]._ended&&(a++,i=r._sounds[o]._id);a===1?e=null:i=null}var s=i?r._soundById(i):r._inactiveSound();if(!s)return null;if(i&&!e&&(e=s._sprite||`__default`),r._state!==`loaded`){s._sprite=e,s._ended=!1;var c=s._id;return r._queue.push({event:`play`,action:function(){r.play(c)}}),c}if(i&&!s._paused)return t||r._loadQueue(`play`),s._id;r._webAudio&&n._autoResume();var l=Math.max(0,s._seek>0?s._seek:r._sprite[e][0]/1e3),u=Math.max(0,(r._sprite[e][0]+r._sprite[e][1])/1e3-l),d=u*1e3/Math.abs(s._rate),f=r._sprite[e][0]/1e3,p=(r._sprite[e][0]+r._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var m=function(){s._paused=!1,s._seek=l,s._start=f,s._stop=p,s._loop=!!(s._loop||r._sprite[e][2])};if(l>=p){r._ended(s);return}var h=s._node;if(r._webAudio){var g=function(){r._playLock=!1,m(),r._refreshBuffer(s);var e=s._muted||r._muted?0:s._volume;h.gain.setValueAtTime(e,n.ctx.currentTime),s._playStart=n.ctx.currentTime,h.bufferSource.start===void 0?s._loop?h.bufferSource.noteGrainOn(0,l,86400):h.bufferSource.noteGrainOn(0,l,u):s._loop?h.bufferSource.start(0,l,86400):h.bufferSource.start(0,l,u),d!==1/0&&(r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d)),t||setTimeout(function(){r._emit(`play`,s._id),r._loadQueue()},0)};n.state===`running`&&n.ctx.state!==`interrupted`?g():(r._playLock=!0,r.once(`resume`,g),r._clearTimer(s._id))}else{var _=function(){h.currentTime=l,h.muted=s._muted||r._muted||n._muted||h.muted,h.volume=s._volume*n.volume(),h.playbackRate=s._rate;try{var i=h.play();if(i&&typeof Promise<`u`&&(i instanceof Promise||typeof i.then==`function`)?(r._playLock=!0,m(),i.then(function(){r._playLock=!1,h._unlocked=!0,t?r._loadQueue():r._emit(`play`,s._id)}).catch(function(){r._playLock=!1,r._emit(`playerror`,s._id,`Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.`),s._ended=!0,s._paused=!0})):t||(r._playLock=!1,m(),r._emit(`play`,s._id)),h.playbackRate=s._rate,h.paused){r._emit(`playerror`,s._id,`Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.`);return}e!==`__default`||s._loop?r._endTimers[s._id]=setTimeout(r._ended.bind(r,s),d):(r._endTimers[s._id]=function(){r._ended(s),h.removeEventListener(`ended`,r._endTimers[s._id],!1)},h.addEventListener(`ended`,r._endTimers[s._id],!1))}catch(e){r._emit(`playerror`,s._id,e)}};h.src===`data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA`&&(h.src=r._src,h.load());var v=window&&window.ejecta||!h.readyState&&n._navigator.isCocoonJS;if(h.readyState>=3||v)_();else{r._playLock=!0,r._state=`loading`;var y=function(){r._state=`loaded`,_(),h.removeEventListener(n._canPlayEvent,y,!1)};h.addEventListener(n._canPlayEvent,y,!1),r._clearTimer(s._id)}}return s._id},pause:function(e){var t=this;if(t._state!==`loaded`||t._playLock)return t._queue.push({event:`pause`,action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var i=t._soundById(n[r]);if(i&&!i._paused&&(i._seek=t.seek(n[r]),i._rateSeek=0,i._paused=!0,t._stopFade(n[r]),i._node))if(t._webAudio){if(!i._node.bufferSource)continue;i._node.bufferSource.stop===void 0?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),t._cleanBuffer(i._node)}else (!isNaN(i._node.duration)||i._node.duration===1/0)&&i._node.pause();arguments[1]||t._emit(`pause`,i?i._id:null)}return t},stop:function(e,t){var n=this;if(n._state!==`loaded`||n._playLock)return n._queue.push({event:`stop`,action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),i=0;i<r.length;i++){n._clearTimer(r[i]);var a=n._soundById(r[i]);a&&(a._seek=a._start||0,a._rateSeek=0,a._paused=!0,a._ended=!0,n._stopFade(r[i]),a._node&&(n._webAudio?a._node.bufferSource&&(a._node.bufferSource.stop===void 0?a._node.bufferSource.noteOff(0):a._node.bufferSource.stop(0),n._cleanBuffer(a._node)):(!isNaN(a._node.duration)||a._node.duration===1/0)&&(a._node.currentTime=a._start||0,a._node.pause(),a._node.duration===1/0&&n._clearSound(a._node))),t||n._emit(`stop`,a._id))}return n},mute:function(e,t){var r=this;if(r._state!==`loaded`||r._playLock)return r._queue.push({event:`mute`,action:function(){r.mute(e,t)}}),r;if(t===void 0)if(typeof e==`boolean`)r._muted=e;else return r._muted;for(var i=r._getSoundIds(t),a=0;a<i.length;a++){var o=r._soundById(i[a]);o&&(o._muted=e,o._interval&&r._stopFade(o._id),r._webAudio&&o._node?o._node.gain.setValueAtTime(e?0:o._volume,n.ctx.currentTime):o._node&&(o._node.muted=n._muted?!0:e),r._emit(`mute`,o._id))}return r},volume:function(){var e=this,t=arguments,r,i;if(t.length===0)return e._volume;t.length===1||t.length===2&&t[1]===void 0?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):r=parseFloat(t[0]):t.length>=2&&(r=parseFloat(t[0]),i=parseInt(t[1],10));var a;if(r!==void 0&&r>=0&&r<=1){if(e._state!==`loaded`||e._playLock)return e._queue.push({event:`volume`,action:function(){e.volume.apply(e,t)}}),e;i===void 0&&(e._volume=r),i=e._getSoundIds(i);for(var o=0;o<i.length;o++)a=e._soundById(i[o]),a&&(a._volume=r,t[2]||e._stopFade(i[o]),e._webAudio&&a._node&&!a._muted?a._node.gain.setValueAtTime(r,n.ctx.currentTime):a._node&&!a._muted&&(a._node.volume=r*n.volume()),e._emit(`volume`,a._id))}else return a=i?e._soundById(i):e._sounds[0],a?a._volume:0;return e},fade:function(e,t,r,i){var a=this;if(a._state!==`loaded`||a._playLock)return a._queue.push({event:`fade`,action:function(){a.fade(e,t,r,i)}}),a;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),r=parseFloat(r),a.volume(e,i);for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c){if(i||a._stopFade(o[s]),a._webAudio&&!c._muted){var l=n.ctx.currentTime,u=l+r/1e3;c._volume=e,c._node.gain.setValueAtTime(e,l),c._node.gain.linearRampToValueAtTime(t,u)}a._startFadeInterval(c,e,t,r,o[s],i===void 0)}}return a},_startFadeInterval:function(e,t,n,r,i,a){var o=this,s=t,c=n-t,l=Math.abs(c/.01),u=Math.max(4,l>0?r/l:r),d=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var i=(Date.now()-d)/r;d=Date.now(),s+=c*i,s=Math.round(s*100)/100,s=c<0?Math.max(n,s):Math.min(n,s),o._webAudio?e._volume=s:o.volume(s,e._id,!0),a&&(o._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,o.volume(n,e._id),o._emit(`fade`,e._id))},u)},_stopFade:function(e){var t=this,r=t._soundById(e);return r&&r._interval&&(t._webAudio&&r._node.gain.cancelScheduledValues(n.ctx.currentTime),clearInterval(r._interval),r._interval=null,t.volume(r._fadeTo,e),r._fadeTo=null,t._emit(`fade`,e)),t},loop:function(){var e=this,t=arguments,n,r,i;if(t.length===0)return e._loop;if(t.length===1)if(typeof t[0]==`boolean`)n=t[0],e._loop=n;else return i=e._soundById(parseInt(t[0],10)),i?i._loop:!1;else t.length===2&&(n=t[0],r=parseInt(t[1],10));for(var a=e._getSoundIds(r),o=0;o<a.length;o++)i=e._soundById(a[o]),i&&(i._loop=n,e._webAudio&&i._node&&i._node.bufferSource&&(i._node.bufferSource.loop=n,n&&(i._node.bufferSource.loopStart=i._start||0,i._node.bufferSource.loopEnd=i._stop,e.playing(a[o])&&(e.pause(a[o],!0),e.play(a[o],!0)))));return e},rate:function(){var e=this,t=arguments,r,i;t.length===0?i=e._sounds[0]._id:t.length===1?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):r=parseFloat(t[0]):t.length===2&&(r=parseFloat(t[0]),i=parseInt(t[1],10));var a;if(typeof r==`number`){if(e._state!==`loaded`||e._playLock)return e._queue.push({event:`rate`,action:function(){e.rate.apply(e,t)}}),e;i===void 0&&(e._rate=r),i=e._getSoundIds(i);for(var o=0;o<i.length;o++)if(a=e._soundById(i[o]),a){e.playing(i[o])&&(a._rateSeek=e.seek(i[o]),a._playStart=e._webAudio?n.ctx.currentTime:a._playStart),a._rate=r,e._webAudio&&a._node&&a._node.bufferSource?a._node.bufferSource.playbackRate.setValueAtTime(r,n.ctx.currentTime):a._node&&(a._node.playbackRate=r);var s=e.seek(i[o]),c=((e._sprite[a._sprite][0]+e._sprite[a._sprite][1])/1e3-s)*1e3/Math.abs(a._rate);(e._endTimers[i[o]]||!a._paused)&&(e._clearTimer(i[o]),e._endTimers[i[o]]=setTimeout(e._ended.bind(e,a),c)),e._emit(`rate`,a._id)}}else return a=e._soundById(i),a?a._rate:e._rate;return e},seek:function(){var e=this,t=arguments,r,i;if(t.length===0?e._sounds.length&&(i=e._sounds[0]._id):t.length===1?e._getSoundIds().indexOf(t[0])>=0?i=parseInt(t[0],10):e._sounds.length&&(i=e._sounds[0]._id,r=parseFloat(t[0])):t.length===2&&(r=parseFloat(t[0]),i=parseInt(t[1],10)),i===void 0)return 0;if(typeof r==`number`&&(e._state!==`loaded`||e._playLock))return e._queue.push({event:`seek`,action:function(){e.seek.apply(e,t)}}),e;var a=e._soundById(i);if(a)if(typeof r==`number`&&r>=0){var o=e.playing(i);o&&e.pause(i,!0),a._seek=r,a._ended=!1,e._clearTimer(i),!e._webAudio&&a._node&&!isNaN(a._node.duration)&&(a._node.currentTime=r);var s=function(){o&&e.play(i,!0),e._emit(`seek`,i)};if(o&&!e._webAudio){var c=function(){e._playLock?setTimeout(c,0):s()};setTimeout(c,0)}else s()}else if(e._webAudio){var l=e.playing(i)?n.ctx.currentTime-a._playStart:0,u=a._rateSeek?a._rateSeek-a._seek:0;return a._seek+(u+l*Math.abs(a._rate))}else return a._node.currentTime;return e},playing:function(e){var t=this;if(typeof e==`number`){var n=t._soundById(e);return n?!n._paused:!1}for(var r=0;r<t._sounds.length;r++)if(!t._sounds[r]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,r=t._soundById(e);return r&&(n=t._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,r=0;r<t.length;r++)t[r]._paused||e.stop(t[r]._id),e._webAudio||(e._clearSound(t[r]._node),t[r]._node.removeEventListener(`error`,t[r]._errorFn,!1),t[r]._node.removeEventListener(n._canPlayEvent,t[r]._loadFn,!1),t[r]._node.removeEventListener(`ended`,t[r]._endFn,!1),n._releaseHtml5Audio(t[r]._node)),delete t[r]._node,e._clearTimer(t[r]._id);var i=n._howls.indexOf(e);i>=0&&n._howls.splice(i,1);var o=!0;for(r=0;r<n._howls.length;r++)if(n._howls[r]._src===e._src||e._src.indexOf(n._howls[r]._src)>=0){o=!1;break}return a&&o&&delete a[e._src],n.noAudio=!1,e._state=`unloaded`,e._sounds=[],e=null,null},on:function(e,t,n,r){var i=this,a=i[`_on`+e];return typeof t==`function`&&a.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),i},off:function(e,t,n){var r=this,i=r[`_on`+e],a=0;if(typeof t==`number`&&(n=t,t=null),t||n)for(a=0;a<i.length;a++){var o=n===i[a].id;if(t===i[a].fn&&o||!t&&o){i.splice(a,1);break}}else if(e)r[`_on`+e]=[];else{var s=Object.keys(r);for(a=0;a<s.length;a++)s[a].indexOf(`_on`)===0&&Array.isArray(r[s[a]])&&(r[s[a]]=[])}return r},once:function(e,t,n){var r=this;return r.on(e,t,n,1),r},_emit:function(e,t,n){for(var r=this,i=r[`_on`+e],a=i.length-1;a>=0;a--)(!i[a].id||i[a].id===t||e===`load`)&&(setTimeout(function(e){e.call(this,t,n)}.bind(r,i[a].fn),0),i[a].once&&r.off(e,i[a].fn,i[a].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,r=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var i=!!(e._loop||t._sprite[r][2]);if(t._emit(`end`,e._id),!t._webAudio&&i&&t.stop(e._id,!0).play(e._id),t._webAudio&&i){t._emit(`play`,e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=n.ctx.currentTime;var a=(e._stop-e._start)*1e3/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),a)}return t._webAudio&&!i&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),n._autoSuspend()),!t._webAudio&&!i&&t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if(typeof t._endTimers[e]!=`function`)clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener(`ended`,t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new i(e)},_drain:function(){var e=this,t=e._pool,n=0,r=0;if(!(e._sounds.length<t)){for(r=0;r<e._sounds.length;r++)e._sounds[r]._ended&&n++;for(r=e._sounds.length-1;r>=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){var t=this;if(e===void 0){for(var n=[],r=0;r<t._sounds.length;r++)n.push(t._sounds[r]._id);return n}else return[e]},_refreshBuffer:function(e){var t=this;return e._node.bufferSource=n.ctx.createBufferSource(),e._node.bufferSource.buffer=a[t._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,n.ctx.currentTime),t},_cleanBuffer:function(e){var t=this,r=n._navigator&&n._navigator.vendor.indexOf(`Apple`)>=0;if(!e.bufferSource)return t;if(n._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),r))try{e.bufferSource.buffer=n._scratchBuffer}catch{}return e.bufferSource=null,t},_clearSound:function(e){/MSIE |Trident\//.test(n._navigator&&n._navigator.userAgent)||(e.src=`data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA`)}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite=`__default`,e._id=++n._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,r=n._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=n.ctx.createGain===void 0?n.ctx.createGainNode():n.ctx.createGain(),e._node.gain.setValueAtTime(r,n.ctx.currentTime),e._node.paused=!0,e._node.connect(n.masterGain)):n.noAudio||(e._node=n._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener(`error`,e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(n._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener(`ended`,e._endFn,!1),e._node.src=t._src,e._node.preload=t._preload===!0?`auto`:t._preload,e._node.volume=r*n.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite=`__default`,e._id=++n._counter,e},_errorListener:function(){var e=this;e._parent._emit(`loaderror`,e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener(`error`,e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(e._node.duration*10)/10,Object.keys(t._sprite).length===0&&(t._sprite={__default:[0,t._duration*1e3]}),t._state!==`loaded`&&(t._state=`loaded`,t._emit(`load`),t._loadQueue()),e._node.removeEventListener(n._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(e._node.duration*10)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=t._duration*1e3),t._ended(e)),e._node.removeEventListener(`ended`,e._endFn,!1)}};var a={},o=function(e){var t=e._src;if(a[t]){e._duration=a[t].duration,l(e);return}if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(`,`)[1]),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);c(r.buffer,e)}else{var o=new XMLHttpRequest;o.open(e._xhr.method,t,!0),o.withCredentials=e._xhr.withCredentials,o.responseType=`arraybuffer`,e._xhr.headers&&Object.keys(e._xhr.headers).forEach(function(t){o.setRequestHeader(t,e._xhr.headers[t])}),o.onload=function(){var t=(o.status+``)[0];if(t!==`0`&&t!==`2`&&t!==`3`){e._emit(`loaderror`,null,`Failed loading audio file with status: `+o.status+`.`);return}c(o.response,e)},o.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete a[t],e.load())},s(o)}},s=function(e){try{e.send()}catch{e.onerror()}},c=function(e,t){var r=function(){t._emit(`loaderror`,null,`Decoding audio data failed.`)},i=function(e){e&&t._sounds.length>0?(a[t._src]=e,l(t,e)):r()};typeof Promise<`u`&&n.ctx.decodeAudioData.length===1?n.ctx.decodeAudioData(e).then(i).catch(r):n.ctx.decodeAudioData(e,i,r)},l=function(e,t){t&&!e._duration&&(e._duration=t.duration),Object.keys(e._sprite).length===0&&(e._sprite={__default:[0,e._duration*1e3]}),e._state!==`loaded`&&(e._state=`loaded`,e._emit(`load`),e._loadQueue())},u=function(){if(n.usingWebAudio){try{typeof AudioContext<`u`?n.ctx=new AudioContext:typeof webkitAudioContext<`u`?n.ctx=new webkitAudioContext:n.usingWebAudio=!1}catch{n.usingWebAudio=!1}n.ctx||(n.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(n._navigator&&n._navigator.platform),t=n._navigator&&n._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),r=t?parseInt(t[1],10):null;if(e&&r&&r<9){var i=/safari/.test(n._navigator&&n._navigator.userAgent.toLowerCase());n._navigator&&!i&&(n.usingWebAudio=!1)}n.usingWebAudio&&(n.masterGain=n.ctx.createGain===void 0?n.ctx.createGainNode():n.ctx.createGain(),n.masterGain.gain.setValueAtTime(n._muted?0:n._volume,n.ctx.currentTime),n.masterGain.connect(n.ctx.destination)),n._setup()}};typeof define==`function`&&define.amd&&define([],function(){return{Howler:n,Howl:r}}),e!==void 0&&(e.Howler=n,e.Howl=r),typeof global<`u`?(global.HowlerGlobal=t,global.Howler=n,global.Howl=r,global.Sound=i):typeof window<`u`&&(window.HowlerGlobal=t,window.Howler=n,window.Howl=r,window.Sound=i)})(),(function(){HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;if(!r.ctx||!r.ctx.listener)return r;if(t=typeof t==`number`?t:r._pos[1],n=typeof n==`number`?n:r._pos[2],typeof e==`number`)r._pos=[e,t,n],r.ctx.listener.positionX===void 0?r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]):(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1));else return r._pos;return r},HowlerGlobal.prototype.orientation=function(e,t,n,r,i,a){var o=this;if(!o.ctx||!o.ctx.listener)return o;var s=o._orientation;if(t=typeof t==`number`?t:s[1],n=typeof n==`number`?n:s[2],r=typeof r==`number`?r:s[3],i=typeof i==`number`?i:s[4],a=typeof a==`number`?a:s[5],typeof e==`number`)o._orientation=[e,t,n,r,i,a],o.ctx.listener.forwardX===void 0?o.ctx.listener.setOrientation(e,t,n,r,i,a):(o.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),o.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),o.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),o.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),o.ctx.listener.upY.setTargetAtTime(i,Howler.ctx.currentTime,.1),o.ctx.listener.upZ.setTargetAtTime(a,Howler.ctx.currentTime,.1));else return s;return o},Howl.prototype.init=(function(e){return function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:t.coneInnerAngle===void 0?360:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle===void 0?360:t.coneOuterAngle,coneOuterGain:t.coneOuterGain===void 0?0:t.coneOuterGain,distanceModel:t.distanceModel===void 0?`inverse`:t.distanceModel,maxDistance:t.maxDistance===void 0?1e4:t.maxDistance,panningModel:t.panningModel===void 0?`HRTF`:t.panningModel,refDistance:t.refDistance===void 0?1:t.refDistance,rolloffFactor:t.rolloffFactor===void 0?1:t.rolloffFactor},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}})(Howl.prototype.init),Howl.prototype.stereo=function(t,n){var r=this;if(!r._webAudio)return r;if(r._state!==`loaded`)return r._queue.push({event:`stereo`,action:function(){r.stereo(t,n)}}),r;var i=Howler.ctx.createStereoPanner===void 0?`spatial`:`stereo`;if(n===void 0)if(typeof t==`number`)r._stereo=t,r._pos=[t,0,0];else return r._stereo;for(var a=r._getSoundIds(n),o=0;o<a.length;o++){var s=r._soundById(a[o]);if(s)if(typeof t==`number`)s._stereo=t,s._pos=[t,0,0],s._node&&(s._pannerAttr.panningModel=`equalpower`,(!s._panner||!s._panner.pan)&&e(s,i),i===`spatial`?s._panner.positionX===void 0?s._panner.setPosition(t,0,0):(s._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),r._emit(`stereo`,s._id);else return s._stereo}return r},Howl.prototype.pos=function(t,n,r,i){var a=this;if(!a._webAudio)return a;if(a._state!==`loaded`)return a._queue.push({event:`pos`,action:function(){a.pos(t,n,r,i)}}),a;if(n=typeof n==`number`?n:0,r=typeof r==`number`?r:-.5,i===void 0)if(typeof t==`number`)a._pos=[t,n,r];else return a._pos;for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c)if(typeof t==`number`)c._pos=[t,n,r],c._node&&((!c._panner||c._panner.pan)&&e(c,`spatial`),c._panner.positionX===void 0?c._panner.setPosition(t,n,r):(c._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime))),a._emit(`pos`,c._id);else return c._pos}return a},Howl.prototype.orientation=function(t,n,r,i){var a=this;if(!a._webAudio)return a;if(a._state!==`loaded`)return a._queue.push({event:`orientation`,action:function(){a.orientation(t,n,r,i)}}),a;if(n=typeof n==`number`?n:a._orientation[1],r=typeof r==`number`?r:a._orientation[2],i===void 0)if(typeof t==`number`)a._orientation=[t,n,r];else return a._orientation;for(var o=a._getSoundIds(i),s=0;s<o.length;s++){var c=a._soundById(o[s]);if(c)if(typeof t==`number`)c._orientation=[t,n,r],c._node&&(c._panner||(c._pos||=a._pos||[0,0,-.5],e(c,`spatial`)),c._panner.orientationX===void 0?c._panner.setOrientation(t,n,r):(c._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime))),a._emit(`orientation`,c._id);else return c._orientation}return a},Howl.prototype.pannerAttr=function(){var t=this,n=arguments,r,i,a;if(!t._webAudio)return t;if(n.length===0)return t._pannerAttr;if(n.length===1)if(typeof n[0]==`object`)r=n[0],i===void 0&&(r.pannerAttr||={coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel,maxDistance:r.maxDistance,refDistance:r.refDistance,rolloffFactor:r.rolloffFactor,panningModel:r.panningModel},t._pannerAttr={coneInnerAngle:r.pannerAttr.coneInnerAngle===void 0?t._coneInnerAngle:r.pannerAttr.coneInnerAngle,coneOuterAngle:r.pannerAttr.coneOuterAngle===void 0?t._coneOuterAngle:r.pannerAttr.coneOuterAngle,coneOuterGain:r.pannerAttr.coneOuterGain===void 0?t._coneOuterGain:r.pannerAttr.coneOuterGain,distanceModel:r.pannerAttr.distanceModel===void 0?t._distanceModel:r.pannerAttr.distanceModel,maxDistance:r.pannerAttr.maxDistance===void 0?t._maxDistance:r.pannerAttr.maxDistance,refDistance:r.pannerAttr.refDistance===void 0?t._refDistance:r.pannerAttr.refDistance,rolloffFactor:r.pannerAttr.rolloffFactor===void 0?t._rolloffFactor:r.pannerAttr.rolloffFactor,panningModel:r.pannerAttr.panningModel===void 0?t._panningModel:r.pannerAttr.panningModel});else return a=t._soundById(parseInt(n[0],10)),a?a._pannerAttr:t._pannerAttr;else n.length===2&&(r=n[0],i=parseInt(n[1],10));for(var o=t._getSoundIds(i),s=0;s<o.length;s++)if(a=t._soundById(o[s]),a){var c=a._pannerAttr;c={coneInnerAngle:r.coneInnerAngle===void 0?c.coneInnerAngle:r.coneInnerAngle,coneOuterAngle:r.coneOuterAngle===void 0?c.coneOuterAngle:r.coneOuterAngle,coneOuterGain:r.coneOuterGain===void 0?c.coneOuterGain:r.coneOuterGain,distanceModel:r.distanceModel===void 0?c.distanceModel:r.distanceModel,maxDistance:r.maxDistance===void 0?c.maxDistance:r.maxDistance,refDistance:r.refDistance===void 0?c.refDistance:r.refDistance,rolloffFactor:r.rolloffFactor===void 0?c.rolloffFactor:r.rolloffFactor,panningModel:r.panningModel===void 0?c.panningModel:r.panningModel};var l=a._panner;l||=(a._pos||=t._pos||[0,0,-.5],e(a,`spatial`),a._panner),l.coneInnerAngle=c.coneInnerAngle,l.coneOuterAngle=c.coneOuterAngle,l.coneOuterGain=c.coneOuterGain,l.distanceModel=c.distanceModel,l.maxDistance=c.maxDistance,l.refDistance=c.refDistance,l.rolloffFactor=c.rolloffFactor,l.panningModel=c.panningModel}return t},Sound.prototype.init=(function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}})(Sound.prototype.init),Sound.prototype.reset=(function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}})(Sound.prototype.reset);var e=function(e,t){t||=`spatial`,t===`spatial`?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,e._panner.positionX===void 0?e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]):(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)),e._panner.orientationX===void 0?e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2]):(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime))):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}})()}))(),zf=null,Bf={};function Vf(e){return!e||isNaN(e)?`0:00`:`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`}function Hf(e){$f(),zf=new Rf.Howl({src:[e],html5:!0,onplay:()=>Bf.onPlay?.(),onpause:()=>Bf.onPause?.(),onend:()=>Bf.onEnd?.(),onloaderror:()=>Bf.onError?.(),onplayerror:()=>Bf.onError?.()})}function Uf(){zf?.play()}function Wf(){zf?.pause()}function Gf(){zf?.playing()?zf.pause():zf.play()}function Kf(e){zf&&zf.seek(e)}function qf(){return zf?zf.seek():0}function Jf(e){return e!==void 0&&Howler.volume(e/100),Howler.volume()*100}function Yf(){return zf?zf.duration():0}function Xf(){return zf?zf.playing():!1}function Zf(e,t){Bf[e]=t}function Qf(e){delete Bf[e]}function $f(){zf&&=(zf.unload(),null),Bf={}}var ep={load:Hf,play:Uf,pause:Wf,togglePlay:Gf,seek:Kf,getSeek:qf,volume:Jf,duration:Yf,playing:Xf,on:Zf,off:Qf,destroy:$f,formatTime:Vf},tp=`http://localhost:3000`;function np(e){return e?e.startsWith(`http`)?e:`${tp}${e}`:``}var rp=Ts(`player`,()=>{let e=I(null),t=I(!1),n=I(0),r=I(0),i=I(80),a=I(null),o=I(null),s=K(()=>ep.formatTime(n.value)),c=K(()=>ep.formatTime(r.value));function l(i){if(!i)return;e.value=i,n.value=0,r.value=0,t.value=!1,g();let a=np(i.audioUrl);ep.load(a),ep.on(`play`,()=>{t.value=!0}),ep.on(`pause`,()=>{t.value=!1}),ep.on(`end`,()=>{t.value=!1,g(),o.value&&o.value()}),ep.on(`error`,()=>{t.value=!1})}function u(e){o.value=e}function d(){e.value&&(ep.playing()?(ep.pause(),g()):(ep.play(),h()))}function f(){e.value&&(ep.play(),h())}function p(e){ep.seek(e),n.value=e}function m(e){i.value=e,ep.volume(e)}function h(){g(),a.value=setInterval(()=>{ep.playing()&&(n.value=ep.getSeek(),r.value=ep.duration())},500)}function g(){a.value&&=(clearInterval(a.value),null)}function _(){g(),ep.destroy(),e.value=null,t.value=!1,n.value=0,r.value=0,o.value=null}return{currentTrack:e,isPlaying:t,progress:n,duration:r,volume:i,formattedProgress:s,formattedDuration:c,setTrack:l,onEnd:u,togglePlay:d,play:f,seek:p,setVolume:m,$reset:_}}),ip=Ts(`queue`,()=>{let e=I([]),t=I(-1),n=I(!1),r=I(`off`),i=K(()=>t.value<0||t.value>=e.value.length?null:e.value[t.value]);function a(n,r=0){e.value=n,t.value=r}function o(){if(e.value.length===0)return null;if(r.value===`one`)return e.value[t.value];let i;if(i=n.value?Math.floor(Math.random()*e.value.length):t.value+1,i>=e.value.length)if(r.value===`all`)i=0;else return null;return t.value=i,e.value[i]}function s(){if(e.value.length===0)return null;if(r.value===`one`)return e.value[t.value];let i;if(i=n.value?Math.floor(Math.random()*e.value.length):t.value-1,i<0)if(r.value===`all`)i=e.value.length-1;else return null;return t.value=i,e.value[i]}function c(){n.value=!n.value}function l(){let e=[`off`,`all`,`one`];r.value=e[(e.indexOf(r.value)+1)%e.length]}function u(){e.value=[],t.value=-1,n.value=!1,r.value=`off`}return{queue:e,currentIndex:t,shuffle:n,repeat:r,currentTrack:i,setQueue:a,nextTrack:o,prevTrack:s,toggleShuffle:c,cycleRepeat:l,$reset:u}}),ap={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},op={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},sp={class:`w-1/2 p-12 relative`},cp={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},lp={class:`absolute top-20 right-8 grid grid-cols-4 gap-1`},up={class:`absolute bottom-12 left-12 grid grid-cols-3 gap-1`},dp={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},fp={key:0,class:`text-red-500 text-sm mb-4 font-medium`},pp={class:`mb-6`},mp={class:`flex border-2 border-black rounded-lg overflow-hidden`},hp={class:`mb-4`},gp={class:`flex border-2 border-black rounded-lg overflow-hidden`},_p=[`type`],vp={key:0,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},yp={key:1,class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},bp=[`disabled`],xp={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},Sp={class:`text-center mt-8 text-gray-600`},Cp={__name:`LoginPage`,setup(e){let t=Dl(),n=Ff(),r=I(``),i=I(``),a=I(!1),o=I(!1),s=I(``);async function c(){s.value=``,o.value=!0;let e=await n.login(r.value,i.value);o.value=!1,e.success?t.push(`/home`):s.value=e.message}return(e,t)=>{let n=wr(`router-link`);return B(),V(`div`,ap,[H(`div`,op,[H(`div`,sp,[H(`div`,cp,[(B(),V(z,null,R(16,e=>H(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),H(`div`,lp,[(B(),V(z,null,R(12,e=>H(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[3]||=H(`div`,{class:`absolute top-16 left-20 text-black/60 text-4xl font-bold`},`+`,-1),t[4]||=H(`div`,{class:`absolute bottom-24 right-20 text-black/60 text-4xl font-bold`},`+`,-1),H(`div`,up,[(B(),V(z,null,R(12,e=>H(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[5]||=ia(`<div class="flex flex-col items-center justify-center h-full"><div class="relative"><div class="w-48 h-48 flex items-center justify-center"><svg viewBox="0 0 120 120" class="w-full h-full"><polygon points="40,35 80,35 90,50 50,50" fill="#ff6b35"></polygon><polygon points="40,35 50,50 50,90 40,75" fill="#e85a2a"></polygon><polygon points="50,50 90,50 90,90 50,90" fill="#ff8c5a"></polygon><polygon points="40,75 50,90 50,70 40,55" fill="#1a1a1a"></polygon><polygon points="70,50 90,50 90,70 70,70" fill="#1a1a1a"></polygon><polygon points="50,70 70,70 70,90 50,90" fill="#1a1a1a"></polygon><rect x="95" y="35" width="5" height="5" fill="#ff6b35"></rect><rect x="100" y="30" width="4" height="4" fill="#ff6b35"></rect><rect x="105" y="38" width="3" height="3" fill="#ff6b35"></rect><rect x="98" y="45" width="4" height="4" fill="#ff6b35"></rect></svg></div></div><h1 class="text-4xl font-mono font-bold text-noctune-dark tracking-wider mt-4">noctune</h1></div>`,1)]),H(`div`,dp,[t[16]||=H(`h2`,{class:`text-4xl font-black text-black mb-2`},`WELCOME!`,-1),t[17]||=H(`p`,{class:`text-gray-600 mb-8`},`Login to continue`,-1),s.value?(B(),V(`p`,fp,j(s.value),1)):G(``,!0),H(`div`,pp,[t[7]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL/USERNAME`,-1),H(`div`,mp,[t[6]||=H(`div`,{class:`bg-noctune-teal p-3 border-r-2 border-black`},[H(`svg`,{class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})])],-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>r.value=e,onKeyup:Bo(c,[`enter`]),class:`flex-1 px-4 py-3 focus:outline-none text-black`,placeholder:`Enter your email`},null,544),[[To,r.value]])])]),H(`div`,hp,[t[11]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),H(`div`,gp,[t[10]||=H(`div`,{class:`bg-amber-200 p-3 border-r-2 border-black`},[H(`svg`,{class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z`})])],-1),Rn(H(`input`,{type:a.value?`text`:`password`,"onUpdate:modelValue":t[1]||=e=>i.value=e,onKeyup:Bo(c,[`enter`]),class:`flex-1 px-4 py-3 focus:outline-none text-black`,placeholder:`Enter your password`},null,40,_p),[[No,i.value]]),H(`button`,{onClick:t[2]||=e=>a.value=!a.value,class:`px-4 text-gray-500 hover:text-gray-700`},[a.value?(B(),V(`svg`,yp,[...t[9]||=[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 12a3 3 0 11-6 0 3 3 0 016 0z`},null,-1),H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z`},null,-1)]])):(B(),V(`svg`,vp,[...t[8]||=[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21`},null,-1)]]))])])]),t[18]||=H(`div`,{class:`text-right mb-6`},[H(`a`,{href:`#`,class:`text-sm text-gray-600 hover:text-black`},`Forgot password?`)],-1),H(`button`,{onClick:c,disabled:o.value,class:`w-full bg-noctune-orange border-2 border-black rounded-lg py-4 font-bold text-white text-xl flex items-center justify-center gap-3 hover:bg-orange-600 transition-colors disabled:opacity-50`},[o.value?(B(),V(`span`,xp)):(B(),V(z,{key:1},[t[12]||=H(`div`,{class:`bg-white/20 rounded p-1`},[H(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z`})])],-1),t[13]||=W(` LOGIN `,-1)],64))],8,bp),t[19]||=ia(`<div class="flex items-center my-6"><div class="flex-1 border-t-2 border-gray-300"></div><span class="px-4 bg-black text-white text-xs font-bold py-1 rounded">OR SIGN IN WITH</span><div class="flex-1 border-t-2 border-gray-300"></div></div><button class="w-full border-2 border-gray-300 rounded-xl py-3 flex items-center justify-center gap-3 hover:bg-gray-50 transition-colors"><svg class="w-6 h-6" viewBox="0 0 24 24"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"></path><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"></path><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z"></path><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"></path></svg><span class="font-bold text-gray-700">GOOGLE</span></button>`,2),H(`p`,Sp,[t[15]||=W(` Don't have an account yet? `,-1),U(n,{to:`/register`,class:`text-noctune-orange font-bold hover:underline`},{default:Ln(()=>[...t[14]||=[W(`Register now`,-1)]]),_:1})])])])])}}},wp={class:`min-h-screen bg-noctune-cream flex items-center justify-center p-8`},Tp={class:`w-full max-w-5xl bg-noctune-teal rounded-3xl border-4 border-black overflow-hidden flex shadow-2xl`},Ep={class:`w-1/2 p-12 relative`},Dp={class:`absolute top-8 right-12 grid grid-cols-4 gap-1`},Op={class:`w-1/2 bg-white rounded-3xl m-4 p-10`},kp={key:0,class:`text-red-500 text-sm mb-4 font-medium`},Ap={class:`mb-4`},jp={class:`mb-4`},Mp={class:`mb-4`},Np={class:`mb-6`},Pp=[`disabled`],Fp={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin`},Ip={key:1},Lp={class:`text-center mt-6 text-gray-600`},Rp={__name:`RegisterPage`,setup(e){let t=Dl(),n=Ff(),r=I(``),i=I(``),a=I(``),o=I(``),s=I(!1),c=I(``);async function l(){c.value=``,s.value=!0;let e=await n.register({name:r.value,username:i.value,email:a.value,password:o.value});s.value=!1,e.success?t.push(`/home`):c.value=e.message}return(e,t)=>{let n=wr(`router-link`);return B(),V(`div`,wp,[H(`div`,Tp,[H(`div`,Ep,[H(`div`,Dp,[(B(),V(z,null,R(16,e=>H(`span`,{key:e,class:`w-2 h-2 bg-black/40 rounded-full`})),64))]),t[4]||=ia(`<div class="flex flex-col items-center justify-center h-full"><div class="relative"><div class="w-48 h-48 flex items-center justify-center"><svg viewBox="0 0 120 120" class="w-full h-full"><polygon points="40,35 80,35 90,50 50,50" fill="#ff6b35"></polygon><polygon points="40,35 50,50 50,90 40,75" fill="#e85a2a"></polygon><polygon points="50,50 90,50 90,90 50,90" fill="#ff8c5a"></polygon><polygon points="40,75 50,90 50,70 40,55" fill="#1a1a1a"></polygon><polygon points="70,50 90,50 90,70 70,70" fill="#1a1a1a"></polygon><polygon points="50,70 70,70 70,90 50,90" fill="#1a1a1a"></polygon></svg></div></div><h1 class="text-4xl font-mono font-bold text-noctune-dark tracking-wider mt-4">noctune</h1></div>`,1)]),H(`div`,Op,[t[11]||=H(`h2`,{class:`text-4xl font-black text-black mb-2`},`JOIN US!`,-1),t[12]||=H(`p`,{class:`text-gray-600 mb-6`},`Create your account`,-1),c.value?(B(),V(`p`,kp,j(c.value),1)):G(``,!0),H(`div`,Ap,[t[5]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`NAME`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>r.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Your name`},null,512),[[To,r.value]])]),H(`div`,jp,[t[6]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`USERNAME`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[1]||=e=>i.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Choose a username`},null,512),[[To,i.value]])]),H(`div`,Mp,[t[7]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`EMAIL`,-1),Rn(H(`input`,{type:`email`,"onUpdate:modelValue":t[2]||=e=>a.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Enter your email`},null,512),[[To,a.value]])]),H(`div`,Np,[t[8]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`PASSWORD`,-1),Rn(H(`input`,{type:`password`,"onUpdate:modelValue":t[3]||=e=>o.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Create a password`},null,512),[[To,o.value]])]),H(`button`,{onClick:l,disabled:s.value,class:`w-full bg-noctune-orange border-2 border-black rounded-lg py-4 font-bold text-white text-xl flex items-center justify-center gap-3 hover:bg-orange-600 transition-colors disabled:opacity-50`},[s.value?(B(),V(`span`,Fp)):(B(),V(`span`,Ip,`REGISTER`))],8,Pp),H(`p`,Lp,[t[10]||=W(` Already have an account? `,-1),U(n,{to:`/login`,class:`text-noctune-orange font-bold hover:underline`},{default:Ln(()=>[...t[9]||=[W(`Login`,-1)]]),_:1})])])])])}}},zp={class:`p-8`},Bp={key:0,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},Vp={key:1,class:`text-center py-20 bg-white rounded-2xl border-2 border-black`},Hp={key:2,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},Up=[`onClick`],Wp={class:`aspect-square bg-gray-300 relative overflow-hidden`},Gp=[`src`],Kp={class:`absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors flex items-center justify-center`},qp={key:0,class:`w-6 h-6 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Jp={key:1,class:`w-6 h-6 ml-1 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},Yp={class:`p-3`},Xp={class:`flex items-center justify-between`},Zp={class:`flex-1 min-w-0`},Qp={class:`text-sm font-bold text-black truncate`},$p={class:`text-xs text-gray-500 truncate`},em=[`onClick`],tm={__name:`LandingPage`,setup(e){let t=rp(),n=ip(),r=Ff(),{requireAuth:i}=bg(),a=I([]),o=I(!0);function s(e){return t.currentTrack?._id===e._id}function c(e){return r.likedTrackIds?.has(e._id)}function l(e){if(s(e)){t.togglePlay();return}let r=a.value.findIndex(t=>t._id===e._id);n.setQueue(a.value,r),t.setTrack(e),t.play()}function u(){a.value.length&&l(a.value[0])}function d(e){i({redirectTo:`/login`,onAuthenticated:()=>r.toggleLike(e._id)})}return mr(async()=>{try{let{data:e}=await $.get(`/tracks`);e.success&&(a.value=e.data)}catch{}finally{o.value=!1}}),(e,n)=>{let r=wr(`router-link`);return B(),V(`div`,zp,[H(`div`,{class:`flex items-start gap-8 mb-12`},[H(`div`,{class:`flex-1`},[n[1]||=H(`h1`,{class:`text-5xl font-black text-black leading-tight mb-2`},[W(`MUSIC`),H(`br`),W(`THAT HITS`)],-1),n[2]||=H(`div`,{class:`inline-block bg-noctune-orange px-4 py-2 mb-4 border-b-4 border-black`},[H(`span`,{class:`text-4xl font-black text-black`},`DIFFERENT.`)],-1),n[3]||=H(`p`,{class:`text-gray-600 mb-6`},`You Vibe. Your sound. Only on Noctune.`,-1),H(`div`,{class:`flex gap-4`},[H(`button`,{onClick:u,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold hover:bg-yellow-400 transition-colors rounded-lg`},`PLAY NOW`),n[0]||=H(`button`,{class:`bg-gray-200 border-2 border-black px-6 py-3 font-bold hover:bg-gray-300 transition-colors rounded-lg`},`EXPLORE`,-1)])]),n[4]||=H(`div`,{class:`w-80 h-80 rounded-2xl overflow-hidden border-4 border-black flex-shrink-0`},[H(`img`,{src:`https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=400&h=400&fit=crop`,alt:`Music illustration`,class:`w-full h-full object-cover`})],-1)]),H(`section`,null,[n[13]||=H(`h2`,{class:`text-2xl font-black text-black mb-6 flex items-center`},[W(` TRENDING NOW `),H(`svg`,{class:`w-5 h-5 ml-2`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})])],-1),o.value?(B(),V(`div`,Bp,[(B(),V(z,null,R(4,e=>H(`div`,{key:e,class:`animate-pulse rounded-2xl border-2 border-black overflow-hidden`},[...n[5]||=[H(`div`,{class:`aspect-square bg-gray-300`},null,-1),H(`div`,{class:`p-3 space-y-2`},[H(`div`,{class:`h-3 bg-gray-300 rounded w-3/4`}),H(`div`,{class:`h-2 bg-gray-300 rounded w-1/2`})],-1)]])),64))])):a.value.length===0?(B(),V(`div`,Vp,[n[7]||=H(`svg`,{class:`w-24 h-24 mx-auto text-gray-300 mb-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 3v10.55c-.59-.34-1.27-.55-2-.55C7.79 13 6 14.79 6 17s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z`})],-1),n[8]||=H(`p`,{class:`text-gray-500 mb-2 text-lg`},`No tracks yet`,-1),n[9]||=H(`p`,{class:`text-gray-400 text-sm mb-4`},`Be the first to upload music!`,-1),U(r,{to:`/admin/tracks`,class:`inline-block bg-noctune-orange border-2 border-black px-6 py-3 font-bold rounded-lg hover:bg-orange-500 transition-colors`},{default:Ln(()=>[...n[6]||=[W(`UPLOAD TRACK`,-1)]]),_:1})])):(B(),V(`div`,Hp,[(B(!0),V(z,null,R(a.value,e=>(B(),V(`div`,{key:e._id,onClick:t=>l(e),class:A([`bg-white rounded-2xl overflow-hidden hover:scale-[1.02] transition-transform cursor-pointer group`,s(e)?`border-4 border-noctune-teal`:`border-2 border-black`])},[H(`div`,Wp,[e.coverUrl?(B(),V(`img`,{key:0,src:L(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,Gp)):G(``,!0),H(`div`,Kp,[H(`div`,{class:A([`w-12 h-12 rounded-full flex items-center justify-center border-2 border-black opacity-0 group-hover:opacity-100 transition-opacity`,s(e)&&L(t).isPlaying?`bg-white`:`bg-noctune-yellow`])},[s(e)&&L(t).isPlaying?(B(),V(`svg`,qp,[...n[10]||=[H(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(B(),V(`svg`,Jp,[...n[11]||=[H(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))],2)])]),H(`div`,Yp,[H(`div`,Xp,[H(`div`,Zp,[H(`p`,Qp,j(e.title),1),H(`p`,$p,j(e.artist),1)]),H(`button`,{onClick:Ro(t=>d(e),[`stop`]),class:`ml-2 flex-shrink-0`},[(B(),V(`svg`,{class:A([`w-5 h-5`,c(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...n[12]||=[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))],8,em)])])],10,Up))),128))]))])])}}},nm={class:`p-8`},rm={class:`mb-12`},im={key:0,class:`text-center py-12 text-gray-500`},am={key:1,class:`text-center py-12`},om={key:2,class:`text-center py-12`},sm={key:3,class:`grid grid-cols-4 gap-6`},cm=[`onClick`],lm={class:`aspect-square bg-gray-300 relative overflow-hidden`},um=[`src`],dm={key:0,class:`w-5 h-5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},fm={key:1,class:`w-5 h-5 ml-0.5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},pm={class:`p-3`},mm={class:`text-sm font-bold text-black truncate`},hm={class:`text-xs text-gray-500 truncate`},gm={key:0,class:`space-y-3 p-4`},_m={key:1,class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},vm={class:`divide-y divide-gray-200`},ym=[`onClick`],bm={class:`flex-1 flex items-center gap-3`},xm={class:`text-sm text-gray-400 w-6`},Sm={key:0,class:`w-4 h-4 text-noctune-teal inline`,fill:`currentColor`,viewBox:`0 0 24 24`},Cm={key:1},wm={class:`w-10 h-10 rounded-lg flex-shrink-0 overflow-hidden bg-gray-300 border border-black`},Tm=[`src`],Em={class:`w-40 text-center text-gray-600 text-sm truncate`},Dm={class:`w-32 text-center text-gray-600 text-sm truncate`},Om=[`onClick`],km={__name:`LibraryPage`,setup(e){let t=rp(),n=ip(),r=Ff(),{requireAuth:i}=bg(),a=I([]),o=I([]),s=I(!0),c=I(!0);function l(e){return t.currentTrack?._id===e._id}function u(e){return r.likedTrackIds?.has(e._id)}function d(e,r=!1,i){if(l(e)){t.togglePlay();return}let s=r?a.value:o.value,c=i??s.findIndex(t=>t._id===e._id);n.setQueue(s,c),t.setTrack(e),t.play()}function f(e){let t=u(e);i({redirectTo:`/login`,onAuthenticated:async()=>{await r.toggleLike(e._id),t&&(a.value=a.value.filter(t=>t._id!==e._id))}})}return mr(async()=>{if(r.isLoggedIn)try{let{data:e}=await $.get(`/tracks/liked`);e.success&&(a.value=e.data||[])}catch{}s.value=!1;try{let{data:e}=await $.get(`/tracks`);e.success&&(o.value=e.data)}catch{}finally{c.value=!1}}),(e,n)=>{let i=wr(`router-link`);return B(),V(`div`,nm,[H(`section`,rm,[n[6]||=H(`h2`,{class:`text-3xl font-black text-black mb-6`},`Liked Tracks`,-1),s.value?(B(),V(`div`,im,`Loading...`)):L(r).isLoggedIn?a.value.length===0?(B(),V(`div`,om,[n[3]||=H(`p`,{class:`text-gray-500 mb-4`},`No liked tracks yet`,-1),U(i,{to:`/home`,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold inline-block hover:bg-yellow-400 transition-colors rounded-lg`},{default:Ln(()=>[...n[2]||=[W(`Discover Music`,-1)]]),_:1})])):(B(),V(`div`,sm,[(B(!0),V(z,null,R(a.value,e=>(B(),V(`div`,{key:e._id,onClick:t=>d(e,!0),class:`group cursor-pointer bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform`},[H(`div`,lm,[e.coverUrl?(B(),V(`img`,{key:0,src:L(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,um)):G(``,!0),H(`div`,{class:A([`absolute bottom-2 right-2 w-10 h-10 rounded-full flex items-center justify-center border-2 border-black opacity-0 group-hover:opacity-100 transition-opacity`,l(e)?`bg-white`:`bg-noctune-yellow`])},[l(e)&&L(t).isPlaying?(B(),V(`svg`,dm,[...n[4]||=[H(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(B(),V(`svg`,fm,[...n[5]||=[H(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))],2)]),H(`div`,pm,[H(`p`,mm,j(e.title),1),H(`p`,hm,j(e.artist),1)])],8,cm))),128))])):(B(),V(`div`,am,[n[1]||=H(`p`,{class:`text-gray-500 mb-4`},`Login to see your liked tracks`,-1),U(i,{to:`/login`,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold inline-block hover:bg-yellow-400 transition-colors rounded-lg`},{default:Ln(()=>[...n[0]||=[W(`Login`,-1)]]),_:1})]))]),H(`section`,null,[n[11]||=H(`h2`,{class:`text-2xl font-black text-black mb-6 flex items-center`},[W(` All Tracks `),H(`svg`,{class:`w-5 h-5 ml-2`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})])],-1),c.value?(B(),V(`div`,gm,[(B(),V(z,null,R(5,e=>H(`div`,{key:e,class:`flex items-center gap-4 animate-pulse`},[...n[7]||=[ia(`<div class="w-8 h-4 bg-gray-200 rounded"></div><div class="w-10 h-10 bg-gray-200 rounded-lg"></div><div class="h-3 bg-gray-200 rounded flex-1"></div><div class="h-3 bg-gray-200 rounded w-24"></div><div class="h-3 bg-gray-200 rounded w-20"></div>`,5)]])),64))])):(B(),V(`div`,_m,[n[10]||=ia(`<div class="bg-noctune-teal px-6 py-3 flex items-center text-black font-bold border-b-4 border-black"><span class="flex-1">TITLE</span><span class="w-40 text-center">ARTIST</span><span class="w-32 text-center">ALBUM</span><span class="w-12 text-center"></span></div>`,1),H(`div`,vm,[(B(!0),V(z,null,R(o.value,(e,r)=>(B(),V(`div`,{key:e._id,onClick:t=>d(e,!1,r),class:A([`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`,l(e)?`bg-noctune-teal/10`:``])},[H(`div`,bm,[H(`span`,xm,[l(e)&&L(t).isPlaying?(B(),V(`svg`,Sm,[...n[8]||=[H(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(B(),V(`span`,Cm,j(r+1),1))]),H(`div`,wm,[e.coverUrl?(B(),V(`img`,{key:0,src:L(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,Tm)):G(``,!0)]),H(`span`,{class:A([`font-medium text-sm truncate`,l(e)?`text-noctune-teal`:`text-black`])},j(e.title),3)]),H(`span`,Em,j(e.artist),1),H(`span`,Dm,j(e.album),1),H(`button`,{onClick:Ro(t=>f(e),[`stop`]),class:`w-12 flex justify-center transition-colors`},[(B(),V(`svg`,{class:A([`w-5 h-5`,u(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...n[9]||=[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))],8,Om)],10,ym))),128))])]))])])}}},Am={class:`bg-white rounded-2xl border-4 border-black p-6 w-full max-w-md mx-4 shadow-[8px_8px_0px_0px_#000]`},jm={class:`flex items-center justify-between mb-6`},Mm={key:0,class:`text-red-500 text-sm mb-4 font-medium`},Nm={class:`space-y-4`},Pm=[`disabled`],Fm={key:0,class:`inline-block w-4 h-4 border-2 border-black border-t-transparent rounded-full animate-spin mr-2`},Im={__name:`CreatePlaylistModal`,props:{show:Boolean},emits:[`close`,`created`],setup(e,{emit:t}){let n=t,r=I(``),i=I(``),a=I(null),o=I(!1),s=I(``);function c(e){a.value=e.target.files[0]||null}async function l(){if(s.value=``,!r.value?.trim()){s.value=`Playlist name is required`;return}o.value=!0;try{let e=new FormData;e.append(`name`,r.value.trim()),i.value?.trim()&&e.append(`description`,i.value.trim()),a.value&&e.append(`playlistCover`,a.value);let{data:t}=await $.post(`/playlists`,e,{headers:{"Content-Type":`multipart/form-data`}});t.success&&(n(`created`,t.data),r.value=``,i.value=``,a.value=null)}catch(e){s.value=e.response?.data?.message||`Failed to create playlist`}finally{o.value=!1}}return(t,n)=>e.show?(B(),V(`div`,{key:0,class:`fixed inset-0 z-50 flex items-center justify-center bg-black/50`,onClick:n[3]||=Ro(e=>t.$emit(`close`),[`self`])},[H(`div`,Am,[H(`div`,jm,[n[4]||=H(`h2`,{class:`text-xl font-black text-black`},`CREATE PLAYLIST`,-1),H(`button`,{onClick:n[0]||=e=>t.$emit(`close`),class:`text-gray-500 hover:text-black text-2xl leading-none`},`×`)]),s.value?(B(),V(`p`,Mm,j(s.value),1)):G(``,!0),H(`div`,Nm,[H(`div`,null,[n[5]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-1 tracking-wider`},`NAME`,-1),Rn(H(`input`,{"onUpdate:modelValue":n[1]||=e=>r.value=e,type:`text`,placeholder:`My awesome playlist`,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[To,r.value]])]),H(`div`,null,[n[6]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-1 tracking-wider`},`DESCRIPTION`,-1),Rn(H(`textarea`,{"onUpdate:modelValue":n[2]||=e=>i.value=e,placeholder:`Optional description`,rows:`2`,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none resize-none text-black`},null,512),[[To,i.value]])]),H(`div`,null,[n[7]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-1 tracking-wider`},`COVER IMAGE`,-1),H(`input`,{type:`file`,accept:`image/*`,onChange:c,class:`w-full text-sm text-gray-600 file:mr-3 file:py-2 file:px-4 file:border-2 file:border-black file:rounded-lg file:font-bold file:text-sm file:bg-noctune-yellow file:cursor-pointer`},null,32)]),H(`button`,{onClick:l,disabled:o.value,class:`w-full bg-noctune-teal border-2 border-black rounded-lg py-3 font-bold text-black hover:bg-teal-600 transition-colors disabled:opacity-50 cursor-pointer`},[o.value?(B(),V(`span`,Fm)):G(``,!0),W(` `+j(o.value?`Creating...`:`CREATE PLAYLIST`),1)],8,Pm)])])])):G(``,!0)}},Lm={class:`p-8`},Rm={key:0,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},zm={key:1,class:`text-center py-20`},Bm={key:2,class:`grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4`},Vm=[`onClick`],Hm={class:`aspect-square bg-gray-300 relative overflow-hidden`},Um=[`src`],Wm={key:1,class:`w-full h-full flex items-center justify-center bg-gradient-to-br from-noctune-teal/20 to-noctune-yellow/20`},Gm={class:`p-3`},Km={class:`font-bold text-sm truncate text-black`},qm={class:`text-xs text-gray-500`},Jm={__name:`PlaylistPage`,setup(e){let t=Dl(),n=Ff(),{requireAuth:r}=bg(),i=I([]),a=I(!0),o=I(!1);function s(){r({redirectTo:`/login`,onAuthenticated:()=>{o.value=!0}})}function c(e){o.value=!1,i.value.unshift(e)}return mr(async()=>{if(!n.isLoggedIn){a.value=!1;return}try{let{data:e}=await $.get(`/playlists`);e.success&&(i.value=e.data)}catch{}finally{a.value=!1}}),(e,n)=>(B(),V(`div`,Lm,[H(`div`,{class:`flex items-center justify-between mb-6`},[n[2]||=H(`h1`,{class:`text-3xl font-black text-black`},`YOUR PLAYLISTS`,-1),H(`button`,{onClick:s,class:`bg-noctune-teal border-2 border-black px-4 py-2 font-bold flex items-center gap-2 rounded-lg hover:bg-teal-600 transition-colors cursor-pointer`},[...n[1]||=[H(`svg`,{class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,"stroke-width":`3`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 4v16m8-8H4`})],-1),W(` NEW PLAYLIST `,-1)]])]),a.value?(B(),V(`div`,Rm,[(B(),V(z,null,R(4,e=>H(`div`,{key:e,class:`animate-pulse bg-gray-200 rounded-2xl border-2 border-black h-64`})),64))])):i.value.length===0?(B(),V(`div`,zm,[n[3]||=H(`svg`,{class:`w-24 h-24 mx-auto text-gray-300 mb-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),n[4]||=H(`p`,{class:`text-gray-500 mb-2 text-lg`},`No playlists yet`,-1),n[5]||=H(`p`,{class:`text-gray-400 text-sm mb-4`},`Create your first playlist to start organizing your music`,-1),H(`button`,{onClick:s,class:`bg-noctune-yellow border-2 border-black px-6 py-3 font-bold rounded-lg hover:bg-yellow-400 transition-colors cursor-pointer`},` CREATE YOUR FIRST PLAYLIST `)])):(B(),V(`div`,Bm,[(B(!0),V(z,null,R(i.value,e=>(B(),V(`div`,{key:e._id,onClick:n=>L(t).push(`/playlist/${e._id}`),class:`bg-white rounded-2xl border-2 border-black overflow-hidden hover:scale-[1.02] transition-transform cursor-pointer group`},[H(`div`,Hm,[e.coverUrl?(B(),V(`img`,{key:0,src:L(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,Um)):(B(),V(`div`,Wm,[...n[6]||=[H(`svg`,{class:`w-20 h-16 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1)]])),n[7]||=H(`div`,{class:`absolute inset-0 bg-black/0 group-hover:bg-black/10 transition-colors`},null,-1)]),H(`div`,Gm,[H(`p`,Km,j(e.name),1),H(`p`,qm,j(e.tracks?.length||0)+` songs`,1)])],8,Vm))),128))])),U(Im,{show:o.value,onClose:n[0]||=e=>o.value=!1,onCreated:c},null,8,[`show`])]))}},Ym={class:`p-8`},Xm={key:0,class:`space-y-6 animate-pulse`},Zm={class:`space-y-3`},Qm={class:`flex items-start gap-8 mb-8`},$m={class:`w-56 h-56 rounded-2xl overflow-hidden border-4 border-black flex-shrink-0 bg-black`},eh=[`src`],th={key:1,class:`w-full h-full flex items-center justify-center`},nh={class:`flex-1`},rh={class:`text-4xl font-black text-black mb-4 leading-tight`},ih={key:0,class:`text-gray-600 mb-4`},ah={class:`flex items-center gap-3 text-gray-600 mb-6`},oh={class:`font-medium`},sh={class:`flex gap-4`},ch=[`disabled`],lh={class:`bg-white rounded-2xl border-4 border-black overflow-hidden`},uh={class:`divide-y divide-gray-200`},dh=[`onClick`],fh={class:`w-12 text-center`},ph={key:0,class:`w-4 h-4 text-noctune-teal mx-auto`,fill:`currentColor`,viewBox:`0 0 24 24`},mh={key:1,class:`text-gray-500`},hh={class:`flex-1 flex items-center gap-4`},gh={class:`w-12 h-12 rounded-lg flex-shrink-0 overflow-hidden bg-gray-300 border border-black`},_h=[`src`],vh={class:`w-48 text-center text-gray-600 text-sm truncate`},yh=[`onClick`],bh={key:0,class:`p-8 text-center text-gray-500`},xh={key:2,class:`text-center py-20 text-gray-500`},Sh={__name:`PlaylistDetail`,setup(e){let t=Ol(),n=rp(),r=ip(),i=Ff(),{requireAuth:a}=bg(),o=I(null),s=I(!0);function c(e){return n.currentTrack?._id===e._id}function l(e){return i.likedTrackIds?.has(e._id)}function u(e){if(!o.value?.tracks?.length)return;let t=o.value.tracks[e];if(c(t)){n.togglePlay();return}let i=o.value.tracks;r.setQueue(i,e),n.setTrack(t),n.play()}function d(){o.value?.tracks?.length&&u(0)}function f(e){a({redirectTo:`/login`,onAuthenticated:()=>i.toggleLike(e._id)})}return mr(async()=>{let e=t.params.id;try{if(e){let{data:t}=await $.get(`/playlists/${e}`);t.success&&(o.value=t.data)}}catch{o.value=null}finally{s.value=!1}}),(e,t)=>(B(),V(`div`,Ym,[s.value?(B(),V(`div`,Xm,[t[1]||=ia(`<div class="flex items-start gap-8 mb-8"><div class="w-56 h-56 rounded-2xl bg-gray-300 border-4 border-black"></div><div class="flex-1 space-y-4"><div class="h-6 bg-gray-200 rounded w-24"></div><div class="h-10 bg-gray-200 rounded w-64"></div><div class="h-4 bg-gray-200 rounded w-32"></div><div class="h-10 bg-gray-200 rounded w-28"></div></div></div>`,1),H(`div`,Zm,[(B(),V(z,null,R(5,e=>H(`div`,{key:e,class:`flex items-center gap-4`},[...t[0]||=[H(`div`,{class:`w-8 h-4 bg-gray-200 rounded`},null,-1),H(`div`,{class:`w-10 h-10 bg-gray-200 rounded-lg`},null,-1),H(`div`,{class:`h-3 bg-gray-200 rounded flex-1`},null,-1),H(`div`,{class:`h-3 bg-gray-200 rounded w-24`},null,-1)]])),64))])])):o.value?(B(),V(z,{key:1},[H(`div`,Qm,[H(`div`,$m,[o.value.coverUrl?(B(),V(`img`,{key:0,src:L(np)(o.value.coverUrl),class:`w-full h-full object-cover`},null,8,eh)):(B(),V(`div`,th,[...t[2]||=[ia(`<svg class="w-40 h-24 text-white/60" viewBox="0 0 100 50"><rect x="5" y="20" width="4" height="15" fill="currentColor"></rect><rect x="12" y="10" width="4" height="30" fill="currentColor"></rect><rect x="19" y="15" width="4" height="20" fill="currentColor"></rect><rect x="26" y="5" width="4" height="40" fill="currentColor"></rect><rect x="33" y="12" width="4" height="26" fill="currentColor"></rect><rect x="40" y="8" width="4" height="34" fill="currentColor"></rect><rect x="47" y="15" width="4" height="20" fill="currentColor"></rect><rect x="54" y="18" width="4" height="14" fill="currentColor"></rect><rect x="61" y="12" width="4" height="26" fill="currentColor"></rect><rect x="68" y="8" width="4" height="34" fill="currentColor"></rect><rect x="75" y="15" width="4" height="20" fill="currentColor"></rect><rect x="82" y="20" width="4" height="15" fill="currentColor"></rect><rect x="89" y="22" width="4" height="10" fill="currentColor"></rect></svg>`,1)]]))]),H(`div`,nh,[t[4]||=H(`span`,{class:`inline-block bg-noctune-teal text-black text-xs font-bold px-3 py-1 rounded mb-3 border border-black`},`PLAYLIST`,-1),H(`h1`,rh,j(o.value.name),1),o.value.description?(B(),V(`p`,ih,j(o.value.description),1)):G(``,!0),H(`div`,ah,[H(`span`,oh,j(o.value.tracks?.length||0)+` songs`,1)]),H(`div`,sh,[H(`button`,{onClick:d,disabled:!o.value.tracks?.length,class:`bg-noctune-teal border-2 border-black px-6 py-2 font-bold flex items-center gap-2 rounded-lg hover:bg-teal-600 transition-colors disabled:opacity-50 cursor-pointer`},[...t[3]||=[H(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M8 5v14l11-7z`})],-1),W(` PLAY `,-1)]],8,ch)])])]),H(`div`,lh,[t[7]||=ia(`<div class="bg-noctune-teal px-6 py-3 flex items-center text-black font-bold border-b-4 border-black"><span class="w-12 text-center">#</span><span class="flex-1 text-center">TITLE</span><span class="w-48 text-center">ARTIST</span><span class="w-12 text-center"></span></div>`,1),H(`div`,uh,[(B(!0),V(z,null,R(o.value.tracks,(e,r)=>(B(),V(`div`,{key:e._id,onClick:e=>u(r),class:A([`px-6 py-3 flex items-center hover:bg-gray-50 transition-colors cursor-pointer`,c(e)?`bg-noctune-teal/10`:``])},[H(`span`,fh,[c(e)&&L(n).isPlaying?(B(),V(`svg`,ph,[...t[5]||=[H(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(B(),V(`span`,mh,j(r+1),1))]),H(`div`,hh,[H(`div`,gh,[e.coverUrl?(B(),V(`img`,{key:0,src:L(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,_h)):G(``,!0)]),H(`span`,{class:A([`font-medium text-sm truncate`,c(e)?`text-noctune-teal`:`text-black`])},j(e.title),3)]),H(`span`,vh,j(e.artist),1),H(`button`,{onClick:Ro(t=>f(e),[`stop`]),class:`w-12 flex justify-center transition-colors cursor-pointer`},[(B(),V(`svg`,{class:A([`w-5 h-5`,l(e)?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...t[6]||=[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))],8,yh)],10,dh))),128)),o.value.tracks?.length?G(``,!0):(B(),V(`div`,bh,`No tracks in this playlist yet`))])])],64)):(B(),V(`div`,xh,`Playlist not found`))]))}},Ch={class:`p-8`},wh={class:`bg-white rounded-2xl border-4 border-black p-6 mb-6 flex items-center gap-8`},Th={class:`w-40 h-40 rounded-full border-4 border-black overflow-hidden flex-shrink-0 bg-gray-300`},Eh=[`src`],Dh={key:1,class:`w-full h-full flex items-center justify-center`},Oh={class:`flex-1`},kh={class:`text-3xl font-black text-black mb-1`},Ah={class:`text-gray-600 mb-3`},jh={class:`inline-flex items-center gap-2 border-2 border-noctune-orange text-noctune-orange px-3 py-1 rounded-full mb-4`},Mh={class:`text-sm font-medium`},Nh={class:`flex gap-4`},Ph={key:0,class:`bg-white rounded-2xl border-4 border-black p-6 mb-6`},Fh={key:0,class:`text-red-500 text-sm mb-4`},Ih={key:1,class:`text-green-600 text-sm mb-4`},Lh={class:`space-y-4 max-w-md`},Rh=[`disabled`],zh={key:0,class:`inline-block w-4 h-4 border-2 border-black border-t-transparent rounded-full animate-spin mr-1`},Bh={class:`bg-white rounded-2xl border-4 border-black p-6 mb-6 flex justify-center gap-12`},Vh={class:`flex items-center gap-4`},Hh={class:`text-2xl font-black text-black`},Uh={__name:`ProfilePage`,setup(e){let t=Dl(),n=Ff(),r=I(!1),i=I(``),a=I(``),o=I(``),s=I(null),c=I(!1),l=I(``),u=I(``),d=I(0),f=K(()=>n.user?.name||n.user?.username||`User`);function p(){r.value=!r.value,r.value&&(i.value=n.user?.name||``,a.value=n.user?.username||``,o.value=n.user?.email||``,s.value=null,l.value=``,u.value=``)}function m(e){s.value=e.target.files[0]||null}async function h(){l.value=``,u.value=``,c.value=!0;try{let e=new FormData;e.append(`name`,i.value),e.append(`username`,a.value),e.append(`email`,o.value),s.value&&e.append(`avatar`,s.value);let t=await n.updateProfile(e);t.success?(u.value=`Profile updated!`,setTimeout(()=>{r.value=!1},1500)):l.value=t.message}catch{l.value=`Update failed`}finally{c.value=!1}}async function g(){await n.logout(),t.push(`/login`)}return mr(async()=>{if(!n.isLoggedIn){t.push(`/login`);return}try{let{data:e}=await $.get(`/tracks/liked`);e.success&&(d.value=e.data.likedTracks?.length||0)}catch{}}),(e,t)=>(B(),V(`div`,Ch,[H(`div`,wh,[H(`div`,Th,[L(n).user?.avatarUrl?(B(),V(`img`,{key:0,src:L(np)(L(n).user.avatarUrl),alt:`Profile`,class:`w-full h-full object-cover`},null,8,Eh)):(B(),V(`div`,Dh,[...t[3]||=[H(`svg`,{class:`w-16 h-16 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})],-1)]]))]),H(`div`,Oh,[H(`h1`,kh,j(f.value),1),H(`p`,Ah,`@`+j(L(n).user?.username||`username`),1),H(`div`,jh,[t[4]||=H(`svg`,{class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z`})],-1),H(`span`,Mh,j(L(n).user?.role===`admin`?`Admin`:`Premium Member`),1)]),H(`div`,Nh,[H(`button`,{onClick:p,class:`border-2 border-black px-4 py-2 rounded-lg font-medium flex items-center gap-2 hover:bg-gray-100 transition-colors`},[t[5]||=H(`svg`,{class:`w-4 h-4`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z`})],-1),W(` `+j(r.value?`Cancel`:`Edit Profile`),1)])])])]),r.value?(B(),V(`div`,Ph,[t[11]||=H(`h3`,{class:`text-xl font-black text-black mb-4`},`Edit Profile`,-1),l.value?(B(),V(`p`,Fh,j(l.value),1)):G(``,!0),u.value?(B(),V(`p`,Ih,j(u.value),1)):G(``,!0),H(`div`,Lh,[H(`div`,null,[t[6]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`NAME`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>i.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[To,i.value]])]),H(`div`,null,[t[7]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`USERNAME`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[1]||=e=>a.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[To,a.value]])]),H(`div`,null,[t[8]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`EMAIL`,-1),Rn(H(`input`,{type:`email`,"onUpdate:modelValue":t[2]||=e=>o.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-2 focus:outline-none text-black`},null,512),[[To,o.value]])]),H(`div`,null,[t[9]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-1`},`AVATAR`,-1),H(`input`,{type:`file`,accept:`image/*`,onChange:m,class:`w-full text-sm`},null,32)]),H(`button`,{onClick:h,disabled:c.value,class:`bg-noctune-teal border-2 border-black px-6 py-2 font-bold rounded-lg hover:bg-teal-600 transition-colors disabled:opacity-50`},[c.value?(B(),V(`span`,zh)):G(``,!0),t[10]||=W(` Save Changes `,-1)],8,Rh)])])):G(``,!0),H(`div`,Bh,[H(`div`,Vh,[t[13]||=H(`div`,{class:`w-14 h-14 bg-noctune-orange rounded-xl flex items-center justify-center border-2 border-black`},[H(`svg`,{class:`w-7 h-7 text-white`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z`})])],-1),H(`div`,null,[H(`p`,Hh,j(d.value),1),t[12]||=H(`p`,{class:`text-sm text-gray-500`},`Liked Songs`,-1)])])]),H(`button`,{onClick:g,class:`w-full bg-noctune-orange border-4 border-black rounded-2xl py-4 font-bold text-black flex items-center justify-center gap-3 hover:bg-orange-600 transition-colors`},[...t[14]||=[H(`svg`,{class:`w-6 h-6`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1`})],-1),W(` Logout `,-1)]])]))}},Wh={class:`bg-noctune-cream flex flex-col h-full`},Gh={class:`p-4 space-y-2`},Kh={class:`relative group`},qh={class:`absolute left-0 top-full mt-1 w-56 bg-white border-2 border-black rounded-lg shadow-[4px_4px_0px_0px_#000] opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 z-50 max-h-72 overflow-y-auto`},Jh={key:0,class:`p-2`},Yh=[`onClick`],Xh={class:`truncate`},Zh={key:1,class:`p-4 text-center text-sm text-gray-500`},Qh={class:`border-t-2 border-gray-200 p-2`},$h={__name:`Sidebar`,setup(e){let t=Ol(),n=Dl(),r=Ff(),i=I([]),a=I(!1),{requireAuth:o}=bg(),s=e=>t.path===e,c=e=>t.path.startsWith(e);async function l(){if(r.isLoggedIn)try{let{data:e}=await $.get(`/playlists`);e.success&&(i.value=e.data)}catch{}}function u(){o({redirectTo:`/login`,onAuthenticated:()=>{a.value=!0}})}function d(e){a.value=!1,i.value.unshift(e)}return mr(l),(e,t)=>{let o=wr(`router-link`);return B(),V(`aside`,Wh,[H(`nav`,Gh,[U(o,{to:`/home`,class:A([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-teal/20 transition-colors`,{"bg-noctune-teal text-black":s(`/home`)}])},{default:Ln(()=>[...t[1]||=[H(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z`})],-1),H(`span`,{class:`tracking-wide`},`HOME`,-1)]]),_:1},8,[`class`]),U(o,{to:`/library`,class:A([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-teal/20 transition-colors`,{"bg-noctune-teal text-black":s(`/library`)}])},{default:Ln(()=>[...t[2]||=[H(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z`})],-1),H(`span`,{class:`tracking-wide`},`LIBRARY`,-1)]]),_:1},8,[`class`]),H(`div`,Kh,[U(o,{to:`/playlist`,class:A([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-teal/20 transition-colors`,{"bg-noctune-teal text-black":s(`/playlist`)||c(`/playlist/`)}])},{default:Ln(()=>[...t[3]||=[H(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),H(`span`,{class:`tracking-wide`},`PLAYLIST`,-1),H(`svg`,{class:`w-4 h-4 ml-auto text-gray-500 group-hover:rotate-180 transition-transform`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M7 10l5 5 5-5z`})],-1)]]),_:1},8,[`class`]),H(`div`,qh,[i.value.length?(B(),V(`div`,Jh,[(B(!0),V(z,null,R(i.value,e=>(B(),V(`div`,{key:e._id,onClick:t=>L(n).push(`/playlist/${e._id}`),class:`flex items-center gap-2 px-3 py-2 rounded-lg cursor-pointer hover:bg-noctune-teal/20 transition-colors text-sm font-medium text-black`},[t[4]||=H(`svg`,{class:`w-4 h-4 flex-shrink-0 text-gray-500`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M3 10h11v2H3v-2zm0-4h11v2H3V6zm0 8h7v2H3v-2zm13-1v8l6-4-6-4z`})],-1),H(`span`,Xh,j(e.name),1)],8,Yh))),128))])):(B(),V(`div`,Zh,`No playlists yet`)),H(`div`,Qh,[U(o,{to:`/playlist`,class:`block px-3 py-2 rounded-lg text-sm font-bold text-noctune-teal hover:bg-noctune-teal/20 transition-colors text-center`},{default:Ln(()=>[...t[5]||=[W(` Browse All Playlists `,-1)]]),_:1})])])]),L(r).isAdmin?(B(),Xi(o,{key:0,to:`/admin/tracks`,class:A([`flex items-center gap-3 px-4 py-3 rounded-lg font-bold text-black hover:bg-noctune-orange/20 transition-colors`,{"bg-noctune-orange text-black":s(`/admin/tracks`)}])},{default:Ln(()=>[...t[6]||=[H(`svg`,{class:`w-6 h-6`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-3 17l-4-4 1.41-1.41L11 16.17l6.59-6.59L19 11l-8 8z`})],-1),H(`span`,{class:`tracking-wide`},`UPLOAD TRACK`,-1)]]),_:1},8,[`class`])):G(``,!0)]),t[8]||=H(`div`,{class:`mx-4 border-t-2 border-gray-300 my-2`},null,-1),H(`div`,{class:`px-4`},[H(`button`,{onClick:u,class:`w-full bg-noctune-yellow border-2 border-black rounded-lg py-3 px-4 font-bold flex items-center gap-2 hover:bg-yellow-400 transition-colors`},[...t[7]||=[H(`svg`,{class:`w-5 h-5`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`3`,d:`M12 4v16m8-8H4`})],-1),H(`span`,{class:`tracking-wide`},`CREATE PLAYLIST`,-1)]])]),t[9]||=H(`div`,{class:`flex-1`},null,-1),U(Im,{show:a.value,onClose:t[0]||=e=>a.value=!1,onCreated:d},null,8,[`show`])])}}},eg={class:`min-h-screen bg-noctune-cream flex flex-col`},tg={class:`flex flex-1`},ng={class:`flex-1 p-8 overflow-auto`},rg={class:`max-w-2xl mx-auto`},ig={key:0,class:`text-red-500 text-sm mb-4 font-medium`},ag={key:1,class:`text-green-600 text-sm mb-4 font-medium`},og={class:`bg-white rounded-2xl border-4 border-black p-8 space-y-6`},sg=[`src`],cg={key:1,class:`text-gray-500`},lg={key:0,class:`text-black font-medium`},ug={key:1,class:`text-gray-500`},dg=[`disabled`],fg={key:0,class:`inline-block w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin mr-2`},pg=[{path:`/`,redirect:`/home`},{path:`/login`,name:`Login`,component:Cp,meta:{guest:!0}},{path:`/register`,name:`Register`,component:Rp,meta:{guest:!0}},{path:`/home`,name:`Home`,component:tm},{path:`/library`,name:`Library`,component:km},{path:`/playlist`,name:`Playlist`,component:Jm},{path:`/playlist/:id`,name:`PlaylistDetail`,component:Sh},{path:`/profile`,name:`Profile`,component:Uh},{path:`/admin/tracks`,name:`AdminTracks`,component:{__name:`AdminPage`,setup(e){let t=Dl(),n=I(``),r=I(``),i=I(``),a=I(``),o=I(null),s=I(``),c=I(null),l=I(!1),u=I(``),d=I(``),f=I(null),p=I(null);function m(e){let t=e.target.files[0];t&&(o.value=t,s.value=URL.createObjectURL(t))}function h(e){let t=e.target.files[0];t&&(c.value=t)}async function g(){if(u.value=``,d.value=``,!n.value||!r.value||!i.value||!a.value||!o.value||!c.value){u.value=`All fields are required`;return}l.value=!0;try{let e=new FormData;e.append(`title`,n.value),e.append(`artist`,r.value),e.append(`album`,i.value),e.append(`genre`,a.value),e.append(`cover`,o.value),e.append(`audio`,c.value);let{data:l}=await $.post(`/admin/tracks`,e,{headers:{"Content-Type":`multipart/form-data`}});l.success&&(d.value=`Track uploaded successfully!`,n.value=``,r.value=``,i.value=``,a.value=``,o.value=null,s.value=``,c.value=null,setTimeout(()=>t.push(`/home`),1500))}catch(e){u.value=e.response?.data?.message||`Upload failed`}finally{l.value=!1}}return(e,t)=>(B(),V(`div`,eg,[H(`div`,tg,[H(`main`,ng,[H(`div`,rg,[t[12]||=H(`h1`,{class:`text-4xl font-black text-black mb-2`},`Upload Track`,-1),t[13]||=H(`p`,{class:`text-gray-600 mb-8`},`Add a new track to the library`,-1),u.value?(B(),V(`p`,ig,j(u.value),1)):G(``,!0),d.value?(B(),V(`p`,ag,j(d.value),1)):G(``,!0),H(`div`,og,[H(`div`,null,[t[6]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`TITLE`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[0]||=e=>n.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Track title`},null,512),[[To,n.value]])]),H(`div`,null,[t[7]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`ARTIST`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[1]||=e=>r.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Artist name`},null,512),[[To,r.value]])]),H(`div`,null,[t[8]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`ALBUM`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[2]||=e=>i.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`Album name`},null,512),[[To,i.value]])]),H(`div`,null,[t[9]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`GENRE`,-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":t[3]||=e=>a.value=e,class:`w-full border-2 border-black rounded-lg px-4 py-3 focus:outline-none text-black`,placeholder:`e.g. Pop, Rock, Jazz`},null,512),[[To,a.value]])]),H(`div`,null,[t[10]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`COVER IMAGE`,-1),H(`div`,{class:`border-2 border-dashed border-black rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50`,onClick:t[4]||=e=>f.value.click()},[s.value?(B(),V(`img`,{key:0,src:s.value,class:`w-32 h-32 object-cover mx-auto mb-2 rounded-lg border-2 border-black`},null,8,sg)):(B(),V(`p`,cg,`Click to upload cover image`)),H(`input`,{ref_key:`coverInput`,ref:f,type:`file`,accept:`image/*`,onChange:m,class:`hidden`},null,544)])]),H(`div`,null,[t[11]||=H(`label`,{class:`block text-xs font-bold text-gray-600 mb-2 tracking-wider`},`AUDIO FILE`,-1),H(`div`,{class:`border-2 border-dashed border-black rounded-lg p-6 text-center cursor-pointer hover:bg-gray-50`,onClick:t[5]||=e=>p.value.click()},[c.value?(B(),V(`p`,lg,j(c.value.name),1)):(B(),V(`p`,ug,` Click to upload audio file (MP3, WAV, FLAC) `)),H(`input`,{ref_key:`audioInput`,ref:p,type:`file`,accept:`.mp3,.wav,.flac`,onChange:h,class:`hidden`},null,544)])]),H(`button`,{onClick:g,disabled:l.value,class:`w-full bg-noctune-orange border-2 border-black rounded-lg py-4 font-bold text-white text-xl hover:bg-orange-600 transition-colors disabled:opacity-50`},[l.value?(B(),V(`span`,fg)):G(``,!0),W(` `+j(l.value?`Uploading...`:`UPLOAD TRACK`),1)],8,dg)])])])])]))}},meta:{admin:!0}}],mg=El({history:Kc(),routes:pg});mg.beforeEach((e,t,n)=>{let r=Ff();if(e.meta.admin&&!r.isAdmin||e.meta.guest&&r.isLoggedIn)return n(`/home`);n()});var hg=`modulepreload`,gg=function(e){return`/`+e},_g={},vg=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=gg(t,n),t in _g)return;_g[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:hg,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},yg=null;function bg(){let e=Ff();async function t({message:t,onAuthenticated:n,redirectTo:r}){if(e.isLoggedIn)n?.();else if(yg=n||null,r)mg.push(r);else if(t){let{useUiStore:e}=await vg(async()=>{let{useUiStore:e}=await Promise.resolve().then(()=>If);return{useUiStore:e}},void 0);e().showToast(t,`info`)}}function n(){if(yg){let e=yg;yg=null,e()}}return{requireAuth:t,executePending:n}}var xg={class:`bg-noctune-teal px-4 py-3 flex items-center justify-between border-b-4 border-black`},Sg={class:`flex items-center gap-4`},Cg={class:`flex-1 max-w-md mx-8 relative`},wg={class:`relative`},Tg={key:0,class:`absolute top-full mt-2 left-0 right-0 bg-white border-2 border-black rounded-lg shadow-[4px_4px_0px_0px_#000] max-h-96 overflow-y-auto z-50`},Eg={key:0,class:`p-2`},Dg=[`onClick`],Og={class:`w-8 h-8 bg-gray-300 rounded border border-black flex-shrink-0 overflow-hidden`},kg=[`src`],Ag={class:`min-w-0 flex-1`},jg={class:`text-sm font-medium text-black truncate`},Mg={class:`text-xs text-gray-500`},Ng={key:1,class:`p-2 border-t border-gray-200`},Pg=[`onClick`],Fg={key:2,class:`p-4 text-center text-gray-500 text-sm`},Ig={class:`flex items-center gap-4`},Lg={class:`w-8 h-8 rounded-full bg-noctune-dark overflow-hidden border-2 border-black`},Rg=[`src`],zg={key:1,class:`w-full h-full flex items-center justify-center`},Bg={__name:`AppHeader`,setup(e){let t=Dl(),n=Ff(),r=rp(),i=ip(),{requireAuth:a}=bg(),o=I(``),s=I(null),c=null;function l(){if(clearTimeout(c),!o.value.trim()){s.value=null;return}c=setTimeout(async()=>{try{let{data:e}=await $.get(`/search?q=${encodeURIComponent(o.value)}`);e.success&&(s.value=e.data)}catch{s.value=null}},300)}function u(){o.value=``,s.value=null}function d(e){u(),i.setQueue([e],0),r.setTrack(e),r.play()}function f(){a({redirectTo:`/login`,onAuthenticated:()=>t.push(`/library`)})}function p(){a({redirectTo:`/login`,onAuthenticated:()=>t.push(`/profile`)})}return(e,r)=>{let i=wr(`router-link`);return B(),V(`header`,xg,[H(`div`,Sg,[U(i,{to:`/home`,class:`text-black font-bold text-2xl tracking-wider font-mono`},{default:Ln(()=>[...r[1]||=[W(`NOCTUNE`,-1)]]),_:1})]),H(`div`,Cg,[H(`div`,wg,[r[2]||=H(`div`,{class:`absolute inset-y-0 left-3 flex items-center pointer-events-none`},[H(`svg`,{class:`w-5 h-5 text-gray-500`,fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z`})])],-1),Rn(H(`input`,{type:`text`,"onUpdate:modelValue":r[0]||=e=>o.value=e,onInput:l,onKeydown:Bo(u,[`escape`]),placeholder:`Search music, artist, album...`,class:`w-full bg-noctune-cream py-2 pl-10 pr-4 rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-black`},null,544),[[To,o.value]])]),s.value&&o.value?(B(),V(`div`,Tg,[s.value.tracks?.length?(B(),V(`div`,Eg,[r[3]||=H(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`TRACKS`,-1),(B(!0),V(z,null,R(s.value.tracks.slice(0,5),e=>(B(),V(`div`,{key:e._id,onClick:t=>d(e),class:`flex items-center gap-3 px-2 py-2 hover:bg-gray-100 rounded cursor-pointer`},[H(`div`,Og,[e.coverUrl?(B(),V(`img`,{key:0,src:L(np)(e.coverUrl),class:`w-full h-full object-cover`},null,8,kg)):G(``,!0)]),H(`div`,Ag,[H(`p`,jg,j(e.title),1),H(`p`,Mg,j(e.artist),1)])],8,Dg))),128))])):G(``,!0),s.value.artists?.length?(B(),V(`div`,Ng,[r[4]||=H(`p`,{class:`text-xs font-bold text-gray-500 px-2 py-1`},`ARTISTS`,-1),(B(!0),V(z,null,R(s.value.artists.slice(0,3),e=>(B(),V(`div`,{key:e.name,onClick:n=>L(t).push(`/home?artist=${e.name}`),class:`px-2 py-2 hover:bg-gray-100 rounded cursor-pointer text-sm font-medium text-black`},j(e.name),9,Pg))),128))])):G(``,!0),!s.value.tracks?.length&&!s.value.artists?.length?(B(),V(`div`,Fg,`No results found`)):G(``,!0)])):G(``,!0)]),H(`div`,Ig,[H(`button`,{onClick:f,class:`text-black hover:opacity-80`},[...r[5]||=[H(`svg`,{class:`w-7 h-7`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z`})],-1)]]),H(`button`,{onClick:p,class:`text-black hover:opacity-80`},[H(`div`,Lg,[L(n).user?.avatarUrl?(B(),V(`img`,{key:0,src:L(np)(L(n).user.avatarUrl),class:`w-full h-full object-cover`},null,8,Rg)):(B(),V(`div`,zg,[...r[6]||=[H(`svg`,{class:`w-5 h-5 text-white`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`})],-1)]]))])])])])}}},Vg=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},Hg={key:0,class:`fixed bottom-0 left-0 right-0 bg-noctune-dark border-t-4 border-black z-50`},Ug={class:`flex items-center px-4 py-2 max-w-screen-2xl mx-auto`},Wg={class:`flex items-center gap-3 w-80`},Gg={class:`w-12 h-12 bg-black rounded-lg overflow-hidden flex-shrink-0 border border-white/20`},Kg=[`src`],qg={key:1,class:`w-full h-full flex items-center justify-center`},Jg={class:`min-w-0`},Yg={class:`text-sm font-bold text-white truncate`},Xg={class:`text-xs text-gray-400 truncate`},Zg={class:`flex-1 flex flex-col items-center`},Qg={class:`flex items-center gap-4 mb-1`},$g={key:0,class:`w-5 h-5 text-black`,fill:`currentColor`,viewBox:`0 0 24 24`},e_={key:1,class:`w-5 h-5 text-black ml-0.5`,fill:`currentColor`,viewBox:`0 0 24 24`},t_={key:0,class:`absolute -top-2 -right-2 text-[9px] font-bold`},n_={class:`flex items-center gap-3 w-full max-w-lg`},r_={class:`text-xs text-gray-400 w-10 text-right`},i_=[`value`,`max`],a_={class:`text-xs text-gray-400 w-10`},o_={class:`w-80 flex items-center justify-end gap-3`},s_={class:`flex items-center gap-2`},c_=[`value`],l_=Vg({__name:`PlayerBar`,setup(e){let t=rp(),n=ip(),r=Ff(),{requireAuth:i}=bg(),a=I(!1),o=I(null);function s(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`}function c(e){let n=e.currentTarget.getBoundingClientRect();o.value=(e.clientX-n.left)/n.width*t.duration}function l(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}mr(()=>{t.onEnd(l)});let u=K(()=>np(t.currentTrack?.coverUrl));function d(e){t.seek(parseFloat(e.target.value))}function f(e){t.setVolume(parseInt(e.target.value))}function p(){let e=n.nextTrack();e&&(t.setTrack(e),t.play())}function m(){let e=n.prevTrack();e&&(t.setTrack(e),t.play())}function h(){if(!t.currentTrack)return;let e=t.currentTrack._id||t.currentTrack.id;i({redirectTo:`/login`,onAuthenticated:()=>r.toggleLike(e)})}return Gn(()=>t.currentTrack?._id,e=>{a.value=e?r.likedTrackIds.has(e):!1},{immediate:!0}),Gn(()=>r.user?.likedTracks?.length,()=>{let e=t.currentTrack?._id;e&&(a.value=r.likedTrackIds.has(e))}),(e,r)=>L(t).currentTrack?(B(),V(`div`,Hg,[H(`div`,Ug,[H(`div`,Wg,[H(`div`,Gg,[L(t).currentTrack.coverUrl?(B(),V(`img`,{key:0,src:u.value,alt:``,class:`w-full h-full object-cover`},null,8,Kg)):(B(),V(`div`,qg,[...r[6]||=[ia(`<svg class="w-8 h-6 text-white/60" viewBox="0 0 50 30" data-v-0368441b><rect x="2" y="10" width="3" height="10" fill="currentColor" data-v-0368441b></rect><rect x="8" y="5" width="3" height="20" fill="currentColor" data-v-0368441b></rect><rect x="14" y="8" width="3" height="14" fill="currentColor" data-v-0368441b></rect><rect x="20" y="3" width="3" height="24" fill="currentColor" data-v-0368441b></rect><rect x="26" y="7" width="3" height="16" fill="currentColor" data-v-0368441b></rect><rect x="32" y="5" width="3" height="20" fill="currentColor" data-v-0368441b></rect><rect x="38" y="9" width="3" height="12" fill="currentColor" data-v-0368441b></rect><rect x="44" y="11" width="3" height="8" fill="currentColor" data-v-0368441b></rect></svg>`,1)]]))]),H(`div`,Jg,[H(`p`,Yg,j(L(t).currentTrack.title),1),H(`p`,Xg,j(L(t).currentTrack.artist),1)])]),H(`div`,Zg,[H(`div`,Qg,[H(`button`,{onClick:r[0]||=e=>L(n).toggleShuffle(),class:A([`text-sm transition-colors`,L(n).shuffle?`text-noctune-teal`:`text-gray-400 hover:text-white`])},[...r[7]||=[H(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.04 2.04-3.13-3.13z`})],-1)]],2),H(`button`,{onClick:r[1]||=e=>m(),class:`text-gray-400 hover:text-white transition-colors`},[...r[8]||=[H(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M6 6h2v12H6zm3.5 6l8.5 6V6z`})],-1)]]),H(`button`,{onClick:r[2]||=e=>L(t).togglePlay(),class:`w-10 h-10 bg-white rounded-full flex items-center justify-center hover:scale-105 transition-transform`},[L(t).isPlaying?(B(),V(`svg`,$g,[...r[9]||=[H(`path`,{d:`M6 19h4V5H6v14zm8-14v14h4V5h-4z`},null,-1)]])):(B(),V(`svg`,e_,[...r[10]||=[H(`path`,{d:`M8 5v14l11-7z`},null,-1)]]))]),H(`button`,{onClick:r[3]||=e=>p(),class:`text-gray-400 hover:text-white transition-colors`},[...r[11]||=[H(`svg`,{class:`w-5 h-5`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z`})],-1)]]),H(`button`,{onClick:r[4]||=e=>L(n).cycleRepeat(),class:A([`text-sm transition-colors`,L(n).repeat===`off`?`text-gray-400 hover:text-white`:`text-noctune-teal`,L(n).repeat===`one`?`relative`:``])},[r[12]||=H(`svg`,{class:`w-4 h-4`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z`})],-1),L(n).repeat===`one`?(B(),V(`span`,t_,`1`)):G(``,!0)],2)]),H(`div`,n_,[H(`span`,r_,j(L(t).formattedProgress),1),H(`div`,{class:`relative flex-1`,onMousemove:c,onMouseleave:r[5]||=e=>o.value=null},[o.value===null?G(``,!0):(B(),V(`div`,{key:0,class:`absolute -top-6 left-1/2 -translate-x-1/2 bg-black text-white text-xs px-2 py-1 rounded whitespace-nowrap z-10`,style:fe({left:`${o.value/(L(t).duration||1)*100}%`})},j(s(o.value)),5)),H(`input`,{type:`range`,value:L(t).progress,onInput:d,min:`0`,max:L(t).duration||1,step:`0.1`,class:`w-full h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-player`},null,40,i_)],32),H(`span`,a_,j(L(t).formattedDuration),1)])]),H(`div`,o_,[H(`button`,{onClick:h,class:`transition-colors`},[(B(),V(`svg`,{class:A([`w-5 h-5`,a.value?`fill-red-400 text-red-400`:`text-gray-400 hover:text-red-400`]),fill:`none`,stroke:`currentColor`,viewBox:`0 0 24 24`},[...r[13]||=[H(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z`},null,-1)]],2))]),H(`div`,s_,[r[14]||=H(`svg`,{class:`w-4 h-4 text-gray-400`,fill:`currentColor`,viewBox:`0 0 24 24`},[H(`path`,{d:`M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z`})],-1),H(`input`,{type:`range`,value:L(t).volume,onInput:f,min:`0`,max:`100`,class:`w-20 h-1 bg-gray-600 rounded-full appearance-none cursor-pointer range-vol`},null,40,c_)])])])])):G(``,!0)}},[[`__scopeId`,`data-v-0368441b`]]);function u_(){let e=rp();ip();function t(t){if(![`INPUT`,`TEXTAREA`].includes(t.target.tagName))switch(t.code){case`Space`:t.preventDefault(),e.togglePlay();break;case`ArrowLeft`:e.seek(Math.max(0,e.progress-5));break;case`ArrowRight`:e.seek(Math.min(e.duration,e.progress+5));break;case`ArrowUp`:e.setVolume(Math.min(100,e.volume+5));break;case`ArrowDown`:e.setVolume(Math.max(0,e.volume-5));break}}mr(()=>window.addEventListener(`keydown`,t)),vr(()=>window.removeEventListener(`keydown`,t))}var d_={class:`min-h-screen bg-noctune-cream`},f_={key:0},p_={class:`flex`},m_={class:`fixed top-4 right-4 z-[100] space-y-2`},h_={class:`flex items-center gap-2`},g_=[`onClick`],__=Wo({__name:`App`,setup(e){let t=Ol(),n=Ff(),r=Lf(),i=rp(),a=K(()=>t.meta?.guest===!0),o=K(()=>!!i.currentTrack);u_();function s(e){return{info:`bg-noctune-teal text-black`,success:`bg-green-400 text-black`,error:`bg-red-400 text-white`}[e]||`bg-noctune-yellow text-black`}return mr(async()=>{await n.checkSession()}),(e,t)=>{let n=wr(`router-view`);return B(),V(`div`,d_,[a.value?(B(),Xi(n,{key:1})):(B(),V(`div`,f_,[U(Bg,{class:`sticky top-0 z-30`}),H(`div`,p_,[U($h,{class:`fixed left-0 top-[57px] bottom-0 w-64 border-r-4 border-black overflow-y-auto z-20`}),H(`main`,{class:A([`ml-64 flex-1 min-h-[calc(100vh-57px)]`,{"pb-20":o.value}])},[U(n)],2)]),U(l_)])),H(`div`,m_,[(B(!0),V(z,null,R(L(r).toasts,e=>(B(),V(`div`,{key:e.id,class:A([`px-4 py-3 rounded-lg border-2 border-black font-bold text-sm shadow-[4px_4px_0px_0px_#000] transition-all animate-slide-in`,s(e.type)])},[H(`div`,h_,[H(`span`,null,j(e.message),1),H(`button`,{onClick:t=>L(r).dismissToast(e.id),class:`ml-2 opacity-60 hover:opacity-100`},` × `,8,g_)])],2))),128))])])}}}),v_=ds();__.use(v_),__.use(mg),Ff(v_).checkSession().finally(()=>{__.mount(`#app`)});
|