From 9d1e83e95e0d67aaadbd79cd64562ae2930684e2 Mon Sep 17 00:00:00 2001 From: gnehs Date: Wed, 18 Jan 2023 14:26:52 +0800 Subject: [PATCH] updated frontend --- public/assets/{404-0d70ea11.js => 404-339ee317.js} | 2 +- public/assets/{Album-1909473a.js => Album-b572eba6.js} | 2 +- public/assets/{Albums-9eac24cd.js => Albums-f7ccb10a.js} | 2 +- public/assets/{Artists-4c56b53b.js => Artists-ef29ff45.js} | 2 +- public/assets/{Folders-dc80bb70.js => Folders-b6dcec00.js} | 2 +- public/assets/{Index-fa08ca72.js => Index-eaaa4aa4.js} | 2 +- public/assets/{Library-471bc22c.js => Library-2f384dbb.js} | 2 +- public/assets/{Log-c923a30d.js => Log-c4f1fe24.js} | 2 +- public/assets/{Login-0dbf0b54.js => Login-009fd789.js} | 2 +- public/assets/{Pins-7eb471ef.js => Pins-bbd13c76.js} | 2 +- public/assets/{Playlists-80ca990b.js => Playlists-464da93d.js} | 2 +- public/assets/{Quality-b3400423.js => Quality-aa24cb39.js} | 2 +- public/assets/{Search-120adf63.js => Search-a84a4f3d.js} | 2 +- public/assets/{System-2c260885.js => System-1c51c1c6.js} | 2 +- public/assets/Theme-127d7a0b.js | 1 - public/assets/Theme-50084bb6.js | 1 + public/assets/{User-69dafa56.js => User-919a59a1.js} | 2 +- public/assets/{Users-b042d73f.js => Users-53b15036.js} | 2 +- public/assets/default-6891f3e1.js | 1 - public/assets/default-8ab79025.css | 1 - public/assets/default-ae053ae9.css | 1 + public/assets/default-cc766d12.js | 1 + public/assets/{empty-2822923d.js => empty-9433203d.js} | 2 +- public/assets/{index-e2ba9829.js => index-e1e3d4ec.js} | 2 +- public/assets/{user-b8b24cf2.js => user-7208dd84.js} | 2 +- public/index.html | 2 +- public/sw.js | 2 +- 27 files changed, 24 insertions(+), 24 deletions(-) rename public/assets/{404-0d70ea11.js => 404-339ee317.js} (86%) rename public/assets/{Album-1909473a.js => Album-b572eba6.js} (97%) rename public/assets/{Albums-9eac24cd.js => Albums-f7ccb10a.js} (95%) rename public/assets/{Artists-4c56b53b.js => Artists-ef29ff45.js} (90%) rename public/assets/{Folders-dc80bb70.js => Folders-b6dcec00.js} (95%) rename public/assets/{Index-fa08ca72.js => Index-eaaa4aa4.js} (97%) rename public/assets/{Library-471bc22c.js => Library-2f384dbb.js} (86%) rename public/assets/{Log-c923a30d.js => Log-c4f1fe24.js} (94%) rename public/assets/{Login-0dbf0b54.js => Login-009fd789.js} (95%) rename public/assets/{Pins-7eb471ef.js => Pins-bbd13c76.js} (89%) rename public/assets/{Playlists-80ca990b.js => Playlists-464da93d.js} (95%) rename public/assets/{Quality-b3400423.js => Quality-aa24cb39.js} (93%) rename public/assets/{Search-120adf63.js => Search-a84a4f3d.js} (96%) rename public/assets/{System-2c260885.js => System-1c51c1c6.js} (98%) delete mode 100644 public/assets/Theme-127d7a0b.js create mode 100644 public/assets/Theme-50084bb6.js rename public/assets/{User-69dafa56.js => User-919a59a1.js} (98%) rename public/assets/{Users-b042d73f.js => Users-53b15036.js} (98%) delete mode 100644 public/assets/default-6891f3e1.js delete mode 100644 public/assets/default-8ab79025.css create mode 100644 public/assets/default-ae053ae9.css create mode 100644 public/assets/default-cc766d12.js rename public/assets/{empty-2822923d.js => empty-9433203d.js} (55%) rename public/assets/{index-e2ba9829.js => index-e1e3d4ec.js} (99%) rename public/assets/{user-b8b24cf2.js => user-7208dd84.js} (58%) diff --git a/public/assets/404-0d70ea11.js b/public/assets/404-339ee317.js similarity index 86% rename from public/assets/404-0d70ea11.js rename to public/assets/404-339ee317.js index ebf8efa..55849e7 100644 --- a/public/assets/404-0d70ea11.js +++ b/public/assets/404-339ee317.js @@ -1 +1 @@ -import{_ as a,r,o as t,c as n,e as c,b as s,t as l,T as i,f as p,w as _,F as d}from"./index-e2ba9829.js";const m={},f=s("i",{class:"bx bx-error"},null,-1);function u(e,h){const o=r("empty-state");return t(),n(d,null,[(t(),c(i,{to:"#header-center"},[s("p",null,l(e.$t("404.title")),1)])),p(o,{title:e.$t("404.title"),description:e.$t("404.description")},{default:_(()=>[f]),_:1},8,["title","description"])],64)}const b=a(m,[["render",u]]);export{b as default}; +import{_ as a,r,o as t,c as n,e as c,b as s,t as l,T as i,f as p,w as _,F as d}from"./index-e1e3d4ec.js";const m={},f=s("i",{class:"bx bx-error"},null,-1);function u(e,h){const o=r("empty-state");return t(),n(d,null,[(t(),c(i,{to:"#header-center"},[s("p",null,l(e.$t("404.title")),1)])),p(o,{title:e.$t("404.title"),description:e.$t("404.description")},{default:_(()=>[f]),_:1},8,["title","description"])],64)}const b=a(m,[["render",u]]);export{b as default}; diff --git a/public/assets/Album-1909473a.js b/public/assets/Album-b572eba6.js similarity index 97% rename from public/assets/Album-1909473a.js rename to public/assets/Album-b572eba6.js index 5e032bd..5af1c27 100644 --- a/public/assets/Album-1909473a.js +++ b/public/assets/Album-b572eba6.js @@ -1 +1 @@ -import{_ as P,j as b,u as S,i as w,k as x,r as c,o as _,c as B,e as g,b as e,m as i,t as o,q as l,T as C,f as u,w as d,p as M,g as N}from"./index-e2ba9829.js";const p=r=>(M("data-v-7c7a3cc7"),r=r(),N(),r),T={key:0},V=p(()=>e("br",null,null,-1)),j={style:{opacity:"0.5"}},D={class:"header"},L={class:"cover"},q=["src"],E={class:"album-info"},O={class:"title"},R={class:"meta"},z={class:"actions"},F=p(()=>e("i",{class:"bx bx-play"},null,-1)),G=p(()=>e("i",{class:"bx bx-shuffle"},null,-1)),H=p(()=>e("div",{class:"spacer"},null,-1)),J={__name:"Album",setup(r){const m=b("PokaAPI"),v=b("Player"),a=S(),s=w(null);x(async()=>{a.meta.type=="album"&&(s.value=await m.getAlbum(a.params.source,a.params.id)),a.meta.type=="playlist"&&(s.value=await m.getPlaylist(a.params.source,a.params.id))});function y(t=!1){v.audioOrder=t?"random":"list";let n=t?Math.floor(Math.random()*s.value.songs.length):0;v.addSongs({songs:s.value.songs,index:n})}return(t,n)=>{const f=c("router-link"),h=c("p-btn"),$=c("pin-btn"),k=c("parse-songs"),A=c("Loader");return s.value?(_(),B("div",T,[(_(),g(C,{to:"#header-center"},[e("p",null,[i(o(s.value.name??s.value.playlists[0].name)+" ",1),V,e("small",j,o(t.$t(`nav.${l(a).meta.type}s`)),1)])])),e("div",D,[e("div",L,[e("img",{src:s.value.cover??s.value.playlists[0].cover},null,8,q)]),e("div",E,[e("div",O,o(s.value.name??s.value.playlists[0].name),1),u(f,{class:"artist",to:`/ artist / ${l(a).params.source} /${s.value.artistId}`},{default:d(()=>[i(o(s.value.artist),1)]),_:1},8,["to"]),e("div",R,[e("span",null,o(t.$t(`nav.${l(a).meta.type}s`)),1),e("span",null,o(t.$t("songs",s.value.songs.length,{count:s.value.songs.length})),1),e("span",null,o(t.$t(`source.${l(a).params.source}`)),1)]),e("div",z,[u(h,{onClick:n[0]||(n[0]=I=>y())},{default:d(()=>[F,i(" "+o(t.$t("album.playAll")),1)]),_:1}),u(h,{outline:"",onClick:n[1]||(n[1]=I=>y(!0))},{default:d(()=>[G,i(" "+o(t.$t("album.playAllShuffle")),1)]),_:1}),H,u($,{name:s.value.name??s.value.playlists[0].name,cover:s.value.cover??s.value.playlists[0].cover,artist:s.value.artist,id:l(a).params.id,source:l(a).params.source,type:l(a).meta.type},null,8,["name","cover","artist","id","source","type"])])])]),u(k,{items:s.value.songs},null,8,["items"])])):(_(),g(A,{key:1}))}}},Q=P(J,[["__scopeId","data-v-7c7a3cc7"]]);export{Q as default}; +import{_ as P,j as b,u as S,i as w,k as x,r as c,o as _,c as B,e as g,b as e,m as i,t as o,q as l,T as C,f as u,w as d,p as M,g as N}from"./index-e1e3d4ec.js";const p=r=>(M("data-v-7c7a3cc7"),r=r(),N(),r),T={key:0},V=p(()=>e("br",null,null,-1)),j={style:{opacity:"0.5"}},D={class:"header"},L={class:"cover"},q=["src"],E={class:"album-info"},O={class:"title"},R={class:"meta"},z={class:"actions"},F=p(()=>e("i",{class:"bx bx-play"},null,-1)),G=p(()=>e("i",{class:"bx bx-shuffle"},null,-1)),H=p(()=>e("div",{class:"spacer"},null,-1)),J={__name:"Album",setup(r){const m=b("PokaAPI"),v=b("Player"),a=S(),s=w(null);x(async()=>{a.meta.type=="album"&&(s.value=await m.getAlbum(a.params.source,a.params.id)),a.meta.type=="playlist"&&(s.value=await m.getPlaylist(a.params.source,a.params.id))});function y(t=!1){v.audioOrder=t?"random":"list";let n=t?Math.floor(Math.random()*s.value.songs.length):0;v.addSongs({songs:s.value.songs,index:n})}return(t,n)=>{const f=c("router-link"),h=c("p-btn"),$=c("pin-btn"),k=c("parse-songs"),A=c("Loader");return s.value?(_(),B("div",T,[(_(),g(C,{to:"#header-center"},[e("p",null,[i(o(s.value.name??s.value.playlists[0].name)+" ",1),V,e("small",j,o(t.$t(`nav.${l(a).meta.type}s`)),1)])])),e("div",D,[e("div",L,[e("img",{src:s.value.cover??s.value.playlists[0].cover},null,8,q)]),e("div",E,[e("div",O,o(s.value.name??s.value.playlists[0].name),1),u(f,{class:"artist",to:`/ artist / ${l(a).params.source} /${s.value.artistId}`},{default:d(()=>[i(o(s.value.artist),1)]),_:1},8,["to"]),e("div",R,[e("span",null,o(t.$t(`nav.${l(a).meta.type}s`)),1),e("span",null,o(t.$t("songs",s.value.songs.length,{count:s.value.songs.length})),1),e("span",null,o(t.$t(`source.${l(a).params.source}`)),1)]),e("div",z,[u(h,{onClick:n[0]||(n[0]=I=>y())},{default:d(()=>[F,i(" "+o(t.$t("album.playAll")),1)]),_:1}),u(h,{outline:"",onClick:n[1]||(n[1]=I=>y(!0))},{default:d(()=>[G,i(" "+o(t.$t("album.playAllShuffle")),1)]),_:1}),H,u($,{name:s.value.name??s.value.playlists[0].name,cover:s.value.cover??s.value.playlists[0].cover,artist:s.value.artist,id:l(a).params.id,source:l(a).params.source,type:l(a).meta.type},null,8,["name","cover","artist","id","source","type"])])])]),u(k,{items:s.value.songs},null,8,["items"])])):(_(),g(A,{key:1}))}}},Q=P(J,[["__scopeId","data-v-7c7a3cc7"]]);export{Q as default}; diff --git a/public/assets/Albums-9eac24cd.js b/public/assets/Albums-f7ccb10a.js similarity index 95% rename from public/assets/Albums-9eac24cd.js rename to public/assets/Albums-f7ccb10a.js index a9137a3..4fd8935 100644 --- a/public/assets/Albums-9eac24cd.js +++ b/public/assets/Albums-f7ccb10a.js @@ -1 +1 @@ -import{j as k,u as f,i as p,k as h,l as A,r as l,o as s,c as m,e as c,m as w,t as u,b as d,q as r,T as _,f as g,s as I}from"./index-e2ba9829.js";const $={key:0},B=d("br",null,null,-1),N={style:{opacity:"0.5"}},P={key:1},C={__name:"Albums",setup(V){const o=k("PokaAPI"),e=f(),n=p(null),t=p(null);h(async()=>{await i()}),A(()=>e.path,async()=>{await i()});async function i(){let a;switch(n.value=null,e.meta.type){case"artists":a=await o.getArtistAlbums(e.params.source,e.meta.type,e.params.id),t.value=await o.getArtistInfo(e.params.source,"artist",e.params.id);break;case"composers":a=await o.getArtistAlbums(e.params.source,e.meta.type,e.params.id),t.value=await o.getArtistInfo(e.params.source,"composer",e.params.id);break;case"albums":a=await o.getAlbums();break}n.value=a==null?void 0:a.albums}return(a,T)=>{const y=l("pin-btn"),v=l("Loader"),b=l("parse-albums");return s(),m("div",null,[(s(),c(_,{to:"#header-center"},[t.value?(s(),m("p",$,[w(u(t.value.name)+" ",1),B,d("small",N,u(a.$t(`nav.${r(e).meta.type}`)),1)])):(s(),m("p",P,u(a.$t(`nav.${r(e).meta.type}`)),1))])),t.value?(s(),c(_,{key:0,to:"#header-actions"},[g(y,{name:t.value.name,cover:t.value.cover,id:r(e).params.id,source:r(e).params.source,type:r(e).meta.type=="artists"?"artist":"composer"},null,8,["name","cover","id","source","type"])])):I("",!0),n.value?(s(),c(b,{key:2,items:n.value},null,8,["items"])):(s(),c(v,{key:1}))])}}};export{C as default}; +import{j as k,u as f,i as p,k as h,l as A,r as l,o as s,c as m,e as c,m as w,t as u,b as d,q as r,T as _,f as g,s as I}from"./index-e1e3d4ec.js";const $={key:0},B=d("br",null,null,-1),N={style:{opacity:"0.5"}},P={key:1},C={__name:"Albums",setup(V){const o=k("PokaAPI"),e=f(),n=p(null),t=p(null);h(async()=>{await i()}),A(()=>e.path,async()=>{await i()});async function i(){let a;switch(n.value=null,e.meta.type){case"artists":a=await o.getArtistAlbums(e.params.source,e.meta.type,e.params.id),t.value=await o.getArtistInfo(e.params.source,"artist",e.params.id);break;case"composers":a=await o.getArtistAlbums(e.params.source,e.meta.type,e.params.id),t.value=await o.getArtistInfo(e.params.source,"composer",e.params.id);break;case"albums":a=await o.getAlbums();break}n.value=a==null?void 0:a.albums}return(a,T)=>{const y=l("pin-btn"),v=l("Loader"),b=l("parse-albums");return s(),m("div",null,[(s(),c(_,{to:"#header-center"},[t.value?(s(),m("p",$,[w(u(t.value.name)+" ",1),B,d("small",N,u(a.$t(`nav.${r(e).meta.type}`)),1)])):(s(),m("p",P,u(a.$t(`nav.${r(e).meta.type}`)),1))])),t.value?(s(),c(_,{key:0,to:"#header-actions"},[g(y,{name:t.value.name,cover:t.value.cover,id:r(e).params.id,source:r(e).params.source,type:r(e).meta.type=="artists"?"artist":"composer"},null,8,["name","cover","id","source","type"])])):I("",!0),n.value?(s(),c(b,{key:2,items:n.value},null,8,["items"])):(s(),c(v,{key:1}))])}}};export{C as default}; diff --git a/public/assets/Artists-4c56b53b.js b/public/assets/Artists-ef29ff45.js similarity index 90% rename from public/assets/Artists-4c56b53b.js rename to public/assets/Artists-ef29ff45.js index b6927f1..500e49a 100644 --- a/public/assets/Artists-4c56b53b.js +++ b/public/assets/Artists-ef29ff45.js @@ -1 +1 @@ -import{u as i,j as m,i as _,k as y,l as d,r as n,o as a,c as k,e as s,b as f,t as v,q as r,T as g,F as w}from"./index-e2ba9829.js";const h={__name:"Artists",setup(A){const e=i(),c=m("PokaAPI"),t=_(null);async function o(){t.value=null,t.value=await c[e.meta.type=="artists"?"getArtists":"getComposers"]()}return y(async()=>{await o()}),d(e,async()=>{await o()},{deep:!0}),(l,B)=>{const p=n("Loader"),u=n("parse-artists");return a(),k(w,null,[(a(),s(g,{to:"#header-center"},[f("p",null,v(l.$t(`nav.${r(e).meta.type}`)),1)])),t.value?(a(),s(u,{key:1,items:t.value,type:r(e).meta.type},null,8,["items","type"])):(a(),s(p,{key:0}))],64)}}};export{h as default}; +import{u as i,j as m,i as _,k as y,l as d,r as n,o as a,c as k,e as s,b as f,t as v,q as r,T as g,F as w}from"./index-e1e3d4ec.js";const h={__name:"Artists",setup(A){const e=i(),c=m("PokaAPI"),t=_(null);async function o(){t.value=null,t.value=await c[e.meta.type=="artists"?"getArtists":"getComposers"]()}return y(async()=>{await o()}),d(e,async()=>{await o()},{deep:!0}),(l,B)=>{const p=n("Loader"),u=n("parse-artists");return a(),k(w,null,[(a(),s(g,{to:"#header-center"},[f("p",null,v(l.$t(`nav.${r(e).meta.type}`)),1)])),t.value?(a(),s(u,{key:1,items:t.value,type:r(e).meta.type},null,8,["items","type"])):(a(),s(p,{key:0}))],64)}}};export{h as default}; diff --git a/public/assets/Folders-dc80bb70.js b/public/assets/Folders-b6dcec00.js similarity index 95% rename from public/assets/Folders-dc80bb70.js rename to public/assets/Folders-b6dcec00.js index 852cf26..86f42a7 100644 --- a/public/assets/Folders-dc80bb70.js +++ b/public/assets/Folders-b6dcec00.js @@ -1 +1 @@ -import{u as b,j as B,i as F,k as P,l as C,r as s,o as e,c as n,e as _,b as i,t as d,T as L,f as c,s as v,w as p,F as h,d as N}from"./index-e2ba9829.js";const V={key:0},j={key:0},x={key:1},A=i("i",{class:"bx bx-folder"},null,-1),T={__name:"Folders",setup(D){const u=b(),g=B("PokaAPI"),t=F(null);P(async()=>{await m()}),C(()=>u.path,async()=>{await m()});async function m(){var a,l;let o=(a=u.params)==null?void 0:a.source,f=(l=u.params)==null?void 0:l.id;t.value=null,t.value=await g.getFolders(o,f)}return(o,f)=>{const a=s("parse-songs"),l=s("p-list-item-icon-btn"),k=s("p-list-item-content"),y=s("p-list-item"),w=s("p-list-items"),$=s("Loader");return e(),n(h,null,[(e(),_(L,{to:"#header-center"},[i("p",null,d(o.$t("nav.folders")),1)])),t.value?(e(),n("div",V,[t.value.songs.length?(e(),n("div",j,[i("h4",null,d(o.$t("nav.songs")),1),c(a,{items:t.value.songs},null,8,["items"])])):v("",!0),t.value.folders.length?(e(),n("div",x,[i("h4",null,d(o.$t("nav.folders")),1),c(w,null,{default:p(()=>[(e(!0),n(h,null,N(t.value.folders,r=>(e(),_(y,{to:`/folder/${r.source}/${r.id}`},{default:p(()=>[c(l,null,{default:p(()=>[A]),_:1}),c(k,{title:r.name,description:r.source},null,8,["title","description"])]),_:2},1032,["to"]))),256))]),_:1})])):v("",!0)])):(e(),_($,{key:1}))],64)}}};export{T as default}; +import{u as b,j as B,i as F,k as P,l as C,r as s,o as e,c as n,e as _,b as i,t as d,T as L,f as c,s as v,w as p,F as h,d as N}from"./index-e1e3d4ec.js";const V={key:0},j={key:0},x={key:1},A=i("i",{class:"bx bx-folder"},null,-1),T={__name:"Folders",setup(D){const u=b(),g=B("PokaAPI"),t=F(null);P(async()=>{await m()}),C(()=>u.path,async()=>{await m()});async function m(){var a,l;let o=(a=u.params)==null?void 0:a.source,f=(l=u.params)==null?void 0:l.id;t.value=null,t.value=await g.getFolders(o,f)}return(o,f)=>{const a=s("parse-songs"),l=s("p-list-item-icon-btn"),k=s("p-list-item-content"),y=s("p-list-item"),w=s("p-list-items"),$=s("Loader");return e(),n(h,null,[(e(),_(L,{to:"#header-center"},[i("p",null,d(o.$t("nav.folders")),1)])),t.value?(e(),n("div",V,[t.value.songs.length?(e(),n("div",j,[i("h4",null,d(o.$t("nav.songs")),1),c(a,{items:t.value.songs},null,8,["items"])])):v("",!0),t.value.folders.length?(e(),n("div",x,[i("h4",null,d(o.$t("nav.folders")),1),c(w,null,{default:p(()=>[(e(!0),n(h,null,N(t.value.folders,r=>(e(),_(y,{to:`/folder/${r.source}/${r.id}`},{default:p(()=>[c(l,null,{default:p(()=>[A]),_:1}),c(k,{title:r.name,description:r.source},null,8,["title","description"])]),_:2},1032,["to"]))),256))]),_:1})])):v("",!0)])):(e(),_($,{key:1}))],64)}}};export{T as default}; diff --git a/public/assets/Index-fa08ca72.js b/public/assets/Index-eaaa4aa4.js similarity index 97% rename from public/assets/Index-fa08ca72.js rename to public/assets/Index-eaaa4aa4.js index f9e76b1..3d9465f 100644 --- a/public/assets/Index-fa08ca72.js +++ b/public/assets/Index-eaaa4aa4.js @@ -1 +1 @@ -import{y as V,z as k,r as a,o as u,c as r,e as q,b as i,t as _,T as B,f as t,w as s,q as c,A as L,F as m,d as S,s as C}from"./index-e2ba9829.js";import{u as I}from"./user-b8b24cf2.js";const N={class:"setting-item"},T={class:"content"},w={class:"title"},z=i("div",{class:"description"},null,-1),F={class:"control"},R=["value"],U=i("i",{class:"bx bx-music"},null,-1),A=i("i",{class:"bx bx-brush-alt"},null,-1),D=i("i",{class:"bx bx-pin"},null,-1),E=i("i",{class:"bx bx-user"},null,-1),M=i("i",{class:"bx bx-server"},null,-1),j=i("i",{class:"bx bx-group"},null,-1),G=i("i",{class:"bx bx-file"},null,-1),O={__name:"Index",setup(H){const{locale:p,availableLocales:b,getLocaleMessage:f}=V({inheritLocale:!0,useScope:"global"}),h=I(),{userInfo:$}=k(h);return(e,g)=>{const v=a("p-select"),n=a("p-list-item-icon-btn"),l=a("p-list-item-content"),o=a("p-list-item"),x=a("p-list-items");return u(),r(m,null,[(u(),q(B,{to:"#header-center"},[i("p",null,_(e.$t("nav.settings")),1)])),i("div",N,[i("div",T,[i("div",w,_(e.$t("language")),1),z]),i("div",F,[t(v,{modelValue:c(p),"onUpdate:modelValue":g[0]||(g[0]=d=>L(p)?p.value=d:null)},{default:s(()=>[(u(!0),r(m,null,S(c(b),d=>(u(),r("option",{value:d},_(c(f)(d).language_name({normalize:y=>y[0]})),9,R))),256))]),_:1},8,["modelValue"])])]),i("div",null,[t(x,null,{default:s(()=>[t(o,{to:"/settings/quality",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[U]),_:1}),t(l,{title:e.$t("settings.quality.title"),description:e.$t("settings.quality.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/theme",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[A]),_:1}),t(l,{title:e.$t("settings.theme.title"),description:e.$t("settings.theme.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/pins",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[D]),_:1}),t(l,{title:e.$t("settings.pins.title"),description:e.$t("settings.pins.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/user",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[E]),_:1}),t(l,{title:e.$t("settings.user.title"),description:e.$t("settings.user.description")},null,8,["title","description"])]),_:1}),c($).role==="admin"?(u(),r(m,{key:0},[t(o,{to:"/settings/system",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[M]),_:1}),t(l,{title:e.$t("settings.system.title"),description:e.$t("settings.system.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/users",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[j]),_:1}),t(l,{title:e.$t("settings.users.title"),description:e.$t("settings.users.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/log",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[G]),_:1}),t(l,{title:e.$t("settings.log.title"),description:e.$t("settings.log.description")},null,8,["title","description"])]),_:1})],64)):C("",!0)]),_:1})])],64)}}};export{O as default}; +import{y as V,z as k,r as a,o as u,c as r,e as q,b as i,t as _,T as B,f as t,w as s,q as c,A as L,F as m,d as S,s as C}from"./index-e1e3d4ec.js";import{u as I}from"./user-7208dd84.js";const N={class:"setting-item"},T={class:"content"},w={class:"title"},z=i("div",{class:"description"},null,-1),F={class:"control"},R=["value"],U=i("i",{class:"bx bx-music"},null,-1),A=i("i",{class:"bx bx-brush-alt"},null,-1),D=i("i",{class:"bx bx-pin"},null,-1),E=i("i",{class:"bx bx-user"},null,-1),M=i("i",{class:"bx bx-server"},null,-1),j=i("i",{class:"bx bx-group"},null,-1),G=i("i",{class:"bx bx-file"},null,-1),O={__name:"Index",setup(H){const{locale:p,availableLocales:b,getLocaleMessage:f}=V({inheritLocale:!0,useScope:"global"}),h=I(),{userInfo:$}=k(h);return(e,g)=>{const v=a("p-select"),n=a("p-list-item-icon-btn"),l=a("p-list-item-content"),o=a("p-list-item"),x=a("p-list-items");return u(),r(m,null,[(u(),q(B,{to:"#header-center"},[i("p",null,_(e.$t("nav.settings")),1)])),i("div",N,[i("div",T,[i("div",w,_(e.$t("language")),1),z]),i("div",F,[t(v,{modelValue:c(p),"onUpdate:modelValue":g[0]||(g[0]=d=>L(p)?p.value=d:null)},{default:s(()=>[(u(!0),r(m,null,S(c(b),d=>(u(),r("option",{value:d},_(c(f)(d).language_name({normalize:y=>y[0]})),9,R))),256))]),_:1},8,["modelValue"])])]),i("div",null,[t(x,null,{default:s(()=>[t(o,{to:"/settings/quality",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[U]),_:1}),t(l,{title:e.$t("settings.quality.title"),description:e.$t("settings.quality.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/theme",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[A]),_:1}),t(l,{title:e.$t("settings.theme.title"),description:e.$t("settings.theme.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/pins",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[D]),_:1}),t(l,{title:e.$t("settings.pins.title"),description:e.$t("settings.pins.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/user",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[E]),_:1}),t(l,{title:e.$t("settings.user.title"),description:e.$t("settings.user.description")},null,8,["title","description"])]),_:1}),c($).role==="admin"?(u(),r(m,{key:0},[t(o,{to:"/settings/system",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[M]),_:1}),t(l,{title:e.$t("settings.system.title"),description:e.$t("settings.system.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/users",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[j]),_:1}),t(l,{title:e.$t("settings.users.title"),description:e.$t("settings.users.description")},null,8,["title","description"])]),_:1}),t(o,{to:"/settings/log",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[G]),_:1}),t(l,{title:e.$t("settings.log.title"),description:e.$t("settings.log.description")},null,8,["title","description"])]),_:1})],64)):C("",!0)]),_:1})])],64)}}};export{O as default}; diff --git a/public/assets/Library-471bc22c.js b/public/assets/Library-2f384dbb.js similarity index 86% rename from public/assets/Library-471bc22c.js rename to public/assets/Library-2f384dbb.js index 3c86ff4..6f4d03a 100644 --- a/public/assets/Library-471bc22c.js +++ b/public/assets/Library-2f384dbb.js @@ -1 +1 @@ -import{j as l,i as m,k as p,r as t,o as e,c as i,e as o,b as u,t as _,T as k}from"./index-e2ba9829.js";const h={__name:"Library",setup(d){const n=l("PokaAPI"),a=m(null);return p(async()=>{a.value=await n.getHome()}),(s,v)=>{const r=t("parse-home"),c=t("Loader");return e(),i("div",null,[(e(),o(k,{to:"#header-center"},[u("p",null,_(s.$t("nav.library")),1)])),a.value?(e(),o(r,{key:0,items:a.value},null,8,["items"])):(e(),o(c,{key:1}))])}}};export{h as default}; +import{j as l,i as m,k as p,r as t,o as e,c as i,e as o,b as u,t as _,T as k}from"./index-e1e3d4ec.js";const h={__name:"Library",setup(d){const n=l("PokaAPI"),a=m(null);return p(async()=>{a.value=await n.getHome()}),(s,v)=>{const r=t("parse-home"),c=t("Loader");return e(),i("div",null,[(e(),o(k,{to:"#header-center"},[u("p",null,_(s.$t("nav.library")),1)])),a.value?(e(),o(r,{key:0,items:a.value},null,8,["items"])):(e(),o(c,{key:1}))])}}};export{h as default}; diff --git a/public/assets/Log-c923a30d.js b/public/assets/Log-c4f1fe24.js similarity index 94% rename from public/assets/Log-c923a30d.js rename to public/assets/Log-c4f1fe24.js index e086f6b..5e42539 100644 --- a/public/assets/Log-c923a30d.js +++ b/public/assets/Log-c4f1fe24.js @@ -1,4 +1,4 @@ -import{_ as h,j as B,i as o,J as x,k as I,r as P,o as i,c as b,e as f,b as m,t as y,T as C,s as E,F as j}from"./index-e2ba9829.js";const A={__name:"Log",setup(D){const _=B("PokaAPI"),t=o(""),L=o(0),g=o(!1),a=o([]);async function p(){let e=await _.getUserList();a.value=e}async function v(e=0){var s;(!a.value||!a.value.length)&&await p();let n=await _.getLog(e);for(let{level:k,type:w,event:$,user:l,description:c,time:u}of n)l=((s=a.value.find(r=>r._id==l))==null?void 0:s.username)||l,u=new Date(u).toLocaleString(),a.value.map(r=>{c=c.replace(new RegExp(`{${r._id}}`,"g"),r.username)}),t.value+=`[${k}] ${w} / ${$} +import{_ as h,j as B,i as o,J as x,k as I,r as P,o as i,c as b,e as f,b as m,t as y,T as C,s as E,F as j}from"./index-e1e3d4ec.js";const A={__name:"Log",setup(D){const _=B("PokaAPI"),t=o(""),L=o(0),g=o(!1),a=o([]);async function p(){let e=await _.getUserList();a.value=e}async function v(e=0){var s;(!a.value||!a.value.length)&&await p();let n=await _.getLog(e);for(let{level:k,type:w,event:$,user:l,description:c,time:u}of n)l=((s=a.value.find(r=>r._id==l))==null?void 0:s.username)||l,u=new Date(u).toLocaleString(),a.value.map(r=>{c=c.replace(new RegExp(`{${r._id}}`,"g"),r.username)}),t.value+=`[${k}] ${w} / ${$} `,t.value+=` 📄 ${c} `,t.value+=` 👤 ${l} `,t.value+=` 🕒 ${u} diff --git a/public/assets/Login-0dbf0b54.js b/public/assets/Login-009fd789.js similarity index 95% rename from public/assets/Login-0dbf0b54.js rename to public/assets/Login-009fd789.js index d430234..e216b02 100644 --- a/public/assets/Login-0dbf0b54.js +++ b/public/assets/Login-009fd789.js @@ -1 +1 @@ -import{_ as c,j as u,r as i,o as m,c as _,b as a,x as g,f as n,w as f,m as w,t as b,p as h,g as v}from"./index-e2ba9829.js";const y="/img/icon.svg";const V={name:"LoginDialog",setup(){return{socket:u("socket")}},data(){return{username:localStorage.getItem("username")||"",password:localStorage.getItem("password")||""}},methods:{async login(){(await this.$PokaAPI.login(this.username,this.password)).success&&this.$router.push("/")}}},p=e=>(h("data-v-1e5115e3"),e=e(),v(),e),k={class:"login-container"},I={class:"login-form"},S=p(()=>a("img",{class:"logo",src:y,alt:"logo"},null,-1)),x=p(()=>a("h1",null,"PokaPlayer",-1));function P(e,o,B,L,t,l){const r=i("p-input"),d=i("p-btn");return m(),_("div",k,[a("div",I,[S,x,a("form",{onSubmit:o[2]||(o[2]=g((...s)=>l.login&&l.login(...s),["prevent"]))},[n(r,{label:e.$t("username"),modelValue:t.username,"onUpdate:modelValue":o[0]||(o[0]=s=>t.username=s),required:""},null,8,["label","modelValue"]),n(r,{label:e.$t("password"),modelValue:t.password,"onUpdate:modelValue":o[1]||(o[1]=s=>t.password=s),type:"password",required:""},null,8,["label","modelValue"]),n(d,{type:"submit",block:"",style:{"margin-top":"calc(var(--padding) * 2)"},color:"primary"},{default:f(()=>[w(b(e.$t("login")),1)]),_:1})],32)])])}const $=c(V,[["render",P],["__scopeId","data-v-1e5115e3"]]);export{$ as default}; +import{_ as c,j as u,r as i,o as m,c as _,b as a,x as g,f as n,w as f,m as w,t as b,p as h,g as v}from"./index-e1e3d4ec.js";const y="/img/icon.svg";const V={name:"LoginDialog",setup(){return{socket:u("socket")}},data(){return{username:localStorage.getItem("username")||"",password:localStorage.getItem("password")||""}},methods:{async login(){(await this.$PokaAPI.login(this.username,this.password)).success&&this.$router.push("/")}}},p=e=>(h("data-v-1e5115e3"),e=e(),v(),e),k={class:"login-container"},I={class:"login-form"},S=p(()=>a("img",{class:"logo",src:y,alt:"logo"},null,-1)),x=p(()=>a("h1",null,"PokaPlayer",-1));function P(e,o,B,L,t,l){const r=i("p-input"),d=i("p-btn");return m(),_("div",k,[a("div",I,[S,x,a("form",{onSubmit:o[2]||(o[2]=g((...s)=>l.login&&l.login(...s),["prevent"]))},[n(r,{label:e.$t("username"),modelValue:t.username,"onUpdate:modelValue":o[0]||(o[0]=s=>t.username=s),required:""},null,8,["label","modelValue"]),n(r,{label:e.$t("password"),modelValue:t.password,"onUpdate:modelValue":o[1]||(o[1]=s=>t.password=s),type:"password",required:""},null,8,["label","modelValue"]),n(d,{type:"submit",block:"",style:{"margin-top":"calc(var(--padding) * 2)"},color:"primary"},{default:f(()=>[w(b(e.$t("login")),1)]),_:1})],32)])])}const $=c(V,[["render",P],["__scopeId","data-v-1e5115e3"]]);export{$ as default}; diff --git a/public/assets/Pins-7eb471ef.js b/public/assets/Pins-bbd13c76.js similarity index 89% rename from public/assets/Pins-7eb471ef.js rename to public/assets/Pins-bbd13c76.js index d0c164a..6ee5c1c 100644 --- a/public/assets/Pins-7eb471ef.js +++ b/public/assets/Pins-bbd13c76.js @@ -1 +1 @@ -import{j as y,i as b,k as v,r as e,o as s,c as p,e as _,b as a,t as u,T as P,f as i,w as o,F as m,d as B,x as C}from"./index-e2ba9829.js";const x={style:{"margin-bottom":"calc(var(--padding) * 2)"}},A=a("i",{class:"bx bx-trash"},null,-1),I={__name:"Pins",setup(j){const c=y("PokaAPI"),l=b(null);async function r(){let t=await c.getPins();l.value=t}async function d(t){window.confirm("Are you sure you want to unpin this item?")&&(await c.unpin(t),await r())}return v(async()=>{await r()}),(t,f)=>{const g=e("p-list-item-img"),w=e("p-list-item-content"),$=e("p-list-item-icon-btn"),h=e("p-list-item"),k=e("p-list-items");return s(),p(m,null,[(s(),_(P,{to:"#header-center"},[a("p",null,u(t.$t("settings.pins.title")),1)])),a("p",x,u(t.$t("settings.pins.intro")),1),i(k,null,{default:o(()=>[(s(!0),p(m,null,B(l.value,n=>(s(),_(h,{tabindex:"0"},{actions:o(()=>[i($,{onClick:C(D=>d(n),["stop"])},{default:o(()=>[A]),_:2},1032,["onClick"])]),default:o(()=>[i(g,{src:n.cover},null,8,["src"]),i(w,{title:n.name,description:`${t.$t(`nav.${n.type}s`)} | ${t.$t(`source.${n.source}`)}`},null,8,["title","description"])]),_:2},1024))),256))]),_:1})],64)}}};export{I as default}; +import{j as y,i as b,k as v,r as e,o as s,c as p,e as _,b as a,t as u,T as P,f as i,w as o,F as m,d as B,x as C}from"./index-e1e3d4ec.js";const x={style:{"margin-bottom":"calc(var(--padding) * 2)"}},A=a("i",{class:"bx bx-trash"},null,-1),I={__name:"Pins",setup(j){const c=y("PokaAPI"),l=b(null);async function r(){let t=await c.getPins();l.value=t}async function d(t){window.confirm("Are you sure you want to unpin this item?")&&(await c.unpin(t),await r())}return v(async()=>{await r()}),(t,f)=>{const g=e("p-list-item-img"),w=e("p-list-item-content"),$=e("p-list-item-icon-btn"),h=e("p-list-item"),k=e("p-list-items");return s(),p(m,null,[(s(),_(P,{to:"#header-center"},[a("p",null,u(t.$t("settings.pins.title")),1)])),a("p",x,u(t.$t("settings.pins.intro")),1),i(k,null,{default:o(()=>[(s(!0),p(m,null,B(l.value,n=>(s(),_(h,{tabindex:"0"},{actions:o(()=>[i($,{onClick:C(D=>d(n),["stop"])},{default:o(()=>[A]),_:2},1032,["onClick"])]),default:o(()=>[i(g,{src:n.cover},null,8,["src"]),i(w,{title:n.name,description:`${t.$t(`nav.${n.type}s`)} | ${t.$t(`source.${n.source}`)}`},null,8,["title","description"])]),_:2},1024))),256))]),_:1})],64)}}};export{I as default}; diff --git a/public/assets/Playlists-80ca990b.js b/public/assets/Playlists-464da93d.js similarity index 95% rename from public/assets/Playlists-80ca990b.js rename to public/assets/Playlists-464da93d.js index 78b8f1c..ccbf87d 100644 --- a/public/assets/Playlists-80ca990b.js +++ b/public/assets/Playlists-464da93d.js @@ -1 +1 @@ -import{j as B,u as C,i as L,k as N,l as V,r as a,o as s,c as l,e as _,b as o,t as d,T as j,f as n,s as f,w as u,F as g,d as A}from"./index-e2ba9829.js";const D={key:0},I={key:0},T={style:{"margin-bottom":"calc(var(--padding) * 2)"}},x={key:1},E={style:{margin:"calc(var(--padding) * 2) 0"}},M=o("i",{class:"bx bx-folder"},null,-1),q={__name:"Playlists",setup(R){const k=B("PokaAPI"),i=C(),t=L(null);N(async()=>{await m()}),V(()=>i.path,async()=>{await m()});async function m(){var c;t.value=null;let e=await k.getPlaylists();(c=i.params)!=null&&c.id&&(e=e.playlistFolders.filter(r=>r.id==i.params.id)[0]),t.value=e}return(e,c)=>{var y,v,h;const r=a("parse-playlists"),$=a("p-list-item-icon-btn"),b=a("p-list-item-content"),w=a("p-list-item"),P=a("p-list-items"),F=a("Loader");return s(),l(g,null,[(s(),_(j,{to:"#header-center"},[o("p",null,d(((y=t.value)==null?void 0:y.name)||e.$t("nav.playlists")),1)])),t.value?(s(),l("div",D,[(v=t.value.playlists)!=null&&v.length?(s(),l("div",I,[o("h4",T,d(t.value.name||e.$t("nav.playlists")),1),n(r,{items:t.value.playlists},null,8,["items"])])):f("",!0),(h=t.value.playlistFolders)!=null&&h.length?(s(),l("div",x,[o("h4",E,d(e.$t("nav.folders")),1),n(P,null,{default:u(()=>[(s(!0),l(g,null,A(t.value.playlistFolders,p=>(s(),_(w,{to:`/playlists/folder/${p.id}`},{default:u(()=>[n($,null,{default:u(()=>[M]),_:1}),n(b,{title:p.name,description:e.$t(`source.${p.source}`)},null,8,["title","description"])]),_:2},1032,["to"]))),256))]),_:1})])):f("",!0)])):(s(),_(F,{key:1}))],64)}}};export{q as default}; +import{j as B,u as C,i as L,k as N,l as V,r as a,o as s,c as l,e as _,b as o,t as d,T as j,f as n,s as f,w as u,F as g,d as A}from"./index-e1e3d4ec.js";const D={key:0},I={key:0},T={style:{"margin-bottom":"calc(var(--padding) * 2)"}},x={key:1},E={style:{margin:"calc(var(--padding) * 2) 0"}},M=o("i",{class:"bx bx-folder"},null,-1),q={__name:"Playlists",setup(R){const k=B("PokaAPI"),i=C(),t=L(null);N(async()=>{await m()}),V(()=>i.path,async()=>{await m()});async function m(){var c;t.value=null;let e=await k.getPlaylists();(c=i.params)!=null&&c.id&&(e=e.playlistFolders.filter(r=>r.id==i.params.id)[0]),t.value=e}return(e,c)=>{var y,v,h;const r=a("parse-playlists"),$=a("p-list-item-icon-btn"),b=a("p-list-item-content"),w=a("p-list-item"),P=a("p-list-items"),F=a("Loader");return s(),l(g,null,[(s(),_(j,{to:"#header-center"},[o("p",null,d(((y=t.value)==null?void 0:y.name)||e.$t("nav.playlists")),1)])),t.value?(s(),l("div",D,[(v=t.value.playlists)!=null&&v.length?(s(),l("div",I,[o("h4",T,d(t.value.name||e.$t("nav.playlists")),1),n(r,{items:t.value.playlists},null,8,["items"])])):f("",!0),(h=t.value.playlistFolders)!=null&&h.length?(s(),l("div",x,[o("h4",E,d(e.$t("nav.folders")),1),n(P,null,{default:u(()=>[(s(!0),l(g,null,A(t.value.playlistFolders,p=>(s(),_(w,{to:`/playlists/folder/${p.id}`},{default:u(()=>[n($,null,{default:u(()=>[M]),_:1}),n(b,{title:p.name,description:e.$t(`source.${p.source}`)},null,8,["title","description"])]),_:2},1032,["to"]))),256))]),_:1})])):f("",!0)])):(s(),_(F,{key:1}))],64)}}};export{q as default}; diff --git a/public/assets/Quality-b3400423.js b/public/assets/Quality-aa24cb39.js similarity index 93% rename from public/assets/Quality-b3400423.js rename to public/assets/Quality-aa24cb39.js index b3b91d5..c77079d 100644 --- a/public/assets/Quality-b3400423.js +++ b/public/assets/Quality-aa24cb39.js @@ -1 +1 @@ -import{B as m,r as n,o as t,c as s,e as d,b as k,t as b,T as g,f as i,w as l,F as c,d as h,q as y}from"./index-e2ba9829.js";const f={key:0,class:"bx bx-checkbox-checked"},x={key:1,class:"bx bx-checkbox"},C={__name:"Quality",setup(q){const a=m("poka.quality","original");return(o,$)=>{const r=n("p-list-item-icon-btn"),_=n("p-list-item-content"),p=n("p-list-item"),u=n("p-list-items");return t(),s(c,null,[(t(),d(g,{to:"#header-center"},[k("p",null,b(o.$t("settings.quality.title")),1)])),i(u,{"single-row":""},{default:l(()=>[(t(),s(c,null,h(["low","medium","high","original"],e=>i(p,{tabindex:"0",onClick:B=>a.value=e},{default:l(()=>[i(r,null,{default:l(()=>[y(a)==e?(t(),s("i",f)):(t(),s("i",x))]),_:2},1024),i(_,{title:o.$t(`settings.quality.${e}.title`),description:o.$t(`settings.quality.${e}.description`)},null,8,["title","description"])]),_:2},1032,["onClick"])),64))]),_:1})],64)}}};export{C as default}; +import{B as m,r as n,o as t,c as s,e as d,b as k,t as b,T as g,f as i,w as l,F as c,d as h,q as y}from"./index-e1e3d4ec.js";const f={key:0,class:"bx bx-checkbox-checked"},x={key:1,class:"bx bx-checkbox"},C={__name:"Quality",setup(q){const a=m("poka.quality","original");return(o,$)=>{const r=n("p-list-item-icon-btn"),_=n("p-list-item-content"),p=n("p-list-item"),u=n("p-list-items");return t(),s(c,null,[(t(),d(g,{to:"#header-center"},[k("p",null,b(o.$t("settings.quality.title")),1)])),i(u,{"single-row":""},{default:l(()=>[(t(),s(c,null,h(["low","medium","high","original"],e=>i(p,{tabindex:"0",onClick:B=>a.value=e},{default:l(()=>[i(r,null,{default:l(()=>[y(a)==e?(t(),s("i",f)):(t(),s("i",x))]),_:2},1024),i(_,{title:o.$t(`settings.quality.${e}.title`),description:o.$t(`settings.quality.${e}.description`)},null,8,["title","description"])]),_:2},1032,["onClick"])),64))]),_:1})],64)}}};export{C as default}; diff --git a/public/assets/Search-120adf63.js b/public/assets/Search-a84a4f3d.js similarity index 96% rename from public/assets/Search-120adf63.js rename to public/assets/Search-a84a4f3d.js index 320a96f..182f008 100644 --- a/public/assets/Search-120adf63.js +++ b/public/assets/Search-a84a4f3d.js @@ -1 +1 @@ -import{_ as C,j as N,u as R,v as j,i as p,k as A,r as a,o as t,c as l,b as u,f as o,w as F,x as L,e as M,s as n,F as D,t as c,p as E,g as U}from"./index-e2ba9829.js";const z=_=>(E("data-v-35d51b69"),_=_(),U(),_),G=["onSubmit"],H=z(()=>u("i",{class:"bx bx-search"},null,-1)),J={key:0,class:"search__result"},K={key:1,class:"search__result"},O={key:2,class:"search__result"},Q={key:3,class:"search__result"},T={key:4,class:"search__result"},W={__name:"Search",setup(_){const k=N("PokaAPI"),S=R(),w=j(),r=p(""),e=p(null),i=p(!1);A(async()=>{let s=S.query.q;s&&(r.value=s,await m())});async function m(){r.value!=""&&(i.value=!0,w.replace({path:"/search",query:{q:r.value}}),e.value=null,e.value=await k.search(r.value),i.value=!1)}return(s,v)=>{var h,y,b,g,f;const $=a("p-input"),I=a("p-btn"),V=a("Loader"),q=a("parse-songs"),B=a("parse-albums"),d=a("parse-artists"),P=a("parse-playlists");return t(),l("div",null,[u("form",{class:"search__input",onSubmit:L(m,["prevent"])},[o($,{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=x=>r.value=x)},null,8,["modelValue"]),o(I,{type:"submit"},{default:F(()=>[H]),_:1})],40,G),i.value?(t(),M(V,{key:0})):n("",!0),e.value?(t(),l(D,{key:1},[(h=e.value.songs)!=null&&h.length?(t(),l("div",J,[u("h3",null,c(s.$t("nav.songs")),1),o(q,{items:e.value.songs},null,8,["items"])])):n("",!0),(y=e.value.albums)!=null&&y.length?(t(),l("div",K,[u("h3",null,c(s.$t("nav.albums")),1),o(B,{items:e.value.albums},null,8,["items"])])):n("",!0),(b=e.value.artists)!=null&&b.length?(t(),l("div",O,[u("h3",null,c(s.$t("nav.artists")),1),o(d,{type:"artists",items:e.value.artists},null,8,["items"])])):n("",!0),(g=e.value.composers)!=null&&g.length?(t(),l("div",Q,[u("h3",null,c(s.$t("nav.composers")),1),o(d,{type:"composers",items:e.value.composers},null,8,["items"])])):n("",!0),(f=e.value.playlists)!=null&&f.length?(t(),l("div",T,[u("h3",null,c(s.$t("nav.playlists")),1),o(P,{items:e.value.playlists},null,8,["items"])])):n("",!0)],64)):n("",!0)])}}},Y=C(W,[["__scopeId","data-v-35d51b69"]]);export{Y as default}; +import{_ as C,j as N,u as R,v as j,i as p,k as A,r as a,o as t,c as l,b as u,f as o,w as F,x as L,e as M,s as n,F as D,t as c,p as E,g as U}from"./index-e1e3d4ec.js";const z=_=>(E("data-v-35d51b69"),_=_(),U(),_),G=["onSubmit"],H=z(()=>u("i",{class:"bx bx-search"},null,-1)),J={key:0,class:"search__result"},K={key:1,class:"search__result"},O={key:2,class:"search__result"},Q={key:3,class:"search__result"},T={key:4,class:"search__result"},W={__name:"Search",setup(_){const k=N("PokaAPI"),S=R(),w=j(),r=p(""),e=p(null),i=p(!1);A(async()=>{let s=S.query.q;s&&(r.value=s,await m())});async function m(){r.value!=""&&(i.value=!0,w.replace({path:"/search",query:{q:r.value}}),e.value=null,e.value=await k.search(r.value),i.value=!1)}return(s,v)=>{var h,y,b,g,f;const $=a("p-input"),I=a("p-btn"),V=a("Loader"),q=a("parse-songs"),B=a("parse-albums"),d=a("parse-artists"),P=a("parse-playlists");return t(),l("div",null,[u("form",{class:"search__input",onSubmit:L(m,["prevent"])},[o($,{modelValue:r.value,"onUpdate:modelValue":v[0]||(v[0]=x=>r.value=x)},null,8,["modelValue"]),o(I,{type:"submit"},{default:F(()=>[H]),_:1})],40,G),i.value?(t(),M(V,{key:0})):n("",!0),e.value?(t(),l(D,{key:1},[(h=e.value.songs)!=null&&h.length?(t(),l("div",J,[u("h3",null,c(s.$t("nav.songs")),1),o(q,{items:e.value.songs},null,8,["items"])])):n("",!0),(y=e.value.albums)!=null&&y.length?(t(),l("div",K,[u("h3",null,c(s.$t("nav.albums")),1),o(B,{items:e.value.albums},null,8,["items"])])):n("",!0),(b=e.value.artists)!=null&&b.length?(t(),l("div",O,[u("h3",null,c(s.$t("nav.artists")),1),o(d,{type:"artists",items:e.value.artists},null,8,["items"])])):n("",!0),(g=e.value.composers)!=null&&g.length?(t(),l("div",Q,[u("h3",null,c(s.$t("nav.composers")),1),o(d,{type:"composers",items:e.value.composers},null,8,["items"])])):n("",!0),(f=e.value.playlists)!=null&&f.length?(t(),l("div",T,[u("h3",null,c(s.$t("nav.playlists")),1),o(P,{items:e.value.playlists},null,8,["items"])])):n("",!0)],64)):n("",!0)])}}},Y=C(W,[["__scopeId","data-v-35d51b69"]]);export{Y as default}; diff --git a/public/assets/System-2c260885.js b/public/assets/System-1c51c1c6.js similarity index 98% rename from public/assets/System-2c260885.js rename to public/assets/System-1c51c1c6.js index b64ff3f..fe396af 100644 --- a/public/assets/System-2c260885.js +++ b/public/assets/System-1c51c1c6.js @@ -1 +1 @@ -import{j as w,i as f,I as T,k as N,r as c,o as x,c as R,e as j,b as i,t as v,T as B,f as e,w as a,F,q as P,m as b}from"./index-e2ba9829.js";const $=i("i",{class:"bx bx-edit"},null,-1),E=i("i",{class:"bx bx-revision"},null,-1),q=i("i",{class:"bx bx-cloud-upload"},null,-1),z={style:{margin:"var(--padding) 0"}},M={style:{margin:"var(--padding) 0"}},G={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},H={style:{margin:"var(--padding) 0","text-align":"center"}},O={__name:"System",setup(J){const V=w("PokaAPI"),n=w("socket"),g=f(null),r=f(null),p=f(!1),u=f(!1),o=f("Updating..."),k=T(()=>g.value&&r.value?g.value.version!=r.value.tag_name:!1);async function D(){const s=await V.getSystemInfo();g.value=s}async function S(){p.value=!1,u.value=!0,n.emit("update"),n.on("Permission Denied Desu",()=>{u.value=!1,alert("Permission Denied")}),n.on("init",()=>{o.value="Initializing..."}),n.on("git",s=>{o.value={fetch:"Fetching...",reset:"Resetting...",package_updated:"Package updated..."}[s]}),n.on("restart",()=>{o.value="Restarting..."}),n.on("hello",()=>{o.value="System updated!",setTimeout(()=>{location.reload()},1e3)}),n.on("err",async s=>{const t=l=>new Promise(d=>{setTimeout(d,l)});o.value="An error occurred, please check console.",console.error(s),await t(1e3),u.value=!1})}async function U(){!window.confirm("Are you sure you want to restart the system?")||(n.emit("restart"),u.value=!0,o.value="Loading...",n.on("restart",()=>{o.value="Restarting..."}),n.on("hello",()=>{o.value="System restarted!",setTimeout(()=>{location.reload()},1e3)}),n.on("err",async t=>{const l=d=>new Promise(m=>{setTimeout(m,d)});o.value="An error occurred, please check console.",console.error(t),await l(1e3),u.value=!1}))}async function C(){await D();let{debug:s}=g.value,t=await fetch("https://api.github.com/repos/gnehs/PokaPlayer/releases").then(l=>l.json());r.value=t.filter(l=>s||!l.prerelease)[0]}function A(){alert("Not available yet")}return N(async()=>{await C()}),(s,t)=>{const l=c("p-list-item-icon-btn"),d=c("p-list-item-content"),m=c("p-list-item"),I=c("p-list-items"),y=c("p-btn"),h=c("Dialog"),L=c("Loader");return x(),R(F,null,[(x(),j(B,{to:"#header-center"},[i("p",null,v(s.$t("settings.system.title")),1)])),e(I,{"single-row":""},{default:a(()=>[e(m,{tabindex:"0",onClick:A},{default:a(()=>[e(l,null,{default:a(()=>[$]),_:1}),e(d,{title:"Edit config"})]),_:1}),e(m,{tabindex:"0",onClick:U},{default:a(()=>[e(l,null,{default:a(()=>[E]),_:1}),e(d,{title:"Restart"})]),_:1}),e(m,{tabindex:"0",onClick:t[0]||(t[0]=_=>P(k)&&(p.value=!0))},{default:a(()=>[e(l,null,{default:a(()=>[q]),_:1}),e(d,{title:"Update PokaPlayer",description:r.value?P(k)?"New update available":"Up to date":"Loading..."},null,8,["description"])]),_:1})]),_:1}),e(h,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=_=>p.value=_)},{default:a(()=>[i("h2",null,"Update PokaPlayer to "+v(r.value.tag_name),1),i("p",z,v(r.value.body),1),i("p",M,"Release date: "+v(new Date(r.value.published_at).toLocaleString()),1),e(y,{href:r.value.html_url,target:"_blank",rel:"noopener noreferrer",outlined:""},{default:a(()=>[b("View release")]),_:1},8,["href"]),i("div",G,[e(y,{onClick:t[1]||(t[1]=_=>p.value=!1),outlined:""},{default:a(()=>[b("Cancel")]),_:1}),e(y,{onClick:S,color:"primary"},{default:a(()=>[b("Update")]),_:1})])]),_:1},8,["modelValue"]),e(h,{modelValue:u.value,"onUpdate:modelValue":t[3]||(t[3]=_=>u.value=_),closeable:!1},{default:a(()=>[e(L,{style:{margin:"calc(var(--padding) * 4) 0"}}),i("p",H,v(o.value),1)]),_:1},8,["modelValue"])],64)}}};export{O as default}; +import{j as w,i as f,I as T,k as N,r as c,o as x,c as R,e as j,b as i,t as v,T as B,f as e,w as a,F,q as P,m as b}from"./index-e1e3d4ec.js";const $=i("i",{class:"bx bx-edit"},null,-1),E=i("i",{class:"bx bx-revision"},null,-1),q=i("i",{class:"bx bx-cloud-upload"},null,-1),z={style:{margin:"var(--padding) 0"}},M={style:{margin:"var(--padding) 0"}},G={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},H={style:{margin:"var(--padding) 0","text-align":"center"}},O={__name:"System",setup(J){const V=w("PokaAPI"),n=w("socket"),g=f(null),r=f(null),p=f(!1),u=f(!1),o=f("Updating..."),k=T(()=>g.value&&r.value?g.value.version!=r.value.tag_name:!1);async function D(){const s=await V.getSystemInfo();g.value=s}async function S(){p.value=!1,u.value=!0,n.emit("update"),n.on("Permission Denied Desu",()=>{u.value=!1,alert("Permission Denied")}),n.on("init",()=>{o.value="Initializing..."}),n.on("git",s=>{o.value={fetch:"Fetching...",reset:"Resetting...",package_updated:"Package updated..."}[s]}),n.on("restart",()=>{o.value="Restarting..."}),n.on("hello",()=>{o.value="System updated!",setTimeout(()=>{location.reload()},1e3)}),n.on("err",async s=>{const t=l=>new Promise(d=>{setTimeout(d,l)});o.value="An error occurred, please check console.",console.error(s),await t(1e3),u.value=!1})}async function U(){!window.confirm("Are you sure you want to restart the system?")||(n.emit("restart"),u.value=!0,o.value="Loading...",n.on("restart",()=>{o.value="Restarting..."}),n.on("hello",()=>{o.value="System restarted!",setTimeout(()=>{location.reload()},1e3)}),n.on("err",async t=>{const l=d=>new Promise(m=>{setTimeout(m,d)});o.value="An error occurred, please check console.",console.error(t),await l(1e3),u.value=!1}))}async function C(){await D();let{debug:s}=g.value,t=await fetch("https://api.github.com/repos/gnehs/PokaPlayer/releases").then(l=>l.json());r.value=t.filter(l=>s||!l.prerelease)[0]}function A(){alert("Not available yet")}return N(async()=>{await C()}),(s,t)=>{const l=c("p-list-item-icon-btn"),d=c("p-list-item-content"),m=c("p-list-item"),I=c("p-list-items"),y=c("p-btn"),h=c("Dialog"),L=c("Loader");return x(),R(F,null,[(x(),j(B,{to:"#header-center"},[i("p",null,v(s.$t("settings.system.title")),1)])),e(I,{"single-row":""},{default:a(()=>[e(m,{tabindex:"0",onClick:A},{default:a(()=>[e(l,null,{default:a(()=>[$]),_:1}),e(d,{title:"Edit config"})]),_:1}),e(m,{tabindex:"0",onClick:U},{default:a(()=>[e(l,null,{default:a(()=>[E]),_:1}),e(d,{title:"Restart"})]),_:1}),e(m,{tabindex:"0",onClick:t[0]||(t[0]=_=>P(k)&&(p.value=!0))},{default:a(()=>[e(l,null,{default:a(()=>[q]),_:1}),e(d,{title:"Update PokaPlayer",description:r.value?P(k)?"New update available":"Up to date":"Loading..."},null,8,["description"])]),_:1})]),_:1}),e(h,{modelValue:p.value,"onUpdate:modelValue":t[2]||(t[2]=_=>p.value=_)},{default:a(()=>[i("h2",null,"Update PokaPlayer to "+v(r.value.tag_name),1),i("p",z,v(r.value.body),1),i("p",M,"Release date: "+v(new Date(r.value.published_at).toLocaleString()),1),e(y,{href:r.value.html_url,target:"_blank",rel:"noopener noreferrer",outlined:""},{default:a(()=>[b("View release")]),_:1},8,["href"]),i("div",G,[e(y,{onClick:t[1]||(t[1]=_=>p.value=!1),outlined:""},{default:a(()=>[b("Cancel")]),_:1}),e(y,{onClick:S,color:"primary"},{default:a(()=>[b("Update")]),_:1})])]),_:1},8,["modelValue"]),e(h,{modelValue:u.value,"onUpdate:modelValue":t[3]||(t[3]=_=>u.value=_),closeable:!1},{default:a(()=>[e(L,{style:{margin:"calc(var(--padding) * 4) 0"}}),i("p",H,v(o.value),1)]),_:1},8,["modelValue"])],64)}}};export{O as default}; diff --git a/public/assets/Theme-127d7a0b.js b/public/assets/Theme-127d7a0b.js deleted file mode 100644 index dceb58b..0000000 --- a/public/assets/Theme-127d7a0b.js +++ /dev/null @@ -1 +0,0 @@ -import{B as C,i as b,l as k,r as g,o as d,c as r,e as U,b as e,t as n,T as B,F as _,d as V,q as u,s as $,f as c,w as p,C as m,D as y,E,G as S,H as j}from"./index-e2ba9829.js";const D={style:{"margin-bottom":"var(--padding)"}},N={class:"theme-preview-items"},O=["onClick"],P={class:"layer-1"},A={class:"bx bx-check"},F=e("div",{class:"layer-2"}," Aa ",-1),q={class:"layer-1"},z={key:0,class:"bx bx-check"},G={class:"layer-2"},H={class:"setting-item"},L={class:"content"},M={class:"title"},R={class:"control"},W=e("optgroup",{label:"🌑"},null,-1),I=e("option",{value:"0,0,0"},"0 ",-1),J=e("option",{value:"25,25,25"},"25 ",-1),K={value:"51,51,51"},Q=e("option",{value:"200,200,200"},"200",-1),X=e("option",{value:"230,230,230"},"230 ",-1),Y=e("option",{value:"255,255,255"},"255 ",-1),Z=e("optgroup",{label:"☀️"},null,-1),ee={class:"setting-item"},te={class:"content"},oe={class:"title"},se={class:"control"},le={style:{"margin-bottom":"var(--padding)"}},ne={style:{"margin-bottom":"var(--padding)"}},ae={class:"setting-item"},ie={class:"content"},de={class:"title"},re={class:"control"},ce=e("option",{value:"72px"},"72px ",-1),ue=e("option",{value:"96px"},"96px ",-1),pe={value:"128px"},_e=e("option",{value:"160px"},"160px ",-1),me=e("option",{value:"192px"},"192px ",-1),ve={class:"setting-item"},he={class:"content"},ge={class:"title"},ye={class:"control"},xe=e("option",{value:"4px"},"4px ",-1),fe=e("option",{value:"8px"},"8px ",-1),be={value:"12px"},ke=e("option",{value:"16px"},"16px ",-1),Ve=e("option",{value:"24px"},"24px ",-1),$e={class:"setting-item"},we={class:"content"},Te={class:"title"},Ce={class:"control"},Ue=e("option",{value:"4px"},"4px ",-1),Be={value:"8px"},Ee=e("option",{value:"10px"},"10px ",-1),Se=e("option",{value:"12px"},"12px ",-1),je=e("option",{value:"16px"},"16px ",-1),Oe={__name:"Theme",setup(De){const a=C("poka.theme",{theme:"light",cssText:""}),x=b({light:{"--background-layer-1":"#ffffff","--background-layer-2":"#f2f2f2","--text-color-value":"51,51,51"},dark:{"--background-layer-1":"#1e1e1e","--background-layer-2":"#2e2e2e","--text-color-value":"255,255,255"},black:{"--background-layer-1":"#0b0b0b","--background-layer-2":"#000000","--text-color-value":"255,255,255"},ocean:{"--background-layer-1":"#393644","--background-layer-2":"#302e38","--text-color-value":"230,230,255"}}),s=b({"--border-radius":"12px","--padding":"8px","--min-card-width":"128px","--primary-color":"#007bff","--background-layer-1":"#ffffff","--background-layer-2":"#f8f9fa","--text-color-value":"51,51,51"});for(let t in s.value)s.value[t]=document.documentElement.style.getPropertyValue(t)||s.value[t];return k(a,(t,o)=>{let i=x.value[t.theme];if(i)for(let[v,h]of Object.entries(i))s.value[v]=h}),k(s,t=>{for(let o in t)document.documentElement.style.setProperty(o,t[o]);j(()=>{a.value.cssText=document.documentElement.style.cssText})},{deep:!0}),(t,o)=>{const i=g("p-select"),v=g("p-card"),h=g("p-cards");return d(),r(_,null,[(d(),U(B,{to:"#header-center"},[e("p",null,n(t.$t("settings.theme.title")),1)])),e("h4",D,n(t.$t("settings.theme.themeAndColor")),1),e("div",N,[(d(!0),r(_,null,V(Object.entries(x.value),([l,w])=>(d(),r("div",{class:"theme-preview-item",onClick:f=>u(a).theme=l,style:E(Object.entries(w).map(([f,T])=>`${f}:${T}`).join(";")),tabindex:"0"},[e("div",P,[m(e("i",A,null,512),[[S,u(a).theme==l]])]),F],12,O))),256)),e("div",{class:"theme-preview-item",onClick:o[0]||(o[0]=l=>u(a).theme="custom"),tabindex:"0"},[e("div",q,[u(a).theme=="custom"?(d(),r("i",z)):$("",!0)]),e("div",G,n(t.$t("settings.theme.custom")),1)])]),u(a).theme=="custom"?(d(),r(_,{key:0},[e("div",H,[e("div",L,[e("div",M,n(t.$t("settings.theme.textColor")),1)]),e("div",R,[c(i,{modelValue:s.value["--text-color-value"],"onUpdate:modelValue":o[1]||(o[1]=l=>s.value["--text-color-value"]=l)},{default:p(()=>[W,I,J,e("option",K,"51 ("+n(t.$t("settings.theme.default"))+") ",1),Q,X,Y,Z]),_:1},8,["modelValue"])])]),e("div",ee,[e("div",te,[e("div",oe,n(t.$t("settings.theme.color")),1)]),e("div",se,[m(e("input",{type:"color","onUpdate:modelValue":o[2]||(o[2]=l=>s.value["--primary-color"]=l)},null,512),[[y,s.value["--primary-color"]]]),m(e("input",{type:"color","onUpdate:modelValue":o[3]||(o[3]=l=>s.value["--background-layer-1"]=l)},null,512),[[y,s.value["--background-layer-1"]]]),m(e("input",{type:"color","onUpdate:modelValue":o[4]||(o[4]=l=>s.value["--background-layer-2"]=l)},null,512),[[y,s.value["--background-layer-2"]]])])])],64)):$("",!0),e("h4",le,n(t.$t("settings.theme.preview")),1),c(h,{style:{margin:"calc(var(--padding) * 2) 0"}},{default:p(()=>[(d(),r(_,null,V(4,l=>c(v,{imgSrc:"/img/pwa-512x512.png",title:t.$t("settings.theme.preview"),source:t.$t("settings.theme.preview")},null,8,["title","source"])),64))]),_:1}),e("h4",ne,n(t.$t("settings.theme.style")),1),e("div",ae,[e("div",ie,[e("div",de,n(t.$t("settings.theme.cardWidth")),1)]),e("div",re,[c(i,{modelValue:s.value["--min-card-width"],"onUpdate:modelValue":o[5]||(o[5]=l=>s.value["--min-card-width"]=l)},{default:p(()=>[ce,ue,e("option",pe,"128px ("+n(t.$t("settings.theme.default"))+") ",1),_e,me]),_:1},8,["modelValue"])])]),e("div",ve,[e("div",he,[e("div",ge,n(t.$t("settings.theme.borderRadius")),1)]),e("div",ye,[c(i,{modelValue:s.value["--border-radius"],"onUpdate:modelValue":o[6]||(o[6]=l=>s.value["--border-radius"]=l)},{default:p(()=>[xe,fe,e("option",be,"12px ("+n(t.$t("settings.theme.default"))+")",1),ke,Ve]),_:1},8,["modelValue"])])]),e("div",$e,[e("div",we,[e("div",Te,n(t.$t("settings.theme.padding")),1)]),e("div",Ce,[c(i,{modelValue:s.value["--padding"],"onUpdate:modelValue":o[7]||(o[7]=l=>s.value["--padding"]=l)},{default:p(()=>[Ue,e("option",Be,"8px ("+n(t.$t("settings.theme.default"))+")",1),Ee,Se,je]),_:1},8,["modelValue"])])])],64)}}};export{Oe as default}; diff --git a/public/assets/Theme-50084bb6.js b/public/assets/Theme-50084bb6.js new file mode 100644 index 0000000..a9a76c2 --- /dev/null +++ b/public/assets/Theme-50084bb6.js @@ -0,0 +1 @@ +import{B as T,i as b,l as k,r as g,o as d,c as r,e as S,b as e,t as n,T as U,F as m,d as V,q as u,s as $,f as c,w as p,C as _,D as y,E,G as B,H as j}from"./index-e1e3d4ec.js";const P={style:{"margin-bottom":"var(--padding)"}},A={class:"theme-preview-items"},D=["onClick"],N={class:"layer-1"},O={class:"bx bx-check"},q=e("div",{class:"layer-2"}," Aa ",-1),F={class:"layer-1"},z={key:0,class:"bx bx-check"},G={class:"layer-2"},H={class:"setting-item"},L={class:"content"},M={class:"title"},R={class:"control"},W=e("optgroup",{label:"🌑"},null,-1),I=e("option",{value:"0,0,0"},"0 ",-1),J=e("option",{value:"25,25,25"},"25 ",-1),K={value:"51,51,51"},Q=e("option",{value:"200,200,200"},"200",-1),X=e("option",{value:"230,230,230"},"230 ",-1),Y=e("option",{value:"255,255,255"},"255 ",-1),Z=e("optgroup",{label:"☀️"},null,-1),ee={class:"setting-item"},te={class:"content"},oe={class:"title"},se={class:"control"},le={style:{"margin-bottom":"var(--padding)"}},ne={style:{"margin-bottom":"var(--padding)"}},ae={class:"setting-item"},ie={class:"content"},de={class:"title"},re={class:"control"},ce=e("option",{value:"72px"},"72px ",-1),ue=e("option",{value:"96px"},"96px ",-1),pe={value:"128px"},me=e("option",{value:"160px"},"160px ",-1),_e=e("option",{value:"192px"},"192px ",-1),ve={class:"setting-item"},he={class:"content"},ge={class:"title"},ye={class:"control"},fe=e("option",{value:"4px"},"4px ",-1),xe=e("option",{value:"8px"},"8px ",-1),be={value:"12px"},ke=e("option",{value:"16px"},"16px ",-1),Ve=e("option",{value:"24px"},"24px ",-1),$e={class:"setting-item"},we={class:"content"},Ce={class:"title"},Te={class:"control"},Se=e("option",{value:"4px"},"4px ",-1),Ue={value:"8px"},Ee=e("option",{value:"10px"},"10px ",-1),Be=e("option",{value:"12px"},"12px ",-1),je=e("option",{value:"16px"},"16px ",-1),De={__name:"Theme",setup(Pe){const a=T("poka.theme",{theme:"light",cssText:""}),f=b({light:{"--background-layer-1":"#ffffff","--background-layer-2":"#f2f2f2","--text-color-value":"51,51,51"},dark:{"--background-layer-1":"#1e1e1e","--background-layer-2":"#2e2e2e","--text-color-value":"255,255,255"},black:{"--background-layer-1":"#0b0b0b","--background-layer-2":"#000000","--text-color-value":"255,255,255"},ocean:{"--background-layer-1":"#393644","--background-layer-2":"#302e38","--text-color-value":"230,230,255"}}),s=b({"--border-radius":"12px","--padding":"8px","--min-card-width":"128px","--primary-color":"#007bff","--background-layer-1":"#ffffff","--background-layer-2":"#f8f9fa","--text-color-value":"51,51,51"});for(let t in s.value)s.value[t]=document.documentElement.style.getPropertyValue(t)||s.value[t];return k(a,(t,o)=>{let i=f.value[t.theme];if(i)for(let[v,h]of Object.entries(i))s.value[v]=h}),k(s,t=>{for(let o in t)document.documentElement.style.setProperty(o,t[o]);j(()=>{a.value.cssText=document.documentElement.style.cssText;let o=document.querySelector('meta[name="theme-color"]');o&&o.setAttribute("content",getComputedStyle(document.documentElement).getPropertyValue("--background-layer-1"))})},{deep:!0}),(t,o)=>{const i=g("p-select"),v=g("p-card"),h=g("p-cards");return d(),r(m,null,[(d(),S(U,{to:"#header-center"},[e("p",null,n(t.$t("settings.theme.title")),1)])),e("h4",P,n(t.$t("settings.theme.themeAndColor")),1),e("div",A,[(d(!0),r(m,null,V(Object.entries(f.value),([l,w])=>(d(),r("div",{class:"theme-preview-item",onClick:x=>u(a).theme=l,style:E(Object.entries(w).map(([x,C])=>`${x}:${C}`).join(";")),tabindex:"0"},[e("div",N,[_(e("i",O,null,512),[[B,u(a).theme==l]])]),q],12,D))),256)),e("div",{class:"theme-preview-item",onClick:o[0]||(o[0]=l=>u(a).theme="custom"),tabindex:"0"},[e("div",F,[u(a).theme=="custom"?(d(),r("i",z)):$("",!0)]),e("div",G,n(t.$t("settings.theme.custom")),1)])]),u(a).theme=="custom"?(d(),r(m,{key:0},[e("div",H,[e("div",L,[e("div",M,n(t.$t("settings.theme.textColor")),1)]),e("div",R,[c(i,{modelValue:s.value["--text-color-value"],"onUpdate:modelValue":o[1]||(o[1]=l=>s.value["--text-color-value"]=l)},{default:p(()=>[W,I,J,e("option",K,"51 ("+n(t.$t("settings.theme.default"))+") ",1),Q,X,Y,Z]),_:1},8,["modelValue"])])]),e("div",ee,[e("div",te,[e("div",oe,n(t.$t("settings.theme.color")),1)]),e("div",se,[_(e("input",{type:"color","onUpdate:modelValue":o[2]||(o[2]=l=>s.value["--primary-color"]=l)},null,512),[[y,s.value["--primary-color"]]]),_(e("input",{type:"color","onUpdate:modelValue":o[3]||(o[3]=l=>s.value["--background-layer-1"]=l)},null,512),[[y,s.value["--background-layer-1"]]]),_(e("input",{type:"color","onUpdate:modelValue":o[4]||(o[4]=l=>s.value["--background-layer-2"]=l)},null,512),[[y,s.value["--background-layer-2"]]])])])],64)):$("",!0),e("h4",le,n(t.$t("settings.theme.preview")),1),c(h,{style:{margin:"calc(var(--padding) * 2) 0"}},{default:p(()=>[(d(),r(m,null,V(4,l=>c(v,{imgSrc:"/img/pwa-512x512.png",title:t.$t("settings.theme.preview"),source:t.$t("settings.theme.preview")},null,8,["title","source"])),64))]),_:1}),e("h4",ne,n(t.$t("settings.theme.style")),1),e("div",ae,[e("div",ie,[e("div",de,n(t.$t("settings.theme.cardWidth")),1)]),e("div",re,[c(i,{modelValue:s.value["--min-card-width"],"onUpdate:modelValue":o[5]||(o[5]=l=>s.value["--min-card-width"]=l)},{default:p(()=>[ce,ue,e("option",pe,"128px ("+n(t.$t("settings.theme.default"))+") ",1),me,_e]),_:1},8,["modelValue"])])]),e("div",ve,[e("div",he,[e("div",ge,n(t.$t("settings.theme.borderRadius")),1)]),e("div",ye,[c(i,{modelValue:s.value["--border-radius"],"onUpdate:modelValue":o[6]||(o[6]=l=>s.value["--border-radius"]=l)},{default:p(()=>[fe,xe,e("option",be,"12px ("+n(t.$t("settings.theme.default"))+")",1),ke,Ve]),_:1},8,["modelValue"])])]),e("div",$e,[e("div",we,[e("div",Ce,n(t.$t("settings.theme.padding")),1)]),e("div",Te,[c(i,{modelValue:s.value["--padding"],"onUpdate:modelValue":o[7]||(o[7]=l=>s.value["--padding"]=l)},{default:p(()=>[Se,e("option",Ue,"8px ("+n(t.$t("settings.theme.default"))+")",1),Ee,Be,je]),_:1},8,["modelValue"])])])],64)}}};export{De as default}; diff --git a/public/assets/User-69dafa56.js b/public/assets/User-919a59a1.js similarity index 98% rename from public/assets/User-69dafa56.js rename to public/assets/User-919a59a1.js index 78ba59b..6de0a98 100644 --- a/public/assets/User-69dafa56.js +++ b/public/assets/User-919a59a1.js @@ -1 +1 @@ -import{z as j,j as F,i as u,r as P,o as k,c as b,e as I,b as e,t as l,T as B,q as v,f as o,w as n,s as S,F as A,m as d}from"./index-e2ba9829.js";import{u as q}from"./user-b8b24cf2.js";const z={key:0},E={class:"setting-item"},L={class:"content"},R={class:"title"},G={class:"description"},H={class:"control"},J={class:"setting-item"},K={class:"content"},M={class:"title"},O={class:"description"},Q={class:"control"},W={class:"setting-item"},X={class:"content"},Y={class:"title"},Z={class:"control"},x={class:"setting-item"},ee={class:"content"},se={class:"title"},te={class:"description"},le={class:"setting-item"},ae={class:"content"},oe={class:"title"},ne={class:"description"},ie={class:"setting-item"},de={class:"content"},ue={class:"title"},re={class:"description"},ve={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},me={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},ce={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},_e={__name:"User",setup(pe){const C=q(),{userInfo:r}=j(C),f=F("PokaAPI"),m=u(!1),$=u(""),c=u(!1),V=u(""),p=u(!1),w=u(""),_=u(""),U=u("");async function h(){r.value=await f.getUserInfo()}async function N(){await f.changeUserName($.value),m.value=!1,await h()}async function D(){await f.changeUserUsername(V.value),c.value=!1,await h()}async function T(){if(_.value!==U.value){window.alert("Password not match");return}await f.changeUserPassword(w.value,_.value),p.value=!1}return(t,s)=>{const i=P("p-btn"),g=P("p-input"),y=P("Dialog");return k(),b(A,null,[(k(),I(B,{to:"#header-center"},[e("p",null,l(t.$t("settings.user.title")),1)])),v(r)?(k(),b("div",z,[e("div",E,[e("div",L,[e("div",R,l(t.$t("settings.user.name")),1),e("div",G,l(v(r).name),1)]),e("div",H,[o(i,{onClick:s[0]||(s[0]=a=>m.value=!0)},{default:n(()=>[d(l(t.$t("settings.user.edit")),1)]),_:1})])]),e("div",J,[e("div",K,[e("div",M,l(t.$t("settings.user.username")),1),e("div",O,l(v(r).username),1)]),e("div",Q,[o(i,{onClick:s[1]||(s[1]=a=>c.value=!0)},{default:n(()=>[d(l(t.$t("settings.user.edit")),1)]),_:1})])]),e("div",W,[e("div",X,[e("div",Y,l(t.$t("settings.user.password")),1)]),e("div",Z,[o(i,{onClick:s[2]||(s[2]=a=>p.value=!0)},{default:n(()=>[d(l(t.$t("settings.user.changePassword")),1)]),_:1})])]),e("div",x,[e("div",ee,[e("div",se,l(t.$t("settings.user.id")),1),e("div",te,l(v(r)._id),1)])]),e("div",le,[e("div",ae,[e("div",oe,l(t.$t("settings.user.role")),1),e("div",ne,l(v(r).role),1)])]),e("div",ie,[e("div",de,[e("div",ue,l(t.$t("settings.user.createTime")),1),e("div",re,l(new Date(v(r).createTime).toLocaleString()),1)])])])):S("",!0),o(y,{modelValue:m.value,"onUpdate:modelValue":s[5]||(s[5]=a=>m.value=a)},{default:n(()=>[e("h3",null,l(t.$t("settings.user.name")),1),o(g,{label:t.$t("settings.user.name"),modelValue:$.value,"onUpdate:modelValue":s[3]||(s[3]=a=>$.value=a)},null,8,["label","modelValue"]),e("div",ve,[o(i,{onClick:s[4]||(s[4]=a=>m.value=!1)},{default:n(()=>[d(l(t.$t("cancel")),1)]),_:1}),o(i,{onClick:N,color:"primary"},{default:n(()=>[d(l(t.$t("save")),1)]),_:1})])]),_:1},8,["modelValue"]),o(y,{modelValue:c.value,"onUpdate:modelValue":s[8]||(s[8]=a=>c.value=a)},{default:n(()=>[e("h3",null,l(t.$t("settings.user.username")),1),o(g,{label:t.$t("settings.user.username"),modelValue:V.value,"onUpdate:modelValue":s[6]||(s[6]=a=>V.value=a)},null,8,["label","modelValue"]),e("div",me,[o(i,{onClick:s[7]||(s[7]=a=>c.value=!1)},{default:n(()=>[d(l(t.$t("cancel")),1)]),_:1}),o(i,{onClick:D,color:"primary"},{default:n(()=>[d(l(t.$t("save")),1)]),_:1})])]),_:1},8,["modelValue"]),o(y,{modelValue:p.value,"onUpdate:modelValue":s[13]||(s[13]=a=>p.value=a)},{default:n(()=>[e("h3",null,l(t.$t("settings.user.changePassword")),1),o(g,{label:t.$t("settings.user.oldPassword"),modelValue:w.value,"onUpdate:modelValue":s[9]||(s[9]=a=>w.value=a)},null,8,["label","modelValue"]),o(g,{label:t.$t("settings.user.newPassword"),modelValue:_.value,"onUpdate:modelValue":s[10]||(s[10]=a=>_.value=a)},null,8,["label","modelValue"]),o(g,{label:t.$t("settings.user.confirmPassword"),modelValue:U.value,"onUpdate:modelValue":s[11]||(s[11]=a=>U.value=a)},null,8,["label","modelValue"]),e("div",ce,[o(i,{onClick:s[12]||(s[12]=a=>p.value=!1)},{default:n(()=>[d(l(t.$t("cancel")),1)]),_:1}),o(i,{onClick:T,color:"primary"},{default:n(()=>[d(l(t.$t("save")),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}};export{_e as default}; +import{z as j,j as F,i as u,r as P,o as k,c as b,e as I,b as e,t as l,T as B,q as v,f as o,w as n,s as S,F as A,m as d}from"./index-e1e3d4ec.js";import{u as q}from"./user-7208dd84.js";const z={key:0},E={class:"setting-item"},L={class:"content"},R={class:"title"},G={class:"description"},H={class:"control"},J={class:"setting-item"},K={class:"content"},M={class:"title"},O={class:"description"},Q={class:"control"},W={class:"setting-item"},X={class:"content"},Y={class:"title"},Z={class:"control"},x={class:"setting-item"},ee={class:"content"},se={class:"title"},te={class:"description"},le={class:"setting-item"},ae={class:"content"},oe={class:"title"},ne={class:"description"},ie={class:"setting-item"},de={class:"content"},ue={class:"title"},re={class:"description"},ve={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},me={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},ce={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},_e={__name:"User",setup(pe){const C=q(),{userInfo:r}=j(C),f=F("PokaAPI"),m=u(!1),$=u(""),c=u(!1),V=u(""),p=u(!1),w=u(""),_=u(""),U=u("");async function h(){r.value=await f.getUserInfo()}async function N(){await f.changeUserName($.value),m.value=!1,await h()}async function D(){await f.changeUserUsername(V.value),c.value=!1,await h()}async function T(){if(_.value!==U.value){window.alert("Password not match");return}await f.changeUserPassword(w.value,_.value),p.value=!1}return(t,s)=>{const i=P("p-btn"),g=P("p-input"),y=P("Dialog");return k(),b(A,null,[(k(),I(B,{to:"#header-center"},[e("p",null,l(t.$t("settings.user.title")),1)])),v(r)?(k(),b("div",z,[e("div",E,[e("div",L,[e("div",R,l(t.$t("settings.user.name")),1),e("div",G,l(v(r).name),1)]),e("div",H,[o(i,{onClick:s[0]||(s[0]=a=>m.value=!0)},{default:n(()=>[d(l(t.$t("settings.user.edit")),1)]),_:1})])]),e("div",J,[e("div",K,[e("div",M,l(t.$t("settings.user.username")),1),e("div",O,l(v(r).username),1)]),e("div",Q,[o(i,{onClick:s[1]||(s[1]=a=>c.value=!0)},{default:n(()=>[d(l(t.$t("settings.user.edit")),1)]),_:1})])]),e("div",W,[e("div",X,[e("div",Y,l(t.$t("settings.user.password")),1)]),e("div",Z,[o(i,{onClick:s[2]||(s[2]=a=>p.value=!0)},{default:n(()=>[d(l(t.$t("settings.user.changePassword")),1)]),_:1})])]),e("div",x,[e("div",ee,[e("div",se,l(t.$t("settings.user.id")),1),e("div",te,l(v(r)._id),1)])]),e("div",le,[e("div",ae,[e("div",oe,l(t.$t("settings.user.role")),1),e("div",ne,l(v(r).role),1)])]),e("div",ie,[e("div",de,[e("div",ue,l(t.$t("settings.user.createTime")),1),e("div",re,l(new Date(v(r).createTime).toLocaleString()),1)])])])):S("",!0),o(y,{modelValue:m.value,"onUpdate:modelValue":s[5]||(s[5]=a=>m.value=a)},{default:n(()=>[e("h3",null,l(t.$t("settings.user.name")),1),o(g,{label:t.$t("settings.user.name"),modelValue:$.value,"onUpdate:modelValue":s[3]||(s[3]=a=>$.value=a)},null,8,["label","modelValue"]),e("div",ve,[o(i,{onClick:s[4]||(s[4]=a=>m.value=!1)},{default:n(()=>[d(l(t.$t("cancel")),1)]),_:1}),o(i,{onClick:N,color:"primary"},{default:n(()=>[d(l(t.$t("save")),1)]),_:1})])]),_:1},8,["modelValue"]),o(y,{modelValue:c.value,"onUpdate:modelValue":s[8]||(s[8]=a=>c.value=a)},{default:n(()=>[e("h3",null,l(t.$t("settings.user.username")),1),o(g,{label:t.$t("settings.user.username"),modelValue:V.value,"onUpdate:modelValue":s[6]||(s[6]=a=>V.value=a)},null,8,["label","modelValue"]),e("div",me,[o(i,{onClick:s[7]||(s[7]=a=>c.value=!1)},{default:n(()=>[d(l(t.$t("cancel")),1)]),_:1}),o(i,{onClick:D,color:"primary"},{default:n(()=>[d(l(t.$t("save")),1)]),_:1})])]),_:1},8,["modelValue"]),o(y,{modelValue:p.value,"onUpdate:modelValue":s[13]||(s[13]=a=>p.value=a)},{default:n(()=>[e("h3",null,l(t.$t("settings.user.changePassword")),1),o(g,{label:t.$t("settings.user.oldPassword"),modelValue:w.value,"onUpdate:modelValue":s[9]||(s[9]=a=>w.value=a)},null,8,["label","modelValue"]),o(g,{label:t.$t("settings.user.newPassword"),modelValue:_.value,"onUpdate:modelValue":s[10]||(s[10]=a=>_.value=a)},null,8,["label","modelValue"]),o(g,{label:t.$t("settings.user.confirmPassword"),modelValue:U.value,"onUpdate:modelValue":s[11]||(s[11]=a=>U.value=a)},null,8,["label","modelValue"]),e("div",ce,[o(i,{onClick:s[12]||(s[12]=a=>p.value=!1)},{default:n(()=>[d(l(t.$t("cancel")),1)]),_:1}),o(i,{onClick:T,color:"primary"},{default:n(()=>[d(l(t.$t("save")),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}};export{_e as default}; diff --git a/public/assets/Users-b042d73f.js b/public/assets/Users-53b15036.js similarity index 98% rename from public/assets/Users-b042d73f.js rename to public/assets/Users-53b15036.js index 67a0bc7..a87e717 100644 --- a/public/assets/Users-b042d73f.js +++ b/public/assets/Users-53b15036.js @@ -1 +1 @@ -import{j as I,i as g,I as j,k as E,r as d,o as p,c as P,e as c,b as s,t as U,T as D,f as e,w as l,s as L,q as R,A as S,F as $,m as w,d as h}from"./index-e2ba9829.js";const F=s("i",{class:"bx bx-edit"},null,-1),q=s("h3",null,"Create user",-1),M=s("p",null,"Create a new user",-1),z=s("option",{value:"user"},"User",-1),G=s("option",{value:"admin"},"Admin",-1),H={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},J=s("i",{class:"bx bx-lock-alt"},null,-1),K=s("i",{class:"bx bx-trash-alt"},null,-1),O={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},Y={__name:"Users",setup(Q){const _=I("PokaAPI"),y=g(null),n=g(null),i=g({name:"",username:"",password:"",role:"user"}),f=j({get:()=>!!n.value,set:()=>n.value=null}),m=g(!1);async function b(){let o=await _.getUserList();y.value=o}async function N(){let o=prompt("New password");if(o){let t=await _.changeUserPasswordById(n.value._id,o);t.success?alert("Password changed"):alert("Error: "+t.error)}}async function T(){prompt("Are you sure you want to delete this user? Type 'yes' to confirm")=="yes"&&((await _.deleteUser(n.value._id)).ok?await b():alert("Error"))}async function A(){let o=await _.createUser(i.value);o.success?(await b(),m.value=!1):alert("Error: "+o.error)}return E(async()=>{await b()}),(o,t)=>{const v=d("p-btn"),u=d("p-list-item-content"),V=d("p-list-item-icon-btn"),r=d("p-list-item"),k=d("p-list-items"),x=d("p-input"),B=d("p-select"),C=d("Dialog");return p(),P($,null,[(p(),c(D,{to:"#header-center"},[s("p",null,U(o.$t("settings.users.title")),1)])),(p(),c(D,{to:"#header-actions"},[e(v,{onClick:t[0]||(t[0]=a=>m.value=!0),outline:""},{default:l(()=>[w("Create")]),_:1})])),y.value?(p(),c(k,{key:0},{default:l(()=>[(p(!0),P($,null,h(y.value,a=>(p(),c(r,{tabindex:0},{actions:l(()=>[s("span",null,U(a.role),1),e(V,{onClick:W=>n.value=a},{default:l(()=>[F]),_:2},1032,["onClick"])]),default:l(()=>[e(u,{title:a.name,description:a.username},null,8,["title","description"])]),_:2},1024))),256))]),_:1})):L("",!0),e(C,{modelValue:m.value,"onUpdate:modelValue":t[6]||(t[6]=a=>m.value=a)},{default:l(()=>[q,M,e(x,{modelValue:i.value.name,"onUpdate:modelValue":t[1]||(t[1]=a=>i.value.name=a),label:"Name"},null,8,["modelValue"]),e(x,{modelValue:i.value.username,"onUpdate:modelValue":t[2]||(t[2]=a=>i.value.username=a),label:"Username"},null,8,["modelValue"]),e(x,{modelValue:i.value.password,"onUpdate:modelValue":t[3]||(t[3]=a=>i.value.password=a),label:"Password",type:"password"},null,8,["modelValue"]),e(B,{modelValue:i.value.role,"onUpdate:modelValue":t[4]||(t[4]=a=>i.value.role=a),label:"Role",style:{"margin-top":"var(--padding)"}},{default:l(()=>[z,G]),_:1},8,["modelValue"]),s("div",H,[e(v,{onClick:t[5]||(t[5]=a=>m.value=!1)},{default:l(()=>[w("Cancel")]),_:1}),e(v,{onClick:A,color:"primary"},{default:l(()=>[w("Create")]),_:1})])]),_:1},8,["modelValue"]),e(C,{modelValue:R(f),"onUpdate:modelValue":t[8]||(t[8]=a=>S(f)?f.value=a:null)},{default:l(()=>[n.value?(p(),c(k,{key:0,"single-row":""},{default:l(()=>[e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:n.value.name,description:n.value.username},null,8,["title","description"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:n.value._id,description:"ID"},null,8,["title"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:n.value.role,description:"Role"},null,8,["title"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:new Date(n.value.createTime).toLocaleString(),description:"Create time"},null,8,["title"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:new Date(n.value.lastLoginTime).toLocaleString(),description:"Last login time"},null,8,["title"])]),_:1}),e(r,{tabindex:"0",onClick:N},{default:l(()=>[e(V,null,{default:l(()=>[J]),_:1}),e(u,{title:o.$t("settings.user.changePassword")},null,8,["title"])]),_:1}),e(r,{tabindex:"0",onClick:T},{default:l(()=>[e(V,null,{default:l(()=>[K]),_:1}),e(u,{title:"Delete user"})]),_:1})]),_:1})):L("",!0),s("div",O,[e(v,{onClick:t[7]||(t[7]=a=>f.value=!1),color:"primary"},{default:l(()=>[w(U(o.$t("close")),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}};export{Y as default}; +import{j as I,i as g,I as j,k as E,r as d,o as p,c as P,e as c,b as s,t as U,T as D,f as e,w as l,s as L,q as R,A as S,F as $,m as w,d as h}from"./index-e1e3d4ec.js";const F=s("i",{class:"bx bx-edit"},null,-1),q=s("h3",null,"Create user",-1),M=s("p",null,"Create a new user",-1),z=s("option",{value:"user"},"User",-1),G=s("option",{value:"admin"},"Admin",-1),H={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)",gap:"var(--padding)"}},J=s("i",{class:"bx bx-lock-alt"},null,-1),K=s("i",{class:"bx bx-trash-alt"},null,-1),O={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},Y={__name:"Users",setup(Q){const _=I("PokaAPI"),y=g(null),n=g(null),i=g({name:"",username:"",password:"",role:"user"}),f=j({get:()=>!!n.value,set:()=>n.value=null}),m=g(!1);async function b(){let o=await _.getUserList();y.value=o}async function N(){let o=prompt("New password");if(o){let t=await _.changeUserPasswordById(n.value._id,o);t.success?alert("Password changed"):alert("Error: "+t.error)}}async function T(){prompt("Are you sure you want to delete this user? Type 'yes' to confirm")=="yes"&&((await _.deleteUser(n.value._id)).ok?await b():alert("Error"))}async function A(){let o=await _.createUser(i.value);o.success?(await b(),m.value=!1):alert("Error: "+o.error)}return E(async()=>{await b()}),(o,t)=>{const v=d("p-btn"),u=d("p-list-item-content"),V=d("p-list-item-icon-btn"),r=d("p-list-item"),k=d("p-list-items"),x=d("p-input"),B=d("p-select"),C=d("Dialog");return p(),P($,null,[(p(),c(D,{to:"#header-center"},[s("p",null,U(o.$t("settings.users.title")),1)])),(p(),c(D,{to:"#header-actions"},[e(v,{onClick:t[0]||(t[0]=a=>m.value=!0),outline:""},{default:l(()=>[w("Create")]),_:1})])),y.value?(p(),c(k,{key:0},{default:l(()=>[(p(!0),P($,null,h(y.value,a=>(p(),c(r,{tabindex:0},{actions:l(()=>[s("span",null,U(a.role),1),e(V,{onClick:W=>n.value=a},{default:l(()=>[F]),_:2},1032,["onClick"])]),default:l(()=>[e(u,{title:a.name,description:a.username},null,8,["title","description"])]),_:2},1024))),256))]),_:1})):L("",!0),e(C,{modelValue:m.value,"onUpdate:modelValue":t[6]||(t[6]=a=>m.value=a)},{default:l(()=>[q,M,e(x,{modelValue:i.value.name,"onUpdate:modelValue":t[1]||(t[1]=a=>i.value.name=a),label:"Name"},null,8,["modelValue"]),e(x,{modelValue:i.value.username,"onUpdate:modelValue":t[2]||(t[2]=a=>i.value.username=a),label:"Username"},null,8,["modelValue"]),e(x,{modelValue:i.value.password,"onUpdate:modelValue":t[3]||(t[3]=a=>i.value.password=a),label:"Password",type:"password"},null,8,["modelValue"]),e(B,{modelValue:i.value.role,"onUpdate:modelValue":t[4]||(t[4]=a=>i.value.role=a),label:"Role",style:{"margin-top":"var(--padding)"}},{default:l(()=>[z,G]),_:1},8,["modelValue"]),s("div",H,[e(v,{onClick:t[5]||(t[5]=a=>m.value=!1)},{default:l(()=>[w("Cancel")]),_:1}),e(v,{onClick:A,color:"primary"},{default:l(()=>[w("Create")]),_:1})])]),_:1},8,["modelValue"]),e(C,{modelValue:R(f),"onUpdate:modelValue":t[8]||(t[8]=a=>S(f)?f.value=a:null)},{default:l(()=>[n.value?(p(),c(k,{key:0,"single-row":""},{default:l(()=>[e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:n.value.name,description:n.value.username},null,8,["title","description"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:n.value._id,description:"ID"},null,8,["title"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:n.value.role,description:"Role"},null,8,["title"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:new Date(n.value.createTime).toLocaleString(),description:"Create time"},null,8,["title"])]),_:1}),e(r,{tabindex:"0"},{default:l(()=>[e(u,{title:new Date(n.value.lastLoginTime).toLocaleString(),description:"Last login time"},null,8,["title"])]),_:1}),e(r,{tabindex:"0",onClick:N},{default:l(()=>[e(V,null,{default:l(()=>[J]),_:1}),e(u,{title:o.$t("settings.user.changePassword")},null,8,["title"])]),_:1}),e(r,{tabindex:"0",onClick:T},{default:l(()=>[e(V,null,{default:l(()=>[K]),_:1}),e(u,{title:"Delete user"})]),_:1})]),_:1})):L("",!0),s("div",O,[e(v,{onClick:t[7]||(t[7]=a=>f.value=!1),color:"primary"},{default:l(()=>[w(U(o.$t("close")),1)]),_:1})])]),_:1},8,["modelValue"])],64)}}};export{Y as default}; diff --git a/public/assets/default-6891f3e1.js b/public/assets/default-6891f3e1.js deleted file mode 100644 index 1e5676d..0000000 --- a/public/assets/default-6891f3e1.js +++ /dev/null @@ -1 +0,0 @@ -import{u as f}from"./user-b8b24cf2.js";import{_ as y,R as b,a as g,r as a,o,c,b as e,F as d,d as _,e as n,f as k,w as u,n as p,t as h,p as S,g as I}from"./index-e2ba9829.js";const w={name:"DefaultLayout",setup(){return{userStore:f()}},components:{RouterView:b,RouterLink:g},data(){return{starting:!0,actions:[{icon:"bx-cog",text:"settings",to:"/settings"}],nav:[{icon:"bx-library",text:"library",to:"/"},{icon:"bx-search",text:"search",to:"/search"},{icon:"bx-album",text:"albums",to:"/albums"},{icon:"bx-folder",text:"folders",to:"/folders"},{icon:"bx-microphone",text:"artists",to:"/artists"},{icon:"bxs-piano",text:"composers",to:"/composers"},{icon:"bxs-playlist",text:"playlists",to:"/playlists"}]}},mounted(){this.start(),this.loadTheme()},methods:{async start(){try{let t=await this.$PokaAPI.getUserInfo();this.starting=!1,this.userStore.setUserInfo(t)}catch(t){console.log(t),this.$router.push("/login")}},loadTheme(){let t=localStorage.getItem("poka.theme");t&&(document.documentElement.style.cssText=JSON.parse(t).cssText)}}},i=t=>(S("data-v-856eef33"),t=t(),I(),t),$={class:"default-layout-container"},L={class:"header"},R=i(()=>e("div",{class:"logo"}," PokaPlayer ",-1)),V=i(()=>e("div",{class:"header-center",id:"header-center"},null,-1)),B={class:"header-actions"},P=i(()=>e("div",{id:"header-actions"},null,-1)),T={class:"nav-item-text"},C={class:"nav"},N={class:"nav-item-text"},U={class:"main"},D={class:"player"};function E(t,F,z,A,r,J){const l=a("router-link"),m=a("Loader"),v=a("RouterView"),x=a("bottom-player");return o(),c("div",$,[e("div",L,[R,V,e("div",B,[P,(o(!0),c(d,null,_(r.actions,s=>(o(),n(l,{class:"nav-item",to:s.to},{default:u(()=>[e("i",{class:p(["nav-item-icon bx",s.icon])},null,2),e("div",T,h(t.$t(`nav.${s.text}`)),1)]),_:2},1032,["to"]))),256))])]),e("div",C,[(o(!0),c(d,null,_(r.nav,s=>(o(),n(l,{class:"nav-item",to:s.to},{default:u(()=>[e("i",{class:p(["nav-item-icon bx",s.icon])},null,2),e("div",N,h(t.$t(`nav.${s.text}`)),1)]),_:2},1032,["to"]))),256))]),e("div",U,[r.starting?(o(),n(m,{key:0})):(o(),n(v,{key:1}))]),e("div",D,[k(x)])])}const q=y(w,[["render",E],["__scopeId","data-v-856eef33"]]);export{q as default}; diff --git a/public/assets/default-8ab79025.css b/public/assets/default-8ab79025.css deleted file mode 100644 index 00d448d..0000000 --- a/public/assets/default-8ab79025.css +++ /dev/null @@ -1 +0,0 @@ -.default-layout-container[data-v-856eef33]{width:100svw;height:100svh;background-color:var(--background-layer-2);display:grid;grid-template-columns:calc(var(--padding) * 6 + 24px) 1fr;grid-template-rows:auto 1fr;grid-template-areas:"header header" "nav main" "player player"}@media (max-width: 768px){.default-layout-container[data-v-856eef33]{grid-template-columns:calc(var(--padding) * 3.5 + 24px) 1fr}}.default-layout-container .header[data-v-856eef33]{grid-area:header;display:grid;grid-template-columns:200px 1fr 200px}@media (max-width: 768px){.default-layout-container .header[data-v-856eef33]{grid-template-columns:auto 1fr}}.default-layout-container .header .logo[data-v-856eef33]{padding:calc(var(--padding) * 2);font-family:Product Sans,sans-serif;font-weight:700;font-size:24px}.default-layout-container .header .header-center[data-v-856eef33]{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;text-align:center}@media (max-width: 768px){.default-layout-container .header .header-center[data-v-856eef33]{display:none}}.default-layout-container .header .header-actions[data-v-856eef33]{display:flex;align-items:center;justify-content:flex-end;gap:calc(var(--padding) / 2)}.default-layout-container .header .header-actions #header-actions[data-v-856eef33]{display:flex;align-items:center;gap:calc(var(--padding) / 2)}.default-layout-container .header .header-actions .nav-item[data-v-856eef33]{margin-top:0}.default-layout-container .header .header-actions .nav-item .nav-item-text[data-v-856eef33]{left:initial;top:calc(var(--padding) * 8);right:0;transform:scale(.75) translateY(calc(var(--padding) * -5))}.default-layout-container .header .header-actions .nav-item:hover .nav-item-text[data-v-856eef33]{transform:none}.default-layout-container .nav[data-v-856eef33]{grid-area:nav;padding:0 var(--padding)}@media (max-width: 768px){.default-layout-container .nav[data-v-856eef33]{padding:0 calc(var(--padding) * .25)}}.default-layout-container .nav-item[data-v-856eef33]{padding:calc(var(--padding) * 2);display:block;border-radius:var(--border-radius);color:var(--text-color);text-decoration:none;display:flex;align-items:center;position:relative;transition:all var(--transition);z-index:1}.default-layout-container .nav-item[data-v-856eef33]:not(:first-child){margin-top:calc(var(--padding) / 2)}.default-layout-container .nav-item .nav-item-icon[data-v-856eef33]{font-size:24px}.default-layout-container .nav-item .nav-item-text[data-v-856eef33]{opacity:0;position:absolute;left:calc(var(--padding) * 7.5);transition:all var(--transition);transform:scale(.75) translate(calc(var(--padding) * -5));background-color:var(--background-layer-1);border:var(--border-width) solid var(--border-color);padding:var(--padding) calc(var(--padding) * 2);box-shadow:var(--box-shadow);border-radius:var(--border-radius);pointer-events:none;white-space:nowrap}.default-layout-container .nav-item[data-v-856eef33]:hover{background-color:rgba(var(--text-color-value),.075);outline:0}.default-layout-container .nav-item:hover .nav-item-text[data-v-856eef33]{opacity:1;filter:blur(0);transform:none}.default-layout-container .nav-item:hover .nav-item-icon.bx-cog[data-v-856eef33]{transform:rotate(60deg);transition:all var(--transition)}.default-layout-container .nav-item[data-v-856eef33]:active{background-color:rgba(var(--text-color-value),.15);transform:scale(.95)}@media (max-width: 768px){.default-layout-container .nav-item[data-v-856eef33]{padding:calc(var(--padding) * 1.5)}.default-layout-container .nav-item .nav-item-text[data-v-856eef33]{left:calc(var(--padding) * 7)}.default-layout-container .nav-item .nav-item-icon[data-v-856eef33]{margin-right:0}}.default-layout-container .nav-item.router-link-exact-active[data-v-856eef33]{background-color:rgba(var(--text-color-value),.15);transform:none}.default-layout-container .nav-item.router-link-exact-active .nav-item-text[data-v-856eef33]{transition-delay:.4s;opacity:0;transform:scale(.75) translate(calc(var(--padding) * -5))}.default-layout-container .main[data-v-856eef33]{grid-area:main;background-color:var(--background-layer-1);border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);padding:calc(var(--padding) * 4);overflow-y:scroll}.default-layout-container .main[data-v-856eef33]::-webkit-scrollbar{width:4px}.default-layout-container .main[data-v-856eef33]::-webkit-scrollbar-track{background:transparent}.default-layout-container .main[data-v-856eef33]::-webkit-scrollbar-thumb{background:#888;border-radius:2px}.default-layout-container .main[data-v-856eef33]::-webkit-scrollbar-thumb:hover{background:#777}.default-layout-container .main[data-v-856eef33]::-webkit-scrollbar-thumb:active{background:#666}.default-layout-container .main[data-v-856eef33]::-webkit-scrollbar-button{display:none}@media (max-width: 768px){.default-layout-container .main[data-v-856eef33]{padding:calc(var(--padding) * 2)}}.default-layout-container .player[data-v-856eef33]{grid-area:player;background-color:var(--background-layer-2)} diff --git a/public/assets/default-ae053ae9.css b/public/assets/default-ae053ae9.css new file mode 100644 index 0000000..2796a48 --- /dev/null +++ b/public/assets/default-ae053ae9.css @@ -0,0 +1 @@ +.default-layout-container[data-v-9033cb87]{width:100svw;height:100svh;background-color:var(--background-layer-2);display:grid;grid-template-columns:calc(var(--padding) * 6 + 24px) 1fr;grid-template-rows:auto 1fr;grid-template-areas:"header header" "nav main" "player player"}@media (max-width: 768px){.default-layout-container[data-v-9033cb87]{grid-template-columns:calc(var(--padding) * 3.5 + 24px) 1fr}}.default-layout-container .header[data-v-9033cb87]{grid-area:header;display:grid;grid-template-columns:200px 1fr 200px}@media (max-width: 768px){.default-layout-container .header[data-v-9033cb87]{grid-template-columns:auto 1fr}}.default-layout-container .header .logo[data-v-9033cb87]{padding:calc(var(--padding) * 2);font-family:Product Sans,sans-serif;font-weight:700;font-size:24px}.default-layout-container .header .header-center[data-v-9033cb87]{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;text-align:center}@media (max-width: 768px){.default-layout-container .header .header-center[data-v-9033cb87]{display:none}}.default-layout-container .header .header-actions[data-v-9033cb87]{display:flex;align-items:center;justify-content:flex-end;gap:calc(var(--padding) / 2)}.default-layout-container .header .header-actions #header-actions[data-v-9033cb87]{display:flex;align-items:center;gap:calc(var(--padding) / 2)}.default-layout-container .header .header-actions .nav-item[data-v-9033cb87]{margin-top:0}.default-layout-container .header .header-actions .nav-item .nav-item-text[data-v-9033cb87]{left:initial;top:calc(var(--padding) * 8);right:0;transform:scale(.75) translateY(calc(var(--padding) * -5))}.default-layout-container .header .header-actions .nav-item:hover .nav-item-text[data-v-9033cb87]{transform:none}.default-layout-container .nav[data-v-9033cb87]{grid-area:nav;padding:0 var(--padding)}@media (max-width: 768px){.default-layout-container .nav[data-v-9033cb87]{padding:0 calc(var(--padding) * .25)}}.default-layout-container .nav-item[data-v-9033cb87]{padding:calc(var(--padding) * 2);border-radius:var(--border-radius);color:var(--text-color);text-decoration:none;display:flex;align-items:center;justify-content:center;position:relative;transition:all var(--transition);z-index:1}@media (max-height: 768px){.default-layout-container .nav-item[data-v-9033cb87]{padding:calc(var(--padding) * 1.5)}}.default-layout-container .nav-item[data-v-9033cb87]:not(:first-child){margin-top:calc(var(--padding) / 2)}.default-layout-container .nav-item .nav-item-icon[data-v-9033cb87]{font-size:24px}.default-layout-container .nav-item .nav-item-text[data-v-9033cb87]{opacity:0;position:absolute;left:calc(var(--padding) * 7.5);transition:all var(--transition);transform:scale(.75) translate(calc(var(--padding) * -5));background-color:var(--background-layer-1);border:var(--border-width) solid var(--border-color);padding:var(--padding) calc(var(--padding) * 2);box-shadow:var(--box-shadow);border-radius:var(--border-radius);pointer-events:none;white-space:nowrap}.default-layout-container .nav-item[data-v-9033cb87]:hover{background-color:rgba(var(--text-color-value),.075);outline:0}.default-layout-container .nav-item:hover .nav-item-text[data-v-9033cb87]{opacity:1;filter:blur(0);transform:none}.default-layout-container .nav-item:hover .nav-item-icon.bx-cog[data-v-9033cb87]{transform:rotate(60deg);transition:all var(--transition)}.default-layout-container .nav-item[data-v-9033cb87]:active{background-color:rgba(var(--text-color-value),.15);transform:scale(.95)}@media (max-width: 768px){.default-layout-container .nav-item[data-v-9033cb87]{padding:calc(var(--padding) * 1.5)}.default-layout-container .nav-item .nav-item-text[data-v-9033cb87]{left:calc(var(--padding) * 7)}.default-layout-container .nav-item .nav-item-icon[data-v-9033cb87]{margin-right:0}}.default-layout-container .nav-item.router-link-exact-active[data-v-9033cb87]{background-color:rgba(var(--text-color-value),.15);transform:none}.default-layout-container .nav-item.router-link-exact-active .nav-item-text[data-v-9033cb87]{transition-delay:.4s;opacity:0;transform:scale(.75) translate(calc(var(--padding) * -5))}.default-layout-container .main[data-v-9033cb87]{grid-area:main;background-color:var(--background-layer-1);border-top-left-radius:var(--border-radius);border-bottom-left-radius:var(--border-radius);padding:calc(var(--padding) * 4);overflow-y:scroll}.default-layout-container .main[data-v-9033cb87]::-webkit-scrollbar{width:4px}.default-layout-container .main[data-v-9033cb87]::-webkit-scrollbar-track{background:transparent}.default-layout-container .main[data-v-9033cb87]::-webkit-scrollbar-thumb{background:#888;border-radius:2px}.default-layout-container .main[data-v-9033cb87]::-webkit-scrollbar-thumb:hover{background:#777}.default-layout-container .main[data-v-9033cb87]::-webkit-scrollbar-thumb:active{background:#666}.default-layout-container .main[data-v-9033cb87]::-webkit-scrollbar-button{display:none}@media (max-width: 768px){.default-layout-container .main[data-v-9033cb87]{padding:calc(var(--padding) * 2)}}.default-layout-container .player[data-v-9033cb87]{grid-area:player;background-color:var(--background-layer-2)} diff --git a/public/assets/default-cc766d12.js b/public/assets/default-cc766d12.js new file mode 100644 index 0000000..5945e9e --- /dev/null +++ b/public/assets/default-cc766d12.js @@ -0,0 +1 @@ +import{u as f}from"./user-7208dd84.js";import{_ as y,R as g,a as k,r as a,o as s,c as i,b as e,F as u,d as _,e as n,f as S,w as m,n as p,t as h,p as I,g as w}from"./index-e1e3d4ec.js";const $={name:"DefaultLayout",setup(){return{userStore:f()}},components:{RouterView:g,RouterLink:k},data(){return{starting:!0,actions:[{icon:"bx-cog",text:"settings",to:"/settings"}],nav:[{icon:"bx-library",text:"library",to:"/"},{icon:"bx-search",text:"search",to:"/search"},{icon:"bx-album",text:"albums",to:"/albums"},{icon:"bx-folder",text:"folders",to:"/folders"},{icon:"bx-microphone",text:"artists",to:"/artists"},{icon:"bxs-piano",text:"composers",to:"/composers"},{icon:"bxs-playlist",text:"playlists",to:"/playlists"}]}},mounted(){this.start(),this.loadTheme()},methods:{async start(){try{let t=await this.$PokaAPI.getUserInfo();this.starting=!1,this.userStore.setUserInfo(t)}catch(t){console.log(t),this.$router.push("/login")}},loadTheme(){let t=localStorage.getItem("poka.theme");if(t){document.documentElement.style.cssText=JSON.parse(t).cssText;let c=document.querySelector('meta[name="theme-color"]');c&&c.setAttribute("content",getComputedStyle(document.documentElement).getPropertyValue("--background-layer-1"))}}}},l=t=>(I("data-v-9033cb87"),t=t(),w(),t),V={class:"default-layout-container"},C={class:"header"},L=l(()=>e("div",{class:"logo"}," PokaPlayer ",-1)),P=l(()=>e("div",{class:"header-center",id:"header-center"},null,-1)),R={class:"header-actions"},B=l(()=>e("div",{id:"header-actions"},null,-1)),T={class:"nav-item-text"},E={class:"nav"},N={class:"nav-item-text"},U={class:"main"},A={class:"player"};function D(t,c,F,q,r,z){const d=a("router-link"),v=a("Loader"),x=a("RouterView"),b=a("bottom-player");return s(),i("div",V,[e("div",C,[L,P,e("div",R,[B,(s(!0),i(u,null,_(r.actions,o=>(s(),n(d,{class:"nav-item",to:o.to},{default:m(()=>[e("i",{class:p(["nav-item-icon bx",o.icon])},null,2),e("div",T,h(t.$t(`nav.${o.text}`)),1)]),_:2},1032,["to"]))),256))])]),e("div",E,[(s(!0),i(u,null,_(r.nav,o=>(s(),n(d,{class:"nav-item",to:o.to},{default:m(()=>[e("i",{class:p(["nav-item-icon bx",o.icon])},null,2),e("div",N,h(t.$t(`nav.${o.text}`)),1)]),_:2},1032,["to"]))),256))]),e("div",U,[r.starting?(s(),n(v,{key:0})):(s(),n(x,{key:1}))]),e("div",A,[S(b)])])}const j=y($,[["render",D],["__scopeId","data-v-9033cb87"]]);export{j as default}; diff --git a/public/assets/empty-2822923d.js b/public/assets/empty-9433203d.js similarity index 55% rename from public/assets/empty-2822923d.js rename to public/assets/empty-9433203d.js index 16676cb..cafd59d 100644 --- a/public/assets/empty-2822923d.js +++ b/public/assets/empty-9433203d.js @@ -1 +1 @@ -import{o as e,e as r,q as t,R as a}from"./index-e2ba9829.js";const n={__name:"empty",setup(o){return(s,c)=>(e(),r(t(a)))}};export{n as default}; +import{o as e,e as r,q as t,R as a}from"./index-e1e3d4ec.js";const n={__name:"empty",setup(o){return(s,c)=>(e(),r(t(a)))}};export{n as default}; diff --git a/public/assets/index-e2ba9829.js b/public/assets/index-e1e3d4ec.js similarity index 99% rename from public/assets/index-e2ba9829.js rename to public/assets/index-e1e3d4ec.js index 7eb18e1..869d6a0 100644 --- a/public/assets/index-e2ba9829.js +++ b/public/assets/index-e1e3d4ec.js @@ -1,5 +1,5 @@ var ws=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Hn=(e,t,n)=>(ws(e,t,"read from private field"),n?n.call(e):t.get(e)),en=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Es=(e,t,n,r)=>(ws(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ie=(e,t,n)=>(ws(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function vo(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function ns(e){if(J(e)){const t={};for(let n=0;n{if(n){const r=n.split(fu);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function at(e){let t="";if($e(e))t=e;else if(J(e))for(let n=0;nhn(n,t))}const ge=e=>$e(e)?e:e==null?"":J(e)||Te(e)&&(e.toString===Ga||!re(e.toString))?JSON.stringify(e,Qa,2):String(e),Qa=(e,t)=>t&&t.__v_isRef?Qa(e,t.value):kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:$n(t)?{[`Set(${t.size})`]:[...t.values()]}:Te(t)&&!J(t)&&!Ja(t)?String(t):t,Ce={},Tn=[],ht=()=>{},yu=()=>!1,gu=/^on[^a-z]/,rs=e=>gu.test(e),wo=e=>e.startsWith("onUpdate:"),He=Object.assign,Eo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},vu=Object.prototype.hasOwnProperty,me=(e,t)=>vu.call(e,t),J=Array.isArray,kn=e=>yr(e)==="[object Map]",$n=e=>yr(e)==="[object Set]",ri=e=>yr(e)==="[object Date]",re=e=>typeof e=="function",$e=e=>typeof e=="string",ar=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",Xa=e=>Te(e)&&re(e.then)&&re(e.catch),Ga=Object.prototype.toString,yr=e=>Ga.call(e),bu=e=>yr(e).slice(8,-1),Ja=e=>yr(e)==="[object Object]",xo=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$r=vo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ss=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wu=/-(\w)/g,xt=ss(e=>e.replace(wu,(t,n)=>n?n.toUpperCase():"")),Eu=/\B([A-Z])/g,mn=ss(e=>e.replace(Eu,"-$1").toLowerCase()),os=ss(e=>e.charAt(0).toUpperCase()+e.slice(1)),xs=ss(e=>e?`on${os(e)}`:""),lr=(e,t)=>!Object.is(e,t),Nr=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Pn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let si;const xu=()=>si||(si=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let nt;class Za{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=nt,!t&&nt&&(this.index=(nt.scopes||(nt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=nt;try{return nt=this,t()}finally{nt=n}}}on(){nt=this}off(){nt=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},nl=e=>(e.w&Kt)>0,rl=e=>(e.n&Kt)>0,ku=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(f==="length"||f>=l)&&i.push(u)})}else switch(n!==void 0&&i.push(a.get(n)),t){case"add":J(e)?xo(n)&&i.push(a.get("length")):(i.push(a.get(dn)),kn(e)&&i.push(a.get(Ns)));break;case"delete":J(e)||(i.push(a.get(dn)),kn(e)&&i.push(a.get(Ns)));break;case"set":kn(e)&&i.push(a.get(dn));break}if(i.length===1)i[0]&&Fs(i[0]);else{const l=[];for(const u of i)u&&l.push(...u);Fs(ko(l))}}function Fs(e,t){const n=J(e)?e:[...e];for(const r of n)r.computed&&ii(r);for(const r of n)r.computed||ii(r)}function ii(e,t){(e!==dt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ou=vo("__proto__,__v_isRef,__isVue"),il=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ar)),zu=Oo(),Pu=Oo(!1,!0),Cu=Oo(!0),ai=Iu();function Iu(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ye(this);for(let o=0,a=this.length;o{e[t]=function(...n){Nn();const r=ye(this)[t].apply(this,n);return Fn(),r}}),e}function Oo(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?Ku:fl:t?ul:cl).get(r))return r;const a=J(r);if(!e&&a&&me(ai,s))return Reflect.get(ai,s,o);const i=Reflect.get(r,s,o);return(ar(s)?il.has(s):Ou(s))||(e||rt(r,"get",s),t)?i:Ie(i)?a&&xo(s)?i:i.value:Te(i)?e?dl(i):Dn(i):i}}const Au=al(),Lu=al(!0);function al(e=!1){return function(n,r,s,o){let a=n[r];if(Cn(a)&&Ie(a)&&!Ie(s))return!1;if(!e&&(!Hr(s)&&!Cn(s)&&(a=ye(a),s=ye(s)),!J(n)&&Ie(a)&&!Ie(s)))return a.value=s,!0;const i=J(n)&&xo(r)?Number(r)e,is=e=>Reflect.getPrototypeOf(e);function kr(e,t,n=!1,r=!1){e=e.__v_raw;const s=ye(e),o=ye(t);n||(t!==o&&rt(s,"get",t),rt(s,"get",o));const{has:a}=is(s),i=r?zo:n?Io:cr;if(a.call(s,t))return i(e.get(t));if(a.call(s,o))return i(e.get(o));e!==s&&e.get(t)}function Sr(e,t=!1){const n=this.__v_raw,r=ye(n),s=ye(e);return t||(e!==s&&rt(r,"has",e),rt(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function Or(e,t=!1){return e=e.__v_raw,!t&&rt(ye(e),"iterate",dn),Reflect.get(e,"size",e)}function li(e){e=ye(e);const t=ye(this);return is(t).has.call(t,e)||(t.add(e),Ct(t,"add",e,e)),this}function ci(e,t){t=ye(t);const n=ye(this),{has:r,get:s}=is(n);let o=r.call(n,e);o||(e=ye(e),o=r.call(n,e));const a=s.call(n,e);return n.set(e,t),o?lr(t,a)&&Ct(n,"set",e,t):Ct(n,"add",e,t),this}function ui(e){const t=ye(this),{has:n,get:r}=is(t);let s=n.call(t,e);s||(e=ye(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Ct(t,"delete",e,void 0),o}function fi(){const e=ye(this),t=e.size!==0,n=e.clear();return t&&Ct(e,"clear",void 0,void 0),n}function zr(e,t){return function(r,s){const o=this,a=o.__v_raw,i=ye(a),l=t?zo:e?Io:cr;return!e&&rt(i,"iterate",dn),a.forEach((u,f)=>r.call(s,l(u),l(f),o))}}function Pr(e,t,n){return function(...r){const s=this.__v_raw,o=ye(s),a=kn(o),i=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=s[e](...r),f=n?zo:t?Io:cr;return!t&&rt(o,"iterate",l?Ns:dn),{next(){const{value:c,done:d}=u.next();return d?{value:c,done:d}:{value:i?[f(c[0]),f(c[1])]:f(c),done:d}},[Symbol.iterator](){return this}}}}function $t(e){return function(...t){return e==="delete"?!1:this}}function Du(){const e={get(o){return kr(this,o)},get size(){return Or(this)},has:Sr,add:li,set:ci,delete:ui,clear:fi,forEach:zr(!1,!1)},t={get(o){return kr(this,o,!1,!0)},get size(){return Or(this)},has:Sr,add:li,set:ci,delete:ui,clear:fi,forEach:zr(!1,!0)},n={get(o){return kr(this,o,!0)},get size(){return Or(this,!0)},has(o){return Sr.call(this,o,!0)},add:$t("add"),set:$t("set"),delete:$t("delete"),clear:$t("clear"),forEach:zr(!0,!1)},r={get(o){return kr(this,o,!0,!0)},get size(){return Or(this,!0)},has(o){return Sr.call(this,o,!0)},add:$t("add"),set:$t("set"),delete:$t("delete"),clear:$t("clear"),forEach:zr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Pr(o,!1,!1),n[o]=Pr(o,!0,!1),t[o]=Pr(o,!1,!0),r[o]=Pr(o,!0,!0)}),[e,n,t,r]}const[Bu,ju,Vu,Uu]=Du();function Po(e,t){const n=t?e?Uu:Vu:e?ju:Bu;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(me(n,s)&&s in r?n:r,s,o)}const qu={get:Po(!1,!1)},Hu={get:Po(!1,!0)},Wu={get:Po(!0,!1)},cl=new WeakMap,ul=new WeakMap,fl=new WeakMap,Ku=new WeakMap;function Yu(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qu(e){return e.__v_skip||!Object.isExtensible(e)?0:Yu(bu(e))}function Dn(e){return Cn(e)?e:Co(e,!1,ll,qu,cl)}function Xu(e){return Co(e,!1,Fu,Hu,ul)}function dl(e){return Co(e,!0,Nu,Wu,fl)}function Co(e,t,n,r,s){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=Qu(e);if(a===0)return e;const i=new Proxy(e,a===2?r:n);return s.set(e,i),i}function Pt(e){return Cn(e)?Pt(e.__v_raw):!!(e&&e.__v_isReactive)}function Cn(e){return!!(e&&e.__v_isReadonly)}function Hr(e){return!!(e&&e.__v_isShallow)}function pl(e){return Pt(e)||Cn(e)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}function In(e){return qr(e,"__v_skip",!0),e}const cr=e=>Te(e)?Dn(e):e,Io=e=>Te(e)?dl(e):e;function hl(e){qt&&dt&&(e=ye(e),ol(e.dep||(e.dep=ko())))}function ml(e,t){e=ye(e),e.dep&&Fs(e.dep)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function Z(e){return yl(e,!1)}function _l(e){return yl(e,!0)}function yl(e,t){return Ie(e)?e:new Gu(e,t)}class Gu{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ye(t),this._value=n?t:cr(t)}get value(){return hl(this),this._value}set value(t){const n=this.__v_isShallow||Hr(t)||Cn(t);t=n?t:ye(t),lr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:cr(t),ml(this))}}function De(e){return Ie(e)?e.value:e}const Ju={get:(e,t,n)=>De(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ie(s)&&!Ie(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function gl(e){return Pt(e)?e:new Proxy(e,Ju)}function vl(e){const t=J(e)?new Array(e.length):{};for(const n in e)t[n]=bl(e,n);return t}class Zu{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function bl(e,t,n){const r=e[t];return Ie(r)?r:new Zu(e,t,n)}var wl;class ef{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[wl]=!1,this._dirty=!0,this.effect=new So(t,()=>{this._dirty||(this._dirty=!0,ml(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ye(this);return hl(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}wl="__v_isReadonly";function tf(e,t,n=!1){let r,s;const o=re(e);return o?(r=e,s=ht):(r=e.get,s=e.set),new ef(r,s,o||!s,n)}function Ht(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){as(o,t,n)}return s}function lt(e,t,n,r){if(re(e)){const o=Ht(e,t,n,r);return o&&Xa(o)&&o.catch(a=>{as(a,t,n)}),o}const s=[];for(let o=0;o>>1;fr(Ke[r])wt&&Ke.splice(t,1)}function of(e){J(e)?Sn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?an+1:an))&&Sn.push(e),xl()}function di(e,t=ur?wt+1:0){for(;tfr(n)-fr(r)),an=0;ane.id==null?1/0:e.id,af=(e,t)=>{const n=fr(e)-fr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function kl(e){Ds=!1,ur=!0,Ke.sort(af);const t=ht;try{for(wt=0;wt$e(p)?p.trim():p)),c&&(s=n.map(Pn))}let i,l=r[i=xs(t)]||r[i=xs(xt(t))];!l&&o&&(l=r[i=xs(mn(t))]),l&<(l,e,6,s);const u=r[i+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,lt(u,e,6,s)}}function Sl(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let a={},i=!1;if(!re(e)){const l=u=>{const f=Sl(u,t,!0);f&&(i=!0,He(a,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(Te(e)&&r.set(e,null),null):(J(o)?o.forEach(l=>a[l]=null):He(a,o),Te(e)&&r.set(e,a),a)}function ls(e,t){return!e||!rs(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,mn(t))||me(e,t))}let qe=null,cs=null;function Wr(e){const t=qe;return qe=e,cs=e&&e.type.__scopeId||null,t}function Bn(e){cs=e}function jn(){cs=null}function K(e,t=qe,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&xi(-1);const o=Wr(t);let a;try{a=e(...s)}finally{Wr(o),r._d&&xi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function Ts(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[a],slots:i,attrs:l,emit:u,render:f,renderCache:c,data:d,setupState:p,ctx:m,inheritAttrs:h}=e;let E,b;const S=Wr(e);try{if(n.shapeFlag&4){const O=s||r;E=vt(f.call(O,O,c,o,p,d,m)),b=l}else{const O=t;E=vt(O.length>1?O(o,{attrs:l,slots:i,emit:u}):O(o,null)),b=t.props?l:cf(l)}}catch(O){nr.length=0,as(O,e,1),E=V(ct)}let k=E;if(b&&h!==!1){const O=Object.keys(b),{shapeFlag:w}=k;O.length&&w&7&&(a&&O.some(wo)&&(b=uf(b,a)),k=Yt(k,b))}return n.dirs&&(k=Yt(k),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),E=k,Wr(S),E}const cf=e=>{let t;for(const n in e)(n==="class"||n==="style"||rs(n))&&((t||(t={}))[n]=e[n]);return t},uf=(e,t)=>{const n={};for(const r in e)(!wo(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ff(e,t,n){const{props:r,children:s,component:o}=e,{props:a,children:i,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?pi(r,a,u):!!a;if(l&8){const f=t.dynamicProps;for(let c=0;ce.__isSuspense;function hf(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):of(e)}function Fr(e,t){if(Be){let n=Be.provides;const r=Be.parent&&Be.parent.provides;r===n&&(n=Be.provides=Object.create(r)),n[e]=t}}function Re(e,t,n=!1){const r=Be||qe;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&re(t)?t.call(r.proxy):t}}const Cr={};function Ye(e,t,n){return Ol(e,t,n)}function Ol(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:a}=Ce){const i=Be;let l,u=!1,f=!1;if(Ie(e)?(l=()=>e.value,u=Hr(e)):Pt(e)?(l=()=>e,r=!0):J(e)?(f=!0,u=e.some(k=>Pt(k)||Hr(k)),l=()=>e.map(k=>{if(Ie(k))return k.value;if(Pt(k))return fn(k);if(re(k))return Ht(k,i,2)})):re(e)?t?l=()=>Ht(e,i,2):l=()=>{if(!(i&&i.isUnmounted))return c&&c(),lt(e,i,3,[d])}:l=ht,t&&r){const k=l;l=()=>fn(k())}let c,d=k=>{c=b.onStop=()=>{Ht(k,i,4)}},p;if(pr)if(d=ht,t?n&<(t,i,3,[l(),f?[]:void 0,d]):l(),s==="sync"){const k=ad();p=k.__watcherHandles||(k.__watcherHandles=[])}else return ht;let m=f?new Array(e.length).fill(Cr):Cr;const h=()=>{if(!!b.active)if(t){const k=b.run();(r||u||(f?k.some((O,w)=>lr(O,m[w])):lr(k,m)))&&(c&&c(),lt(t,i,3,[k,m===Cr?void 0:f&&m[0]===Cr?[]:m,d]),m=k)}else b.run()};h.allowRecurse=!!t;let E;s==="sync"?E=h:s==="post"?E=()=>Je(h,i&&i.suspense):(h.pre=!0,i&&(h.id=i.uid),E=()=>Lo(h));const b=new So(l,E);t?n?h():m=b.run():s==="post"?Je(b.run.bind(b),i&&i.suspense):b.run();const S=()=>{b.stop(),i&&i.scope&&Eo(i.scope.effects,b)};return p&&p.push(S),S}function mf(e,t,n){const r=this.proxy,s=$e(e)?e.includes(".")?zl(r,e):()=>r[e]:e.bind(r,r);let o;re(t)?o=t:(o=t.handler,n=t);const a=Be;An(this);const i=Ol(s,o.bind(r),n);return a?An(a):pn(),i}function zl(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{fn(n,t)});else if(Ja(e))for(const n in e)fn(e[n],t);return e}function _f(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Rt(()=>{e.isMounted=!0}),Rl(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],yf={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:it,onEnter:it,onAfterEnter:it,onEnterCancelled:it,onBeforeLeave:it,onLeave:it,onAfterLeave:it,onLeaveCancelled:it,onBeforeAppear:it,onAppear:it,onAfterAppear:it,onAppearCancelled:it},setup(e,{slots:t}){const n=Vn(),r=_f();let s;return()=>{const o=t.default&&Il(t.default(),!0);if(!o||!o.length)return;let a=o[0];if(o.length>1){for(const h of o)if(h.type!==ct){a=h;break}}const i=ye(e),{mode:l}=i;if(r.isLeaving)return ks(a);const u=hi(a);if(!u)return ks(a);const f=Bs(u,i,r,n);js(u,f);const c=n.subTree,d=c&&hi(c);let p=!1;const{getTransitionKey:m}=u.type;if(m){const h=m();s===void 0?s=h:h!==s&&(s=h,p=!0)}if(d&&d.type!==ct&&(!ln(u,d)||p)){const h=Bs(d,i,r,n);if(js(d,h),l==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},ks(a);l==="in-out"&&u.type!==ct&&(h.delayLeave=(E,b,S)=>{const k=Cl(r,d);k[String(d.key)]=d,E._leaveCb=()=>{b(),E._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=S})}return a}}},Pl=yf;function Cl(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Bs(e,t,n,r){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:i,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:c,onLeave:d,onAfterLeave:p,onLeaveCancelled:m,onBeforeAppear:h,onAppear:E,onAfterAppear:b,onAppearCancelled:S}=t,k=String(e.key),O=Cl(n,e),w=(x,R)=>{x&<(x,r,9,R)},y=(x,R)=>{const H=R[1];w(x,R),J(x)?x.every(G=>G.length<=1)&&H():x.length<=1&&H()},v={mode:o,persisted:a,beforeEnter(x){let R=i;if(!n.isMounted)if(s)R=h||i;else return;x._leaveCb&&x._leaveCb(!0);const H=O[k];H&&ln(e,H)&&H.el._leaveCb&&H.el._leaveCb(),w(R,[x])},enter(x){let R=l,H=u,G=f;if(!n.isMounted)if(s)R=E||l,H=b||u,G=S||f;else return;let U=!1;const ce=x._enterCb=Ee=>{U||(U=!0,Ee?w(G,[x]):w(H,[x]),v.delayedLeave&&v.delayedLeave(),x._enterCb=void 0)};R?y(R,[x,ce]):ce()},leave(x,R){const H=String(e.key);if(x._enterCb&&x._enterCb(!0),n.isUnmounting)return R();w(c,[x]);let G=!1;const U=x._leaveCb=ce=>{G||(G=!0,R(),ce?w(m,[x]):w(p,[x]),x._leaveCb=void 0,O[H]===e&&delete O[H])};O[H]=e,d?y(d,[x,U]):U()},clone(x){return Bs(x,t,n,r)}};return v}function ks(e){if(us(e))return e=Yt(e),e.children=null,e}function hi(e){return us(e)?e.children?e.children[0]:void 0:e}function js(e,t){e.shapeFlag&6&&e.component?js(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 Il(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,us=e=>e.type.__isKeepAlive;function gf(e,t){Ll(e,"a",t)}function vf(e,t){Ll(e,"da",t)}function Ll(e,t,n=Be){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(fs(t,r,n),n){let s=n.parent;for(;s&&s.parent;)us(s.parent.vnode)&&bf(r,t,n,s),s=s.parent}}function bf(e,t,n,r){const s=fs(t,e,r,!0);Xt(()=>{Eo(r[t],s)},n)}function fs(e,t,n=Be,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;Nn(),An(n);const i=lt(t,n,e,a);return pn(),Fn(),i});return r?s.unshift(o):s.push(o),o}}const Lt=e=>(t,n=Be)=>(!pr||e==="sp")&&fs(e,(...r)=>t(...r),n),wf=Lt("bm"),Rt=Lt("m"),Ef=Lt("bu"),xf=Lt("u"),Rl=Lt("bum"),Xt=Lt("um"),Tf=Lt("sp"),kf=Lt("rtg"),Sf=Lt("rtc");function Of(e,t=Be){fs("ec",e,t)}function Ml(e,t){const n=qe;if(n===null)return e;const r=ps(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;ot(a,i,void 0,o&&o[i]));else{const a=Object.keys(e);s=new Array(a.length);for(let i=0,l=a.length;iYr(t)?!(t.type===ct||t.type===we&&!Fl(t.children)):!0)?e:null}const Vs=e=>e?Ql(e)?ps(e)||e.proxy:Vs(e.parent):null,er=He(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=>Vs(e.parent),$root:e=>Vs(e.root),$emit:e=>e.emit,$options:e=>$o(e),$forceUpdate:e=>e.f||(e.f=()=>Lo(e.update)),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>mf.bind(e)}),Ss=(e,t)=>e!==Ce&&!e.__isScriptSetup&&me(e,t),zf={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:a,type:i,appContext:l}=e;let u;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Ss(r,t))return a[t]=1,r[t];if(s!==Ce&&me(s,t))return a[t]=2,s[t];if((u=e.propsOptions[0])&&me(u,t))return a[t]=3,o[t];if(n!==Ce&&me(n,t))return a[t]=4,n[t];Us&&(a[t]=0)}}const f=er[t];let c,d;if(f)return t==="$attrs"&&rt(e,"get",t),f(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(n!==Ce&&me(n,t))return a[t]=4,n[t];if(d=l.config.globalProperties,me(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Ss(s,t)?(s[t]=n,!0):r!==Ce&&me(r,t)?(r[t]=n,!0):me(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:s,propsOptions:o}},a){let i;return!!n[a]||e!==Ce&&me(e,a)||Ss(t,a)||(i=o[0])&&me(i,a)||me(r,a)||me(er,a)||me(s.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:me(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Us=!0;function Pf(e){const t=$o(e),n=e.proxy,r=e.ctx;Us=!1,t.beforeCreate&&_i(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:a,watch:i,provide:l,inject:u,created:f,beforeMount:c,mounted:d,beforeUpdate:p,updated:m,activated:h,deactivated:E,beforeDestroy:b,beforeUnmount:S,destroyed:k,unmounted:O,render:w,renderTracked:y,renderTriggered:v,errorCaptured:x,serverPrefetch:R,expose:H,inheritAttrs:G,components:U,directives:ce,filters:Ee}=t;if(u&&Cf(u,r,null,e.appContext.config.unwrapInjectedRef),a)for(const te in a){const ae=a[te];re(ae)&&(r[te]=ae.bind(n))}if(s){const te=s.call(n,n);Te(te)&&(e.data=Dn(te))}if(Us=!0,o)for(const te in o){const ae=o[te],Ze=re(ae)?ae.bind(n,n):re(ae.get)?ae.get.bind(n,n):ht,kt=!re(ae)&&re(ae.set)?ae.set.bind(n):ht,et=Le({get:Ze,set:kt});Object.defineProperty(r,te,{enumerable:!0,configurable:!0,get:()=>et.value,set:We=>et.value=We})}if(i)for(const te in i)Dl(i[te],r,n,te);if(l){const te=re(l)?l.call(n):l;Reflect.ownKeys(te).forEach(ae=>{Fr(ae,te[ae])})}f&&_i(f,e,"c");function xe(te,ae){J(ae)?ae.forEach(Ze=>te(Ze.bind(n))):ae&&te(ae.bind(n))}if(xe(wf,c),xe(Rt,d),xe(Ef,p),xe(xf,m),xe(gf,h),xe(vf,E),xe(Of,x),xe(Sf,y),xe(kf,v),xe(Rl,S),xe(Xt,O),xe(Tf,R),J(H))if(H.length){const te=e.exposed||(e.exposed={});H.forEach(ae=>{Object.defineProperty(te,ae,{get:()=>n[ae],set:Ze=>n[ae]=Ze})})}else e.exposed||(e.exposed={});w&&e.render===ht&&(e.render=w),G!=null&&(e.inheritAttrs=G),U&&(e.components=U),ce&&(e.directives=ce)}function Cf(e,t,n=ht,r=!1){J(e)&&(e=qs(e));for(const s in e){const o=e[s];let a;Te(o)?"default"in o?a=Re(o.from||s,o.default,!0):a=Re(o.from||s):a=Re(o),Ie(a)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>a.value,set:i=>a.value=i}):t[s]=a}}function _i(e,t,n){lt(J(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Dl(e,t,n,r){const s=r.includes(".")?zl(n,r):()=>n[r];if($e(e)){const o=t[e];re(o)&&Ye(s,o)}else if(re(e))Ye(s,e.bind(n));else if(Te(e))if(J(e))e.forEach(o=>Dl(o,t,n,r));else{const o=re(e.handler)?e.handler.bind(n):t[e.handler];re(o)&&Ye(s,o,e)}}function $o(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:a}}=e.appContext,i=o.get(t);let l;return i?l=i:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>Kr(l,u,a,!0)),Kr(l,t,a)),Te(t)&&o.set(t,l),l}function Kr(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Kr(e,o,n,!0),s&&s.forEach(a=>Kr(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=If[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const If={data:yi,props:on,emits:on,methods:on,computed:on,beforeCreate:Qe,created:Qe,beforeMount:Qe,mounted:Qe,beforeUpdate:Qe,updated:Qe,beforeDestroy:Qe,beforeUnmount:Qe,destroyed:Qe,unmounted:Qe,activated:Qe,deactivated:Qe,errorCaptured:Qe,serverPrefetch:Qe,components:on,directives:on,watch:Lf,provide:yi,inject:Af};function yi(e,t){return t?e?function(){return He(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function Af(e,t){return on(qs(e),qs(t))}function qs(e){if(J(e)){const t={};for(let n=0;n0)&&!(a&16)){if(a&8){const f=e.vnode.dynamicProps;for(let c=0;c{l=!0;const[d,p]=jl(c,t,!0);He(a,d),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!l)return Te(e)&&r.set(e,Tn),Tn;if(J(o))for(let f=0;f-1,p[1]=h<0||m-1||me(p,"default"))&&i.push(c)}}}const u=[a,i];return Te(e)&&r.set(e,u),u}function gi(e){return e[0]!=="$"}function vi(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function bi(e,t){return vi(e)===vi(t)}function wi(e,t){return J(t)?t.findIndex(n=>bi(n,e)):re(t)&&bi(t,e)?0:-1}const Vl=e=>e[0]==="_"||e==="$stable",No=e=>J(e)?e.map(vt):[vt(e)],$f=(e,t,n)=>{if(t._n)return t;const r=K((...s)=>No(t(...s)),n);return r._c=!1,r},Ul=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Vl(s))continue;const o=e[s];if(re(o))t[s]=$f(s,o,r);else if(o!=null){const a=No(o);t[s]=()=>a}}},ql=(e,t)=>{const n=No(t);e.slots.default=()=>n},Nf=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ye(t),qr(t,"_",n)):Ul(t,e.slots={})}else e.slots={},t&&ql(e,t);qr(e.slots,ds,1)},Ff=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=Ce;if(r.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:(He(s,t),!n&&i===1&&delete s._):(o=!t.$stable,Ul(t,s)),a=t}else t&&(ql(e,t),a={default:1});if(o)for(const i in s)!Vl(i)&&!(i in a)&&delete s[i]};function Hl(){return{app:null,config:{isNativeTag:yu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Df=0;function Bf(e,t){return function(r,s=null){re(r)||(r=Object.assign({},r)),s!=null&&!Te(s)&&(s=null);const o=Hl(),a=new Set;let i=!1;const l=o.app={_uid:Df++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:ld,get config(){return o.config},set config(u){},use(u,...f){return a.has(u)||(u&&re(u.install)?(a.add(u),u.install(l,...f)):re(u)&&(a.add(u),u(l,...f))),l},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),l},component(u,f){return f?(o.components[u]=f,l):o.components[u]},directive(u,f){return f?(o.directives[u]=f,l):o.directives[u]},mount(u,f,c){if(!i){const d=V(r,s);return d.appContext=o,f&&t?t(d,u):e(d,u,c),i=!0,l._container=u,u.__vue_app__=l,ps(d.component)||d.component.proxy}},unmount(){i&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return o.provides[u]=f,l}};return l}}function Ws(e,t,n,r,s=!1){if(J(e)){e.forEach((d,p)=>Ws(d,t&&(J(t)?t[p]:t),n,r,s));return}if(Zn(r)&&!s)return;const o=r.shapeFlag&4?ps(r.component)||r.component.proxy:r.el,a=s?null:o,{i,r:l}=e,u=t&&t.r,f=i.refs===Ce?i.refs={}:i.refs,c=i.setupState;if(u!=null&&u!==l&&($e(u)?(f[u]=null,me(c,u)&&(c[u]=null)):Ie(u)&&(u.value=null)),re(l))Ht(l,i,12,[a,f]);else{const d=$e(l),p=Ie(l);if(d||p){const m=()=>{if(e.f){const h=d?me(c,l)?c[l]:f[l]:l.value;s?J(h)&&Eo(h,o):J(h)?h.includes(o)||h.push(o):d?(f[l]=[o],me(c,l)&&(c[l]=f[l])):(l.value=[o],e.k&&(f[e.k]=l.value))}else d?(f[l]=a,me(c,l)&&(c[l]=a)):p&&(l.value=a,e.k&&(f[e.k]=a))};a?(m.id=-1,Je(m,n)):m()}}}const Je=hf;function jf(e){return Vf(e)}function Vf(e,t){const n=xu();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:a,createText:i,createComment:l,setText:u,setElementText:f,parentNode:c,nextSibling:d,setScopeId:p=ht,insertStaticContent:m}=e,h=(_,g,P,C=null,M=null,F=null,j=!1,N=null,D=!!g.dynamicChildren)=>{if(_===g)return;_&&!ln(_,g)&&(C=B(_),We(_,M,F,!0),_=null),g.patchFlag===-2&&(D=!1,g.dynamicChildren=null);const{type:I,ref:T,shapeFlag:z}=g;switch(I){case gr:E(_,g,P,C);break;case ct:b(_,g,P,C);break;case Os:_==null&&S(g,P,C,j);break;case we:U(_,g,P,C,M,F,j,N,D);break;default:z&1?w(_,g,P,C,M,F,j,N,D):z&6?ce(_,g,P,C,M,F,j,N,D):(z&64||z&128)&&I.process(_,g,P,C,M,F,j,N,D,fe)}T!=null&&M&&Ws(T,_&&_.ref,F,g||_,!g)},E=(_,g,P,C)=>{if(_==null)r(g.el=i(g.children),P,C);else{const M=g.el=_.el;g.children!==_.children&&u(M,g.children)}},b=(_,g,P,C)=>{_==null?r(g.el=l(g.children||""),P,C):g.el=_.el},S=(_,g,P,C)=>{[_.el,_.anchor]=m(_.children,g,P,C,_.el,_.anchor)},k=({el:_,anchor:g},P,C)=>{let M;for(;_&&_!==g;)M=d(_),r(_,P,C),_=M;r(g,P,C)},O=({el:_,anchor:g})=>{let P;for(;_&&_!==g;)P=d(_),s(_),_=P;s(g)},w=(_,g,P,C,M,F,j,N,D)=>{j=j||g.type==="svg",_==null?y(g,P,C,M,F,j,N,D):R(_,g,M,F,j,N,D)},y=(_,g,P,C,M,F,j,N)=>{let D,I;const{type:T,props:z,shapeFlag:W,transition:Q,dirs:oe}=_;if(D=_.el=a(_.type,F,z&&z.is,z),W&8?f(D,_.children):W&16&&x(_.children,D,null,C,M,F&&T!=="foreignObject",j,N),oe&&tn(_,null,C,"created"),z){for(const de in z)de!=="value"&&!$r(de)&&o(D,de,null,z[de],F,_.children,C,M,q);"value"in z&&o(D,"value",null,z.value),(I=z.onVnodeBeforeMount)&>(I,C,_)}v(D,_,_.scopeId,j,C),oe&&tn(_,null,C,"beforeMount");const ve=(!M||M&&!M.pendingBranch)&&Q&&!Q.persisted;ve&&Q.beforeEnter(D),r(D,g,P),((I=z&&z.onVnodeMounted)||ve||oe)&&Je(()=>{I&>(I,C,_),ve&&Q.enter(D),oe&&tn(_,null,C,"mounted")},M)},v=(_,g,P,C,M)=>{if(P&&p(_,P),C)for(let F=0;F{for(let I=D;I<_.length;I++){const T=_[I]=N?Bt(_[I]):vt(_[I]);h(null,T,g,P,C,M,F,j,N)}},R=(_,g,P,C,M,F,j)=>{const N=g.el=_.el;let{patchFlag:D,dynamicChildren:I,dirs:T}=g;D|=_.patchFlag&16;const z=_.props||Ce,W=g.props||Ce;let Q;P&&nn(P,!1),(Q=W.onVnodeBeforeUpdate)&>(Q,P,g,_),T&&tn(g,_,P,"beforeUpdate"),P&&nn(P,!0);const oe=M&&g.type!=="foreignObject";if(I?H(_.dynamicChildren,I,N,P,C,oe,F):j||ae(_,g,N,null,P,C,oe,F,!1),D>0){if(D&16)G(N,g,z,W,P,C,M);else if(D&2&&z.class!==W.class&&o(N,"class",null,W.class,M),D&4&&o(N,"style",z.style,W.style,M),D&8){const ve=g.dynamicProps;for(let de=0;de{Q&>(Q,P,g,_),T&&tn(g,_,P,"updated")},C)},H=(_,g,P,C,M,F,j)=>{for(let N=0;N{if(P!==C){if(P!==Ce)for(const N in P)!$r(N)&&!(N in C)&&o(_,N,P[N],null,j,g.children,M,F,q);for(const N in C){if($r(N))continue;const D=C[N],I=P[N];D!==I&&N!=="value"&&o(_,N,I,D,j,g.children,M,F,q)}"value"in C&&o(_,"value",P.value,C.value)}},U=(_,g,P,C,M,F,j,N,D)=>{const I=g.el=_?_.el:i(""),T=g.anchor=_?_.anchor:i("");let{patchFlag:z,dynamicChildren:W,slotScopeIds:Q}=g;Q&&(N=N?N.concat(Q):Q),_==null?(r(I,P,C),r(T,P,C),x(g.children,P,T,M,F,j,N,D)):z>0&&z&64&&W&&_.dynamicChildren?(H(_.dynamicChildren,W,P,M,F,j,N),(g.key!=null||M&&g===M.subTree)&&Fo(_,g,!0)):ae(_,g,P,T,M,F,j,N,D)},ce=(_,g,P,C,M,F,j,N,D)=>{g.slotScopeIds=N,_==null?g.shapeFlag&512?M.ctx.activate(g,P,C,j,D):Ee(g,P,C,M,F,j,D):ze(_,g,D)},Ee=(_,g,P,C,M,F,j)=>{const N=_.component=Zf(_,C,M);if(us(_)&&(N.ctx.renderer=fe),ed(N),N.asyncDep){if(M&&M.registerDep(N,xe),!_.el){const D=N.subTree=V(ct);b(null,D,g,P)}return}xe(N,_,g,P,M,F,j)},ze=(_,g,P)=>{const C=g.component=_.component;if(ff(_,g,P))if(C.asyncDep&&!C.asyncResolved){te(C,g,P);return}else C.next=g,sf(C.update),C.update();else g.el=_.el,C.vnode=g},xe=(_,g,P,C,M,F,j)=>{const N=()=>{if(_.isMounted){let{next:T,bu:z,u:W,parent:Q,vnode:oe}=_,ve=T,de;nn(_,!1),T?(T.el=oe.el,te(_,T,j)):T=oe,z&&Nr(z),(de=T.props&&T.props.onVnodeBeforeUpdate)&>(de,Q,T,oe),nn(_,!0);const Ae=Ts(_),ot=_.subTree;_.subTree=Ae,h(ot,Ae,c(ot.el),B(ot),_,M,F),T.el=Ae.el,ve===null&&df(_,Ae.el),W&&Je(W,M),(de=T.props&&T.props.onVnodeUpdated)&&Je(()=>gt(de,Q,T,oe),M)}else{let T;const{el:z,props:W}=g,{bm:Q,m:oe,parent:ve}=_,de=Zn(g);if(nn(_,!1),Q&&Nr(Q),!de&&(T=W&&W.onVnodeBeforeMount)&>(T,ve,g),nn(_,!0),z&&se){const Ae=()=>{_.subTree=Ts(_),se(z,_.subTree,_,M,null)};de?g.type.__asyncLoader().then(()=>!_.isUnmounted&&Ae()):Ae()}else{const Ae=_.subTree=Ts(_);h(null,Ae,P,C,_,M,F),g.el=Ae.el}if(oe&&Je(oe,M),!de&&(T=W&&W.onVnodeMounted)){const Ae=g;Je(()=>gt(T,ve,Ae),M)}(g.shapeFlag&256||ve&&Zn(ve.vnode)&&ve.vnode.shapeFlag&256)&&_.a&&Je(_.a,M),_.isMounted=!0,g=P=C=null}},D=_.effect=new So(N,()=>Lo(I),_.scope),I=_.update=()=>D.run();I.id=_.uid,nn(_,!0),I()},te=(_,g,P)=>{g.component=_;const C=_.vnode.props;_.vnode=g,_.next=null,Mf(_,g.props,C,P),Ff(_,g.children,P),Nn(),di(),Fn()},ae=(_,g,P,C,M,F,j,N,D=!1)=>{const I=_&&_.children,T=_?_.shapeFlag:0,z=g.children,{patchFlag:W,shapeFlag:Q}=g;if(W>0){if(W&128){kt(I,z,P,C,M,F,j,N,D);return}else if(W&256){Ze(I,z,P,C,M,F,j,N,D);return}}Q&8?(T&16&&q(I,M,F),z!==I&&f(P,z)):T&16?Q&16?kt(I,z,P,C,M,F,j,N,D):q(I,M,F,!0):(T&8&&f(P,""),Q&16&&x(z,P,C,M,F,j,N,D))},Ze=(_,g,P,C,M,F,j,N,D)=>{_=_||Tn,g=g||Tn;const I=_.length,T=g.length,z=Math.min(I,T);let W;for(W=0;WT?q(_,M,F,!0,!1,z):x(g,P,C,M,F,j,N,D,z)},kt=(_,g,P,C,M,F,j,N,D)=>{let I=0;const T=g.length;let z=_.length-1,W=T-1;for(;I<=z&&I<=W;){const Q=_[I],oe=g[I]=D?Bt(g[I]):vt(g[I]);if(ln(Q,oe))h(Q,oe,P,null,M,F,j,N,D);else break;I++}for(;I<=z&&I<=W;){const Q=_[z],oe=g[W]=D?Bt(g[W]):vt(g[W]);if(ln(Q,oe))h(Q,oe,P,null,M,F,j,N,D);else break;z--,W--}if(I>z){if(I<=W){const Q=W+1,oe=QW)for(;I<=z;)We(_[I],M,F,!0),I++;else{const Q=I,oe=I,ve=new Map;for(I=oe;I<=W;I++){const tt=g[I]=D?Bt(g[I]):vt(g[I]);tt.key!=null&&ve.set(tt.key,I)}let de,Ae=0;const ot=W-oe+1;let gn=!1,ei=0;const qn=new Array(ot);for(I=0;I=ot){We(tt,M,F,!0);continue}let yt;if(tt.key!=null)yt=ve.get(tt.key);else for(de=oe;de<=W;de++)if(qn[de-oe]===0&&ln(tt,g[de])){yt=de;break}yt===void 0?We(tt,M,F,!0):(qn[yt-oe]=I+1,yt>=ei?ei=yt:gn=!0,h(tt,g[yt],P,null,M,F,j,N,D),Ae++)}const ti=gn?Uf(qn):Tn;for(de=ti.length-1,I=ot-1;I>=0;I--){const tt=oe+I,yt=g[tt],ni=tt+1{const{el:F,type:j,transition:N,children:D,shapeFlag:I}=_;if(I&6){et(_.component.subTree,g,P,C);return}if(I&128){_.suspense.move(g,P,C);return}if(I&64){j.move(_,g,P,fe);return}if(j===we){r(F,g,P);for(let z=0;zN.enter(F),M);else{const{leave:z,delayLeave:W,afterLeave:Q}=N,oe=()=>r(F,g,P),ve=()=>{z(F,()=>{oe(),Q&&Q()})};W?W(F,oe,ve):ve()}else r(F,g,P)},We=(_,g,P,C=!1,M=!1)=>{const{type:F,props:j,ref:N,children:D,dynamicChildren:I,shapeFlag:T,patchFlag:z,dirs:W}=_;if(N!=null&&Ws(N,null,P,_,!0),T&256){g.ctx.deactivate(_);return}const Q=T&1&&W,oe=!Zn(_);let ve;if(oe&&(ve=j&&j.onVnodeBeforeUnmount)&>(ve,g,_),T&6)A(_.component,P,C);else{if(T&128){_.suspense.unmount(P,C);return}Q&&tn(_,null,g,"beforeUnmount"),T&64?_.type.remove(_,g,P,M,fe,C):I&&(F!==we||z>0&&z&64)?q(I,g,P,!1,!0):(F===we&&z&384||!M&&T&16)&&q(D,g,P),C&&Zt(_)}(oe&&(ve=j&&j.onVnodeUnmounted)||Q)&&Je(()=>{ve&>(ve,g,_),Q&&tn(_,null,g,"unmounted")},P)},Zt=_=>{const{type:g,el:P,anchor:C,transition:M}=_;if(g===we){yn(P,C);return}if(g===Os){O(_);return}const F=()=>{s(P),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(_.shapeFlag&1&&M&&!M.persisted){const{leave:j,delayLeave:N}=M,D=()=>j(P,F);N?N(_.el,F,D):D()}else F()},yn=(_,g)=>{let P;for(;_!==g;)P=d(_),s(_),_=P;s(g)},A=(_,g,P)=>{const{bum:C,scope:M,update:F,subTree:j,um:N}=_;C&&Nr(C),M.stop(),F&&(F.active=!1,We(j,_,g,P)),N&&Je(N,g),Je(()=>{_.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&_.asyncDep&&!_.asyncResolved&&_.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},q=(_,g,P,C=!1,M=!1,F=0)=>{for(let j=F;j<_.length;j++)We(_[j],g,P,C,M)},B=_=>_.shapeFlag&6?B(_.component.subTree):_.shapeFlag&128?_.suspense.next():d(_.anchor||_.el),X=(_,g,P)=>{_==null?g._vnode&&We(g._vnode,null,null,!0):h(g._vnode||null,_,g,null,null,null,P),di(),Tl(),g._vnode=_},fe={p:h,um:We,m:et,r:Zt,mt:Ee,mc:x,pc:ae,pbc:H,n:B,o:e};let Pe,se;return t&&([Pe,se]=t(fe)),{render:X,hydrate:Pe,createApp:Bf(X,Pe)}}function nn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Fo(e,t,n=!1){const r=e.children,s=t.children;if(J(r)&&J(s))for(let o=0;o>1,e[n[i]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,a=n[o-1];o-- >0;)n[o]=a,a=t[a];return n}const qf=e=>e.__isTeleport,tr=e=>e&&(e.disabled||e.disabled===""),Ei=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ks=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},Hf={__isTeleport:!0,process(e,t,n,r,s,o,a,i,l,u){const{mc:f,pc:c,pbc:d,o:{insert:p,querySelector:m,createText:h,createComment:E}}=u,b=tr(t.props);let{shapeFlag:S,children:k,dynamicChildren:O}=t;if(e==null){const w=t.el=h(""),y=t.anchor=h("");p(w,n,r),p(y,n,r);const v=t.target=Ks(t.props,m),x=t.targetAnchor=h("");v&&(p(x,v),a=a||Ei(v));const R=(H,G)=>{S&16&&f(k,H,G,s,o,a,i,l)};b?R(n,y):v&&R(v,x)}else{t.el=e.el;const w=t.anchor=e.anchor,y=t.target=e.target,v=t.targetAnchor=e.targetAnchor,x=tr(e.props),R=x?n:y,H=x?w:v;if(a=a||Ei(y),O?(d(e.dynamicChildren,O,R,s,o,a,i),Fo(e,t,!0)):l||c(e,t,R,H,s,o,a,i,!1),b)x||Ir(t,n,w,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=Ks(t.props,m);G&&Ir(t,G,null,u,0)}else x&&Ir(t,y,v,u,1)}Wl(t)},remove(e,t,n,r,{um:s,o:{remove:o}},a){const{shapeFlag:i,children:l,anchor:u,targetAnchor:f,target:c,props:d}=e;if(c&&o(f),(a||!tr(d))&&(o(u),i&16))for(let p=0;p0?pt||Tn:null,Yf(),dr>0&&pt&&pt.push(e),e}function ee(e,t,n,r,s,o){return Kl(L(e,t,n,r,s,o,!0))}function le(e,t,n,r,s){return Kl(V(e,t,n,r,s,!0))}function Yr(e){return e?e.__v_isVNode===!0:!1}function ln(e,t){return e.type===t.type&&e.key===t.key}const ds="__vInternal",Yl=({key:e})=>e??null,Dr=({ref:e,ref_key:t,ref_for:n})=>e!=null?$e(e)||Ie(e)||re(e)?{i:qe,r:e,k:t,f:!!n}:e:null;function L(e,t=null,n=null,r=0,s=null,o=e===we?0:1,a=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yl(t),ref:t&&Dr(t),scopeId:cs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:qe};return i?(Do(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=$e(n)?8:16),dr>0&&!a&&pt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&pt.push(l),l}const V=Qf;function Qf(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===$l)&&(e=ct),Yr(e)){const i=Yt(e,t,!0);return n&&Do(i,n),dr>0&&!o&&pt&&(i.shapeFlag&6?pt[pt.indexOf(e)]=i:pt.push(i)),i.patchFlag|=-2,i}if(od(e)&&(e=e.__vccOpts),t){t=Xf(t);let{class:i,style:l}=t;i&&!$e(i)&&(t.class=at(i)),Te(l)&&(pl(l)&&!J(l)&&(l=He({},l)),t.style=ns(l))}const a=$e(e)?1:pf(e)?128:qf(e)?64:Te(e)?4:re(e)?2:0;return L(e,t,n,r,s,a,o,!0)}function Xf(e){return e?pl(e)||ds in e?He({},e):e:null}function Yt(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:a}=e,i=t?vr(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Yl(i),ref:t&&t.ref?n&&s?J(s)?s.concat(Dr(t)):[s,Dr(t)]:Dr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==we?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Wt(e=" ",t=0){return V(gr,null,e,t)}function Se(e="",t=!1){return t?($(),le(ct,null,e)):V(ct,null,e)}function vt(e){return e==null||typeof e=="boolean"?V(ct):J(e)?V(we,null,e.slice()):typeof e=="object"?Bt(e):V(gr,null,String(e))}function Bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function Do(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(J(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Do(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(ds in t)?t._ctx=qe:s===3&&qe&&(qe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:qe},n=32):(t=String(t),r&64?(n=16,t=[Wt(t)]):n=8);e.children=t,e.shapeFlag|=n}function vr(...e){const t={};for(let n=0;nBe||qe,An=e=>{Be=e,e.scope.on()},pn=()=>{Be&&Be.scope.off(),Be=null};function Ql(e){return e.vnode.shapeFlag&4}let pr=!1;function ed(e,t=!1){pr=t;const{props:n,children:r}=e.vnode,s=Ql(e);Rf(e,n,s,t),Nf(e,r);const o=s?td(e,t):void 0;return pr=!1,o}function td(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=In(new Proxy(e.ctx,zf));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?rd(e):null;An(e),Nn();const o=Ht(r,e,0,[e.props,s]);if(Fn(),pn(),Xa(o)){if(o.then(pn,pn),t)return o.then(a=>{Ti(e,a,t)}).catch(a=>{as(a,e,0)});e.asyncDep=o}else Ti(e,o,t)}else Xl(e,t)}function Ti(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=gl(t)),Xl(e,n)}let ki;function Xl(e,t,n){const r=e.type;if(!e.render){if(!t&&ki&&!r.render){const s=r.template||$o(e).template;if(s){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:l}=r,u=He(He({isCustomElement:o,delimiters:i},a),l);r.render=ki(s,u)}}e.render=r.render||ht}An(e),Nn(),Pf(e),Fn(),pn()}function nd(e){return new Proxy(e.attrs,{get(t,n){return rt(e,"get","$attrs"),t[n]}})}function rd(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=nd(e))},slots:e.slots,emit:e.emit,expose:t}}function ps(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(gl(In(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in er)return er[n](e)},has(t,n){return n in t||n in er}}))}function sd(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function od(e){return re(e)&&"__vccOpts"in e}const Le=(e,t)=>tf(e,t,pr);function br(e,t,n){const r=arguments.length;return r===2?Te(t)&&!J(t)?Yr(t)?V(e,null,[t]):V(e,t):V(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Yr(n)&&(n=[n]),V(e,t,n))}const id=Symbol(""),ad=()=>Re(id),ld="3.2.45",cd="http://www.w3.org/2000/svg",cn=typeof document<"u"?document:null,Si=cn&&cn.createElement("template"),ud={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?cn.createElementNS(cd,e):cn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>cn.createTextNode(e),createComment:e=>cn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>cn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const a=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Si.innerHTML=r?`${e}`:e;const i=Si.content;if(r){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function fd(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function dd(e,t,n){const r=e.style,s=$e(n);if(n&&!s){for(const o in n)Ys(r,o,n[o]);if(t&&!$e(t))for(const o in t)n[o]==null&&Ys(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Oi=/\s*!important$/;function Ys(e,t,n){if(J(n))n.forEach(r=>Ys(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=pd(e,t);Oi.test(n)?e.setProperty(mn(r),n.replace(Oi,""),"important"):e[r]=n}}const zi=["Webkit","Moz","ms"],zs={};function pd(e,t){const n=zs[t];if(n)return n;let r=xt(t);if(r!=="filter"&&r in e)return zs[t]=r;r=os(r);for(let s=0;sPs||(vd.then(()=>Ps=0),Ps=Date.now());function wd(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(Ed(r,n.value),t,5,[r])};return n.value=e,n.attached=bd(),n}function Ed(e,t){if(J(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Ii=/^on[a-z]/,xd=(e,t,n,r,s=!1,o,a,i,l)=>{t==="class"?fd(e,r,s):t==="style"?dd(e,n,r):rs(t)?wo(t)||yd(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Td(e,t,r,s))?md(e,t,r,o,a,i,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),hd(e,t,r,s))};function Td(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Ii.test(t)&&re(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ii.test(t)&&$e(n)?!1:t in e}const Nt="transition",Wn="animation",hs=(e,{slots:t})=>br(Pl,kd(e),t);hs.displayName="Transition";const Gl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};hs.props=He({},Pl.props,Gl);const rn=(e,t=[])=>{J(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ai=e=>e?J(e)?e.some(t=>t.length>1):e.length>1:!1;function kd(e){const t={};for(const U in e)U in Gl||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=a,appearToClass:f=i,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Sd(s),h=m&&m[0],E=m&&m[1],{onBeforeEnter:b,onEnter:S,onEnterCancelled:k,onLeave:O,onLeaveCancelled:w,onBeforeAppear:y=b,onAppear:v=S,onAppearCancelled:x=k}=t,R=(U,ce,Ee)=>{sn(U,ce?f:i),sn(U,ce?u:a),Ee&&Ee()},H=(U,ce)=>{U._isLeaving=!1,sn(U,c),sn(U,p),sn(U,d),ce&&ce()},G=U=>(ce,Ee)=>{const ze=U?v:S,xe=()=>R(ce,U,Ee);rn(ze,[ce,xe]),Li(()=>{sn(ce,U?l:o),Ft(ce,U?f:i),Ai(ze)||Ri(ce,r,h,xe)})};return He(t,{onBeforeEnter(U){rn(b,[U]),Ft(U,o),Ft(U,a)},onBeforeAppear(U){rn(y,[U]),Ft(U,l),Ft(U,u)},onEnter:G(!1),onAppear:G(!0),onLeave(U,ce){U._isLeaving=!0;const Ee=()=>H(U,ce);Ft(U,c),Pd(),Ft(U,d),Li(()=>{!U._isLeaving||(sn(U,c),Ft(U,p),Ai(O)||Ri(U,r,E,Ee))}),rn(O,[U,Ee])},onEnterCancelled(U){R(U,!1),rn(k,[U])},onAppearCancelled(U){R(U,!0),rn(x,[U])},onLeaveCancelled(U){H(U),rn(w,[U])}})}function Sd(e){if(e==null)return null;if(Te(e))return[Cs(e.enter),Cs(e.leave)];{const t=Cs(e);return[t,t]}}function Cs(e){return Pn(e)}function Ft(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function sn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Li(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Od=0;function Ri(e,t,n,r){const s=e._endId=++Od,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:i,propCount:l}=zd(e,t);if(!a)return r();const u=a+"end";let f=0;const c=()=>{e.removeEventListener(u,d),o()},d=p=>{p.target===e&&++f>=l&&c()};setTimeout(()=>{f(n[m]||"").split(", "),s=r(`${Nt}Delay`),o=r(`${Nt}Duration`),a=Mi(s,o),i=r(`${Wn}Delay`),l=r(`${Wn}Duration`),u=Mi(i,l);let f=null,c=0,d=0;t===Nt?a>0&&(f=Nt,c=a,d=o.length):t===Wn?u>0&&(f=Wn,c=u,d=l.length):(c=Math.max(a,u),f=c>0?a>u?Nt:Wn:null,d=f?f===Nt?o.length:l.length:0);const p=f===Nt&&/\b(transform|all)(,|$)/.test(r(`${Nt}Property`).toString());return{type:f,timeout:c,propCount:d,hasTransform:p}}function Mi(e,t){for(;e.length$i(n)+$i(e[r])))}function $i(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Pd(){return document.body.offsetHeight}const Qt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>Nr(t,n):t};function Cd(e){e.target.composing=!0}function Ni(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fi={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Qt(s);const o=r||s.props&&s.props.type==="number";zt(e,t?"change":"input",a=>{if(a.target.composing)return;let i=e.value;n&&(i=i.trim()),o&&(i=Pn(i)),e._assign(i)}),n&&zt(e,"change",()=>{e.value=e.value.trim()}),t||(zt(e,"compositionstart",Cd),zt(e,"compositionend",Ni),zt(e,"change",Ni))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e._assign=Qt(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&Pn(e.value)===t))return;const a=t??"";e.value!==a&&(e.value=a)}},Id={deep:!0,created(e,t,n){e._assign=Qt(n),zt(e,"change",()=>{const r=e._modelValue,s=Ln(e),o=e.checked,a=e._assign;if(J(r)){const i=bo(r,s),l=i!==-1;if(o&&!l)a(r.concat(s));else if(!o&&l){const u=[...r];u.splice(i,1),a(u)}}else if($n(r)){const i=new Set(r);o?i.add(s):i.delete(s),a(i)}else a(Zl(e,o))})},mounted:Di,beforeUpdate(e,t,n){e._assign=Qt(n),Di(e,t,n)}};function Di(e,{value:t,oldValue:n},r){e._modelValue=t,J(t)?e.checked=bo(t,r.props.value)>-1:$n(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=hn(t,Zl(e,!0)))}const Ad={created(e,{value:t},n){e.checked=hn(t,n.props.value),e._assign=Qt(n),zt(e,"change",()=>{e._assign(Ln(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Qt(r),t!==n&&(e.checked=hn(t,r.props.value))}},Jl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=$n(t);zt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Pn(Ln(a)):Ln(a));e._assign(e.multiple?s?new Set(o):o:o[0])}),e._assign=Qt(r)},mounted(e,{value:t}){Bi(e,t)},beforeUpdate(e,t,n){e._assign=Qt(n)},updated(e,{value:t}){Bi(e,t)}};function Bi(e,t){const n=e.multiple;if(!(n&&!J(t)&&!$n(t))){for(let r=0,s=e.options.length;r-1:o.selected=t.has(a);else if(hn(Ln(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ln(e){return"_value"in e?e._value:e.value}function Zl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ld={created(e,t,n){Ar(e,t,n,null,"created")},mounted(e,t,n){Ar(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ar(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ar(e,t,n,r,"updated")}};function Rd(e,t){switch(e){case"SELECT":return Jl;case"TEXTAREA":return Fi;default:switch(t){case"checkbox":return Id;case"radio":return Ad;default:return Fi}}}function Ar(e,t,n,r,s){const a=Rd(e.tagName,n.props&&n.props.type)[s];a&&a(e,t,n,r)}const Md=["ctrl","shift","alt","meta"],$d={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)=>Md.some(n=>e[`${n}Key`]&&!t.includes(n))},Qr=(e,t)=>(n,...r)=>{for(let s=0;sn=>{if(!("key"in n))return;const r=mn(n.key);if(t.some(s=>s===r||Nd[s]===r))return e(n)},k0={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Kn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Kn(e,!0),r.enter(e)):r.leave(e,()=>{Kn(e,!1)}):Kn(e,t))},beforeUnmount(e,{value:t}){Kn(e,t)}};function Kn(e,t){e.style.display=t?e._vod:"none"}const Fd=He({patchProp:xd},ud);let ji;function Dd(){return ji||(ji=jf(Fd))}const Bd=(...e)=>{const t=Dd().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=jd(r);if(!s)return;const o=t._component;!re(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const a=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function jd(e){return $e(e)?document.querySelector(e):e}var tc=!1;let nc;const ms=e=>nc=e,rc=Symbol();function Qs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var rr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(rr||(rr={}));function Vd(){const e=To(!0),t=e.run(()=>Z({}));let n=[],r=[];const s=In({install(o){ms(s),s._a=o,o.provide(rc,s),o.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(o){return!this._a&&!tc?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const sc=()=>{};function Vi(e,t,n,r=sc){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&el()&&tl(s),s}function vn(e,...t){e.slice().forEach(n=>{n(...t)})}function Xs(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],s=e[n];Qs(s)&&Qs(r)&&e.hasOwnProperty(n)&&!Ie(r)&&!Pt(r)?e[n]=Xs(s,r):e[n]=r}return e}const Ud=Symbol();function qd(e){return!Qs(e)||!e.hasOwnProperty(Ud)}const{assign:jt}=Object;function Hd(e){return!!(Ie(e)&&e.effect)}function Wd(e,t,n,r){const{state:s,actions:o,getters:a}=t,i=n.state.value[e];let l;function u(){i||(n.state.value[e]=s?s():{});const f=vl(n.state.value[e]);return jt(f,o,Object.keys(a||{}).reduce((c,d)=>(c[d]=In(Le(()=>{ms(n);const p=n._s.get(e);return a[d].call(p,p)})),c),{}))}return l=oc(e,u,t,n,r,!0),l.$reset=function(){const c=s?s():{};this.$patch(d=>{jt(d,c)})},l}function oc(e,t,n={},r,s,o){let a;const i=jt({actions:{}},n),l={deep:!0};let u,f,c=In([]),d=In([]),p;const m=r.state.value[e];!o&&!m&&(r.state.value[e]={}),Z({});let h;function E(v){let x;u=f=!1,typeof v=="function"?(v(r.state.value[e]),x={type:rr.patchFunction,storeId:e,events:p}):(Xs(r.state.value[e],v),x={type:rr.patchObject,payload:v,storeId:e,events:p});const R=h=Symbol();_n().then(()=>{h===R&&(u=!0)}),f=!0,vn(c,x,r.state.value[e])}const b=sc;function S(){a.stop(),c=[],d=[],r._s.delete(e)}function k(v,x){return function(){ms(r);const R=Array.from(arguments),H=[],G=[];function U(ze){H.push(ze)}function ce(ze){G.push(ze)}vn(d,{args:R,name:v,store:w,after:U,onError:ce});let Ee;try{Ee=x.apply(this&&this.$id===e?this:w,R)}catch(ze){throw vn(G,ze),ze}return Ee instanceof Promise?Ee.then(ze=>(vn(H,ze),ze)).catch(ze=>(vn(G,ze),Promise.reject(ze))):(vn(H,Ee),Ee)}}const O={_p:r,$id:e,$onAction:Vi.bind(null,d),$patch:E,$reset:b,$subscribe(v,x={}){const R=Vi(c,v,x.detached,()=>H()),H=a.run(()=>Ye(()=>r.state.value[e],G=>{(x.flush==="sync"?f:u)&&v({storeId:e,type:rr.direct,events:p},G)},jt({},l,x)));return R},$dispose:S},w=Dn(O);r._s.set(e,w);const y=r._e.run(()=>(a=To(),a.run(()=>t())));for(const v in y){const x=y[v];if(Ie(x)&&!Hd(x)||Pt(x))o||(m&&qd(x)&&(Ie(x)?x.value=m[v]:Xs(x,m[v])),r.state.value[e][v]=x);else if(typeof x=="function"){const R=k(v,x);y[v]=R,i.actions[v]=x}}return jt(w,y),jt(ye(w),y),Object.defineProperty(w,"$state",{get:()=>r.state.value[e],set:v=>{E(x=>{jt(x,v)})}}),r._p.forEach(v=>{jt(w,a.run(()=>v({store:w,app:r._a,pinia:r,options:i})))}),m&&o&&n.hydrate&&n.hydrate(w.$state,m),u=!0,f=!0,w}function Kd(e,t,n){let r,s;const o=typeof t=="function";typeof e=="string"?(r=e,s=o?n:t):(s=e,r=e.id);function a(i,l){const u=Vn();return i=i||u&&Re(rc,null),i&&ms(i),i=nc,i._s.has(r)||(o?oc(r,t,s,i):Wd(r,s,i)),i._s.get(r)}return a.$id=r,a}function Bo(e){if(tc)return vl(e);{e=ye(e);const t={};for(const n in e){const r=e[n];(Ie(r)||Pt(r))&&(t[n]=bl(e,n))}return t}}const jo=Kd("fullscreenPlayer",()=>({show:Z(!1)}));const Ve=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},wr=e=>(Bn("data-v-62673e53"),e=e(),jn(),e),Yd={class:"bottom-player"},Qd={class:"cover"},Xd=["src"],Gd={class:"track-info-text"},Jd={class:"track-name"},Zd={class:"track-artist"},ep=wr(()=>L("div",{class:"cover"},[L("img",{src:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath d='M0 0h1v1H0' fill='%23fff'/%3E%3C/svg%3E",alt:"cover"})],-1)),tp={class:"track-info-text"},np=wr(()=>L("div",{class:"track-name"},"PokaPlayer",-1)),rp={class:"track-artist"},sp={class:"track-control"},op={class:"time"},ip=wr(()=>L("i",{class:"bx bx-skip-previous"},null,-1)),ap={key:0,class:"bx bx-play"},lp={key:1,class:"bx bx-pause"},cp=wr(()=>L("i",{class:"bx bx-skip-next"},null,-1)),up={class:"time"},fp={class:"player-control"},dp={key:0,class:"bx bx-shuffle"},pp={key:1,class:"bx bx-repeat"},hp=wr(()=>L("i",{class:"bx bx-chevron-up"},null,-1)),mp={__name:"BottomPlayer",setup(e){const t=Re("Player"),n=jo(),{show:r}=Bo(n),s=Z(t.audioOrder);Ye(s,f=>t.audioOrder=f);const o=Z(t.paused),a=Z("0:00"),i=Z("0:00"),l=Z(null);let u=setInterval(()=>{s.value=t.audioOrder,o.value=t.paused,a.value=t.currentTime,i.value=t.duration,l.value=t.trackInfo},100);return Xt(()=>{clearInterval(u)}),(f,c)=>{const d=ne("p-btn"),p=ne("fullscreen-player");return $(),ee(we,null,[L("div",Yd,[l.value?($(),ee("div",{key:0,class:"track-info",onClick:c[0]||(c[0]=m=>r.value=!0),tabindex:"0"},[L("div",Qd,[L("img",{src:l.value.cover,alt:"cover"},null,8,Xd)]),L("div",Gd,[L("div",Jd,ge(l.value.name),1),L("div",Zd,ge(l.value.artist),1)])])):($(),ee("div",{key:1,class:"track-info",onClick:c[1]||(c[1]=m=>r.value=!0)},[ep,L("div",tp,[np,L("div",rp,ge(f.$t("waitForPlay")),1)])])),L("div",sp,[L("div",op,ge(a.value),1),V(d,{icon:"",text:"",onClick:c[2]||(c[2]=m=>De(t).previous())},{default:K(()=>[ip]),_:1}),V(d,{icon:"",color:"primary",onClick:c[3]||(c[3]=m=>De(t).toggle())},{default:K(()=>[o.value?($(),ee("i",ap)):($(),ee("i",lp))]),_:1}),V(d,{icon:"",text:"",onClick:c[4]||(c[4]=m=>De(t).next())},{default:K(()=>[cp]),_:1}),L("div",up,ge(i.value),1)]),L("div",fp,[V(d,{icon:"",text:"",onClick:c[5]||(c[5]=m=>s.value=s.value=="random"?"list":"random")},{default:K(()=>[s.value=="random"?($(),ee("i",dp)):Se("",!0),s.value=="list"?($(),ee("i",pp)):Se("",!0)]),_:1}),V(d,{icon:"",text:"",onClick:c[6]||(c[6]=m=>r.value=!0)},{default:K(()=>[hp]),_:1})])]),V(p)],64)}}},_p=Ve(mp,[["__scopeId","data-v-62673e53"]]),yp=Object.freeze(Object.defineProperty({__proto__:null,default:_p},Symbol.toStringTag,{value:"Module"}));const gp={props:{modelValue:{type:Boolean},showClose:{type:Boolean,default:!1},closeable:{type:Boolean,default:!0},maxWidth:{type:String,default:"min(700px, calc(100vw - 60px))"}}},vp={class:"modal-wrapper"},bp=L("i",{class:"bx bx-x"},null,-1),wp=[bp];function Ep(e,t,n,r,s,o){return $(),le(Kf,{to:"body"},[V(hs,{name:"modal"},{default:K(()=>[n.modelValue?($(),ee("div",{key:0,class:"modal-mask",onClick:t[2]||(t[2]=a=>n.closeable&&e.$emit("update:modelValue",!1))},[L("div",vp,[L("div",{class:"modal-container",onClick:t[1]||(t[1]=Qr(()=>{},["stop"])),style:ns(`--max-width: ${n.maxWidth}`)},[n.showClose?($(),ee("div",{key:0,class:"close",onClick:t[0]||(t[0]=a=>n.closeable&&e.$emit("update:modelValue",!1))},wp)):Se("",!0),At(e.$slots,"default")],4)])])):Se("",!0)]),_:3})])}const xp=Ve(gp,[["render",Ep]]),Tp=Object.freeze(Object.defineProperty({__proto__:null,default:xp},Symbol.toStringTag,{value:"Module"}));const kp={class:"empty-state"},Sp={class:"empty-state__icon"},Op={class:"empty-state__title"},zp={class:"empty-state__description"},Pp={__name:"EmptyState",props:{title:String,description:String},setup(e){return(t,n)=>($(),ee("div",kp,[L("div",Sp,[At(t.$slots,"default",{},void 0,!0)]),L("div",Op,ge(e.title),1),L("div",zp,ge(e.description),1)]))}},Cp=Ve(Pp,[["__scopeId","data-v-11011440"]]),Ip=Object.freeze(Object.defineProperty({__proto__:null,default:Cp},Symbol.toStringTag,{value:"Module"}));const Er=e=>(Bn("data-v-17ca1e16"),e=e(),jn(),e),Ap={class:"fullscreen-player__container"},Lp={class:"header"},Rp=Er(()=>L("div",{class:"left"},[L("div",{class:"logo"}," PokaPlayer ")],-1)),Mp={class:"right"},$p=Er(()=>L("i",{class:"bx bx-chevron-down"},null,-1)),Np={class:"content"},Fp={class:"left"},Dp={class:"footer"},Bp=Er(()=>L("i",{class:"bx bx-play"},null,-1)),jp=Er(()=>L("i",{class:"bx bxs-playlist"},null,-1)),Vp=Er(()=>L("i",{class:"bx bx-captions"},null,-1)),Up={__name:"FullscreenPlayer",setup(e){const t=jo(),{show:n}=Bo(t),r=Z("playlist");let s=()=>{window.innerWidth>768&&r.value=="player"&&(r.value="playlist")};return Rt(()=>{window.addEventListener("resize",s)}),Xt(()=>{window.removeEventListener("resize",s)}),(o,a)=>{const i=ne("p-btn"),l=ne("fullscreen-Player-Player"),u=ne("fullscreen-Player-List"),f=ne("fullscreen-Player-Lyric");return $(),ee("div",{class:at(["fullscreen-player",{show:De(n)}])},[L("div",Ap,[L("div",Lp,[Rp,L("div",Mp,[V(i,{icon:"",onClick:a[0]||(a[0]=c=>n.value=!1)},{default:K(()=>[$p]),_:1})])]),L("div",Np,[L("div",Fp,[V(l)]),L("div",{class:at(["right",[`current-page-${r.value}`]])},[r.value=="player"?($(),le(l,{key:0})):Se("",!0),r.value=="playlist"?($(),le(u,{key:1})):Se("",!0),r.value=="lyric"?($(),le(f,{key:2})):Se("",!0)],2)]),L("div",Dp,[V(i,{icon:"",text:r.value!="player",onClick:a[1]||(a[1]=c=>r.value="player")},{default:K(()=>[Bp]),_:1},8,["text"]),V(i,{icon:"",text:r.value!="playlist",onClick:a[2]||(a[2]=c=>r.value="playlist")},{default:K(()=>[jp]),_:1},8,["text"]),V(i,{icon:"",text:r.value!="lyric",onClick:a[3]||(a[3]=c=>r.value="lyric")},{default:K(()=>[Vp]),_:1},8,["text"])])])],2)}}},qp=Ve(Up,[["__scopeId","data-v-17ca1e16"]]),Hp=Object.freeze(Object.defineProperty({__proto__:null,default:qp},Symbol.toStringTag,{value:"Module"}));const Wp={class:"fullscreen-player__list"},Kp={__name:"List",setup(e){const t=Re("Player"),n=Z([]),r=Z(-1);let s=setInterval(()=>{n.value=t.songList,r.value=t.currentIndex},100);return Ye(r,o=>{var a;o&&o!=-1&&((a=document.querySelector(`.fullscreen-player__list .p-list-item[data-index="${o}"]`))==null||a.scrollIntoView({behavior:"smooth",block:"center"}))}),Rt(()=>{n.value=t.songList,r.value=t.currentIndex,_n(()=>{var o;r.value!=-1&&((o=document.querySelector(`.fullscreen-player__list .p-list-item[data-index="${r.value}"]`))==null||o.scrollIntoView({block:"center"}))})}),Xt(()=>{clearInterval(s)}),(o,a)=>{const i=ne("parse-songs");return $(),ee("div",Wp,[V(i,{items:n.value,currentIndex:r.value},null,8,["items","currentIndex"])])}}},Yp=Ve(Kp,[["__scopeId","data-v-1d86eedc"]]),Qp=Object.freeze(Object.defineProperty({__proto__:null,default:Yp},Symbol.toStringTag,{value:"Module"}));const xr=e=>(Bn("data-v-7293c89c"),e=e(),jn(),e),Xp=xr(()=>L("div",{class:"icon"},[L("i",{class:"bx bx-question-mark"})],-1)),Gp={class:"content"},Jp={class:"title"},Zp={class:"description"},eh={class:"actions"},th=xr(()=>L("i",{class:"bx bx-search"},null,-1)),nh=xr(()=>L("i",{class:"bx bx-check"},null,-1)),rh=["data-lyric-set"],sh={class:"lyric-search__header"},oh=xr(()=>L("i",{class:"bx bx-search"},null,-1)),ih={class:"lyric-search__content"},ah=xr(()=>L("i",{class:"bx bx-save"},null,-1)),lh={__name:"Lyric",setup(e){const t=Re("Player"),n=Re("PokaAPI"),r=Z(null),s=Z(-1),o=Z(-1),a=Z(-1),i=Z(!1),l=Z(!1),u=Z(!1),f=Z(null),c=Z(""),d=Z(null),p=Z(!1),m=Z([]),h=Z(null),E=/\[[0-9]{1,}\:[0-9]{1,2}(\.[0-9]{1,})?\]/g;let b=setInterval(()=>{var x,R;let v=(x=r.value)==null?void 0:x.uuid;if(r.value=t.trackInfo,s.value=t.currentIndex,o.value=t.rawCurrentTime,m.value!=[])for(let H=0;H=m.value[H].time&&(a.value=H,a.value==m.value.length-1&&i.value&&(a.value=H-1));v!=((R=r.value)==null?void 0:R.uuid)&&S()},100);Ye(a,v=>{v&&v!=-1&&_n(()=>{var x;(x=document.querySelector(".fullscreen-player__lyric .lyric-item.active"))==null||x.scrollIntoView({behavior:"smooth",block:"center"})})}),Rt(()=>{r.value=t.trackInfo,s.value=t.currentIndex,o.value=t.rawCurrentTime,S()});async function S(){let{id:v,source:x,name:R,artist:H}=r.value;if(m.value=[],h.value=null,i.value=!1,l.value=!1,a.value=0,d.value=null,c.value=`${R} ${H}`,f.value=null,v){p.value=!0;let{lyrics:G}=await n.getLyric(x,v);p.value=!1,G.length&&G[0].lyric.match(E)?(d.value="saved",w(G[0].lyric)):k(`${R} ${H}`)}}async function k(v,x=!0){f.value=null,p.value=!0;let{lyrics:R}=await n.getLyricByKeyword(v);p.value=!1,f.value=R,c.value=v,x&&R[0]&&(d.value="search",l.value=!0,w(R[0].lyric))}function O(v){let x=v.replace(/\[|\]/g,"").split(":");return parseInt(x[0])*60+parseFloat(x[1])}async function w(v){h.value=v,v=v.replaceAll("\r","");let x=v.match(E),R=[];if((x==null?void 0:x.length)>0){let H=v.split(` -`);for(let G=0;G{clearInterval(b)}),(v,x)=>{const R=ne("p-btn"),H=ne("Loader"),G=ne("p-input"),U=ne("empty-state"),ce=ne("p-list-item-content"),Ee=ne("p-list-item"),ze=ne("p-list-items"),xe=ne("Dialog");return $(),ee(we,null,[L("div",{class:at(["fullscreen-player__lyric",{"with-translated":i.value}]),onDblclick:x[1]||(x[1]=te=>u.value=!0)},[L("div",{class:at(["is-lyric-correct",{show:l.value}])},[Xp,L("div",Gp,[L("div",Jp,ge(v.$t("lyric.isLyricCorrect.title")),1),L("div",Zp,ge(v.$t("lyric.isLyricCorrect.description")),1),L("div",eh,[V(R,{outline:"",onClick:x[0]||(x[0]=te=>u.value=!0)},{default:K(()=>[th,Wt(ge(v.$t("lyric.isLyricCorrect.search")),1)]),_:1}),V(R,{color:"primary",onClick:y},{default:K(()=>[nh,Wt(ge(v.$t("lyric.isLyricCorrect.correct")),1)]),_:1})])])],2),($(!0),ee(we,null,It(m.value,(te,ae)=>($(),ee("div",{class:at(["lyric-item",{active:ae==a.value,translated:i.value&&a.value%2!=ae%2}]),"data-lyric-set":i.value?Math.floor((ae-a.value)/2):ae-a.value},ge(te.lyric),11,rh))),256)),p.value?($(),le(H,{key:0})):Se("",!0)],34),V(xe,{modelValue:u.value,"onUpdate:modelValue":x[5]||(x[5]=te=>u.value=te)},{default:K(()=>[L("div",sh,[V(G,{modelValue:c.value,"onUpdate:modelValue":x[2]||(x[2]=te=>c.value=te),onKeydown:x[3]||(x[3]=ec(Qr(te=>k(c.value),["prevent"]),["enter"]))},null,8,["modelValue"]),V(R,{icon:"",onClick:x[4]||(x[4]=te=>k(c.value))},{default:K(()=>[oh]),_:1})]),L("div",ih,[!f.value&&d.value=="saved"&&!p.value?($(),le(U,{key:0,style:{"margin-top":"80px"},title:v.$t("lyric.currentLyricSource.saved.title"),description:v.$t("lyric.currentLyricSource.saved.description")},{default:K(()=>[ah]),_:1},8,["title","description"])):Se("",!0),p.value?($(),le(H,{key:1,style:{"margin-top":"80px"}})):Se("",!0),V(ze,{"single-row":""},{default:K(()=>[($(!0),ee(we,null,It(f.value,te=>($(),le(Ee,{onClick:ae=>{w(te.lyric),u.value=!1}},{default:K(()=>[V(ce,{title:`${te.name}`,description:`[${v.$t(`source.${te.source}`)}] ${te.artist}`},null,8,["title","description"])]),_:2},1032,["onClick"]))),256))]),_:1})])]),_:1},8,["modelValue"])],64)}}},ch=Ve(lh,[["__scopeId","data-v-7293c89c"]]),uh=Object.freeze(Object.defineProperty({__proto__:null,default:ch},Symbol.toStringTag,{value:"Module"}));const Vo=e=>(Bn("data-v-1bdd18be"),e=e(),jn(),e),fh={class:"fullscreen-player__player"},dh={class:"cover"},ph=["src"],hh={key:1,src:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath d='M0 0h1v1H0' fill='%23fff'/%3E%3C/svg%3E",alt:"cover"},mh={class:"track-info-text"},_h={class:"track-name"},yh={class:"track-artist"},gh={class:"seek-control"},vh={class:"time-items"},bh={class:"time"},wh={class:"time"},Eh={class:"track-control"},xh={key:0,class:"bx bx-shuffle"},Th={key:1,class:"bx bx-repeat"},kh=Vo(()=>L("i",{class:"bx bx-skip-previous"},null,-1)),Sh={key:0,class:"bx bx-play"},Oh={key:1,class:"bx bx-pause"},zh=Vo(()=>L("i",{class:"bx bx-skip-next"},null,-1)),Ph=Vo(()=>L("i",{class:"bx bx-list-plus"},null,-1)),Ch={__name:"Player",setup(e){const t=Re("Player"),n=Re("PokaAPI"),r=Z(!1),s=Z(t.audioOrder);Ye(s,E=>t.audioOrder=E);const o=Z(t.paused),a=Z("0:00"),i=Z(0),l=Z("0:00"),u=Z(0),f=Z(null),c=Z(!1);let d=setInterval(()=>{m()},100),p=setInterval(()=>{i.value=t.rawCurrentTime,u.value=t.rawDuration},1e3/60);async function m(){s.value=t.audioOrder,o.value=t.paused,a.value=t.currentTime,l.value=t.duration,f.value=t.trackInfo,i.value=t.rawCurrentTime,u.value=t.rawDuration,c.value||i.value+10>u.value&&u.value>0&&(await n.addSongRecord(f.value.originalObject),c.value=!0)}m(),Xt(()=>{clearInterval(p),clearInterval(d)});function h(E){t.seek(E.target.value)}return(E,b)=>{var w,y;const S=ne("p-slider"),k=ne("p-btn"),O=ne("playlist-dialog");return $(),ee(we,null,[L("div",fh,[L("div",dh,[f.value?($(),ee("img",{key:0,src:f.value.cover,alt:"cover"},null,8,ph)):($(),ee("img",hh))]),L("div",mh,[L("div",_h,ge(((w=f.value)==null?void 0:w.name)||"PokaPlayer"),1),L("div",yh,ge(((y=f.value)==null?void 0:y.artist)||E.$t("waitForPlay")),1)]),L("div",gh,[V(S,{value:i.value,max:u.value,step:"0.000001",onInput:h,onChange:h},null,8,["value","max"]),L("div",vh,[L("div",bh,ge(a.value),1),L("div",wh,ge(l.value),1)])]),L("div",Eh,[V(k,{icon:"",text:"",onClick:b[0]||(b[0]=v=>s.value=s.value=="random"?"list":"random")},{default:K(()=>[s.value=="random"?($(),ee("i",xh)):Se("",!0),s.value=="list"?($(),ee("i",Th)):Se("",!0)]),_:1}),V(k,{icon:"",text:"",onClick:b[1]||(b[1]=v=>De(t).previous())},{default:K(()=>[kh]),_:1}),V(k,{icon:"",color:"primary",onClick:b[2]||(b[2]=v=>De(t).toggle())},{default:K(()=>[o.value?($(),ee("i",Sh)):($(),ee("i",Oh))]),_:1}),V(k,{icon:"",text:"",onClick:b[3]||(b[3]=v=>De(t).next())},{default:K(()=>[zh]),_:1}),V(k,{icon:"",text:"",onClick:b[4]||(b[4]=v=>r.value=!0)},{default:K(()=>[Ph]),_:1})])]),V(O,{modelValue:r.value,"onUpdate:modelValue":b[5]||(b[5]=v=>r.value=v),item:f.value},null,8,["modelValue","item"])],64)}}},Ih=Ve(Ch,[["__scopeId","data-v-1bdd18be"]]),Ah=Object.freeze(Object.defineProperty({__proto__:null,default:Ih},Symbol.toStringTag,{value:"Module"}));const Lh={},Rh=e=>(Bn("data-v-f4517432"),e=e(),jn(),e),Mh={class:"loader","aria-label":"Loading"},$h=Rh(()=>L("div",{class:"loader__spinner"},null,-1)),Nh=[$h];function Fh(e,t){return $(),ee("div",Mh,Nh)}const Dh=Ve(Lh,[["render",Fh],["__scopeId","data-v-f4517432"]]),Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Dh},Symbol.toStringTag,{value:"Module"}));const jh={props:{type:{type:String,default:"button"},href:{type:String,default:""},color:{type:String,default:""},outline:{type:Boolean,default:!1},text:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1}}};function Vh(e,t,n,r,s,o){return $(),le(Mo(n.href?"a":"button"),vr({href:n.href,class:["p-btn",{outline:n.outline,text:n.text,icon:n.icon,block:n.block}],type:n.type,color:n.color},e.$attrs),{default:K(()=>[At(e.$slots,"default",{},void 0,!0)]),_:3},16,["href","type","class","color"])}const Uh=Ve(jh,[["render",Vh],["__scopeId","data-v-6e7d6ed3"]]),qh=Object.freeze(Object.defineProperty({__proto__:null,default:Uh},Symbol.toStringTag,{value:"Module"}));const wn=typeof window<"u";function Hh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Is(e,t){const n={};for(const r in t){const s=t[r];n[r]=mt(s)?s.map(e):e(s)}return n}const sr=()=>{},mt=Array.isArray,Wh=/\/$/,Kh=e=>e.replace(Wh,"");function As(e,t,n="/"){let r,s={},o="",a="";const i=t.indexOf("#");let l=t.indexOf("?");return i=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,i>-1?i:t.length),s=e(o)),i>-1&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=Gh(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:s,hash:a}}function Yh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ui(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Rn(t.matched[r],n.matched[s])&&ic(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ic(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Xh(e[n],t[n]))return!1;return!0}function Xh(e,t){return mt(e)?qi(e,t):mt(t)?qi(t,e):e===t}function qi(e,t){return mt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Gh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var hr;(function(e){e.pop="pop",e.push="push"})(hr||(hr={}));var or;(function(e){e.back="back",e.forward="forward",e.unknown=""})(or||(or={}));function Jh(e){if(!e)if(wn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kh(e)}const Zh=/^[^#]+#/;function em(e,t){return e.replace(Zh,"#")+t}function tm(e,t){const 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)}}const _s=()=>({left:window.pageXOffset,top:window.pageYOffset});function nm(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=tm(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Hi(e,t){return(history.state?history.state.position-t:-1)+e}const Gs=new Map;function rm(e,t){Gs.set(e,t)}function sm(e){const t=Gs.get(e);return Gs.delete(e),t}let om=()=>location.protocol+"//"+location.host;function ac(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),Ui(l,"")}return Ui(n,e)+r+s}function im(e,t,n,r){let s=[],o=[],a=null;const i=({state:d})=>{const p=ac(e,location),m=n.value,h=t.value;let E=0;if(d){if(n.value=p,t.value=d,a&&a===m){a=null;return}E=h?d.position-h.position:0}else r(p);s.forEach(b=>{b(n.value,m,{delta:E,type:hr.pop,direction:E?E>0?or.forward:or.back:or.unknown})})};function l(){a=n.value}function u(d){s.push(d);const p=()=>{const m=s.indexOf(d);m>-1&&s.splice(m,1)};return o.push(p),p}function f(){const{history:d}=window;!d.state||d.replaceState(be({},d.state,{scroll:_s()}),"")}function c(){for(const d of o)d();o=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function Wi(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?_s():null}}function am(e){const{history:t,location:n}=window,r={value:ac(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,f){const c=e.indexOf("#"),d=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+l:om()+e+l;try{t[f?"replaceState":"pushState"](u,"",d),s.value=u}catch(p){console.error(p),n[f?"replace":"assign"](d)}}function a(l,u){const f=be({},t.state,Wi(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,f,!0),r.value=l}function i(l,u){const f=be({},s.value,t.state,{forward:l,scroll:_s()});o(f.current,f,!0);const c=be({},Wi(r.value,l,null),{position:f.position+1},u);o(l,c,!1),r.value=l}return{location:r,state:s,push:i,replace:a}}function lm(e){e=Jh(e);const t=am(e),n=im(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const s=be({location:"",base:e,go:r,createHref:em.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function cm(e){return typeof e=="string"||e&&typeof e=="object"}function lc(e){return typeof e=="string"||typeof e=="symbol"}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},cc=Symbol("");var Ki;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ki||(Ki={}));function Mn(e,t){return be(new Error,{type:e,[cc]:!0},t)}function St(e,t){return e instanceof Error&&cc in e&&(t==null||!!(e.type&t))}const Yi="[^/]+?",um={sensitive:!1,strict:!1,start:!0,end:!0},fm=/[.+*?^${}()[\]/\\]/g;function dm(e,t){const n=be({},um,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let c=0;ct.length?t.length===1&&t[0]===40+40?1:-1:0}function hm(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const mm={type:0,value:""},_m=/[a-zA-Z0-9_]/;function ym(e){if(!e)return[[]];if(e==="/")return[[mm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const s=[];let o;function a(){o&&s.push(o),o=[]}let i=0,l,u="",f="";function c(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;i{a(S)}:sr}function a(f){if(lc(f)){const c=r.get(f);c&&(r.delete(f),n.splice(n.indexOf(c),1),c.children.forEach(a),c.alias.forEach(a))}else{const c=n.indexOf(f);c>-1&&(n.splice(c,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function i(){return n}function l(f){let c=0;for(;c=0&&(f.record.path!==n[c].record.path||!uc(f,n[c]));)c++;n.splice(c,0,f),f.record.name&&!Gi(f)&&r.set(f.record.name,f)}function u(f,c){let d,p={},m,h;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Mn(1,{location:f});h=d.record.name,p=be(Xi(c.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),f.params&&Xi(f.params,d.keys.map(S=>S.name))),m=d.stringify(p)}else if("path"in f)m=f.path,d=n.find(S=>S.re.test(m)),d&&(p=d.parse(m),h=d.record.name);else{if(d=c.name?r.get(c.name):n.find(S=>S.re.test(c.path)),!d)throw Mn(1,{location:f,currentLocation:c});h=d.record.name,p=be({},c.params,f.params),m=d.stringify(p)}const E=[];let b=d;for(;b;)E.unshift(b.record),b=b.parent;return{name:h,path:m,params:p,matched:E,meta:Em(E)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:i,getRecordMatcher:s}}function Xi(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function bm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:wm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function wm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Gi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Em(e){return e.reduce((t,n)=>be(t,n.meta),{})}function Ji(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function uc(e,t){return t.children.some(n=>n===e||uc(e,n))}const fc=/#/g,xm=/&/g,Tm=/\//g,km=/=/g,Sm=/\?/g,dc=/\+/g,Om=/%5B/g,zm=/%5D/g,pc=/%5E/g,Pm=/%60/g,hc=/%7B/g,Cm=/%7C/g,mc=/%7D/g,Im=/%20/g;function Uo(e){return encodeURI(""+e).replace(Cm,"|").replace(Om,"[").replace(zm,"]")}function Am(e){return Uo(e).replace(hc,"{").replace(mc,"}").replace(pc,"^")}function Js(e){return Uo(e).replace(dc,"%2B").replace(Im,"+").replace(fc,"%23").replace(xm,"%26").replace(Pm,"`").replace(hc,"{").replace(mc,"}").replace(pc,"^")}function Lm(e){return Js(e).replace(km,"%3D")}function Rm(e){return Uo(e).replace(fc,"%23").replace(Sm,"%3F")}function Mm(e){return e==null?"":Rm(e).replace(Tm,"%2F")}function Xr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function $m(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Js(o)):[r&&Js(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nm(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=mt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Fm=Symbol(""),ea=Symbol(""),ys=Symbol(""),qo=Symbol(""),Zs=Symbol("");function Yn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Vt(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,i)=>{const l=c=>{c===!1?i(Mn(4,{from:n,to:t})):c instanceof Error?i(c):cm(c)?i(Mn(2,{from:t,to:c})):(o&&r.enterCallbacks[s]===o&&typeof c=="function"&&o.push(c),a())},u=e.call(r&&r.instances[s],t,n,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>i(c))})}function Ls(e,t,n,r){const s=[];for(const o of e)for(const a in o.components){let i=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Dm(i)){const u=(i.__vccOpts||i)[t];u&&s.push(Vt(u,n,r,o,a))}else{let l=i();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const f=Hh(u)?u.default:u;o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Vt(d,n,r,o,a)()}))}}return s}function Dm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ta(e){const t=Re(ys),n=Re(qo),r=Le(()=>t.resolve(De(e.to))),s=Le(()=>{const{matched:l}=r.value,{length:u}=l,f=l[u-1],c=n.matched;if(!f||!c.length)return-1;const d=c.findIndex(Rn.bind(null,f));if(d>-1)return d;const p=na(l[u-2]);return u>1&&na(f)===p&&c[c.length-1].path!==p?c.findIndex(Rn.bind(null,l[u-2])):d}),o=Le(()=>s.value>-1&&Vm(n.params,r.value.params)),a=Le(()=>s.value>-1&&s.value===n.matched.length-1&&ic(n.params,r.value.params));function i(l={}){return jm(l)?t[De(e.replace)?"replace":"push"](De(e.to)).catch(sr):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:o,isExactActive:a,navigate:i}}const Bm=Al({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"}},useLink:ta,setup(e,{slots:t}){const n=Dn(ta(e)),{options:r}=Re(ys),s=Le(()=>({[ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:br("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),_c=Bm;function jm(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){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vm(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!mt(s)||s.length!==r.length||r.some((o,a)=>o!==s[a]))return!1}return!0}function na(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ra=(e,t,n)=>e??t??n,Um=Al({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Re(Zs),s=Le(()=>e.route||r.value),o=Re(ea,0),a=Le(()=>{let u=De(o);const{matched:f}=s.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),i=Le(()=>s.value.matched[a.value]);Fr(ea,Le(()=>a.value+1)),Fr(Fm,i),Fr(Zs,s);const l=Z();return Ye(()=>[l.value,i.value,e.name],([u,f,c],[d,p,m])=>{f&&(f.instances[c]=u,p&&p!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),u&&f&&(!p||!Rn(f,p)||!d)&&(f.enterCallbacks[c]||[]).forEach(h=>h(u))},{flush:"post"}),()=>{const u=s.value,f=e.name,c=i.value,d=c&&c.components[f];if(!d)return sa(n.default,{Component:d,route:u});const p=c.props[f],m=p?p===!0?u.params:typeof p=="function"?p(u):p:null,E=br(d,be({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return sa(n.default,{Component:E,route:u})||E}}});function sa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yc=Um;function qm(e){const t=vm(e.routes,e),n=e.parseQuery||$m,r=e.stringifyQuery||Zi,s=e.history,o=Yn(),a=Yn(),i=Yn(),l=_l(Dt);let u=Dt;wn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Is.bind(null,A=>""+A),c=Is.bind(null,Mm),d=Is.bind(null,Xr);function p(A,q){let B,X;return lc(A)?(B=t.getRecordMatcher(A),X=q):X=A,t.addRoute(X,B)}function m(A){const q=t.getRecordMatcher(A);q&&t.removeRoute(q)}function h(){return t.getRoutes().map(A=>A.record)}function E(A){return!!t.getRecordMatcher(A)}function b(A,q){if(q=be({},q||l.value),typeof A=="string"){const _=As(n,A,q.path),g=t.resolve({path:_.path},q),P=s.createHref(_.fullPath);return be(_,g,{params:d(g.params),hash:Xr(_.hash),redirectedFrom:void 0,href:P})}let B;if("path"in A)B=be({},A,{path:As(n,A.path,q.path).path});else{const _=be({},A.params);for(const g in _)_[g]==null&&delete _[g];B=be({},A,{params:c(A.params)}),q.params=c(q.params)}const X=t.resolve(B,q),fe=A.hash||"";X.params=f(d(X.params));const Pe=Yh(r,be({},A,{hash:Am(fe),path:X.path})),se=s.createHref(Pe);return be({fullPath:Pe,hash:fe,query:r===Zi?Nm(A.query):A.query||{}},X,{redirectedFrom:void 0,href:se})}function S(A){return typeof A=="string"?As(n,A,l.value.path):be({},A)}function k(A,q){if(u!==A)return Mn(8,{from:q,to:A})}function O(A){return v(A)}function w(A){return O(be(S(A),{replace:!0}))}function y(A){const q=A.matched[A.matched.length-1];if(q&&q.redirect){const{redirect:B}=q;let X=typeof B=="function"?B(A):B;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),be({query:A.query,hash:A.hash,params:"path"in X?{}:A.params},X)}}function v(A,q){const B=u=b(A),X=l.value,fe=A.state,Pe=A.force,se=A.replace===!0,_=y(B);if(_)return v(be(S(_),{state:typeof _=="object"?be({},fe,_.state):fe,force:Pe,replace:se}),q||B);const g=B;g.redirectedFrom=q;let P;return!Pe&&Qh(r,X,B)&&(P=Mn(16,{to:g,from:X}),kt(X,X,!0,!1)),(P?Promise.resolve(P):R(g,X)).catch(C=>St(C)?St(C,2)?C:Ze(C):te(C,g,X)).then(C=>{if(C){if(St(C,2))return v(be({replace:se},S(C.to),{state:typeof C.to=="object"?be({},fe,C.to.state):fe,force:Pe}),q||g)}else C=G(g,X,!0,se,fe);return H(g,X,C),C})}function x(A,q){const B=k(A,q);return B?Promise.reject(B):Promise.resolve()}function R(A,q){let B;const[X,fe,Pe]=Hm(A,q);B=Ls(X.reverse(),"beforeRouteLeave",A,q);for(const _ of X)_.leaveGuards.forEach(g=>{B.push(Vt(g,A,q))});const se=x.bind(null,A,q);return B.push(se),bn(B).then(()=>{B=[];for(const _ of o.list())B.push(Vt(_,A,q));return B.push(se),bn(B)}).then(()=>{B=Ls(fe,"beforeRouteUpdate",A,q);for(const _ of fe)_.updateGuards.forEach(g=>{B.push(Vt(g,A,q))});return B.push(se),bn(B)}).then(()=>{B=[];for(const _ of A.matched)if(_.beforeEnter&&!q.matched.includes(_))if(mt(_.beforeEnter))for(const g of _.beforeEnter)B.push(Vt(g,A,q));else B.push(Vt(_.beforeEnter,A,q));return B.push(se),bn(B)}).then(()=>(A.matched.forEach(_=>_.enterCallbacks={}),B=Ls(Pe,"beforeRouteEnter",A,q),B.push(se),bn(B))).then(()=>{B=[];for(const _ of a.list())B.push(Vt(_,A,q));return B.push(se),bn(B)}).catch(_=>St(_,8)?_:Promise.reject(_))}function H(A,q,B){for(const X of i.list())X(A,q,B)}function G(A,q,B,X,fe){const Pe=k(A,q);if(Pe)return Pe;const se=q===Dt,_=wn?history.state:{};B&&(X||se?s.replace(A.fullPath,be({scroll:se&&_&&_.scroll},fe)):s.push(A.fullPath,fe)),l.value=A,kt(A,q,B,se),Ze()}let U;function ce(){U||(U=s.listen((A,q,B)=>{if(!yn.listening)return;const X=b(A),fe=y(X);if(fe){v(be(fe,{replace:!0}),X).catch(sr);return}u=X;const Pe=l.value;wn&&rm(Hi(Pe.fullPath,B.delta),_s()),R(X,Pe).catch(se=>St(se,12)?se:St(se,2)?(v(se.to,X).then(_=>{St(_,20)&&!B.delta&&B.type===hr.pop&&s.go(-1,!1)}).catch(sr),Promise.reject()):(B.delta&&s.go(-B.delta,!1),te(se,X,Pe))).then(se=>{se=se||G(X,Pe,!1),se&&(B.delta&&!St(se,8)?s.go(-B.delta,!1):B.type===hr.pop&&St(se,20)&&s.go(-1,!1)),H(X,Pe,se)}).catch(sr)}))}let Ee=Yn(),ze=Yn(),xe;function te(A,q,B){Ze(A);const X=ze.list();return X.length?X.forEach(fe=>fe(A,q,B)):console.error(A),Promise.reject(A)}function ae(){return xe&&l.value!==Dt?Promise.resolve():new Promise((A,q)=>{Ee.add([A,q])})}function Ze(A){return xe||(xe=!A,ce(),Ee.list().forEach(([q,B])=>A?B(A):q()),Ee.reset()),A}function kt(A,q,B,X){const{scrollBehavior:fe}=e;if(!wn||!fe)return Promise.resolve();const Pe=!B&&sm(Hi(A.fullPath,0))||(X||!B)&&history.state&&history.state.scroll||null;return _n().then(()=>fe(A,q,Pe)).then(se=>se&&nm(se)).catch(se=>te(se,A,q))}const et=A=>s.go(A);let We;const Zt=new Set,yn={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,hasRoute:E,getRoutes:h,resolve:b,options:e,push:O,replace:w,go:et,back:()=>et(-1),forward:()=>et(1),beforeEach:o.add,beforeResolve:a.add,afterEach:i.add,onError:ze.add,isReady:ae,install(A){const q=this;A.component("RouterLink",_c),A.component("RouterView",yc),A.config.globalProperties.$router=q,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>De(l)}),wn&&!We&&l.value===Dt&&(We=!0,O(s.location).catch(fe=>{}));const B={};for(const fe in Dt)B[fe]=Le(()=>l.value[fe]);A.provide(ys,q),A.provide(qo,Dn(B)),A.provide(Zs,l);const X=A.unmount;Zt.add(A),A.unmount=function(){Zt.delete(A),Zt.size<1&&(u=Dt,U&&U(),U=null,l.value=Dt,We=!1,xe=!1),X()}}};return yn}function bn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Hm(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aRn(u,i))?r.push(i):n.push(i));const l=e.matched[a];l&&(t.matched.find(u=>Rn(u,l))||s.push(l))}return[n,r,s]}function S0(){return Re(ys)}function O0(){return Re(qo)}const Wm={class:"p-card__img-container"},Km=["src"],Ym={key:1,class:"p-card__icon"},Qm={class:"p-card__source"},Xm={class:"p-card__content"},Gm={class:"p-card__title"},Jm={class:"p-card__description"},Zm={__name:"Card",props:{imgSrc:String,title:String,description:String,source:String,to:String,icon:String},setup(e){return(t,n)=>($(),le(Mo(e.to?"RouterLink":"div"),{class:"p-card",to:e.to},{default:K(()=>[L("div",Wm,[e.imgSrc?($(),ee("img",{key:0,class:"p-card__img",src:e.imgSrc,loading:"lazy"},null,8,Km)):Se("",!0),e.icon?($(),ee("div",Ym,[L("i",{class:at(e.icon)},null,2)])):Se("",!0),L("div",Qm,ge(e.source),1)]),L("div",Xm,[L("div",Gm,ge(e.title),1),L("div",Jm,ge(e.description),1)])]),_:1},8,["to"]))}},e_=Ve(Zm,[["__scopeId","data-v-7ba3ec3e"]]),t_=Object.freeze(Object.defineProperty({__proto__:null,default:e_},Symbol.toStringTag,{value:"Module"}));const n_={},r_={class:"p-cards"};function s_(e,t){return $(),ee("div",r_,[At(e.$slots,"default",{},void 0,!0)])}const o_=Ve(n_,[["render",s_],["__scopeId","data-v-cd28673c"]]),i_=Object.freeze(Object.defineProperty({__proto__:null,default:o_},Symbol.toStringTag,{value:"Module"}));const a_={name:"PokaTextInput",props:{type:{type:String,default:"text"},label:{type:String,default:""},modelValue:{type:String,default:""}},data(){return{randomInputId:`input_${Math.random().toString(36).substr(2,9)}`}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},l_=["for"],c_={class:"p-input__label-text"},u_=["id","type"];function f_(e,t,n,r,s,o){return $(),ee("div",{class:at(["p-input",{value:o.value.length}])},[L("label",{class:"p-input__label",for:s.randomInputId},[L("span",c_,ge(n.label),1)],8,l_),Ml(L("input",vr({class:"p-input__input",id:s.randomInputId,"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a),type:n.type},e.$attrs,{placeholder:""}),null,16,u_),[[Ld,o.value]])],2)}const d_=Ve(a_,[["render",f_],["__scopeId","data-v-dc46621b"]]),p_=Object.freeze(Object.defineProperty({__proto__:null,default:d_},Symbol.toStringTag,{value:"Module"}));const h_={class:"p-list-item__content"},m_={class:"p-list-item__actions"},__={__name:"Item",props:{to:String,active:{type:Boolean,default:!1}},setup(e){return(t,n)=>($(),le(Mo(e.to?De(_c):"div"),{class:at(["p-list-item",{active:e.active}]),to:e.to},{default:K(()=>[L("div",h_,[At(t.$slots,"default")]),L("div",m_,[At(t.$slots,"actions")])]),_:3},8,["to","class"]))}},y_=Object.freeze(Object.defineProperty({__proto__:null,default:__},Symbol.toStringTag,{value:"Module"})),g_={class:"p-list-item__content-content"},v_={class:"p-list-item__content-title"},b_={class:"p-list-item__content-description"},w_={__name:"ItemContent",props:{title:String,description:String},setup(e){return(t,n)=>($(),ee("div",g_,[L("div",v_,ge(e.title),1),L("div",b_,ge(e.description),1)]))}},E_=Object.freeze(Object.defineProperty({__proto__:null,default:w_},Symbol.toStringTag,{value:"Module"})),x_={},T_={class:"p-list-item__icon-btn"};function k_(e,t){return $(),ee("button",T_,[At(e.$slots,"default")])}const S_=Ve(x_,[["render",k_]]),O_=Object.freeze(Object.defineProperty({__proto__:null,default:S_},Symbol.toStringTag,{value:"Module"}));var oa;const Tr=typeof window<"u",z_=e=>typeof e=="function",P_=e=>typeof e=="string",Br=()=>{};Tr&&((oa=window==null?void 0:window.navigator)==null?void 0:oa.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function gc(e){return typeof e=="function"?e():De(e)}function C_(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}const vc=e=>e();function I_(e=vc){const t=Z(!0);function n(){t.value=!1}function r(){t.value=!0}return{isActive:t,pause:n,resume:r,eventFilter:(...o)=>{t.value&&e(...o)}}}function A_(e){return e}function bc(e){return el()?(tl(e),!0):!1}function L_(e,t=!0){Vn()?Rt(e):t?e():_n(e)}var ia=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,M_=Object.prototype.propertyIsEnumerable,$_=(e,t)=>{var n={};for(var r in e)R_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ia)for(var r of ia(e))t.indexOf(r)<0&&M_.call(e,r)&&(n[r]=e[r]);return n};function N_(e,t,n={}){const r=n,{eventFilter:s=vc}=r,o=$_(r,["eventFilter"]);return Ye(e,C_(s,t),o)}var F_=Object.defineProperty,D_=Object.defineProperties,B_=Object.getOwnPropertyDescriptors,Gr=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Ec=Object.prototype.propertyIsEnumerable,aa=(e,t,n)=>t in e?F_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j_=(e,t)=>{for(var n in t||(t={}))wc.call(t,n)&&aa(e,n,t[n]);if(Gr)for(var n of Gr(t))Ec.call(t,n)&&aa(e,n,t[n]);return e},V_=(e,t)=>D_(e,B_(t)),U_=(e,t)=>{var n={};for(var r in e)wc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gr)for(var r of Gr(e))t.indexOf(r)<0&&Ec.call(e,r)&&(n[r]=e[r]);return n};function q_(e,t,n={}){const r=n,{eventFilter:s}=r,o=U_(r,["eventFilter"]),{eventFilter:a,pause:i,resume:l,isActive:u}=I_(s);return{stop:N_(e,t,V_(j_({},o),{eventFilter:a})),pause:i,resume:l,isActive:u}}function eo(e){var t;const n=gc(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Jr=Tr?window:void 0;Tr&&window.document;Tr&&window.navigator;Tr&&window.location;function H_(...e){let t,n,r,s;if(P_(e[0])||Array.isArray(e[0])?([n,r,s]=e,t=Jr):[t,n,r,s]=e,!t)return Br;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(f=>f()),o.length=0},i=(f,c,d)=>(f.addEventListener(c,d,s),()=>f.removeEventListener(c,d,s)),l=Ye(()=>eo(t),f=>{a(),f&&o.push(...n.flatMap(c=>r.map(d=>i(f,c,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return bc(u),u}function W_(e,t=!1){const n=Z(),r=()=>n.value=Boolean(e());return r(),L_(r,t),n}const to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},no="__vueuse_ssr_handlers__";to[no]=to[no]||{};const K_=to[no];function Y_(e,t){return K_[e]||t}function Q_(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var X_=Object.defineProperty,la=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable,ca=(e,t,n)=>t in e?X_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ua=(e,t)=>{for(var n in t||(t={}))G_.call(t,n)&&ca(e,n,t[n]);if(la)for(var n of la(t))J_.call(t,n)&&ca(e,n,t[n]);return e};const Z_={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function z0(e,t,n,r={}){var s;const{flush:o="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:f,window:c=Jr,eventFilter:d,onError:p=v=>{console.error(v)}}=r,m=(f?_l:Z)(t);if(!n)try{n=Y_("getDefaultStorage",()=>{var v;return(v=Jr)==null?void 0:v.localStorage})()}catch(v){p(v)}if(!n)return m;const h=gc(t),E=Q_(h),b=(s=r.serializer)!=null?s:Z_[E],{pause:S,resume:k}=q_(m,()=>O(m.value),{flush:o,deep:a,eventFilter:d});return c&&i&&H_(c,"storage",y),y(),m;function O(v){try{if(v==null)n.removeItem(e);else{const x=b.write(v),R=n.getItem(e);R!==x&&(n.setItem(e,x),c&&(c==null||c.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:R,newValue:x,storageArea:n}))))}}catch(x){p(x)}}function w(v){const x=v?v.newValue:n.getItem(e);if(x==null)return l&&h!==null&&n.setItem(e,b.write(h)),h;if(!v&&u){const R=b.read(x);return z_(u)?u(R,h):E==="object"&&!Array.isArray(R)?ua(ua({},h),R):R}else return typeof x!="string"?x:b.read(x)}function y(v){if(!(v&&v.storageArea!==n)){if(v&&v.key==null){m.value=h;return}if(!(v&&v.key!==e)){S();try{m.value=w(v)}catch(x){p(x)}finally{v?_n(k):k()}}}}}function ey(e,t,n={}){const{root:r,rootMargin:s="0px",threshold:o=.1,window:a=Jr}=n,i=W_(()=>a&&"IntersectionObserver"in a);let l=Br;const u=i.value?Ye(()=>({el:eo(e),root:eo(r)}),({el:c,root:d})=>{if(l(),!c)return;const p=new IntersectionObserver(t,{root:d,rootMargin:s,threshold:o});p.observe(c),l=()=>{p.disconnect(),l=Br}},{immediate:!0,flush:"post"}):Br,f=()=>{l(),u()};return bc(f),{isSupported:i,stop:f}}var fa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(fa||(fa={}));var ty=Object.defineProperty,da=Object.getOwnPropertySymbols,ny=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,pa=(e,t,n)=>t in e?ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sy=(e,t)=>{for(var n in t||(t={}))ny.call(t,n)&&pa(e,n,t[n]);if(da)for(var n of da(t))ry.call(t,n)&&pa(e,n,t[n]);return e};const oy={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};sy({linear:A_},oy);const iy=["src","alt"],ay={key:1},ly={__name:"ItemImg",props:{src:String,alt:String},setup(e){const t=Z(null),n=Z(!1);return ey(t,([{isIntersecting:r}],s)=>{n.value=n.value||r}),(r,s)=>($(),ee("div",{class:"p-list-item__img",ref_key:"imgContainer",ref:t},[V(hs,{name:"fade",mode:"out-in"},{default:K(()=>[n.value?($(),ee("img",{key:0,src:e.src,alt:e.alt},null,8,iy)):($(),ee("img",ay))]),_:1})],512))}},cy=Object.freeze(Object.defineProperty({__proto__:null,default:ly},Symbol.toStringTag,{value:"Module"}));const uy={__name:"Items",props:{singleRow:Boolean},setup(e){return(t,n)=>($(),ee("div",{class:at(["p-list-items",{"single-row":e.singleRow}])},[At(t.$slots,"default",{},void 0,!0)],2))}},fy=Ve(uy,[["__scopeId","data-v-6dc192e0"]]),dy=Object.freeze(Object.defineProperty({__proto__:null,default:fy},Symbol.toStringTag,{value:"Module"}));const py={name:"PokaTextInput",props:["modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},hy={class:"p-select"};function my(e,t,n,r,s,o){return $(),ee("div",hy,[Ml(L("select",vr({"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a)},e.$attrs),[At(e.$slots,"default",{},void 0,!0)],16),[[Jl,o.value]])])}const _y=Ve(py,[["render",my],["__scopeId","data-v-396b2373"]]),yy=Object.freeze(Object.defineProperty({__proto__:null,default:_y},Symbol.toStringTag,{value:"Module"}));const gy=["min","max","value"],vy={__name:"Slider",props:{min:{type:Number},max:{type:Number},value:{type:Number}},setup(e){const t=e,n=Le(()=>t.value/t.max*100||0);return(r,s)=>($(),ee("input",vr({type:"range",min:e.min,max:e.max,value:e.value,style:`--value-in-percent: ${De(n)}%`},r.$attrs),null,16,gy))}},by=Ve(vy,[["__scopeId","data-v-4ad436c5"]]),wy=Object.freeze(Object.defineProperty({__proto__:null,default:by},Symbol.toStringTag,{value:"Module"})),Ey={__name:"Albums",props:{items:Array},setup(e){return(t,n)=>{const r=ne("p-card"),s=ne("p-cards");return $(),le(s,null,{default:K(()=>[($(!0),ee(we,null,It(e.items,o=>($(),le(r,{key:o.id,imgSrc:o.cover,title:o.name,description:o.artist,source:t.$t(`source.${o.source}`),to:`/album/${o.source}/${o.id}`},null,8,["imgSrc","title","description","source","to"]))),128))]),_:1})}}},xy=Object.freeze(Object.defineProperty({__proto__:null,default:Ey},Symbol.toStringTag,{value:"Module"})),Ty={__name:"Artists",props:{items:Array,type:{type:String,default:"artists"}},setup(e){return(t,n)=>{const r=ne("p-card"),s=ne("p-cards");return $(),le(s,null,{default:K(()=>[($(!0),ee(we,null,It(e.items,o=>($(),le(r,{key:o.id,imgSrc:o.cover,title:o.name,source:t.$t(`source.${o.source}`),to:`/${e.type.slice(0,-1)}/${o.source}/${o.id}`},null,8,["imgSrc","title","source","to"]))),128))]),_:1})}}},ky=Object.freeze(Object.defineProperty({__proto__:null,default:Ty},Symbol.toStringTag,{value:"Module"}));const Sy={class:"home-item"},Oy={class:"home-item__header"},zy={class:"home-item__title"},Py={class:"home-item__type"},Cy={__name:"Home",props:{items:Array},setup(e){return(t,n)=>{const r=ne("parse-albums"),s=ne("parse-playlists"),o=ne("parse-artists");return $(!0),ee(we,null,It(e.items,a=>($(),ee(we,null,[($(!0),ee(we,null,It(Object.entries(a).filter(([i,l])=>!["title","source","icon"].includes(i)&&l.length),([i,l])=>($(),ee("div",Sy,[L("div",Oy,[L("h3",zy,ge(t.$t(`home.${a.title}`)),1),L("p",Py,ge(t.$t(`nav.${i}`)),1)]),i=="albums"?($(),le(r,{key:0,items:l},null,8,["items"])):Se("",!0),i=="playlists"?($(),le(s,{key:1,items:l},null,8,["items"])):Se("",!0),["composers","artists"].includes(i)?($(),le(o,{key:2,items:l,type:i},null,8,["items","type"])):Se("",!0)]))),256))],64))),256)}}},Iy=Ve(Cy,[["__scopeId","data-v-25d19ae0"]]),Ay=Object.freeze(Object.defineProperty({__proto__:null,default:Iy},Symbol.toStringTag,{value:"Module"})),Ly={__name:"Playlists",props:{items:Array},setup(e){return(t,n)=>{const r=ne("p-card"),s=ne("p-cards");return $(),le(s,null,{default:K(()=>[($(!0),ee(we,null,It(e.items,o=>($(),le(r,{key:o.id,imgSrc:o.cover,title:o.name,source:t.$t(`source.${o.source}`),to:`/playlist/${o.source}/${o.id}`},null,8,["imgSrc","title","source","to"]))),128))]),_:1})}}},Ry=Object.freeze(Object.defineProperty({__proto__:null,default:Ly},Symbol.toStringTag,{value:"Module"})),My=L("i",{class:"bx bx-plus"},null,-1),$y={__name:"Songs",props:{items:{type:Array,default:()=>[]},currentIndex:{type:Number,default:-1}},setup(e){const t=e,n=Re("Player"),r=Z(null),s=Z(!1);function o(a){n.addSongs({songs:t.items,index:a})}return(a,i)=>{const l=ne("p-list-item-img"),u=ne("p-list-item-content"),f=ne("p-list-item-icon-btn"),c=ne("p-list-item"),d=ne("p-list-items"),p=ne("song-dialog");return $(),ee(we,null,[e.items.length?($(),le(d,{key:0,singleRow:e.currentIndex!=-1},{default:K(()=>[($(!0),ee(we,null,It(e.items,(m,h)=>($(),le(c,{onClick:E=>o(h),onKeydown:ec(E=>o(h),["enter"]),active:h==e.currentIndex,"data-index":h,tabindex:0,onContextmenu:Qr(E=>{r.value=m,s.value=!0},["prevent"])},{actions:K(()=>[e.currentIndex==-1?($(),le(f,{key:0,onClick:Qr(E=>De(n).addSongs({songs:[m],clear:!1}),["stop"])},{default:K(()=>[My]),_:2},1032,["onClick"])):Se("",!0)]),default:K(()=>[V(l,{src:m.cover},null,8,["src"]),V(u,{title:m.name,description:m.artist},null,8,["title","description"])]),_:2},1032,["onClick","onKeydown","active","data-index","onContextmenu"]))),256))]),_:1},8,["singleRow"])):Se("",!0),V(p,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=m=>s.value=m),item:r.value},null,8,["modelValue","item"])],64)}}},Ny=Object.freeze(Object.defineProperty({__proto__:null,default:$y},Symbol.toStringTag,{value:"Module"})),Fy=L("i",{class:"bx bx-loader bx-spin"},null,-1),Dy=L("i",{class:"bx bxs-pin"},null,-1),By=L("i",{class:"bx bxs-pin"},null,-1),jy={__name:"PinBtn",props:{source:String,id:String,name:String,cover:String,artist:String,type:String},setup(e){const t=e,n=Z(!1),r=Z(!0),s=Re("PokaAPI");async function o(){if(t.name){let l=await s.getPinStatus({source:t.source,id:t.id,name:t.name,type:t.type});n.value=l}r.value=!1}async function a(){n.value=!0,t.name&&(await s.pin({source:t.source,id:t.id,name:t.name,cover:t.cover,artist:t.artist,type:t.type}),await o())}async function i(){n.value=!1,t.name&&(await s.unpin({source:t.source,id:t.id,name:t.name,cover:t.cover,artist:t.artist,type:t.type}),await o())}return Rt(async()=>{await o()}),(l,u)=>{const f=ne("p-btn");return r.value?($(),le(f,{key:0,outline:""},{default:K(()=>[Fy,Wt(ge(l.$t("pin.loading")),1)]),_:1})):n.value?($(),le(f,{key:1,outline:"",onClick:i},{default:K(()=>[Dy,Wt(ge(l.$t("pin.unpin")),1)]),_:1})):($(),le(f,{key:2,onClick:a},{default:K(()=>[By,Wt(ge(l.$t("pin.pin")),1)]),_:1}))}}},Vy=Object.freeze(Object.defineProperty({__proto__:null,default:jy},Symbol.toStringTag,{value:"Module"})),Uy={style:{"margin-bottom":"calc(var(--padding) * 2)"}},qy={key:0,class:"bx bxs-checkbox-checked"},Hy={key:1,class:"bx bx-checkbox"},Wy={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},Ky={__name:"PlaylistDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Re("PokaAPI"),s=Le(()=>{var f;return((f=n.item)==null?void 0:f.originalObject)||n.item}),o=Le({get(){return!!n.modelValue},set(){t("update:modelValue",null)}}),a=Z(null),i=Z(!1);async function l(){i.value=!0,a.value=await r.checkSongExistInPlaylist(s.value),i.value=!1}async function u(f){s.value&&(i.value=!0,a.value=a.value.map(c=>(c.id===f&&(c.exist=!c.exist),c)),await r.toggleSongInPlaylist(s.value,f),await l())}return Rt(()=>{!s.value||l()}),Ye(s,()=>{l()}),(f,c)=>{const d=ne("Loader"),p=ne("p-list-item-icon-btn"),m=ne("p-list-item-content"),h=ne("p-list-item"),E=ne("p-list-items"),b=ne("p-btn"),S=ne("Dialog");return $(),le(S,{modelValue:De(o),"onUpdate:modelValue":c[1]||(c[1]=k=>Ie(o)?o.value=k:null),"max-width":"400px"},{default:K(()=>[L("h3",Uy,ge(f.$t("songDialog.addToPlaylist")),1),a.value===null?($(),le(d,{key:0,style:{"margin-top":"calc(var(--padding) * 2)"}})):Se("",!0),V(E,{"single-row":""},{default:K(()=>[($(!0),ee(we,null,It(a.value,k=>($(),le(h,{tabindex:"0",onClick:O=>u(k.id)},{default:K(()=>[V(p,null,{default:K(()=>[k.exist?($(),ee("i",qy)):($(),ee("i",Hy))]),_:2},1024),V(m,{title:k.name},null,8,["title"])]),_:2},1032,["onClick"]))),256))]),_:1}),L("div",Wy,[V(b,{onClick:c[0]||(c[0]=k=>o.value=!1),color:"primary"},{default:K(()=>[Wt(ge(f.$t("close")),1)]),_:1})])]),_:1},8,["modelValue"])}}},Yy=Object.freeze(Object.defineProperty({__proto__:null,default:Ky},Symbol.toStringTag,{value:"Module"}));const Mt=e=>(Bn("data-v-2a2e2f70"),e=e(),jn(),e),Qy={class:"song-info-dialog-content"},Xy=["src"],Gy={class:"info"},Jy={class:"name"},Zy={class:"artist"},eg=Mt(()=>L("i",{class:"bx bx-list-plus"},null,-1)),tg=Mt(()=>L("i",{class:"bx bx-microphone"},null,-1)),ng=Mt(()=>L("i",{class:"bx bx-right-arrow-alt"},null,-1)),rg=Mt(()=>L("i",{class:"nav-item-icon bx bx-album"},null,-1)),sg=Mt(()=>L("i",{class:"bx bx-right-arrow-alt"},null,-1)),og=Mt(()=>L("i",{class:"bx bx-file-blank"},null,-1)),ig=Mt(()=>L("i",{class:"bx bx-time"},null,-1)),ag=Mt(()=>L("i",{class:"bx bx-data"},null,-1)),lg=Mt(()=>L("i",{class:"bx bx-tag"},null,-1)),cg={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},ug={__name:"SongDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=jo(),{show:s}=Bo(r),o=Le({get(){return n.modelValue},set(){t("update:modelValue",null)}}),a=Z(!1);function i(){s.value=!1,o.value=!1}return(l,u)=>{const f=ne("p-list-item-icon-btn"),c=ne("p-list-item-content"),d=ne("p-list-item"),p=ne("p-list-items"),m=ne("p-btn"),h=ne("Dialog"),E=ne("playlist-dialog");return $(),ee(we,null,[V(h,{modelValue:De(o),"onUpdate:modelValue":u[4]||(u[4]=b=>Ie(o)?o.value=b:null),"max-width":"400px"},{default:K(()=>[L("div",Qy,[L("img",{src:e.item.cover,class:"cover"},null,8,Xy),L("div",Gy,[L("div",Jy,ge(e.item.name),1),L("div",Zy,ge(e.item.artist),1)]),V(p,{"single-row":""},{default:K(()=>[V(d,{onClick:u[0]||(u[0]=b=>a.value=!0),tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[eg]),_:1}),V(c,{title:l.$t("songDialog.addToPlaylist")},null,8,["title"])]),_:1}),V(d,{to:e.item.artistId?`/artist/${e.item.source}/${e.item.artistId}`:void 0,onClick:u[1]||(u[1]=b=>e.item.artistId&&i()),tabindex:"0"},{actions:K(()=>[e.item.artistId?($(),le(f,{key:0},{default:K(()=>[ng]),_:1})):Se("",!0)]),default:K(()=>[V(f,null,{default:K(()=>[tg]),_:1}),V(c,{title:e.item.artist,description:l.$t("nav.artists")},null,8,["title","description"])]),_:1},8,["to"]),V(d,{to:e.item.albumId?`/album/${e.item.source}/${e.item.albumId}`:void 0,onClick:u[2]||(u[2]=b=>e.item.albumId&&i()),tabindex:"0"},{actions:K(()=>[e.item.albumId?($(),le(f,{key:0},{default:K(()=>[sg]),_:1})):Se("",!0)]),default:K(()=>[V(f,null,{default:K(()=>[rg]),_:1}),V(c,{title:e.item.album,description:l.$t("nav.albums")},null,8,["title","description"])]),_:1},8,["to"]),e.item.codec&&e.item.bitrate?($(),le(d,{key:0,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[og]),_:1}),V(c,{title:`${e.item.codec.toUpperCase()} ${e.item.bitrate/1e3}k`,description:l.$t("songDialog.codec")},null,8,["title","description"])]),_:1})):Se("",!0),e.item.year?($(),le(d,{key:1,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[ig]),_:1}),V(c,{title:e.item.year.toString(),description:l.$t("songDialog.year")},null,8,["title","description"])]),_:1})):Se("",!0),e.item.source?($(),le(d,{key:2,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[ag]),_:1}),V(c,{title:l.$t(`source.${e.item.source}`),description:l.$t("songDialog.source")},null,8,["title","description"])]),_:1})):Se("",!0),e.item.id?($(),le(d,{key:3,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[lg]),_:1}),V(c,{title:e.item.id,description:l.$t("songDialog.id")},null,8,["title","description"])]),_:1})):Se("",!0)]),_:1}),L("div",cg,[V(m,{onClick:u[3]||(u[3]=b=>o.value=!1),color:"primary"},{default:K(()=>[Wt(ge(l.$t("close")),1)]),_:1})])])]),_:1},8,["modelValue"]),V(E,{modelValue:a.value,"onUpdate:modelValue":u[5]||(u[5]=b=>a.value=b),item:e.item},null,8,["modelValue","item"])],64)}}},fg=Ve(ug,[["__scopeId","data-v-2a2e2f70"]]),dg=Object.freeze(Object.defineProperty({__proto__:null,default:fg},Symbol.toStringTag,{value:"Module"}));const ro=typeof window<"u",pg=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Gt=e=>pg?Symbol(e):e,hg=(e,t,n)=>mg({l:e,k:t,s:n}),mg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),je=e=>typeof e=="number"&&isFinite(e),_g=e=>Ko(e)==="[object Date]",Zr=e=>Ko(e)==="[object RegExp]",gs=e=>_e(e)&&Object.keys(e).length===0;function yg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Xe=Object.assign;let ha;const Ho=()=>ha||(ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ma(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const gg=Object.prototype.hasOwnProperty;function Wo(e,t){return gg.call(e,t)}const Ne=Array.isArray,Ue=e=>typeof e=="function",Y=e=>typeof e=="string",Me=e=>typeof e=="boolean",Oe=e=>e!==null&&typeof e=="object",xc=Object.prototype.toString,Ko=e=>xc.call(e),_e=e=>Ko(e)==="[object Object]",vg=e=>e==null?"":Ne(e)||_e(e)&&e.toString===xc?JSON.stringify(e,null,2):String(e);const Tc={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function kc(e,t,n={}){const{domain:r,messages:s,args:o}=n,a=e,i=new SyntaxError(String(a));return i.code=e,t&&(i.location=t),i.domain=r,i}const Sc={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};const Jt=[];Jt[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Jt[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Jt[2]={w:[2],i:[3,0],[0]:[3,0]};Jt[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Jt[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Jt[5]={["'"]:[4,0],o:8,l:[5,0]};Jt[6]={['"']:[4,0],o:8,l:[6,0]};const bg=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function wg(e){return bg.test(e)}function Eg(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function xg(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Tg(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:wg(t)?Eg(t):"*"+t}function kg(e){const t=[];let n=-1,r=0,s=0,o,a,i,l,u,f,c;const d=[];d[0]=()=>{a===void 0?a=i:a+=i},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,a===void 0||(a=Tg(a),a===!1))return!1;d[1]()}};function p(){const m=e[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,i="\\"+m,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=xg(o),c=Jt[r],u=c[l]||c.l||8,u===8||(r=u[0],u[1]!==void 0&&(f=d[u[1]],f&&(i=o,f()===!1))))return;if(r===7)return t}}const _a=new Map;function Sg(e,t){return Oe(e)?e[t]:null}function Og(e,t){if(!Oe(e))return null;let n=_a.get(t);if(n||(n=kg(t),n&&_a.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;oe,Pg=e=>"",Cg="text",Ig=e=>e.length===0?"":e.join(""),Ag=vg;function ya(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Lg(e){const t=je(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(je(e.named.count)||je(e.named.n))?je(e.named.count)?e.named.count:je(e.named.n)?e.named.n:t:t}function Rg(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Mg(e={}){const t=e.locale,n=Lg(e),r=Oe(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?e.pluralRules[t]:ya,s=Oe(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?ya:void 0,o=b=>b[r(n,b.length,s)],a=e.list||[],i=b=>a[b],l=e.named||{};je(e.pluralIndex)&&Rg(n,l);const u=b=>l[b];function f(b){const S=Ue(e.messages)?e.messages(b):Oe(e.messages)?e.messages[b]:!1;return S||(e.parent?e.parent.message(b):Pg)}const c=b=>e.modifiers?e.modifiers[b]:zg,d=_e(e.processor)&&Ue(e.processor.normalize)?e.processor.normalize:Ig,p=_e(e.processor)&&Ue(e.processor.interpolate)?e.processor.interpolate:Ag,m=_e(e.processor)&&Y(e.processor.type)?e.processor.type:Cg,E={list:i,named:u,plural:o,linked:(b,...S)=>{const[k,O]=S;let w="text",y="";S.length===1?Oe(k)?(y=k.modifier||y,w=k.type||w):Y(k)&&(y=k||y):S.length===2&&(Y(k)&&(y=k||y),Y(O)&&(w=O||w));let v=f(b)(E);return w==="vnode"&&Ne(v)&&y&&(v=v[0]),y?c(y)(v,w):v},message:f,type:m,interpolate:p,normalize:d};return E}let mr=null;function $g(e){mr=e}function Ng(e,t,n){mr&&mr.emit(Sc.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Fg=Dg(Sc.FunctionTranslate);function Dg(e){return t=>mr&&mr.emit(e,t)}const Bg={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function jg(e,t,n){return[...new Set([n,...Ne(t)?t:Oe(t)?Object.keys(t):Y(t)?[t]:[n]])]}function Oc(e,t,n){const r=Y(n)?n:Yo,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ne(a);)a=ga(o,a,t);const i=Ne(t)||!_e(t)?t:t.default?t.default:null;a=Y(i)?[i]:i,Ne(a)&&ga(o,a,!1),s.__localeChainCache.set(r,o)}return o}function ga(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Hg(){return{upper:(e,t)=>t==="text"&&Y(e)?e.toUpperCase():t==="vnode"&&Oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Y(e)?e.toLowerCase():t==="vnode"&&Oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Y(e)?ba(e):t==="vnode"&&Oe(e)&&"__v_isVNode"in e?ba(e.children):e}}let Wg,zc;function Kg(e){zc=e}let Pc;function Yg(e){Pc=e}let Cc=null;const wa=e=>{Cc=e},Qg=()=>Cc;let Ic=null;const Ea=e=>{Ic=e},Xg=()=>Ic;let xa=0;function Gg(e={}){const t=Y(e.version)?e.version:qg,n=Y(e.locale)?e.locale:Yo,r=Ne(e.fallbackLocale)||_e(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,s=_e(e.messages)?e.messages:{[n]:{}},o=_e(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=_e(e.numberFormats)?e.numberFormats:{[n]:{}},i=Xe({},e.modifiers||{},Hg()),l=e.pluralRules||{},u=Ue(e.missing)?e.missing:null,f=Me(e.missingWarn)||Zr(e.missingWarn)?e.missingWarn:!0,c=Me(e.fallbackWarn)||Zr(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,p=!!e.unresolving,m=Ue(e.postTranslation)?e.postTranslation:null,h=_e(e.processor)?e.processor:null,E=Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,S=Ue(e.messageCompiler)?e.messageCompiler:Wg,k=Ue(e.messageResolver)?e.messageResolver:zc||Sg,O=Ue(e.localeFallbacker)?e.localeFallbacker:Pc||jg,w=Oe(e.fallbackContext)?e.fallbackContext:void 0,y=Ue(e.onWarn)?e.onWarn:yg,v=e,x=Oe(v.__datetimeFormatters)?v.__datetimeFormatters:new Map,R=Oe(v.__numberFormatters)?v.__numberFormatters:new Map,H=Oe(v.__meta)?v.__meta:{};xa++;const G={version:t,cid:xa,locale:n,fallbackLocale:r,messages:s,modifiers:i,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:c,fallbackFormat:d,unresolving:p,postTranslation:m,processor:h,warnHtmlMessage:E,escapeParameter:b,messageCompiler:S,messageResolver:k,localeFallbacker:O,fallbackContext:w,onWarn:y,__meta:H};return G.datetimeFormats=o,G.numberFormats=a,G.__datetimeFormatters=x,G.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&Ng(G,t,H),G}function Qo(e,t,n,r,s){const{missing:o,onWarn:a}=e;if(o!==null){const i=o(e,n,t,s);return Y(i)?i:t}else return t}function Qn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Ac=Tc.__EXTEND_POINT__;const Rs=()=>++Ac,En={INVALID_ARGUMENT:Ac,INVALID_DATE_ARGUMENT:Rs(),INVALID_ISO_DATE_ARGUMENT:Rs(),__EXTEND_POINT__:Rs()};function xn(e){return kc(e,null,void 0)}const Ta=()=>"",bt=e=>Ue(e);function ka(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:a,messages:i}=e,[l,u]=so(...t),f=Me(u.missingWarn)?u.missingWarn:e.missingWarn,c=Me(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=Me(u.escapeParameter)?u.escapeParameter:e.escapeParameter,p=!!u.resolvedMessage,m=Y(u.default)||Me(u.default)?Me(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:"",h=n||m!=="",E=Y(u.locale)?u.locale:e.locale;d&&Jg(u);let[b,S,k]=p?[l,E,i[E]||{}]:Lc(e,l,E,a,c,f),O=b,w=l;if(!p&&!(Y(O)||bt(O))&&h&&(O=m,w=O),!p&&(!(Y(O)||bt(O))||!Y(S)))return s?vs:l;let y=!1;const v=()=>{y=!0},x=bt(O)?O:Rc(e,l,S,O,w,v);if(y)return O;const R=tv(e,S,k,u),H=Mg(R),G=Zg(e,x,H),U=r?r(G,l):G;if(__INTLIFY_PROD_DEVTOOLS__){const ce={timestamp:Date.now(),key:Y(l)?l:bt(O)?O.key:"",locale:S||(bt(O)?O.locale:""),format:Y(O)?O:bt(O)?O.source:"",message:U};ce.meta=Xe({},e.__meta,Qg()||{}),Fg(ce)}return U}function Jg(e){Ne(e.list)?e.list=e.list.map(t=>Y(t)?ma(t):t):Oe(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=ma(e.named[t]))})}function Lc(e,t,n,r,s,o){const{messages:a,onWarn:i,messageResolver:l,localeFallbacker:u}=e,f=u(e,r,n);let c={},d,p=null;const m="translate";for(let h=0;hr;return u.locale=n,u.key=t,u}const l=a(r,ev(e,n,s,r,i,o));return l.locale=n,l.key=t,l.source=r,l}function Zg(e,t,n){return t(n)}function so(...e){const[t,n,r]=e,s={};if(!Y(t)&&!je(t)&&!bt(t))throw xn(En.INVALID_ARGUMENT);const o=je(t)?String(t):(bt(t),t);return je(n)?s.plural=n:Y(n)?s.default=n:_e(n)&&!gs(n)?s.named=n:Ne(n)&&(s.list=n),je(r)?s.plural=r:Y(r)?s.default=r:_e(r)&&Xe(s,r),[o,s]}function ev(e,t,n,r,s,o){return{warnHtmlMessage:s,onError:a=>{throw o&&o(a),a},onCacheKey:a=>hg(t,n,a)}}function tv(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:a,fallbackLocale:i,fallbackWarn:l,missingWarn:u,fallbackContext:f}=e,d={locale:t,modifiers:s,pluralRules:o,messages:p=>{let m=a(n,p);if(m==null&&f){const[,,h]=Lc(f,p,t,i,l,u);m=a(h,p)}if(Y(m)){let h=!1;const b=Rc(e,p,t,m,p,()=>{h=!0});return h?Ta:b}else return bt(m)?m:Ta}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),je(r.plural)&&(d.pluralIndex=r.plural),d}function Sa(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:i}=e,[l,u,f,c]=oo(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,m=Y(f.locale)?f.locale:e.locale,h=a(e,s,m);if(!Y(l)||l==="")return new Intl.DateTimeFormat(m,c).format(u);let E={},b,S=null;const k="datetime format";for(let y=0;y{Mc.includes(l)?a[l]=n[l]:o[l]=n[l]}),Y(r)?o.locale=r:_e(r)&&(a=r),_e(s)&&(a=s),[o.key||"",i,o,a]}function Oa(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__datetimeFormatters.has(o)||r.__datetimeFormatters.delete(o)}}function za(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:i}=e,[l,u,f,c]=io(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,m=Y(f.locale)?f.locale:e.locale,h=a(e,s,m);if(!Y(l)||l==="")return new Intl.NumberFormat(m,c).format(u);let E={},b,S=null;const k="number format";for(let y=0;y{$c.includes(l)?a[l]=n[l]:o[l]=n[l]}),Y(r)?o.locale=r:_e(r)&&(a=r),_e(s)&&(a=s),[o.key||"",i,o,a]}function Pa(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__numberFormatters.has(o)||r.__numberFormatters.delete(o)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ho().__INTLIFY_PROD_DEVTOOLS__=!1);const nv="9.2.2";function rv(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ho().__INTLIFY_PROD_DEVTOOLS__=!1)}Bg.__EXTEND_POINT__;let Nc=Tc.__EXTEND_POINT__;const Ge=()=>++Nc,st={UNEXPECTED_RETURN_TYPE:Nc,INVALID_ARGUMENT:Ge(),MUST_BE_CALL_SETUP_TOP:Ge(),NOT_INSLALLED:Ge(),NOT_AVAILABLE_IN_LEGACY_MODE:Ge(),REQUIRED_VALUE:Ge(),INVALID_VALUE:Ge(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ge(),NOT_INSLALLED_WITH_PROVIDE:Ge(),UNEXPECTED_ERROR:Ge(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ge(),BRIDGE_SUPPORT_VUE_2_ONLY:Ge(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ge(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ge(),__EXTEND_POINT__:Ge()};function ut(e,...t){return kc(e,null,void 0)}const ao=Gt("__transrateVNode"),lo=Gt("__datetimeParts"),co=Gt("__numberParts"),sv=Gt("__setPluralRules");Gt("__intlifyMeta");const ov=Gt("__injectWithOption");function uo(e){if(!Oe(e))return e;for(const t in e)if(!!Wo(e,t))if(!t.includes("."))Oe(e[t])&&uo(e[t]);else{const n=t.split("."),r=n.length-1;let s=e;for(let o=0;o{if("locale"in i&&"resource"in i){const{locale:l,resource:u}=i;l?(a[l]=a[l]||{},ir(u,a[l])):ir(u,a)}else Y(i)&&ir(JSON.parse(i),a)}),s==null&&o)for(const i in a)Wo(a,i)&&uo(a[i]);return a}const Lr=e=>!Oe(e)||Ne(e);function ir(e,t){if(Lr(e)||Lr(t))throw ut(st.INVALID_VALUE);for(const n in e)Wo(e,n)&&(Lr(e[n])||Lr(t[n])?t[n]=e[n]:ir(e[n],t[n]))}function Dc(e){return e.type}function iv(e,t,n){let r=Oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Fc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Oe(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Oe(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Ca(e){return V(gr,null,e,0)}const Ia="__INTLIFY_META__";let Aa=0;function La(e){return(t,n,r,s)=>e(n,r,Vn()||void 0,s)}const av=()=>{const e=Vn();let t=null;return e&&(t=Dc(e)[Ia])?{[Ia]:t}:null};function Bc(e={},t){const{__root:n}=e,r=n===void 0;let s=Me(e.inheritLocale)?e.inheritLocale:!0;const o=Z(n&&s?n.locale.value:Y(e.locale)?e.locale:Yo),a=Z(n&&s?n.fallbackLocale.value:Y(e.fallbackLocale)||Ne(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),i=Z(Fc(o.value,e)),l=Z(_e(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),u=Z(_e(e.numberFormats)?e.numberFormats:{[o.value]:{}});let f=n?n.missingWarn:Me(e.missingWarn)||Zr(e.missingWarn)?e.missingWarn:!0,c=n?n.fallbackWarn:Me(e.fallbackWarn)||Zr(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:Me(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,m=Ue(e.missing)?e.missing:null,h=Ue(e.missing)?La(e.missing):null,E=Ue(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const k=n?n.modifiers:_e(e.modifiers)?e.modifiers:{};let O=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&Ea(null);const T={version:nv,locale:o.value,fallbackLocale:a.value,messages:i.value,modifiers:k,pluralRules:O,missing:h===null?void 0:h,missingWarn:f,fallbackWarn:c,fallbackFormat:p,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:b,escapeParameter:S,messageResolver:e.messageResolver,__meta:{framework:"vue"}};T.datetimeFormats=l.value,T.numberFormats=u.value,T.__datetimeFormatters=_e(w)?w.__datetimeFormatters:void 0,T.__numberFormatters=_e(w)?w.__numberFormatters:void 0;const z=Gg(T);return r&&Ea(z),z})(),Qn(w,o.value,a.value);function v(){return[o.value,a.value,i.value,l.value,u.value]}const x=Le({get:()=>o.value,set:T=>{o.value=T,w.locale=o.value}}),R=Le({get:()=>a.value,set:T=>{a.value=T,w.fallbackLocale=a.value,Qn(w,o.value,T)}}),H=Le(()=>i.value),G=Le(()=>l.value),U=Le(()=>u.value);function ce(){return Ue(E)?E:null}function Ee(T){E=T,w.postTranslation=T}function ze(){return m}function xe(T){T!==null&&(h=La(T)),m=T,w.missing=h}const te=(T,z,W,Q,oe,ve)=>{v();let de;if(__INTLIFY_PROD_DEVTOOLS__)try{wa(av()),r||(w.fallbackContext=n?Xg():void 0),de=T(w)}finally{wa(null),r||(w.fallbackContext=void 0)}else de=T(w);if(je(de)&&de===vs){const[Ae,ot]=z();return n&&d?Q(n):oe(Ae)}else{if(ve(de))return de;throw ut(st.UNEXPECTED_RETURN_TYPE)}};function ae(...T){return te(z=>Reflect.apply(ka,null,[z,...T]),()=>so(...T),"translate",z=>Reflect.apply(z.t,z,[...T]),z=>z,z=>Y(z))}function Ze(...T){const[z,W,Q]=T;if(Q&&!Oe(Q))throw ut(st.INVALID_ARGUMENT);return ae(z,W,Xe({resolvedMessage:!0},Q||{}))}function kt(...T){return te(z=>Reflect.apply(Sa,null,[z,...T]),()=>oo(...T),"datetime format",z=>Reflect.apply(z.d,z,[...T]),()=>va,z=>Y(z))}function et(...T){return te(z=>Reflect.apply(za,null,[z,...T]),()=>io(...T),"number format",z=>Reflect.apply(z.n,z,[...T]),()=>va,z=>Y(z))}function We(T){return T.map(z=>Y(z)||je(z)||Me(z)?Ca(String(z)):z)}const yn={normalize:We,interpolate:T=>T,type:"vnode"};function A(...T){return te(z=>{let W;const Q=z;try{Q.processor=yn,W=Reflect.apply(ka,null,[Q,...T])}finally{Q.processor=null}return W},()=>so(...T),"translate",z=>z[ao](...T),z=>[Ca(z)],z=>Ne(z))}function q(...T){return te(z=>Reflect.apply(za,null,[z,...T]),()=>io(...T),"number format",z=>z[co](...T),()=>[],z=>Y(z)||Ne(z))}function B(...T){return te(z=>Reflect.apply(Sa,null,[z,...T]),()=>oo(...T),"datetime format",z=>z[lo](...T),()=>[],z=>Y(z)||Ne(z))}function X(T){O=T,w.pluralRules=O}function fe(T,z){const W=Y(z)?z:o.value,Q=_(W);return w.messageResolver(Q,T)!==null}function Pe(T){let z=null;const W=Oc(w,a.value,o.value);for(let Q=0;Q{s&&(o.value=T,w.locale=T,Qn(w,o.value,a.value))}),Ye(n.fallbackLocale,T=>{s&&(a.value=T,w.fallbackLocale=T,Qn(w,o.value,a.value))}));const I={id:Aa,locale:x,fallbackLocale:R,get inheritLocale(){return s},set inheritLocale(T){s=T,T&&n&&(o.value=n.locale.value,a.value=n.fallbackLocale.value,Qn(w,o.value,a.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:H,get modifiers(){return k},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(T){f=T,w.missingWarn=f},get fallbackWarn(){return c},set fallbackWarn(T){c=T,w.fallbackWarn=c},get fallbackRoot(){return d},set fallbackRoot(T){d=T},get fallbackFormat(){return p},set fallbackFormat(T){p=T,w.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(T){b=T,w.warnHtmlMessage=T},get escapeParameter(){return S},set escapeParameter(T){S=T,w.escapeParameter=T},t:ae,getLocaleMessage:_,setLocaleMessage:g,mergeLocaleMessage:P,getPostTranslationHandler:ce,setPostTranslationHandler:Ee,getMissingHandler:ze,setMissingHandler:xe,[sv]:X};return I.datetimeFormats=G,I.numberFormats=U,I.rt=Ze,I.te=fe,I.tm=se,I.d=kt,I.n=et,I.getDateTimeFormat=C,I.setDateTimeFormat=M,I.mergeDateTimeFormat=F,I.getNumberFormat=j,I.setNumberFormat=N,I.mergeNumberFormat=D,I[ov]=e.__injectWithOption,I[ao]=A,I[lo]=B,I[co]=q,I}const Xo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function lv({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>r=[...r,...Ne(s.children)?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function jc(e){return we}const Ra={name:"i18n-t",props:Xe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>je(e)||!isNaN(e)}},Xo),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Go({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(c=>c!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Y(e.plural)?+e.plural:e.plural);const i=lv(t,o),l=s[ao](e.keypath,i,a),u=Xe({},r),f=Y(e.tag)||Oe(e.tag)?e.tag:jc();return br(f,u,l)}}};function cv(e){return Ne(e)&&!Y(e[0])}function Vc(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const a={part:!0};let i={};e.locale&&(a.locale=e.locale),Y(e.format)?a.key=e.format:Oe(e.format)&&(Y(e.format.key)&&(a.key=e.format.key),i=Object.keys(e.format).reduce((d,p)=>n.includes(p)?Xe({},d,{[p]:e.format[p]}):d,{}));const l=r(e.value,a,i);let u=[a.key];Ne(l)?u=l.map((d,p)=>{const m=s[d.type],h=m?m({[d.type]:d.value,index:p,parts:l}):[d.value];return cv(h)&&(h[0].key=`${d.type}-${p}`),h}):Y(l)&&(u=[l]);const f=Xe({},o),c=Y(e.tag)||Oe(e.tag)?e.tag:jc();return br(c,f,u)}}const Ma={name:"i18n-n",props:Xe({value:{type:Number,required:!0},format:{type:[String,Object]}},Xo),setup(e,t){const n=e.i18n||Go({useScope:"parent",__useComponent:!0});return Vc(e,t,$c,(...r)=>n[co](...r))}},$a={name:"i18n-d",props:Xe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xo),setup(e,t){const n=e.i18n||Go({useScope:"parent",__useComponent:!0});return Vc(e,t,Mc,(...r)=>n[lo](...r))}};function uv(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function fv(e){const t=a=>{const{instance:i,modifiers:l,value:u}=a;if(!i||!i.$)throw ut(st.UNEXPECTED_ERROR);const f=uv(e,i.$),c=Na(u);return[Reflect.apply(f.t,f,[...Fa(c)]),f]};return{created:(a,i)=>{const[l,u]=t(i);ro&&e.global===u&&(a.__i18nWatcher=Ye(u.locale,()=>{i.instance&&i.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{ro&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:i})=>{if(a.__composer){const l=a.__composer,u=Na(i);a.textContent=Reflect.apply(l.t,l,[...Fa(u)])}},getSSRProps:a=>{const[i]=t(a);return{textContent:i}}}}function Na(e){if(Y(e))return{path:e};if(_e(e)){if(!("path"in e))throw ut(st.REQUIRED_VALUE,"path");return e}else throw ut(st.INVALID_VALUE)}function Fa(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,a={},i=r||{};return Y(n)&&(a.locale=n),je(s)&&(a.plural=s),je(o)&&(a.plural=o),[t,i,a]}function dv(e,t,...n){const r=_e(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Me(r.globalInstall)?r.globalInstall:!0)&&(e.component(s?"i18n":Ra.name,Ra),e.component(Ma.name,Ma),e.component($a.name,$a)),e.directive("t",fv(t))}const pv=Gt("global-vue-i18n");function hv(e={},t){const n=Me(e.globalInjection)?e.globalInjection:!0,r=!0,s=new Map,[o,a]=mv(e),i=Gt("");function l(c){return s.get(c)||null}function u(c,d){s.set(c,d)}function f(c){s.delete(c)}{const c={get mode(){return"composition"},get allowComposition(){return r},async install(d,...p){d.__VUE_I18N_SYMBOL__=i,d.provide(d.__VUE_I18N_SYMBOL__,c),n&&xv(d,c.global),dv(d,c,...p);const m=d.unmount;d.unmount=()=>{c.dispose(),m()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:f};return c}}function Go(e={}){const t=Vn();if(t==null)throw ut(st.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ut(st.NOT_INSLALLED);const n=_v(t),r=gv(n),s=Dc(t),o=yv(e,s);if(o==="global")return iv(r,e,s),r;if(o==="parent"){let l=vv(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let i=a.__getInstance(t);if(i==null){const l=Xe({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),i=Bc(l),bv(a,t),a.__setInstance(t,i)}return i}function mv(e,t,n){const r=To();{const s=r.run(()=>Bc(e));if(s==null)throw ut(st.UNEXPECTED_ERROR);return[r,s]}}function _v(e){{const t=Re(e.isCE?pv:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ut(e.isCE?st.NOT_INSLALLED_WITH_PROVIDE:st.UNEXPECTED_ERROR);return t}}function yv(e,t){return gs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function gv(e){return e.mode==="composition"?e.global:e.global.__composer}function vv(e,t,n=!1){let r=null;const s=t.root;let o=t.parent;for(;o!=null;){const a=e;if(e.mode==="composition"&&(r=a.__getInstance(o)),r!=null||s===o)break;o=o.parent}return r}function bv(e,t,n){Rt(()=>{},t),Xt(()=>{e.__deleteInstance(t)},t)}const wv=["locale","fallbackLocale","availableLocales"],Ev=["t","rt","d","n","tm"];function xv(e,t){const n=Object.create(null);wv.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s)throw ut(st.UNEXPECTED_ERROR);const o=Ie(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,Ev.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw ut(st.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)})}Kg(Og);Yg(Oc);rv();if(__INTLIFY_PROD_DEVTOOLS__){const e=Ho();e.__INTLIFY__=!0,$g(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Tt=Object.create(null);Tt.open="0";Tt.close="1";Tt.ping="2";Tt.pong="3";Tt.message="4";Tt.upgrade="5";Tt.noop="6";const jr=Object.create(null);Object.keys(Tt).forEach(e=>{jr[Tt[e]]=e});const Tv={type:"error",data:"parser error"},kv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Sv=typeof ArrayBuffer=="function",Ov=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Uc=({type:e,data:t},n,r)=>kv&&t instanceof Blob?n?r(t):Da(t,r):Sv&&(t instanceof ArrayBuffer||Ov(t))?n?r(t):Da(new Blob([t]),r):r(Tt[e]+(t||"")),Da=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,s=0,o,a,i,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r>4,f[s++]=(a&15)<<4|i>>2,f[s++]=(i&3)<<6|l&63;return u},Pv=typeof ArrayBuffer=="function",qc=(e,t)=>{if(typeof e!="string")return{type:"message",data:Hc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Cv(e.substring(1),t)}:jr[n]?e.length>1?{type:jr[n],data:e.substring(1)}:{type:jr[n]}:Tv},Cv=(e,t)=>{if(Pv){const n=zv(e);return Hc(n,t)}else return{base64:!0,data:e}},Hc=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Wc=String.fromCharCode(30),Iv=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((o,a)=>{Uc(o,!1,i=>{r[a]=i,++s===n&&t(r.join(Wc))})})},Av=(e,t)=>{const n=e.split(Wc),r=[];for(let s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Yc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Rv=setTimeout,Mv=clearTimeout;function bs(e,t){t.useNativeTimers?(e.setTimeoutFn=Rv.bind(Ut),e.clearTimeoutFn=Mv.bind(Ut)):(e.setTimeoutFn=setTimeout.bind(Ut),e.clearTimeoutFn=clearTimeout.bind(Ut))}const $v=1.33;function Nv(e){return typeof e=="string"?Fv(e):Math.ceil((e.byteLength||e.size)*$v)}function Fv(e){let t=0,n=0;for(let r=0,s=e.length;r=57344?n+=3:(r++,n+=4);return n}class Dv extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Qc extends Fe{constructor(t){super(),this.writable=!1,bs(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Dv(t,n,r)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=qc(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const Xc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),fo=64,Bv={};let ja=0,Rr=0,Va;function Ua(e){let t="";do t=Xc[e%fo]+t,e=Math.floor(e/fo);while(e>0);return t}function Gc(){const e=Ua(+new Date);return e!==Va?(ja=0,Va=e):e+"."+Ua(ja++)}for(;Rr{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Av(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Iv(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Gc()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const s=Jc(t),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Et(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(s,o)=>{this.onError("xhr post error",s,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Et extends Fe{constructor(t,n){super(),bs(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=Yc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new eu(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Et.requestsCount++,Et.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Uv,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Et.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Et.requestsCount=0;Et.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",qa);else if(typeof addEventListener=="function"){const e="onpagehide"in Ut?"pagehide":"unload";addEventListener(e,qa,!1)}}function qa(){for(let e in Et.requests)Et.requests.hasOwnProperty(e)&&Et.requests[e].abort()}const tu=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Mr=Ut.WebSocket||Ut.MozWebSocket,Ha=!0,Wv="arraybuffer",Wa=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kv extends Qc{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Wa?{}:Yc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Ha&&!Wa?n?new Mr(t,n):new Mr(t):new Mr(t,n,r)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||Wv,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{Ha&&this.ws.send(o)}catch{}s&&tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Gc()),this.supportsBinary||(t.b64=1);const s=Jc(t),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}check(){return!!Mr}}const Yv={websocket:Kv,polling:Hv},Qv=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Xv=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function po(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let s=Qv.exec(e||""),o={},a=14;for(;a--;)o[Xv[a]]=s[a]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Gv(o,o.path),o.queryKey=Jv(o,o.query),o}function Gv(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Jv(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,o){s&&(n[s]=o)}),n}let un=class extends Fe{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=po(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=po(n.host).host),bs(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=jv(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Kc,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Yv[t](r)}open(){let t;if(this.opts.rememberUpgrade&&un.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;un.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",c=>{if(!r)if(c.type==="pong"&&c.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;un.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const a=c=>{const d=new Error("probe error: "+c);d.transport=n.name,o(),this.emitReserved("upgradeError",d)};function i(){a("transport closed")}function l(){a("socket closed")}function u(c){n&&c.name!==n.name&&o()}const f=()=>{n.removeListener("open",s),n.removeListener("error",a),n.removeListener("close",i),this.off("close",l),this.off("upgrading",u)};n.once("open",s),n.once("error",a),n.once("close",i),this.once("close",l),this.once("upgrading",u),n.open()}onOpen(){if(this.readyState="open",un.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){un.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const s=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,nu=Object.prototype.toString,n0=typeof Blob=="function"||typeof Blob<"u"&&nu.call(Blob)==="[object BlobConstructor]",r0=typeof File=="function"||typeof File<"u"&&nu.call(File)==="[object FileConstructor]";function Jo(e){return e0&&(e instanceof ArrayBuffer||t0(e))||n0&&e instanceof Blob||r0&&e instanceof File}function Vr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case he.ACK:case he.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class l0{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=o0(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const c0=Object.freeze(Object.defineProperty({__proto__:null,protocol:i0,get PacketType(){return he},Encoder:a0,Decoder:Zo},Symbol.toStringTag,{value:"Module"}));function ft(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const u0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ru extends Fe{constructor(t,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[ft(t,"open",this.onopen.bind(this)),ft(t,"packet",this.onpacket.bind(this)),ft(t,"error",this.onerror.bind(this)),ft(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(u0.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:he.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const a=this.ids++,i=n.pop();this._registerAckCallback(a,i),r.id=a}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){const r=this.flags.timeout;if(r===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(s),n.apply(this,[null,...o])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:he.CONNECT,data:t})}):this.packet({type:he.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case he.CONNECT:if(t.data&&t.data.sid){const s=t.data.sid;this.onconnect(s)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case he.EVENT:case he.BINARY_EVENT:this.onevent(t);break;case he.ACK:case he.BINARY_ACK:this.onack(t);break;case he.DISCONNECT:this.ondisconnect();break;case he.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:he.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:he.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Un.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Un.prototype.reset=function(){this.attempts=0};Un.prototype.setMin=function(e){this.ms=e};Un.prototype.setMax=function(e){this.max=e};Un.prototype.setJitter=function(e){this.jitter=e};class _o extends Fe{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,bs(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Un({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||c0;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new un(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=ft(n,"open",function(){r.onopen(),t&&t()}),o=ft(n,"error",a=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",a),t?t(a):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const a=this._timeout;a===0&&s();const i=this.setTimeoutFn(()=>{s(),n.close(),n.emit("error",new Error("timeout"))},a);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}return this.subs.push(s),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(ft(t,"ping",this.onping.bind(this)),ft(t,"data",this.ondata.bind(this)),ft(t,"error",this.onerror.bind(this)),ft(t,"close",this.onclose.bind(this)),ft(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){tu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new ru(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Xn={};function Ur(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Zv(e,t.path||"/socket.io"),r=n.source,s=n.id,o=n.path,a=Xn[s]&&o in Xn[s].nsps,i=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return i?l=new _o(r,t):(Xn[s]||(Xn[s]=new _o(r,t)),l=Xn[s]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ur,{Manager:_o,Socket:ru,io:Ur,connect:Ur});const f0={"en-US":{language:e=>{const{normalize:t}=e;return t(["Language"])},language_name:e=>{const{normalize:t}=e;return t(["English (US)"])},nav:{library:e=>{const{normalize:t}=e;return t(["Library"])},search:e=>{const{normalize:t}=e;return t(["Search"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},folders:e=>{const{normalize:t}=e;return t(["Folders"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},songs:e=>{const{normalize:t}=e;return t(["Songs"])}},songs:e=>{const{normalize:t,interpolate:n,named:r,plural:s}=e;return s([t(["no songs"]),t(["1 song"]),t([n(r("count"))," songs"])])},waitForPlay:e=>{const{normalize:t}=e;return t(["No songs in queue"])},login:e=>{const{normalize:t}=e;return t(["Login"])},username:e=>{const{normalize:t}=e;return t(["Username"])},password:e=>{const{normalize:t}=e;return t(["Password"])},close:e=>{const{normalize:t}=e;return t(["Close"])},save:e=>{const{normalize:t}=e;return t(["Save"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},404:{title:e=>{const{normalize:t}=e;return t(["Page not found"])},description:e=>{const{normalize:t}=e;return t(["This page may have been removed or does not exist."])}},source:{Netease2:e=>{const{normalize:t}=e;return t(["Netease"])},poka:e=>{const{normalize:t}=e;return t(["Poka"])},DSM:e=>{const{normalize:t}=e;return t(["DSM"])},QQMusic:e=>{const{normalize:t}=e;return t(["QQ Music"])},YouTube:e=>{const{normalize:t}=e;return t(["YouTube"])}},home:{home_pins:e=>{const{normalize:t}=e;return t(["Pins"])},home_recentAlbums:e=>{const{normalize:t}=e;return t(["Recent Albums"])},home_hqPlaylist_netease:e=>{const{normalize:t}=e;return t(["High Quality Playlist"])},home_topPlaylist_netease:e=>{const{normalize:t}=e;return t(["Top Playlist"])},home_dailyRecommend_netease:e=>{const{normalize:t}=e;return t(["Daily Recommend"])},home_netease:e=>{const{normalize:t}=e;return t(["Netease"])}},album:{playAll:e=>{const{normalize:t}=e;return t(["Play"])},playAllShuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},pin:{pin:e=>{const{normalize:t}=e;return t(["Pin"])},unpin:e=>{const{normalize:t}=e;return t(["Unpin"])},loading:e=>{const{normalize:t}=e;return t(["Loading"])}},lyric:{isLyricCorrect:{title:e=>{const{normalize:t}=e;return t(["Is the current lyric correct?"])},description:e=>{const{normalize:t}=e;return t(['Click "Correct" to save the current lyric to the database, and the current lyric will be loaded next time you listen to this song.'])},correct:e=>{const{normalize:t}=e;return t(["Correct"])},search:e=>{const{normalize:t}=e;return t(["Search other lyrics"])}},currentLyricSource:{saved:{title:e=>{const{normalize:t}=e;return t(["The current lyric comes from the saved lyric"])},description:e=>{const{normalize:t}=e;return t(["To search for lyrics, please enter a keyword in the box above and click the search button"])}}}},settings:{quality:{title:e=>{const{normalize:t}=e;return t(["Quality"])},description:e=>{const{normalize:t}=e;return t(["Set the quality of the music"])},low:{title:e=>{const{normalize:t}=e;return t(["Low quality"])},description:e=>{const{normalize:t}=e;return t(["128K, similar to YouTube, can stream in poor network conditions"])}},medium:{title:e=>{const{normalize:t}=e;return t(["Medium quality"])},description:e=>{const{normalize:t}=e;return t(["Quality is better than YouTube only a little, can stream be in 3G network"])}},high:{title:e=>{const{normalize:t}=e;return t(["High quality"])},description:e=>{const{normalize:t}=e;return t(["High quality music, the quality is relatively high, but the file size is relatively large"])}},original:{title:e=>{const{normalize:t}=e;return t(["Original quality"])},description:e=>{const{normalize:t}=e;return t(["Original quality music, the quality is the best, but the file size is the largest"])}}},theme:{title:e=>{const{normalize:t}=e;return t(["Theme"])},description:e=>{const{normalize:t}=e;return t(["Set the color and attributes of the interface"])},themeAndColor:e=>{const{normalize:t}=e;return t(["Theme and Color"])},default:e=>{const{normalize:t}=e;return t(["Default"])},preview:e=>{const{normalize:t}=e;return t(["Preview"])},custom:e=>{const{normalize:t}=e;return t(["Custom"])},color:e=>{const{normalize:t}=e;return t(["Color"])},textColor:e=>{const{normalize:t}=e;return t(["Text Color"])},style:e=>{const{normalize:t}=e;return t(["Style"])},cardWidth:e=>{const{normalize:t}=e;return t(["Card Width"])},borderRadius:e=>{const{normalize:t}=e;return t(["Border Radius"])},padding:e=>{const{normalize:t}=e;return t(["Padding"])}},pins:{title:e=>{const{normalize:t}=e;return t(["Pins"])},description:e=>{const{normalize:t}=e;return t(["Manage pinned items"])},intro:e=>{const{normalize:t}=e;return t(["Click the trash can icon to remove pinned items"])}},user:{title:e=>{const{normalize:t}=e;return t(["User"])},description:e=>{const{normalize:t}=e;return t(["Change password, modify username or name"])},name:e=>{const{normalize:t}=e;return t(["Name"])},username:e=>{const{normalize:t}=e;return t(["Username"])},id:e=>{const{normalize:t}=e;return t(["ID"])},password:e=>{const{normalize:t}=e;return t(["Password"])},role:e=>{const{normalize:t}=e;return t(["Role"])},createTime:e=>{const{normalize:t}=e;return t(["Create Time"])},edit:e=>{const{normalize:t}=e;return t(["Edit"])},changePassword:e=>{const{normalize:t}=e;return t(["Change Password"])},oldPassword:e=>{const{normalize:t}=e;return t(["Old Password"])},newPassword:e=>{const{normalize:t}=e;return t(["New Password"])},confirmPassword:e=>{const{normalize:t}=e;return t(["Confirm Password"])}},system:{title:e=>{const{normalize:t}=e;return t(["System"])},description:e=>{const{normalize:t}=e;return t(["Modify configuration, update or restart system"])}},users:{title:e=>{const{normalize:t}=e;return t(["Users"])},description:e=>{const{normalize:t}=e;return t(["View, add, modify or delete users"])}},log:{title:e=>{const{normalize:t}=e;return t(["Log"])},description:e=>{const{normalize:t}=e;return t(["View system log, usually error messages will be displayed here"])}}},songDialog:{addToPlaylist:e=>{const{normalize:t}=e;return t(["Add to playlist"])},source:e=>{const{normalize:t}=e;return t(["Source"])},id:e=>{const{normalize:t}=e;return t(["ID"])},year:e=>{const{normalize:t}=e;return t(["Year"])},codec:e=>{const{normalize:t}=e;return t(["Codec"])}}},"zh-CN":{language:e=>{const{normalize:t}=e;return t(["语言"])},language_name:e=>{const{normalize:t}=e;return t(["简体中文(中国)"])},nav:{library:e=>{const{normalize:t}=e;return t(["媒体库"])},search:e=>{const{normalize:t}=e;return t(["搜索"])},albums:e=>{const{normalize:t}=e;return t(["专辑"])},artists:e=>{const{normalize:t}=e;return t(["艺术家"])},composers:e=>{const{normalize:t}=e;return t(["作曲家"])},playlists:e=>{const{normalize:t}=e;return t(["播放列表"])},folders:e=>{const{normalize:t}=e;return t(["文件夹"])},settings:e=>{const{normalize:t}=e;return t(["设置"])},songs:e=>{const{normalize:t}=e;return t(["歌曲"])}},songs:e=>{const{normalize:t,interpolate:n,named:r,plural:s}=e;return s([t(["没有歌曲"]),t(["1 首歌曲"]),t([n(r("count"))," 首歌曲"])])},waitForPlay:e=>{const{normalize:t}=e;return t(["队列中未有歌曲"])},login:e=>{const{normalize:t}=e;return t(["登录"])},username:e=>{const{normalize:t}=e;return t(["用户名"])},password:e=>{const{normalize:t}=e;return t(["密码"])},close:e=>{const{normalize:t}=e;return t(["关闭"])},save:e=>{const{normalize:t}=e;return t(["储存"])},cancel:e=>{const{normalize:t}=e;return t(["取消"])},404:{title:e=>{const{normalize:t}=e;return t(["找不到页面"])},description:e=>{const{normalize:t}=e;return t(["这个页面可能已被移除或是不存在。"])}},source:{Netease2:e=>{const{normalize:t}=e;return t(["网易云音乐"])},poka:e=>{const{normalize:t}=e;return t(["Poka"])},DSM:e=>{const{normalize:t}=e;return t(["DSM"])},QQMusic:e=>{const{normalize:t}=e;return t(["QQ 音乐"])},YouTube:e=>{const{normalize:t}=e;return t(["YouTube"])}},home:{home_pins:e=>{const{normalize:t}=e;return t(["钉选"])},home_recentAlbums:e=>{const{normalize:t}=e;return t(["最近新增的专辑"])},home_hqPlaylist_netease:e=>{const{normalize:t}=e;return t(["精品播放列表"])},home_topPlaylist_netease:e=>{const{normalize:t}=e;return t(["热门播放列表"])},home_dailyRecommend_netease:e=>{const{normalize:t}=e;return t(["每日推荐"])},home_netease:e=>{const{normalize:t}=e;return t(["网易云音乐"])}},album:{playAll:e=>{const{normalize:t}=e;return t(["全部播放"])},playAllShuffle:e=>{const{normalize:t}=e;return t(["随机播放"])}},pin:{pin:e=>{const{normalize:t}=e;return t(["钉选"])},unpin:e=>{const{normalize:t}=e;return t(["取消钉选"])},loading:e=>{const{normalize:t}=e;return t(["载入中"])}},lyric:{isLyricCorrect:{title:e=>{const{normalize:t}=e;return t(["目前的歌词正确吗?"])},description:e=>{const{normalize:t}=e;return t(["点击「正确」后,会将目前歌词储存到数据库,下次听这首歌时便会载入目前的歌词。"])},correct:e=>{const{normalize:t}=e;return t(["正确"])},search:e=>{const{normalize:t}=e;return t(["搜索其他歌词"])}},currentLyricSource:{saved:{title:e=>{const{normalize:t}=e;return t(["目前歌词来自已储存的歌词"])},description:e=>{const{normalize:t}=e;return t(["若要搜索歌词,请在上方输入关键词,并按下搜索按钮"])}}}},settings:{quality:{title:e=>{const{normalize:t}=e;return t(["音质"])},description:e=>{const{normalize:t}=e;return t(["设定音乐播放的音质"])},low:{title:e=>{const{normalize:t}=e;return t(["低"])},description:e=>{const{normalize:t}=e;return t(["低质量音质,能在网络状况不佳的环境下使用"])}},medium:{title:e=>{const{normalize:t}=e;return t(["中"])},description:e=>{const{normalize:t}=e;return t(["中质量音质,能使用较少的流量聆听音乐,但音质相对普通"])}},high:{title:e=>{const{normalize:t}=e;return t(["高"])},description:e=>{const{normalize:t}=e;return t(["高质量音质,在音质与档案大小之间取得平衡"])}},original:{title:e=>{const{normalize:t}=e;return t(["原始"])},description:e=>{const{normalize:t}=e;return t(["载入原始档案,适合在网络状况良好的环境下使用"])}}},theme:{title:e=>{const{normalize:t}=e;return t(["主题"])},description:e=>{const{normalize:t}=e;return t(["设定界面中的色彩与属性"])},themeAndColor:e=>{const{normalize:t}=e;return t(["主题与色彩"])},default:e=>{const{normalize:t}=e;return t(["默认"])},preview:e=>{const{normalize:t}=e;return t(["预览"])},custom:e=>{const{normalize:t}=e;return t(["自订"])},color:e=>{const{normalize:t}=e;return t(["色彩"])},textColor:e=>{const{normalize:t}=e;return t(["文字色彩"])},style:e=>{const{normalize:t}=e;return t(["样式"])},cardWidth:e=>{const{normalize:t}=e;return t(["卡片宽度"])},borderRadius:e=>{const{normalize:t}=e;return t(["圆角"])},padding:e=>{const{normalize:t}=e;return t(["间隙"])}},pins:{title:e=>{const{normalize:t}=e;return t(["钉选"])},description:e=>{const{normalize:t}=e;return t(["管理钉选项目"])},intro:e=>{const{normalize:t}=e;return t(["点击垃圾桶图示以移除钉选项目"])}},user:{title:e=>{const{normalize:t}=e;return t(["用户"])},description:e=>{const{normalize:t}=e;return t(["修改名称、使用者名称或密码"])},name:e=>{const{normalize:t}=e;return t(["用户名"])},username:e=>{const{normalize:t}=e;return t(["用户名"])},id:e=>{const{normalize:t}=e;return t(["ID"])},password:e=>{const{normalize:t}=e;return t(["密码"])},role:e=>{const{normalize:t}=e;return t(["角色"])},createTime:e=>{const{normalize:t}=e;return t(["创建时间"])},edit:e=>{const{normalize:t}=e;return t(["编辑"])},changePassword:e=>{const{normalize:t}=e;return t(["更改密码"])},oldPassword:e=>{const{normalize:t}=e;return t(["旧密码"])},newPassword:e=>{const{normalize:t}=e;return t(["新密码"])},confirmPassword:e=>{const{normalize:t}=e;return t(["确认密码"])}},system:{title:e=>{const{normalize:t}=e;return t(["系统"])},description:e=>{const{normalize:t}=e;return t(["修改设定档、更新或重新启动系统"])}},users:{title:e=>{const{normalize:t}=e;return t(["使用者管理"])},description:e=>{const{normalize:t}=e;return t(["查看、新增、修改或删除使用者"])}},log:{title:e=>{const{normalize:t}=e;return t(["日志"])},description:e=>{const{normalize:t}=e;return t(["查看系统日志,通常发生错误时会在此显示"])}}},songDialog:{addToPlaylist:e=>{const{normalize:t}=e;return t(["添加到播放列表"])},source:e=>{const{normalize:t}=e;return t(["来源"])},id:e=>{const{normalize:t}=e;return t(["ID"])},year:e=>{const{normalize:t}=e;return t(["年份"])},codec:e=>{const{normalize:t}=e;return t(["格式"])}}},"zh-TW":{language:e=>{const{normalize:t}=e;return t(["語言"])},language_name:e=>{const{normalize:t}=e;return t(["繁體中文(台灣)"])},nav:{library:e=>{const{normalize:t}=e;return t(["媒體庫"])},search:e=>{const{normalize:t}=e;return t(["搜尋"])},albums:e=>{const{normalize:t}=e;return t(["專輯"])},artists:e=>{const{normalize:t}=e;return t(["演出者"])},composers:e=>{const{normalize:t}=e;return t(["作曲者"])},playlists:e=>{const{normalize:t}=e;return t(["播放清單"])},folders:e=>{const{normalize:t}=e;return t(["資料夾"])},settings:e=>{const{normalize:t}=e;return t(["設定"])},songs:e=>{const{normalize:t}=e;return t(["歌曲"])}},songs:e=>{const{normalize:t,interpolate:n,named:r,plural:s}=e;return s([t(["沒有歌曲"]),t(["1 首歌曲"]),t([n(r("count"))," 首歌曲"])])},waitForPlay:e=>{const{normalize:t}=e;return t(["佇列中未有歌曲"])},login:e=>{const{normalize:t}=e;return t(["登入"])},username:e=>{const{normalize:t}=e;return t(["使用者名稱"])},password:e=>{const{normalize:t}=e;return t(["密碼"])},close:e=>{const{normalize:t}=e;return t(["關閉"])},save:e=>{const{normalize:t}=e;return t(["儲存"])},cancel:e=>{const{normalize:t}=e;return t(["取消"])},404:{title:e=>{const{normalize:t}=e;return t(["找不到頁面"])},description:e=>{const{normalize:t}=e;return t(["這個頁面可能已被移除或是不存在。"])}},source:{Netease2:e=>{const{normalize:t}=e;return t(["網易雲音樂"])},poka:e=>{const{normalize:t}=e;return t(["Poka"])},DSM:e=>{const{normalize:t}=e;return t(["DSM"])},QQMusic:e=>{const{normalize:t}=e;return t(["QQ 音樂"])},YouTube:e=>{const{normalize:t}=e;return t(["YouTube"])}},home:{home_pins:e=>{const{normalize:t}=e;return t(["釘選"])},home_recentAlbums:e=>{const{normalize:t}=e;return t(["最近新增的專輯"])},home_hqPlaylist_netease:e=>{const{normalize:t}=e;return t(["高品質播放清單"])},home_topPlaylist_netease:e=>{const{normalize:t}=e;return t(["熱門播放清單"])},home_dailyRecommend_netease:e=>{const{normalize:t}=e;return t(["每日推薦"])},home_netease:e=>{const{normalize:t}=e;return t(["網易雲音樂"])}},album:{playAll:e=>{const{normalize:t}=e;return t(["全部播放"])},playAllShuffle:e=>{const{normalize:t}=e;return t(["隨機播放"])}},pin:{pin:e=>{const{normalize:t}=e;return t(["釘選"])},unpin:e=>{const{normalize:t}=e;return t(["取消釘選"])},loading:e=>{const{normalize:t}=e;return t(["載入中"])}},lyric:{isLyricCorrect:{title:e=>{const{normalize:t}=e;return t(["目前的歌詞正確嗎?"])},description:e=>{const{normalize:t}=e;return t(["點選「正確」後,會將目前歌詞儲存到資料庫,下次聽這首歌時便會載入目前的歌詞。"])},correct:e=>{const{normalize:t}=e;return t(["正確"])},search:e=>{const{normalize:t}=e;return t(["搜尋其他歌詞"])}},currentLyricSource:{saved:{title:e=>{const{normalize:t}=e;return t(["目前歌詞來自已儲存的歌詞"])},description:e=>{const{normalize:t}=e;return t(["若要搜尋歌詞,請在上方輸入關鍵字,並按下搜尋按鈕"])}}}},settings:{quality:{title:e=>{const{normalize:t}=e;return t(["音質"])},description:e=>{const{normalize:t}=e;return t(["設定音樂播放的音質"])},low:{title:e=>{const{normalize:t}=e;return t(["低音質"])},description:e=>{const{normalize:t}=e;return t(["128K,跟 YouTube 差不多的爛音質,在網路夭壽慢的情況下請選擇此選項"])}},medium:{title:e=>{const{normalize:t}=e;return t(["中音質"])},description:e=>{const{normalize:t}=e;return t(["音質只比 YouTube 好那麼一點點,可在 3G 網路下流暢的串流"])}},high:{title:e=>{const{normalize:t}=e;return t(["高音質"])},description:e=>{const{normalize:t}=e;return t(["音質較原始音質略差,可在 4G 網路下流暢的串流"])}},original:{title:e=>{const{normalize:t}=e;return t(["原始音質"])},description:e=>{const{normalize:t}=e;return t(["在網路狀況許可下,可選擇此選項聆聽高音質音樂"])}}},theme:{title:e=>{const{normalize:t}=e;return t(["主題"])},description:e=>{const{normalize:t}=e;return t(["設定介面中的色彩與屬性"])},themeAndColor:e=>{const{normalize:t}=e;return t(["主題與色彩"])},default:e=>{const{normalize:t}=e;return t(["預設"])},preview:e=>{const{normalize:t}=e;return t(["預覽"])},custom:e=>{const{normalize:t}=e;return t(["自訂"])},color:e=>{const{normalize:t}=e;return t(["色彩"])},textColor:e=>{const{normalize:t}=e;return t(["文字色彩"])},style:e=>{const{normalize:t}=e;return t(["樣式"])},cardWidth:e=>{const{normalize:t}=e;return t(["卡片寬度"])},borderRadius:e=>{const{normalize:t}=e;return t(["圓角"])},padding:e=>{const{normalize:t}=e;return t(["間隙"])}},pins:{title:e=>{const{normalize:t}=e;return t(["釘選"])},description:e=>{const{normalize:t}=e;return t(["管理首頁釘選項目"])},intro:e=>{const{normalize:t}=e;return t(["點選垃圾桶圖示以移除釘選項目"])}},user:{title:e=>{const{normalize:t}=e;return t(["使用者"])},description:e=>{const{normalize:t}=e;return t(["修改名稱、使用者名稱或密碼"])},name:e=>{const{normalize:t}=e;return t(["名稱"])},username:e=>{const{normalize:t}=e;return t(["使用者名稱"])},id:e=>{const{normalize:t}=e;return t(["ID"])},password:e=>{const{normalize:t}=e;return t(["密碼"])},role:e=>{const{normalize:t}=e;return t(["權限"])},createTime:e=>{const{normalize:t}=e;return t(["建立時間"])},edit:e=>{const{normalize:t}=e;return t(["編輯"])},changePassword:e=>{const{normalize:t}=e;return t(["修改密碼"])},oldPassword:e=>{const{normalize:t}=e;return t(["舊密碼"])},newPassword:e=>{const{normalize:t}=e;return t(["新密碼"])},confirmPassword:e=>{const{normalize:t}=e;return t(["確認密碼"])},changeSuccess:e=>{const{normalize:t}=e;return t(["修改成功"])},changeFailed:e=>{const{normalize:t}=e;return t(["修改失敗"])}},system:{title:e=>{const{normalize:t}=e;return t(["系統"])},description:e=>{const{normalize:t}=e;return t(["修改設定檔、更新或重新啟動系統"])}},users:{title:e=>{const{normalize:t}=e;return t(["使用者管理"])},description:e=>{const{normalize:t}=e;return t(["查看、新增、修改或刪除使用者"])}},log:{title:e=>{const{normalize:t}=e;return t(["日誌"])},description:e=>{const{normalize:t}=e;return t(["查看系統日誌,通常發生錯誤時會在此顯示"])}}},songDialog:{addToPlaylist:e=>{const{normalize:t}=e;return t(["新增到播放清單"])},source:e=>{const{normalize:t}=e;return t(["來源"])},id:e=>{const{normalize:t}=e;return t(["ID"])},year:e=>{const{normalize:t}=e;return t(["年份"])},codec:e=>{const{normalize:t}=e;return t(["格式"])}}}},d0={class:"root-container"},su={__name:"App",setup(e){return(t,n)=>($(),ee("div",d0,[V(De(yc))]))}},p0=Object.freeze(Object.defineProperty({__proto__:null,default:su},Symbol.toStringTag,{value:"Module"})),h0="modulepreload",m0=function(e){return"/"+e},Ka={},ke=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=m0(o),o in Ka)return;Ka[o]=!0;const a=o.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!r)for(let f=s.length-1;f>=0;f--){const c=s[f];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${i}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":h0,a||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),a)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},_0=qm({history:lm("/"),routes:[{path:"/",name:"app",component:()=>ke(()=>Promise.resolve().then(()=>p0),void 0),children:[{path:"/",name:"default-layout",component:()=>ke(()=>import("./default-6891f3e1.js"),["assets/default-6891f3e1.js","assets/user-b8b24cf2.js","assets/default-8ab79025.css"]),children:[{path:"/",name:"Library",component:()=>ke(()=>import("./Library-471bc22c.js"),[])},{path:"/albums",name:"Albums",component:()=>ke(()=>import("./Albums-9eac24cd.js"),[]),meta:{type:"albums"}},{path:"/album/:source/:id",name:"Album",component:()=>ke(()=>import("./Album-1909473a.js"),["assets/Album-1909473a.js","assets/Album-7e10ba23.css"]),meta:{type:"album"}},{path:"/artists",name:"Artists",component:()=>ke(()=>import("./Artists-4c56b53b.js"),[]),meta:{type:"artists"}},{path:"/artist/:source/:id",name:"Artist",component:()=>ke(()=>import("./Albums-9eac24cd.js"),[]),meta:{type:"artists"}},{path:"/composers",name:"Composers",component:()=>ke(()=>import("./Artists-4c56b53b.js"),[]),meta:{type:"composers"}},{path:"/composer/:source/:id",name:"Composer",component:()=>ke(()=>import("./Albums-9eac24cd.js"),[]),meta:{type:"composers"}},{path:"/folders",name:"Folders",component:()=>ke(()=>import("./Folders-dc80bb70.js"),[])},{path:"/folder/:source/:id",name:"Folder",component:()=>ke(()=>import("./Folders-dc80bb70.js"),[])},{path:"/playlists",name:"Playlists",component:()=>ke(()=>import("./Playlists-80ca990b.js"),[])},{path:"/playlists/folder/:id",name:"PlaylistsFolder",component:()=>ke(()=>import("./Playlists-80ca990b.js"),[])},{path:"/playlist/:source/:id",name:"Playlist",component:()=>ke(()=>import("./Album-1909473a.js"),["assets/Album-1909473a.js","assets/Album-7e10ba23.css"]),meta:{type:"playlist"}},{path:"/search",name:"Search",component:()=>ke(()=>import("./Search-120adf63.js"),["assets/Search-120adf63.js","assets/Search-f3c2d4ea.css"])},{path:"/settings",name:"Settings",component:()=>ke(()=>import("./Index-fa08ca72.js"),["assets/Index-fa08ca72.js","assets/user-b8b24cf2.js"])},{path:"/settings/theme",name:"SettingsTheme",component:()=>ke(()=>import("./Theme-127d7a0b.js"),["assets/Theme-127d7a0b.js","assets/Theme-08e39d68.css"])},{path:"/settings/quality",name:"SettingsQuality",component:()=>ke(()=>import("./Quality-b3400423.js"),[])},{path:"/settings/pins",name:"SettingsPins",component:()=>ke(()=>import("./Pins-7eb471ef.js"),[])},{path:"/settings/user",name:"SettingsUser",component:()=>ke(()=>import("./User-69dafa56.js"),["assets/User-69dafa56.js","assets/user-b8b24cf2.js"])},{path:"/settings/users",name:"SettingsUsers",component:()=>ke(()=>import("./Users-b042d73f.js"),[])},{path:"/settings/log",name:"SettingsLog",component:()=>ke(()=>import("./Log-c923a30d.js"),["assets/Log-c923a30d.js","assets/Log-c9db7119.css"])},{path:"/settings/System",name:"SettingsSystem",component:()=>ke(()=>import("./System-2c260885.js"),[])},{path:"/:pathMatch(.*)*",name:"404",component:()=>ke(()=>import("./404-0d70ea11.js"),[])}]},{path:"/empty",name:"empty-layout",component:()=>ke(()=>import("./empty-2822923d.js"),[]),children:[{path:"/login",name:"Login",component:()=>ke(()=>import("./Login-0dbf0b54.js"),["assets/Login-0dbf0b54.js","assets/Login-65f28d2c.css"])}]}]}]});var On,zn,ue,pe;class y0{constructor(){en(this,ue);en(this,On,localStorage.getItem("username")||"");en(this,zn,localStorage.getItem("password")||"")}async login(t,n){Es(this,On,t),Es(this,zn,n),await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/logout/"});let r=await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/login/",method:"POST",body:{username:Hn(this,On),password:Hn(this,zn)}});return r.success&&(localStorage.setItem("username",Hn(this,On)),localStorage.setItem("password",Hn(this,zn))),r}async getUserInfo(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/"})}async getSystemInfo(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/info/"})}async getAlbums(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/albums/"})}async getAlbum(t,n){return t=encodeURIComponent(t),n=encodeURIComponent(n),await ie(this,ue,pe).call(this,{url:`/pokaapi/album?moduleName=${t}&id=${n}`})}async getArtists(){return(await ie(this,ue,pe).call(this,{url:"/pokaapi/artists/"})).artists}async getComposers(){return(await ie(this,ue,pe).call(this,{url:"/pokaapi/composers/"})).composers}async getArtistAlbums(t,n,r){t=encodeURIComponent(t),n=encodeURIComponent(n),r=encodeURIComponent(r);let s;return n==="artists"?s=`/pokaapi/artistAlbums/?moduleName=${t}&id=${r}`:s=`/pokaapi/composerAlbums/?moduleName=${t}&id=${r}`,await ie(this,ue,pe).call(this,{url:s})}async getArtistInfo(t,n,r){t=encodeURIComponent(t),n=encodeURIComponent(n),r=encodeURIComponent(r);let s=`/pokaapi/${n}/?moduleName=${t}&id=${r}`;return await ie(this,ue,pe).call(this,{url:s})}async getFolders(t,n){let r="/pokaapi/folders/";return t&&n&&(t=encodeURIComponent(t),n=encodeURIComponent(n),r=`/pokaapi/folderFiles/?moduleName=${t}&id=${n}`),await ie(this,ue,pe).call(this,{url:r})}async getPlaylists(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/playlists/"})}async getPlaylist(t,n){return t=encodeURIComponent(t),n=encodeURIComponent(n),await ie(this,ue,pe).call(this,{url:`/pokaapi/playlistSongs/?moduleName=${t}&id=${n}`})}async getHome(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/home/"})}async getLyric(t,n){return await ie(this,ue,pe).call(this,{url:`/pokaapi/lyric/?moduleName=${t}&id=${n}`})}async getLyricByKeyword(t){return await ie(this,ue,pe).call(this,{url:`/pokaapi/searchLyrics/?keyword=${t}`})}async saveLyric({title:t,artist:n,songId:r,source:s,lyric:o}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/lyric",method:"POST",body:{title:t,artist:n,songId:r,source:s,lyric:o}})}async search(t){return await ie(this,ue,pe).call(this,{url:`/pokaapi/search/?keyword=${t}`})}async getPinStatus({source:t,id:n,name:r,type:s}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/ispinned",method:"POST",body:{source:t,id:n,name:r,type:s}})}async getPins(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/pins",method:"POST"})}async pin({source:t,id:n,name:r,cover:s,type:o,artist:a}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/pin",method:"POST",body:{source:t,id:n,name:r,type:o,cover:s,artist:a}})}async unpin({source:t,id:n,name:r,cover:s,type:o,artist:a}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/unpin",method:"POST",body:{source:t,id:n,name:r,type:o,cover:s,artist:a}})}async checkSongExistInPlaylist(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/playlist/song/exist",method:"POST",body:t})}async toggleSongInPlaylist(t,n){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/playlist/song",method:"POST",body:{song:t,playlistId:n}})}async changeUserName(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/name",method:"POST",body:{n:t}})}async changeUserUsername(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/username",method:"POST",body:{n:t}})}async changeUserPassword(t,n){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/password",method:"POST",body:{oldpassword:t,password:n}})}async getUserList(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/list"})}async createUser({username:t,password:n,name:r,role:s}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/create",method:"POST",body:{username:t,password:n,name:r,role:s}})}async changeUserPasswordById(t,n){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/change-password",method:"POST",body:{_id:t,password:n}})}async deleteUser(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/delete",method:"POST",body:{_id:t}})}async getLog(t=0){return await ie(this,ue,pe).call(this,{url:`/pokaapi/v2/log?page=${t}`})}async addSongRecord(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/record/add",method:"POST",body:t})}}On=new WeakMap,zn=new WeakMap,ue=new WeakSet,pe=async function({url:t,method:n="GET",body:r={},params:s={}}){return fetch(t,{method:n,credentials:"same-origin",body:n==="GET"?void 0:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then(o=>o.json())};function g0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yo={},v0={get exports(){return yo},set exports(e){yo=e}};(function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function s(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=n,s.c=r,s.d=function(o,a,i){s.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:i})},s.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},s.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(a,"a",a),a},s.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},s.p="/",s(s.s=41)}([function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(i){var l=Math.floor(i/3600),u=Math.floor((i-3600*l)/60),f=Math.floor(i-3600*l-60*u);return(l>0?[l,u,f]:[u,f]).map(function(c){return c<10?"0"+c:""+c}).join(":")},getElementViewLeft:function(i){var l=i.offsetLeft,u=i.offsetParent,f=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;u!==null&&u!==i;)l+=u.offsetLeft,u=u.offsetParent;else for(;u!==null;)l+=u.offsetLeft,u=u.offsetParent;return l-f},getElementViewTop:function(i,l){for(var u,f=i.offsetTop,c=i.offsetParent;c!==null;)f+=c.offsetTop,c=c.offsetParent;return u=document.body.scrollTop+document.documentElement.scrollTop,l?f:f-u},isMobile:o,storage:{set:function(i,l){localStorage.setItem(i,l)},get:function(i){return localStorage.getItem(i)}},nameMap:{dragStart:o?"touchstart":"mousedown",dragMove:o?"touchmove":"mousemove",dragEnd:o?"touchend":"mouseup"},randomOrder:function(i){return function(l){for(var u=l.length-1;u>=0;u--){var f=Math.floor(Math.random()*(u+1)),c=l[f];l[f]=l[u],l[u]=c}return l}([].concat(function(l){if(Array.isArray(l)){for(var u=0,f=Array(l.length);u{clearInterval(b)}),(v,x)=>{const R=ne("p-btn"),H=ne("Loader"),G=ne("p-input"),U=ne("empty-state"),ce=ne("p-list-item-content"),Ee=ne("p-list-item"),ze=ne("p-list-items"),xe=ne("Dialog");return $(),ee(we,null,[L("div",{class:at(["fullscreen-player__lyric",{"with-translated":i.value}]),onDblclick:x[1]||(x[1]=te=>u.value=!0)},[L("div",{class:at(["is-lyric-correct",{show:l.value}])},[Xp,L("div",Gp,[L("div",Jp,ge(v.$t("lyric.isLyricCorrect.title")),1),L("div",Zp,ge(v.$t("lyric.isLyricCorrect.description")),1),L("div",eh,[V(R,{outline:"",onClick:x[0]||(x[0]=te=>u.value=!0)},{default:K(()=>[th,Wt(ge(v.$t("lyric.isLyricCorrect.search")),1)]),_:1}),V(R,{color:"primary",onClick:y},{default:K(()=>[nh,Wt(ge(v.$t("lyric.isLyricCorrect.correct")),1)]),_:1})])])],2),($(!0),ee(we,null,It(m.value,(te,ae)=>($(),ee("div",{class:at(["lyric-item",{active:ae==a.value,translated:i.value&&a.value%2!=ae%2}]),"data-lyric-set":i.value?Math.floor((ae-a.value)/2):ae-a.value},ge(te.lyric),11,rh))),256)),p.value?($(),le(H,{key:0})):Se("",!0)],34),V(xe,{modelValue:u.value,"onUpdate:modelValue":x[5]||(x[5]=te=>u.value=te)},{default:K(()=>[L("div",sh,[V(G,{modelValue:c.value,"onUpdate:modelValue":x[2]||(x[2]=te=>c.value=te),onKeydown:x[3]||(x[3]=ec(Qr(te=>k(c.value),["prevent"]),["enter"]))},null,8,["modelValue"]),V(R,{icon:"",onClick:x[4]||(x[4]=te=>k(c.value))},{default:K(()=>[oh]),_:1})]),L("div",ih,[!f.value&&d.value=="saved"&&!p.value?($(),le(U,{key:0,style:{"margin-top":"80px"},title:v.$t("lyric.currentLyricSource.saved.title"),description:v.$t("lyric.currentLyricSource.saved.description")},{default:K(()=>[ah]),_:1},8,["title","description"])):Se("",!0),p.value?($(),le(H,{key:1,style:{"margin-top":"80px"}})):Se("",!0),V(ze,{"single-row":""},{default:K(()=>[($(!0),ee(we,null,It(f.value,te=>($(),le(Ee,{onClick:ae=>{w(te.lyric),u.value=!1}},{default:K(()=>[V(ce,{title:`${te.name}`,description:`[${v.$t(`source.${te.source}`)}] ${te.artist}`},null,8,["title","description"])]),_:2},1032,["onClick"]))),256))]),_:1})])]),_:1},8,["modelValue"])],64)}}},ch=Ve(lh,[["__scopeId","data-v-7293c89c"]]),uh=Object.freeze(Object.defineProperty({__proto__:null,default:ch},Symbol.toStringTag,{value:"Module"}));const Vo=e=>(Bn("data-v-1bdd18be"),e=e(),jn(),e),fh={class:"fullscreen-player__player"},dh={class:"cover"},ph=["src"],hh={key:1,src:"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath d='M0 0h1v1H0' fill='%23fff'/%3E%3C/svg%3E",alt:"cover"},mh={class:"track-info-text"},_h={class:"track-name"},yh={class:"track-artist"},gh={class:"seek-control"},vh={class:"time-items"},bh={class:"time"},wh={class:"time"},Eh={class:"track-control"},xh={key:0,class:"bx bx-shuffle"},Th={key:1,class:"bx bx-repeat"},kh=Vo(()=>L("i",{class:"bx bx-skip-previous"},null,-1)),Sh={key:0,class:"bx bx-play"},Oh={key:1,class:"bx bx-pause"},zh=Vo(()=>L("i",{class:"bx bx-skip-next"},null,-1)),Ph=Vo(()=>L("i",{class:"bx bx-list-plus"},null,-1)),Ch={__name:"Player",setup(e){const t=Re("Player"),n=Re("PokaAPI"),r=Z(!1),s=Z(t.audioOrder);Ye(s,E=>t.audioOrder=E);const o=Z(t.paused),a=Z("0:00"),i=Z(0),l=Z("0:00"),u=Z(0),f=Z(null),c=Z(!1);let d=setInterval(()=>{m()},100),p=setInterval(()=>{i.value=t.rawCurrentTime,u.value=t.rawDuration},1e3/60);async function m(){s.value=t.audioOrder,o.value=t.paused,a.value=t.currentTime,l.value=t.duration,f.value=t.trackInfo,i.value=t.rawCurrentTime,u.value=t.rawDuration,c.value||i.value+10>u.value&&u.value>0&&(await n.addSongRecord(f.value.originalObject),c.value=!0)}m(),Xt(()=>{clearInterval(p),clearInterval(d)});function h(E){t.seek(E.target.value)}return(E,b)=>{var w,y;const S=ne("p-slider"),k=ne("p-btn"),O=ne("playlist-dialog");return $(),ee(we,null,[L("div",fh,[L("div",dh,[f.value?($(),ee("img",{key:0,src:f.value.cover,alt:"cover"},null,8,ph)):($(),ee("img",hh))]),L("div",mh,[L("div",_h,ge(((w=f.value)==null?void 0:w.name)||"PokaPlayer"),1),L("div",yh,ge(((y=f.value)==null?void 0:y.artist)||E.$t("waitForPlay")),1)]),L("div",gh,[V(S,{value:i.value,max:u.value,step:"0.000001",onInput:h,onChange:h},null,8,["value","max"]),L("div",vh,[L("div",bh,ge(a.value),1),L("div",wh,ge(l.value),1)])]),L("div",Eh,[V(k,{icon:"",text:"",onClick:b[0]||(b[0]=v=>s.value=s.value=="random"?"list":"random")},{default:K(()=>[s.value=="random"?($(),ee("i",xh)):Se("",!0),s.value=="list"?($(),ee("i",Th)):Se("",!0)]),_:1}),V(k,{icon:"",text:"",onClick:b[1]||(b[1]=v=>De(t).previous())},{default:K(()=>[kh]),_:1}),V(k,{icon:"",color:"primary",onClick:b[2]||(b[2]=v=>De(t).toggle())},{default:K(()=>[o.value?($(),ee("i",Sh)):($(),ee("i",Oh))]),_:1}),V(k,{icon:"",text:"",onClick:b[3]||(b[3]=v=>De(t).next())},{default:K(()=>[zh]),_:1}),V(k,{icon:"",text:"",onClick:b[4]||(b[4]=v=>r.value=!0)},{default:K(()=>[Ph]),_:1})])]),V(O,{modelValue:r.value,"onUpdate:modelValue":b[5]||(b[5]=v=>r.value=v),item:f.value},null,8,["modelValue","item"])],64)}}},Ih=Ve(Ch,[["__scopeId","data-v-1bdd18be"]]),Ah=Object.freeze(Object.defineProperty({__proto__:null,default:Ih},Symbol.toStringTag,{value:"Module"}));const Lh={},Rh=e=>(Bn("data-v-f4517432"),e=e(),jn(),e),Mh={class:"loader","aria-label":"Loading"},$h=Rh(()=>L("div",{class:"loader__spinner"},null,-1)),Nh=[$h];function Fh(e,t){return $(),ee("div",Mh,Nh)}const Dh=Ve(Lh,[["render",Fh],["__scopeId","data-v-f4517432"]]),Bh=Object.freeze(Object.defineProperty({__proto__:null,default:Dh},Symbol.toStringTag,{value:"Module"}));const jh={props:{type:{type:String,default:"button"},href:{type:String,default:""},color:{type:String,default:""},outline:{type:Boolean,default:!1},text:{type:Boolean,default:!1},icon:{type:Boolean,default:!1},block:{type:Boolean,default:!1}}};function Vh(e,t,n,r,s,o){return $(),le(Mo(n.href?"a":"button"),vr({href:n.href,class:["p-btn",{outline:n.outline,text:n.text,icon:n.icon,block:n.block}],type:n.type,color:n.color},e.$attrs),{default:K(()=>[At(e.$slots,"default",{},void 0,!0)]),_:3},16,["href","type","class","color"])}const Uh=Ve(jh,[["render",Vh],["__scopeId","data-v-6e7d6ed3"]]),qh=Object.freeze(Object.defineProperty({__proto__:null,default:Uh},Symbol.toStringTag,{value:"Module"}));const wn=typeof window<"u";function Hh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Is(e,t){const n={};for(const r in t){const s=t[r];n[r]=mt(s)?s.map(e):e(s)}return n}const sr=()=>{},mt=Array.isArray,Wh=/\/$/,Kh=e=>e.replace(Wh,"");function As(e,t,n="/"){let r,s={},o="",a="";const i=t.indexOf("#");let l=t.indexOf("?");return i=0&&(l=-1),l>-1&&(r=t.slice(0,l),o=t.slice(l+1,i>-1?i:t.length),s=e(o)),i>-1&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=Gh(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:s,hash:a}}function Yh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ui(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qh(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Rn(t.matched[r],n.matched[s])&&ic(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ic(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Xh(e[n],t[n]))return!1;return!0}function Xh(e,t){return mt(e)?qi(e,t):mt(t)?qi(t,e):e===t}function qi(e,t){return mt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Gh(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,o,a;for(o=0;o1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var hr;(function(e){e.pop="pop",e.push="push"})(hr||(hr={}));var or;(function(e){e.back="back",e.forward="forward",e.unknown=""})(or||(or={}));function Jh(e){if(!e)if(wn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Kh(e)}const Zh=/^[^#]+#/;function em(e,t){return e.replace(Zh,"#")+t}function tm(e,t){const 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)}}const _s=()=>({left:window.pageXOffset,top:window.pageYOffset});function nm(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=tm(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Hi(e,t){return(history.state?history.state.position-t:-1)+e}const Gs=new Map;function rm(e,t){Gs.set(e,t)}function sm(e){const t=Gs.get(e);return Gs.delete(e),t}let om=()=>location.protocol+"//"+location.host;function ac(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let i=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(i);return l[0]!=="/"&&(l="/"+l),Ui(l,"")}return Ui(n,e)+r+s}function im(e,t,n,r){let s=[],o=[],a=null;const i=({state:d})=>{const p=ac(e,location),m=n.value,h=t.value;let E=0;if(d){if(n.value=p,t.value=d,a&&a===m){a=null;return}E=h?d.position-h.position:0}else r(p);s.forEach(b=>{b(n.value,m,{delta:E,type:hr.pop,direction:E?E>0?or.forward:or.back:or.unknown})})};function l(){a=n.value}function u(d){s.push(d);const p=()=>{const m=s.indexOf(d);m>-1&&s.splice(m,1)};return o.push(p),p}function f(){const{history:d}=window;!d.state||d.replaceState(be({},d.state,{scroll:_s()}),"")}function c(){for(const d of o)d();o=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:c}}function Wi(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?_s():null}}function am(e){const{history:t,location:n}=window,r={value:ac(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,f){const c=e.indexOf("#"),d=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+l:om()+e+l;try{t[f?"replaceState":"pushState"](u,"",d),s.value=u}catch(p){console.error(p),n[f?"replace":"assign"](d)}}function a(l,u){const f=be({},t.state,Wi(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,f,!0),r.value=l}function i(l,u){const f=be({},s.value,t.state,{forward:l,scroll:_s()});o(f.current,f,!0);const c=be({},Wi(r.value,l,null),{position:f.position+1},u);o(l,c,!1),r.value=l}return{location:r,state:s,push:i,replace:a}}function lm(e){e=Jh(e);const t=am(e),n=im(e,t.state,t.location,t.replace);function r(o,a=!0){a||n.pauseListeners(),history.go(o)}const s=be({location:"",base:e,go:r,createHref:em.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function cm(e){return typeof e=="string"||e&&typeof e=="object"}function lc(e){return typeof e=="string"||typeof e=="symbol"}const Dt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},cc=Symbol("");var Ki;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ki||(Ki={}));function Mn(e,t){return be(new Error,{type:e,[cc]:!0},t)}function St(e,t){return e instanceof Error&&cc in e&&(t==null||!!(e.type&t))}const Yi="[^/]+?",um={sensitive:!1,strict:!1,start:!0,end:!0},fm=/[.+*?^${}()[\]/\\]/g;function dm(e,t){const n=be({},um,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let c=0;ct.length?t.length===1&&t[0]===40+40?1:-1:0}function hm(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const mm={type:0,value:""},_m=/[a-zA-Z0-9_]/;function ym(e){if(!e)return[[]];if(e==="/")return[[mm]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const s=[];let o;function a(){o&&s.push(o),o=[]}let i=0,l,u="",f="";function c(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;i{a(S)}:sr}function a(f){if(lc(f)){const c=r.get(f);c&&(r.delete(f),n.splice(n.indexOf(c),1),c.children.forEach(a),c.alias.forEach(a))}else{const c=n.indexOf(f);c>-1&&(n.splice(c,1),f.record.name&&r.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function i(){return n}function l(f){let c=0;for(;c=0&&(f.record.path!==n[c].record.path||!uc(f,n[c]));)c++;n.splice(c,0,f),f.record.name&&!Gi(f)&&r.set(f.record.name,f)}function u(f,c){let d,p={},m,h;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Mn(1,{location:f});h=d.record.name,p=be(Xi(c.params,d.keys.filter(S=>!S.optional).map(S=>S.name)),f.params&&Xi(f.params,d.keys.map(S=>S.name))),m=d.stringify(p)}else if("path"in f)m=f.path,d=n.find(S=>S.re.test(m)),d&&(p=d.parse(m),h=d.record.name);else{if(d=c.name?r.get(c.name):n.find(S=>S.re.test(c.path)),!d)throw Mn(1,{location:f,currentLocation:c});h=d.record.name,p=be({},c.params,f.params),m=d.stringify(p)}const E=[];let b=d;for(;b;)E.unshift(b.record),b=b.parent;return{name:h,path:m,params:p,matched:E,meta:Em(E)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:i,getRecordMatcher:s}}function Xi(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function bm(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:wm(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function wm(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Gi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Em(e){return e.reduce((t,n)=>be(t,n.meta),{})}function Ji(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function uc(e,t){return t.children.some(n=>n===e||uc(e,n))}const fc=/#/g,xm=/&/g,Tm=/\//g,km=/=/g,Sm=/\?/g,dc=/\+/g,Om=/%5B/g,zm=/%5D/g,pc=/%5E/g,Pm=/%60/g,hc=/%7B/g,Cm=/%7C/g,mc=/%7D/g,Im=/%20/g;function Uo(e){return encodeURI(""+e).replace(Cm,"|").replace(Om,"[").replace(zm,"]")}function Am(e){return Uo(e).replace(hc,"{").replace(mc,"}").replace(pc,"^")}function Js(e){return Uo(e).replace(dc,"%2B").replace(Im,"+").replace(fc,"%23").replace(xm,"%26").replace(Pm,"`").replace(hc,"{").replace(mc,"}").replace(pc,"^")}function Lm(e){return Js(e).replace(km,"%3D")}function Rm(e){return Uo(e).replace(fc,"%23").replace(Sm,"%3F")}function Mm(e){return e==null?"":Rm(e).replace(Tm,"%2F")}function Xr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function $m(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Js(o)):[r&&Js(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Nm(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=mt(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}const Fm=Symbol(""),ea=Symbol(""),ys=Symbol(""),qo=Symbol(""),Zs=Symbol("");function Yn(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Vt(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((a,i)=>{const l=c=>{c===!1?i(Mn(4,{from:n,to:t})):c instanceof Error?i(c):cm(c)?i(Mn(2,{from:t,to:c})):(o&&r.enterCallbacks[s]===o&&typeof c=="function"&&o.push(c),a())},u=e.call(r&&r.instances[s],t,n,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(c=>i(c))})}function Ls(e,t,n,r){const s=[];for(const o of e)for(const a in o.components){let i=o.components[a];if(!(t!=="beforeRouteEnter"&&!o.instances[a]))if(Dm(i)){const u=(i.__vccOpts||i)[t];u&&s.push(Vt(u,n,r,o,a))}else{let l=i();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${o.path}"`));const f=Hh(u)?u.default:u;o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&Vt(d,n,r,o,a)()}))}}return s}function Dm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ta(e){const t=Re(ys),n=Re(qo),r=Le(()=>t.resolve(De(e.to))),s=Le(()=>{const{matched:l}=r.value,{length:u}=l,f=l[u-1],c=n.matched;if(!f||!c.length)return-1;const d=c.findIndex(Rn.bind(null,f));if(d>-1)return d;const p=na(l[u-2]);return u>1&&na(f)===p&&c[c.length-1].path!==p?c.findIndex(Rn.bind(null,l[u-2])):d}),o=Le(()=>s.value>-1&&Vm(n.params,r.value.params)),a=Le(()=>s.value>-1&&s.value===n.matched.length-1&&ic(n.params,r.value.params));function i(l={}){return jm(l)?t[De(e.replace)?"replace":"push"](De(e.to)).catch(sr):Promise.resolve()}return{route:r,href:Le(()=>r.value.href),isActive:o,isExactActive:a,navigate:i}}const Bm=Al({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"}},useLink:ta,setup(e,{slots:t}){const n=Dn(ta(e)),{options:r}=Re(ys),s=Le(()=>({[ra(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[ra(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:br("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),_c=Bm;function jm(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){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Vm(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!mt(s)||s.length!==r.length||r.some((o,a)=>o!==s[a]))return!1}return!0}function na(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ra=(e,t,n)=>e??t??n,Um=Al({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Re(Zs),s=Le(()=>e.route||r.value),o=Re(ea,0),a=Le(()=>{let u=De(o);const{matched:f}=s.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),i=Le(()=>s.value.matched[a.value]);Fr(ea,Le(()=>a.value+1)),Fr(Fm,i),Fr(Zs,s);const l=Z();return Ye(()=>[l.value,i.value,e.name],([u,f,c],[d,p,m])=>{f&&(f.instances[c]=u,p&&p!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=p.leaveGuards),f.updateGuards.size||(f.updateGuards=p.updateGuards))),u&&f&&(!p||!Rn(f,p)||!d)&&(f.enterCallbacks[c]||[]).forEach(h=>h(u))},{flush:"post"}),()=>{const u=s.value,f=e.name,c=i.value,d=c&&c.components[f];if(!d)return sa(n.default,{Component:d,route:u});const p=c.props[f],m=p?p===!0?u.params:typeof p=="function"?p(u):p:null,E=br(d,be({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return sa(n.default,{Component:E,route:u})||E}}});function sa(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const yc=Um;function qm(e){const t=vm(e.routes,e),n=e.parseQuery||$m,r=e.stringifyQuery||Zi,s=e.history,o=Yn(),a=Yn(),i=Yn(),l=_l(Dt);let u=Dt;wn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Is.bind(null,A=>""+A),c=Is.bind(null,Mm),d=Is.bind(null,Xr);function p(A,q){let B,X;return lc(A)?(B=t.getRecordMatcher(A),X=q):X=A,t.addRoute(X,B)}function m(A){const q=t.getRecordMatcher(A);q&&t.removeRoute(q)}function h(){return t.getRoutes().map(A=>A.record)}function E(A){return!!t.getRecordMatcher(A)}function b(A,q){if(q=be({},q||l.value),typeof A=="string"){const _=As(n,A,q.path),g=t.resolve({path:_.path},q),P=s.createHref(_.fullPath);return be(_,g,{params:d(g.params),hash:Xr(_.hash),redirectedFrom:void 0,href:P})}let B;if("path"in A)B=be({},A,{path:As(n,A.path,q.path).path});else{const _=be({},A.params);for(const g in _)_[g]==null&&delete _[g];B=be({},A,{params:c(A.params)}),q.params=c(q.params)}const X=t.resolve(B,q),fe=A.hash||"";X.params=f(d(X.params));const Pe=Yh(r,be({},A,{hash:Am(fe),path:X.path})),se=s.createHref(Pe);return be({fullPath:Pe,hash:fe,query:r===Zi?Nm(A.query):A.query||{}},X,{redirectedFrom:void 0,href:se})}function S(A){return typeof A=="string"?As(n,A,l.value.path):be({},A)}function k(A,q){if(u!==A)return Mn(8,{from:q,to:A})}function O(A){return v(A)}function w(A){return O(be(S(A),{replace:!0}))}function y(A){const q=A.matched[A.matched.length-1];if(q&&q.redirect){const{redirect:B}=q;let X=typeof B=="function"?B(A):B;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=S(X):{path:X},X.params={}),be({query:A.query,hash:A.hash,params:"path"in X?{}:A.params},X)}}function v(A,q){const B=u=b(A),X=l.value,fe=A.state,Pe=A.force,se=A.replace===!0,_=y(B);if(_)return v(be(S(_),{state:typeof _=="object"?be({},fe,_.state):fe,force:Pe,replace:se}),q||B);const g=B;g.redirectedFrom=q;let P;return!Pe&&Qh(r,X,B)&&(P=Mn(16,{to:g,from:X}),kt(X,X,!0,!1)),(P?Promise.resolve(P):R(g,X)).catch(C=>St(C)?St(C,2)?C:Ze(C):te(C,g,X)).then(C=>{if(C){if(St(C,2))return v(be({replace:se},S(C.to),{state:typeof C.to=="object"?be({},fe,C.to.state):fe,force:Pe}),q||g)}else C=G(g,X,!0,se,fe);return H(g,X,C),C})}function x(A,q){const B=k(A,q);return B?Promise.reject(B):Promise.resolve()}function R(A,q){let B;const[X,fe,Pe]=Hm(A,q);B=Ls(X.reverse(),"beforeRouteLeave",A,q);for(const _ of X)_.leaveGuards.forEach(g=>{B.push(Vt(g,A,q))});const se=x.bind(null,A,q);return B.push(se),bn(B).then(()=>{B=[];for(const _ of o.list())B.push(Vt(_,A,q));return B.push(se),bn(B)}).then(()=>{B=Ls(fe,"beforeRouteUpdate",A,q);for(const _ of fe)_.updateGuards.forEach(g=>{B.push(Vt(g,A,q))});return B.push(se),bn(B)}).then(()=>{B=[];for(const _ of A.matched)if(_.beforeEnter&&!q.matched.includes(_))if(mt(_.beforeEnter))for(const g of _.beforeEnter)B.push(Vt(g,A,q));else B.push(Vt(_.beforeEnter,A,q));return B.push(se),bn(B)}).then(()=>(A.matched.forEach(_=>_.enterCallbacks={}),B=Ls(Pe,"beforeRouteEnter",A,q),B.push(se),bn(B))).then(()=>{B=[];for(const _ of a.list())B.push(Vt(_,A,q));return B.push(se),bn(B)}).catch(_=>St(_,8)?_:Promise.reject(_))}function H(A,q,B){for(const X of i.list())X(A,q,B)}function G(A,q,B,X,fe){const Pe=k(A,q);if(Pe)return Pe;const se=q===Dt,_=wn?history.state:{};B&&(X||se?s.replace(A.fullPath,be({scroll:se&&_&&_.scroll},fe)):s.push(A.fullPath,fe)),l.value=A,kt(A,q,B,se),Ze()}let U;function ce(){U||(U=s.listen((A,q,B)=>{if(!yn.listening)return;const X=b(A),fe=y(X);if(fe){v(be(fe,{replace:!0}),X).catch(sr);return}u=X;const Pe=l.value;wn&&rm(Hi(Pe.fullPath,B.delta),_s()),R(X,Pe).catch(se=>St(se,12)?se:St(se,2)?(v(se.to,X).then(_=>{St(_,20)&&!B.delta&&B.type===hr.pop&&s.go(-1,!1)}).catch(sr),Promise.reject()):(B.delta&&s.go(-B.delta,!1),te(se,X,Pe))).then(se=>{se=se||G(X,Pe,!1),se&&(B.delta&&!St(se,8)?s.go(-B.delta,!1):B.type===hr.pop&&St(se,20)&&s.go(-1,!1)),H(X,Pe,se)}).catch(sr)}))}let Ee=Yn(),ze=Yn(),xe;function te(A,q,B){Ze(A);const X=ze.list();return X.length?X.forEach(fe=>fe(A,q,B)):console.error(A),Promise.reject(A)}function ae(){return xe&&l.value!==Dt?Promise.resolve():new Promise((A,q)=>{Ee.add([A,q])})}function Ze(A){return xe||(xe=!A,ce(),Ee.list().forEach(([q,B])=>A?B(A):q()),Ee.reset()),A}function kt(A,q,B,X){const{scrollBehavior:fe}=e;if(!wn||!fe)return Promise.resolve();const Pe=!B&&sm(Hi(A.fullPath,0))||(X||!B)&&history.state&&history.state.scroll||null;return _n().then(()=>fe(A,q,Pe)).then(se=>se&&nm(se)).catch(se=>te(se,A,q))}const et=A=>s.go(A);let We;const Zt=new Set,yn={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,hasRoute:E,getRoutes:h,resolve:b,options:e,push:O,replace:w,go:et,back:()=>et(-1),forward:()=>et(1),beforeEach:o.add,beforeResolve:a.add,afterEach:i.add,onError:ze.add,isReady:ae,install(A){const q=this;A.component("RouterLink",_c),A.component("RouterView",yc),A.config.globalProperties.$router=q,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>De(l)}),wn&&!We&&l.value===Dt&&(We=!0,O(s.location).catch(fe=>{}));const B={};for(const fe in Dt)B[fe]=Le(()=>l.value[fe]);A.provide(ys,q),A.provide(qo,Dn(B)),A.provide(Zs,l);const X=A.unmount;Zt.add(A),A.unmount=function(){Zt.delete(A),Zt.size<1&&(u=Dt,U&&U(),U=null,l.value=Dt,We=!1,xe=!1),X()}}};return yn}function bn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Hm(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aRn(u,i))?r.push(i):n.push(i));const l=e.matched[a];l&&(t.matched.find(u=>Rn(u,l))||s.push(l))}return[n,r,s]}function S0(){return Re(ys)}function O0(){return Re(qo)}const Wm={class:"p-card__img-container"},Km=["src"],Ym={key:1,class:"p-card__icon"},Qm={class:"p-card__source"},Xm={class:"p-card__content"},Gm={class:"p-card__title"},Jm={class:"p-card__description"},Zm={__name:"Card",props:{imgSrc:String,title:String,description:String,source:String,to:String,icon:String},setup(e){return(t,n)=>($(),le(Mo(e.to?"RouterLink":"div"),{class:"p-card",to:e.to},{default:K(()=>[L("div",Wm,[e.imgSrc?($(),ee("img",{key:0,class:"p-card__img",src:e.imgSrc,loading:"lazy"},null,8,Km)):Se("",!0),e.icon?($(),ee("div",Ym,[L("i",{class:at(e.icon)},null,2)])):Se("",!0),L("div",Qm,ge(e.source),1)]),L("div",Xm,[L("div",Gm,ge(e.title),1),L("div",Jm,ge(e.description),1)])]),_:1},8,["to"]))}},e_=Ve(Zm,[["__scopeId","data-v-7ba3ec3e"]]),t_=Object.freeze(Object.defineProperty({__proto__:null,default:e_},Symbol.toStringTag,{value:"Module"}));const n_={},r_={class:"p-cards"};function s_(e,t){return $(),ee("div",r_,[At(e.$slots,"default",{},void 0,!0)])}const o_=Ve(n_,[["render",s_],["__scopeId","data-v-cd28673c"]]),i_=Object.freeze(Object.defineProperty({__proto__:null,default:o_},Symbol.toStringTag,{value:"Module"}));const a_={name:"PokaTextInput",props:{type:{type:String,default:"text"},label:{type:String,default:""},modelValue:{type:String,default:""}},data(){return{randomInputId:`input_${Math.random().toString(36).substr(2,9)}`}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},l_=["for"],c_={class:"p-input__label-text"},u_=["id","type"];function f_(e,t,n,r,s,o){return $(),ee("div",{class:at(["p-input",{value:o.value.length}])},[L("label",{class:"p-input__label",for:s.randomInputId},[L("span",c_,ge(n.label),1)],8,l_),Ml(L("input",vr({class:"p-input__input",id:s.randomInputId,"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a),type:n.type},e.$attrs,{placeholder:""}),null,16,u_),[[Ld,o.value]])],2)}const d_=Ve(a_,[["render",f_],["__scopeId","data-v-dc46621b"]]),p_=Object.freeze(Object.defineProperty({__proto__:null,default:d_},Symbol.toStringTag,{value:"Module"}));const h_={class:"p-list-item__content"},m_={class:"p-list-item__actions"},__={__name:"Item",props:{to:String,active:{type:Boolean,default:!1}},setup(e){return(t,n)=>($(),le(Mo(e.to?De(_c):"div"),{class:at(["p-list-item",{active:e.active}]),to:e.to},{default:K(()=>[L("div",h_,[At(t.$slots,"default")]),L("div",m_,[At(t.$slots,"actions")])]),_:3},8,["to","class"]))}},y_=Object.freeze(Object.defineProperty({__proto__:null,default:__},Symbol.toStringTag,{value:"Module"})),g_={class:"p-list-item__content-content"},v_={class:"p-list-item__content-title"},b_={class:"p-list-item__content-description"},w_={__name:"ItemContent",props:{title:String,description:String},setup(e){return(t,n)=>($(),ee("div",g_,[L("div",v_,ge(e.title),1),L("div",b_,ge(e.description),1)]))}},E_=Object.freeze(Object.defineProperty({__proto__:null,default:w_},Symbol.toStringTag,{value:"Module"})),x_={},T_={class:"p-list-item__icon-btn"};function k_(e,t){return $(),ee("button",T_,[At(e.$slots,"default")])}const S_=Ve(x_,[["render",k_]]),O_=Object.freeze(Object.defineProperty({__proto__:null,default:S_},Symbol.toStringTag,{value:"Module"}));var oa;const Tr=typeof window<"u",z_=e=>typeof e=="function",P_=e=>typeof e=="string",Br=()=>{};Tr&&((oa=window==null?void 0:window.navigator)==null?void 0:oa.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function gc(e){return typeof e=="function"?e():De(e)}function C_(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}const vc=e=>e();function I_(e=vc){const t=Z(!0);function n(){t.value=!1}function r(){t.value=!0}return{isActive:t,pause:n,resume:r,eventFilter:(...o)=>{t.value&&e(...o)}}}function A_(e){return e}function bc(e){return el()?(tl(e),!0):!1}function L_(e,t=!0){Vn()?Rt(e):t?e():_n(e)}var ia=Object.getOwnPropertySymbols,R_=Object.prototype.hasOwnProperty,M_=Object.prototype.propertyIsEnumerable,$_=(e,t)=>{var n={};for(var r in e)R_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ia)for(var r of ia(e))t.indexOf(r)<0&&M_.call(e,r)&&(n[r]=e[r]);return n};function N_(e,t,n={}){const r=n,{eventFilter:s=vc}=r,o=$_(r,["eventFilter"]);return Ye(e,C_(s,t),o)}var F_=Object.defineProperty,D_=Object.defineProperties,B_=Object.getOwnPropertyDescriptors,Gr=Object.getOwnPropertySymbols,wc=Object.prototype.hasOwnProperty,Ec=Object.prototype.propertyIsEnumerable,aa=(e,t,n)=>t in e?F_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,j_=(e,t)=>{for(var n in t||(t={}))wc.call(t,n)&&aa(e,n,t[n]);if(Gr)for(var n of Gr(t))Ec.call(t,n)&&aa(e,n,t[n]);return e},V_=(e,t)=>D_(e,B_(t)),U_=(e,t)=>{var n={};for(var r in e)wc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gr)for(var r of Gr(e))t.indexOf(r)<0&&Ec.call(e,r)&&(n[r]=e[r]);return n};function q_(e,t,n={}){const r=n,{eventFilter:s}=r,o=U_(r,["eventFilter"]),{eventFilter:a,pause:i,resume:l,isActive:u}=I_(s);return{stop:N_(e,t,V_(j_({},o),{eventFilter:a})),pause:i,resume:l,isActive:u}}function eo(e){var t;const n=gc(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Jr=Tr?window:void 0;Tr&&window.document;Tr&&window.navigator;Tr&&window.location;function H_(...e){let t,n,r,s;if(P_(e[0])||Array.isArray(e[0])?([n,r,s]=e,t=Jr):[t,n,r,s]=e,!t)return Br;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(f=>f()),o.length=0},i=(f,c,d)=>(f.addEventListener(c,d,s),()=>f.removeEventListener(c,d,s)),l=Ye(()=>eo(t),f=>{a(),f&&o.push(...n.flatMap(c=>r.map(d=>i(f,c,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return bc(u),u}function W_(e,t=!1){const n=Z(),r=()=>n.value=Boolean(e());return r(),L_(r,t),n}const to=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},no="__vueuse_ssr_handlers__";to[no]=to[no]||{};const K_=to[no];function Y_(e,t){return K_[e]||t}function Q_(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var X_=Object.defineProperty,la=Object.getOwnPropertySymbols,G_=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable,ca=(e,t,n)=>t in e?X_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ua=(e,t)=>{for(var n in t||(t={}))G_.call(t,n)&&ca(e,n,t[n]);if(la)for(var n of la(t))J_.call(t,n)&&ca(e,n,t[n]);return e};const Z_={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function z0(e,t,n,r={}){var s;const{flush:o="pre",deep:a=!0,listenToStorageChanges:i=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:f,window:c=Jr,eventFilter:d,onError:p=v=>{console.error(v)}}=r,m=(f?_l:Z)(t);if(!n)try{n=Y_("getDefaultStorage",()=>{var v;return(v=Jr)==null?void 0:v.localStorage})()}catch(v){p(v)}if(!n)return m;const h=gc(t),E=Q_(h),b=(s=r.serializer)!=null?s:Z_[E],{pause:S,resume:k}=q_(m,()=>O(m.value),{flush:o,deep:a,eventFilter:d});return c&&i&&H_(c,"storage",y),y(),m;function O(v){try{if(v==null)n.removeItem(e);else{const x=b.write(v),R=n.getItem(e);R!==x&&(n.setItem(e,x),c&&(c==null||c.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:R,newValue:x,storageArea:n}))))}}catch(x){p(x)}}function w(v){const x=v?v.newValue:n.getItem(e);if(x==null)return l&&h!==null&&n.setItem(e,b.write(h)),h;if(!v&&u){const R=b.read(x);return z_(u)?u(R,h):E==="object"&&!Array.isArray(R)?ua(ua({},h),R):R}else return typeof x!="string"?x:b.read(x)}function y(v){if(!(v&&v.storageArea!==n)){if(v&&v.key==null){m.value=h;return}if(!(v&&v.key!==e)){S();try{m.value=w(v)}catch(x){p(x)}finally{v?_n(k):k()}}}}}function ey(e,t,n={}){const{root:r,rootMargin:s="0px",threshold:o=.1,window:a=Jr}=n,i=W_(()=>a&&"IntersectionObserver"in a);let l=Br;const u=i.value?Ye(()=>({el:eo(e),root:eo(r)}),({el:c,root:d})=>{if(l(),!c)return;const p=new IntersectionObserver(t,{root:d,rootMargin:s,threshold:o});p.observe(c),l=()=>{p.disconnect(),l=Br}},{immediate:!0,flush:"post"}):Br,f=()=>{l(),u()};return bc(f),{isSupported:i,stop:f}}var fa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(fa||(fa={}));var ty=Object.defineProperty,da=Object.getOwnPropertySymbols,ny=Object.prototype.hasOwnProperty,ry=Object.prototype.propertyIsEnumerable,pa=(e,t,n)=>t in e?ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sy=(e,t)=>{for(var n in t||(t={}))ny.call(t,n)&&pa(e,n,t[n]);if(da)for(var n of da(t))ry.call(t,n)&&pa(e,n,t[n]);return e};const oy={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};sy({linear:A_},oy);const iy=["src","alt"],ay={key:1},ly={__name:"ItemImg",props:{src:String,alt:String},setup(e){const t=Z(null),n=Z(!1);return ey(t,([{isIntersecting:r}],s)=>{n.value=n.value||r}),(r,s)=>($(),ee("div",{class:"p-list-item__img",ref_key:"imgContainer",ref:t},[V(hs,{name:"fade",mode:"out-in"},{default:K(()=>[n.value?($(),ee("img",{key:0,src:e.src,alt:e.alt},null,8,iy)):($(),ee("img",ay))]),_:1})],512))}},cy=Object.freeze(Object.defineProperty({__proto__:null,default:ly},Symbol.toStringTag,{value:"Module"}));const uy={__name:"Items",props:{singleRow:Boolean},setup(e){return(t,n)=>($(),ee("div",{class:at(["p-list-items",{"single-row":e.singleRow}])},[At(t.$slots,"default",{},void 0,!0)],2))}},fy=Ve(uy,[["__scopeId","data-v-6dc192e0"]]),dy=Object.freeze(Object.defineProperty({__proto__:null,default:fy},Symbol.toStringTag,{value:"Module"}));const py={name:"PokaTextInput",props:["modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},hy={class:"p-select"};function my(e,t,n,r,s,o){return $(),ee("div",hy,[Ml(L("select",vr({"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a)},e.$attrs),[At(e.$slots,"default",{},void 0,!0)],16),[[Jl,o.value]])])}const _y=Ve(py,[["render",my],["__scopeId","data-v-396b2373"]]),yy=Object.freeze(Object.defineProperty({__proto__:null,default:_y},Symbol.toStringTag,{value:"Module"}));const gy=["min","max","value"],vy={__name:"Slider",props:{min:{type:Number},max:{type:Number},value:{type:Number}},setup(e){const t=e,n=Le(()=>t.value/t.max*100||0);return(r,s)=>($(),ee("input",vr({type:"range",min:e.min,max:e.max,value:e.value,style:`--value-in-percent: ${De(n)}%`},r.$attrs),null,16,gy))}},by=Ve(vy,[["__scopeId","data-v-4ad436c5"]]),wy=Object.freeze(Object.defineProperty({__proto__:null,default:by},Symbol.toStringTag,{value:"Module"})),Ey={__name:"Albums",props:{items:Array},setup(e){return(t,n)=>{const r=ne("p-card"),s=ne("p-cards");return $(),le(s,null,{default:K(()=>[($(!0),ee(we,null,It(e.items,o=>($(),le(r,{key:o.id,imgSrc:o.cover,title:o.name,description:o.artist,source:t.$t(`source.${o.source}`),to:`/album/${o.source}/${o.id}`},null,8,["imgSrc","title","description","source","to"]))),128))]),_:1})}}},xy=Object.freeze(Object.defineProperty({__proto__:null,default:Ey},Symbol.toStringTag,{value:"Module"})),Ty={__name:"Artists",props:{items:Array,type:{type:String,default:"artists"}},setup(e){return(t,n)=>{const r=ne("p-card"),s=ne("p-cards");return $(),le(s,null,{default:K(()=>[($(!0),ee(we,null,It(e.items,o=>($(),le(r,{key:o.id,imgSrc:o.cover,title:o.name,source:t.$t(`source.${o.source}`),to:`/${e.type.slice(0,-1)}/${o.source}/${o.id}`},null,8,["imgSrc","title","source","to"]))),128))]),_:1})}}},ky=Object.freeze(Object.defineProperty({__proto__:null,default:Ty},Symbol.toStringTag,{value:"Module"}));const Sy={class:"home-item"},Oy={class:"home-item__header"},zy={class:"home-item__title"},Py={class:"home-item__type"},Cy={__name:"Home",props:{items:Array},setup(e){return(t,n)=>{const r=ne("parse-albums"),s=ne("parse-playlists"),o=ne("parse-artists");return $(!0),ee(we,null,It(e.items,a=>($(),ee(we,null,[($(!0),ee(we,null,It(Object.entries(a).filter(([i,l])=>!["title","source","icon"].includes(i)&&l.length),([i,l])=>($(),ee("div",Sy,[L("div",Oy,[L("h3",zy,ge(t.$t(`home.${a.title}`)),1),L("p",Py,ge(t.$t(`nav.${i}`)),1)]),i=="albums"?($(),le(r,{key:0,items:l},null,8,["items"])):Se("",!0),i=="playlists"?($(),le(s,{key:1,items:l},null,8,["items"])):Se("",!0),["composers","artists"].includes(i)?($(),le(o,{key:2,items:l,type:i},null,8,["items","type"])):Se("",!0)]))),256))],64))),256)}}},Iy=Ve(Cy,[["__scopeId","data-v-25d19ae0"]]),Ay=Object.freeze(Object.defineProperty({__proto__:null,default:Iy},Symbol.toStringTag,{value:"Module"})),Ly={__name:"Playlists",props:{items:Array},setup(e){return(t,n)=>{const r=ne("p-card"),s=ne("p-cards");return $(),le(s,null,{default:K(()=>[($(!0),ee(we,null,It(e.items,o=>($(),le(r,{key:o.id,imgSrc:o.cover,title:o.name,source:t.$t(`source.${o.source}`),to:`/playlist/${o.source}/${o.id}`},null,8,["imgSrc","title","source","to"]))),128))]),_:1})}}},Ry=Object.freeze(Object.defineProperty({__proto__:null,default:Ly},Symbol.toStringTag,{value:"Module"})),My=L("i",{class:"bx bx-plus"},null,-1),$y={__name:"Songs",props:{items:{type:Array,default:()=>[]},currentIndex:{type:Number,default:-1}},setup(e){const t=e,n=Re("Player"),r=Z(null),s=Z(!1);function o(a){n.addSongs({songs:t.items,index:a})}return(a,i)=>{const l=ne("p-list-item-img"),u=ne("p-list-item-content"),f=ne("p-list-item-icon-btn"),c=ne("p-list-item"),d=ne("p-list-items"),p=ne("song-dialog");return $(),ee(we,null,[e.items.length?($(),le(d,{key:0,singleRow:e.currentIndex!=-1},{default:K(()=>[($(!0),ee(we,null,It(e.items,(m,h)=>($(),le(c,{onClick:E=>o(h),onKeydown:ec(E=>o(h),["enter"]),active:h==e.currentIndex,"data-index":h,tabindex:0,onContextmenu:Qr(E=>{r.value=m,s.value=!0},["prevent"])},{actions:K(()=>[e.currentIndex==-1?($(),le(f,{key:0,onClick:Qr(E=>De(n).addSongs({songs:[m],clear:!1}),["stop"])},{default:K(()=>[My]),_:2},1032,["onClick"])):Se("",!0)]),default:K(()=>[V(l,{src:m.cover},null,8,["src"]),V(u,{title:m.name,description:m.artist},null,8,["title","description"])]),_:2},1032,["onClick","onKeydown","active","data-index","onContextmenu"]))),256))]),_:1},8,["singleRow"])):Se("",!0),V(p,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=m=>s.value=m),item:r.value},null,8,["modelValue","item"])],64)}}},Ny=Object.freeze(Object.defineProperty({__proto__:null,default:$y},Symbol.toStringTag,{value:"Module"})),Fy=L("i",{class:"bx bx-loader bx-spin"},null,-1),Dy=L("i",{class:"bx bxs-pin"},null,-1),By=L("i",{class:"bx bxs-pin"},null,-1),jy={__name:"PinBtn",props:{source:String,id:String,name:String,cover:String,artist:String,type:String},setup(e){const t=e,n=Z(!1),r=Z(!0),s=Re("PokaAPI");async function o(){if(t.name){let l=await s.getPinStatus({source:t.source,id:t.id,name:t.name,type:t.type});n.value=l}r.value=!1}async function a(){n.value=!0,t.name&&(await s.pin({source:t.source,id:t.id,name:t.name,cover:t.cover,artist:t.artist,type:t.type}),await o())}async function i(){n.value=!1,t.name&&(await s.unpin({source:t.source,id:t.id,name:t.name,cover:t.cover,artist:t.artist,type:t.type}),await o())}return Rt(async()=>{await o()}),(l,u)=>{const f=ne("p-btn");return r.value?($(),le(f,{key:0,outline:""},{default:K(()=>[Fy,Wt(ge(l.$t("pin.loading")),1)]),_:1})):n.value?($(),le(f,{key:1,outline:"",onClick:i},{default:K(()=>[Dy,Wt(ge(l.$t("pin.unpin")),1)]),_:1})):($(),le(f,{key:2,onClick:a},{default:K(()=>[By,Wt(ge(l.$t("pin.pin")),1)]),_:1}))}}},Vy=Object.freeze(Object.defineProperty({__proto__:null,default:jy},Symbol.toStringTag,{value:"Module"})),Uy={style:{"margin-bottom":"calc(var(--padding) * 2)"}},qy={key:0,class:"bx bxs-checkbox-checked"},Hy={key:1,class:"bx bx-checkbox"},Wy={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},Ky={__name:"PlaylistDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Re("PokaAPI"),s=Le(()=>{var f;return((f=n.item)==null?void 0:f.originalObject)||n.item}),o=Le({get(){return!!n.modelValue},set(){t("update:modelValue",null)}}),a=Z(null),i=Z(!1);async function l(){i.value=!0,a.value=await r.checkSongExistInPlaylist(s.value),i.value=!1}async function u(f){s.value&&(i.value=!0,a.value=a.value.map(c=>(c.id===f&&(c.exist=!c.exist),c)),await r.toggleSongInPlaylist(s.value,f),await l())}return Rt(()=>{!s.value||l()}),Ye(s,()=>{l()}),(f,c)=>{const d=ne("Loader"),p=ne("p-list-item-icon-btn"),m=ne("p-list-item-content"),h=ne("p-list-item"),E=ne("p-list-items"),b=ne("p-btn"),S=ne("Dialog");return $(),le(S,{modelValue:De(o),"onUpdate:modelValue":c[1]||(c[1]=k=>Ie(o)?o.value=k:null),"max-width":"400px"},{default:K(()=>[L("h3",Uy,ge(f.$t("songDialog.addToPlaylist")),1),a.value===null?($(),le(d,{key:0,style:{"margin-top":"calc(var(--padding) * 2)"}})):Se("",!0),V(E,{"single-row":""},{default:K(()=>[($(!0),ee(we,null,It(a.value,k=>($(),le(h,{tabindex:"0",onClick:O=>u(k.id)},{default:K(()=>[V(p,null,{default:K(()=>[k.exist?($(),ee("i",qy)):($(),ee("i",Hy))]),_:2},1024),V(m,{title:k.name},null,8,["title"])]),_:2},1032,["onClick"]))),256))]),_:1}),L("div",Wy,[V(b,{onClick:c[0]||(c[0]=k=>o.value=!1),color:"primary"},{default:K(()=>[Wt(ge(f.$t("close")),1)]),_:1})])]),_:1},8,["modelValue"])}}},Yy=Object.freeze(Object.defineProperty({__proto__:null,default:Ky},Symbol.toStringTag,{value:"Module"}));const Mt=e=>(Bn("data-v-2a2e2f70"),e=e(),jn(),e),Qy={class:"song-info-dialog-content"},Xy=["src"],Gy={class:"info"},Jy={class:"name"},Zy={class:"artist"},eg=Mt(()=>L("i",{class:"bx bx-list-plus"},null,-1)),tg=Mt(()=>L("i",{class:"bx bx-microphone"},null,-1)),ng=Mt(()=>L("i",{class:"bx bx-right-arrow-alt"},null,-1)),rg=Mt(()=>L("i",{class:"nav-item-icon bx bx-album"},null,-1)),sg=Mt(()=>L("i",{class:"bx bx-right-arrow-alt"},null,-1)),og=Mt(()=>L("i",{class:"bx bx-file-blank"},null,-1)),ig=Mt(()=>L("i",{class:"bx bx-time"},null,-1)),ag=Mt(()=>L("i",{class:"bx bx-data"},null,-1)),lg=Mt(()=>L("i",{class:"bx bx-tag"},null,-1)),cg={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},ug={__name:"SongDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=jo(),{show:s}=Bo(r),o=Le({get(){return n.modelValue},set(){t("update:modelValue",null)}}),a=Z(!1);function i(){s.value=!1,o.value=!1}return(l,u)=>{const f=ne("p-list-item-icon-btn"),c=ne("p-list-item-content"),d=ne("p-list-item"),p=ne("p-list-items"),m=ne("p-btn"),h=ne("Dialog"),E=ne("playlist-dialog");return $(),ee(we,null,[V(h,{modelValue:De(o),"onUpdate:modelValue":u[4]||(u[4]=b=>Ie(o)?o.value=b:null),"max-width":"400px"},{default:K(()=>[L("div",Qy,[L("img",{src:e.item.cover,class:"cover"},null,8,Xy),L("div",Gy,[L("div",Jy,ge(e.item.name),1),L("div",Zy,ge(e.item.artist),1)]),V(p,{"single-row":""},{default:K(()=>[V(d,{onClick:u[0]||(u[0]=b=>a.value=!0),tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[eg]),_:1}),V(c,{title:l.$t("songDialog.addToPlaylist")},null,8,["title"])]),_:1}),V(d,{to:e.item.artistId?`/artist/${e.item.source}/${e.item.artistId}`:void 0,onClick:u[1]||(u[1]=b=>e.item.artistId&&i()),tabindex:"0"},{actions:K(()=>[e.item.artistId?($(),le(f,{key:0},{default:K(()=>[ng]),_:1})):Se("",!0)]),default:K(()=>[V(f,null,{default:K(()=>[tg]),_:1}),V(c,{title:e.item.artist,description:l.$t("nav.artists")},null,8,["title","description"])]),_:1},8,["to"]),V(d,{to:e.item.albumId?`/album/${e.item.source}/${e.item.albumId}`:void 0,onClick:u[2]||(u[2]=b=>e.item.albumId&&i()),tabindex:"0"},{actions:K(()=>[e.item.albumId?($(),le(f,{key:0},{default:K(()=>[sg]),_:1})):Se("",!0)]),default:K(()=>[V(f,null,{default:K(()=>[rg]),_:1}),V(c,{title:e.item.album,description:l.$t("nav.albums")},null,8,["title","description"])]),_:1},8,["to"]),e.item.codec&&e.item.bitrate?($(),le(d,{key:0,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[og]),_:1}),V(c,{title:`${e.item.codec.toUpperCase()} ${e.item.bitrate/1e3}k`,description:l.$t("songDialog.codec")},null,8,["title","description"])]),_:1})):Se("",!0),e.item.year?($(),le(d,{key:1,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[ig]),_:1}),V(c,{title:e.item.year.toString(),description:l.$t("songDialog.year")},null,8,["title","description"])]),_:1})):Se("",!0),e.item.source?($(),le(d,{key:2,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[ag]),_:1}),V(c,{title:l.$t(`source.${e.item.source}`),description:l.$t("songDialog.source")},null,8,["title","description"])]),_:1})):Se("",!0),e.item.id?($(),le(d,{key:3,tabindex:"0"},{default:K(()=>[V(f,null,{default:K(()=>[lg]),_:1}),V(c,{title:e.item.id,description:l.$t("songDialog.id")},null,8,["title","description"])]),_:1})):Se("",!0)]),_:1}),L("div",cg,[V(m,{onClick:u[3]||(u[3]=b=>o.value=!1),color:"primary"},{default:K(()=>[Wt(ge(l.$t("close")),1)]),_:1})])])]),_:1},8,["modelValue"]),V(E,{modelValue:a.value,"onUpdate:modelValue":u[5]||(u[5]=b=>a.value=b),item:e.item},null,8,["modelValue","item"])],64)}}},fg=Ve(ug,[["__scopeId","data-v-2a2e2f70"]]),dg=Object.freeze(Object.defineProperty({__proto__:null,default:fg},Symbol.toStringTag,{value:"Module"}));const ro=typeof window<"u",pg=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Gt=e=>pg?Symbol(e):e,hg=(e,t,n)=>mg({l:e,k:t,s:n}),mg=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),je=e=>typeof e=="number"&&isFinite(e),_g=e=>Ko(e)==="[object Date]",Zr=e=>Ko(e)==="[object RegExp]",gs=e=>_e(e)&&Object.keys(e).length===0;function yg(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Xe=Object.assign;let ha;const Ho=()=>ha||(ha=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ma(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const gg=Object.prototype.hasOwnProperty;function Wo(e,t){return gg.call(e,t)}const Ne=Array.isArray,Ue=e=>typeof e=="function",Y=e=>typeof e=="string",Me=e=>typeof e=="boolean",Oe=e=>e!==null&&typeof e=="object",xc=Object.prototype.toString,Ko=e=>xc.call(e),_e=e=>Ko(e)==="[object Object]",vg=e=>e==null?"":Ne(e)||_e(e)&&e.toString===xc?JSON.stringify(e,null,2):String(e);const Tc={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function kc(e,t,n={}){const{domain:r,messages:s,args:o}=n,a=e,i=new SyntaxError(String(a));return i.code=e,t&&(i.location=t),i.domain=r,i}const Sc={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};const Jt=[];Jt[0]={w:[0],i:[3,0],["["]:[4],o:[7]};Jt[1]={w:[1],["."]:[2],["["]:[4],o:[7]};Jt[2]={w:[2],i:[3,0],[0]:[3,0]};Jt[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};Jt[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};Jt[5]={["'"]:[4,0],o:8,l:[5,0]};Jt[6]={['"']:[4,0],o:8,l:[6,0]};const bg=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function wg(e){return bg.test(e)}function Eg(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function xg(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Tg(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:wg(t)?Eg(t):"*"+t}function kg(e){const t=[];let n=-1,r=0,s=0,o,a,i,l,u,f,c;const d=[];d[0]=()=>{a===void 0?a=i:a+=i},d[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,r=4,d[0]();else{if(s=0,a===void 0||(a=Tg(a),a===!1))return!1;d[1]()}};function p(){const m=e[n+1];if(r===5&&m==="'"||r===6&&m==='"')return n++,i="\\"+m,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=xg(o),c=Jt[r],u=c[l]||c.l||8,u===8||(r=u[0],u[1]!==void 0&&(f=d[u[1]],f&&(i=o,f()===!1))))return;if(r===7)return t}}const _a=new Map;function Sg(e,t){return Oe(e)?e[t]:null}function Og(e,t){if(!Oe(e))return null;let n=_a.get(t);if(n||(n=kg(t),n&&_a.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;oe,Pg=e=>"",Cg="text",Ig=e=>e.length===0?"":e.join(""),Ag=vg;function ya(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Lg(e){const t=je(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(je(e.named.count)||je(e.named.n))?je(e.named.count)?e.named.count:je(e.named.n)?e.named.n:t:t}function Rg(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Mg(e={}){const t=e.locale,n=Lg(e),r=Oe(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?e.pluralRules[t]:ya,s=Oe(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?ya:void 0,o=b=>b[r(n,b.length,s)],a=e.list||[],i=b=>a[b],l=e.named||{};je(e.pluralIndex)&&Rg(n,l);const u=b=>l[b];function f(b){const S=Ue(e.messages)?e.messages(b):Oe(e.messages)?e.messages[b]:!1;return S||(e.parent?e.parent.message(b):Pg)}const c=b=>e.modifiers?e.modifiers[b]:zg,d=_e(e.processor)&&Ue(e.processor.normalize)?e.processor.normalize:Ig,p=_e(e.processor)&&Ue(e.processor.interpolate)?e.processor.interpolate:Ag,m=_e(e.processor)&&Y(e.processor.type)?e.processor.type:Cg,E={list:i,named:u,plural:o,linked:(b,...S)=>{const[k,O]=S;let w="text",y="";S.length===1?Oe(k)?(y=k.modifier||y,w=k.type||w):Y(k)&&(y=k||y):S.length===2&&(Y(k)&&(y=k||y),Y(O)&&(w=O||w));let v=f(b)(E);return w==="vnode"&&Ne(v)&&y&&(v=v[0]),y?c(y)(v,w):v},message:f,type:m,interpolate:p,normalize:d};return E}let mr=null;function $g(e){mr=e}function Ng(e,t,n){mr&&mr.emit(Sc.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Fg=Dg(Sc.FunctionTranslate);function Dg(e){return t=>mr&&mr.emit(e,t)}const Bg={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function jg(e,t,n){return[...new Set([n,...Ne(t)?t:Oe(t)?Object.keys(t):Y(t)?[t]:[n]])]}function Oc(e,t,n){const r=Y(n)?n:Yo,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ne(a);)a=ga(o,a,t);const i=Ne(t)||!_e(t)?t:t.default?t.default:null;a=Y(i)?[i]:i,Ne(a)&&ga(o,a,!1),s.__localeChainCache.set(r,o)}return o}function ga(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Hg(){return{upper:(e,t)=>t==="text"&&Y(e)?e.toUpperCase():t==="vnode"&&Oe(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Y(e)?e.toLowerCase():t==="vnode"&&Oe(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Y(e)?ba(e):t==="vnode"&&Oe(e)&&"__v_isVNode"in e?ba(e.children):e}}let Wg,zc;function Kg(e){zc=e}let Pc;function Yg(e){Pc=e}let Cc=null;const wa=e=>{Cc=e},Qg=()=>Cc;let Ic=null;const Ea=e=>{Ic=e},Xg=()=>Ic;let xa=0;function Gg(e={}){const t=Y(e.version)?e.version:qg,n=Y(e.locale)?e.locale:Yo,r=Ne(e.fallbackLocale)||_e(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,s=_e(e.messages)?e.messages:{[n]:{}},o=_e(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=_e(e.numberFormats)?e.numberFormats:{[n]:{}},i=Xe({},e.modifiers||{},Hg()),l=e.pluralRules||{},u=Ue(e.missing)?e.missing:null,f=Me(e.missingWarn)||Zr(e.missingWarn)?e.missingWarn:!0,c=Me(e.fallbackWarn)||Zr(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,p=!!e.unresolving,m=Ue(e.postTranslation)?e.postTranslation:null,h=_e(e.processor)?e.processor:null,E=Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,S=Ue(e.messageCompiler)?e.messageCompiler:Wg,k=Ue(e.messageResolver)?e.messageResolver:zc||Sg,O=Ue(e.localeFallbacker)?e.localeFallbacker:Pc||jg,w=Oe(e.fallbackContext)?e.fallbackContext:void 0,y=Ue(e.onWarn)?e.onWarn:yg,v=e,x=Oe(v.__datetimeFormatters)?v.__datetimeFormatters:new Map,R=Oe(v.__numberFormatters)?v.__numberFormatters:new Map,H=Oe(v.__meta)?v.__meta:{};xa++;const G={version:t,cid:xa,locale:n,fallbackLocale:r,messages:s,modifiers:i,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:c,fallbackFormat:d,unresolving:p,postTranslation:m,processor:h,warnHtmlMessage:E,escapeParameter:b,messageCompiler:S,messageResolver:k,localeFallbacker:O,fallbackContext:w,onWarn:y,__meta:H};return G.datetimeFormats=o,G.numberFormats=a,G.__datetimeFormatters=x,G.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&Ng(G,t,H),G}function Qo(e,t,n,r,s){const{missing:o,onWarn:a}=e;if(o!==null){const i=o(e,n,t,s);return Y(i)?i:t}else return t}function Qn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let Ac=Tc.__EXTEND_POINT__;const Rs=()=>++Ac,En={INVALID_ARGUMENT:Ac,INVALID_DATE_ARGUMENT:Rs(),INVALID_ISO_DATE_ARGUMENT:Rs(),__EXTEND_POINT__:Rs()};function xn(e){return kc(e,null,void 0)}const Ta=()=>"",bt=e=>Ue(e);function ka(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:a,messages:i}=e,[l,u]=so(...t),f=Me(u.missingWarn)?u.missingWarn:e.missingWarn,c=Me(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=Me(u.escapeParameter)?u.escapeParameter:e.escapeParameter,p=!!u.resolvedMessage,m=Y(u.default)||Me(u.default)?Me(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:"",h=n||m!=="",E=Y(u.locale)?u.locale:e.locale;d&&Jg(u);let[b,S,k]=p?[l,E,i[E]||{}]:Lc(e,l,E,a,c,f),O=b,w=l;if(!p&&!(Y(O)||bt(O))&&h&&(O=m,w=O),!p&&(!(Y(O)||bt(O))||!Y(S)))return s?vs:l;let y=!1;const v=()=>{y=!0},x=bt(O)?O:Rc(e,l,S,O,w,v);if(y)return O;const R=tv(e,S,k,u),H=Mg(R),G=Zg(e,x,H),U=r?r(G,l):G;if(__INTLIFY_PROD_DEVTOOLS__){const ce={timestamp:Date.now(),key:Y(l)?l:bt(O)?O.key:"",locale:S||(bt(O)?O.locale:""),format:Y(O)?O:bt(O)?O.source:"",message:U};ce.meta=Xe({},e.__meta,Qg()||{}),Fg(ce)}return U}function Jg(e){Ne(e.list)?e.list=e.list.map(t=>Y(t)?ma(t):t):Oe(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=ma(e.named[t]))})}function Lc(e,t,n,r,s,o){const{messages:a,onWarn:i,messageResolver:l,localeFallbacker:u}=e,f=u(e,r,n);let c={},d,p=null;const m="translate";for(let h=0;hr;return u.locale=n,u.key=t,u}const l=a(r,ev(e,n,s,r,i,o));return l.locale=n,l.key=t,l.source=r,l}function Zg(e,t,n){return t(n)}function so(...e){const[t,n,r]=e,s={};if(!Y(t)&&!je(t)&&!bt(t))throw xn(En.INVALID_ARGUMENT);const o=je(t)?String(t):(bt(t),t);return je(n)?s.plural=n:Y(n)?s.default=n:_e(n)&&!gs(n)?s.named=n:Ne(n)&&(s.list=n),je(r)?s.plural=r:Y(r)?s.default=r:_e(r)&&Xe(s,r),[o,s]}function ev(e,t,n,r,s,o){return{warnHtmlMessage:s,onError:a=>{throw o&&o(a),a},onCacheKey:a=>hg(t,n,a)}}function tv(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:a,fallbackLocale:i,fallbackWarn:l,missingWarn:u,fallbackContext:f}=e,d={locale:t,modifiers:s,pluralRules:o,messages:p=>{let m=a(n,p);if(m==null&&f){const[,,h]=Lc(f,p,t,i,l,u);m=a(h,p)}if(Y(m)){let h=!1;const b=Rc(e,p,t,m,p,()=>{h=!0});return h?Ta:b}else return bt(m)?m:Ta}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),je(r.plural)&&(d.pluralIndex=r.plural),d}function Sa(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:i}=e,[l,u,f,c]=oo(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,m=Y(f.locale)?f.locale:e.locale,h=a(e,s,m);if(!Y(l)||l==="")return new Intl.DateTimeFormat(m,c).format(u);let E={},b,S=null;const k="datetime format";for(let y=0;y{Mc.includes(l)?a[l]=n[l]:o[l]=n[l]}),Y(r)?o.locale=r:_e(r)&&(a=r),_e(s)&&(a=s),[o.key||"",i,o,a]}function Oa(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__datetimeFormatters.has(o)||r.__datetimeFormatters.delete(o)}}function za(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:i}=e,[l,u,f,c]=io(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,m=Y(f.locale)?f.locale:e.locale,h=a(e,s,m);if(!Y(l)||l==="")return new Intl.NumberFormat(m,c).format(u);let E={},b,S=null;const k="number format";for(let y=0;y{$c.includes(l)?a[l]=n[l]:o[l]=n[l]}),Y(r)?o.locale=r:_e(r)&&(a=r),_e(s)&&(a=s),[o.key||"",i,o,a]}function Pa(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__numberFormatters.has(o)||r.__numberFormatters.delete(o)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ho().__INTLIFY_PROD_DEVTOOLS__=!1);const nv="9.2.2";function rv(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Ho().__INTLIFY_PROD_DEVTOOLS__=!1)}Bg.__EXTEND_POINT__;let Nc=Tc.__EXTEND_POINT__;const Ge=()=>++Nc,st={UNEXPECTED_RETURN_TYPE:Nc,INVALID_ARGUMENT:Ge(),MUST_BE_CALL_SETUP_TOP:Ge(),NOT_INSLALLED:Ge(),NOT_AVAILABLE_IN_LEGACY_MODE:Ge(),REQUIRED_VALUE:Ge(),INVALID_VALUE:Ge(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ge(),NOT_INSLALLED_WITH_PROVIDE:Ge(),UNEXPECTED_ERROR:Ge(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ge(),BRIDGE_SUPPORT_VUE_2_ONLY:Ge(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ge(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ge(),__EXTEND_POINT__:Ge()};function ut(e,...t){return kc(e,null,void 0)}const ao=Gt("__transrateVNode"),lo=Gt("__datetimeParts"),co=Gt("__numberParts"),sv=Gt("__setPluralRules");Gt("__intlifyMeta");const ov=Gt("__injectWithOption");function uo(e){if(!Oe(e))return e;for(const t in e)if(!!Wo(e,t))if(!t.includes("."))Oe(e[t])&&uo(e[t]);else{const n=t.split("."),r=n.length-1;let s=e;for(let o=0;o{if("locale"in i&&"resource"in i){const{locale:l,resource:u}=i;l?(a[l]=a[l]||{},ir(u,a[l])):ir(u,a)}else Y(i)&&ir(JSON.parse(i),a)}),s==null&&o)for(const i in a)Wo(a,i)&&uo(a[i]);return a}const Lr=e=>!Oe(e)||Ne(e);function ir(e,t){if(Lr(e)||Lr(t))throw ut(st.INVALID_VALUE);for(const n in e)Wo(e,n)&&(Lr(e[n])||Lr(t[n])?t[n]=e[n]:ir(e[n],t[n]))}function Dc(e){return e.type}function iv(e,t,n){let r=Oe(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Fc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Oe(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Oe(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function Ca(e){return V(gr,null,e,0)}const Ia="__INTLIFY_META__";let Aa=0;function La(e){return(t,n,r,s)=>e(n,r,Vn()||void 0,s)}const av=()=>{const e=Vn();let t=null;return e&&(t=Dc(e)[Ia])?{[Ia]:t}:null};function Bc(e={},t){const{__root:n}=e,r=n===void 0;let s=Me(e.inheritLocale)?e.inheritLocale:!0;const o=Z(n&&s?n.locale.value:Y(e.locale)?e.locale:Yo),a=Z(n&&s?n.fallbackLocale.value:Y(e.fallbackLocale)||Ne(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),i=Z(Fc(o.value,e)),l=Z(_e(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),u=Z(_e(e.numberFormats)?e.numberFormats:{[o.value]:{}});let f=n?n.missingWarn:Me(e.missingWarn)||Zr(e.missingWarn)?e.missingWarn:!0,c=n?n.fallbackWarn:Me(e.fallbackWarn)||Zr(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:Me(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,m=Ue(e.missing)?e.missing:null,h=Ue(e.missing)?La(e.missing):null,E=Ue(e.postTranslation)?e.postTranslation:null,b=n?n.warnHtmlMessage:Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const k=n?n.modifiers:_e(e.modifiers)?e.modifiers:{};let O=e.pluralRules||n&&n.pluralRules,w;w=(()=>{r&&Ea(null);const T={version:nv,locale:o.value,fallbackLocale:a.value,messages:i.value,modifiers:k,pluralRules:O,missing:h===null?void 0:h,missingWarn:f,fallbackWarn:c,fallbackFormat:p,unresolving:!0,postTranslation:E===null?void 0:E,warnHtmlMessage:b,escapeParameter:S,messageResolver:e.messageResolver,__meta:{framework:"vue"}};T.datetimeFormats=l.value,T.numberFormats=u.value,T.__datetimeFormatters=_e(w)?w.__datetimeFormatters:void 0,T.__numberFormatters=_e(w)?w.__numberFormatters:void 0;const z=Gg(T);return r&&Ea(z),z})(),Qn(w,o.value,a.value);function v(){return[o.value,a.value,i.value,l.value,u.value]}const x=Le({get:()=>o.value,set:T=>{o.value=T,w.locale=o.value}}),R=Le({get:()=>a.value,set:T=>{a.value=T,w.fallbackLocale=a.value,Qn(w,o.value,T)}}),H=Le(()=>i.value),G=Le(()=>l.value),U=Le(()=>u.value);function ce(){return Ue(E)?E:null}function Ee(T){E=T,w.postTranslation=T}function ze(){return m}function xe(T){T!==null&&(h=La(T)),m=T,w.missing=h}const te=(T,z,W,Q,oe,ve)=>{v();let de;if(__INTLIFY_PROD_DEVTOOLS__)try{wa(av()),r||(w.fallbackContext=n?Xg():void 0),de=T(w)}finally{wa(null),r||(w.fallbackContext=void 0)}else de=T(w);if(je(de)&&de===vs){const[Ae,ot]=z();return n&&d?Q(n):oe(Ae)}else{if(ve(de))return de;throw ut(st.UNEXPECTED_RETURN_TYPE)}};function ae(...T){return te(z=>Reflect.apply(ka,null,[z,...T]),()=>so(...T),"translate",z=>Reflect.apply(z.t,z,[...T]),z=>z,z=>Y(z))}function Ze(...T){const[z,W,Q]=T;if(Q&&!Oe(Q))throw ut(st.INVALID_ARGUMENT);return ae(z,W,Xe({resolvedMessage:!0},Q||{}))}function kt(...T){return te(z=>Reflect.apply(Sa,null,[z,...T]),()=>oo(...T),"datetime format",z=>Reflect.apply(z.d,z,[...T]),()=>va,z=>Y(z))}function et(...T){return te(z=>Reflect.apply(za,null,[z,...T]),()=>io(...T),"number format",z=>Reflect.apply(z.n,z,[...T]),()=>va,z=>Y(z))}function We(T){return T.map(z=>Y(z)||je(z)||Me(z)?Ca(String(z)):z)}const yn={normalize:We,interpolate:T=>T,type:"vnode"};function A(...T){return te(z=>{let W;const Q=z;try{Q.processor=yn,W=Reflect.apply(ka,null,[Q,...T])}finally{Q.processor=null}return W},()=>so(...T),"translate",z=>z[ao](...T),z=>[Ca(z)],z=>Ne(z))}function q(...T){return te(z=>Reflect.apply(za,null,[z,...T]),()=>io(...T),"number format",z=>z[co](...T),()=>[],z=>Y(z)||Ne(z))}function B(...T){return te(z=>Reflect.apply(Sa,null,[z,...T]),()=>oo(...T),"datetime format",z=>z[lo](...T),()=>[],z=>Y(z)||Ne(z))}function X(T){O=T,w.pluralRules=O}function fe(T,z){const W=Y(z)?z:o.value,Q=_(W);return w.messageResolver(Q,T)!==null}function Pe(T){let z=null;const W=Oc(w,a.value,o.value);for(let Q=0;Q{s&&(o.value=T,w.locale=T,Qn(w,o.value,a.value))}),Ye(n.fallbackLocale,T=>{s&&(a.value=T,w.fallbackLocale=T,Qn(w,o.value,a.value))}));const I={id:Aa,locale:x,fallbackLocale:R,get inheritLocale(){return s},set inheritLocale(T){s=T,T&&n&&(o.value=n.locale.value,a.value=n.fallbackLocale.value,Qn(w,o.value,a.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:H,get modifiers(){return k},get pluralRules(){return O||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(T){f=T,w.missingWarn=f},get fallbackWarn(){return c},set fallbackWarn(T){c=T,w.fallbackWarn=c},get fallbackRoot(){return d},set fallbackRoot(T){d=T},get fallbackFormat(){return p},set fallbackFormat(T){p=T,w.fallbackFormat=p},get warnHtmlMessage(){return b},set warnHtmlMessage(T){b=T,w.warnHtmlMessage=T},get escapeParameter(){return S},set escapeParameter(T){S=T,w.escapeParameter=T},t:ae,getLocaleMessage:_,setLocaleMessage:g,mergeLocaleMessage:P,getPostTranslationHandler:ce,setPostTranslationHandler:Ee,getMissingHandler:ze,setMissingHandler:xe,[sv]:X};return I.datetimeFormats=G,I.numberFormats=U,I.rt=Ze,I.te=fe,I.tm=se,I.d=kt,I.n=et,I.getDateTimeFormat=C,I.setDateTimeFormat=M,I.mergeDateTimeFormat=F,I.getNumberFormat=j,I.setNumberFormat=N,I.mergeNumberFormat=D,I[ov]=e.__injectWithOption,I[ao]=A,I[lo]=B,I[co]=q,I}const Xo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function lv({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>r=[...r,...Ne(s.children)?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function jc(e){return we}const Ra={name:"i18n-t",props:Xe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>je(e)||!isNaN(e)}},Xo),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Go({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(c=>c!=="_"),a={};e.locale&&(a.locale=e.locale),e.plural!==void 0&&(a.plural=Y(e.plural)?+e.plural:e.plural);const i=lv(t,o),l=s[ao](e.keypath,i,a),u=Xe({},r),f=Y(e.tag)||Oe(e.tag)?e.tag:jc();return br(f,u,l)}}};function cv(e){return Ne(e)&&!Y(e[0])}function Vc(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const a={part:!0};let i={};e.locale&&(a.locale=e.locale),Y(e.format)?a.key=e.format:Oe(e.format)&&(Y(e.format.key)&&(a.key=e.format.key),i=Object.keys(e.format).reduce((d,p)=>n.includes(p)?Xe({},d,{[p]:e.format[p]}):d,{}));const l=r(e.value,a,i);let u=[a.key];Ne(l)?u=l.map((d,p)=>{const m=s[d.type],h=m?m({[d.type]:d.value,index:p,parts:l}):[d.value];return cv(h)&&(h[0].key=`${d.type}-${p}`),h}):Y(l)&&(u=[l]);const f=Xe({},o),c=Y(e.tag)||Oe(e.tag)?e.tag:jc();return br(c,f,u)}}const Ma={name:"i18n-n",props:Xe({value:{type:Number,required:!0},format:{type:[String,Object]}},Xo),setup(e,t){const n=e.i18n||Go({useScope:"parent",__useComponent:!0});return Vc(e,t,$c,(...r)=>n[co](...r))}},$a={name:"i18n-d",props:Xe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Xo),setup(e,t){const n=e.i18n||Go({useScope:"parent",__useComponent:!0});return Vc(e,t,Mc,(...r)=>n[lo](...r))}};function uv(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function fv(e){const t=a=>{const{instance:i,modifiers:l,value:u}=a;if(!i||!i.$)throw ut(st.UNEXPECTED_ERROR);const f=uv(e,i.$),c=Na(u);return[Reflect.apply(f.t,f,[...Fa(c)]),f]};return{created:(a,i)=>{const[l,u]=t(i);ro&&e.global===u&&(a.__i18nWatcher=Ye(u.locale,()=>{i.instance&&i.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{ro&&a.__i18nWatcher&&(a.__i18nWatcher(),a.__i18nWatcher=void 0,delete a.__i18nWatcher),a.__composer&&(a.__composer=void 0,delete a.__composer)},beforeUpdate:(a,{value:i})=>{if(a.__composer){const l=a.__composer,u=Na(i);a.textContent=Reflect.apply(l.t,l,[...Fa(u)])}},getSSRProps:a=>{const[i]=t(a);return{textContent:i}}}}function Na(e){if(Y(e))return{path:e};if(_e(e)){if(!("path"in e))throw ut(st.REQUIRED_VALUE,"path");return e}else throw ut(st.INVALID_VALUE)}function Fa(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,a={},i=r||{};return Y(n)&&(a.locale=n),je(s)&&(a.plural=s),je(o)&&(a.plural=o),[t,i,a]}function dv(e,t,...n){const r=_e(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Me(r.globalInstall)?r.globalInstall:!0)&&(e.component(s?"i18n":Ra.name,Ra),e.component(Ma.name,Ma),e.component($a.name,$a)),e.directive("t",fv(t))}const pv=Gt("global-vue-i18n");function hv(e={},t){const n=Me(e.globalInjection)?e.globalInjection:!0,r=!0,s=new Map,[o,a]=mv(e),i=Gt("");function l(c){return s.get(c)||null}function u(c,d){s.set(c,d)}function f(c){s.delete(c)}{const c={get mode(){return"composition"},get allowComposition(){return r},async install(d,...p){d.__VUE_I18N_SYMBOL__=i,d.provide(d.__VUE_I18N_SYMBOL__,c),n&&xv(d,c.global),dv(d,c,...p);const m=d.unmount;d.unmount=()=>{c.dispose(),m()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:f};return c}}function Go(e={}){const t=Vn();if(t==null)throw ut(st.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw ut(st.NOT_INSLALLED);const n=_v(t),r=gv(n),s=Dc(t),o=yv(e,s);if(o==="global")return iv(r,e,s),r;if(o==="parent"){let l=vv(n,t,e.__useComponent);return l==null&&(l=r),l}const a=n;let i=a.__getInstance(t);if(i==null){const l=Xe({},e);"__i18n"in s&&(l.__i18n=s.__i18n),r&&(l.__root=r),i=Bc(l),bv(a,t),a.__setInstance(t,i)}return i}function mv(e,t,n){const r=To();{const s=r.run(()=>Bc(e));if(s==null)throw ut(st.UNEXPECTED_ERROR);return[r,s]}}function _v(e){{const t=Re(e.isCE?pv:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ut(e.isCE?st.NOT_INSLALLED_WITH_PROVIDE:st.UNEXPECTED_ERROR);return t}}function yv(e,t){return gs(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function gv(e){return e.mode==="composition"?e.global:e.global.__composer}function vv(e,t,n=!1){let r=null;const s=t.root;let o=t.parent;for(;o!=null;){const a=e;if(e.mode==="composition"&&(r=a.__getInstance(o)),r!=null||s===o)break;o=o.parent}return r}function bv(e,t,n){Rt(()=>{},t),Xt(()=>{e.__deleteInstance(t)},t)}const wv=["locale","fallbackLocale","availableLocales"],Ev=["t","rt","d","n","tm"];function xv(e,t){const n=Object.create(null);wv.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s)throw ut(st.UNEXPECTED_ERROR);const o=Ie(s.value)?{get(){return s.value.value},set(a){s.value.value=a}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,Ev.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw ut(st.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)})}Kg(Og);Yg(Oc);rv();if(__INTLIFY_PROD_DEVTOOLS__){const e=Ho();e.__INTLIFY__=!0,$g(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Tt=Object.create(null);Tt.open="0";Tt.close="1";Tt.ping="2";Tt.pong="3";Tt.message="4";Tt.upgrade="5";Tt.noop="6";const jr=Object.create(null);Object.keys(Tt).forEach(e=>{jr[Tt[e]]=e});const Tv={type:"error",data:"parser error"},kv=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Sv=typeof ArrayBuffer=="function",Ov=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Uc=({type:e,data:t},n,r)=>kv&&t instanceof Blob?n?r(t):Da(t,r):Sv&&(t instanceof ArrayBuffer||Ov(t))?n?r(t):Da(new Blob([t]),r):r(Tt[e]+(t||"")),Da=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},Ba="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Jn=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,s=0,o,a,i,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r>4,f[s++]=(a&15)<<4|i>>2,f[s++]=(i&3)<<6|l&63;return u},Pv=typeof ArrayBuffer=="function",qc=(e,t)=>{if(typeof e!="string")return{type:"message",data:Hc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Cv(e.substring(1),t)}:jr[n]?e.length>1?{type:jr[n],data:e.substring(1)}:{type:jr[n]}:Tv},Cv=(e,t)=>{if(Pv){const n=zv(e);return Hc(n,t)}else return{base64:!0,data:e}},Hc=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Wc=String.fromCharCode(30),Iv=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((o,a)=>{Uc(o,!1,i=>{r[a]=i,++s===n&&t(r.join(Wc))})})},Av=(e,t)=>{const n=e.split(Wc),r=[];for(let s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Yc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Rv=setTimeout,Mv=clearTimeout;function bs(e,t){t.useNativeTimers?(e.setTimeoutFn=Rv.bind(Ut),e.clearTimeoutFn=Mv.bind(Ut)):(e.setTimeoutFn=setTimeout.bind(Ut),e.clearTimeoutFn=clearTimeout.bind(Ut))}const $v=1.33;function Nv(e){return typeof e=="string"?Fv(e):Math.ceil((e.byteLength||e.size)*$v)}function Fv(e){let t=0,n=0;for(let r=0,s=e.length;r=57344?n+=3:(r++,n+=4);return n}class Dv extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Qc extends Fe{constructor(t){super(),this.writable=!1,bs(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Dv(t,n,r)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=qc(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const Xc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),fo=64,Bv={};let ja=0,Rr=0,Va;function Ua(e){let t="";do t=Xc[e%fo]+t,e=Math.floor(e/fo);while(e>0);return t}function Gc(){const e=Ua(+new Date);return e!==Va?(ja=0,Va=e):e+"."+Ua(ja++)}for(;Rr{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Av(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Iv(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Gc()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const s=Jc(t),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Et(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(s,o)=>{this.onError("xhr post error",s,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Et extends Fe{constructor(t,n){super(),bs(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=Yc(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new eu(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Et.requestsCount++,Et.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Uv,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Et.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Et.requestsCount=0;Et.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",qa);else if(typeof addEventListener=="function"){const e="onpagehide"in Ut?"pagehide":"unload";addEventListener(e,qa,!1)}}function qa(){for(let e in Et.requests)Et.requests.hasOwnProperty(e)&&Et.requests[e].abort()}const tu=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Mr=Ut.WebSocket||Ut.MozWebSocket,Ha=!0,Wv="arraybuffer",Wa=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kv extends Qc{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Wa?{}:Yc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Ha&&!Wa?n?new Mr(t,n):new Mr(t):new Mr(t,n,r)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||Wv,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const a={};try{Ha&&this.ws.send(o)}catch{}s&&tu(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=Gc()),this.supportsBinary||(t.b64=1);const s=Jc(t),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(s.length?"?"+s:"")}check(){return!!Mr}}const Yv={websocket:Kv,polling:Hv},Qv=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Xv=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function po(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let s=Qv.exec(e||""),o={},a=14;for(;a--;)o[Xv[a]]=s[a]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Gv(o,o.path),o.queryKey=Jv(o,o.query),o}function Gv(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Jv(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,s,o){s&&(n[s]=o)}),n}let un=class extends Fe{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=po(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=po(n.host).host),bs(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=jv(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Kc,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Yv[t](r)}open(){let t;if(this.opts.rememberUpgrade&&un.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;un.priorWebsocketSuccess=!1;const s=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",c=>{if(!r)if(c.type==="pong"&&c.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;un.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const d=new Error("probe error");d.transport=n.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const a=c=>{const d=new Error("probe error: "+c);d.transport=n.name,o(),this.emitReserved("upgradeError",d)};function i(){a("transport closed")}function l(){a("socket closed")}function u(c){n&&c.name!==n.name&&o()}const f=()=>{n.removeListener("open",s),n.removeListener("error",a),n.removeListener("close",i),this.off("close",l),this.off("upgrading",u)};n.once("open",s),n.once("error",a),n.once("close",i),this.once("close",l),this.once("upgrading",u),n.open()}onOpen(){if(this.readyState="open",un.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,s){if(typeof n=="function"&&(s=n,n=void 0),typeof r=="function"&&(s=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),s&&this.once("flush",s),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){un.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const s=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,nu=Object.prototype.toString,n0=typeof Blob=="function"||typeof Blob<"u"&&nu.call(Blob)==="[object BlobConstructor]",r0=typeof File=="function"||typeof File<"u"&&nu.call(File)==="[object FileConstructor]";function Jo(e){return e0&&(e instanceof ArrayBuffer||t0(e))||n0&&e instanceof Blob||r0&&e instanceof File}function Vr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num0;case he.ACK:case he.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class l0{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=o0(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const c0=Object.freeze(Object.defineProperty({__proto__:null,protocol:i0,get PacketType(){return he},Encoder:a0,Decoder:Zo},Symbol.toStringTag,{value:"Module"}));function ft(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const u0=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class ru extends Fe{constructor(t,n,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[ft(t,"open",this.onopen.bind(this)),ft(t,"packet",this.onpacket.bind(this)),ft(t,"error",this.onerror.bind(this)),ft(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(u0.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const r={type:he.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const a=this.ids++,i=n.pop();this._registerAckCallback(a,i),r.id=a}const s=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!s||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){const r=this.flags.timeout;if(r===void 0){this.acks[t]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let o=0;o{this.io.clearTimeoutFn(s),n.apply(this,[null,...o])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:he.CONNECT,data:t})}):this.packet({type:he.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case he.CONNECT:if(t.data&&t.data.sid){const s=t.data.sid;this.onconnect(s)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case he.EVENT:case he.BINARY_EVENT:this.onevent(t);break;case he.ACK:case he.BINARY_ACK:this.onack(t);break;case he.DISCONNECT:this.ondisconnect();break;case he.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let r=!1;return function(...s){r||(r=!0,n.packet({type:he.ACK,id:t,data:s}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:he.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}Un.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Un.prototype.reset=function(){this.attempts=0};Un.prototype.setMin=function(e){this.ms=e};Un.prototype.setMax=function(e){this.max=e};Un.prototype.setJitter=function(e){this.jitter=e};class _o extends Fe{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,bs(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Un({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const s=n.parser||c0;this.encoder=new s.Encoder,this.decoder=new s.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new un(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const s=ft(n,"open",function(){r.onopen(),t&&t()}),o=ft(n,"error",a=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",a),t?t(a):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const a=this._timeout;a===0&&s();const i=this.setTimeoutFn(()=>{s(),n.close(),n.emit("error",new Error("timeout"))},a);this.opts.autoUnref&&i.unref(),this.subs.push(function(){clearTimeout(i)})}return this.subs.push(s),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(ft(t,"ping",this.onping.bind(this)),ft(t,"data",this.ondata.bind(this)),ft(t,"error",this.onerror.bind(this)),ft(t,"close",this.onclose.bind(this)),ft(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){tu(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new ru(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(s=>{s?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",s)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Xn={};function Ur(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=Zv(e,t.path||"/socket.io"),r=n.source,s=n.id,o=n.path,a=Xn[s]&&o in Xn[s].nsps,i=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return i?l=new _o(r,t):(Xn[s]||(Xn[s]=new _o(r,t)),l=Xn[s]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ur,{Manager:_o,Socket:ru,io:Ur,connect:Ur});const f0={"en-US":{language:e=>{const{normalize:t}=e;return t(["Language"])},language_name:e=>{const{normalize:t}=e;return t(["English (US)"])},nav:{library:e=>{const{normalize:t}=e;return t(["Library"])},search:e=>{const{normalize:t}=e;return t(["Search"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},folders:e=>{const{normalize:t}=e;return t(["Folders"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},songs:e=>{const{normalize:t}=e;return t(["Songs"])}},songs:e=>{const{normalize:t,interpolate:n,named:r,plural:s}=e;return s([t(["no songs"]),t(["1 song"]),t([n(r("count"))," songs"])])},waitForPlay:e=>{const{normalize:t}=e;return t(["No songs in queue"])},login:e=>{const{normalize:t}=e;return t(["Login"])},username:e=>{const{normalize:t}=e;return t(["Username"])},password:e=>{const{normalize:t}=e;return t(["Password"])},close:e=>{const{normalize:t}=e;return t(["Close"])},save:e=>{const{normalize:t}=e;return t(["Save"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},404:{title:e=>{const{normalize:t}=e;return t(["Page not found"])},description:e=>{const{normalize:t}=e;return t(["This page may have been removed or does not exist."])}},source:{Netease2:e=>{const{normalize:t}=e;return t(["Netease"])},poka:e=>{const{normalize:t}=e;return t(["Poka"])},DSM:e=>{const{normalize:t}=e;return t(["DSM"])},QQMusic:e=>{const{normalize:t}=e;return t(["QQ Music"])},YouTube:e=>{const{normalize:t}=e;return t(["YouTube"])}},home:{home_pins:e=>{const{normalize:t}=e;return t(["Pins"])},home_recentAlbums:e=>{const{normalize:t}=e;return t(["Recent Albums"])},home_hqPlaylist_netease:e=>{const{normalize:t}=e;return t(["High Quality Playlist"])},home_topPlaylist_netease:e=>{const{normalize:t}=e;return t(["Top Playlist"])},home_dailyRecommend_netease:e=>{const{normalize:t}=e;return t(["Daily Recommend"])},home_netease:e=>{const{normalize:t}=e;return t(["Netease"])}},album:{playAll:e=>{const{normalize:t}=e;return t(["Play"])},playAllShuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},pin:{pin:e=>{const{normalize:t}=e;return t(["Pin"])},unpin:e=>{const{normalize:t}=e;return t(["Unpin"])},loading:e=>{const{normalize:t}=e;return t(["Loading"])}},lyric:{isLyricCorrect:{title:e=>{const{normalize:t}=e;return t(["Is the current lyric correct?"])},description:e=>{const{normalize:t}=e;return t(['Click "Correct" to save the current lyric to the database, and the current lyric will be loaded next time you listen to this song.'])},correct:e=>{const{normalize:t}=e;return t(["Correct"])},search:e=>{const{normalize:t}=e;return t(["Search other lyrics"])}},currentLyricSource:{saved:{title:e=>{const{normalize:t}=e;return t(["The current lyric comes from the saved lyric"])},description:e=>{const{normalize:t}=e;return t(["To search for lyrics, please enter a keyword in the box above and click the search button"])}}}},settings:{quality:{title:e=>{const{normalize:t}=e;return t(["Quality"])},description:e=>{const{normalize:t}=e;return t(["Set the quality of the music"])},low:{title:e=>{const{normalize:t}=e;return t(["Low quality"])},description:e=>{const{normalize:t}=e;return t(["128K, similar to YouTube, can stream in poor network conditions"])}},medium:{title:e=>{const{normalize:t}=e;return t(["Medium quality"])},description:e=>{const{normalize:t}=e;return t(["Quality is better than YouTube only a little, can stream be in 3G network"])}},high:{title:e=>{const{normalize:t}=e;return t(["High quality"])},description:e=>{const{normalize:t}=e;return t(["High quality music, the quality is relatively high, but the file size is relatively large"])}},original:{title:e=>{const{normalize:t}=e;return t(["Original quality"])},description:e=>{const{normalize:t}=e;return t(["Original quality music, the quality is the best, but the file size is the largest"])}}},theme:{title:e=>{const{normalize:t}=e;return t(["Theme"])},description:e=>{const{normalize:t}=e;return t(["Set the color and attributes of the interface"])},themeAndColor:e=>{const{normalize:t}=e;return t(["Theme and Color"])},default:e=>{const{normalize:t}=e;return t(["Default"])},preview:e=>{const{normalize:t}=e;return t(["Preview"])},custom:e=>{const{normalize:t}=e;return t(["Custom"])},color:e=>{const{normalize:t}=e;return t(["Color"])},textColor:e=>{const{normalize:t}=e;return t(["Text Color"])},style:e=>{const{normalize:t}=e;return t(["Style"])},cardWidth:e=>{const{normalize:t}=e;return t(["Card Width"])},borderRadius:e=>{const{normalize:t}=e;return t(["Border Radius"])},padding:e=>{const{normalize:t}=e;return t(["Padding"])}},pins:{title:e=>{const{normalize:t}=e;return t(["Pins"])},description:e=>{const{normalize:t}=e;return t(["Manage pinned items"])},intro:e=>{const{normalize:t}=e;return t(["Click the trash can icon to remove pinned items"])}},user:{title:e=>{const{normalize:t}=e;return t(["User"])},description:e=>{const{normalize:t}=e;return t(["Change password, modify username or name"])},name:e=>{const{normalize:t}=e;return t(["Name"])},username:e=>{const{normalize:t}=e;return t(["Username"])},id:e=>{const{normalize:t}=e;return t(["ID"])},password:e=>{const{normalize:t}=e;return t(["Password"])},role:e=>{const{normalize:t}=e;return t(["Role"])},createTime:e=>{const{normalize:t}=e;return t(["Create Time"])},edit:e=>{const{normalize:t}=e;return t(["Edit"])},changePassword:e=>{const{normalize:t}=e;return t(["Change Password"])},oldPassword:e=>{const{normalize:t}=e;return t(["Old Password"])},newPassword:e=>{const{normalize:t}=e;return t(["New Password"])},confirmPassword:e=>{const{normalize:t}=e;return t(["Confirm Password"])}},system:{title:e=>{const{normalize:t}=e;return t(["System"])},description:e=>{const{normalize:t}=e;return t(["Modify configuration, update or restart system"])}},users:{title:e=>{const{normalize:t}=e;return t(["Users"])},description:e=>{const{normalize:t}=e;return t(["View, add, modify or delete users"])}},log:{title:e=>{const{normalize:t}=e;return t(["Log"])},description:e=>{const{normalize:t}=e;return t(["View system log, usually error messages will be displayed here"])}}},songDialog:{addToPlaylist:e=>{const{normalize:t}=e;return t(["Add to playlist"])},source:e=>{const{normalize:t}=e;return t(["Source"])},id:e=>{const{normalize:t}=e;return t(["ID"])},year:e=>{const{normalize:t}=e;return t(["Year"])},codec:e=>{const{normalize:t}=e;return t(["Codec"])}}},"zh-CN":{language:e=>{const{normalize:t}=e;return t(["语言"])},language_name:e=>{const{normalize:t}=e;return t(["简体中文(中国)"])},nav:{library:e=>{const{normalize:t}=e;return t(["媒体库"])},search:e=>{const{normalize:t}=e;return t(["搜索"])},albums:e=>{const{normalize:t}=e;return t(["专辑"])},artists:e=>{const{normalize:t}=e;return t(["艺术家"])},composers:e=>{const{normalize:t}=e;return t(["作曲家"])},playlists:e=>{const{normalize:t}=e;return t(["播放列表"])},folders:e=>{const{normalize:t}=e;return t(["文件夹"])},settings:e=>{const{normalize:t}=e;return t(["设置"])},songs:e=>{const{normalize:t}=e;return t(["歌曲"])}},songs:e=>{const{normalize:t,interpolate:n,named:r,plural:s}=e;return s([t(["没有歌曲"]),t(["1 首歌曲"]),t([n(r("count"))," 首歌曲"])])},waitForPlay:e=>{const{normalize:t}=e;return t(["队列中未有歌曲"])},login:e=>{const{normalize:t}=e;return t(["登录"])},username:e=>{const{normalize:t}=e;return t(["用户名"])},password:e=>{const{normalize:t}=e;return t(["密码"])},close:e=>{const{normalize:t}=e;return t(["关闭"])},save:e=>{const{normalize:t}=e;return t(["储存"])},cancel:e=>{const{normalize:t}=e;return t(["取消"])},404:{title:e=>{const{normalize:t}=e;return t(["找不到页面"])},description:e=>{const{normalize:t}=e;return t(["这个页面可能已被移除或是不存在。"])}},source:{Netease2:e=>{const{normalize:t}=e;return t(["网易云音乐"])},poka:e=>{const{normalize:t}=e;return t(["Poka"])},DSM:e=>{const{normalize:t}=e;return t(["DSM"])},QQMusic:e=>{const{normalize:t}=e;return t(["QQ 音乐"])},YouTube:e=>{const{normalize:t}=e;return t(["YouTube"])}},home:{home_pins:e=>{const{normalize:t}=e;return t(["钉选"])},home_recentAlbums:e=>{const{normalize:t}=e;return t(["最近新增的专辑"])},home_hqPlaylist_netease:e=>{const{normalize:t}=e;return t(["精品播放列表"])},home_topPlaylist_netease:e=>{const{normalize:t}=e;return t(["热门播放列表"])},home_dailyRecommend_netease:e=>{const{normalize:t}=e;return t(["每日推荐"])},home_netease:e=>{const{normalize:t}=e;return t(["网易云音乐"])}},album:{playAll:e=>{const{normalize:t}=e;return t(["全部播放"])},playAllShuffle:e=>{const{normalize:t}=e;return t(["随机播放"])}},pin:{pin:e=>{const{normalize:t}=e;return t(["钉选"])},unpin:e=>{const{normalize:t}=e;return t(["取消钉选"])},loading:e=>{const{normalize:t}=e;return t(["载入中"])}},lyric:{isLyricCorrect:{title:e=>{const{normalize:t}=e;return t(["目前的歌词正确吗?"])},description:e=>{const{normalize:t}=e;return t(["点击「正确」后,会将目前歌词储存到数据库,下次听这首歌时便会载入目前的歌词。"])},correct:e=>{const{normalize:t}=e;return t(["正确"])},search:e=>{const{normalize:t}=e;return t(["搜索其他歌词"])}},currentLyricSource:{saved:{title:e=>{const{normalize:t}=e;return t(["目前歌词来自已储存的歌词"])},description:e=>{const{normalize:t}=e;return t(["若要搜索歌词,请在上方输入关键词,并按下搜索按钮"])}}}},settings:{quality:{title:e=>{const{normalize:t}=e;return t(["音质"])},description:e=>{const{normalize:t}=e;return t(["设定音乐播放的音质"])},low:{title:e=>{const{normalize:t}=e;return t(["低"])},description:e=>{const{normalize:t}=e;return t(["低质量音质,能在网络状况不佳的环境下使用"])}},medium:{title:e=>{const{normalize:t}=e;return t(["中"])},description:e=>{const{normalize:t}=e;return t(["中质量音质,能使用较少的流量聆听音乐,但音质相对普通"])}},high:{title:e=>{const{normalize:t}=e;return t(["高"])},description:e=>{const{normalize:t}=e;return t(["高质量音质,在音质与档案大小之间取得平衡"])}},original:{title:e=>{const{normalize:t}=e;return t(["原始"])},description:e=>{const{normalize:t}=e;return t(["载入原始档案,适合在网络状况良好的环境下使用"])}}},theme:{title:e=>{const{normalize:t}=e;return t(["主题"])},description:e=>{const{normalize:t}=e;return t(["设定界面中的色彩与属性"])},themeAndColor:e=>{const{normalize:t}=e;return t(["主题与色彩"])},default:e=>{const{normalize:t}=e;return t(["默认"])},preview:e=>{const{normalize:t}=e;return t(["预览"])},custom:e=>{const{normalize:t}=e;return t(["自订"])},color:e=>{const{normalize:t}=e;return t(["色彩"])},textColor:e=>{const{normalize:t}=e;return t(["文字色彩"])},style:e=>{const{normalize:t}=e;return t(["样式"])},cardWidth:e=>{const{normalize:t}=e;return t(["卡片宽度"])},borderRadius:e=>{const{normalize:t}=e;return t(["圆角"])},padding:e=>{const{normalize:t}=e;return t(["间隙"])}},pins:{title:e=>{const{normalize:t}=e;return t(["钉选"])},description:e=>{const{normalize:t}=e;return t(["管理钉选项目"])},intro:e=>{const{normalize:t}=e;return t(["点击垃圾桶图示以移除钉选项目"])}},user:{title:e=>{const{normalize:t}=e;return t(["用户"])},description:e=>{const{normalize:t}=e;return t(["修改名称、使用者名称或密码"])},name:e=>{const{normalize:t}=e;return t(["用户名"])},username:e=>{const{normalize:t}=e;return t(["用户名"])},id:e=>{const{normalize:t}=e;return t(["ID"])},password:e=>{const{normalize:t}=e;return t(["密码"])},role:e=>{const{normalize:t}=e;return t(["角色"])},createTime:e=>{const{normalize:t}=e;return t(["创建时间"])},edit:e=>{const{normalize:t}=e;return t(["编辑"])},changePassword:e=>{const{normalize:t}=e;return t(["更改密码"])},oldPassword:e=>{const{normalize:t}=e;return t(["旧密码"])},newPassword:e=>{const{normalize:t}=e;return t(["新密码"])},confirmPassword:e=>{const{normalize:t}=e;return t(["确认密码"])}},system:{title:e=>{const{normalize:t}=e;return t(["系统"])},description:e=>{const{normalize:t}=e;return t(["修改设定档、更新或重新启动系统"])}},users:{title:e=>{const{normalize:t}=e;return t(["使用者管理"])},description:e=>{const{normalize:t}=e;return t(["查看、新增、修改或删除使用者"])}},log:{title:e=>{const{normalize:t}=e;return t(["日志"])},description:e=>{const{normalize:t}=e;return t(["查看系统日志,通常发生错误时会在此显示"])}}},songDialog:{addToPlaylist:e=>{const{normalize:t}=e;return t(["添加到播放列表"])},source:e=>{const{normalize:t}=e;return t(["来源"])},id:e=>{const{normalize:t}=e;return t(["ID"])},year:e=>{const{normalize:t}=e;return t(["年份"])},codec:e=>{const{normalize:t}=e;return t(["格式"])}}},"zh-TW":{language:e=>{const{normalize:t}=e;return t(["語言"])},language_name:e=>{const{normalize:t}=e;return t(["繁體中文(台灣)"])},nav:{library:e=>{const{normalize:t}=e;return t(["媒體庫"])},search:e=>{const{normalize:t}=e;return t(["搜尋"])},albums:e=>{const{normalize:t}=e;return t(["專輯"])},artists:e=>{const{normalize:t}=e;return t(["演出者"])},composers:e=>{const{normalize:t}=e;return t(["作曲者"])},playlists:e=>{const{normalize:t}=e;return t(["播放清單"])},folders:e=>{const{normalize:t}=e;return t(["資料夾"])},settings:e=>{const{normalize:t}=e;return t(["設定"])},songs:e=>{const{normalize:t}=e;return t(["歌曲"])}},songs:e=>{const{normalize:t,interpolate:n,named:r,plural:s}=e;return s([t(["沒有歌曲"]),t(["1 首歌曲"]),t([n(r("count"))," 首歌曲"])])},waitForPlay:e=>{const{normalize:t}=e;return t(["佇列中未有歌曲"])},login:e=>{const{normalize:t}=e;return t(["登入"])},username:e=>{const{normalize:t}=e;return t(["使用者名稱"])},password:e=>{const{normalize:t}=e;return t(["密碼"])},close:e=>{const{normalize:t}=e;return t(["關閉"])},save:e=>{const{normalize:t}=e;return t(["儲存"])},cancel:e=>{const{normalize:t}=e;return t(["取消"])},404:{title:e=>{const{normalize:t}=e;return t(["找不到頁面"])},description:e=>{const{normalize:t}=e;return t(["這個頁面可能已被移除或是不存在。"])}},source:{Netease2:e=>{const{normalize:t}=e;return t(["網易雲音樂"])},poka:e=>{const{normalize:t}=e;return t(["Poka"])},DSM:e=>{const{normalize:t}=e;return t(["DSM"])},QQMusic:e=>{const{normalize:t}=e;return t(["QQ 音樂"])},YouTube:e=>{const{normalize:t}=e;return t(["YouTube"])}},home:{home_pins:e=>{const{normalize:t}=e;return t(["釘選"])},home_recentAlbums:e=>{const{normalize:t}=e;return t(["最近新增的專輯"])},home_hqPlaylist_netease:e=>{const{normalize:t}=e;return t(["高品質播放清單"])},home_topPlaylist_netease:e=>{const{normalize:t}=e;return t(["熱門播放清單"])},home_dailyRecommend_netease:e=>{const{normalize:t}=e;return t(["每日推薦"])},home_netease:e=>{const{normalize:t}=e;return t(["網易雲音樂"])}},album:{playAll:e=>{const{normalize:t}=e;return t(["全部播放"])},playAllShuffle:e=>{const{normalize:t}=e;return t(["隨機播放"])}},pin:{pin:e=>{const{normalize:t}=e;return t(["釘選"])},unpin:e=>{const{normalize:t}=e;return t(["取消釘選"])},loading:e=>{const{normalize:t}=e;return t(["載入中"])}},lyric:{isLyricCorrect:{title:e=>{const{normalize:t}=e;return t(["目前的歌詞正確嗎?"])},description:e=>{const{normalize:t}=e;return t(["點選「正確」後,會將目前歌詞儲存到資料庫,下次聽這首歌時便會載入目前的歌詞。"])},correct:e=>{const{normalize:t}=e;return t(["正確"])},search:e=>{const{normalize:t}=e;return t(["搜尋其他歌詞"])}},currentLyricSource:{saved:{title:e=>{const{normalize:t}=e;return t(["目前歌詞來自已儲存的歌詞"])},description:e=>{const{normalize:t}=e;return t(["若要搜尋歌詞,請在上方輸入關鍵字,並按下搜尋按鈕"])}}}},settings:{quality:{title:e=>{const{normalize:t}=e;return t(["音質"])},description:e=>{const{normalize:t}=e;return t(["設定音樂播放的音質"])},low:{title:e=>{const{normalize:t}=e;return t(["低音質"])},description:e=>{const{normalize:t}=e;return t(["128K,跟 YouTube 差不多的爛音質,在網路夭壽慢的情況下請選擇此選項"])}},medium:{title:e=>{const{normalize:t}=e;return t(["中音質"])},description:e=>{const{normalize:t}=e;return t(["音質只比 YouTube 好那麼一點點,可在 3G 網路下流暢的串流"])}},high:{title:e=>{const{normalize:t}=e;return t(["高音質"])},description:e=>{const{normalize:t}=e;return t(["音質較原始音質略差,可在 4G 網路下流暢的串流"])}},original:{title:e=>{const{normalize:t}=e;return t(["原始音質"])},description:e=>{const{normalize:t}=e;return t(["在網路狀況許可下,可選擇此選項聆聽高音質音樂"])}}},theme:{title:e=>{const{normalize:t}=e;return t(["主題"])},description:e=>{const{normalize:t}=e;return t(["設定介面中的色彩與屬性"])},themeAndColor:e=>{const{normalize:t}=e;return t(["主題與色彩"])},default:e=>{const{normalize:t}=e;return t(["預設"])},preview:e=>{const{normalize:t}=e;return t(["預覽"])},custom:e=>{const{normalize:t}=e;return t(["自訂"])},color:e=>{const{normalize:t}=e;return t(["色彩"])},textColor:e=>{const{normalize:t}=e;return t(["文字色彩"])},style:e=>{const{normalize:t}=e;return t(["樣式"])},cardWidth:e=>{const{normalize:t}=e;return t(["卡片寬度"])},borderRadius:e=>{const{normalize:t}=e;return t(["圓角"])},padding:e=>{const{normalize:t}=e;return t(["間隙"])}},pins:{title:e=>{const{normalize:t}=e;return t(["釘選"])},description:e=>{const{normalize:t}=e;return t(["管理首頁釘選項目"])},intro:e=>{const{normalize:t}=e;return t(["點選垃圾桶圖示以移除釘選項目"])}},user:{title:e=>{const{normalize:t}=e;return t(["使用者"])},description:e=>{const{normalize:t}=e;return t(["修改名稱、使用者名稱或密碼"])},name:e=>{const{normalize:t}=e;return t(["名稱"])},username:e=>{const{normalize:t}=e;return t(["使用者名稱"])},id:e=>{const{normalize:t}=e;return t(["ID"])},password:e=>{const{normalize:t}=e;return t(["密碼"])},role:e=>{const{normalize:t}=e;return t(["權限"])},createTime:e=>{const{normalize:t}=e;return t(["建立時間"])},edit:e=>{const{normalize:t}=e;return t(["編輯"])},changePassword:e=>{const{normalize:t}=e;return t(["修改密碼"])},oldPassword:e=>{const{normalize:t}=e;return t(["舊密碼"])},newPassword:e=>{const{normalize:t}=e;return t(["新密碼"])},confirmPassword:e=>{const{normalize:t}=e;return t(["確認密碼"])},changeSuccess:e=>{const{normalize:t}=e;return t(["修改成功"])},changeFailed:e=>{const{normalize:t}=e;return t(["修改失敗"])}},system:{title:e=>{const{normalize:t}=e;return t(["系統"])},description:e=>{const{normalize:t}=e;return t(["修改設定檔、更新或重新啟動系統"])}},users:{title:e=>{const{normalize:t}=e;return t(["使用者管理"])},description:e=>{const{normalize:t}=e;return t(["查看、新增、修改或刪除使用者"])}},log:{title:e=>{const{normalize:t}=e;return t(["日誌"])},description:e=>{const{normalize:t}=e;return t(["查看系統日誌,通常發生錯誤時會在此顯示"])}}},songDialog:{addToPlaylist:e=>{const{normalize:t}=e;return t(["新增到播放清單"])},source:e=>{const{normalize:t}=e;return t(["來源"])},id:e=>{const{normalize:t}=e;return t(["ID"])},year:e=>{const{normalize:t}=e;return t(["年份"])},codec:e=>{const{normalize:t}=e;return t(["格式"])}}}},d0={class:"root-container"},su={__name:"App",setup(e){return(t,n)=>($(),ee("div",d0,[V(De(yc))]))}},p0=Object.freeze(Object.defineProperty({__proto__:null,default:su},Symbol.toStringTag,{value:"Module"})),h0="modulepreload",m0=function(e){return"/"+e},Ka={},ke=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=m0(o),o in Ka)return;Ka[o]=!0;const a=o.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!r)for(let f=s.length-1;f>=0;f--){const c=s[f];if(c.href===o&&(!a||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${i}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":h0,a||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),a)return new Promise((f,c)=>{u.addEventListener("load",f),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())},_0=qm({history:lm("/"),routes:[{path:"/",name:"app",component:()=>ke(()=>Promise.resolve().then(()=>p0),void 0),children:[{path:"/",name:"default-layout",component:()=>ke(()=>import("./default-cc766d12.js"),["assets/default-cc766d12.js","assets/user-7208dd84.js","assets/default-ae053ae9.css"]),children:[{path:"/",name:"Library",component:()=>ke(()=>import("./Library-2f384dbb.js"),[])},{path:"/albums",name:"Albums",component:()=>ke(()=>import("./Albums-f7ccb10a.js"),[]),meta:{type:"albums"}},{path:"/album/:source/:id",name:"Album",component:()=>ke(()=>import("./Album-b572eba6.js"),["assets/Album-b572eba6.js","assets/Album-7e10ba23.css"]),meta:{type:"album"}},{path:"/artists",name:"Artists",component:()=>ke(()=>import("./Artists-ef29ff45.js"),[]),meta:{type:"artists"}},{path:"/artist/:source/:id",name:"Artist",component:()=>ke(()=>import("./Albums-f7ccb10a.js"),[]),meta:{type:"artists"}},{path:"/composers",name:"Composers",component:()=>ke(()=>import("./Artists-ef29ff45.js"),[]),meta:{type:"composers"}},{path:"/composer/:source/:id",name:"Composer",component:()=>ke(()=>import("./Albums-f7ccb10a.js"),[]),meta:{type:"composers"}},{path:"/folders",name:"Folders",component:()=>ke(()=>import("./Folders-b6dcec00.js"),[])},{path:"/folder/:source/:id",name:"Folder",component:()=>ke(()=>import("./Folders-b6dcec00.js"),[])},{path:"/playlists",name:"Playlists",component:()=>ke(()=>import("./Playlists-464da93d.js"),[])},{path:"/playlists/folder/:id",name:"PlaylistsFolder",component:()=>ke(()=>import("./Playlists-464da93d.js"),[])},{path:"/playlist/:source/:id",name:"Playlist",component:()=>ke(()=>import("./Album-b572eba6.js"),["assets/Album-b572eba6.js","assets/Album-7e10ba23.css"]),meta:{type:"playlist"}},{path:"/search",name:"Search",component:()=>ke(()=>import("./Search-a84a4f3d.js"),["assets/Search-a84a4f3d.js","assets/Search-f3c2d4ea.css"])},{path:"/settings",name:"Settings",component:()=>ke(()=>import("./Index-eaaa4aa4.js"),["assets/Index-eaaa4aa4.js","assets/user-7208dd84.js"])},{path:"/settings/theme",name:"SettingsTheme",component:()=>ke(()=>import("./Theme-50084bb6.js"),["assets/Theme-50084bb6.js","assets/Theme-08e39d68.css"])},{path:"/settings/quality",name:"SettingsQuality",component:()=>ke(()=>import("./Quality-aa24cb39.js"),[])},{path:"/settings/pins",name:"SettingsPins",component:()=>ke(()=>import("./Pins-bbd13c76.js"),[])},{path:"/settings/user",name:"SettingsUser",component:()=>ke(()=>import("./User-919a59a1.js"),["assets/User-919a59a1.js","assets/user-7208dd84.js"])},{path:"/settings/users",name:"SettingsUsers",component:()=>ke(()=>import("./Users-53b15036.js"),[])},{path:"/settings/log",name:"SettingsLog",component:()=>ke(()=>import("./Log-c4f1fe24.js"),["assets/Log-c4f1fe24.js","assets/Log-c9db7119.css"])},{path:"/settings/System",name:"SettingsSystem",component:()=>ke(()=>import("./System-1c51c1c6.js"),[])},{path:"/:pathMatch(.*)*",name:"404",component:()=>ke(()=>import("./404-339ee317.js"),[])}]},{path:"/empty",name:"empty-layout",component:()=>ke(()=>import("./empty-9433203d.js"),[]),children:[{path:"/login",name:"Login",component:()=>ke(()=>import("./Login-009fd789.js"),["assets/Login-009fd789.js","assets/Login-65f28d2c.css"])}]}]}]});var On,zn,ue,pe;class y0{constructor(){en(this,ue);en(this,On,localStorage.getItem("username")||"");en(this,zn,localStorage.getItem("password")||"")}async login(t,n){Es(this,On,t),Es(this,zn,n),await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/logout/"});let r=await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/login/",method:"POST",body:{username:Hn(this,On),password:Hn(this,zn)}});return r.success&&(localStorage.setItem("username",Hn(this,On)),localStorage.setItem("password",Hn(this,zn))),r}async getUserInfo(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/"})}async getSystemInfo(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/info/"})}async getAlbums(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/albums/"})}async getAlbum(t,n){return t=encodeURIComponent(t),n=encodeURIComponent(n),await ie(this,ue,pe).call(this,{url:`/pokaapi/album?moduleName=${t}&id=${n}`})}async getArtists(){return(await ie(this,ue,pe).call(this,{url:"/pokaapi/artists/"})).artists}async getComposers(){return(await ie(this,ue,pe).call(this,{url:"/pokaapi/composers/"})).composers}async getArtistAlbums(t,n,r){t=encodeURIComponent(t),n=encodeURIComponent(n),r=encodeURIComponent(r);let s;return n==="artists"?s=`/pokaapi/artistAlbums/?moduleName=${t}&id=${r}`:s=`/pokaapi/composerAlbums/?moduleName=${t}&id=${r}`,await ie(this,ue,pe).call(this,{url:s})}async getArtistInfo(t,n,r){t=encodeURIComponent(t),n=encodeURIComponent(n),r=encodeURIComponent(r);let s=`/pokaapi/${n}/?moduleName=${t}&id=${r}`;return await ie(this,ue,pe).call(this,{url:s})}async getFolders(t,n){let r="/pokaapi/folders/";return t&&n&&(t=encodeURIComponent(t),n=encodeURIComponent(n),r=`/pokaapi/folderFiles/?moduleName=${t}&id=${n}`),await ie(this,ue,pe).call(this,{url:r})}async getPlaylists(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/playlists/"})}async getPlaylist(t,n){return t=encodeURIComponent(t),n=encodeURIComponent(n),await ie(this,ue,pe).call(this,{url:`/pokaapi/playlistSongs/?moduleName=${t}&id=${n}`})}async getHome(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/home/"})}async getLyric(t,n){return await ie(this,ue,pe).call(this,{url:`/pokaapi/lyric/?moduleName=${t}&id=${n}`})}async getLyricByKeyword(t){return await ie(this,ue,pe).call(this,{url:`/pokaapi/searchLyrics/?keyword=${t}`})}async saveLyric({title:t,artist:n,songId:r,source:s,lyric:o}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/lyric",method:"POST",body:{title:t,artist:n,songId:r,source:s,lyric:o}})}async search(t){return await ie(this,ue,pe).call(this,{url:`/pokaapi/search/?keyword=${t}`})}async getPinStatus({source:t,id:n,name:r,type:s}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/ispinned",method:"POST",body:{source:t,id:n,name:r,type:s}})}async getPins(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/pins",method:"POST"})}async pin({source:t,id:n,name:r,cover:s,type:o,artist:a}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/pin",method:"POST",body:{source:t,id:n,name:r,type:o,cover:s,artist:a}})}async unpin({source:t,id:n,name:r,cover:s,type:o,artist:a}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/pin/unpin",method:"POST",body:{source:t,id:n,name:r,type:o,cover:s,artist:a}})}async checkSongExistInPlaylist(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/playlist/song/exist",method:"POST",body:t})}async toggleSongInPlaylist(t,n){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/playlist/song",method:"POST",body:{song:t,playlistId:n}})}async changeUserName(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/name",method:"POST",body:{n:t}})}async changeUserUsername(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/username",method:"POST",body:{n:t}})}async changeUserPassword(t,n){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/user/password",method:"POST",body:{oldpassword:t,password:n}})}async getUserList(){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/list"})}async createUser({username:t,password:n,name:r,role:s}){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/create",method:"POST",body:{username:t,password:n,name:r,role:s}})}async changeUserPasswordById(t,n){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/change-password",method:"POST",body:{_id:t,password:n}})}async deleteUser(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/users/delete",method:"POST",body:{_id:t}})}async getLog(t=0){return await ie(this,ue,pe).call(this,{url:`/pokaapi/v2/log?page=${t}`})}async addSongRecord(t){return await ie(this,ue,pe).call(this,{url:"/pokaapi/v2/record/add",method:"POST",body:t})}}On=new WeakMap,zn=new WeakMap,ue=new WeakSet,pe=async function({url:t,method:n="GET",body:r={},params:s={}}){return fetch(t,{method:n,credentials:"same-origin",body:n==="GET"?void 0:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then(o=>o.json())};function g0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yo={},v0={get exports(){return yo},set exports(e){yo=e}};(function(e,t){(function(n,r){e.exports=r()})(window,function(){return function(n){var r={};function s(o){if(r[o])return r[o].exports;var a=r[o]={i:o,l:!1,exports:{}};return n[o].call(a.exports,a,a.exports,s),a.l=!0,a.exports}return s.m=n,s.c=r,s.d=function(o,a,i){s.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:i})},s.r=function(o){Object.defineProperty(o,"__esModule",{value:!0})},s.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return s.d(a,"a",a),a},s.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},s.p="/",s(s.s=41)}([function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(i){var l=Math.floor(i/3600),u=Math.floor((i-3600*l)/60),f=Math.floor(i-3600*l-60*u);return(l>0?[l,u,f]:[u,f]).map(function(c){return c<10?"0"+c:""+c}).join(":")},getElementViewLeft:function(i){var l=i.offsetLeft,u=i.offsetParent,f=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;u!==null&&u!==i;)l+=u.offsetLeft,u=u.offsetParent;else for(;u!==null;)l+=u.offsetLeft,u=u.offsetParent;return l-f},getElementViewTop:function(i,l){for(var u,f=i.offsetTop,c=i.offsetParent;c!==null;)f+=c.offsetTop,c=c.offsetParent;return u=document.body.scrollTop+document.documentElement.scrollTop,l?f:f-u},isMobile:o,storage:{set:function(i,l){localStorage.setItem(i,l)},get:function(i){return localStorage.getItem(i)}},nameMap:{dragStart:o?"touchstart":"mousedown",dragMove:o?"touchmove":"mousemove",dragEnd:o?"touchend":"mouseup"},randomOrder:function(i){return function(l){for(var u=l.length-1;u>=0;u--){var f=Math.floor(Math.random()*(u+1)),c=l[f];l[f]=l[u],l[u]=c}return l}([].concat(function(l){if(Array.isArray(l)){for(var u=0,f=Array(l.length);u `,i+=f(m+d),i+=` diff --git a/public/assets/user-b8b24cf2.js b/public/assets/user-7208dd84.js similarity index 58% rename from public/assets/user-b8b24cf2.js rename to public/assets/user-7208dd84.js index 5b2674f..a0206f1 100644 --- a/public/assets/user-b8b24cf2.js +++ b/public/assets/user-7208dd84.js @@ -1 +1 @@ -import{h as o,i as t}from"./index-e2ba9829.js";const u=o("user",()=>{const e=t({});function r(s){e.value=s}return{userInfo:e,setUserInfo:r}});export{u}; +import{h as o,i as t}from"./index-e1e3d4ec.js";const u=o("user",()=>{const e=t({});function r(s){e.value=s}return{userInfo:e,setUserInfo:r}});export{u}; diff --git a/public/index.html b/public/index.html index 07d411b..31bee93 100644 --- a/public/index.html +++ b/public/index.html @@ -18,7 +18,7 @@ - + diff --git a/public/sw.js b/public/sw.js index 599db93..46461b7 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1 +1 @@ -if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(i,r)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const o=s=>l(s,n),t={module:{uri:n},exports:u,require:o};e[n]=Promise.all(i.map((s=>t[s]||o(s)))).then((s=>(r(...s),u)))}}define(["./workbox-7369c0e1"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/404-0d70ea11.js",revision:null},{url:"assets/Album-1909473a.js",revision:null},{url:"assets/Album-7e10ba23.css",revision:null},{url:"assets/Albums-9eac24cd.js",revision:null},{url:"assets/Artists-4c56b53b.js",revision:null},{url:"assets/default-6891f3e1.js",revision:null},{url:"assets/default-8ab79025.css",revision:null},{url:"assets/empty-2822923d.js",revision:null},{url:"assets/Folders-dc80bb70.js",revision:null},{url:"assets/index-d9ab6b72.css",revision:null},{url:"assets/index-e2ba9829.js",revision:null},{url:"assets/Index-fa08ca72.js",revision:null},{url:"assets/Library-471bc22c.js",revision:null},{url:"assets/Log-c923a30d.js",revision:null},{url:"assets/Log-c9db7119.css",revision:null},{url:"assets/Login-0dbf0b54.js",revision:null},{url:"assets/Login-65f28d2c.css",revision:null},{url:"assets/Pins-7eb471ef.js",revision:null},{url:"assets/Playlists-80ca990b.js",revision:null},{url:"assets/Quality-b3400423.js",revision:null},{url:"assets/Search-120adf63.js",revision:null},{url:"assets/Search-f3c2d4ea.css",revision:null},{url:"assets/System-2c260885.js",revision:null},{url:"assets/Theme-08e39d68.css",revision:null},{url:"assets/Theme-127d7a0b.js",revision:null},{url:"assets/User-69dafa56.js",revision:null},{url:"assets/user-b8b24cf2.js",revision:null},{url:"assets/Users-b042d73f.js",revision:null},{url:"index.html",revision:"b93ec69c0796e458acdd6af8c295e5fb"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"favicon.ico",revision:"de3528fc1966170b009743368e6fc4b3"},{url:"img/apple-touch-icon.png",revision:"bf1ff7241b39d4a945cff48130fd6af8"},{url:"img/icon.svg",revision:"4dde6544b72cded309d3a3b3dbd9c822"},{url:"img/pwa-192x192.png",revision:"1c154bf837876442174679d1ecfff61e"},{url:"img/pwa-512x512.png",revision:"8d5e56b6505094cae2e181f0d4fb889c"},{url:"manifest.webmanifest",revision:"7ed65e55f4121e9109d525fe95fcad44"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))})); +if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise((e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()})).then((()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s})));self.define=(i,r)=>{const n=s||("document"in self?document.currentScript.src:"")||location.href;if(e[n])return;let u={};const o=s=>l(s,n),t={module:{uri:n},exports:u,require:o};e[n]=Promise.all(i.map((s=>t[s]||o(s)))).then((s=>(r(...s),u)))}}define(["./workbox-7369c0e1"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/404-339ee317.js",revision:null},{url:"assets/Album-7e10ba23.css",revision:null},{url:"assets/Album-b572eba6.js",revision:null},{url:"assets/Albums-f7ccb10a.js",revision:null},{url:"assets/Artists-ef29ff45.js",revision:null},{url:"assets/default-ae053ae9.css",revision:null},{url:"assets/default-cc766d12.js",revision:null},{url:"assets/empty-9433203d.js",revision:null},{url:"assets/Folders-b6dcec00.js",revision:null},{url:"assets/index-d9ab6b72.css",revision:null},{url:"assets/index-e1e3d4ec.js",revision:null},{url:"assets/Index-eaaa4aa4.js",revision:null},{url:"assets/Library-2f384dbb.js",revision:null},{url:"assets/Log-c4f1fe24.js",revision:null},{url:"assets/Log-c9db7119.css",revision:null},{url:"assets/Login-009fd789.js",revision:null},{url:"assets/Login-65f28d2c.css",revision:null},{url:"assets/Pins-bbd13c76.js",revision:null},{url:"assets/Playlists-464da93d.js",revision:null},{url:"assets/Quality-aa24cb39.js",revision:null},{url:"assets/Search-a84a4f3d.js",revision:null},{url:"assets/Search-f3c2d4ea.css",revision:null},{url:"assets/System-1c51c1c6.js",revision:null},{url:"assets/Theme-08e39d68.css",revision:null},{url:"assets/Theme-50084bb6.js",revision:null},{url:"assets/user-7208dd84.js",revision:null},{url:"assets/User-919a59a1.js",revision:null},{url:"assets/Users-53b15036.js",revision:null},{url:"index.html",revision:"ddcf4b0460238c7d571cd9f1d5fb9615"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"favicon.ico",revision:"de3528fc1966170b009743368e6fc4b3"},{url:"img/apple-touch-icon.png",revision:"bf1ff7241b39d4a945cff48130fd6af8"},{url:"img/icon.svg",revision:"4dde6544b72cded309d3a3b3dbd9c822"},{url:"img/pwa-192x192.png",revision:"1c154bf837876442174679d1ecfff61e"},{url:"img/pwa-512x512.png",revision:"8d5e56b6505094cae2e181f0d4fb889c"},{url:"manifest.webmanifest",revision:"7ed65e55f4121e9109d525fe95fcad44"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html")))}));