diff --git a/package.json b/package.json index c1094af..d021537 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pokaplayer", - "version": "4.0.3", + "version": "4.0.4", "description": "", "main": "index.js", "scripts": { diff --git a/public/assets/404-b3f1d5c1.js b/public/assets/404-20688794.js similarity index 86% rename from public/assets/404-b3f1d5c1.js rename to public/assets/404-20688794.js index dfa2475..ea5fe7e 100644 --- a/public/assets/404-b3f1d5c1.js +++ b/public/assets/404-20688794.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-d10ff82d.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-dca75ef4.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-56482e8c.css b/public/assets/Album-56482e8c.css deleted file mode 100644 index 8c1e5a1..0000000 --- a/public/assets/Album-56482e8c.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.header[data-v-f4db92d1]{display:flex;gap:calc(var(--padding) * 2);padding-bottom:calc(var(--padding) * 2);margin-bottom:calc(var(--padding) * 2);border-bottom:1px solid var(--background-layer-2)}@media (max-width: 768px){.header[data-v-f4db92d1]{flex-direction:column;gap:calc(var(--padding));align-items:center;text-align:center}}.header .cover[data-v-f4db92d1]{width:200px;height:200px}.header .cover img[data-v-f4db92d1]{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;border-radius:var(--border-radius);border:1px solid var(--background-layer-2)}.header .album-info[data-v-f4db92d1]{display:flex;flex-direction:column;flex:1;width:100%}.header .album-info .title[data-v-f4db92d1]{font-size:1.75rem;font-weight:700;margin:calc(var(--padding) / 2) 0}.header .album-info .artist[data-v-f4db92d1]{font-size:1.5rem;color:var(--text-color);opacity:.75}.header .album-info .meta[data-v-f4db92d1]{display:flex;margin-top:calc(var(--padding))}@media (max-width: 768px){.header .album-info .meta[data-v-f4db92d1]{justify-content:center}}.header .album-info .meta span[data-v-f4db92d1]{font-size:.75rem;color:var(--text-color);opacity:.5}.header .album-info .meta span[data-v-f4db92d1]:not(:last-child):after{content:"\b7";margin:0 calc(var(--padding) / 2)}.header .album-info .actions[data-v-f4db92d1]{flex:1;display:flex;align-items:flex-end;gap:var(--padding);margin-top:calc(var(--padding))}@media (max-width: 768px){.header .album-info .actions[data-v-f4db92d1]{justify-content:flex-end;flex-wrap:wrap;flex-direction:row}}.header .album-info .actions .spacer[data-v-f4db92d1]{flex:1}.p-list-items[data-v-f4db92d1]{margin:0 calc(var(--padding) * -1);margin-top:calc(var(--padding) * 2)} diff --git a/public/assets/Album-da9305e8.js b/public/assets/Album-aa78e208.js similarity index 54% rename from public/assets/Album-da9305e8.js rename to public/assets/Album-aa78e208.js index bc5e63c..ca17372 100644 --- a/public/assets/Album-da9305e8.js +++ b/public/assets/Album-aa78e208.js @@ -1 +1 @@ -import{_ as P,j as f,u as S,i as w,k as x,r as n,o as d,c as B,e as h,b as e,m as r,t,q as l,T as C,f as u,w as _,p as N,g as T}from"./index-d10ff82d.js";const p=c=>(N("data-v-f4db92d1"),c=c(),T(),c),V={key:0},j=p(()=>e("br",null,null,-1)),D={style:{opacity:"0.5"}},L={class:"header"},q={class:"cover"},E=["src"],M={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(c){const m=f("PokaAPI"),v=f("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(o=!1){v.audioOrder=o?"random":"list",v.addSongs({songs:s.value.songs})}return(o,i)=>{const g=n("router-link"),b=n("p-btn"),$=n("pin-btn"),k=n("parse-songs"),A=n("Loader");return s.value?(d(),B("div",V,[(d(),h(C,{to:"#header-center"},[e("p",null,[r(t(s.value.name??s.value.playlists[0].name)+" ",1),j,e("small",D,t(o.$t(`nav.${l(a).meta.type}s`)),1)])])),e("div",L,[e("div",q,[e("img",{src:s.value.cover??s.value.playlists[0].cover},null,8,E)]),e("div",M,[e("div",O,t(s.value.name??s.value.playlists[0].name),1),u(g,{class:"artist",to:`/artist/${l(a).params.source}/${s.value.artistId}`},{default:_(()=>[r(t(s.value.artist),1)]),_:1},8,["to"]),e("div",R,[e("span",null,t(o.$t(`nav.${l(a).meta.type}s`)),1),e("span",null,t(o.$t("songs",s.value.songs.length,{count:s.value.songs.length})),1),e("span",null,t(o.$t(`source.${l(a).params.source}`)),1)]),e("div",z,[u(b,{onClick:i[0]||(i[0]=I=>y())},{default:_(()=>[F,r(" "+t(o.$t("album.playAll")),1)]),_:1}),u(b,{outline:"",onClick:i[1]||(i[1]=I=>y(!0))},{default:_(()=>[G,r(" "+t(o.$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"])])):(d(),h(A,{key:1}))}}},Q=P(J,[["__scopeId","data-v-f4db92d1"]]);export{Q as default}; +import{_ as P,j as f,u as S,i as w,k as x,r as n,o as _,c as B,e as h,b as e,m as r,t,q as l,T as C,f as c,w as d,p as N,g as T}from"./index-dca75ef4.js";const p=u=>(N("data-v-f420b9c4"),u=u(),T(),u),V={key:0},j=p(()=>e("br",null,null,-1)),D={style:{opacity:"0.5"}},L={class:"header"},q={class:"cover"},E=["src"],M={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(u){const m=f("PokaAPI"),v=f("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(o=!1){v.audioOrder=o?"random":"list",v.addSongs({songs:s.value.songs})}return(o,i)=>{const g=n("router-link"),b=n("p-btn"),$=n("pin-btn"),k=n("parse-songs"),A=n("Loader");return s.value?(_(),B("div",V,[(_(),h(C,{to:"#header-center"},[e("p",null,[r(t(s.value.name??s.value.playlists[0].name)+" ",1),j,e("small",D,t(o.$t(`nav.${l(a).meta.type}s`)),1)])])),e("div",L,[e("div",q,[e("img",{src:s.value.cover??s.value.playlists[0].cover},null,8,E)]),e("div",M,[e("div",O,t(s.value.name??s.value.playlists[0].name),1),c(g,{class:"artist",to:`/artist/${l(a).params.source}/${s.value.artistId}`},{default:d(()=>[r(t(s.value.artist),1)]),_:1},8,["to"]),e("div",R,[e("span",null,t(o.$t(`nav.${l(a).meta.type}s`)),1),e("span",null,t(o.$t("songs",s.value.songs.length,{count:s.value.songs.length})),1),e("span",null,t(o.$t(`source.${l(a).params.source}`)),1)]),e("div",z,[c(b,{onClick:i[0]||(i[0]=I=>y())},{default:d(()=>[F,r(" "+t(o.$t("album.playAll")),1)]),_:1}),c(b,{outline:"",onClick:i[1]||(i[1]=I=>y(!0))},{default:d(()=>[G,r(" "+t(o.$t("album.playAllShuffle")),1)]),_:1}),H,c($,{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"])])])]),c(k,{items:s.value.songs},null,8,["items"])])):(_(),h(A,{key:1}))}}},Q=P(J,[["__scopeId","data-v-f420b9c4"]]);export{Q as default}; diff --git a/public/assets/Album-e008826f.css b/public/assets/Album-e008826f.css new file mode 100644 index 0000000..0913356 --- /dev/null +++ b/public/assets/Album-e008826f.css @@ -0,0 +1 @@ +@charset "UTF-8";.header[data-v-f420b9c4]{display:flex;gap:calc(var(--padding) * 2);padding-bottom:calc(var(--padding) * 2);margin-bottom:calc(var(--padding) * 2);border-bottom:1px solid var(--background-layer-2)}@media (max-width: 768px){.header[data-v-f420b9c4]{flex-direction:column;gap:calc(var(--padding));align-items:center;text-align:center}}.header .cover[data-v-f420b9c4]{width:200px;height:200px}.header .cover img[data-v-f420b9c4]{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;border-radius:var(--border-radius);border:1px solid var(--background-layer-2)}.header .album-info[data-v-f420b9c4]{display:flex;flex-direction:column;flex:1;width:100%}.header .album-info .title[data-v-f420b9c4]{font-size:1.75rem;font-weight:700;margin:calc(var(--padding) / 2) 0}.header .album-info .artist[data-v-f420b9c4]{font-size:1.5rem;color:var(--text-color);opacity:.75}.header .album-info .meta[data-v-f420b9c4]{display:flex;margin-top:calc(var(--padding))}@media (max-width: 768px){.header .album-info .meta[data-v-f420b9c4]{justify-content:center}}.header .album-info .meta span[data-v-f420b9c4]{font-size:.75rem;color:var(--text-color);opacity:.5}.header .album-info .meta span[data-v-f420b9c4]:not(:last-child):after{content:"\b7";margin:0 calc(var(--padding) / 2)}.header .album-info .actions[data-v-f420b9c4]{flex:1;display:flex;align-items:flex-end;gap:var(--padding);margin-top:calc(var(--padding))}@media (max-width: 768px){.header .album-info .actions[data-v-f420b9c4]{justify-content:flex-end;flex-wrap:wrap;flex-direction:row}}.header .album-info .actions .spacer[data-v-f420b9c4]{flex:1}.p-list-items[data-v-f420b9c4]{margin:0 calc(var(--padding) * -1);margin-top:calc(var(--padding) * 2)} diff --git a/public/assets/Albums-f757822a.js b/public/assets/Albums-c7763ed2.js similarity index 95% rename from public/assets/Albums-f757822a.js rename to public/assets/Albums-c7763ed2.js index e962115..32b4fb0 100644 --- a/public/assets/Albums-f757822a.js +++ b/public/assets/Albums-c7763ed2.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-d10ff82d.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-dca75ef4.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-07c42e42.js b/public/assets/Artists-61b7c148.js similarity index 90% rename from public/assets/Artists-07c42e42.js rename to public/assets/Artists-61b7c148.js index a000745..f790c7b 100644 --- a/public/assets/Artists-07c42e42.js +++ b/public/assets/Artists-61b7c148.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-d10ff82d.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-dca75ef4.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-cfd0ef30.js b/public/assets/Folders-fe28df3b.js similarity index 95% rename from public/assets/Folders-cfd0ef30.js rename to public/assets/Folders-fe28df3b.js index aee0978..0663b35 100644 --- a/public/assets/Folders-cfd0ef30.js +++ b/public/assets/Folders-fe28df3b.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-d10ff82d.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-dca75ef4.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-8a89df71.js b/public/assets/Index-05caf915.js similarity index 97% rename from public/assets/Index-8a89df71.js rename to public/assets/Index-05caf915.js index 2c481cb..ed60dab 100644 --- a/public/assets/Index-8a89df71.js +++ b/public/assets/Index-05caf915.js @@ -1 +1 @@ -import{y as V,z as k,r as a,o as u,c as r,e as B,b as i,t as _,T as L,f as t,w as s,q as c,A as S,F as m,d as C,s as I}from"./index-d10ff82d.js";import{u as N}from"./user-0ade28ac.js";const T={class:"setting-item"},w={class:"content"},z={class:"title"},F=i("div",{class:"description"},null,-1),R={class:"control"},U=["value"],q=i("i",{class:"bx bx-brush-alt"},null,-1),A=i("i",{class:"bx bx-pin"},null,-1),D=i("i",{class:"bx bx-user"},null,-1),E=i("i",{class:"bx bx-server"},null,-1),M=i("i",{class:"bx bx-group"},null,-1),j=i("i",{class:"bx bx-file"},null,-1),K={__name:"Index",setup(G){const{locale:p,availableLocales:b,getLocaleMessage:f}=V({inheritLocale:!0,useScope:"global"}),h=N(),{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(),B(L,{to:"#header-center"},[i("p",null,_(e.$t("nav.settings")),1)])),i("div",T,[i("div",w,[i("div",z,_(e.$t("language")),1),F]),i("div",R,[t(v,{modelValue:c(p),"onUpdate:modelValue":g[0]||(g[0]=d=>S(p)?p.value=d:null)},{default:s(()=>[(u(!0),r(m,null,C(c(b),d=>(u(),r("option",{value:d},_(c(f)(d).language_name({normalize:y=>y[0]})),9,U))),256))]),_:1},8,["modelValue"])])]),i("div",null,[t(x,null,{default:s(()=>[t(o,{to:"/settings/theme",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[q]),_: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(()=>[A]),_: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(()=>[D]),_: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(()=>[E]),_: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(()=>[M]),_: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(()=>[j]),_:1}),t(l,{title:e.$t("settings.log.title"),description:e.$t("settings.log.description")},null,8,["title","description"])]),_:1})],64)):I("",!0)]),_:1})])],64)}}};export{K as default}; +import{y as V,z as k,r as a,o as u,c as r,e as B,b as i,t as _,T as L,f as t,w as s,q as c,A as S,F as m,d as C,s as I}from"./index-dca75ef4.js";import{u as N}from"./user-0f5f0501.js";const T={class:"setting-item"},w={class:"content"},z={class:"title"},F=i("div",{class:"description"},null,-1),R={class:"control"},U=["value"],q=i("i",{class:"bx bx-brush-alt"},null,-1),A=i("i",{class:"bx bx-pin"},null,-1),D=i("i",{class:"bx bx-user"},null,-1),E=i("i",{class:"bx bx-server"},null,-1),M=i("i",{class:"bx bx-group"},null,-1),j=i("i",{class:"bx bx-file"},null,-1),K={__name:"Index",setup(G){const{locale:p,availableLocales:b,getLocaleMessage:f}=V({inheritLocale:!0,useScope:"global"}),h=N(),{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(),B(L,{to:"#header-center"},[i("p",null,_(e.$t("nav.settings")),1)])),i("div",T,[i("div",w,[i("div",z,_(e.$t("language")),1),F]),i("div",R,[t(v,{modelValue:c(p),"onUpdate:modelValue":g[0]||(g[0]=d=>S(p)?p.value=d:null)},{default:s(()=>[(u(!0),r(m,null,C(c(b),d=>(u(),r("option",{value:d},_(c(f)(d).language_name({normalize:y=>y[0]})),9,U))),256))]),_:1},8,["modelValue"])])]),i("div",null,[t(x,null,{default:s(()=>[t(o,{to:"/settings/theme",tabindex:"0"},{default:s(()=>[t(n,null,{default:s(()=>[q]),_: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(()=>[A]),_: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(()=>[D]),_: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(()=>[E]),_: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(()=>[M]),_: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(()=>[j]),_:1}),t(l,{title:e.$t("settings.log.title"),description:e.$t("settings.log.description")},null,8,["title","description"])]),_:1})],64)):I("",!0)]),_:1})])],64)}}};export{K as default}; diff --git a/public/assets/Library-95f835bf.js b/public/assets/Library-50cabd24.js similarity index 86% rename from public/assets/Library-95f835bf.js rename to public/assets/Library-50cabd24.js index 4ae13c9..a22ef70 100644 --- a/public/assets/Library-95f835bf.js +++ b/public/assets/Library-50cabd24.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-d10ff82d.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-dca75ef4.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-af7ff627.css b/public/assets/Log-af7ff627.css new file mode 100644 index 0000000..fba7be8 --- /dev/null +++ b/public/assets/Log-af7ff627.css @@ -0,0 +1 @@ +pre.log[data-v-e00d7f52]{overflow-x:auto;padding:var(--padding);white-space:pre-wrap;word-break:break-all} diff --git a/public/assets/Log-c9db7119.css b/public/assets/Log-c9db7119.css deleted file mode 100644 index 64cc4f8..0000000 --- a/public/assets/Log-c9db7119.css +++ /dev/null @@ -1 +0,0 @@ -pre.log[data-v-640354d8]{overflow-x:auto;padding:var(--padding);white-space:pre-wrap;word-break:break-all} diff --git a/public/assets/Log-a5375869.js b/public/assets/Log-f571c16c.js similarity index 64% rename from public/assets/Log-a5375869.js rename to public/assets/Log-f571c16c.js index ad2e53c..06ec244 100644 --- a/public/assets/Log-a5375869.js +++ b/public/assets/Log-f571c16c.js @@ -1,6 +1,6 @@ -import{a as h}from"./index-5118a9b6.js";import{_ as B,j as x,i as o,k as I,r as P,o as u,c as b,e as m,b as f,t as y,T as C,s as E,F as j}from"./index-d10ff82d.js";const A={__name:"Log",setup(D){const _=x("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:i}of n)l=((s=a.value.find(r=>r._id==l))==null?void 0:s.username)||l,i=new Date(i).toLocaleString(),a.value.map(r=>{c=c.replace(new RegExp(`{${r._id}}`,"g"),r.username)}),t.value+=`[${k}] ${w} / ${$} +import{a as h}from"./index-b5081660.js";import{_ as B,j as x,i as o,k as I,r as P,o as u,c as b,e as f,b as m,t as y,T as C,s as E,F as j}from"./index-dca75ef4.js";const A={__name:"Log",setup(D){const _=x("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:i}of n)l=((s=a.value.find(r=>r._id==l))==null?void 0:s.username)||l,i=new Date(i).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+=` 🕒 ${i} `,t.value+=` -`;n.length||(g.value=!0)}const d=o(null);return h(d,async([{isIntersecting:e}],n)=>{e&&await v(L.value++)},{threshold:.5,rootMargin:"0px"}),I(async()=>{await p(),await v()}),(e,n)=>{const s=P("Loader");return u(),b(j,null,[(u(),m(C,{to:"#header-center"},[f("p",null,y(e.$t("settings.log.title")),1)])),f("pre",{class:"log",ref:"logContainer"},y(t.value),513),g.value?E("",!0):(u(),m(s,{key:0,ref_key:"logBottom",ref:d},null,512))],64)}}},N=B(A,[["__scopeId","data-v-640354d8"]]);export{N as default}; +`;n.length||(g.value=!0)}const d=o(null);return h(d,async([{isIntersecting:e}],n)=>{e&&await v(L.value++)},{threshold:.5,rootMargin:"0px"}),I(async()=>{await p(),await v()}),(e,n)=>{const s=P("Loader");return u(),b(j,null,[(u(),f(C,{to:"#header-center"},[m("p",null,y(e.$t("settings.log.title")),1)])),m("pre",{class:"log",ref:"logContainer"},y(t.value),513),g.value?E("",!0):(u(),f(s,{key:0,ref_key:"logBottom",ref:d},null,512))],64)}}},N=B(A,[["__scopeId","data-v-e00d7f52"]]);export{N as default}; diff --git a/public/assets/Login-043232fe.js b/public/assets/Login-043232fe.js deleted file mode 100644 index 1773f5b..0000000 --- a/public/assets/Login-043232fe.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as c,j as u,r as i,o as m,c as _,b as a,x as g,f as n,w,m as h,t as f,p as b,g as v}from"./index-d10ff82d.js";const k="/img/icon.svg";const y={name:"LoginDialog",setup(){return{socket:u("socket")}},data(){return{username:localStorage.getItem("username")||"",password:localStorage.getItem("password")||""}},methods:{async login(){let e=await this.$PokaAPI.login(this.username,this.password);this.socket.emit("login",{username:this.username,password:this.password}),e.success&&this.$router.push("/")}}},p=e=>(b("data-v-d7885915"),e=e(),v(),e),V={class:"login-container"},I={class:"login-form"},S=p(()=>a("img",{class:"logo",src:k,alt:"logo"},null,-1)),x=p(()=>a("h1",null,"PokaPlayer",-1));function P(e,s,B,L,t,l){const r=i("p-input"),d=i("p-btn");return m(),_("div",V,[a("div",I,[S,x,a("form",{onSubmit:s[2]||(s[2]=g((...o)=>l.login&&l.login(...o),["prevent"]))},[n(r,{label:e.$t("username"),modelValue:t.username,"onUpdate:modelValue":s[0]||(s[0]=o=>t.username=o),required:""},null,8,["label","modelValue"]),n(r,{label:e.$t("password"),modelValue:t.password,"onUpdate:modelValue":s[1]||(s[1]=o=>t.password=o),type:"password",required:""},null,8,["label","modelValue"]),n(d,{type:"submit",block:"",style:{"margin-top":"calc(var(--padding) * 2)"},color:"primary"},{default:w(()=>[h(f(e.$t("login")),1)]),_:1})],32)])])}const $=c(y,[["render",P],["__scopeId","data-v-d7885915"]]);export{$ as default}; diff --git a/public/assets/Login-d18de0a5.css b/public/assets/Login-9a5467f5.css similarity index 59% rename from public/assets/Login-d18de0a5.css rename to public/assets/Login-9a5467f5.css index 7e09c10..b317b06 100644 --- a/public/assets/Login-d18de0a5.css +++ b/public/assets/Login-9a5467f5.css @@ -1 +1 @@ -.login-container[data-v-d7885915]{display:flex;justify-content:center;align-items:center;height:100vh;background-color:var(--background-layer-2)}.login-container .login-form[data-v-d7885915]{display:flex;flex-direction:column;align-items:center;background-color:var(--background-layer-1);padding:calc(var(--padding) * 2);border-radius:var(--border-radius)}.login-container .login-form .logo[data-v-d7885915]{--size: 72px;width:var(--size);height:var(--size);margin-top:calc(-1 * var(--size) / 2)}.login-container .login-form h1[data-v-d7885915]{font-size:24px;text-align:left;font-family:Product Sans,sans-serif;margin-bottom:calc(var(--padding) * 4)}.login-container .login-form form[data-v-d7885915]{display:flex;flex-direction:column;align-items:center;width:400px;max-width:calc(100vw - 80px)} +.login-container[data-v-883b7654]{display:flex;justify-content:center;align-items:center;height:100vh;background-color:var(--background-layer-2)}.login-container .login-form[data-v-883b7654]{display:flex;flex-direction:column;align-items:center;background-color:var(--background-layer-1);padding:calc(var(--padding) * 2);border-radius:var(--border-radius)}.login-container .login-form .logo[data-v-883b7654]{--size: 72px;width:var(--size);height:var(--size);margin-top:calc(-1 * var(--size) / 2)}.login-container .login-form h1[data-v-883b7654]{font-size:24px;text-align:left;font-family:Product Sans,sans-serif;margin-bottom:calc(var(--padding) * 4)}.login-container .login-form form[data-v-883b7654]{display:flex;flex-direction:column;align-items:center;width:400px;max-width:calc(100vw - 80px)} diff --git a/public/assets/Login-baee24d6.js b/public/assets/Login-baee24d6.js new file mode 100644 index 0000000..d52677c --- /dev/null +++ b/public/assets/Login-baee24d6.js @@ -0,0 +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 b,m as f,t as w,p as h,g as v}from"./index-dca75ef4.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-883b7654"),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:b(()=>[f(w(e.$t("login")),1)]),_:1})],32)])])}const $=c(V,[["render",P],["__scopeId","data-v-883b7654"]]);export{$ as default}; diff --git a/public/assets/Pins-8f3146b9.js b/public/assets/Pins-b11bc254.js similarity index 89% rename from public/assets/Pins-8f3146b9.js rename to public/assets/Pins-b11bc254.js index d681d7d..80a5586 100644 --- a/public/assets/Pins-8f3146b9.js +++ b/public/assets/Pins-b11bc254.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-d10ff82d.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-dca75ef4.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-1cea1c41.js b/public/assets/Playlists-84b6ad72.js similarity index 95% rename from public/assets/Playlists-1cea1c41.js rename to public/assets/Playlists-84b6ad72.js index 868591a..2c12b69 100644 --- a/public/assets/Playlists-1cea1c41.js +++ b/public/assets/Playlists-84b6ad72.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-d10ff82d.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-dca75ef4.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/Search-08b1b292.css b/public/assets/Search-08b1b292.css new file mode 100644 index 0000000..2e59db3 --- /dev/null +++ b/public/assets/Search-08b1b292.css @@ -0,0 +1 @@ +.search__input[data-v-715e2726]{display:flex;gap:var(--padding);max-width:500px;margin:0 auto}.search__input .p-input[data-v-715e2726]{flex:1}.search__result[data-v-715e2726]{margin:calc(var(--padding) * 6) 0}.search__result h3[data-v-715e2726]{margin-bottom:var(--padding)} diff --git a/public/assets/Search-717321c2.js b/public/assets/Search-c123552c.js similarity index 68% rename from public/assets/Search-717321c2.js rename to public/assets/Search-c123552c.js index 0f6d885..5114892 100644 --- a/public/assets/Search-717321c2.js +++ b/public/assets/Search-c123552c.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-d10ff82d.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-dca75ef4.js";const z=_=>(E("data-v-715e2726"),_=_(),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 b=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 b.search(r.value),i.value=!1)}return(s,v)=>{var h,y,g,f,k;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),(g=e.value.artists)!=null&&g.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),(f=e.value.composers)!=null&&f.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),(k=e.value.playlists)!=null&&k.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-715e2726"]]);export{Y as default}; diff --git a/public/assets/Search-f3c2d4ea.css b/public/assets/Search-f3c2d4ea.css deleted file mode 100644 index 7fa20ba..0000000 --- a/public/assets/Search-f3c2d4ea.css +++ /dev/null @@ -1 +0,0 @@ -.search__input[data-v-35d51b69]{display:flex;gap:var(--padding);max-width:500px;margin:0 auto}.search__input .p-input[data-v-35d51b69]{flex:1}.search__result[data-v-35d51b69]{margin:calc(var(--padding) * 6) 0}.search__result h3[data-v-35d51b69]{margin-bottom:var(--padding)} diff --git a/public/assets/System-12d00b92.js b/public/assets/System-12d00b92.js new file mode 100644 index 0000000..cb299a0 --- /dev/null +++ b/public/assets/System-12d00b92.js @@ -0,0 +1 @@ +import{j as w,i as f,L as I,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-dca75ef4.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=I(()=>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 L(){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"),A=c("p-list-items"),y=c("p-btn"),h=c("Dialog"),T=c("Loader");return x(),R(F,null,[(x(),j(B,{to:"#header-center"},[i("p",null,v(s.$t("settings.system.title")),1)])),e(A,{"single-row":""},{default:a(()=>[e(m,{tabindex:"0",onClick:L},{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(T,{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/System-18e7d4b8.js b/public/assets/System-18e7d4b8.js deleted file mode 100644 index 62aba80..0000000 --- a/public/assets/System-18e7d4b8.js +++ /dev/null @@ -1 +0,0 @@ -import{j as w,i as f,L as I,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-d10ff82d.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=I(()=>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 L(){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"),A=c("p-list-items"),y=c("p-btn"),h=c("Dialog"),T=c("Loader");return x(),R(F,null,[(x(),j(B,{to:"#header-center"},[i("p",null,v(s.$t("settings.system.title")),1)])),e(A,{"single-row":""},{default:a(()=>[e(m,{tabindex:"0",onClick:L},{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(T,{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-fcdafdad.js b/public/assets/Theme-1466c3ad.js similarity index 97% rename from public/assets/Theme-fcdafdad.js rename to public/assets/Theme-1466c3ad.js index 797bfda..68022ab 100644 --- a/public/assets/Theme-fcdafdad.js +++ b/public/assets/Theme-1466c3ad.js @@ -1 +1 @@ -import{i as b,l as k,r as g,o as d,c as r,e as C,b as e,t as n,T as U,F as _,d as V,q as u,s as $,f as c,w as p,B as m,C as y,D as B,E,G as S}from"./index-d10ff82d.js";import{u as j}from"./index-5118a9b6.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"},L={class:"setting-item"},M={class:"content"},R={class:"title"},W={class:"control"},H=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"},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"},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),Pe={__name:"Theme",setup(De){const a=j("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]);S(()=>{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(),C(U,{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(f.value),([l,w])=>(d(),r("div",{class:"theme-preview-item",onClick:x=>u(a).theme=l,style:B(Object.entries(w).map(([x,T])=>`${x}:${T}`).join(";")),tabindex:"0"},[e("div",P,[m(e("i",A,null,512),[[E,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",L,[e("div",M,[e("div",R,n(t.$t("settings.theme.textColor")),1)]),e("div",W,[c(i,{modelValue:s.value["--text-color-value"],"onUpdate:modelValue":o[1]||(o[1]=l=>s.value["--text-color-value"]=l)},{default:p(()=>[H,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(()=>[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",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{Pe as default}; +import{i as b,l as k,r as g,o as d,c as r,e as C,b as e,t as n,T as U,F as _,d as V,q as u,s as $,f as c,w as p,B as m,C as y,D as B,E,G as S}from"./index-dca75ef4.js";import{u as j}from"./index-b5081660.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"},L={class:"setting-item"},M={class:"content"},R={class:"title"},W={class:"control"},H=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"},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"},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),Pe={__name:"Theme",setup(De){const a=j("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]);S(()=>{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(),C(U,{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(f.value),([l,w])=>(d(),r("div",{class:"theme-preview-item",onClick:x=>u(a).theme=l,style:B(Object.entries(w).map(([x,T])=>`${x}:${T}`).join(";")),tabindex:"0"},[e("div",P,[m(e("i",A,null,512),[[E,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",L,[e("div",M,[e("div",R,n(t.$t("settings.theme.textColor")),1)]),e("div",W,[c(i,{modelValue:s.value["--text-color-value"],"onUpdate:modelValue":o[1]||(o[1]=l=>s.value["--text-color-value"]=l)},{default:p(()=>[H,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(()=>[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",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{Pe as default}; diff --git a/public/assets/User-23ef9b1b.js b/public/assets/User-17c9f6e4.js similarity index 98% rename from public/assets/User-23ef9b1b.js rename to public/assets/User-17c9f6e4.js index c473c38..1d6d3f5 100644 --- a/public/assets/User-23ef9b1b.js +++ b/public/assets/User-17c9f6e4.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-d10ff82d.js";import{u as q}from"./user-0ade28ac.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-dca75ef4.js";import{u as q}from"./user-0f5f0501.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-2d2264f7.js b/public/assets/Users-56523967.js similarity index 98% rename from public/assets/Users-2d2264f7.js rename to public/assets/Users-56523967.js index 86718d8..7ea8208 100644 --- a/public/assets/Users-2d2264f7.js +++ b/public/assets/Users-56523967.js @@ -1 +1 @@ -import{j,i as g,L as E,k as I,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-d10ff82d.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 _=j("PokaAPI"),y=g(null),n=g(null),i=g({name:"",username:"",password:"",role:"user"}),f=E({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 I(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,i as g,L as E,k as I,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-dca75ef4.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 _=j("PokaAPI"),y=g(null),n=g(null),i=g({name:"",username:"",password:"",role:"user"}),f=E({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 I(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-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-b28e542e.css b/public/assets/default-b28e542e.css new file mode 100644 index 0000000..4d43e19 --- /dev/null +++ b/public/assets/default-b28e542e.css @@ -0,0 +1 @@ +.default-layout-container[data-v-d68515b9]{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-d68515b9]{grid-template-columns:calc(var(--padding) * 3.5 + 24px) 1fr}}.default-layout-container .header[data-v-d68515b9]{grid-area:header;display:grid;grid-template-columns:200px 1fr 200px}@media (max-width: 768px){.default-layout-container .header[data-v-d68515b9]{grid-template-columns:auto 1fr}}.default-layout-container .header .logo[data-v-d68515b9]{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-d68515b9]{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-d68515b9]{display:none}}.default-layout-container .header .header-actions[data-v-d68515b9]{display:flex;align-items:center;justify-content:flex-end;gap:calc(var(--padding) / 2)}.default-layout-container .header .header-actions #header-actions[data-v-d68515b9]{display:flex;align-items:center;gap:calc(var(--padding) / 2)}.default-layout-container .header .header-actions .nav-item[data-v-d68515b9]{margin-top:0}.default-layout-container .header .header-actions .nav-item .nav-item-text[data-v-d68515b9]{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-d68515b9]{transform:none}.default-layout-container .nav[data-v-d68515b9]{grid-area:nav;padding:0 var(--padding)}@media (max-width: 768px){.default-layout-container .nav[data-v-d68515b9]{padding:0 calc(var(--padding) * .25)}}.default-layout-container .nav-item[data-v-d68515b9]{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-d68515b9]:not(:first-child){margin-top:calc(var(--padding) / 2)}.default-layout-container .nav-item .nav-item-icon[data-v-d68515b9]{font-size:24px}.default-layout-container .nav-item .nav-item-text[data-v-d68515b9]{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-d68515b9]:hover{background-color:rgba(var(--text-color-value),.075);outline:0}.default-layout-container .nav-item:hover .nav-item-text[data-v-d68515b9]{opacity:1;filter:blur(0);transform:none}.default-layout-container .nav-item:hover .nav-item-icon.bx-cog[data-v-d68515b9]{transform:rotate(60deg);transition:all var(--transition)}.default-layout-container .nav-item[data-v-d68515b9]:active{background-color:rgba(var(--text-color-value),.15);transform:scale(.95)}@media (max-width: 768px){.default-layout-container .nav-item[data-v-d68515b9]{padding:calc(var(--padding) * 1.5)}.default-layout-container .nav-item .nav-item-text[data-v-d68515b9]{left:calc(var(--padding) * 7)}.default-layout-container .nav-item .nav-item-icon[data-v-d68515b9]{margin-right:0}}.default-layout-container .nav-item.router-link-exact-active[data-v-d68515b9]{background-color:rgba(var(--text-color-value),.15);transform:none}.default-layout-container .nav-item.router-link-exact-active .nav-item-text[data-v-d68515b9]{transition-delay:.4s;opacity:0;transform:scale(.75) translate(calc(var(--padding) * -5))}.default-layout-container .main[data-v-d68515b9]{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-d68515b9]::-webkit-scrollbar{width:4px}.default-layout-container .main[data-v-d68515b9]::-webkit-scrollbar-track{background:transparent}.default-layout-container .main[data-v-d68515b9]::-webkit-scrollbar-thumb{background:#888;border-radius:2px}.default-layout-container .main[data-v-d68515b9]::-webkit-scrollbar-thumb:hover{background:#777}.default-layout-container .main[data-v-d68515b9]::-webkit-scrollbar-thumb:active{background:#666}.default-layout-container .main[data-v-d68515b9]::-webkit-scrollbar-button{display:none}@media (max-width: 768px){.default-layout-container .main[data-v-d68515b9]{padding:calc(var(--padding) * 2)}}.default-layout-container .player[data-v-d68515b9]{grid-area:player;background-color:var(--background-layer-2)} diff --git a/public/assets/default-275421d5.js b/public/assets/default-fd7f9336.js similarity index 82% rename from public/assets/default-275421d5.js rename to public/assets/default-fd7f9336.js index a108541..7ff8a72 100644 --- a/public/assets/default-275421d5.js +++ b/public/assets/default-fd7f9336.js @@ -1 +1 @@ -import{u as f}from"./user-0ade28ac.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-d10ff82d.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}; +import{u as f}from"./user-0f5f0501.js";import{_ as b,R as y,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-dca75ef4.js";const w={name:"DefaultLayout",setup(){return{userStore:f()}},components:{RouterView:y,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-d68515b9"),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=b(w,[["render",E],["__scopeId","data-v-d68515b9"]]);export{q as default}; diff --git a/public/assets/empty-7b315d63.js b/public/assets/empty-7c673d1a.js similarity index 55% rename from public/assets/empty-7b315d63.js rename to public/assets/empty-7c673d1a.js index 46ffb37..d680250 100644 --- a/public/assets/empty-7b315d63.js +++ b/public/assets/empty-7c673d1a.js @@ -1 +1 @@ -import{o as e,e as r,q as t,R as a}from"./index-d10ff82d.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-dca75ef4.js";const n={__name:"empty",setup(o){return(s,c)=>(e(),r(t(a)))}};export{n as default}; diff --git a/public/assets/index-5118a9b6.js b/public/assets/index-5118a9b6.js deleted file mode 100644 index 5b29a1b..0000000 --- a/public/assets/index-5118a9b6.js +++ /dev/null @@ -1 +0,0 @@ -import{q as X,i as $,H as Y,k as Z,G as R,l as j,I as k,J as ee,K as te}from"./index-d10ff82d.js";var C;const g=typeof window<"u",re=e=>typeof e=="function",ne=e=>typeof e=="string",b=()=>{};g&&((C=window==null?void 0:window.navigator)==null?void 0:C.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e){return typeof e=="function"?e():X(e)}function ae(e,r){function t(...n){e(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})}return t}const L=e=>e();function oe(e=L){const r=$(!0);function t(){r.value=!1}function n(){r.value=!0}return{isActive:r,pause:t,resume:n,eventFilter:(...i)=>{r.value&&e(...i)}}}function ie(e){return e}function B(e){return k()?(ee(e),!0):!1}function se(e,r=!0){Y()?Z(e):r?e():R(e)}var T=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,fe=(e,r)=>{var t={};for(var n in e)ue.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&T)for(var n of T(e))r.indexOf(n)<0&&le.call(e,n)&&(t[n]=e[n]);return t};function ce(e,r,t={}){const n=t,{eventFilter:o=L}=n,i=fe(n,["eventFilter"]);return j(e,ae(o,r),i)}var pe=Object.defineProperty,de=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,Q=(e,r,t)=>r in e?pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Oe=(e,r)=>{for(var t in r||(r={}))H.call(r,t)&&Q(e,t,r[t]);if(h)for(var t of h(r))G.call(r,t)&&Q(e,t,r[t]);return e},_e=(e,r)=>de(e,ve(r)),we=(e,r)=>{var t={};for(var n in e)H.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&h)for(var n of h(e))r.indexOf(n)<0&&G.call(e,n)&&(t[n]=e[n]);return t};function ye(e,r,t={}){const n=t,{eventFilter:o}=n,i=we(n,["eventFilter"]),{eventFilter:p,pause:d,resume:f,isActive:c}=oe(o);return{stop:ce(e,r,_e(Oe({},i),{eventFilter:p})),pause:d,resume:f,isActive:c}}function P(e){var r;const t=z(e);return(r=t==null?void 0:t.$el)!=null?r:t}const S=g?window:void 0;g&&window.document;g&&window.navigator;g&&window.location;function ge(...e){let r,t,n,o;if(ne(e[0])||Array.isArray(e[0])?([t,n,o]=e,r=S):[r,t,n,o]=e,!r)return b;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const i=[],p=()=>{i.forEach(s=>s()),i.length=0},d=(s,u,v)=>(s.addEventListener(u,v,o),()=>s.removeEventListener(u,v,o)),f=j(()=>P(r),s=>{p(),s&&i.push(...t.flatMap(u=>n.map(v=>d(s,u,v))))},{immediate:!0,flush:"post"}),c=()=>{f(),p()};return B(c),c}function me(e,r=!1){const t=$(),n=()=>t.value=Boolean(e());return n(),se(n,r),t}const I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},E="__vueuse_ssr_handlers__";I[E]=I[E]||{};const be=I[E];function he(e,r){return be[e]||r}function Se(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 Pe=Object.defineProperty,W=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,x=(e,r,t)=>r in e?Pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,D=(e,r)=>{for(var t in r||(r={}))Ie.call(r,t)&&x(e,t,r[t]);if(W)for(var t of W(r))Ee.call(r,t)&&x(e,t,r[t]);return e};const $e={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 Qe(e,r,t,n={}){var o;const{flush:i="pre",deep:p=!0,listenToStorageChanges:d=!0,writeDefaults:f=!0,mergeDefaults:c=!1,shallow:s,window:u=S,eventFilter:v,onError:w=a=>{console.error(a)}}=n,y=(s?te:$)(r);if(!t)try{t=he("getDefaultStorage",()=>{var a;return(a=S)==null?void 0:a.localStorage})()}catch(a){w(a)}if(!t)return y;const O=z(r),N=Se(O),m=(o=n.serializer)!=null?o:$e[N],{pause:U,resume:A}=ye(y,()=>K(y.value),{flush:i,deep:p,eventFilter:v});return u&&d&&ge(u,"storage",F),F(),y;function K(a){try{if(a==null)t.removeItem(e);else{const l=m.write(a),_=t.getItem(e);_!==l&&(t.setItem(e,l),u&&(u==null||u.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:_,newValue:l,storageArea:t}))))}}catch(l){w(l)}}function q(a){const l=a?a.newValue:t.getItem(e);if(l==null)return f&&O!==null&&t.setItem(e,m.write(O)),O;if(!a&&c){const _=m.read(l);return re(c)?c(_,O):N==="object"&&!Array.isArray(_)?D(D({},O),_):_}else return typeof l!="string"?l:m.read(l)}function F(a){if(!(a&&a.storageArea!==t)){if(a&&a.key==null){y.value=O;return}if(!(a&&a.key!==e)){U();try{y.value=q(a)}catch(l){w(l)}finally{a?R(A):A()}}}}}function We(e,r,t={}){const{root:n,rootMargin:o="0px",threshold:i=.1,window:p=S}=t,d=me(()=>p&&"IntersectionObserver"in p);let f=b;const c=d.value?j(()=>({el:P(e),root:P(n)}),({el:u,root:v})=>{if(f(),!u)return;const w=new IntersectionObserver(r,{root:v,rootMargin:o,threshold:i});w.observe(u),f=()=>{w.disconnect(),f=b}},{immediate:!0,flush:"post"}):b,s=()=>{f(),c()};return B(s),{isSupported:d,stop:s}}var J;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(J||(J={}));var je=Object.defineProperty,V=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,M=(e,r,t)=>r in e?je(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Fe=(e,r)=>{for(var t in r||(r={}))Ne.call(r,t)&&M(e,t,r[t]);if(V)for(var t of V(r))Ae.call(r,t)&&M(e,t,r[t]);return e};const Ce={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]};Fe({linear:ie},Ce);export{We as a,Qe as u}; diff --git a/public/assets/index-b5081660.js b/public/assets/index-b5081660.js new file mode 100644 index 0000000..f2bc022 --- /dev/null +++ b/public/assets/index-b5081660.js @@ -0,0 +1 @@ +import{q as X,i as $,H as Y,k as Z,G as R,l as j,I as k,J as ee,K as te}from"./index-dca75ef4.js";var C;const m=typeof window<"u",re=e=>typeof e=="function",ne=e=>typeof e=="string",b=()=>{};m&&((C=window==null?void 0:window.navigator)!=null&&C.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function z(e){return typeof e=="function"?e():X(e)}function ae(e,r){function t(...n){return new Promise((o,i)=>{Promise.resolve(e(()=>r.apply(this,n),{fn:r,thisArg:this,args:n})).then(o).catch(i)})}return t}const L=e=>e();function oe(e=L){const r=$(!0);function t(){r.value=!1}function n(){r.value=!0}return{isActive:r,pause:t,resume:n,eventFilter:(...i)=>{r.value&&e(...i)}}}function ie(e){return e}function B(e){return k()?(ee(e),!0):!1}function se(e,r=!0){Y()?Z(e):r?e():R(e)}var T=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,fe=(e,r)=>{var t={};for(var n in e)ue.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&T)for(var n of T(e))r.indexOf(n)<0&&le.call(e,n)&&(t[n]=e[n]);return t};function ce(e,r,t={}){const n=t,{eventFilter:o=L}=n,i=fe(n,["eventFilter"]);return j(e,ae(o,r),i)}var pe=Object.defineProperty,de=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,Q=(e,r,t)=>r in e?pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Oe=(e,r)=>{for(var t in r||(r={}))H.call(r,t)&&Q(e,t,r[t]);if(h)for(var t of h(r))G.call(r,t)&&Q(e,t,r[t]);return e},we=(e,r)=>de(e,ve(r)),_e=(e,r)=>{var t={};for(var n in e)H.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&h)for(var n of h(e))r.indexOf(n)<0&&G.call(e,n)&&(t[n]=e[n]);return t};function ye(e,r,t={}){const n=t,{eventFilter:o}=n,i=_e(n,["eventFilter"]),{eventFilter:p,pause:d,resume:f,isActive:c}=oe(o);return{stop:ce(e,r,we(Oe({},i),{eventFilter:p})),pause:d,resume:f,isActive:c}}function P(e){var r;const t=z(e);return(r=t==null?void 0:t.$el)!=null?r:t}const S=m?window:void 0;m&&window.document;m&&window.navigator;m&&window.location;function me(...e){let r,t,n,o;if(ne(e[0])||Array.isArray(e[0])?([t,n,o]=e,r=S):[r,t,n,o]=e,!r)return b;Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);const i=[],p=()=>{i.forEach(s=>s()),i.length=0},d=(s,u,v)=>(s.addEventListener(u,v,o),()=>s.removeEventListener(u,v,o)),f=j(()=>P(r),s=>{p(),s&&i.push(...t.flatMap(u=>n.map(v=>d(s,u,v))))},{immediate:!0,flush:"post"}),c=()=>{f(),p()};return B(c),c}function ge(e,r=!1){const t=$(),n=()=>t.value=Boolean(e());return n(),se(n,r),t}const I=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},E="__vueuse_ssr_handlers__";I[E]=I[E]||{};const be=I[E];function he(e,r){return be[e]||r}function Se(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 Pe=Object.defineProperty,W=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,x=(e,r,t)=>r in e?Pe(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,D=(e,r)=>{for(var t in r||(r={}))Ie.call(r,t)&&x(e,t,r[t]);if(W)for(var t of W(r))Ee.call(r,t)&&x(e,t,r[t]);return e};const $e={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 Qe(e,r,t,n={}){var o;const{flush:i="pre",deep:p=!0,listenToStorageChanges:d=!0,writeDefaults:f=!0,mergeDefaults:c=!1,shallow:s,window:u=S,eventFilter:v,onError:_=a=>{console.error(a)}}=n,y=(s?te:$)(r);if(!t)try{t=he("getDefaultStorage",()=>{var a;return(a=S)==null?void 0:a.localStorage})()}catch(a){_(a)}if(!t)return y;const O=z(r),N=Se(O),g=(o=n.serializer)!=null?o:$e[N],{pause:U,resume:A}=ye(y,()=>K(y.value),{flush:i,deep:p,eventFilter:v});return u&&d&&me(u,"storage",F),F(),y;function K(a){try{if(a==null)t.removeItem(e);else{const l=g.write(a),w=t.getItem(e);w!==l&&(t.setItem(e,l),u&&(u==null||u.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:w,newValue:l,storageArea:t}))))}}catch(l){_(l)}}function q(a){const l=a?a.newValue:t.getItem(e);if(l==null)return f&&O!==null&&t.setItem(e,g.write(O)),O;if(!a&&c){const w=g.read(l);return re(c)?c(w,O):N==="object"&&!Array.isArray(w)?D(D({},O),w):w}else return typeof l!="string"?l:g.read(l)}function F(a){if(!(a&&a.storageArea!==t)){if(a&&a.key==null){y.value=O;return}if(!(a&&a.key!==e)){U();try{y.value=q(a)}catch(l){_(l)}finally{a?R(A):A()}}}}}function We(e,r,t={}){const{root:n,rootMargin:o="0px",threshold:i=.1,window:p=S}=t,d=ge(()=>p&&"IntersectionObserver"in p);let f=b;const c=d.value?j(()=>({el:P(e),root:P(n)}),({el:u,root:v})=>{if(f(),!u)return;const _=new IntersectionObserver(r,{root:v,rootMargin:o,threshold:i});_.observe(u),f=()=>{_.disconnect(),f=b}},{immediate:!0,flush:"post"}):b,s=()=>{f(),c()};return B(s),{isSupported:d,stop:s}}var J;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(J||(J={}));var je=Object.defineProperty,V=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,M=(e,r,t)=>r in e?je(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,Fe=(e,r)=>{for(var t in r||(r={}))Ne.call(r,t)&&M(e,t,r[t]);if(V)for(var t of V(r))Ae.call(r,t)&&M(e,t,r[t]);return e};const Ce={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]};Fe({linear:ie},Ce);export{We as a,Qe as u}; diff --git a/public/assets/index-d10ff82d.js b/public/assets/index-d10ff82d.js deleted file mode 100644 index 3e95638..0000000 --- a/public/assets/index-d10ff82d.js +++ /dev/null @@ -1,155 +0,0 @@ -var _s=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Un=(e,t,n)=>(_s(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)},ys=(e,t,n,r)=>(_s(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ie=(e,t,n)=>(_s(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 uo(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function Jr(e){if(J(e)){const t={};for(let n=0;n{if(n){const r=n.split(jc);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)||ke(e)&&(e.toString===Ma||!re(e.toString))?JSON.stringify(e,Aa,2):String(e),Aa=(e,t)=>t&&t.__v_isRef?Aa(e,t.value):kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Mn(t)?{[`Set(${t.size})`]:[...t.values()]}:ke(t)&&!J(t)&&!$a(t)?String(t):t,ze={},xn=[],ht=()=>{},Kc=()=>!1,Yc=/^on[^a-z]/,Zr=e=>Yc.test(e),po=e=>e.startsWith("onUpdate:"),qe=Object.assign,ho=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xc=Object.prototype.hasOwnProperty,me=(e,t)=>Xc.call(e,t),J=Array.isArray,kn=e=>mr(e)==="[object Map]",Mn=e=>mr(e)==="[object Set]",Go=e=>mr(e)==="[object Date]",re=e=>typeof e=="function",$e=e=>typeof e=="string",or=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Ra=e=>ke(e)&&re(e.then)&&re(e.catch),Ma=Object.prototype.toString,mr=e=>Ma.call(e),Gc=e=>mr(e).slice(8,-1),$a=e=>mr(e)==="[object Object]",mo=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mr=uo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qc=/-(\w)/g,xt=es(e=>e.replace(Qc,(t,n)=>n?n.toUpperCase():"")),Jc=/\B([A-Z])/g,mn=es(e=>e.replace(Jc,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),gs=es(e=>e?`on${ts(e)}`:""),ir=(e,t)=>!Object.is(e,t),$r=(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 Qo;const Zc=()=>Qo||(Qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let tt;class Na{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=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},Fa=e=>(e.w&Wt)>0,Da=e=>(e.n&Wt)>0,ru=({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)?mo(n)&&i.push(a.get("length")):(i.push(a.get(dn)),kn(e)&&i.push(a.get(Ls)));break;case"delete":J(e)||(i.push(a.get(dn)),kn(e)&&i.push(a.get(Ls)));break;case"set":kn(e)&&i.push(a.get(dn));break}if(i.length===1)i[0]&&As(i[0]);else{const l=[];for(const u of i)u&&l.push(...u);As(yo(l))}}function As(e,t){const n=J(e)?e:[...e];for(const r of n)r.computed&&Zo(r);for(const r of n)r.computed||Zo(r)}function Zo(e,t){(e!==dt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ou=uo("__proto__,__v_isRef,__isVue"),Va=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(or)),iu=vo(),au=vo(!1,!0),lu=vo(!0),ei=cu();function cu(){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){$n();const r=ye(this)[t].apply(this,n);return Nn(),r}}),e}function vo(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?Tu:Ka:t?Wa:qa).get(r))return r;const a=J(r);if(!e&&a&&me(ei,s))return Reflect.get(ei,s,o);const i=Reflect.get(r,s,o);return(or(s)?Va.has(s):ou(s))||(e||rt(r,"get",s),t)?i:Ie(i)?a&&mo(s)?i:i.value:ke(i)?e?Ya(i):Fn(i):i}}const uu=Ua(),fu=Ua(!0);function Ua(e=!1){return function(n,r,s,o){let a=n[r];if(Cn(a)&&Ie(a)&&!Ie(s))return!1;if(!e&&(!Ur(s)&&!Cn(s)&&(a=ye(a),s=ye(s)),!J(n)&&Ie(a)&&!Ie(s)))return a.value=s,!0;const i=J(n)&&mo(r)?Number(r)e,ns=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}=ns(s),i=r?bo:n?xo:ar;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 Tr(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 Sr(e,t=!1){return e=e.__v_raw,!t&&rt(ye(e),"iterate",dn),Reflect.get(e,"size",e)}function ti(e){e=ye(e);const t=ye(this);return ns(t).has.call(t,e)||(t.add(e),zt(t,"add",e,e)),this}function ni(e,t){t=ye(t);const n=ye(this),{has:r,get:s}=ns(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?ir(t,a)&&zt(n,"set",e,t):zt(n,"add",e,t),this}function ri(e){const t=ye(this),{has:n,get:r}=ns(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&&zt(t,"delete",e,void 0),o}function si(){const e=ye(this),t=e.size!==0,n=e.clear();return t&&zt(e,"clear",void 0,void 0),n}function Or(e,t){return function(r,s){const o=this,a=o.__v_raw,i=ye(a),l=t?bo:e?xo:ar;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?bo:t?xo:ar;return!t&&rt(o,"iterate",l?Ls: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 Mt(e){return function(...t){return e==="delete"?!1:this}}function yu(){const e={get(o){return kr(this,o)},get size(){return Sr(this)},has:Tr,add:ti,set:ni,delete:ri,clear:si,forEach:Or(!1,!1)},t={get(o){return kr(this,o,!1,!0)},get size(){return Sr(this)},has:Tr,add:ti,set:ni,delete:ri,clear:si,forEach:Or(!1,!0)},n={get(o){return kr(this,o,!0)},get size(){return Sr(this,!0)},has(o){return Tr.call(this,o,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Or(!0,!1)},r={get(o){return kr(this,o,!0,!0)},get size(){return Sr(this,!0)},has(o){return Tr.call(this,o,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Or(!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[gu,vu,bu,wu]=yu();function wo(e,t){const n=t?e?wu:bu:e?vu:gu;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 Eu={get:wo(!1,!1)},xu={get:wo(!1,!0)},ku={get:wo(!0,!1)},qa=new WeakMap,Wa=new WeakMap,Ka=new WeakMap,Tu=new WeakMap;function Su(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ou(e){return e.__v_skip||!Object.isExtensible(e)?0:Su(Gc(e))}function Fn(e){return Cn(e)?e:Eo(e,!1,Ha,Eu,qa)}function Pu(e){return Eo(e,!1,_u,xu,Wa)}function Ya(e){return Eo(e,!0,mu,ku,Ka)}function Eo(e,t,n,r,s){if(!ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=Ou(e);if(a===0)return e;const i=new Proxy(e,a===2?r:n);return s.set(e,i),i}function Ct(e){return Cn(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Cn(e){return!!(e&&e.__v_isReadonly)}function Ur(e){return!!(e&&e.__v_isShallow)}function Xa(e){return Ct(e)||Cn(e)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}function zn(e){return Vr(e,"__v_skip",!0),e}const ar=e=>ke(e)?Fn(e):e,xo=e=>ke(e)?Ya(e):e;function Ga(e){Ut&&dt&&(e=ye(e),ja(e.dep||(e.dep=yo())))}function Qa(e,t){e=ye(e),e.dep&&As(e.dep)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function ne(e){return Ja(e,!1)}function Cu(e){return Ja(e,!0)}function Ja(e,t){return Ie(e)?e:new zu(e,t)}class zu{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:ar(t)}get value(){return Ga(this),this._value}set value(t){const n=this.__v_isShallow||Ur(t)||Cn(t);t=n?t:ye(t),ir(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ar(t),Qa(this))}}function De(e){return Ie(e)?e.value:e}const Iu={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 Za(e){return Ct(e)?e:new Proxy(e,Iu)}function el(e){const t=J(e)?new Array(e.length):{};for(const n in e)t[n]=tl(e,n);return t}class Lu{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 tl(e,t,n){const r=e[t];return Ie(r)?r:new Lu(e,t,n)}var nl;class Au{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[nl]=!1,this._dirty=!0,this.effect=new go(t,()=>{this._dirty||(this._dirty=!0,Qa(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ye(this);return Ga(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}nl="__v_isReadonly";function Ru(e,t,n=!1){let r,s;const o=re(e);return o?(r=e,s=ht):(r=e.get,s=e.set),new Au(r,s,o||!s,n)}function Ht(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){rs(o,t,n)}return s}function lt(e,t,n,r){if(re(e)){const o=Ht(e,t,n,r);return o&&Ra(o)&&o.catch(a=>{rs(a,t,n)}),o}const s=[];for(let o=0;o>>1;cr(Ke[r])wt&&Ke.splice(t,1)}function Fu(e){J(e)?Tn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?an+1:an))&&Tn.push(e),sl()}function oi(e,t=lr?wt+1:0){for(;tcr(n)-cr(r)),an=0;ane.id==null?1/0:e.id,Du=(e,t)=>{const n=cr(e)-cr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function il(e){Rs=!1,lr=!0,Ke.sort(Du);const t=ht;try{for(wt=0;wt$e(p)?p.trim():p)),c&&(s=n.map(Pn))}let i,l=r[i=gs(t)]||r[i=gs(xt(t))];!l&&o&&(l=r[i=gs(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 al(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=al(u,t,!0);f&&(i=!0,qe(a,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(ke(e)&&r.set(e,null),null):(J(o)?o.forEach(l=>a[l]=null):qe(a,o),ke(e)&&r.set(e,a),a)}function ss(e,t){return!e||!Zr(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,mn(t))||me(e,t))}let He=null,os=null;function Hr(e){const t=He;return He=e,os=e&&e.type.__scopeId||null,t}function Dn(e){os=e}function Bn(){os=null}function K(e,t=He,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&_i(-1);const o=Hr(t);let a;try{a=e(...s)}finally{Hr(o),r._d&&_i(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function vs(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:_,inheritAttrs:h}=e;let w,v;const T=Hr(e);try{if(n.shapeFlag&4){const P=s||r;w=vt(f.call(P,P,c,o,p,d,_)),v=l}else{const P=t;w=vt(P.length>1?P(o,{attrs:l,slots:i,emit:u}):P(o,null)),v=t.props?l:ju(l)}}catch(P){er.length=0,rs(P,e,1),w=U(ct)}let S=w;if(v&&h!==!1){const P=Object.keys(v),{shapeFlag:b}=S;P.length&&b&7&&(a&&P.some(po)&&(v=Vu(v,a)),S=Kt(S,v))}return n.dirs&&(S=Kt(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),w=S,Hr(T),w}const ju=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zr(n))&&((t||(t={}))[n]=e[n]);return t},Vu=(e,t)=>{const n={};for(const r in e)(!po(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Uu(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?ii(r,a,u):!!a;if(l&8){const f=t.dynamicProps;for(let c=0;ce.__isSuspense;function Wu(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Fu(e)}function Nr(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||He;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 nt(e,t,n){return ll(e,t,n)}function ll(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:a}=ze){const i=Be;let l,u=!1,f=!1;if(Ie(e)?(l=()=>e.value,u=Ur(e)):Ct(e)?(l=()=>e,r=!0):J(e)?(f=!0,u=e.some(S=>Ct(S)||Ur(S)),l=()=>e.map(S=>{if(Ie(S))return S.value;if(Ct(S))return fn(S);if(re(S))return Ht(S,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 S=l;l=()=>fn(S())}let c,d=S=>{c=v.onStop=()=>{Ht(S,i,4)}},p;if(fr)if(d=ht,t?n&<(t,i,3,[l(),f?[]:void 0,d]):l(),s==="sync"){const S=Bf();p=S.__watcherHandles||(S.__watcherHandles=[])}else return ht;let _=f?new Array(e.length).fill(Cr):Cr;const h=()=>{if(!!v.active)if(t){const S=v.run();(r||u||(f?S.some((P,b)=>ir(P,_[b])):ir(S,_)))&&(c&&c(),lt(t,i,3,[S,_===Cr?void 0:f&&_[0]===Cr?[]:_,d]),_=S)}else v.run()};h.allowRecurse=!!t;let w;s==="sync"?w=h:s==="post"?w=()=>Qe(h,i&&i.suspense):(h.pre=!0,i&&(h.id=i.uid),w=()=>To(h));const v=new go(l,w);t?n?h():_=v.run():s==="post"?Qe(v.run.bind(v),i&&i.suspense):v.run();const T=()=>{v.stop(),i&&i.scope&&ho(i.scope.effects,v)};return p&&p.push(T),T}function Ku(e,t,n){const r=this.proxy,s=$e(e)?e.includes(".")?cl(r,e):()=>r[e]:e.bind(r,r);let o;re(t)?o=t:(o=t.handler,n=t);const a=Be;In(this);const i=ll(s,o.bind(r),n);return a?In(a):pn(),i}function cl(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{fn(n,t)});else if($a(e))for(const n in e)fn(e[n],t);return e}function Yu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xt(()=>{e.isMounted=!0}),ml(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],Xu={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=vr(),r=Yu();let s;return()=>{const o=t.default&&dl(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 bs(a);const u=ai(a);if(!u)return bs(a);const f=Ms(u,i,r,n);$s(u,f);const c=n.subTree,d=c&&ai(c);let p=!1;const{getTransitionKey:_}=u.type;if(_){const h=_();s===void 0?s=h:h!==s&&(s=h,p=!0)}if(d&&d.type!==ct&&(!ln(u,d)||p)){const h=Ms(d,i,r,n);if($s(d,h),l==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},bs(a);l==="in-out"&&u.type!==ct&&(h.delayLeave=(w,v,T)=>{const S=fl(r,d);S[String(d.key)]=d,w._leaveCb=()=>{v(),w._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=T})}return a}}},ul=Xu;function fl(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 Ms(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:_,onBeforeAppear:h,onAppear:w,onAfterAppear:v,onAppearCancelled:T}=t,S=String(e.key),P=fl(n,e),b=(k,M)=>{k&<(k,r,9,M)},y=(k,M)=>{const q=M[1];b(k,M),J(k)?k.every(Q=>Q.length<=1)&&q():k.length<=1&&q()},E={mode:o,persisted:a,beforeEnter(k){let M=i;if(!n.isMounted)if(s)M=h||i;else return;k._leaveCb&&k._leaveCb(!0);const q=P[S];q&&ln(e,q)&&q.el._leaveCb&&q.el._leaveCb(),b(M,[k])},enter(k){let M=l,q=u,Q=f;if(!n.isMounted)if(s)M=w||l,q=v||u,Q=T||f;else return;let V=!1;const ce=k._enterCb=Ee=>{V||(V=!0,Ee?b(Q,[k]):b(q,[k]),E.delayedLeave&&E.delayedLeave(),k._enterCb=void 0)};M?y(M,[k,ce]):ce()},leave(k,M){const q=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return M();b(c,[k]);let Q=!1;const V=k._leaveCb=ce=>{Q||(Q=!0,M(),ce?b(_,[k]):b(p,[k]),k._leaveCb=void 0,P[q]===e&&delete P[q])};P[q]=e,d?y(d,[k,V]):V()},clone(k){return Ms(k,t,n,r)}};return E}function bs(e){if(is(e))return e=Kt(e),e.children=null,e}function ai(e){return is(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(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 dl(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,is=e=>e.type.__isKeepAlive;function Gu(e,t){hl(e,"a",t)}function Qu(e,t){hl(e,"da",t)}function hl(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(as(t,r,n),n){let s=n.parent;for(;s&&s.parent;)is(s.parent.vnode)&&Ju(r,t,n,s),s=s.parent}}function Ju(e,t,n,r){const s=as(t,e,r,!0);Gt(()=>{ho(r[t],s)},n)}function as(e,t,n=Be,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;$n(),In(n);const i=lt(t,n,e,a);return pn(),Nn(),i});return r?s.unshift(o):s.push(o),o}}const At=e=>(t,n=Be)=>(!fr||e==="sp")&&as(e,(...r)=>t(...r),n),Zu=At("bm"),Xt=At("m"),ef=At("bu"),tf=At("u"),ml=At("bum"),Gt=At("um"),nf=At("sp"),rf=At("rtg"),sf=At("rtc");function of(e,t=Be){as("ec",e,t)}function _l(e,t){const n=He;if(n===null)return e;const r=cs(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;iWr(t)?!(t.type===ct||t.type===we&&!vl(t.children)):!0)?e:null}const Ns=e=>e?zl(e)?cs(e)||e.proxy:Ns(e.parent):null,Jn=qe(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=>Ns(e.parent),$root:e=>Ns(e.root),$emit:e=>e.emit,$options:e=>Po(e),$forceUpdate:e=>e.f||(e.f=()=>To(e.update)),$nextTick:e=>e.n||(e.n=_r.bind(e.proxy)),$watch:e=>Ku.bind(e)}),ws=(e,t)=>e!==ze&&!e.__isScriptSetup&&me(e,t),af={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(ws(r,t))return a[t]=1,r[t];if(s!==ze&&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!==ze&&me(n,t))return a[t]=4,n[t];Fs&&(a[t]=0)}}const f=Jn[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!==ze&&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 ws(s,t)?(s[t]=n,!0):r!==ze&&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!==ze&&me(e,a)||ws(t,a)||(i=o[0])&&me(i,a)||me(r,a)||me(Jn,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 Fs=!0;function lf(e){const t=Po(e),n=e.proxy,r=e.ctx;Fs=!1,t.beforeCreate&&ci(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:_,activated:h,deactivated:w,beforeDestroy:v,beforeUnmount:T,destroyed:S,unmounted:P,render:b,renderTracked:y,renderTriggered:E,errorCaptured:k,serverPrefetch:M,expose:q,inheritAttrs:Q,components:V,directives:ce,filters:Ee}=t;if(u&&cf(u,r,null,e.appContext.config.unwrapInjectedRef),a)for(const Z in a){const ae=a[Z];re(ae)&&(r[Z]=ae.bind(n))}if(s){const Z=s.call(n,n);ke(Z)&&(e.data=Fn(Z))}if(Fs=!0,o)for(const Z in o){const ae=o[Z],Je=re(ae)?ae.bind(n,n):re(ae.get)?ae.get.bind(n,n):ht,Tt=!re(ae)&&re(ae.set)?ae.set.bind(n):ht,Ze=Ae({get:Je,set:Tt});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:We=>Ze.value=We})}if(i)for(const Z in i)bl(i[Z],r,n,Z);if(l){const Z=re(l)?l.call(n):l;Reflect.ownKeys(Z).forEach(ae=>{Nr(ae,Z[ae])})}f&&ci(f,e,"c");function xe(Z,ae){J(ae)?ae.forEach(Je=>Z(Je.bind(n))):ae&&Z(ae.bind(n))}if(xe(Zu,c),xe(Xt,d),xe(ef,p),xe(tf,_),xe(Gu,h),xe(Qu,w),xe(of,k),xe(sf,y),xe(rf,E),xe(ml,T),xe(Gt,P),xe(nf,M),J(q))if(q.length){const Z=e.exposed||(e.exposed={});q.forEach(ae=>{Object.defineProperty(Z,ae,{get:()=>n[ae],set:Je=>n[ae]=Je})})}else e.exposed||(e.exposed={});b&&e.render===ht&&(e.render=b),Q!=null&&(e.inheritAttrs=Q),V&&(e.components=V),ce&&(e.directives=ce)}function cf(e,t,n=ht,r=!1){J(e)&&(e=Ds(e));for(const s in e){const o=e[s];let a;ke(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 ci(e,t,n){lt(J(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bl(e,t,n,r){const s=r.includes(".")?cl(n,r):()=>n[r];if($e(e)){const o=t[e];re(o)&&nt(s,o)}else if(re(e))nt(s,e.bind(n));else if(ke(e))if(J(e))e.forEach(o=>bl(o,t,n,r));else{const o=re(e.handler)?e.handler.bind(n):t[e.handler];re(o)&&nt(s,o,e)}}function Po(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=>qr(l,u,a,!0)),qr(l,t,a)),ke(t)&&o.set(t,l),l}function qr(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&qr(e,o,n,!0),s&&s.forEach(a=>qr(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=uf[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const uf={data:ui,props:on,emits:on,methods:on,computed:on,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:on,directives:on,watch:df,provide:ui,inject:ff};function ui(e,t){return t?e?function(){return qe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function ff(e,t){return on(Ds(e),Ds(t))}function Ds(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]=El(c,t,!0);qe(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 ke(e)&&r.set(e,xn),xn;if(J(o))for(let f=0;f-1,p[1]=h<0||_-1||me(p,"default"))&&i.push(c)}}}const u=[a,i];return ke(e)&&r.set(e,u),u}function fi(e){return e[0]!=="$"}function di(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function pi(e,t){return di(e)===di(t)}function hi(e,t){return J(t)?t.findIndex(n=>pi(n,e)):re(t)&&pi(t,e)?0:-1}const xl=e=>e[0]==="_"||e==="$stable",Co=e=>J(e)?e.map(vt):[vt(e)],mf=(e,t,n)=>{if(t._n)return t;const r=K((...s)=>Co(t(...s)),n);return r._c=!1,r},kl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(xl(s))continue;const o=e[s];if(re(o))t[s]=mf(s,o,r);else if(o!=null){const a=Co(o);t[s]=()=>a}}},Tl=(e,t)=>{const n=Co(t);e.slots.default=()=>n},_f=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ye(t),Vr(t,"_",n)):kl(t,e.slots={})}else e.slots={},t&&Tl(e,t);Vr(e.slots,ls,1)},yf=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=ze;if(r.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:(qe(s,t),!n&&i===1&&delete s._):(o=!t.$stable,kl(t,s)),a=t}else t&&(Tl(e,t),a={default:1});if(o)for(const i in s)!xl(i)&&!(i in a)&&delete s[i]};function Sl(){return{app:null,config:{isNativeTag:Kc,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 gf=0;function vf(e,t){return function(r,s=null){re(r)||(r=Object.assign({},r)),s!=null&&!ke(s)&&(s=null);const o=Sl(),a=new Set;let i=!1;const l=o.app={_uid:gf++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:jf,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=U(r,s);return d.appContext=o,f&&t?t(d,u):e(d,u,c),i=!0,l._container=u,u.__vue_app__=l,cs(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 js(e,t,n,r,s=!1){if(J(e)){e.forEach((d,p)=>js(d,t&&(J(t)?t[p]:t),n,r,s));return}if(Qn(r)&&!s)return;const o=r.shapeFlag&4?cs(r.component)||r.component.proxy:r.el,a=s?null:o,{i,r:l}=e,u=t&&t.r,f=i.refs===ze?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 _=()=>{if(e.f){const h=d?me(c,l)?c[l]:f[l]:l.value;s?J(h)&&ho(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?(_.id=-1,Qe(_,n)):_()}}}const Qe=Wu;function bf(e){return wf(e)}function wf(e,t){const n=Zc();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:_}=e,h=(m,g,C,z=null,R=null,F=null,j=!1,$=null,D=!!g.dynamicChildren)=>{if(m===g)return;m&&!ln(m,g)&&(z=B(m),We(m,R,F,!0),m=null),g.patchFlag===-2&&(D=!1,g.dynamicChildren=null);const{type:I,ref:x,shapeFlag:O}=g;switch(I){case yr:w(m,g,C,z);break;case ct:v(m,g,C,z);break;case Es:m==null&&T(g,C,z,j);break;case we:V(m,g,C,z,R,F,j,$,D);break;default:O&1?b(m,g,C,z,R,F,j,$,D):O&6?ce(m,g,C,z,R,F,j,$,D):(O&64||O&128)&&I.process(m,g,C,z,R,F,j,$,D,fe)}x!=null&&R&&js(x,m&&m.ref,F,g||m,!g)},w=(m,g,C,z)=>{if(m==null)r(g.el=i(g.children),C,z);else{const R=g.el=m.el;g.children!==m.children&&u(R,g.children)}},v=(m,g,C,z)=>{m==null?r(g.el=l(g.children||""),C,z):g.el=m.el},T=(m,g,C,z)=>{[m.el,m.anchor]=_(m.children,g,C,z,m.el,m.anchor)},S=({el:m,anchor:g},C,z)=>{let R;for(;m&&m!==g;)R=d(m),r(m,C,z),m=R;r(g,C,z)},P=({el:m,anchor:g})=>{let C;for(;m&&m!==g;)C=d(m),s(m),m=C;s(g)},b=(m,g,C,z,R,F,j,$,D)=>{j=j||g.type==="svg",m==null?y(g,C,z,R,F,j,$,D):M(m,g,R,F,j,$,D)},y=(m,g,C,z,R,F,j,$)=>{let D,I;const{type:x,props:O,shapeFlag:W,transition:X,dirs:oe}=m;if(D=m.el=a(m.type,F,O&&O.is,O),W&8?f(D,m.children):W&16&&k(m.children,D,null,z,R,F&&x!=="foreignObject",j,$),oe&&tn(m,null,z,"created"),O){for(const de in O)de!=="value"&&!Mr(de)&&o(D,de,null,O[de],F,m.children,z,R,H);"value"in O&&o(D,"value",null,O.value),(I=O.onVnodeBeforeMount)&>(I,z,m)}E(D,m,m.scopeId,j,z),oe&&tn(m,null,z,"beforeMount");const ve=(!R||R&&!R.pendingBranch)&&X&&!X.persisted;ve&&X.beforeEnter(D),r(D,g,C),((I=O&&O.onVnodeMounted)||ve||oe)&&Qe(()=>{I&>(I,z,m),ve&&X.enter(D),oe&&tn(m,null,z,"mounted")},R)},E=(m,g,C,z,R)=>{if(C&&p(m,C),z)for(let F=0;F{for(let I=D;I{const $=g.el=m.el;let{patchFlag:D,dynamicChildren:I,dirs:x}=g;D|=m.patchFlag&16;const O=m.props||ze,W=g.props||ze;let X;C&&nn(C,!1),(X=W.onVnodeBeforeUpdate)&>(X,C,g,m),x&&tn(g,m,C,"beforeUpdate"),C&&nn(C,!0);const oe=R&&g.type!=="foreignObject";if(I?q(m.dynamicChildren,I,$,C,z,oe,F):j||ae(m,g,$,null,C,z,oe,F,!1),D>0){if(D&16)Q($,g,O,W,C,z,R);else if(D&2&&O.class!==W.class&&o($,"class",null,W.class,R),D&4&&o($,"style",O.style,W.style,R),D&8){const ve=g.dynamicProps;for(let de=0;de{X&>(X,C,g,m),x&&tn(g,m,C,"updated")},z)},q=(m,g,C,z,R,F,j)=>{for(let $=0;${if(C!==z){if(C!==ze)for(const $ in C)!Mr($)&&!($ in z)&&o(m,$,C[$],null,j,g.children,R,F,H);for(const $ in z){if(Mr($))continue;const D=z[$],I=C[$];D!==I&&$!=="value"&&o(m,$,I,D,j,g.children,R,F,H)}"value"in z&&o(m,"value",C.value,z.value)}},V=(m,g,C,z,R,F,j,$,D)=>{const I=g.el=m?m.el:i(""),x=g.anchor=m?m.anchor:i("");let{patchFlag:O,dynamicChildren:W,slotScopeIds:X}=g;X&&($=$?$.concat(X):X),m==null?(r(I,C,z),r(x,C,z),k(g.children,C,x,R,F,j,$,D)):O>0&&O&64&&W&&m.dynamicChildren?(q(m.dynamicChildren,W,C,R,F,j,$),(g.key!=null||R&&g===R.subTree)&&zo(m,g,!0)):ae(m,g,C,x,R,F,j,$,D)},ce=(m,g,C,z,R,F,j,$,D)=>{g.slotScopeIds=$,m==null?g.shapeFlag&512?R.ctx.activate(g,C,z,j,D):Ee(g,C,z,R,F,j,D):Oe(m,g,D)},Ee=(m,g,C,z,R,F,j)=>{const $=m.component=Lf(m,z,R);if(is(m)&&($.ctx.renderer=fe),Af($),$.asyncDep){if(R&&R.registerDep($,xe),!m.el){const D=$.subTree=U(ct);v(null,D,g,C)}return}xe($,m,g,C,R,F,j)},Oe=(m,g,C)=>{const z=g.component=m.component;if(Uu(m,g,C))if(z.asyncDep&&!z.asyncResolved){Z(z,g,C);return}else z.next=g,Nu(z.update),z.update();else g.el=m.el,z.vnode=g},xe=(m,g,C,z,R,F,j)=>{const $=()=>{if(m.isMounted){let{next:x,bu:O,u:W,parent:X,vnode:oe}=m,ve=x,de;nn(m,!1),x?(x.el=oe.el,Z(m,x,j)):x=oe,O&&$r(O),(de=x.props&&x.props.onVnodeBeforeUpdate)&>(de,X,x,oe),nn(m,!0);const Le=vs(m),ot=m.subTree;m.subTree=Le,h(ot,Le,c(ot.el),B(ot),m,R,F),x.el=Le.el,ve===null&&Hu(m,Le.el),W&&Qe(W,R),(de=x.props&&x.props.onVnodeUpdated)&&Qe(()=>gt(de,X,x,oe),R)}else{let x;const{el:O,props:W}=g,{bm:X,m:oe,parent:ve}=m,de=Qn(g);if(nn(m,!1),X&&$r(X),!de&&(x=W&&W.onVnodeBeforeMount)&>(x,ve,g),nn(m,!0),O&&se){const Le=()=>{m.subTree=vs(m),se(O,m.subTree,m,R,null)};de?g.type.__asyncLoader().then(()=>!m.isUnmounted&&Le()):Le()}else{const Le=m.subTree=vs(m);h(null,Le,C,z,m,R,F),g.el=Le.el}if(oe&&Qe(oe,R),!de&&(x=W&&W.onVnodeMounted)){const Le=g;Qe(()=>gt(x,ve,Le),R)}(g.shapeFlag&256||ve&&Qn(ve.vnode)&&ve.vnode.shapeFlag&256)&&m.a&&Qe(m.a,R),m.isMounted=!0,g=C=z=null}},D=m.effect=new go($,()=>To(I),m.scope),I=m.update=()=>D.run();I.id=m.uid,nn(m,!0),I()},Z=(m,g,C)=>{g.component=m;const z=m.vnode.props;m.vnode=g,m.next=null,hf(m,g.props,z,C),yf(m,g.children,C),$n(),oi(),Nn()},ae=(m,g,C,z,R,F,j,$,D=!1)=>{const I=m&&m.children,x=m?m.shapeFlag:0,O=g.children,{patchFlag:W,shapeFlag:X}=g;if(W>0){if(W&128){Tt(I,O,C,z,R,F,j,$,D);return}else if(W&256){Je(I,O,C,z,R,F,j,$,D);return}}X&8?(x&16&&H(I,R,F),O!==I&&f(C,O)):x&16?X&16?Tt(I,O,C,z,R,F,j,$,D):H(I,R,F,!0):(x&8&&f(C,""),X&16&&k(O,C,z,R,F,j,$,D))},Je=(m,g,C,z,R,F,j,$,D)=>{m=m||xn,g=g||xn;const I=m.length,x=g.length,O=Math.min(I,x);let W;for(W=0;Wx?H(m,R,F,!0,!1,O):k(g,C,z,R,F,j,$,D,O)},Tt=(m,g,C,z,R,F,j,$,D)=>{let I=0;const x=g.length;let O=m.length-1,W=x-1;for(;I<=O&&I<=W;){const X=m[I],oe=g[I]=D?Dt(g[I]):vt(g[I]);if(ln(X,oe))h(X,oe,C,null,R,F,j,$,D);else break;I++}for(;I<=O&&I<=W;){const X=m[O],oe=g[W]=D?Dt(g[W]):vt(g[W]);if(ln(X,oe))h(X,oe,C,null,R,F,j,$,D);else break;O--,W--}if(I>O){if(I<=W){const X=W+1,oe=XW)for(;I<=O;)We(m[I],R,F,!0),I++;else{const X=I,oe=I,ve=new Map;for(I=oe;I<=W;I++){const et=g[I]=D?Dt(g[I]):vt(g[I]);et.key!=null&&ve.set(et.key,I)}let de,Le=0;const ot=W-oe+1;let yn=!1,Ko=0;const Vn=new Array(ot);for(I=0;I=ot){We(et,R,F,!0);continue}let yt;if(et.key!=null)yt=ve.get(et.key);else for(de=oe;de<=W;de++)if(Vn[de-oe]===0&&ln(et,g[de])){yt=de;break}yt===void 0?We(et,R,F,!0):(Vn[yt-oe]=I+1,yt>=Ko?Ko=yt:yn=!0,h(et,g[yt],C,null,R,F,j,$,D),Le++)}const Yo=yn?Ef(Vn):xn;for(de=Yo.length-1,I=ot-1;I>=0;I--){const et=oe+I,yt=g[et],Xo=et+1{const{el:F,type:j,transition:$,children:D,shapeFlag:I}=m;if(I&6){Ze(m.component.subTree,g,C,z);return}if(I&128){m.suspense.move(g,C,z);return}if(I&64){j.move(m,g,C,fe);return}if(j===we){r(F,g,C);for(let O=0;O$.enter(F),R);else{const{leave:O,delayLeave:W,afterLeave:X}=$,oe=()=>r(F,g,C),ve=()=>{O(F,()=>{oe(),X&&X()})};W?W(F,oe,ve):ve()}else r(F,g,C)},We=(m,g,C,z=!1,R=!1)=>{const{type:F,props:j,ref:$,children:D,dynamicChildren:I,shapeFlag:x,patchFlag:O,dirs:W}=m;if($!=null&&js($,null,C,m,!0),x&256){g.ctx.deactivate(m);return}const X=x&1&&W,oe=!Qn(m);let ve;if(oe&&(ve=j&&j.onVnodeBeforeUnmount)&>(ve,g,m),x&6)L(m.component,C,z);else{if(x&128){m.suspense.unmount(C,z);return}X&&tn(m,null,g,"beforeUnmount"),x&64?m.type.remove(m,g,C,R,fe,z):I&&(F!==we||O>0&&O&64)?H(I,g,C,!1,!0):(F===we&&O&384||!R&&x&16)&&H(D,g,C),z&&Zt(m)}(oe&&(ve=j&&j.onVnodeUnmounted)||X)&&Qe(()=>{ve&>(ve,g,m),X&&tn(m,null,g,"unmounted")},C)},Zt=m=>{const{type:g,el:C,anchor:z,transition:R}=m;if(g===we){_n(C,z);return}if(g===Es){P(m);return}const F=()=>{s(C),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(m.shapeFlag&1&&R&&!R.persisted){const{leave:j,delayLeave:$}=R,D=()=>j(C,F);$?$(m.el,F,D):D()}else F()},_n=(m,g)=>{let C;for(;m!==g;)C=d(m),s(m),m=C;s(g)},L=(m,g,C)=>{const{bum:z,scope:R,update:F,subTree:j,um:$}=m;z&&$r(z),R.stop(),F&&(F.active=!1,We(j,m,g,C)),$&&Qe($,g),Qe(()=>{m.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},H=(m,g,C,z=!1,R=!1,F=0)=>{for(let j=F;jm.shapeFlag&6?B(m.component.subTree):m.shapeFlag&128?m.suspense.next():d(m.anchor||m.el),G=(m,g,C)=>{m==null?g._vnode&&We(g._vnode,null,null,!0):h(g._vnode||null,m,g,null,null,null,C),oi(),ol(),g._vnode=m},fe={p:h,um:We,m:Ze,r:Zt,mt:Ee,mc:k,pc:ae,pbc:q,n:B,o:e};let Pe,se;return t&&([Pe,se]=t(fe)),{render:G,hydrate:Pe,createApp:vf(G,Pe)}}function nn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function zo(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 xf=e=>e.__isTeleport,Zn=e=>e&&(e.disabled||e.disabled===""),mi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vs=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},kf={__isTeleport:!0,process(e,t,n,r,s,o,a,i,l,u){const{mc:f,pc:c,pbc:d,o:{insert:p,querySelector:_,createText:h,createComment:w}}=u,v=Zn(t.props);let{shapeFlag:T,children:S,dynamicChildren:P}=t;if(e==null){const b=t.el=h(""),y=t.anchor=h("");p(b,n,r),p(y,n,r);const E=t.target=Vs(t.props,_),k=t.targetAnchor=h("");E&&(p(k,E),a=a||mi(E));const M=(q,Q)=>{T&16&&f(S,q,Q,s,o,a,i,l)};v?M(n,y):E&&M(E,k)}else{t.el=e.el;const b=t.anchor=e.anchor,y=t.target=e.target,E=t.targetAnchor=e.targetAnchor,k=Zn(e.props),M=k?n:y,q=k?b:E;if(a=a||mi(y),P?(d(e.dynamicChildren,P,M,s,o,a,i),zo(e,t,!0)):l||c(e,t,M,q,s,o,a,i,!1),v)k||zr(t,n,b,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Q=t.target=Vs(t.props,_);Q&&zr(t,Q,null,u,0)}else k&&zr(t,y,E,u,1)}Ol(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||!Zn(d))&&(o(u),i&16))for(let p=0;p0?pt||xn:null,Of(),ur>0&&pt&&pt.push(e),e}function te(e,t,n,r,s,o){return Pl(A(e,t,n,r,s,o,!0))}function le(e,t,n,r,s){return Pl(U(e,t,n,r,s,!0))}function Wr(e){return e?e.__v_isVNode===!0:!1}function ln(e,t){return e.type===t.type&&e.key===t.key}const ls="__vInternal",Cl=({key:e})=>e??null,Fr=({ref:e,ref_key:t,ref_for:n})=>e!=null?$e(e)||Ie(e)||re(e)?{i:He,r:e,k:t,f:!!n}:e:null;function A(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&&Cl(t),ref:t&&Fr(t),scopeId:os,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:He};return i?(Io(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=$e(n)?8:16),ur>0&&!a&&pt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&pt.push(l),l}const U=Pf;function Pf(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===yl)&&(e=ct),Wr(e)){const i=Kt(e,t,!0);return n&&Io(i,n),ur>0&&!o&&pt&&(i.shapeFlag&6?pt[pt.indexOf(e)]=i:pt.push(i)),i.patchFlag|=-2,i}if(Ff(e)&&(e=e.__vccOpts),t){t=Cf(t);let{class:i,style:l}=t;i&&!$e(i)&&(t.class=at(i)),ke(l)&&(Xa(l)&&!J(l)&&(l=qe({},l)),t.style=Jr(l))}const a=$e(e)?1:qu(e)?128:xf(e)?64:ke(e)?4:re(e)?2:0;return A(e,t,n,r,s,a,o,!0)}function Cf(e){return e?Xa(e)||ls in e?qe({},e):e:null}function Kt(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:a}=e,i=t?gr(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Cl(i),ref:t&&t.ref?n&&s?J(s)?s.concat(Fr(t)):[s,Fr(t)]:Fr(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&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function qt(e=" ",t=0){return U(yr,null,e,t)}function Te(e="",t=!1){return t?(N(),le(ct,null,e)):U(ct,null,e)}function vt(e){return e==null||typeof e=="boolean"?U(ct):J(e)?U(we,null,e.slice()):typeof e=="object"?Dt(e):U(yr,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function Io(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),Io(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(ls in t)?t._ctx=He:s===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:He},n=32):(t=String(t),r&64?(n=16,t=[qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function gr(...e){const t={};for(let n=0;nBe||He,In=e=>{Be=e,e.scope.on()},pn=()=>{Be&&Be.scope.off(),Be=null};function zl(e){return e.vnode.shapeFlag&4}let fr=!1;function Af(e,t=!1){fr=t;const{props:n,children:r}=e.vnode,s=zl(e);pf(e,n,s,t),_f(e,r);const o=s?Rf(e,t):void 0;return fr=!1,o}function Rf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=zn(new Proxy(e.ctx,af));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?$f(e):null;In(e),$n();const o=Ht(r,e,0,[e.props,s]);if(Nn(),pn(),Ra(o)){if(o.then(pn,pn),t)return o.then(a=>{yi(e,a,t)}).catch(a=>{rs(a,e,0)});e.asyncDep=o}else yi(e,o,t)}else Il(e,t)}function yi(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ke(t)&&(e.setupState=Za(t)),Il(e,n)}let gi;function Il(e,t,n){const r=e.type;if(!e.render){if(!t&&gi&&!r.render){const s=r.template||Po(e).template;if(s){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:l}=r,u=qe(qe({isCustomElement:o,delimiters:i},a),l);r.render=gi(s,u)}}e.render=r.render||ht}In(e),$n(),lf(e),Nn(),pn()}function Mf(e){return new Proxy(e.attrs,{get(t,n){return rt(e,"get","$attrs"),t[n]}})}function $f(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Mf(e))},slots:e.slots,emit:e.emit,expose:t}}function cs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Za(zn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jn)return Jn[n](e)},has(t,n){return n in t||n in Jn}}))}function Nf(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Ff(e){return re(e)&&"__vccOpts"in e}const Ae=(e,t)=>Ru(e,t,fr);function br(e,t,n){const r=arguments.length;return r===2?ke(t)&&!J(t)?Wr(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wr(n)&&(n=[n]),U(e,t,n))}const Df=Symbol(""),Bf=()=>Re(Df),jf="3.2.45",Vf="http://www.w3.org/2000/svg",cn=typeof document<"u"?document:null,vi=cn&&cn.createElement("template"),Uf={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(Vf,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{vi.innerHTML=r?`${e}`:e;const i=vi.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 Hf(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 qf(e,t,n){const r=e.style,s=$e(n);if(n&&!s){for(const o in n)Us(r,o,n[o]);if(t&&!$e(t))for(const o in t)n[o]==null&&Us(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const bi=/\s*!important$/;function Us(e,t,n){if(J(n))n.forEach(r=>Us(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Wf(e,t);bi.test(n)?e.setProperty(mn(r),n.replace(bi,""),"important"):e[r]=n}}const wi=["Webkit","Moz","ms"],xs={};function Wf(e,t){const n=xs[t];if(n)return n;let r=xt(t);if(r!=="filter"&&r in e)return xs[t]=r;r=ts(r);for(let s=0;sks||(Jf.then(()=>ks=0),ks=Date.now());function ed(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(td(r,n.value),t,5,[r])};return n.value=e,n.attached=Zf(),n}function td(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 ki=/^on[a-z]/,nd=(e,t,n,r,s=!1,o,a,i,l)=>{t==="class"?Hf(e,r,s):t==="style"?qf(e,n,r):Zr(t)?po(t)||Gf(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rd(e,t,r,s))?Yf(e,t,r,o,a,i,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Kf(e,t,r,s))};function rd(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ki.test(t)&&re(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ki.test(t)&&$e(n)?!1:t in e}const $t="transition",Hn="animation",Lo=(e,{slots:t})=>br(ul,sd(e),t);Lo.displayName="Transition";const Ll={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};Lo.props=qe({},ul.props,Ll);const rn=(e,t=[])=>{J(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ti=e=>e?J(e)?e.some(t=>t.length>1):e.length>1:!1;function sd(e){const t={};for(const V in e)V in Ll||(t[V]=e[V]);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,_=od(s),h=_&&_[0],w=_&&_[1],{onBeforeEnter:v,onEnter:T,onEnterCancelled:S,onLeave:P,onLeaveCancelled:b,onBeforeAppear:y=v,onAppear:E=T,onAppearCancelled:k=S}=t,M=(V,ce,Ee)=>{sn(V,ce?f:i),sn(V,ce?u:a),Ee&&Ee()},q=(V,ce)=>{V._isLeaving=!1,sn(V,c),sn(V,p),sn(V,d),ce&&ce()},Q=V=>(ce,Ee)=>{const Oe=V?E:T,xe=()=>M(ce,V,Ee);rn(Oe,[ce,xe]),Si(()=>{sn(ce,V?l:o),Nt(ce,V?f:i),Ti(Oe)||Oi(ce,r,h,xe)})};return qe(t,{onBeforeEnter(V){rn(v,[V]),Nt(V,o),Nt(V,a)},onBeforeAppear(V){rn(y,[V]),Nt(V,l),Nt(V,u)},onEnter:Q(!1),onAppear:Q(!0),onLeave(V,ce){V._isLeaving=!0;const Ee=()=>q(V,ce);Nt(V,c),ld(),Nt(V,d),Si(()=>{!V._isLeaving||(sn(V,c),Nt(V,p),Ti(P)||Oi(V,r,w,Ee))}),rn(P,[V,Ee])},onEnterCancelled(V){M(V,!1),rn(S,[V])},onAppearCancelled(V){M(V,!0),rn(k,[V])},onLeaveCancelled(V){q(V),rn(b,[V])}})}function od(e){if(e==null)return null;if(ke(e))return[Ts(e.enter),Ts(e.leave)];{const t=Ts(e);return[t,t]}}function Ts(e){return Pn(e)}function Nt(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 Si(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let id=0;function Oi(e,t,n,r){const s=e._endId=++id,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:i,propCount:l}=ad(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[_]||"").split(", "),s=r(`${$t}Delay`),o=r(`${$t}Duration`),a=Pi(s,o),i=r(`${Hn}Delay`),l=r(`${Hn}Duration`),u=Pi(i,l);let f=null,c=0,d=0;t===$t?a>0&&(f=$t,c=a,d=o.length):t===Hn?u>0&&(f=Hn,c=u,d=l.length):(c=Math.max(a,u),f=c>0?a>u?$t:Hn:null,d=f?f===$t?o.length:l.length:0);const p=f===$t&&/\b(transform|all)(,|$)/.test(r(`${$t}Property`).toString());return{type:f,timeout:c,propCount:d,hasTransform:p}}function Pi(e,t){for(;e.lengthCi(n)+Ci(e[r])))}function Ci(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ld(){return document.body.offsetHeight}const Yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>$r(t,n):t};function cd(e){e.target.composing=!0}function zi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ii={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Yt(s);const o=r||s.props&&s.props.type==="number";Pt(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&&Pt(e,"change",()=>{e.value=e.value.trim()}),t||(Pt(e,"compositionstart",cd),Pt(e,"compositionend",zi),Pt(e,"change",zi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e._assign=Yt(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)}},ud={deep:!0,created(e,t,n){e._assign=Yt(n),Pt(e,"change",()=>{const r=e._modelValue,s=Ln(e),o=e.checked,a=e._assign;if(J(r)){const i=fo(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(Mn(r)){const i=new Set(r);o?i.add(s):i.delete(s),a(i)}else a(Rl(e,o))})},mounted:Li,beforeUpdate(e,t,n){e._assign=Yt(n),Li(e,t,n)}};function Li(e,{value:t,oldValue:n},r){e._modelValue=t,J(t)?e.checked=fo(t,r.props.value)>-1:Mn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=hn(t,Rl(e,!0)))}const fd={created(e,{value:t},n){e.checked=hn(t,n.props.value),e._assign=Yt(n),Pt(e,"change",()=>{e._assign(Ln(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Yt(r),t!==n&&(e.checked=hn(t,r.props.value))}},Al={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Mn(t);Pt(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=Yt(r)},mounted(e,{value:t}){Ai(e,t)},beforeUpdate(e,t,n){e._assign=Yt(n)},updated(e,{value:t}){Ai(e,t)}};function Ai(e,t){const n=e.multiple;if(!(n&&!J(t)&&!Mn(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 Rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const dd={created(e,t,n){Ir(e,t,n,null,"created")},mounted(e,t,n){Ir(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ir(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ir(e,t,n,r,"updated")}};function pd(e,t){switch(e){case"SELECT":return Al;case"TEXTAREA":return Ii;default:switch(t){case"checkbox":return ud;case"radio":return fd;default:return Ii}}}function Ir(e,t,n,r,s){const a=pd(e.tagName,n.props&&n.props.type)[s];a&&a(e,t,n,r)}const hd=["ctrl","shift","alt","meta"],md={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)=>hd.some(n=>e[`${n}Key`]&&!t.includes(n))},Kr=(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||_d[s]===r))return e(n)},Sv={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qn(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),qn(e,!0),r.enter(e)):r.leave(e,()=>{qn(e,!1)}):qn(e,t))},beforeUnmount(e,{value:t}){qn(e,t)}};function qn(e,t){e.style.display=t?e._vod:"none"}const yd=qe({patchProp:nd},Uf);let Ri;function gd(){return Ri||(Ri=bf(yd))}const vd=(...e)=>{const t=gd().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=bd(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 bd(e){return $e(e)?document.querySelector(e):e}var $l=!1;let Nl;const us=e=>Nl=e,Fl=Symbol();function Hs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var tr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(tr||(tr={}));function wd(){const e=_o(!0),t=e.run(()=>ne({}));let n=[],r=[];const s=zn({install(o){us(s),s._a=o,o.provide(Fl,s),o.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(o){return!this._a&&!$l?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Dl=()=>{};function Mi(e,t,n,r=Dl){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&tu()&&nu(s),s}function gn(e,...t){e.slice().forEach(n=>{n(...t)})}function qs(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];Hs(s)&&Hs(r)&&e.hasOwnProperty(n)&&!Ie(r)&&!Ct(r)?e[n]=qs(s,r):e[n]=r}return e}const Ed=Symbol();function xd(e){return!Hs(e)||!e.hasOwnProperty(Ed)}const{assign:Bt}=Object;function kd(e){return!!(Ie(e)&&e.effect)}function Td(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=el(n.state.value[e]);return Bt(f,o,Object.keys(a||{}).reduce((c,d)=>(c[d]=zn(Ae(()=>{us(n);const p=n._s.get(e);return a[d].call(p,p)})),c),{}))}return l=Bl(e,u,t,n,r,!0),l.$reset=function(){const c=s?s():{};this.$patch(d=>{Bt(d,c)})},l}function Bl(e,t,n={},r,s,o){let a;const i=Bt({actions:{}},n),l={deep:!0};let u,f,c=zn([]),d=zn([]),p;const _=r.state.value[e];!o&&!_&&(r.state.value[e]={}),ne({});let h;function w(E){let k;u=f=!1,typeof E=="function"?(E(r.state.value[e]),k={type:tr.patchFunction,storeId:e,events:p}):(qs(r.state.value[e],E),k={type:tr.patchObject,payload:E,storeId:e,events:p});const M=h=Symbol();_r().then(()=>{h===M&&(u=!0)}),f=!0,gn(c,k,r.state.value[e])}const v=Dl;function T(){a.stop(),c=[],d=[],r._s.delete(e)}function S(E,k){return function(){us(r);const M=Array.from(arguments),q=[],Q=[];function V(Oe){q.push(Oe)}function ce(Oe){Q.push(Oe)}gn(d,{args:M,name:E,store:b,after:V,onError:ce});let Ee;try{Ee=k.apply(this&&this.$id===e?this:b,M)}catch(Oe){throw gn(Q,Oe),Oe}return Ee instanceof Promise?Ee.then(Oe=>(gn(q,Oe),Oe)).catch(Oe=>(gn(Q,Oe),Promise.reject(Oe))):(gn(q,Ee),Ee)}}const P={_p:r,$id:e,$onAction:Mi.bind(null,d),$patch:w,$reset:v,$subscribe(E,k={}){const M=Mi(c,E,k.detached,()=>q()),q=a.run(()=>nt(()=>r.state.value[e],Q=>{(k.flush==="sync"?f:u)&&E({storeId:e,type:tr.direct,events:p},Q)},Bt({},l,k)));return M},$dispose:T},b=Fn(P);r._s.set(e,b);const y=r._e.run(()=>(a=_o(),a.run(()=>t())));for(const E in y){const k=y[E];if(Ie(k)&&!kd(k)||Ct(k))o||(_&&xd(k)&&(Ie(k)?k.value=_[E]:qs(k,_[E])),r.state.value[e][E]=k);else if(typeof k=="function"){const M=S(E,k);y[E]=M,i.actions[E]=k}}return Bt(b,y),Bt(ye(b),y),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:E=>{w(k=>{Bt(k,E)})}}),r._p.forEach(E=>{Bt(b,a.run(()=>E({store:b,app:r._a,pinia:r,options:i})))}),_&&o&&n.hydrate&&n.hydrate(b.$state,_),u=!0,f=!0,b}function Sd(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=vr();return i=i||u&&Re(Fl,null),i&&us(i),i=Nl,i._s.has(r)||(o?Bl(r,t,s,i):Td(r,s,i)),i._s.get(r)}return a.$id=r,a}function Ao(e){if($l)return el(e);{e=ye(e);const t={};for(const n in e){const r=e[n];(Ie(r)||Ct(r))&&(t[n]=tl(e,n))}return t}}const Ro=Sd("fullscreenPlayer",()=>({show:ne(!1)}));const Ve=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},wr=e=>(Dn("data-v-62673e53"),e=e(),Bn(),e),Od={class:"bottom-player"},Pd={class:"cover"},Cd=["src"],zd={class:"track-info-text"},Id={class:"track-name"},Ld={class:"track-artist"},Ad=wr(()=>A("div",{class:"cover"},[A("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)),Rd={class:"track-info-text"},Md=wr(()=>A("div",{class:"track-name"},"PokaPlayer",-1)),$d={class:"track-artist"},Nd={class:"track-control"},Fd={class:"time"},Dd=wr(()=>A("i",{class:"bx bx-skip-previous"},null,-1)),Bd={key:0,class:"bx bx-play"},jd={key:1,class:"bx bx-pause"},Vd=wr(()=>A("i",{class:"bx bx-skip-next"},null,-1)),Ud={class:"time"},Hd={class:"player-control"},qd={key:0,class:"bx bx-shuffle"},Wd={key:1,class:"bx bx-repeat"},Kd=wr(()=>A("i",{class:"bx bx-chevron-up"},null,-1)),Yd={__name:"BottomPlayer",setup(e){const t=Re("Player"),n=Ro(),{show:r}=Ao(n),s=ne(t.audioOrder);nt(s,f=>t.audioOrder=f);const o=ne(t.paused),a=ne("0:00"),i=ne("0:00"),l=ne(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 Gt(()=>{clearInterval(u)}),(f,c)=>{const d=ee("p-btn"),p=ee("fullscreen-player");return N(),te(we,null,[A("div",Od,[l.value?(N(),te("div",{key:0,class:"track-info",onClick:c[0]||(c[0]=_=>r.value=!0),tabindex:"0"},[A("div",Pd,[A("img",{src:l.value.cover,alt:"cover"},null,8,Cd)]),A("div",zd,[A("div",Id,ge(l.value.name),1),A("div",Ld,ge(l.value.artist),1)])])):(N(),te("div",{key:1,class:"track-info",onClick:c[1]||(c[1]=_=>r.value=!0)},[Ad,A("div",Rd,[Md,A("div",$d,ge(f.$t("waitForPlay")),1)])])),A("div",Nd,[A("div",Fd,ge(a.value),1),U(d,{icon:"",text:"",onClick:c[2]||(c[2]=_=>De(t).previous())},{default:K(()=>[Dd]),_:1}),U(d,{icon:"",color:"primary",onClick:c[3]||(c[3]=_=>De(t).toggle())},{default:K(()=>[o.value?(N(),te("i",Bd)):(N(),te("i",jd))]),_:1}),U(d,{icon:"",text:"",onClick:c[4]||(c[4]=_=>De(t).next())},{default:K(()=>[Vd]),_:1}),A("div",Ud,ge(i.value),1)]),A("div",Hd,[U(d,{icon:"",text:"",onClick:c[5]||(c[5]=_=>s.value=s.value=="random"?"list":"random")},{default:K(()=>[s.value=="random"?(N(),te("i",qd)):Te("",!0),s.value=="list"?(N(),te("i",Wd)):Te("",!0)]),_:1}),U(d,{icon:"",text:"",onClick:c[6]||(c[6]=_=>r.value=!0)},{default:K(()=>[Kd]),_:1})])]),U(p)],64)}}},Xd=Ve(Yd,[["__scopeId","data-v-62673e53"]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:Xd},Symbol.toStringTag,{value:"Module"}));const Qd={props:{modelValue:{type:Boolean},showClose:{type:Boolean,default:!1},closeable:{type:Boolean,default:!0},maxWidth:{type:String,default:"min(700px, calc(100vw - 60px))"}}},Jd={class:"modal-wrapper"},Zd=A("i",{class:"bx bx-x"},null,-1),ep=[Zd];function tp(e,t,n,r,s,o){return N(),le(Sf,{to:"body"},[U(Lo,{name:"modal"},{default:K(()=>[n.modelValue?(N(),te("div",{key:0,class:"modal-mask",onClick:t[2]||(t[2]=a=>n.closeable&&e.$emit("update:modelValue",!1))},[A("div",Jd,[A("div",{class:"modal-container",onClick:t[1]||(t[1]=Kr(()=>{},["stop"])),style:Jr(`--max-width: ${n.maxWidth}`)},[n.showClose?(N(),te("div",{key:0,class:"close",onClick:t[0]||(t[0]=a=>n.closeable&&e.$emit("update:modelValue",!1))},ep)):Te("",!0),Lt(e.$slots,"default")],4)])])):Te("",!0)]),_:3})])}const np=Ve(Qd,[["render",tp]]),rp=Object.freeze(Object.defineProperty({__proto__:null,default:np},Symbol.toStringTag,{value:"Module"}));const sp={class:"empty-state"},op={class:"empty-state__icon"},ip={class:"empty-state__title"},ap={class:"empty-state__description"},lp={__name:"EmptyState",props:{title:String,description:String},setup(e){return(t,n)=>(N(),te("div",sp,[A("div",op,[Lt(t.$slots,"default",{},void 0,!0)]),A("div",ip,ge(e.title),1),A("div",ap,ge(e.description),1)]))}},cp=Ve(lp,[["__scopeId","data-v-11011440"]]),up=Object.freeze(Object.defineProperty({__proto__:null,default:cp},Symbol.toStringTag,{value:"Module"}));const Er=e=>(Dn("data-v-17ca1e16"),e=e(),Bn(),e),fp={class:"fullscreen-player__container"},dp={class:"header"},pp=Er(()=>A("div",{class:"left"},[A("div",{class:"logo"}," PokaPlayer ")],-1)),hp={class:"right"},mp=Er(()=>A("i",{class:"bx bx-chevron-down"},null,-1)),_p={class:"content"},yp={class:"left"},gp={class:"footer"},vp=Er(()=>A("i",{class:"bx bx-play"},null,-1)),bp=Er(()=>A("i",{class:"bx bxs-playlist"},null,-1)),wp=Er(()=>A("i",{class:"bx bx-captions"},null,-1)),Ep={__name:"FullscreenPlayer",setup(e){const t=Ro(),{show:n}=Ao(t),r=ne("playlist");let s=()=>{window.innerWidth>768&&r.value=="player"&&(r.value="playlist")};return Xt(()=>{window.addEventListener("resize",s)}),Gt(()=>{window.removeEventListener("resize",s)}),(o,a)=>{const i=ee("p-btn"),l=ee("fullscreen-Player-Player"),u=ee("fullscreen-Player-List"),f=ee("fullscreen-Player-Lyric");return N(),te("div",{class:at(["fullscreen-player",{show:De(n)}])},[A("div",fp,[A("div",dp,[pp,A("div",hp,[U(i,{icon:"",onClick:a[0]||(a[0]=c=>n.value=!1)},{default:K(()=>[mp]),_:1})])]),A("div",_p,[A("div",yp,[U(l)]),A("div",{class:at(["right",[`current-page-${r.value}`]])},[r.value=="player"?(N(),le(l,{key:0})):Te("",!0),r.value=="playlist"?(N(),le(u,{key:1})):Te("",!0),r.value=="lyric"?(N(),le(f,{key:2})):Te("",!0)],2)]),A("div",gp,[U(i,{icon:"",text:r.value!="player",onClick:a[1]||(a[1]=c=>r.value="player")},{default:K(()=>[vp]),_:1},8,["text"]),U(i,{icon:"",text:r.value!="playlist",onClick:a[2]||(a[2]=c=>r.value="playlist")},{default:K(()=>[bp]),_:1},8,["text"]),U(i,{icon:"",text:r.value!="lyric",onClick:a[3]||(a[3]=c=>r.value="lyric")},{default:K(()=>[wp]),_:1},8,["text"])])])],2)}}},xp=Ve(Ep,[["__scopeId","data-v-17ca1e16"]]),kp=Object.freeze(Object.defineProperty({__proto__:null,default:xp},Symbol.toStringTag,{value:"Module"}));const Tp={class:"fullscreen-player__list"},Sp={__name:"List",setup(e){const t=Re("Player"),n=ne([]),r=ne(-1);let s=setInterval(()=>{n.value=t.songList,r.value=t.currentIndex},100);return nt(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"}))}),Xt(()=>{n.value=t.songList,r.value=t.currentIndex,_r(()=>{var o;r.value!=-1&&((o=document.querySelector(`.fullscreen-player__list .p-list-item[data-index="${r.value}"]`))==null||o.scrollIntoView({block:"center"}))})}),Gt(()=>{clearInterval(s)}),(o,a)=>{const i=ee("parse-songs");return N(),te("div",Tp,[U(i,{items:n.value,currentIndex:r.value},null,8,["items","currentIndex"])])}}},Op=Ve(Sp,[["__scopeId","data-v-1d86eedc"]]),Pp=Object.freeze(Object.defineProperty({__proto__:null,default:Op},Symbol.toStringTag,{value:"Module"}));const xr=e=>(Dn("data-v-7293c89c"),e=e(),Bn(),e),Cp=xr(()=>A("div",{class:"icon"},[A("i",{class:"bx bx-question-mark"})],-1)),zp={class:"content"},Ip={class:"title"},Lp={class:"description"},Ap={class:"actions"},Rp=xr(()=>A("i",{class:"bx bx-search"},null,-1)),Mp=xr(()=>A("i",{class:"bx bx-check"},null,-1)),$p=["data-lyric-set"],Np={class:"lyric-search__header"},Fp=xr(()=>A("i",{class:"bx bx-search"},null,-1)),Dp={class:"lyric-search__content"},Bp=xr(()=>A("i",{class:"bx bx-save"},null,-1)),jp={__name:"Lyric",setup(e){const t=Re("Player"),n=Re("PokaAPI"),r=ne(null),s=ne(-1),o=ne(-1),a=ne(-1),i=ne(!1),l=ne(!1),u=ne(!1),f=ne(null),c=ne(""),d=ne(null),p=ne(!1),_=ne([]),h=ne(null),w=/\[[0-9]{1,}\:[0-9]{1,2}(\.[0-9]{1,})?\]/g;let v=setInterval(()=>{var k,M;let E=(k=r.value)==null?void 0:k.uuid;if(r.value=t.trackInfo,s.value=t.currentIndex,o.value=t.rawCurrentTime,_.value!=[])for(let q=0;q<_.value.length;q++)o.value+.3>=_.value[q].time&&(a.value=q,a.value==_.value.length-1&&i.value&&(a.value=q-1));E!=((M=r.value)==null?void 0:M.uuid)&&T()},100);nt(a,E=>{E&&E!=-1&&_r(()=>{var k;(k=document.querySelector(".fullscreen-player__lyric .lyric-item.active"))==null||k.scrollIntoView({behavior:"smooth",block:"center"})})}),Xt(()=>{r.value=t.trackInfo,s.value=t.currentIndex,o.value=t.rawCurrentTime,T()});async function T(){let{id:E,source:k,name:M,artist:q}=r.value;if(_.value=[],h.value=null,i.value=!1,l.value=!1,a.value=0,d.value=null,c.value=`${M} ${q}`,f.value=null,E){p.value=!0;let{lyrics:Q}=await n.getLyric(k,E);p.value=!1,Q.length&&Q[0].lyric.match(w)?(d.value="saved",b(Q[0].lyric)):S(`${M} ${q}`)}}async function S(E,k=!0){f.value=null,p.value=!0;let{lyrics:M}=await n.getLyricByKeyword(E);p.value=!1,f.value=M,c.value=E,k&&M[0]&&(d.value="search",l.value=!0,b(M[0].lyric))}function P(E){let k=E.replace(/\[|\]/g,"").split(":");return parseInt(k[0])*60+parseFloat(k[1])}async function b(E){h.value=E,E=E.replaceAll("\r","");let k=E.match(w),M=[];if((k==null?void 0:k.length)>0){let q=E.split(` -`);for(let Q=0;Q{clearInterval(v)}),(E,k)=>{const M=ee("p-btn"),q=ee("Loader"),Q=ee("p-input"),V=ee("empty-state"),ce=ee("p-list-item-content"),Ee=ee("p-list-item"),Oe=ee("p-list-items"),xe=ee("Dialog");return N(),te(we,null,[A("div",{class:at(["fullscreen-player__lyric",{"with-translated":i.value}]),onDblclick:k[1]||(k[1]=Z=>u.value=!0)},[A("div",{class:at(["is-lyric-correct",{show:l.value}])},[Cp,A("div",zp,[A("div",Ip,ge(E.$t("lyric.isLyricCorrect.title")),1),A("div",Lp,ge(E.$t("lyric.isLyricCorrect.description")),1),A("div",Ap,[U(M,{outline:"",onClick:k[0]||(k[0]=Z=>u.value=!0)},{default:K(()=>[Rp,qt(ge(E.$t("lyric.isLyricCorrect.search")),1)]),_:1}),U(M,{color:"primary",onClick:y},{default:K(()=>[Mp,qt(ge(E.$t("lyric.isLyricCorrect.correct")),1)]),_:1})])])],2),(N(!0),te(we,null,It(_.value,(Z,ae)=>(N(),te("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(Z.lyric),11,$p))),256)),p.value?(N(),le(q,{key:0})):Te("",!0)],34),U(xe,{modelValue:u.value,"onUpdate:modelValue":k[5]||(k[5]=Z=>u.value=Z)},{default:K(()=>[A("div",Np,[U(Q,{modelValue:c.value,"onUpdate:modelValue":k[2]||(k[2]=Z=>c.value=Z),onKeydown:k[3]||(k[3]=Ml(Kr(Z=>S(c.value),["prevent"]),["enter"]))},null,8,["modelValue"]),U(M,{icon:"",onClick:k[4]||(k[4]=Z=>S(c.value))},{default:K(()=>[Fp]),_:1})]),A("div",Dp,[!f.value&&d.value=="saved"&&!p.value?(N(),le(V,{key:0,style:{"margin-top":"80px"},title:E.$t("lyric.currentLyricSource.saved.title"),description:E.$t("lyric.currentLyricSource.saved.description")},{default:K(()=>[Bp]),_:1},8,["title","description"])):Te("",!0),p.value?(N(),le(q,{key:1,style:{"margin-top":"80px"}})):Te("",!0),U(Oe,{"single-row":""},{default:K(()=>[(N(!0),te(we,null,It(f.value,Z=>(N(),le(Ee,{onClick:ae=>{b(Z.lyric),u.value=!1}},{default:K(()=>[U(ce,{title:`${Z.name}`,description:`[${E.$t(`source.${Z.source}`)}] ${Z.artist}`},null,8,["title","description"])]),_:2},1032,["onClick"]))),256))]),_:1})])]),_:1},8,["modelValue"])],64)}}},Vp=Ve(jp,[["__scopeId","data-v-7293c89c"]]),Up=Object.freeze(Object.defineProperty({__proto__:null,default:Vp},Symbol.toStringTag,{value:"Module"}));const Mo=e=>(Dn("data-v-1bdd18be"),e=e(),Bn(),e),Hp={class:"fullscreen-player__player"},qp={class:"cover"},Wp=["src"],Kp={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"},Yp={class:"track-info-text"},Xp={class:"track-name"},Gp={class:"track-artist"},Qp={class:"seek-control"},Jp={class:"time-items"},Zp={class:"time"},eh={class:"time"},th={class:"track-control"},nh={key:0,class:"bx bx-shuffle"},rh={key:1,class:"bx bx-repeat"},sh=Mo(()=>A("i",{class:"bx bx-skip-previous"},null,-1)),oh={key:0,class:"bx bx-play"},ih={key:1,class:"bx bx-pause"},ah=Mo(()=>A("i",{class:"bx bx-skip-next"},null,-1)),lh=Mo(()=>A("i",{class:"bx bx-list-plus"},null,-1)),ch={__name:"Player",setup(e){const t=Re("Player"),n=Re("PokaAPI"),r=ne(!1),s=ne(t.audioOrder);nt(s,w=>t.audioOrder=w);const o=ne(t.paused),a=ne("0:00"),i=ne(0),l=ne("0:00"),u=ne(0),f=ne(null),c=ne(!1);let d=setInterval(()=>{_()},100),p=setInterval(()=>{i.value=t.rawCurrentTime,u.value=t.rawDuration},1e3/60);async function _(){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)}_(),Gt(()=>{clearInterval(p),clearInterval(d)});function h(w){t.seek(w.target.value)}return(w,v)=>{var b,y;const T=ee("p-slider"),S=ee("p-btn"),P=ee("playlist-dialog");return N(),te(we,null,[A("div",Hp,[A("div",qp,[f.value?(N(),te("img",{key:0,src:f.value.cover,alt:"cover"},null,8,Wp)):(N(),te("img",Kp))]),A("div",Yp,[A("div",Xp,ge(((b=f.value)==null?void 0:b.name)||"PokaPlayer"),1),A("div",Gp,ge(((y=f.value)==null?void 0:y.artist)||w.$t("waitForPlay")),1)]),A("div",Qp,[U(T,{value:i.value,max:u.value,step:"0.000001",onInput:h,onChange:h},null,8,["value","max"]),A("div",Jp,[A("div",Zp,ge(a.value),1),A("div",eh,ge(l.value),1)])]),A("div",th,[U(S,{icon:"",text:"",onClick:v[0]||(v[0]=E=>s.value=s.value=="random"?"list":"random")},{default:K(()=>[s.value=="random"?(N(),te("i",nh)):Te("",!0),s.value=="list"?(N(),te("i",rh)):Te("",!0)]),_:1}),U(S,{icon:"",text:"",onClick:v[1]||(v[1]=E=>De(t).previous())},{default:K(()=>[sh]),_:1}),U(S,{icon:"",color:"primary",onClick:v[2]||(v[2]=E=>De(t).toggle())},{default:K(()=>[o.value?(N(),te("i",oh)):(N(),te("i",ih))]),_:1}),U(S,{icon:"",text:"",onClick:v[3]||(v[3]=E=>De(t).next())},{default:K(()=>[ah]),_:1}),U(S,{icon:"",text:"",onClick:v[4]||(v[4]=E=>r.value=!0)},{default:K(()=>[lh]),_:1})])]),U(P,{modelValue:r.value,"onUpdate:modelValue":v[5]||(v[5]=E=>r.value=E),item:f.value},null,8,["modelValue","item"])],64)}}},uh=Ve(ch,[["__scopeId","data-v-1bdd18be"]]),fh=Object.freeze(Object.defineProperty({__proto__:null,default:uh},Symbol.toStringTag,{value:"Module"}));const dh={},ph=e=>(Dn("data-v-f4517432"),e=e(),Bn(),e),hh={class:"loader","aria-label":"Loading"},mh=ph(()=>A("div",{class:"loader__spinner"},null,-1)),_h=[mh];function yh(e,t){return N(),te("div",hh,_h)}const gh=Ve(dh,[["render",yh],["__scopeId","data-v-f4517432"]]),vh=Object.freeze(Object.defineProperty({__proto__:null,default:gh},Symbol.toStringTag,{value:"Module"}));const bh={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 wh(e,t,n,r,s,o){return N(),le(Oo(n.href?"a":"button"),gr({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(()=>[Lt(e.$slots,"default",{},void 0,!0)]),_:3},16,["href","type","class","color"])}const Eh=Ve(bh,[["render",wh],["__scopeId","data-v-6e7d6ed3"]]),xh=Object.freeze(Object.defineProperty({__proto__:null,default:Eh},Symbol.toStringTag,{value:"Module"}));const bn=typeof window<"u";function kh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Ss(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 nr=()=>{},mt=Array.isArray,Th=/\/$/,Sh=e=>e.replace(Th,"");function Os(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=zh(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:s,hash:a}}function Oh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function $i(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ph(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&An(t.matched[r],n.matched[s])&&jl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function An(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ch(e[n],t[n]))return!1;return!0}function Ch(e,t){return mt(e)?Ni(e,t):mt(t)?Ni(t,e):e===t}function Ni(e,t){return mt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function zh(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 dr;(function(e){e.pop="pop",e.push="push"})(dr||(dr={}));var rr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rr||(rr={}));function Ih(e){if(!e)if(bn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Sh(e)}const Lh=/^[^#]+#/;function Ah(e,t){return e.replace(Lh,"#")+t}function Rh(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 fs=()=>({left:window.pageXOffset,top:window.pageYOffset});function Mh(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=Rh(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 Fi(e,t){return(history.state?history.state.position-t:-1)+e}const Ws=new Map;function $h(e,t){Ws.set(e,t)}function Nh(e){const t=Ws.get(e);return Ws.delete(e),t}let Fh=()=>location.protocol+"//"+location.host;function Vl(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),$i(l,"")}return $i(n,e)+r+s}function Dh(e,t,n,r){let s=[],o=[],a=null;const i=({state:d})=>{const p=Vl(e,location),_=n.value,h=t.value;let w=0;if(d){if(n.value=p,t.value=d,a&&a===_){a=null;return}w=h?d.position-h.position:0}else r(p);s.forEach(v=>{v(n.value,_,{delta:w,type:dr.pop,direction:w?w>0?rr.forward:rr.back:rr.unknown})})};function l(){a=n.value}function u(d){s.push(d);const p=()=>{const _=s.indexOf(d);_>-1&&s.splice(_,1)};return o.push(p),p}function f(){const{history:d}=window;!d.state||d.replaceState(be({},d.state,{scroll:fs()}),"")}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 Di(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?fs():null}}function Bh(e){const{history:t,location:n}=window,r={value:Vl(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:Fh()+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,Di(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:fs()});o(f.current,f,!0);const c=be({},Di(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 jh(e){e=Ih(e);const t=Bh(e),n=Dh(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:Ah.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 Vh(e){return typeof e=="string"||e&&typeof e=="object"}function Ul(e){return typeof e=="string"||typeof e=="symbol"}const Ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hl=Symbol("");var Bi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Bi||(Bi={}));function Rn(e,t){return be(new Error,{type:e,[Hl]:!0},t)}function St(e,t){return e instanceof Error&&Hl in e&&(t==null||!!(e.type&t))}const ji="[^/]+?",Uh={sensitive:!1,strict:!1,start:!0,end:!0},Hh=/[.+*?^${}()[\]/\\]/g;function qh(e,t){const n=be({},Uh,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 Kh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Yh={type:0,value:""},Xh=/[a-zA-Z0-9_]/;function Gh(e){if(!e)return[[]];if(e==="/")return[[Yh]];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(T)}:nr}function a(f){if(Ul(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||!ql(f,n[c]));)c++;n.splice(c,0,f),f.record.name&&!Hi(f)&&r.set(f.record.name,f)}function u(f,c){let d,p={},_,h;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Rn(1,{location:f});h=d.record.name,p=be(Ui(c.params,d.keys.filter(T=>!T.optional).map(T=>T.name)),f.params&&Ui(f.params,d.keys.map(T=>T.name))),_=d.stringify(p)}else if("path"in f)_=f.path,d=n.find(T=>T.re.test(_)),d&&(p=d.parse(_),h=d.record.name);else{if(d=c.name?r.get(c.name):n.find(T=>T.re.test(c.path)),!d)throw Rn(1,{location:f,currentLocation:c});h=d.record.name,p=be({},c.params,f.params),_=d.stringify(p)}const w=[];let v=d;for(;v;)w.unshift(v.record),v=v.parent;return{name:h,path:_,params:p,matched:w,meta:tm(w)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:i,getRecordMatcher:s}}function Ui(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Zh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:em(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 em(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 Hi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tm(e){return e.reduce((t,n)=>be(t,n.meta),{})}function qi(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ql(e,t){return t.children.some(n=>n===e||ql(e,n))}const Wl=/#/g,nm=/&/g,rm=/\//g,sm=/=/g,om=/\?/g,Kl=/\+/g,im=/%5B/g,am=/%5D/g,Yl=/%5E/g,lm=/%60/g,Xl=/%7B/g,cm=/%7C/g,Gl=/%7D/g,um=/%20/g;function $o(e){return encodeURI(""+e).replace(cm,"|").replace(im,"[").replace(am,"]")}function fm(e){return $o(e).replace(Xl,"{").replace(Gl,"}").replace(Yl,"^")}function Ks(e){return $o(e).replace(Kl,"%2B").replace(um,"+").replace(Wl,"%23").replace(nm,"%26").replace(lm,"`").replace(Xl,"{").replace(Gl,"}").replace(Yl,"^")}function dm(e){return Ks(e).replace(sm,"%3D")}function pm(e){return $o(e).replace(Wl,"%23").replace(om,"%3F")}function hm(e){return e==null?"":pm(e).replace(rm,"%2F")}function Yr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function mm(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Ks(o)):[r&&Ks(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function _m(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 ym=Symbol(""),Ki=Symbol(""),ds=Symbol(""),No=Symbol(""),Ys=Symbol("");function Wn(){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 jt(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(Rn(4,{from:n,to:t})):c instanceof Error?i(c):Vh(c)?i(Rn(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 Ps(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(gm(i)){const u=(i.__vccOpts||i)[t];u&&s.push(jt(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=kh(u)?u.default:u;o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&jt(d,n,r,o,a)()}))}}return s}function gm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Yi(e){const t=Re(ds),n=Re(No),r=Ae(()=>t.resolve(De(e.to))),s=Ae(()=>{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(An.bind(null,f));if(d>-1)return d;const p=Xi(l[u-2]);return u>1&&Xi(f)===p&&c[c.length-1].path!==p?c.findIndex(An.bind(null,l[u-2])):d}),o=Ae(()=>s.value>-1&&wm(n.params,r.value.params)),a=Ae(()=>s.value>-1&&s.value===n.matched.length-1&&jl(n.params,r.value.params));function i(l={}){return bm(l)?t[De(e.replace)?"replace":"push"](De(e.to)).catch(nr):Promise.resolve()}return{route:r,href:Ae(()=>r.value.href),isActive:o,isExactActive:a,navigate:i}}const vm=pl({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:Yi,setup(e,{slots:t}){const n=Fn(Yi(e)),{options:r}=Re(ds),s=Ae(()=>({[Gi(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Gi(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)}}}),Ql=vm;function bm(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 wm(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 Xi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Gi=(e,t,n)=>e??t??n,Em=pl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Re(Ys),s=Ae(()=>e.route||r.value),o=Re(Ki,0),a=Ae(()=>{let u=De(o);const{matched:f}=s.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),i=Ae(()=>s.value.matched[a.value]);Nr(Ki,Ae(()=>a.value+1)),Nr(ym,i),Nr(Ys,s);const l=ne();return nt(()=>[l.value,i.value,e.name],([u,f,c],[d,p,_])=>{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||!An(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 Qi(n.default,{Component:d,route:u});const p=c.props[f],_=p?p===!0?u.params:typeof p=="function"?p(u):p:null,w=br(d,be({},_,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return Qi(n.default,{Component:w,route:u})||w}}});function Qi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Jl=Em;function xm(e){const t=Jh(e.routes,e),n=e.parseQuery||mm,r=e.stringifyQuery||Wi,s=e.history,o=Wn(),a=Wn(),i=Wn(),l=Cu(Ft);let u=Ft;bn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Ss.bind(null,L=>""+L),c=Ss.bind(null,hm),d=Ss.bind(null,Yr);function p(L,H){let B,G;return Ul(L)?(B=t.getRecordMatcher(L),G=H):G=L,t.addRoute(G,B)}function _(L){const H=t.getRecordMatcher(L);H&&t.removeRoute(H)}function h(){return t.getRoutes().map(L=>L.record)}function w(L){return!!t.getRecordMatcher(L)}function v(L,H){if(H=be({},H||l.value),typeof L=="string"){const m=Os(n,L,H.path),g=t.resolve({path:m.path},H),C=s.createHref(m.fullPath);return be(m,g,{params:d(g.params),hash:Yr(m.hash),redirectedFrom:void 0,href:C})}let B;if("path"in L)B=be({},L,{path:Os(n,L.path,H.path).path});else{const m=be({},L.params);for(const g in m)m[g]==null&&delete m[g];B=be({},L,{params:c(L.params)}),H.params=c(H.params)}const G=t.resolve(B,H),fe=L.hash||"";G.params=f(d(G.params));const Pe=Oh(r,be({},L,{hash:fm(fe),path:G.path})),se=s.createHref(Pe);return be({fullPath:Pe,hash:fe,query:r===Wi?_m(L.query):L.query||{}},G,{redirectedFrom:void 0,href:se})}function T(L){return typeof L=="string"?Os(n,L,l.value.path):be({},L)}function S(L,H){if(u!==L)return Rn(8,{from:H,to:L})}function P(L){return E(L)}function b(L){return P(be(T(L),{replace:!0}))}function y(L){const H=L.matched[L.matched.length-1];if(H&&H.redirect){const{redirect:B}=H;let G=typeof B=="function"?B(L):B;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=T(G):{path:G},G.params={}),be({query:L.query,hash:L.hash,params:"path"in G?{}:L.params},G)}}function E(L,H){const B=u=v(L),G=l.value,fe=L.state,Pe=L.force,se=L.replace===!0,m=y(B);if(m)return E(be(T(m),{state:typeof m=="object"?be({},fe,m.state):fe,force:Pe,replace:se}),H||B);const g=B;g.redirectedFrom=H;let C;return!Pe&&Ph(r,G,B)&&(C=Rn(16,{to:g,from:G}),Tt(G,G,!0,!1)),(C?Promise.resolve(C):M(g,G)).catch(z=>St(z)?St(z,2)?z:Je(z):Z(z,g,G)).then(z=>{if(z){if(St(z,2))return E(be({replace:se},T(z.to),{state:typeof z.to=="object"?be({},fe,z.to.state):fe,force:Pe}),H||g)}else z=Q(g,G,!0,se,fe);return q(g,G,z),z})}function k(L,H){const B=S(L,H);return B?Promise.reject(B):Promise.resolve()}function M(L,H){let B;const[G,fe,Pe]=km(L,H);B=Ps(G.reverse(),"beforeRouteLeave",L,H);for(const m of G)m.leaveGuards.forEach(g=>{B.push(jt(g,L,H))});const se=k.bind(null,L,H);return B.push(se),vn(B).then(()=>{B=[];for(const m of o.list())B.push(jt(m,L,H));return B.push(se),vn(B)}).then(()=>{B=Ps(fe,"beforeRouteUpdate",L,H);for(const m of fe)m.updateGuards.forEach(g=>{B.push(jt(g,L,H))});return B.push(se),vn(B)}).then(()=>{B=[];for(const m of L.matched)if(m.beforeEnter&&!H.matched.includes(m))if(mt(m.beforeEnter))for(const g of m.beforeEnter)B.push(jt(g,L,H));else B.push(jt(m.beforeEnter,L,H));return B.push(se),vn(B)}).then(()=>(L.matched.forEach(m=>m.enterCallbacks={}),B=Ps(Pe,"beforeRouteEnter",L,H),B.push(se),vn(B))).then(()=>{B=[];for(const m of a.list())B.push(jt(m,L,H));return B.push(se),vn(B)}).catch(m=>St(m,8)?m:Promise.reject(m))}function q(L,H,B){for(const G of i.list())G(L,H,B)}function Q(L,H,B,G,fe){const Pe=S(L,H);if(Pe)return Pe;const se=H===Ft,m=bn?history.state:{};B&&(G||se?s.replace(L.fullPath,be({scroll:se&&m&&m.scroll},fe)):s.push(L.fullPath,fe)),l.value=L,Tt(L,H,B,se),Je()}let V;function ce(){V||(V=s.listen((L,H,B)=>{if(!_n.listening)return;const G=v(L),fe=y(G);if(fe){E(be(fe,{replace:!0}),G).catch(nr);return}u=G;const Pe=l.value;bn&&$h(Fi(Pe.fullPath,B.delta),fs()),M(G,Pe).catch(se=>St(se,12)?se:St(se,2)?(E(se.to,G).then(m=>{St(m,20)&&!B.delta&&B.type===dr.pop&&s.go(-1,!1)}).catch(nr),Promise.reject()):(B.delta&&s.go(-B.delta,!1),Z(se,G,Pe))).then(se=>{se=se||Q(G,Pe,!1),se&&(B.delta&&!St(se,8)?s.go(-B.delta,!1):B.type===dr.pop&&St(se,20)&&s.go(-1,!1)),q(G,Pe,se)}).catch(nr)}))}let Ee=Wn(),Oe=Wn(),xe;function Z(L,H,B){Je(L);const G=Oe.list();return G.length?G.forEach(fe=>fe(L,H,B)):console.error(L),Promise.reject(L)}function ae(){return xe&&l.value!==Ft?Promise.resolve():new Promise((L,H)=>{Ee.add([L,H])})}function Je(L){return xe||(xe=!L,ce(),Ee.list().forEach(([H,B])=>L?B(L):H()),Ee.reset()),L}function Tt(L,H,B,G){const{scrollBehavior:fe}=e;if(!bn||!fe)return Promise.resolve();const Pe=!B&&Nh(Fi(L.fullPath,0))||(G||!B)&&history.state&&history.state.scroll||null;return _r().then(()=>fe(L,H,Pe)).then(se=>se&&Mh(se)).catch(se=>Z(se,L,H))}const Ze=L=>s.go(L);let We;const Zt=new Set,_n={currentRoute:l,listening:!0,addRoute:p,removeRoute:_,hasRoute:w,getRoutes:h,resolve:v,options:e,push:P,replace:b,go:Ze,back:()=>Ze(-1),forward:()=>Ze(1),beforeEach:o.add,beforeResolve:a.add,afterEach:i.add,onError:Oe.add,isReady:ae,install(L){const H=this;L.component("RouterLink",Ql),L.component("RouterView",Jl),L.config.globalProperties.$router=H,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>De(l)}),bn&&!We&&l.value===Ft&&(We=!0,P(s.location).catch(fe=>{}));const B={};for(const fe in Ft)B[fe]=Ae(()=>l.value[fe]);L.provide(ds,H),L.provide(No,Fn(B)),L.provide(Ys,l);const G=L.unmount;Zt.add(L),L.unmount=function(){Zt.delete(L),Zt.size<1&&(u=Ft,V&&V(),V=null,l.value=Ft,We=!1,xe=!1),G()}}};return _n}function vn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function km(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aAn(u,i))?r.push(i):n.push(i));const l=e.matched[a];l&&(t.matched.find(u=>An(u,l))||s.push(l))}return[n,r,s]}function Ov(){return Re(ds)}function Pv(){return Re(No)}const Tm={class:"p-card__img-container"},Sm=["src"],Om={key:1,class:"p-card__icon"},Pm={class:"p-card__source"},Cm={class:"p-card__content"},zm={class:"p-card__title"},Im={class:"p-card__description"},Lm={__name:"Card",props:{imgSrc:String,title:String,description:String,source:String,to:String,icon:String},setup(e){return(t,n)=>(N(),le(Oo(e.to?"RouterLink":"div"),{class:"p-card",to:e.to},{default:K(()=>[A("div",Tm,[e.imgSrc?(N(),te("img",{key:0,class:"p-card__img",src:e.imgSrc,loading:"lazy"},null,8,Sm)):Te("",!0),e.icon?(N(),te("div",Om,[A("i",{class:at(e.icon)},null,2)])):Te("",!0),A("div",Pm,ge(e.source),1)]),A("div",Cm,[A("div",zm,ge(e.title),1),A("div",Im,ge(e.description),1)])]),_:1},8,["to"]))}},Am=Ve(Lm,[["__scopeId","data-v-7ba3ec3e"]]),Rm=Object.freeze(Object.defineProperty({__proto__:null,default:Am},Symbol.toStringTag,{value:"Module"}));const Mm={},$m={class:"p-cards"};function Nm(e,t){return N(),te("div",$m,[Lt(e.$slots,"default",{},void 0,!0)])}const Fm=Ve(Mm,[["render",Nm],["__scopeId","data-v-cd28673c"]]),Dm=Object.freeze(Object.defineProperty({__proto__:null,default:Fm},Symbol.toStringTag,{value:"Module"}));const Bm={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)}}}},jm=["for"],Vm={class:"p-input__label-text"},Um=["id","type"];function Hm(e,t,n,r,s,o){return N(),te("div",{class:at(["p-input",{value:o.value.length}])},[A("label",{class:"p-input__label",for:s.randomInputId},[A("span",Vm,ge(n.label),1)],8,jm),_l(A("input",gr({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,Um),[[dd,o.value]])],2)}const qm=Ve(Bm,[["render",Hm],["__scopeId","data-v-dc46621b"]]),Wm=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"}));const Km={class:"p-list-item__content"},Ym={class:"p-list-item__actions"},Xm={__name:"Item",props:{to:String,active:{type:Boolean,default:!1}},setup(e){return(t,n)=>(N(),le(Oo(e.to?De(Ql):"div"),{class:at(["p-list-item",{active:e.active}]),to:e.to},{default:K(()=>[A("div",Km,[Lt(t.$slots,"default")]),A("div",Ym,[Lt(t.$slots,"actions")])]),_:3},8,["to","class"]))}},Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Xm},Symbol.toStringTag,{value:"Module"})),Qm={class:"p-list-item__content-content"},Jm={class:"p-list-item__content-title"},Zm={class:"p-list-item__content-description"},e_={__name:"ItemContent",props:{title:String,description:String},setup(e){return(t,n)=>(N(),te("div",Qm,[A("div",Jm,ge(e.title),1),A("div",Zm,ge(e.description),1)]))}},t_=Object.freeze(Object.defineProperty({__proto__:null,default:e_},Symbol.toStringTag,{value:"Module"})),n_={},r_={class:"p-list-item__icon-btn"};function s_(e,t){return N(),te("button",r_,[Lt(e.$slots,"default")])}const o_=Ve(n_,[["render",s_]]),i_=Object.freeze(Object.defineProperty({__proto__:null,default:o_},Symbol.toStringTag,{value:"Module"})),a_={class:"p-list-item__img"},l_=["src","alt"],c_={__name:"ItemImg",props:{src:String,alt:String},setup(e){return(t,n)=>(N(),te("div",a_,[A("img",{src:e.src,alt:e.alt},null,8,l_)]))}},u_=Object.freeze(Object.defineProperty({__proto__:null,default:c_},Symbol.toStringTag,{value:"Module"}));const f_={__name:"Items",props:{singleRow:Boolean},setup(e){return(t,n)=>(N(),te("div",{class:at(["p-list-items",{"single-row":e.singleRow}])},[Lt(t.$slots,"default",{},void 0,!0)],2))}},d_=Ve(f_,[["__scopeId","data-v-6dc192e0"]]),p_=Object.freeze(Object.defineProperty({__proto__:null,default:d_},Symbol.toStringTag,{value:"Module"}));const h_={name:"PokaTextInput",props:["modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},m_={class:"p-select"};function __(e,t,n,r,s,o){return N(),te("div",m_,[_l(A("select",gr({"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a)},e.$attrs),[Lt(e.$slots,"default",{},void 0,!0)],16),[[Al,o.value]])])}const y_=Ve(h_,[["render",__],["__scopeId","data-v-396b2373"]]),g_=Object.freeze(Object.defineProperty({__proto__:null,default:y_},Symbol.toStringTag,{value:"Module"}));const v_=["min","max","value"],b_={__name:"Slider",props:{min:{type:Number},max:{type:Number},value:{type:Number}},setup(e){const t=e,n=Ae(()=>t.value/t.max*100||0);return(r,s)=>(N(),te("input",gr({type:"range",min:e.min,max:e.max,value:e.value,style:`--value-in-percent: ${De(n)}%`},r.$attrs),null,16,v_))}},w_=Ve(b_,[["__scopeId","data-v-4ad436c5"]]),E_=Object.freeze(Object.defineProperty({__proto__:null,default:w_},Symbol.toStringTag,{value:"Module"})),x_={__name:"Albums",props:{items:Array},setup(e){return(t,n)=>{const r=ee("p-card"),s=ee("p-cards");return N(),le(s,null,{default:K(()=>[(N(!0),te(we,null,It(e.items,o=>(N(),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})}}},k_=Object.freeze(Object.defineProperty({__proto__:null,default:x_},Symbol.toStringTag,{value:"Module"})),T_={__name:"Artists",props:{items:Array,type:{type:String,default:"artists"}},setup(e){return(t,n)=>{const r=ee("p-card"),s=ee("p-cards");return N(),le(s,null,{default:K(()=>[(N(!0),te(we,null,It(e.items,o=>(N(),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})}}},S_=Object.freeze(Object.defineProperty({__proto__:null,default:T_},Symbol.toStringTag,{value:"Module"}));const O_={class:"home-item"},P_={class:"home-item__header"},C_={class:"home-item__title"},z_={class:"home-item__type"},I_={__name:"Home",props:{items:Array},setup(e){return(t,n)=>{const r=ee("parse-albums"),s=ee("parse-playlists"),o=ee("parse-artists");return N(!0),te(we,null,It(e.items,a=>(N(),te(we,null,[(N(!0),te(we,null,It(Object.entries(a).filter(([i,l])=>!["title","source","icon"].includes(i)&&l.length),([i,l])=>(N(),te("div",O_,[A("div",P_,[A("h3",C_,ge(t.$t(`home.${a.title}`)),1),A("p",z_,ge(t.$t(`nav.${i}`)),1)]),i=="albums"?(N(),le(r,{key:0,items:l},null,8,["items"])):Te("",!0),i=="playlists"?(N(),le(s,{key:1,items:l},null,8,["items"])):Te("",!0),["composers","artists"].includes(i)?(N(),le(o,{key:2,items:l,type:i},null,8,["items","type"])):Te("",!0)]))),256))],64))),256)}}},L_=Ve(I_,[["__scopeId","data-v-25d19ae0"]]),A_=Object.freeze(Object.defineProperty({__proto__:null,default:L_},Symbol.toStringTag,{value:"Module"})),R_={__name:"Playlists",props:{items:Array},setup(e){return(t,n)=>{const r=ee("p-card"),s=ee("p-cards");return N(),le(s,null,{default:K(()=>[(N(!0),te(we,null,It(e.items,o=>(N(),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})}}},M_=Object.freeze(Object.defineProperty({__proto__:null,default:R_},Symbol.toStringTag,{value:"Module"})),$_=A("i",{class:"bx bx-plus"},null,-1),N_={__name:"Songs",props:{items:{type:Array,default:()=>[]},currentIndex:{type:Number,default:-1}},setup(e){const t=e,n=Re("Player"),r=ne(null),s=ne(!1);function o(a){n.addSongs({songs:t.items,index:a})}return(a,i)=>{const l=ee("p-list-item-img"),u=ee("p-list-item-content"),f=ee("p-list-item-icon-btn"),c=ee("p-list-item"),d=ee("p-list-items"),p=ee("song-dialog");return N(),te(we,null,[e.items.length?(N(),le(d,{key:0,singleRow:e.currentIndex!=-1},{default:K(()=>[(N(!0),te(we,null,It(e.items,(_,h)=>(N(),le(c,{onClick:w=>o(h),onKeydown:Ml(w=>o(h),["enter"]),active:h==e.currentIndex,"data-index":h,tabindex:0,onContextmenu:Kr(w=>{r.value=_,s.value=!0},["prevent"])},{actions:K(()=>[e.currentIndex==-1?(N(),le(f,{key:0,onClick:Kr(w=>De(n).addSongs({songs:[_],clear:!1}),["stop"])},{default:K(()=>[$_]),_:2},1032,["onClick"])):Te("",!0)]),default:K(()=>[U(l,{src:_.cover},null,8,["src"]),U(u,{title:_.name,description:_.artist},null,8,["title","description"])]),_:2},1032,["onClick","onKeydown","active","data-index","onContextmenu"]))),256))]),_:1},8,["singleRow"])):Te("",!0),U(p,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=_=>s.value=_),item:r.value},null,8,["modelValue","item"])],64)}}},F_=Object.freeze(Object.defineProperty({__proto__:null,default:N_},Symbol.toStringTag,{value:"Module"})),D_=A("i",{class:"bx bx-loader bx-spin"},null,-1),B_=A("i",{class:"bx bxs-pin"},null,-1),j_=A("i",{class:"bx bxs-pin"},null,-1),V_={__name:"PinBtn",props:{source:String,id:String,name:String,cover:String,artist:String,type:String},setup(e){const t=e,n=ne(!1),r=ne(!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 Xt(async()=>{await o()}),(l,u)=>{const f=ee("p-btn");return r.value?(N(),le(f,{key:0,outline:""},{default:K(()=>[D_,qt(ge(l.$t("pin.loading")),1)]),_:1})):n.value?(N(),le(f,{key:1,outline:"",onClick:i},{default:K(()=>[B_,qt(ge(l.$t("pin.unpin")),1)]),_:1})):(N(),le(f,{key:2,onClick:a},{default:K(()=>[j_,qt(ge(l.$t("pin.pin")),1)]),_:1}))}}},U_=Object.freeze(Object.defineProperty({__proto__:null,default:V_},Symbol.toStringTag,{value:"Module"})),H_={style:{"margin-bottom":"calc(var(--padding) * 2)"}},q_={key:0,class:"bx bxs-checkbox-checked"},W_={key:1,class:"bx bx-checkbox"},K_={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},Y_={__name:"PlaylistDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Re("PokaAPI"),s=Ae(()=>{var f;return((f=n.item)==null?void 0:f.originalObject)||n.item}),o=Ae({get(){return!!n.modelValue},set(){t("update:modelValue",null)}}),a=ne(null),i=ne(!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 Xt(()=>{!s.value||l()}),nt(s,()=>{l()}),(f,c)=>{const d=ee("Loader"),p=ee("p-list-item-icon-btn"),_=ee("p-list-item-content"),h=ee("p-list-item"),w=ee("p-list-items"),v=ee("p-btn"),T=ee("Dialog");return N(),le(T,{modelValue:De(o),"onUpdate:modelValue":c[1]||(c[1]=S=>Ie(o)?o.value=S:null),"max-width":"400px"},{default:K(()=>[A("h3",H_,ge(f.$t("songDialog.addToPlaylist")),1),a.value===null?(N(),le(d,{key:0,style:{"margin-top":"calc(var(--padding) * 2)"}})):Te("",!0),U(w,{"single-row":""},{default:K(()=>[(N(!0),te(we,null,It(a.value,S=>(N(),le(h,{tabindex:"0",onClick:P=>u(S.id)},{default:K(()=>[U(p,null,{default:K(()=>[S.exist?(N(),te("i",q_)):(N(),te("i",W_))]),_:2},1024),U(_,{title:S.name},null,8,["title"])]),_:2},1032,["onClick"]))),256))]),_:1}),A("div",K_,[U(v,{onClick:c[0]||(c[0]=S=>o.value=!1),color:"primary"},{default:K(()=>[qt(ge(f.$t("close")),1)]),_:1})])]),_:1},8,["modelValue"])}}},X_=Object.freeze(Object.defineProperty({__proto__:null,default:Y_},Symbol.toStringTag,{value:"Module"}));const Rt=e=>(Dn("data-v-2a2e2f70"),e=e(),Bn(),e),G_={class:"song-info-dialog-content"},Q_=["src"],J_={class:"info"},Z_={class:"name"},ey={class:"artist"},ty=Rt(()=>A("i",{class:"bx bx-list-plus"},null,-1)),ny=Rt(()=>A("i",{class:"bx bx-microphone"},null,-1)),ry=Rt(()=>A("i",{class:"bx bx-right-arrow-alt"},null,-1)),sy=Rt(()=>A("i",{class:"nav-item-icon bx bx-album"},null,-1)),oy=Rt(()=>A("i",{class:"bx bx-right-arrow-alt"},null,-1)),iy=Rt(()=>A("i",{class:"bx bx-file-blank"},null,-1)),ay=Rt(()=>A("i",{class:"bx bx-time"},null,-1)),ly=Rt(()=>A("i",{class:"bx bx-data"},null,-1)),cy=Rt(()=>A("i",{class:"bx bx-tag"},null,-1)),uy={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},fy={__name:"SongDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Ro(),{show:s}=Ao(r),o=Ae({get(){return n.modelValue},set(){t("update:modelValue",null)}}),a=ne(!1);function i(){s.value=!1,o.value=!1}return(l,u)=>{const f=ee("p-list-item-icon-btn"),c=ee("p-list-item-content"),d=ee("p-list-item"),p=ee("p-list-items"),_=ee("p-btn"),h=ee("Dialog"),w=ee("playlist-dialog");return N(),te(we,null,[U(h,{modelValue:De(o),"onUpdate:modelValue":u[4]||(u[4]=v=>Ie(o)?o.value=v:null),"max-width":"400px"},{default:K(()=>[A("div",G_,[A("img",{src:e.item.cover,class:"cover"},null,8,Q_),A("div",J_,[A("div",Z_,ge(e.item.name),1),A("div",ey,ge(e.item.artist),1)]),U(p,{"single-row":""},{default:K(()=>[U(d,{onClick:u[0]||(u[0]=v=>a.value=!0),tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[ty]),_:1}),U(c,{title:l.$t("songDialog.addToPlaylist")},null,8,["title"])]),_:1}),U(d,{to:e.item.artistId?`/artist/${e.item.source}/${e.item.artistId}`:void 0,onClick:u[1]||(u[1]=v=>e.item.artistId&&i()),tabindex:"0"},{actions:K(()=>[e.item.artistId?(N(),le(f,{key:0},{default:K(()=>[ry]),_:1})):Te("",!0)]),default:K(()=>[U(f,null,{default:K(()=>[ny]),_:1}),U(c,{title:e.item.artist,description:l.$t("nav.artists")},null,8,["title","description"])]),_:1},8,["to"]),U(d,{to:e.item.albumId?`/album/${e.item.source}/${e.item.albumId}`:void 0,onClick:u[2]||(u[2]=v=>e.item.albumId&&i()),tabindex:"0"},{actions:K(()=>[e.item.albumId?(N(),le(f,{key:0},{default:K(()=>[oy]),_:1})):Te("",!0)]),default:K(()=>[U(f,null,{default:K(()=>[sy]),_:1}),U(c,{title:e.item.album,description:l.$t("nav.albums")},null,8,["title","description"])]),_:1},8,["to"]),e.item.codec&&e.item.bitrate?(N(),le(d,{key:0,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[iy]),_:1}),U(c,{title:`${e.item.codec.toUpperCase()} ${e.item.bitrate/1e3}k`,description:l.$t("songDialog.codec")},null,8,["title","description"])]),_:1})):Te("",!0),e.item.year?(N(),le(d,{key:1,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[ay]),_:1}),U(c,{title:e.item.year.toString(),description:l.$t("songDialog.year")},null,8,["title","description"])]),_:1})):Te("",!0),e.item.source?(N(),le(d,{key:2,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[ly]),_:1}),U(c,{title:l.$t(`source.${e.item.source}`),description:l.$t("songDialog.source")},null,8,["title","description"])]),_:1})):Te("",!0),e.item.id?(N(),le(d,{key:3,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[cy]),_:1}),U(c,{title:e.item.id,description:l.$t("songDialog.id")},null,8,["title","description"])]),_:1})):Te("",!0)]),_:1}),A("div",uy,[U(_,{onClick:u[3]||(u[3]=v=>o.value=!1),color:"primary"},{default:K(()=>[qt(ge(l.$t("close")),1)]),_:1})])])]),_:1},8,["modelValue"]),U(w,{modelValue:a.value,"onUpdate:modelValue":u[5]||(u[5]=v=>a.value=v),item:e.item},null,8,["modelValue","item"])],64)}}},dy=Ve(fy,[["__scopeId","data-v-2a2e2f70"]]),py=Object.freeze(Object.defineProperty({__proto__:null,default:dy},Symbol.toStringTag,{value:"Module"}));const Xs=typeof window<"u",hy=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Qt=e=>hy?Symbol(e):e,my=(e,t,n)=>_y({l:e,k:t,s:n}),_y=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),je=e=>typeof e=="number"&&isFinite(e),yy=e=>Bo(e)==="[object Date]",Xr=e=>Bo(e)==="[object RegExp]",ps=e=>_e(e)&&Object.keys(e).length===0;function gy(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Xe=Object.assign;let Ji;const Fo=()=>Ji||(Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zi(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const vy=Object.prototype.hasOwnProperty;function Do(e,t){return vy.call(e,t)}const Ne=Array.isArray,Ue=e=>typeof e=="function",Y=e=>typeof e=="string",Me=e=>typeof e=="boolean",Se=e=>e!==null&&typeof e=="object",Zl=Object.prototype.toString,Bo=e=>Zl.call(e),_e=e=>Bo(e)==="[object Object]",by=e=>e==null?"":Ne(e)||_e(e)&&e.toString===Zl?JSON.stringify(e,null,2):String(e);const ec={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 tc(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 nc={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 wy=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ey(e){return wy.test(e)}function xy(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 ky(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 Ty(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ey(t)?xy(t):"*"+t}function Sy(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=Ty(a),a===!1))return!1;d[1]()}};function p(){const _=e[n+1];if(r===5&&_==="'"||r===6&&_==='"')return n++,i="\\"+_,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=ky(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 ea=new Map;function Oy(e,t){return Se(e)?e[t]:null}function Py(e,t){if(!Se(e))return null;let n=ea.get(t);if(n||(n=Sy(t),n&&ea.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;oe,zy=e=>"",Iy="text",Ly=e=>e.length===0?"":e.join(""),Ay=by;function ta(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ry(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 My(e,t){t.count||(t.count=e),t.n||(t.n=e)}function $y(e={}){const t=e.locale,n=Ry(e),r=Se(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?e.pluralRules[t]:ta,s=Se(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?ta:void 0,o=v=>v[r(n,v.length,s)],a=e.list||[],i=v=>a[v],l=e.named||{};je(e.pluralIndex)&&My(n,l);const u=v=>l[v];function f(v){const T=Ue(e.messages)?e.messages(v):Se(e.messages)?e.messages[v]:!1;return T||(e.parent?e.parent.message(v):zy)}const c=v=>e.modifiers?e.modifiers[v]:Cy,d=_e(e.processor)&&Ue(e.processor.normalize)?e.processor.normalize:Ly,p=_e(e.processor)&&Ue(e.processor.interpolate)?e.processor.interpolate:Ay,_=_e(e.processor)&&Y(e.processor.type)?e.processor.type:Iy,w={list:i,named:u,plural:o,linked:(v,...T)=>{const[S,P]=T;let b="text",y="";T.length===1?Se(S)?(y=S.modifier||y,b=S.type||b):Y(S)&&(y=S||y):T.length===2&&(Y(S)&&(y=S||y),Y(P)&&(b=P||b));let E=f(v)(w);return b==="vnode"&&Ne(E)&&y&&(E=E[0]),y?c(y)(E,b):E},message:f,type:_,interpolate:p,normalize:d};return w}let pr=null;function Ny(e){pr=e}function Fy(e,t,n){pr&&pr.emit(nc.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Dy=By(nc.FunctionTranslate);function By(e){return t=>pr&&pr.emit(e,t)}const jy={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 Vy(e,t,n){return[...new Set([n,...Ne(t)?t:Se(t)?Object.keys(t):Y(t)?[t]:[n]])]}function rc(e,t,n){const r=Y(n)?n:jo,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ne(a);)a=na(o,a,t);const i=Ne(t)||!_e(t)?t:t.default?t.default:null;a=Y(i)?[i]:i,Ne(a)&&na(o,a,!1),s.__localeChainCache.set(r,o)}return o}function na(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Wy(){return{upper:(e,t)=>t==="text"&&Y(e)?e.toUpperCase():t==="vnode"&&Se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Y(e)?e.toLowerCase():t==="vnode"&&Se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Y(e)?sa(e):t==="vnode"&&Se(e)&&"__v_isVNode"in e?sa(e.children):e}}let Ky,sc;function Yy(e){sc=e}let oc;function Xy(e){oc=e}let ic=null;const oa=e=>{ic=e},Gy=()=>ic;let ac=null;const ia=e=>{ac=e},Qy=()=>ac;let aa=0;function Jy(e={}){const t=Y(e.version)?e.version:qy,n=Y(e.locale)?e.locale:jo,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||{},Wy()),l=e.pluralRules||{},u=Ue(e.missing)?e.missing:null,f=Me(e.missingWarn)||Xr(e.missingWarn)?e.missingWarn:!0,c=Me(e.fallbackWarn)||Xr(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,p=!!e.unresolving,_=Ue(e.postTranslation)?e.postTranslation:null,h=_e(e.processor)?e.processor:null,w=Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,T=Ue(e.messageCompiler)?e.messageCompiler:Ky,S=Ue(e.messageResolver)?e.messageResolver:sc||Oy,P=Ue(e.localeFallbacker)?e.localeFallbacker:oc||Vy,b=Se(e.fallbackContext)?e.fallbackContext:void 0,y=Ue(e.onWarn)?e.onWarn:gy,E=e,k=Se(E.__datetimeFormatters)?E.__datetimeFormatters:new Map,M=Se(E.__numberFormatters)?E.__numberFormatters:new Map,q=Se(E.__meta)?E.__meta:{};aa++;const Q={version:t,cid:aa,locale:n,fallbackLocale:r,messages:s,modifiers:i,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:c,fallbackFormat:d,unresolving:p,postTranslation:_,processor:h,warnHtmlMessage:w,escapeParameter:v,messageCompiler:T,messageResolver:S,localeFallbacker:P,fallbackContext:b,onWarn:y,__meta:q};return Q.datetimeFormats=o,Q.numberFormats=a,Q.__datetimeFormatters=k,Q.__numberFormatters=M,__INTLIFY_PROD_DEVTOOLS__&&Fy(Q,t,q),Q}function Vo(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 Kn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let lc=ec.__EXTEND_POINT__;const Cs=()=>++lc,wn={INVALID_ARGUMENT:lc,INVALID_DATE_ARGUMENT:Cs(),INVALID_ISO_DATE_ARGUMENT:Cs(),__EXTEND_POINT__:Cs()};function En(e){return tc(e,null,void 0)}const la=()=>"",bt=e=>Ue(e);function ca(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:a,messages:i}=e,[l,u]=Gs(...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,_=Y(u.default)||Me(u.default)?Me(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:"",h=n||_!=="",w=Y(u.locale)?u.locale:e.locale;d&&Zy(u);let[v,T,S]=p?[l,w,i[w]||{}]:cc(e,l,w,a,c,f),P=v,b=l;if(!p&&!(Y(P)||bt(P))&&h&&(P=_,b=P),!p&&(!(Y(P)||bt(P))||!Y(T)))return s?hs:l;let y=!1;const E=()=>{y=!0},k=bt(P)?P:uc(e,l,T,P,b,E);if(y)return P;const M=ng(e,T,S,u),q=$y(M),Q=eg(e,k,q),V=r?r(Q,l):Q;if(__INTLIFY_PROD_DEVTOOLS__){const ce={timestamp:Date.now(),key:Y(l)?l:bt(P)?P.key:"",locale:T||(bt(P)?P.locale:""),format:Y(P)?P:bt(P)?P.source:"",message:V};ce.meta=Xe({},e.__meta,Gy()||{}),Dy(ce)}return V}function Zy(e){Ne(e.list)?e.list=e.list.map(t=>Y(t)?Zi(t):t):Se(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=Zi(e.named[t]))})}function cc(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 _="translate";for(let h=0;hr;return u.locale=n,u.key=t,u}const l=a(r,tg(e,n,s,r,i,o));return l.locale=n,l.key=t,l.source=r,l}function eg(e,t,n){return t(n)}function Gs(...e){const[t,n,r]=e,s={};if(!Y(t)&&!je(t)&&!bt(t))throw En(wn.INVALID_ARGUMENT);const o=je(t)?String(t):(bt(t),t);return je(n)?s.plural=n:Y(n)?s.default=n:_e(n)&&!ps(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 tg(e,t,n,r,s,o){return{warnHtmlMessage:s,onError:a=>{throw o&&o(a),a},onCacheKey:a=>my(t,n,a)}}function ng(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 _=a(n,p);if(_==null&&f){const[,,h]=cc(f,p,t,i,l,u);_=a(h,p)}if(Y(_)){let h=!1;const v=uc(e,p,t,_,p,()=>{h=!0});return h?la:v}else return bt(_)?_:la}};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 ua(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:i}=e,[l,u,f,c]=Qs(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,_=Y(f.locale)?f.locale:e.locale,h=a(e,s,_);if(!Y(l)||l==="")return new Intl.DateTimeFormat(_,c).format(u);let w={},v,T=null;const S="datetime format";for(let y=0;y{fc.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 fa(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__datetimeFormatters.has(o)||r.__datetimeFormatters.delete(o)}}function da(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:i}=e,[l,u,f,c]=Js(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,_=Y(f.locale)?f.locale:e.locale,h=a(e,s,_);if(!Y(l)||l==="")return new Intl.NumberFormat(_,c).format(u);let w={},v,T=null;const S="number format";for(let y=0;y{dc.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"&&(Fo().__INTLIFY_PROD_DEVTOOLS__=!1);const rg="9.2.2";function sg(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fo().__INTLIFY_PROD_DEVTOOLS__=!1)}jy.__EXTEND_POINT__;let pc=ec.__EXTEND_POINT__;const Ge=()=>++pc,st={UNEXPECTED_RETURN_TYPE:pc,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 tc(e,null,void 0)}const Zs=Qt("__transrateVNode"),eo=Qt("__datetimeParts"),to=Qt("__numberParts"),og=Qt("__setPluralRules");Qt("__intlifyMeta");const ig=Qt("__injectWithOption");function no(e){if(!Se(e))return e;for(const t in e)if(!!Do(e,t))if(!t.includes("."))Se(e[t])&&no(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]||{},sr(u,a[l])):sr(u,a)}else Y(i)&&sr(JSON.parse(i),a)}),s==null&&o)for(const i in a)Do(a,i)&&no(a[i]);return a}const Lr=e=>!Se(e)||Ne(e);function sr(e,t){if(Lr(e)||Lr(t))throw ut(st.INVALID_VALUE);for(const n in e)Do(e,n)&&(Lr(e[n])||Lr(t[n])?t[n]=e[n]:sr(e[n],t[n]))}function mc(e){return e.type}function ag(e,t,n){let r=Se(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=hc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Se(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Se(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function ha(e){return U(yr,null,e,0)}const ma="__INTLIFY_META__";let _a=0;function ya(e){return(t,n,r,s)=>e(n,r,vr()||void 0,s)}const lg=()=>{const e=vr();let t=null;return e&&(t=mc(e)[ma])?{[ma]:t}:null};function _c(e={},t){const{__root:n}=e,r=n===void 0;let s=Me(e.inheritLocale)?e.inheritLocale:!0;const o=ne(n&&s?n.locale.value:Y(e.locale)?e.locale:jo),a=ne(n&&s?n.fallbackLocale.value:Y(e.fallbackLocale)||Ne(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),i=ne(hc(o.value,e)),l=ne(_e(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),u=ne(_e(e.numberFormats)?e.numberFormats:{[o.value]:{}});let f=n?n.missingWarn:Me(e.missingWarn)||Xr(e.missingWarn)?e.missingWarn:!0,c=n?n.fallbackWarn:Me(e.fallbackWarn)||Xr(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:Me(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,_=Ue(e.missing)?e.missing:null,h=Ue(e.missing)?ya(e.missing):null,w=Ue(e.postTranslation)?e.postTranslation:null,v=n?n.warnHtmlMessage:Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter;const S=n?n.modifiers:_e(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,b;b=(()=>{r&&ia(null);const x={version:rg,locale:o.value,fallbackLocale:a.value,messages:i.value,modifiers:S,pluralRules:P,missing:h===null?void 0:h,missingWarn:f,fallbackWarn:c,fallbackFormat:p,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:v,escapeParameter:T,messageResolver:e.messageResolver,__meta:{framework:"vue"}};x.datetimeFormats=l.value,x.numberFormats=u.value,x.__datetimeFormatters=_e(b)?b.__datetimeFormatters:void 0,x.__numberFormatters=_e(b)?b.__numberFormatters:void 0;const O=Jy(x);return r&&ia(O),O})(),Kn(b,o.value,a.value);function E(){return[o.value,a.value,i.value,l.value,u.value]}const k=Ae({get:()=>o.value,set:x=>{o.value=x,b.locale=o.value}}),M=Ae({get:()=>a.value,set:x=>{a.value=x,b.fallbackLocale=a.value,Kn(b,o.value,x)}}),q=Ae(()=>i.value),Q=Ae(()=>l.value),V=Ae(()=>u.value);function ce(){return Ue(w)?w:null}function Ee(x){w=x,b.postTranslation=x}function Oe(){return _}function xe(x){x!==null&&(h=ya(x)),_=x,b.missing=h}const Z=(x,O,W,X,oe,ve)=>{E();let de;if(__INTLIFY_PROD_DEVTOOLS__)try{oa(lg()),r||(b.fallbackContext=n?Qy():void 0),de=x(b)}finally{oa(null),r||(b.fallbackContext=void 0)}else de=x(b);if(je(de)&&de===hs){const[Le,ot]=O();return n&&d?X(n):oe(Le)}else{if(ve(de))return de;throw ut(st.UNEXPECTED_RETURN_TYPE)}};function ae(...x){return Z(O=>Reflect.apply(ca,null,[O,...x]),()=>Gs(...x),"translate",O=>Reflect.apply(O.t,O,[...x]),O=>O,O=>Y(O))}function Je(...x){const[O,W,X]=x;if(X&&!Se(X))throw ut(st.INVALID_ARGUMENT);return ae(O,W,Xe({resolvedMessage:!0},X||{}))}function Tt(...x){return Z(O=>Reflect.apply(ua,null,[O,...x]),()=>Qs(...x),"datetime format",O=>Reflect.apply(O.d,O,[...x]),()=>ra,O=>Y(O))}function Ze(...x){return Z(O=>Reflect.apply(da,null,[O,...x]),()=>Js(...x),"number format",O=>Reflect.apply(O.n,O,[...x]),()=>ra,O=>Y(O))}function We(x){return x.map(O=>Y(O)||je(O)||Me(O)?ha(String(O)):O)}const _n={normalize:We,interpolate:x=>x,type:"vnode"};function L(...x){return Z(O=>{let W;const X=O;try{X.processor=_n,W=Reflect.apply(ca,null,[X,...x])}finally{X.processor=null}return W},()=>Gs(...x),"translate",O=>O[Zs](...x),O=>[ha(O)],O=>Ne(O))}function H(...x){return Z(O=>Reflect.apply(da,null,[O,...x]),()=>Js(...x),"number format",O=>O[to](...x),()=>[],O=>Y(O)||Ne(O))}function B(...x){return Z(O=>Reflect.apply(ua,null,[O,...x]),()=>Qs(...x),"datetime format",O=>O[eo](...x),()=>[],O=>Y(O)||Ne(O))}function G(x){P=x,b.pluralRules=P}function fe(x,O){const W=Y(O)?O:o.value,X=m(W);return b.messageResolver(X,x)!==null}function Pe(x){let O=null;const W=rc(b,a.value,o.value);for(let X=0;X{s&&(o.value=x,b.locale=x,Kn(b,o.value,a.value))}),nt(n.fallbackLocale,x=>{s&&(a.value=x,b.fallbackLocale=x,Kn(b,o.value,a.value))}));const I={id:_a,locale:k,fallbackLocale:M,get inheritLocale(){return s},set inheritLocale(x){s=x,x&&n&&(o.value=n.locale.value,a.value=n.fallbackLocale.value,Kn(b,o.value,a.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:q,get modifiers(){return S},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(x){f=x,b.missingWarn=f},get fallbackWarn(){return c},set fallbackWarn(x){c=x,b.fallbackWarn=c},get fallbackRoot(){return d},set fallbackRoot(x){d=x},get fallbackFormat(){return p},set fallbackFormat(x){p=x,b.fallbackFormat=p},get warnHtmlMessage(){return v},set warnHtmlMessage(x){v=x,b.warnHtmlMessage=x},get escapeParameter(){return T},set escapeParameter(x){T=x,b.escapeParameter=x},t:ae,getLocaleMessage:m,setLocaleMessage:g,mergeLocaleMessage:C,getPostTranslationHandler:ce,setPostTranslationHandler:Ee,getMissingHandler:Oe,setMissingHandler:xe,[og]:G};return I.datetimeFormats=Q,I.numberFormats=V,I.rt=Je,I.te=fe,I.tm=se,I.d=Tt,I.n=Ze,I.getDateTimeFormat=z,I.setDateTimeFormat=R,I.mergeDateTimeFormat=F,I.getNumberFormat=j,I.setNumberFormat=$,I.mergeNumberFormat=D,I[ig]=e.__injectWithOption,I[Zs]=L,I[eo]=B,I[to]=H,I}const Uo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function cg({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 yc(e){return we}const ga={name:"i18n-t",props:Xe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>je(e)||!isNaN(e)}},Uo),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Ho({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=cg(t,o),l=s[Zs](e.keypath,i,a),u=Xe({},r),f=Y(e.tag)||Se(e.tag)?e.tag:yc();return br(f,u,l)}}};function ug(e){return Ne(e)&&!Y(e[0])}function gc(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:Se(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 _=s[d.type],h=_?_({[d.type]:d.value,index:p,parts:l}):[d.value];return ug(h)&&(h[0].key=`${d.type}-${p}`),h}):Y(l)&&(u=[l]);const f=Xe({},o),c=Y(e.tag)||Se(e.tag)?e.tag:yc();return br(c,f,u)}}const va={name:"i18n-n",props:Xe({value:{type:Number,required:!0},format:{type:[String,Object]}},Uo),setup(e,t){const n=e.i18n||Ho({useScope:"parent",__useComponent:!0});return gc(e,t,dc,(...r)=>n[to](...r))}},ba={name:"i18n-d",props:Xe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Uo),setup(e,t){const n=e.i18n||Ho({useScope:"parent",__useComponent:!0});return gc(e,t,fc,(...r)=>n[eo](...r))}};function fg(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 dg(e){const t=a=>{const{instance:i,modifiers:l,value:u}=a;if(!i||!i.$)throw ut(st.UNEXPECTED_ERROR);const f=fg(e,i.$),c=wa(u);return[Reflect.apply(f.t,f,[...Ea(c)]),f]};return{created:(a,i)=>{const[l,u]=t(i);Xs&&e.global===u&&(a.__i18nWatcher=nt(u.locale,()=>{i.instance&&i.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{Xs&&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=wa(i);a.textContent=Reflect.apply(l.t,l,[...Ea(u)])}},getSSRProps:a=>{const[i]=t(a);return{textContent:i}}}}function wa(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 Ea(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 pg(e,t,...n){const r=_e(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Me(r.globalInstall)?r.globalInstall:!0)&&(e.component(s?"i18n":ga.name,ga),e.component(va.name,va),e.component(ba.name,ba)),e.directive("t",dg(t))}const hg=Qt("global-vue-i18n");function mg(e={},t){const n=Me(e.globalInjection)?e.globalInjection:!0,r=!0,s=new Map,[o,a]=_g(e),i=Qt("");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&&kg(d,c.global),pg(d,c,...p);const _=d.unmount;d.unmount=()=>{c.dispose(),_()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:f};return c}}function Ho(e={}){const t=vr();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=yg(t),r=vg(n),s=mc(t),o=gg(e,s);if(o==="global")return ag(r,e,s),r;if(o==="parent"){let l=bg(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=_c(l),wg(a,t),a.__setInstance(t,i)}return i}function _g(e,t,n){const r=_o();{const s=r.run(()=>_c(e));if(s==null)throw ut(st.UNEXPECTED_ERROR);return[r,s]}}function yg(e){{const t=Re(e.isCE?hg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ut(e.isCE?st.NOT_INSLALLED_WITH_PROVIDE:st.UNEXPECTED_ERROR);return t}}function gg(e,t){return ps(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vg(e){return e.mode==="composition"?e.global:e.global.__composer}function bg(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 wg(e,t,n){Xt(()=>{},t),Gt(()=>{e.__deleteInstance(t)},t)}const Eg=["locale","fallbackLocale","availableLocales"],xg=["t","rt","d","n","tm"];function kg(e,t){const n=Object.create(null);Eg.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,xg.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw ut(st.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)})}Yy(Py);Xy(rc);sg();if(__INTLIFY_PROD_DEVTOOLS__){const e=Fo();e.__INTLIFY__=!0,Ny(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const kt=Object.create(null);kt.open="0";kt.close="1";kt.ping="2";kt.pong="3";kt.message="4";kt.upgrade="5";kt.noop="6";const Dr=Object.create(null);Object.keys(kt).forEach(e=>{Dr[kt[e]]=e});const Tg={type:"error",data:"parser error"},Sg=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Og=typeof ArrayBuffer=="function",Pg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,vc=({type:e,data:t},n,r)=>Sg&&t instanceof Blob?n?r(t):xa(t,r):Og&&(t instanceof ArrayBuffer||Pg(t))?n?r(t):xa(new Blob([t]),r):r(kt[e]+(t||"")),xa=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},ka="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gn=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},zg=typeof ArrayBuffer=="function",bc=(e,t)=>{if(typeof e!="string")return{type:"message",data:wc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Ig(e.substring(1),t)}:Dr[n]?e.length>1?{type:Dr[n],data:e.substring(1)}:{type:Dr[n]}:Tg},Ig=(e,t)=>{if(zg){const n=Cg(e);return wc(n,t)}else return{base64:!0,data:e}},wc=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Ec=String.fromCharCode(30),Lg=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((o,a)=>{vc(o,!1,i=>{r[a]=i,++s===n&&t(r.join(Ec))})})},Ag=(e,t)=>{const n=e.split(Ec),r=[];for(let s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function kc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Mg=setTimeout,$g=clearTimeout;function ms(e,t){t.useNativeTimers?(e.setTimeoutFn=Mg.bind(Vt),e.clearTimeoutFn=$g.bind(Vt)):(e.setTimeoutFn=setTimeout.bind(Vt),e.clearTimeoutFn=clearTimeout.bind(Vt))}const Ng=1.33;function Fg(e){return typeof e=="string"?Dg(e):Math.ceil((e.byteLength||e.size)*Ng)}function Dg(e){let t=0,n=0;for(let r=0,s=e.length;r=57344?n+=3:(r++,n+=4);return n}class Bg extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Tc extends Fe{constructor(t){super(),this.writable=!1,ms(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Bg(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=bc(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const Sc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ro=64,jg={};let Ta=0,Ar=0,Sa;function Oa(e){let t="";do t=Sc[e%ro]+t,e=Math.floor(e/ro);while(e>0);return t}function Oc(){const e=Oa(+new Date);return e!==Sa?(Ta=0,Sa=e):e+"."+Oa(Ta++)}for(;Ar{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)};Ag(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,Lg(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]=Oc()),!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=Pc(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(),ms(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=kc(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 zc(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=Hg,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",Pa);else if(typeof addEventListener=="function"){const e="onpagehide"in Vt?"pagehide":"unload";addEventListener(e,Pa,!1)}}function Pa(){for(let e in Et.requests)Et.requests.hasOwnProperty(e)&&Et.requests[e].abort()}const Ic=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Rr=Vt.WebSocket||Vt.MozWebSocket,Ca=!0,Kg="arraybuffer",za=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Yg extends Tc{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=za?{}:kc(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=Ca&&!za?n?new Rr(t,n):new Rr(t):new Rr(t,n,r)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||Kg,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{Ca&&this.ws.send(o)}catch{}s&&Ic(()=>{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]=Oc()),this.supportsBinary||(t.b64=1);const s=Pc(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!!Rr}}const Xg={websocket:Yg,polling:Wg},Gg=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function so(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=Gg.exec(e||""),o={},a=14;for(;a--;)o[Qg[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=Jg(o,o.path),o.queryKey=Zg(o,o.query),o}function Jg(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 Zg(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=so(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=so(n.host).host),ms(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=Vg(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=xc,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 Xg[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,Lc=Object.prototype.toString,rv=typeof Blob=="function"||typeof Blob<"u"&&Lc.call(Blob)==="[object BlobConstructor]",sv=typeof File=="function"||typeof File<"u"&&Lc.call(File)==="[object FileConstructor]";function qo(e){return tv&&(e instanceof ArrayBuffer||nv(e))||rv&&e instanceof Blob||sv&&e instanceof File}function Br(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 cv{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=iv(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const uv=Object.freeze(Object.defineProperty({__proto__:null,protocol:av,get PacketType(){return he},Encoder:lv,Decoder:Wo},Symbol.toStringTag,{value:"Module"}));function ft(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const fv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ac 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(fv.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}jn.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};jn.prototype.reset=function(){this.attempts=0};jn.prototype.setMin=function(e){this.ms=e};jn.prototype.setMax=function(e){this.max=e};jn.prototype.setJitter=function(e){this.jitter=e};class ao 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,ms(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 jn({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||uv;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){Ic(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new Ac(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 Yn={};function jr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=ev(e,t.path||"/socket.io"),r=n.source,s=n.id,o=n.path,a=Yn[s]&&o in Yn[s].nsps,i=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return i?l=new ao(r,t):(Yn[s]||(Yn[s]=new ao(r,t)),l=Yn[s]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(jr,{Manager:ao,Socket:Ac,io:jr,connect:jr});const dv={"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:{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:{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:{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(["格式"])}}}},pv={class:"root-container"},Rc={__name:"App",setup(e){return(t,n)=>(N(),te("div",pv,[U(De(Jl))]))}},hv=Object.freeze(Object.defineProperty({__proto__:null,default:Rc},Symbol.toStringTag,{value:"Module"})),mv="modulepreload",_v=function(e){return"/"+e},Ia={},Ce=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=_v(o),o in Ia)return;Ia[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":mv,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())},yv=xm({history:jh("/"),routes:[{path:"/",name:"app",component:()=>Ce(()=>Promise.resolve().then(()=>hv),void 0),children:[{path:"/",name:"default-layout",component:()=>Ce(()=>import("./default-275421d5.js"),["assets/default-275421d5.js","assets/user-0ade28ac.js","assets/default-8ab79025.css"]),children:[{path:"/",name:"Library",component:()=>Ce(()=>import("./Library-95f835bf.js"),[])},{path:"/albums",name:"Albums",component:()=>Ce(()=>import("./Albums-f757822a.js"),[]),meta:{type:"albums"}},{path:"/album/:source/:id",name:"Album",component:()=>Ce(()=>import("./Album-da9305e8.js"),["assets/Album-da9305e8.js","assets/Album-56482e8c.css"]),meta:{type:"album"}},{path:"/artists",name:"Artists",component:()=>Ce(()=>import("./Artists-07c42e42.js"),[]),meta:{type:"artists"}},{path:"/artist/:source/:id",name:"Artist",component:()=>Ce(()=>import("./Albums-f757822a.js"),[]),meta:{type:"artists"}},{path:"/composers",name:"Composers",component:()=>Ce(()=>import("./Artists-07c42e42.js"),[]),meta:{type:"composers"}},{path:"/composer/:source/:id",name:"Composer",component:()=>Ce(()=>import("./Albums-f757822a.js"),[]),meta:{type:"composers"}},{path:"/folders",name:"Folders",component:()=>Ce(()=>import("./Folders-cfd0ef30.js"),[])},{path:"/folder/:source/:id",name:"Folder",component:()=>Ce(()=>import("./Folders-cfd0ef30.js"),[])},{path:"/playlists",name:"Playlists",component:()=>Ce(()=>import("./Playlists-1cea1c41.js"),[])},{path:"/playlists/folder/:id",name:"PlaylistsFolder",component:()=>Ce(()=>import("./Playlists-1cea1c41.js"),[])},{path:"/playlist/:source/:id",name:"Playlist",component:()=>Ce(()=>import("./Album-da9305e8.js"),["assets/Album-da9305e8.js","assets/Album-56482e8c.css"]),meta:{type:"playlist"}},{path:"/search",name:"Search",component:()=>Ce(()=>import("./Search-717321c2.js"),["assets/Search-717321c2.js","assets/Search-f3c2d4ea.css"])},{path:"/settings",name:"Settings",component:()=>Ce(()=>import("./Index-8a89df71.js"),["assets/Index-8a89df71.js","assets/user-0ade28ac.js"])},{path:"/settings/theme",name:"SettingsTheme",component:()=>Ce(()=>import("./Theme-fcdafdad.js"),["assets/Theme-fcdafdad.js","assets/index-5118a9b6.js","assets/Theme-08e39d68.css"])},{path:"/settings/pins",name:"SettingsPins",component:()=>Ce(()=>import("./Pins-8f3146b9.js"),[])},{path:"/settings/user",name:"SettingsUser",component:()=>Ce(()=>import("./User-23ef9b1b.js"),["assets/User-23ef9b1b.js","assets/user-0ade28ac.js"])},{path:"/settings/users",name:"SettingsUsers",component:()=>Ce(()=>import("./Users-2d2264f7.js"),[])},{path:"/settings/log",name:"SettingsLog",component:()=>Ce(()=>import("./Log-a5375869.js"),["assets/Log-a5375869.js","assets/index-5118a9b6.js","assets/Log-c9db7119.css"])},{path:"/settings/System",name:"SettingsSystem",component:()=>Ce(()=>import("./System-18e7d4b8.js"),[])},{path:"/:pathMatch(.*)*",name:"404",component:()=>Ce(()=>import("./404-b3f1d5c1.js"),[])}]},{path:"/empty",name:"empty-layout",component:()=>Ce(()=>import("./empty-7b315d63.js"),[]),children:[{path:"/login",name:"Login",component:()=>Ce(()=>import("./Login-043232fe.js"),["assets/Login-043232fe.js","assets/Login-d18de0a5.css"])}]}]}]});var Sn,On,ue,pe;class gv{constructor(){en(this,ue);en(this,Sn,localStorage.getItem("username")||"");en(this,On,localStorage.getItem("password")||"")}async login(t,n){ys(this,Sn,t),ys(this,On,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:Un(this,Sn),password:Un(this,On)}});return r.success&&(localStorage.setItem("username",Un(this,Sn)),localStorage.setItem("password",Un(this,On))),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})}}Sn=new WeakMap,On=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 vv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lo={},bv={get exports(){return lo},set exports(e){lo=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(_+d),i+=` - `,i+=f(p.name),i+=` - `,i+=f(p.artist),i+=` - -`}),i}},function(n,r,s){n.exports=s(15)},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=P(s(33)),a=P(s(32)),i=P(s(31)),l=P(s(30)),u=P(s(29)),f=P(s(28)),c=P(s(27)),d=P(s(26)),p=P(s(25)),_=P(s(24)),h=P(s(23)),w=P(s(22)),v=P(s(21)),T=P(s(20)),S=P(s(19));function P(y){return y&&y.__esModule?y:{default:y}}var b={play:o.default,pause:a.default,volumeUp:i.default,volumeDown:l.default,volumeOff:u.default,orderRandom:f.default,orderList:c.default,menu:d.default,loopAll:p.default,loopOne:_.default,loopNone:h.default,loading:w.default,right:v.default,skip:T.default,lrc:S.default};r.default=b},function(n,r,s){var o,a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":a(window))==="object"&&(o=window)}n.exports=o},function(n,r,s){var o,a,i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(a=typeof(o=function(){if((typeof window>"u"?"undefined":i(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var l=function(c,d,p,_){return p>_?d:c+(d-c)*((h=p/_)<.5?4*h*h*h:(h-1)*(2*h-2)*(2*h-2)+1);var h},u=function(c,d,p,_){d=d||500;var h=(_=_||window).scrollTop||window.pageYOffset;if(typeof c=="number")var w=parseInt(c);else var w=function(S,P){return S.nodeName==="HTML"?-P:S.getBoundingClientRect().top+P}(c,h);var v=Date.now(),T=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(S){window.setTimeout(S,15)};(function S(){var P=Date.now()-v;_!==window?_.scrollTop=l(h,w,P,d):window.scroll(0,l(h,w,P,d)),P>d?typeof p=="function"&&p(c):T(S)})()},f=function(c){if(!c.defaultPrevented){c.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var d=document.getElementById(this.hash.substring(1));if(!d)return;u(d,500,function(p){location.replace("#"+p.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var c,d=document.querySelectorAll('a[href^="#"]:not([href="#"])'),p=d.length;c=d[--p];)c.addEventListener("click",f,!1)}),u}})=="function"?o.call(r,s,r,n):o)===void 0||(n.exports=a)},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function c(d,p){for(var _=0;_1),_=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:d,index:this.audios.length+1}),this.audios=this.audios.concat(d),p&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=i.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=d.theme||this.player.options.theme,_&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(d){if(this.player.events.trigger("listremove",{index:d}),this.audios[d])if(this.audios.length>1){var p=this.player.container.querySelectorAll(".aplayer-list li");p[d].remove(),this.audios.splice(d,1),this.player.lrc&&this.player.lrc.remove(d),d===this.index&&(this.audios[d]?this.switch(d):this.switch(d-1)),this.index>d&&this.index--;for(var _=d;_u&&!l.player.audio.paused&&(l.player.container.classList.remove("aplayer-loading"),c=!1),u=f)},100)}},{key:"enable",value:function(l){this["enable"+l+"Checker"]=!0,l==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(l){this["enable"+l+"Checker"]=!1}},{key:"destroy",value:function(){var l=this;this.types.forEach(function(u){l["enable"+u+"Checker"]=!1,l[u+"Checker"]&&clearInterval(l[u+"Checker"])})}}]),i}();r.default=a},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function f(c,d){for(var p=0;p1?c.player.options.loop==="one"?(c.player.options.loop="none",c.player.template.loop.innerHTML=i.default.loopNone):c.player.options.loop==="none"?(c.player.options.loop="all",c.player.template.loop.innerHTML=i.default.loopAll):c.player.options.loop==="all"&&(c.player.options.loop="one",c.player.template.loop.innerHTML=i.default.loopOne):c.player.options.loop==="one"||c.player.options.loop==="all"?(c.player.options.loop="none",c.player.template.loop.innerHTML=i.default.loopNone):c.player.options.loop==="none"&&(c.player.options.loop="all",c.player.template.loop.innerHTML=i.default.loopAll)})}},{key:"initMenuButton",value:function(){var c=this;this.player.template.menu.addEventListener("click",function(){c.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var c=this;this.player.template.miniSwitcher.addEventListener("click",function(){c.player.setMode(c.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var c=this;this.player.template.skipBackButton.addEventListener("click",function(){c.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){c.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){c.player.toggle()})}},{key:"initLrcButton",value:function(){var c=this;this.player.template.lrcButton.addEventListener("click",function(){c.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(c.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),c.player.lrc&&c.player.lrc.show()):(c.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),c.player.lrc&&c.player.lrc.hide())})}}]),f}();r.default=u},function(n,r,s){var o=s(2);n.exports=function(a){a=a||{};var i="",l=o.$each,u=a.lyrics,f=(a.$value,a.$index,o.$escape);return l(u,function(c,d){i+=` - -`}),i}},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o,a=function(){function f(c,d){for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||c=this.current[this.index+1][0])for(var d=0;d=this.current[d][0]&&(!this.current[d+1]||c=200&&p.status<300||p.status===304?d.parsed[c]=d.parse(p.responseText):(d.player.notice("LRC file request fails: status "+p.status),d.parsed[c]=[["00:00","Not available"]]),d.container.innerHTML=(0,l.default)({lyrics:d.parsed[c]}),d.update(0),d.current=d.parsed[c])};var _=this.player.list.audios[c].lrc;p.open("get",_,!0),p.send(null)}else this.player.list.audios[c].lrc?this.parsed[c]=this.parse(this.player.list.audios[c].lrc):this.parsed[c]=[["00:00","Not available"]];this.container.innerHTML=(0,l.default)({lyrics:this.parsed[c]}),this.update(0),this.current=this.parsed[c]}},{key:"parse",value:function(c){if(c){for(var d=(c=c.replace(/([^\]^\n])\[/g,function(y,E){return E+` -[`})).split(` -`),p=[],_=d.length,h=0;h<_;h++){var w=d[h].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),v=d[h].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(w)for(var T=w.length,S=0;S]/;i.$escape=function(u){return function(f){var c=""+f,d=l.exec(c);if(!d)return f;var p="",_=void 0,h=void 0,w=void 0;for(_=d.index,h=0;_ - - `,d(s(1)(p({theme:l.theme,audio:l.audio,index:1}))),i+=` - - -
-
-
`,i+=c.play,i+=`
-
- -
-
-
-
-
-
-`):(i+=` -
-
-
`,i+=c.play,i+=`
-
-
-
- No audio - -
-
-
-
-
-
-
-
-
- - `,i+=c.loading,i+=` - -
-
-
-
- - 00:00 / 00:00 - - - `,i+=c.skip,i+=` - - - `,i+=c.play,i+=` - - - `,i+=c.skip,i+=` - -
- -
-
-
-
-
-
- - - - -
-
-
-
-
-
-
- - `,d(s(1)(p({theme:l.theme,audio:l.audio,index:1}))),i+=` - -
-`),i}},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function f(c,d){for(var p=0;p'},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r,s){var o,a,i=n.exports={};function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function f(S){if(o===setTimeout)return setTimeout(S,0);if((o===l||!o)&&setTimeout)return o=setTimeout,setTimeout(S,0);try{return o(S,0)}catch{try{return o.call(null,S,0)}catch{return o.call(this,S,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:l}catch{o=l}try{a=typeof clearTimeout=="function"?clearTimeout:u}catch{a=u}})();var c,d=[],p=!1,_=-1;function h(){p&&c&&(p=!1,c.length?d=c.concat(d):_=-1,d.length&&w())}function w(){if(!p){var S=f(h);p=!0;for(var P=d.length;P;){for(c=d,d=[];++_1)for(var b=1;b"u"?o===void 0?void 0:o:self)}).call(this,s(4),s(34))},function(n,r,s){var o=Function.prototype.apply;function a(i,l){this._id=i,this._clearFn=l}r.setTimeout=function(){return new a(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new a(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(i){i&&i.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(i,l){clearTimeout(i._idleTimeoutId),i._idleTimeout=l},r.unenroll=function(i){clearTimeout(i._idleTimeoutId),i._idleTimeout=-1},r._unrefActive=r.active=function(i){clearTimeout(i._idleTimeoutId);var l=i._idleTimeout;l>=0&&(i._idleTimeoutId=setTimeout(function(){i._onTimeout&&i._onTimeout()},l))},s(35),r.setImmediate=setImmediate,r.clearImmediate=clearImmediate},function(n,r,s){(function(o){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},i=setTimeout;function l(){}function u(h){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if(typeof h!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],_(h,this)}function f(h,w){for(;h._state===3;)h=h._value;h._state!==0?(h._handled=!0,u._immediateFn(function(){var v=h._state===1?w.onFulfilled:w.onRejected;if(v!==null){var T;try{T=v(h._value)}catch(S){return void d(w.promise,S)}c(w.promise,T)}else(h._state===1?c:d)(w.promise,h._value)})):h._deferreds.push(w)}function c(h,w){try{if(w===h)throw new TypeError("A promise cannot be resolved with itself.");if(w&&((w===void 0?"undefined":a(w))==="object"||typeof w=="function")){var v=w.then;if(w instanceof u)return h._state=3,h._value=w,void p(h);if(typeof v=="function")return void _((T=v,S=w,function(){T.apply(S,arguments)}),h)}h._state=1,h._value=w,p(h)}catch(P){d(h,P)}var T,S}function d(h,w){h._state=2,h._value=w,p(h)}function p(h){h._state===2&&h._deferreds.length===0&&u._immediateFn(function(){h._handled||u._unhandledRejectionFn(h._value)});for(var w=0,v=h._deferreds.length;w1&&this.container.classList.add("aplayer-withlist"),i.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var E=this.container.getElementsByClassName("aplayer-lrc-content"),k=0;k1?(y.notice("An audio error has occurred, player will skip forward in 2 seconds."),E=setTimeout(function(){y.skipForward(),y.paused||y.play()},2e3)):y.list.audios.length===1&&y.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){E&&clearTimeout(E)}),this.on("ended",function(){y.options.loop==="none"?y.options.order==="list"?y.list.index0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[E]&&(this.list.audios[E].theme=y),this.template.listCurs[E]&&(this.template.listCurs[E].style.backgroundColor=y),E===this.list.index&&(this.template.pic.style.backgroundColor=y,this.template.played.style.background=y,this.template.thumb.style.background=y,this.template.volume.style.background=y)}},{key:"seek",value:function(y){y=Math.max(y,0),y=Math.min(y,this.duration),this.audio.currentTime=y,this.bar.set("played",y/this.duration,"width"),this.template.ptime.innerHTML=i.default.secondToTime(y)}},{key:"setUIPlaying",value:function(){var y=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){y.template.button.innerHTML=l.default.pause},100),this.template.skipPlayButton.innerHTML=l.default.pause),this.timer.enable("loading"),this.options.mutex)for(var E=0;E=.95?this.template.volumeButton.innerHTML=l.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=l.default.volumeDown:this.template.volumeButton.innerHTML=l.default.volumeOff}},{key:"volume",value:function(y,E){return y=parseFloat(y),isNaN(y)||(y=Math.max(y,0),y=Math.min(y,1),this.bar.set("volume",y,"height"),E||this.storage.set("volume",y),this.audio.volume=y,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(y,E){this.events.on(y,E)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(y){this.list.switch(y)}},{key:"addAudio",value:function(y){this.list.add(y)}},{key:"removeAudio",value:function(y){this.list.remove(y)}},{key:"destroy",value:function(){S.splice(S.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=y,y==="mini"?this.container.classList.add("aplayer-narrow"):y==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(y){var E=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=y,this.template.notice.style.opacity=M,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:y}),k&&(this.noticeTime=setTimeout(function(){E.template.notice.style.opacity=0,E.events.trigger("noticehide")},k))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var y=this.randomOrder.indexOf(this.list.index);return y===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[y-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var y=this.randomOrder.indexOf(this.list.index);return y===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[y+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),b}();r.default=P},,function(n,r,s){},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0}),s(40);var o,a=s(38),i=(o=a)&&o.__esModule?o:{default:o};console.log(` - %c APlayer v1.10.1 af84efb %c http://aplayer.js.org -`,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),r.default=i.default}]).default})})(bv);const wv=vv(lo);var Gr,Mc,hr,co,Qr,$c;class Ev{constructor(){en(this,Gr);en(this,hr);en(this,Qr);if(this.player=new wv({container:document.getElementById("player")}),"mediaSession"in navigator){setInterval(()=>{var t,n,r,s;this.trackInfo?navigator.mediaSession.metadata=new MediaMetadata({title:((t=this.trackInfo)==null?void 0:t.name)||"PokaPlayer",artist:((n=this.trackInfo)==null?void 0:n.artist)||"PokaPlayer",album:((r=this.trackInfo)==null?void 0:r.album)||"PokaPlayer",artwork:[{src:(s=this.trackInfo)==null?void 0:s.cover}]}):navigator.mediaSession.metadata=null,navigator.mediaSession.playbackState=this.paused?"paused":"playing","setPositionState"in navigator.mediaSession&&navigator.mediaSession.setPositionState({duration:this.player.audio.duration||0,playbackRate:1,position:this.player.audio.currentTime||0})},100),navigator.mediaSession.setActionHandler("play",()=>{this.player.play(),navigator.mediaSession.playbackState="playing"}),navigator.mediaSession.setActionHandler("pause",()=>{this.player.pause(),navigator.mediaSession.playbackState="paused"}),navigator.mediaSession.setActionHandler("previoustrack",()=>{this.previous()}),navigator.mediaSession.setActionHandler("nexttrack",()=>{this.next()});try{navigator.mediaSession.setActionHandler("seekto",t=>{this.player.seek(t.seekTime)})}catch{console.warn('Warning! The "seekto" media session action is not supported.')}}}toggle(){this.player.toggle()}addSongs({songs:t=[],index:n=0,clear:r=!0}){let s="original";const o=t.map(a=>{const i=ie(this,Gr,Mc).call(this,a);return i.originalObject=a,i.url=i.url+"&songRes="+s,i.source,i.uuid=ie(this,Qr,$c).call(this),i});r&&this.player.list.clear(),this.player.list.add(o),this.player.list.switch(n),this.player.play()}next(){this.player.skipForward(),this.player.play()}previous(){this.player.skipBack(),this.player.play()}seek(t){this.player.seek(t)}get audioOrder(){return this.player.options.order}set audioOrder(t){this.player.options.order=t}get trackInfo(){return this.songList[this.currentIndex]}get paused(){return this.player.paused}get currentTime(){var t;return ie(this,hr,co).call(this,((t=this.player.audio)==null?void 0:t.currentTime)||0)}get rawCurrentTime(){var t;return((t=this.player.audio)==null?void 0:t.currentTime)||0}get duration(){var t;return ie(this,hr,co).call(this,((t=this.player.audio)==null?void 0:t.duration)||0)}get rawDuration(){var t;return((t=this.player.audio)==null?void 0:t.duration)||0}get songList(){return this.player.list.audios}get currentIndex(){return this.player.list.index}}Gr=new WeakSet,Mc=function(t){return JSON.parse(JSON.stringify(t))},hr=new WeakSet,co=function(t){let n=Math.floor(t/60),r=Math.floor(t%60);return`${n}:${`0${r}`.slice(-2)}`},Qr=new WeakSet,$c=function(){let t=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n==="x"?r:r&3|8).toString(16)})};const _t=vd(Rc),xv=Object.assign({"./components/BottomPlayer.vue":Gd,"./components/Dialog.vue":rp,"./components/EmptyState.vue":up,"./components/FullscreenPlayer.vue":kp,"./components/FullscreenPlayer/List.vue":Pp,"./components/FullscreenPlayer/Lyric.vue":Up,"./components/FullscreenPlayer/Player.vue":fh,"./components/Loader.vue":vh,"./components/P/Btn.vue":xh,"./components/P/Card.vue":Rm,"./components/P/Cards.vue":Dm,"./components/P/Input.vue":Wm,"./components/P/List/Item.vue":Gm,"./components/P/List/ItemContent.vue":t_,"./components/P/List/ItemIconBtn.vue":i_,"./components/P/List/ItemImg.vue":u_,"./components/P/List/Items.vue":p_,"./components/P/Select.vue":g_,"./components/P/Slider.vue":E_,"./components/Parse/Albums.vue":k_,"./components/Parse/Artists.vue":S_,"./components/Parse/Home.vue":A_,"./components/Parse/Playlists.vue":M_,"./components/Parse/Songs.vue":F_,"./components/PinBtn.vue":U_,"./components/PlaylistDialog.vue":X_,"./components/SongDialog.vue":py});Object.entries(xv).forEach(([e,t])=>{const n=e.split("/").slice(2).join("").replace(/\.\w+$/,"");_t.component(n,t.default)});const Nc=jr(location.origin);_t.config.globalProperties.$socket=Nc;_t.provide("socket",Nc);let Fc=new gv;_t.config.globalProperties.$PokaAPI=Fc;_t.provide("PokaAPI",Fc);const Dc=new Ev;_t.config.globalProperties.$Player=Dc;_t.provide("Player",Dc);const kv=mg({legacy:!1,locale:"zh-TW",messages:dv});_t.use(kv);_t.use(wd());_t.use(yv);_t.mount("#app");export{Ie as A,_l as B,Ii as C,Jr as D,Sv as E,we as F,_r as G,vr as H,tu as I,nu as J,Cu as K,Ae as L,Jl as R,Sf as T,Ve as _,Ql as a,A as b,te as c,It as d,le as e,U as f,Bn as g,Sd as h,ne as i,Re as j,Xt as k,nt as l,qt as m,at as n,N as o,Dn as p,De as q,ee as r,Te as s,ge as t,Pv as u,Ov as v,K as w,Kr as x,Ho as y,Ao as z}; diff --git a/public/assets/index-dca75ef4.js b/public/assets/index-dca75ef4.js new file mode 100644 index 0000000..1d24507 --- /dev/null +++ b/public/assets/index-dca75ef4.js @@ -0,0 +1,183 @@ +var _s=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Un=(e,t,n)=>(_s(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)},ys=(e,t,n,r)=>(_s(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ie=(e,t,n)=>(_s(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 uo(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s!!n[s.toLowerCase()]:s=>!!n[s]}function Jr(e){if(J(e)){const t={};for(let n=0;n{if(n){const r=n.split(jc);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)||ke(e)&&(e.toString===Ma||!re(e.toString))?JSON.stringify(e,Aa,2):String(e),Aa=(e,t)=>t&&t.__v_isRef?Aa(e,t.value):kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Mn(t)?{[`Set(${t.size})`]:[...t.values()]}:ke(t)&&!J(t)&&!$a(t)?String(t):t,ze={},xn=[],ht=()=>{},Kc=()=>!1,Yc=/^on[^a-z]/,Zr=e=>Yc.test(e),po=e=>e.startsWith("onUpdate:"),qe=Object.assign,ho=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Xc=Object.prototype.hasOwnProperty,me=(e,t)=>Xc.call(e,t),J=Array.isArray,kn=e=>mr(e)==="[object Map]",Mn=e=>mr(e)==="[object Set]",Go=e=>mr(e)==="[object Date]",re=e=>typeof e=="function",$e=e=>typeof e=="string",or=e=>typeof e=="symbol",ke=e=>e!==null&&typeof e=="object",Ra=e=>ke(e)&&re(e.then)&&re(e.catch),Ma=Object.prototype.toString,mr=e=>Ma.call(e),Gc=e=>mr(e).slice(8,-1),$a=e=>mr(e)==="[object Object]",mo=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mr=uo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),es=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qc=/-(\w)/g,xt=es(e=>e.replace(Qc,(t,n)=>n?n.toUpperCase():"")),Jc=/\B([A-Z])/g,mn=es(e=>e.replace(Jc,"-$1").toLowerCase()),ts=es(e=>e.charAt(0).toUpperCase()+e.slice(1)),gs=es(e=>e?`on${ts(e)}`:""),ir=(e,t)=>!Object.is(e,t),$r=(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 Qo;const Zc=()=>Qo||(Qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let tt;class Na{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=tt,!t&&tt&&(this.index=(tt.scopes||(tt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=tt;try{return tt=this,t()}finally{tt=n}}}on(){tt=this}off(){tt=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},Fa=e=>(e.w&Wt)>0,Da=e=>(e.n&Wt)>0,ru=({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)?mo(n)&&i.push(a.get("length")):(i.push(a.get(dn)),kn(e)&&i.push(a.get(Ls)));break;case"delete":J(e)||(i.push(a.get(dn)),kn(e)&&i.push(a.get(Ls)));break;case"set":kn(e)&&i.push(a.get(dn));break}if(i.length===1)i[0]&&As(i[0]);else{const l=[];for(const u of i)u&&l.push(...u);As(yo(l))}}function As(e,t){const n=J(e)?e:[...e];for(const r of n)r.computed&&Zo(r);for(const r of n)r.computed||Zo(r)}function Zo(e,t){(e!==dt||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const ou=uo("__proto__,__v_isRef,__isVue"),Va=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(or)),iu=vo(),au=vo(!1,!0),lu=vo(!0),ei=cu();function cu(){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){$n();const r=ye(this)[t].apply(this,n);return Nn(),r}}),e}function vo(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?Tu:Ka:t?Wa:qa).get(r))return r;const a=J(r);if(!e&&a&&me(ei,s))return Reflect.get(ei,s,o);const i=Reflect.get(r,s,o);return(or(s)?Va.has(s):ou(s))||(e||rt(r,"get",s),t)?i:Ie(i)?a&&mo(s)?i:i.value:ke(i)?e?Ya(i):Fn(i):i}}const uu=Ua(),fu=Ua(!0);function Ua(e=!1){return function(n,r,s,o){let a=n[r];if(Cn(a)&&Ie(a)&&!Ie(s))return!1;if(!e&&(!Ur(s)&&!Cn(s)&&(a=ye(a),s=ye(s)),!J(n)&&Ie(a)&&!Ie(s)))return a.value=s,!0;const i=J(n)&&mo(r)?Number(r)e,ns=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}=ns(s),i=r?bo:n?xo:ar;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 Tr(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 Sr(e,t=!1){return e=e.__v_raw,!t&&rt(ye(e),"iterate",dn),Reflect.get(e,"size",e)}function ti(e){e=ye(e);const t=ye(this);return ns(t).has.call(t,e)||(t.add(e),zt(t,"add",e,e)),this}function ni(e,t){t=ye(t);const n=ye(this),{has:r,get:s}=ns(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?ir(t,a)&&zt(n,"set",e,t):zt(n,"add",e,t),this}function ri(e){const t=ye(this),{has:n,get:r}=ns(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&&zt(t,"delete",e,void 0),o}function si(){const e=ye(this),t=e.size!==0,n=e.clear();return t&&zt(e,"clear",void 0,void 0),n}function Or(e,t){return function(r,s){const o=this,a=o.__v_raw,i=ye(a),l=t?bo:e?xo:ar;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?bo:t?xo:ar;return!t&&rt(o,"iterate",l?Ls: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 Mt(e){return function(...t){return e==="delete"?!1:this}}function yu(){const e={get(o){return kr(this,o)},get size(){return Sr(this)},has:Tr,add:ti,set:ni,delete:ri,clear:si,forEach:Or(!1,!1)},t={get(o){return kr(this,o,!1,!0)},get size(){return Sr(this)},has:Tr,add:ti,set:ni,delete:ri,clear:si,forEach:Or(!1,!0)},n={get(o){return kr(this,o,!0)},get size(){return Sr(this,!0)},has(o){return Tr.call(this,o,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Or(!0,!1)},r={get(o){return kr(this,o,!0,!0)},get size(){return Sr(this,!0)},has(o){return Tr.call(this,o,!0)},add:Mt("add"),set:Mt("set"),delete:Mt("delete"),clear:Mt("clear"),forEach:Or(!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[gu,vu,bu,wu]=yu();function wo(e,t){const n=t?e?wu:bu:e?vu:gu;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 Eu={get:wo(!1,!1)},xu={get:wo(!1,!0)},ku={get:wo(!0,!1)},qa=new WeakMap,Wa=new WeakMap,Ka=new WeakMap,Tu=new WeakMap;function Su(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ou(e){return e.__v_skip||!Object.isExtensible(e)?0:Su(Gc(e))}function Fn(e){return Cn(e)?e:Eo(e,!1,Ha,Eu,qa)}function Pu(e){return Eo(e,!1,_u,xu,Wa)}function Ya(e){return Eo(e,!0,mu,ku,Ka)}function Eo(e,t,n,r,s){if(!ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const a=Ou(e);if(a===0)return e;const i=new Proxy(e,a===2?r:n);return s.set(e,i),i}function Ct(e){return Cn(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Cn(e){return!!(e&&e.__v_isReadonly)}function Ur(e){return!!(e&&e.__v_isShallow)}function Xa(e){return Ct(e)||Cn(e)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}function zn(e){return Vr(e,"__v_skip",!0),e}const ar=e=>ke(e)?Fn(e):e,xo=e=>ke(e)?Ya(e):e;function Ga(e){Ut&&dt&&(e=ye(e),ja(e.dep||(e.dep=yo())))}function Qa(e,t){e=ye(e),e.dep&&As(e.dep)}function Ie(e){return!!(e&&e.__v_isRef===!0)}function ne(e){return Ja(e,!1)}function Cu(e){return Ja(e,!0)}function Ja(e,t){return Ie(e)?e:new zu(e,t)}class zu{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:ar(t)}get value(){return Ga(this),this._value}set value(t){const n=this.__v_isShallow||Ur(t)||Cn(t);t=n?t:ye(t),ir(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:ar(t),Qa(this))}}function De(e){return Ie(e)?e.value:e}const Iu={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 Za(e){return Ct(e)?e:new Proxy(e,Iu)}function el(e){const t=J(e)?new Array(e.length):{};for(const n in e)t[n]=tl(e,n);return t}class Lu{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 tl(e,t,n){const r=e[t];return Ie(r)?r:new Lu(e,t,n)}var nl;class Au{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[nl]=!1,this._dirty=!0,this.effect=new go(t,()=>{this._dirty||(this._dirty=!0,Qa(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ye(this);return Ga(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}nl="__v_isReadonly";function Ru(e,t,n=!1){let r,s;const o=re(e);return o?(r=e,s=ht):(r=e.get,s=e.set),new Au(r,s,o||!s,n)}function Ht(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){rs(o,t,n)}return s}function lt(e,t,n,r){if(re(e)){const o=Ht(e,t,n,r);return o&&Ra(o)&&o.catch(a=>{rs(a,t,n)}),o}const s=[];for(let o=0;o>>1;cr(Ke[r])wt&&Ke.splice(t,1)}function Fu(e){J(e)?Tn.push(...e):(!Ot||!Ot.includes(e,e.allowRecurse?an+1:an))&&Tn.push(e),sl()}function oi(e,t=lr?wt+1:0){for(;tcr(n)-cr(r)),an=0;ane.id==null?1/0:e.id,Du=(e,t)=>{const n=cr(e)-cr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function il(e){Rs=!1,lr=!0,Ke.sort(Du);const t=ht;try{for(wt=0;wt$e(p)?p.trim():p)),c&&(s=n.map(Pn))}let i,l=r[i=gs(t)]||r[i=gs(xt(t))];!l&&o&&(l=r[i=gs(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 al(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=al(u,t,!0);f&&(i=!0,qe(a,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(ke(e)&&r.set(e,null),null):(J(o)?o.forEach(l=>a[l]=null):qe(a,o),ke(e)&&r.set(e,a),a)}function ss(e,t){return!e||!Zr(t)?!1:(t=t.slice(2).replace(/Once$/,""),me(e,t[0].toLowerCase()+t.slice(1))||me(e,mn(t))||me(e,t))}let He=null,os=null;function Hr(e){const t=He;return He=e,os=e&&e.type.__scopeId||null,t}function Dn(e){os=e}function Bn(){os=null}function K(e,t=He,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&_i(-1);const o=Hr(t);let a;try{a=e(...s)}finally{Hr(o),r._d&&_i(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function vs(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:_,inheritAttrs:h}=e;let w,v;const T=Hr(e);try{if(n.shapeFlag&4){const P=s||r;w=vt(f.call(P,P,c,o,p,d,_)),v=l}else{const P=t;w=vt(P.length>1?P(o,{attrs:l,slots:i,emit:u}):P(o,null)),v=t.props?l:ju(l)}}catch(P){er.length=0,rs(P,e,1),w=U(ct)}let S=w;if(v&&h!==!1){const P=Object.keys(v),{shapeFlag:b}=S;P.length&&b&7&&(a&&P.some(po)&&(v=Vu(v,a)),S=Kt(S,v))}return n.dirs&&(S=Kt(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),w=S,Hr(T),w}const ju=e=>{let t;for(const n in e)(n==="class"||n==="style"||Zr(n))&&((t||(t={}))[n]=e[n]);return t},Vu=(e,t)=>{const n={};for(const r in e)(!po(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Uu(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?ii(r,a,u):!!a;if(l&8){const f=t.dynamicProps;for(let c=0;ce.__isSuspense;function Wu(e,t){t&&t.pendingBranch?J(e)?t.effects.push(...e):t.effects.push(e):Fu(e)}function Nr(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||He;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 nt(e,t,n){return ll(e,t,n)}function ll(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:a}=ze){const i=Be;let l,u=!1,f=!1;if(Ie(e)?(l=()=>e.value,u=Ur(e)):Ct(e)?(l=()=>e,r=!0):J(e)?(f=!0,u=e.some(S=>Ct(S)||Ur(S)),l=()=>e.map(S=>{if(Ie(S))return S.value;if(Ct(S))return fn(S);if(re(S))return Ht(S,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 S=l;l=()=>fn(S())}let c,d=S=>{c=v.onStop=()=>{Ht(S,i,4)}},p;if(fr)if(d=ht,t?n&<(t,i,3,[l(),f?[]:void 0,d]):l(),s==="sync"){const S=Bf();p=S.__watcherHandles||(S.__watcherHandles=[])}else return ht;let _=f?new Array(e.length).fill(Cr):Cr;const h=()=>{if(v.active)if(t){const S=v.run();(r||u||(f?S.some((P,b)=>ir(P,_[b])):ir(S,_)))&&(c&&c(),lt(t,i,3,[S,_===Cr?void 0:f&&_[0]===Cr?[]:_,d]),_=S)}else v.run()};h.allowRecurse=!!t;let w;s==="sync"?w=h:s==="post"?w=()=>Qe(h,i&&i.suspense):(h.pre=!0,i&&(h.id=i.uid),w=()=>To(h));const v=new go(l,w);t?n?h():_=v.run():s==="post"?Qe(v.run.bind(v),i&&i.suspense):v.run();const T=()=>{v.stop(),i&&i.scope&&ho(i.scope.effects,v)};return p&&p.push(T),T}function Ku(e,t,n){const r=this.proxy,s=$e(e)?e.includes(".")?cl(r,e):()=>r[e]:e.bind(r,r);let o;re(t)?o=t:(o=t.handler,n=t);const a=Be;In(this);const i=ll(s,o.bind(r),n);return a?In(a):pn(),i}function cl(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s{fn(n,t)});else if($a(e))for(const n in e)fn(e[n],t);return e}function Yu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Xt(()=>{e.isMounted=!0}),ml(()=>{e.isUnmounting=!0}),e}const it=[Function,Array],Xu={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=vr(),r=Yu();let s;return()=>{const o=t.default&&dl(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 bs(a);const u=ai(a);if(!u)return bs(a);const f=Ms(u,i,r,n);$s(u,f);const c=n.subTree,d=c&&ai(c);let p=!1;const{getTransitionKey:_}=u.type;if(_){const h=_();s===void 0?s=h:h!==s&&(s=h,p=!0)}if(d&&d.type!==ct&&(!ln(u,d)||p)){const h=Ms(d,i,r,n);if($s(d,h),l==="out-in")return r.isLeaving=!0,h.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},bs(a);l==="in-out"&&u.type!==ct&&(h.delayLeave=(w,v,T)=>{const S=fl(r,d);S[String(d.key)]=d,w._leaveCb=()=>{v(),w._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=T})}return a}}},ul=Xu;function fl(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 Ms(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:_,onBeforeAppear:h,onAppear:w,onAfterAppear:v,onAppearCancelled:T}=t,S=String(e.key),P=fl(n,e),b=(k,M)=>{k&<(k,r,9,M)},y=(k,M)=>{const q=M[1];b(k,M),J(k)?k.every(Q=>Q.length<=1)&&q():k.length<=1&&q()},E={mode:o,persisted:a,beforeEnter(k){let M=i;if(!n.isMounted)if(s)M=h||i;else return;k._leaveCb&&k._leaveCb(!0);const q=P[S];q&&ln(e,q)&&q.el._leaveCb&&q.el._leaveCb(),b(M,[k])},enter(k){let M=l,q=u,Q=f;if(!n.isMounted)if(s)M=w||l,q=v||u,Q=T||f;else return;let V=!1;const ce=k._enterCb=Ee=>{V||(V=!0,Ee?b(Q,[k]):b(q,[k]),E.delayedLeave&&E.delayedLeave(),k._enterCb=void 0)};M?y(M,[k,ce]):ce()},leave(k,M){const q=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return M();b(c,[k]);let Q=!1;const V=k._leaveCb=ce=>{Q||(Q=!0,M(),ce?b(_,[k]):b(p,[k]),k._leaveCb=void 0,P[q]===e&&delete P[q])};P[q]=e,d?y(d,[k,V]):V()},clone(k){return Ms(k,t,n,r)}};return E}function bs(e){if(is(e))return e=Kt(e),e.children=null,e}function ai(e){return is(e)?e.children?e.children[0]:void 0:e}function $s(e,t){e.shapeFlag&6&&e.component?$s(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 dl(e,t=!1,n){let r=[],s=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,is=e=>e.type.__isKeepAlive;function Gu(e,t){hl(e,"a",t)}function Qu(e,t){hl(e,"da",t)}function hl(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(as(t,r,n),n){let s=n.parent;for(;s&&s.parent;)is(s.parent.vnode)&&Ju(r,t,n,s),s=s.parent}}function Ju(e,t,n,r){const s=as(t,e,r,!0);Gt(()=>{ho(r[t],s)},n)}function as(e,t,n=Be,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...a)=>{if(n.isUnmounted)return;$n(),In(n);const i=lt(t,n,e,a);return pn(),Nn(),i});return r?s.unshift(o):s.push(o),o}}const At=e=>(t,n=Be)=>(!fr||e==="sp")&&as(e,(...r)=>t(...r),n),Zu=At("bm"),Xt=At("m"),ef=At("bu"),tf=At("u"),ml=At("bum"),Gt=At("um"),nf=At("sp"),rf=At("rtg"),sf=At("rtc");function of(e,t=Be){as("ec",e,t)}function _l(e,t){const n=He;if(n===null)return e;const r=cs(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;iWr(t)?!(t.type===ct||t.type===we&&!vl(t.children)):!0)?e:null}const Ns=e=>e?zl(e)?cs(e)||e.proxy:Ns(e.parent):null,Jn=qe(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=>Ns(e.parent),$root:e=>Ns(e.root),$emit:e=>e.emit,$options:e=>Po(e),$forceUpdate:e=>e.f||(e.f=()=>To(e.update)),$nextTick:e=>e.n||(e.n=_r.bind(e.proxy)),$watch:e=>Ku.bind(e)}),ws=(e,t)=>e!==ze&&!e.__isScriptSetup&&me(e,t),af={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(ws(r,t))return a[t]=1,r[t];if(s!==ze&&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!==ze&&me(n,t))return a[t]=4,n[t];Fs&&(a[t]=0)}}const f=Jn[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!==ze&&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 ws(s,t)?(s[t]=n,!0):r!==ze&&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!==ze&&me(e,a)||ws(t,a)||(i=o[0])&&me(i,a)||me(r,a)||me(Jn,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 Fs=!0;function lf(e){const t=Po(e),n=e.proxy,r=e.ctx;Fs=!1,t.beforeCreate&&ci(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:_,activated:h,deactivated:w,beforeDestroy:v,beforeUnmount:T,destroyed:S,unmounted:P,render:b,renderTracked:y,renderTriggered:E,errorCaptured:k,serverPrefetch:M,expose:q,inheritAttrs:Q,components:V,directives:ce,filters:Ee}=t;if(u&&cf(u,r,null,e.appContext.config.unwrapInjectedRef),a)for(const Z in a){const ae=a[Z];re(ae)&&(r[Z]=ae.bind(n))}if(s){const Z=s.call(n,n);ke(Z)&&(e.data=Fn(Z))}if(Fs=!0,o)for(const Z in o){const ae=o[Z],Je=re(ae)?ae.bind(n,n):re(ae.get)?ae.get.bind(n,n):ht,Tt=!re(ae)&&re(ae.set)?ae.set.bind(n):ht,Ze=Ae({get:Je,set:Tt});Object.defineProperty(r,Z,{enumerable:!0,configurable:!0,get:()=>Ze.value,set:We=>Ze.value=We})}if(i)for(const Z in i)bl(i[Z],r,n,Z);if(l){const Z=re(l)?l.call(n):l;Reflect.ownKeys(Z).forEach(ae=>{Nr(ae,Z[ae])})}f&&ci(f,e,"c");function xe(Z,ae){J(ae)?ae.forEach(Je=>Z(Je.bind(n))):ae&&Z(ae.bind(n))}if(xe(Zu,c),xe(Xt,d),xe(ef,p),xe(tf,_),xe(Gu,h),xe(Qu,w),xe(of,k),xe(sf,y),xe(rf,E),xe(ml,T),xe(Gt,P),xe(nf,M),J(q))if(q.length){const Z=e.exposed||(e.exposed={});q.forEach(ae=>{Object.defineProperty(Z,ae,{get:()=>n[ae],set:Je=>n[ae]=Je})})}else e.exposed||(e.exposed={});b&&e.render===ht&&(e.render=b),Q!=null&&(e.inheritAttrs=Q),V&&(e.components=V),ce&&(e.directives=ce)}function cf(e,t,n=ht,r=!1){J(e)&&(e=Ds(e));for(const s in e){const o=e[s];let a;ke(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 ci(e,t,n){lt(J(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function bl(e,t,n,r){const s=r.includes(".")?cl(n,r):()=>n[r];if($e(e)){const o=t[e];re(o)&&nt(s,o)}else if(re(e))nt(s,e.bind(n));else if(ke(e))if(J(e))e.forEach(o=>bl(o,t,n,r));else{const o=re(e.handler)?e.handler.bind(n):t[e.handler];re(o)&&nt(s,o,e)}}function Po(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=>qr(l,u,a,!0)),qr(l,t,a)),ke(t)&&o.set(t,l),l}function qr(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&qr(e,o,n,!0),s&&s.forEach(a=>qr(e,a,n,!0));for(const a in t)if(!(r&&a==="expose")){const i=uf[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const uf={data:ui,props:on,emits:on,methods:on,computed:on,beforeCreate:Ye,created:Ye,beforeMount:Ye,mounted:Ye,beforeUpdate:Ye,updated:Ye,beforeDestroy:Ye,beforeUnmount:Ye,destroyed:Ye,unmounted:Ye,activated:Ye,deactivated:Ye,errorCaptured:Ye,serverPrefetch:Ye,components:on,directives:on,watch:df,provide:ui,inject:ff};function ui(e,t){return t?e?function(){return qe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function ff(e,t){return on(Ds(e),Ds(t))}function Ds(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]=El(c,t,!0);qe(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 ke(e)&&r.set(e,xn),xn;if(J(o))for(let f=0;f-1,p[1]=h<0||_-1||me(p,"default"))&&i.push(c)}}}const u=[a,i];return ke(e)&&r.set(e,u),u}function fi(e){return e[0]!=="$"}function di(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function pi(e,t){return di(e)===di(t)}function hi(e,t){return J(t)?t.findIndex(n=>pi(n,e)):re(t)&&pi(t,e)?0:-1}const xl=e=>e[0]==="_"||e==="$stable",Co=e=>J(e)?e.map(vt):[vt(e)],mf=(e,t,n)=>{if(t._n)return t;const r=K((...s)=>Co(t(...s)),n);return r._c=!1,r},kl=(e,t,n)=>{const r=e._ctx;for(const s in e){if(xl(s))continue;const o=e[s];if(re(o))t[s]=mf(s,o,r);else if(o!=null){const a=Co(o);t[s]=()=>a}}},Tl=(e,t)=>{const n=Co(t);e.slots.default=()=>n},_f=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ye(t),Vr(t,"_",n)):kl(t,e.slots={})}else e.slots={},t&&Tl(e,t);Vr(e.slots,ls,1)},yf=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,a=ze;if(r.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:(qe(s,t),!n&&i===1&&delete s._):(o=!t.$stable,kl(t,s)),a=t}else t&&(Tl(e,t),a={default:1});if(o)for(const i in s)!xl(i)&&!(i in a)&&delete s[i]};function Sl(){return{app:null,config:{isNativeTag:Kc,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 gf=0;function vf(e,t){return function(r,s=null){re(r)||(r=Object.assign({},r)),s!=null&&!ke(s)&&(s=null);const o=Sl(),a=new Set;let i=!1;const l=o.app={_uid:gf++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:jf,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=U(r,s);return d.appContext=o,f&&t?t(d,u):e(d,u,c),i=!0,l._container=u,u.__vue_app__=l,cs(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 js(e,t,n,r,s=!1){if(J(e)){e.forEach((d,p)=>js(d,t&&(J(t)?t[p]:t),n,r,s));return}if(Qn(r)&&!s)return;const o=r.shapeFlag&4?cs(r.component)||r.component.proxy:r.el,a=s?null:o,{i,r:l}=e,u=t&&t.r,f=i.refs===ze?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 _=()=>{if(e.f){const h=d?me(c,l)?c[l]:f[l]:l.value;s?J(h)&&ho(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?(_.id=-1,Qe(_,n)):_()}}}const Qe=Wu;function bf(e){return wf(e)}function wf(e,t){const n=Zc();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:_}=e,h=(m,g,C,z=null,R=null,F=null,j=!1,$=null,D=!!g.dynamicChildren)=>{if(m===g)return;m&&!ln(m,g)&&(z=B(m),We(m,R,F,!0),m=null),g.patchFlag===-2&&(D=!1,g.dynamicChildren=null);const{type:I,ref:x,shapeFlag:O}=g;switch(I){case yr:w(m,g,C,z);break;case ct:v(m,g,C,z);break;case Es:m==null&&T(g,C,z,j);break;case we:V(m,g,C,z,R,F,j,$,D);break;default:O&1?b(m,g,C,z,R,F,j,$,D):O&6?ce(m,g,C,z,R,F,j,$,D):(O&64||O&128)&&I.process(m,g,C,z,R,F,j,$,D,fe)}x!=null&&R&&js(x,m&&m.ref,F,g||m,!g)},w=(m,g,C,z)=>{if(m==null)r(g.el=i(g.children),C,z);else{const R=g.el=m.el;g.children!==m.children&&u(R,g.children)}},v=(m,g,C,z)=>{m==null?r(g.el=l(g.children||""),C,z):g.el=m.el},T=(m,g,C,z)=>{[m.el,m.anchor]=_(m.children,g,C,z,m.el,m.anchor)},S=({el:m,anchor:g},C,z)=>{let R;for(;m&&m!==g;)R=d(m),r(m,C,z),m=R;r(g,C,z)},P=({el:m,anchor:g})=>{let C;for(;m&&m!==g;)C=d(m),s(m),m=C;s(g)},b=(m,g,C,z,R,F,j,$,D)=>{j=j||g.type==="svg",m==null?y(g,C,z,R,F,j,$,D):M(m,g,R,F,j,$,D)},y=(m,g,C,z,R,F,j,$)=>{let D,I;const{type:x,props:O,shapeFlag:W,transition:X,dirs:oe}=m;if(D=m.el=a(m.type,F,O&&O.is,O),W&8?f(D,m.children):W&16&&k(m.children,D,null,z,R,F&&x!=="foreignObject",j,$),oe&&tn(m,null,z,"created"),O){for(const de in O)de!=="value"&&!Mr(de)&&o(D,de,null,O[de],F,m.children,z,R,H);"value"in O&&o(D,"value",null,O.value),(I=O.onVnodeBeforeMount)&>(I,z,m)}E(D,m,m.scopeId,j,z),oe&&tn(m,null,z,"beforeMount");const ve=(!R||R&&!R.pendingBranch)&&X&&!X.persisted;ve&&X.beforeEnter(D),r(D,g,C),((I=O&&O.onVnodeMounted)||ve||oe)&&Qe(()=>{I&>(I,z,m),ve&&X.enter(D),oe&&tn(m,null,z,"mounted")},R)},E=(m,g,C,z,R)=>{if(C&&p(m,C),z)for(let F=0;F{for(let I=D;I{const $=g.el=m.el;let{patchFlag:D,dynamicChildren:I,dirs:x}=g;D|=m.patchFlag&16;const O=m.props||ze,W=g.props||ze;let X;C&&nn(C,!1),(X=W.onVnodeBeforeUpdate)&>(X,C,g,m),x&&tn(g,m,C,"beforeUpdate"),C&&nn(C,!0);const oe=R&&g.type!=="foreignObject";if(I?q(m.dynamicChildren,I,$,C,z,oe,F):j||ae(m,g,$,null,C,z,oe,F,!1),D>0){if(D&16)Q($,g,O,W,C,z,R);else if(D&2&&O.class!==W.class&&o($,"class",null,W.class,R),D&4&&o($,"style",O.style,W.style,R),D&8){const ve=g.dynamicProps;for(let de=0;de{X&>(X,C,g,m),x&&tn(g,m,C,"updated")},z)},q=(m,g,C,z,R,F,j)=>{for(let $=0;${if(C!==z){if(C!==ze)for(const $ in C)!Mr($)&&!($ in z)&&o(m,$,C[$],null,j,g.children,R,F,H);for(const $ in z){if(Mr($))continue;const D=z[$],I=C[$];D!==I&&$!=="value"&&o(m,$,I,D,j,g.children,R,F,H)}"value"in z&&o(m,"value",C.value,z.value)}},V=(m,g,C,z,R,F,j,$,D)=>{const I=g.el=m?m.el:i(""),x=g.anchor=m?m.anchor:i("");let{patchFlag:O,dynamicChildren:W,slotScopeIds:X}=g;X&&($=$?$.concat(X):X),m==null?(r(I,C,z),r(x,C,z),k(g.children,C,x,R,F,j,$,D)):O>0&&O&64&&W&&m.dynamicChildren?(q(m.dynamicChildren,W,C,R,F,j,$),(g.key!=null||R&&g===R.subTree)&&zo(m,g,!0)):ae(m,g,C,x,R,F,j,$,D)},ce=(m,g,C,z,R,F,j,$,D)=>{g.slotScopeIds=$,m==null?g.shapeFlag&512?R.ctx.activate(g,C,z,j,D):Ee(g,C,z,R,F,j,D):Oe(m,g,D)},Ee=(m,g,C,z,R,F,j)=>{const $=m.component=Lf(m,z,R);if(is(m)&&($.ctx.renderer=fe),Af($),$.asyncDep){if(R&&R.registerDep($,xe),!m.el){const D=$.subTree=U(ct);v(null,D,g,C)}return}xe($,m,g,C,R,F,j)},Oe=(m,g,C)=>{const z=g.component=m.component;if(Uu(m,g,C))if(z.asyncDep&&!z.asyncResolved){Z(z,g,C);return}else z.next=g,Nu(z.update),z.update();else g.el=m.el,z.vnode=g},xe=(m,g,C,z,R,F,j)=>{const $=()=>{if(m.isMounted){let{next:x,bu:O,u:W,parent:X,vnode:oe}=m,ve=x,de;nn(m,!1),x?(x.el=oe.el,Z(m,x,j)):x=oe,O&&$r(O),(de=x.props&&x.props.onVnodeBeforeUpdate)&>(de,X,x,oe),nn(m,!0);const Le=vs(m),ot=m.subTree;m.subTree=Le,h(ot,Le,c(ot.el),B(ot),m,R,F),x.el=Le.el,ve===null&&Hu(m,Le.el),W&&Qe(W,R),(de=x.props&&x.props.onVnodeUpdated)&&Qe(()=>gt(de,X,x,oe),R)}else{let x;const{el:O,props:W}=g,{bm:X,m:oe,parent:ve}=m,de=Qn(g);if(nn(m,!1),X&&$r(X),!de&&(x=W&&W.onVnodeBeforeMount)&>(x,ve,g),nn(m,!0),O&&se){const Le=()=>{m.subTree=vs(m),se(O,m.subTree,m,R,null)};de?g.type.__asyncLoader().then(()=>!m.isUnmounted&&Le()):Le()}else{const Le=m.subTree=vs(m);h(null,Le,C,z,m,R,F),g.el=Le.el}if(oe&&Qe(oe,R),!de&&(x=W&&W.onVnodeMounted)){const Le=g;Qe(()=>gt(x,ve,Le),R)}(g.shapeFlag&256||ve&&Qn(ve.vnode)&&ve.vnode.shapeFlag&256)&&m.a&&Qe(m.a,R),m.isMounted=!0,g=C=z=null}},D=m.effect=new go($,()=>To(I),m.scope),I=m.update=()=>D.run();I.id=m.uid,nn(m,!0),I()},Z=(m,g,C)=>{g.component=m;const z=m.vnode.props;m.vnode=g,m.next=null,hf(m,g.props,z,C),yf(m,g.children,C),$n(),oi(),Nn()},ae=(m,g,C,z,R,F,j,$,D=!1)=>{const I=m&&m.children,x=m?m.shapeFlag:0,O=g.children,{patchFlag:W,shapeFlag:X}=g;if(W>0){if(W&128){Tt(I,O,C,z,R,F,j,$,D);return}else if(W&256){Je(I,O,C,z,R,F,j,$,D);return}}X&8?(x&16&&H(I,R,F),O!==I&&f(C,O)):x&16?X&16?Tt(I,O,C,z,R,F,j,$,D):H(I,R,F,!0):(x&8&&f(C,""),X&16&&k(O,C,z,R,F,j,$,D))},Je=(m,g,C,z,R,F,j,$,D)=>{m=m||xn,g=g||xn;const I=m.length,x=g.length,O=Math.min(I,x);let W;for(W=0;Wx?H(m,R,F,!0,!1,O):k(g,C,z,R,F,j,$,D,O)},Tt=(m,g,C,z,R,F,j,$,D)=>{let I=0;const x=g.length;let O=m.length-1,W=x-1;for(;I<=O&&I<=W;){const X=m[I],oe=g[I]=D?Dt(g[I]):vt(g[I]);if(ln(X,oe))h(X,oe,C,null,R,F,j,$,D);else break;I++}for(;I<=O&&I<=W;){const X=m[O],oe=g[W]=D?Dt(g[W]):vt(g[W]);if(ln(X,oe))h(X,oe,C,null,R,F,j,$,D);else break;O--,W--}if(I>O){if(I<=W){const X=W+1,oe=XW)for(;I<=O;)We(m[I],R,F,!0),I++;else{const X=I,oe=I,ve=new Map;for(I=oe;I<=W;I++){const et=g[I]=D?Dt(g[I]):vt(g[I]);et.key!=null&&ve.set(et.key,I)}let de,Le=0;const ot=W-oe+1;let yn=!1,Ko=0;const Vn=new Array(ot);for(I=0;I=ot){We(et,R,F,!0);continue}let yt;if(et.key!=null)yt=ve.get(et.key);else for(de=oe;de<=W;de++)if(Vn[de-oe]===0&&ln(et,g[de])){yt=de;break}yt===void 0?We(et,R,F,!0):(Vn[yt-oe]=I+1,yt>=Ko?Ko=yt:yn=!0,h(et,g[yt],C,null,R,F,j,$,D),Le++)}const Yo=yn?Ef(Vn):xn;for(de=Yo.length-1,I=ot-1;I>=0;I--){const et=oe+I,yt=g[et],Xo=et+1{const{el:F,type:j,transition:$,children:D,shapeFlag:I}=m;if(I&6){Ze(m.component.subTree,g,C,z);return}if(I&128){m.suspense.move(g,C,z);return}if(I&64){j.move(m,g,C,fe);return}if(j===we){r(F,g,C);for(let O=0;O$.enter(F),R);else{const{leave:O,delayLeave:W,afterLeave:X}=$,oe=()=>r(F,g,C),ve=()=>{O(F,()=>{oe(),X&&X()})};W?W(F,oe,ve):ve()}else r(F,g,C)},We=(m,g,C,z=!1,R=!1)=>{const{type:F,props:j,ref:$,children:D,dynamicChildren:I,shapeFlag:x,patchFlag:O,dirs:W}=m;if($!=null&&js($,null,C,m,!0),x&256){g.ctx.deactivate(m);return}const X=x&1&&W,oe=!Qn(m);let ve;if(oe&&(ve=j&&j.onVnodeBeforeUnmount)&>(ve,g,m),x&6)L(m.component,C,z);else{if(x&128){m.suspense.unmount(C,z);return}X&&tn(m,null,g,"beforeUnmount"),x&64?m.type.remove(m,g,C,R,fe,z):I&&(F!==we||O>0&&O&64)?H(I,g,C,!1,!0):(F===we&&O&384||!R&&x&16)&&H(D,g,C),z&&Zt(m)}(oe&&(ve=j&&j.onVnodeUnmounted)||X)&&Qe(()=>{ve&>(ve,g,m),X&&tn(m,null,g,"unmounted")},C)},Zt=m=>{const{type:g,el:C,anchor:z,transition:R}=m;if(g===we){_n(C,z);return}if(g===Es){P(m);return}const F=()=>{s(C),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(m.shapeFlag&1&&R&&!R.persisted){const{leave:j,delayLeave:$}=R,D=()=>j(C,F);$?$(m.el,F,D):D()}else F()},_n=(m,g)=>{let C;for(;m!==g;)C=d(m),s(m),m=C;s(g)},L=(m,g,C)=>{const{bum:z,scope:R,update:F,subTree:j,um:$}=m;z&&$r(z),R.stop(),F&&(F.active=!1,We(j,m,g,C)),$&&Qe($,g),Qe(()=>{m.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},H=(m,g,C,z=!1,R=!1,F=0)=>{for(let j=F;jm.shapeFlag&6?B(m.component.subTree):m.shapeFlag&128?m.suspense.next():d(m.anchor||m.el),G=(m,g,C)=>{m==null?g._vnode&&We(g._vnode,null,null,!0):h(g._vnode||null,m,g,null,null,null,C),oi(),ol(),g._vnode=m},fe={p:h,um:We,m:Ze,r:Zt,mt:Ee,mc:k,pc:ae,pbc:q,n:B,o:e};let Pe,se;return t&&([Pe,se]=t(fe)),{render:G,hydrate:Pe,createApp:vf(G,Pe)}}function nn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function zo(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 xf=e=>e.__isTeleport,Zn=e=>e&&(e.disabled||e.disabled===""),mi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vs=(e,t)=>{const n=e&&e.to;return $e(n)?t?t(n):null:n},kf={__isTeleport:!0,process(e,t,n,r,s,o,a,i,l,u){const{mc:f,pc:c,pbc:d,o:{insert:p,querySelector:_,createText:h,createComment:w}}=u,v=Zn(t.props);let{shapeFlag:T,children:S,dynamicChildren:P}=t;if(e==null){const b=t.el=h(""),y=t.anchor=h("");p(b,n,r),p(y,n,r);const E=t.target=Vs(t.props,_),k=t.targetAnchor=h("");E&&(p(k,E),a=a||mi(E));const M=(q,Q)=>{T&16&&f(S,q,Q,s,o,a,i,l)};v?M(n,y):E&&M(E,k)}else{t.el=e.el;const b=t.anchor=e.anchor,y=t.target=e.target,E=t.targetAnchor=e.targetAnchor,k=Zn(e.props),M=k?n:y,q=k?b:E;if(a=a||mi(y),P?(d(e.dynamicChildren,P,M,s,o,a,i),zo(e,t,!0)):l||c(e,t,M,q,s,o,a,i,!1),v)k||zr(t,n,b,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const Q=t.target=Vs(t.props,_);Q&&zr(t,Q,null,u,0)}else k&&zr(t,y,E,u,1)}Ol(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||!Zn(d))&&(o(u),i&16))for(let p=0;p0?pt||xn:null,Of(),ur>0&&pt&&pt.push(e),e}function te(e,t,n,r,s,o){return Pl(A(e,t,n,r,s,o,!0))}function le(e,t,n,r,s){return Pl(U(e,t,n,r,s,!0))}function Wr(e){return e?e.__v_isVNode===!0:!1}function ln(e,t){return e.type===t.type&&e.key===t.key}const ls="__vInternal",Cl=({key:e})=>e??null,Fr=({ref:e,ref_key:t,ref_for:n})=>e!=null?$e(e)||Ie(e)||re(e)?{i:He,r:e,k:t,f:!!n}:e:null;function A(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&&Cl(t),ref:t&&Fr(t),scopeId:os,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:He};return i?(Io(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=$e(n)?8:16),ur>0&&!a&&pt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&pt.push(l),l}const U=Pf;function Pf(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===yl)&&(e=ct),Wr(e)){const i=Kt(e,t,!0);return n&&Io(i,n),ur>0&&!o&&pt&&(i.shapeFlag&6?pt[pt.indexOf(e)]=i:pt.push(i)),i.patchFlag|=-2,i}if(Ff(e)&&(e=e.__vccOpts),t){t=Cf(t);let{class:i,style:l}=t;i&&!$e(i)&&(t.class=at(i)),ke(l)&&(Xa(l)&&!J(l)&&(l=qe({},l)),t.style=Jr(l))}const a=$e(e)?1:qu(e)?128:xf(e)?64:ke(e)?4:re(e)?2:0;return A(e,t,n,r,s,a,o,!0)}function Cf(e){return e?Xa(e)||ls in e?qe({},e):e:null}function Kt(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:a}=e,i=t?gr(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:i,key:i&&Cl(i),ref:t&&t.ref?n&&s?J(s)?s.concat(Fr(t)):[s,Fr(t)]:Fr(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&&Kt(e.ssContent),ssFallback:e.ssFallback&&Kt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function qt(e=" ",t=0){return U(yr,null,e,t)}function Te(e="",t=!1){return t?(N(),le(ct,null,e)):U(ct,null,e)}function vt(e){return e==null||typeof e=="boolean"?U(ct):J(e)?U(we,null,e.slice()):typeof e=="object"?Dt(e):U(yr,null,String(e))}function Dt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Kt(e)}function Io(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),Io(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(ls in t)?t._ctx=He:s===3&&He&&(He.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else re(t)?(t={default:t,_ctx:He},n=32):(t=String(t),r&64?(n=16,t=[qt(t)]):n=8);e.children=t,e.shapeFlag|=n}function gr(...e){const t={};for(let n=0;nBe||He,In=e=>{Be=e,e.scope.on()},pn=()=>{Be&&Be.scope.off(),Be=null};function zl(e){return e.vnode.shapeFlag&4}let fr=!1;function Af(e,t=!1){fr=t;const{props:n,children:r}=e.vnode,s=zl(e);pf(e,n,s,t),_f(e,r);const o=s?Rf(e,t):void 0;return fr=!1,o}function Rf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=zn(new Proxy(e.ctx,af));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?$f(e):null;In(e),$n();const o=Ht(r,e,0,[e.props,s]);if(Nn(),pn(),Ra(o)){if(o.then(pn,pn),t)return o.then(a=>{yi(e,a,t)}).catch(a=>{rs(a,e,0)});e.asyncDep=o}else yi(e,o,t)}else Il(e,t)}function yi(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ke(t)&&(e.setupState=Za(t)),Il(e,n)}let gi;function Il(e,t,n){const r=e.type;if(!e.render){if(!t&&gi&&!r.render){const s=r.template||Po(e).template;if(s){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:i,compilerOptions:l}=r,u=qe(qe({isCustomElement:o,delimiters:i},a),l);r.render=gi(s,u)}}e.render=r.render||ht}In(e),$n(),lf(e),Nn(),pn()}function Mf(e){return new Proxy(e.attrs,{get(t,n){return rt(e,"get","$attrs"),t[n]}})}function $f(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Mf(e))},slots:e.slots,emit:e.emit,expose:t}}function cs(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Za(zn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Jn)return Jn[n](e)},has(t,n){return n in t||n in Jn}}))}function Nf(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Ff(e){return re(e)&&"__vccOpts"in e}const Ae=(e,t)=>Ru(e,t,fr);function br(e,t,n){const r=arguments.length;return r===2?ke(t)&&!J(t)?Wr(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wr(n)&&(n=[n]),U(e,t,n))}const Df=Symbol(""),Bf=()=>Re(Df),jf="3.2.45",Vf="http://www.w3.org/2000/svg",cn=typeof document<"u"?document:null,vi=cn&&cn.createElement("template"),Uf={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(Vf,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{vi.innerHTML=r?`${e}`:e;const i=vi.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 Hf(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 qf(e,t,n){const r=e.style,s=$e(n);if(n&&!s){for(const o in n)Us(r,o,n[o]);if(t&&!$e(t))for(const o in t)n[o]==null&&Us(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const bi=/\s*!important$/;function Us(e,t,n){if(J(n))n.forEach(r=>Us(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Wf(e,t);bi.test(n)?e.setProperty(mn(r),n.replace(bi,""),"important"):e[r]=n}}const wi=["Webkit","Moz","ms"],xs={};function Wf(e,t){const n=xs[t];if(n)return n;let r=xt(t);if(r!=="filter"&&r in e)return xs[t]=r;r=ts(r);for(let s=0;sks||(Jf.then(()=>ks=0),ks=Date.now());function ed(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;lt(td(r,n.value),t,5,[r])};return n.value=e,n.attached=Zf(),n}function td(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 ki=/^on[a-z]/,nd=(e,t,n,r,s=!1,o,a,i,l)=>{t==="class"?Hf(e,r,s):t==="style"?qf(e,n,r):Zr(t)?po(t)||Gf(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):rd(e,t,r,s))?Yf(e,t,r,o,a,i,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Kf(e,t,r,s))};function rd(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ki.test(t)&&re(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ki.test(t)&&$e(n)?!1:t in e}const $t="transition",Hn="animation",Lo=(e,{slots:t})=>br(ul,sd(e),t);Lo.displayName="Transition";const Ll={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};Lo.props=qe({},ul.props,Ll);const rn=(e,t=[])=>{J(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ti=e=>e?J(e)?e.some(t=>t.length>1):e.length>1:!1;function sd(e){const t={};for(const V in e)V in Ll||(t[V]=e[V]);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,_=od(s),h=_&&_[0],w=_&&_[1],{onBeforeEnter:v,onEnter:T,onEnterCancelled:S,onLeave:P,onLeaveCancelled:b,onBeforeAppear:y=v,onAppear:E=T,onAppearCancelled:k=S}=t,M=(V,ce,Ee)=>{sn(V,ce?f:i),sn(V,ce?u:a),Ee&&Ee()},q=(V,ce)=>{V._isLeaving=!1,sn(V,c),sn(V,p),sn(V,d),ce&&ce()},Q=V=>(ce,Ee)=>{const Oe=V?E:T,xe=()=>M(ce,V,Ee);rn(Oe,[ce,xe]),Si(()=>{sn(ce,V?l:o),Nt(ce,V?f:i),Ti(Oe)||Oi(ce,r,h,xe)})};return qe(t,{onBeforeEnter(V){rn(v,[V]),Nt(V,o),Nt(V,a)},onBeforeAppear(V){rn(y,[V]),Nt(V,l),Nt(V,u)},onEnter:Q(!1),onAppear:Q(!0),onLeave(V,ce){V._isLeaving=!0;const Ee=()=>q(V,ce);Nt(V,c),ld(),Nt(V,d),Si(()=>{V._isLeaving&&(sn(V,c),Nt(V,p),Ti(P)||Oi(V,r,w,Ee))}),rn(P,[V,Ee])},onEnterCancelled(V){M(V,!1),rn(S,[V])},onAppearCancelled(V){M(V,!0),rn(k,[V])},onLeaveCancelled(V){q(V),rn(b,[V])}})}function od(e){if(e==null)return null;if(ke(e))return[Ts(e.enter),Ts(e.leave)];{const t=Ts(e);return[t,t]}}function Ts(e){return Pn(e)}function Nt(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 Si(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let id=0;function Oi(e,t,n,r){const s=e._endId=++id,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:a,timeout:i,propCount:l}=ad(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[_]||"").split(", "),s=r(`${$t}Delay`),o=r(`${$t}Duration`),a=Pi(s,o),i=r(`${Hn}Delay`),l=r(`${Hn}Duration`),u=Pi(i,l);let f=null,c=0,d=0;t===$t?a>0&&(f=$t,c=a,d=o.length):t===Hn?u>0&&(f=Hn,c=u,d=l.length):(c=Math.max(a,u),f=c>0?a>u?$t:Hn:null,d=f?f===$t?o.length:l.length:0);const p=f===$t&&/\b(transform|all)(,|$)/.test(r(`${$t}Property`).toString());return{type:f,timeout:c,propCount:d,hasTransform:p}}function Pi(e,t){for(;e.lengthCi(n)+Ci(e[r])))}function Ci(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ld(){return document.body.offsetHeight}const Yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return J(t)?n=>$r(t,n):t};function cd(e){e.target.composing=!0}function zi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ii={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=Yt(s);const o=r||s.props&&s.props.type==="number";Pt(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&&Pt(e,"change",()=>{e.value=e.value.trim()}),t||(Pt(e,"compositionstart",cd),Pt(e,"compositionend",zi),Pt(e,"change",zi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e._assign=Yt(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)}},ud={deep:!0,created(e,t,n){e._assign=Yt(n),Pt(e,"change",()=>{const r=e._modelValue,s=Ln(e),o=e.checked,a=e._assign;if(J(r)){const i=fo(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(Mn(r)){const i=new Set(r);o?i.add(s):i.delete(s),a(i)}else a(Rl(e,o))})},mounted:Li,beforeUpdate(e,t,n){e._assign=Yt(n),Li(e,t,n)}};function Li(e,{value:t,oldValue:n},r){e._modelValue=t,J(t)?e.checked=fo(t,r.props.value)>-1:Mn(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=hn(t,Rl(e,!0)))}const fd={created(e,{value:t},n){e.checked=hn(t,n.props.value),e._assign=Yt(n),Pt(e,"change",()=>{e._assign(Ln(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Yt(r),t!==n&&(e.checked=hn(t,r.props.value))}},Al={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Mn(t);Pt(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=Yt(r)},mounted(e,{value:t}){Ai(e,t)},beforeUpdate(e,t,n){e._assign=Yt(n)},updated(e,{value:t}){Ai(e,t)}};function Ai(e,t){const n=e.multiple;if(!(n&&!J(t)&&!Mn(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 Rl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const dd={created(e,t,n){Ir(e,t,n,null,"created")},mounted(e,t,n){Ir(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Ir(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Ir(e,t,n,r,"updated")}};function pd(e,t){switch(e){case"SELECT":return Al;case"TEXTAREA":return Ii;default:switch(t){case"checkbox":return ud;case"radio":return fd;default:return Ii}}}function Ir(e,t,n,r,s){const a=pd(e.tagName,n.props&&n.props.type)[s];a&&a(e,t,n,r)}const hd=["ctrl","shift","alt","meta"],md={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)=>hd.some(n=>e[`${n}Key`]&&!t.includes(n))},Kr=(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||_d[s]===r))return e(n)},Sv={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):qn(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),qn(e,!0),r.enter(e)):r.leave(e,()=>{qn(e,!1)}):qn(e,t))},beforeUnmount(e,{value:t}){qn(e,t)}};function qn(e,t){e.style.display=t?e._vod:"none"}const yd=qe({patchProp:nd},Uf);let Ri;function gd(){return Ri||(Ri=bf(yd))}const vd=(...e)=>{const t=gd().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=bd(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 bd(e){return $e(e)?document.querySelector(e):e}var $l=!1;/*! + * pinia v2.0.28 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */let Nl;const us=e=>Nl=e,Fl=Symbol();function Hs(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var tr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(tr||(tr={}));function wd(){const e=_o(!0),t=e.run(()=>ne({}));let n=[],r=[];const s=zn({install(o){us(s),s._a=o,o.provide(Fl,s),o.config.globalProperties.$pinia=s,r.forEach(a=>n.push(a)),r=[]},use(o){return!this._a&&!$l?r.push(o):n.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const Dl=()=>{};function Mi(e,t,n,r=Dl){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),r())};return!n&&tu()&&nu(s),s}function gn(e,...t){e.slice().forEach(n=>{n(...t)})}function qs(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];Hs(s)&&Hs(r)&&e.hasOwnProperty(n)&&!Ie(r)&&!Ct(r)?e[n]=qs(s,r):e[n]=r}return e}const Ed=Symbol();function xd(e){return!Hs(e)||!e.hasOwnProperty(Ed)}const{assign:Bt}=Object;function kd(e){return!!(Ie(e)&&e.effect)}function Td(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=el(n.state.value[e]);return Bt(f,o,Object.keys(a||{}).reduce((c,d)=>(c[d]=zn(Ae(()=>{us(n);const p=n._s.get(e);return a[d].call(p,p)})),c),{}))}return l=Bl(e,u,t,n,r,!0),l.$reset=function(){const c=s?s():{};this.$patch(d=>{Bt(d,c)})},l}function Bl(e,t,n={},r,s,o){let a;const i=Bt({actions:{}},n),l={deep:!0};let u,f,c=zn([]),d=zn([]),p;const _=r.state.value[e];!o&&!_&&(r.state.value[e]={}),ne({});let h;function w(E){let k;u=f=!1,typeof E=="function"?(E(r.state.value[e]),k={type:tr.patchFunction,storeId:e,events:p}):(qs(r.state.value[e],E),k={type:tr.patchObject,payload:E,storeId:e,events:p});const M=h=Symbol();_r().then(()=>{h===M&&(u=!0)}),f=!0,gn(c,k,r.state.value[e])}const v=Dl;function T(){a.stop(),c=[],d=[],r._s.delete(e)}function S(E,k){return function(){us(r);const M=Array.from(arguments),q=[],Q=[];function V(Oe){q.push(Oe)}function ce(Oe){Q.push(Oe)}gn(d,{args:M,name:E,store:b,after:V,onError:ce});let Ee;try{Ee=k.apply(this&&this.$id===e?this:b,M)}catch(Oe){throw gn(Q,Oe),Oe}return Ee instanceof Promise?Ee.then(Oe=>(gn(q,Oe),Oe)).catch(Oe=>(gn(Q,Oe),Promise.reject(Oe))):(gn(q,Ee),Ee)}}const P={_p:r,$id:e,$onAction:Mi.bind(null,d),$patch:w,$reset:v,$subscribe(E,k={}){const M=Mi(c,E,k.detached,()=>q()),q=a.run(()=>nt(()=>r.state.value[e],Q=>{(k.flush==="sync"?f:u)&&E({storeId:e,type:tr.direct,events:p},Q)},Bt({},l,k)));return M},$dispose:T},b=Fn(P);r._s.set(e,b);const y=r._e.run(()=>(a=_o(),a.run(()=>t())));for(const E in y){const k=y[E];if(Ie(k)&&!kd(k)||Ct(k))o||(_&&xd(k)&&(Ie(k)?k.value=_[E]:qs(k,_[E])),r.state.value[e][E]=k);else if(typeof k=="function"){const M=S(E,k);y[E]=M,i.actions[E]=k}}return Bt(b,y),Bt(ye(b),y),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:E=>{w(k=>{Bt(k,E)})}}),r._p.forEach(E=>{Bt(b,a.run(()=>E({store:b,app:r._a,pinia:r,options:i})))}),_&&o&&n.hydrate&&n.hydrate(b.$state,_),u=!0,f=!0,b}function Sd(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=vr();return i=i||u&&Re(Fl,null),i&&us(i),i=Nl,i._s.has(r)||(o?Bl(r,t,s,i):Td(r,s,i)),i._s.get(r)}return a.$id=r,a}function Ao(e){if($l)return el(e);{e=ye(e);const t={};for(const n in e){const r=e[n];(Ie(r)||Ct(r))&&(t[n]=tl(e,n))}return t}}const Ro=Sd("fullscreenPlayer",()=>({show:ne(!1)}));const Ve=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},wr=e=>(Dn("data-v-b42ec457"),e=e(),Bn(),e),Od={class:"bottom-player"},Pd={class:"cover"},Cd=["src"],zd={class:"track-info-text"},Id={class:"track-name"},Ld={class:"track-artist"},Ad=wr(()=>A("div",{class:"cover"},[A("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)),Rd={class:"track-info-text"},Md=wr(()=>A("div",{class:"track-name"},"PokaPlayer",-1)),$d={class:"track-artist"},Nd={class:"track-control"},Fd={class:"time"},Dd=wr(()=>A("i",{class:"bx bx-skip-previous"},null,-1)),Bd={key:0,class:"bx bx-play"},jd={key:1,class:"bx bx-pause"},Vd=wr(()=>A("i",{class:"bx bx-skip-next"},null,-1)),Ud={class:"time"},Hd={class:"player-control"},qd={key:0,class:"bx bx-shuffle"},Wd={key:1,class:"bx bx-repeat"},Kd=wr(()=>A("i",{class:"bx bx-chevron-up"},null,-1)),Yd={__name:"BottomPlayer",setup(e){const t=Re("Player"),n=Ro(),{show:r}=Ao(n),s=ne(t.audioOrder);nt(s,f=>t.audioOrder=f);const o=ne(t.paused),a=ne("0:00"),i=ne("0:00"),l=ne(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 Gt(()=>{clearInterval(u)}),(f,c)=>{const d=ee("p-btn"),p=ee("fullscreen-player");return N(),te(we,null,[A("div",Od,[l.value?(N(),te("div",{key:0,class:"track-info",onClick:c[0]||(c[0]=_=>r.value=!0),tabindex:"0"},[A("div",Pd,[A("img",{src:l.value.cover,alt:"cover"},null,8,Cd)]),A("div",zd,[A("div",Id,ge(l.value.name),1),A("div",Ld,ge(l.value.artist),1)])])):(N(),te("div",{key:1,class:"track-info",onClick:c[1]||(c[1]=_=>r.value=!0)},[Ad,A("div",Rd,[Md,A("div",$d,ge(f.$t("waitForPlay")),1)])])),A("div",Nd,[A("div",Fd,ge(a.value),1),U(d,{icon:"",text:"",onClick:c[2]||(c[2]=_=>De(t).previous())},{default:K(()=>[Dd]),_:1}),U(d,{icon:"",color:"primary",onClick:c[3]||(c[3]=_=>De(t).toggle())},{default:K(()=>[o.value?(N(),te("i",Bd)):(N(),te("i",jd))]),_:1}),U(d,{icon:"",text:"",onClick:c[4]||(c[4]=_=>De(t).next())},{default:K(()=>[Vd]),_:1}),A("div",Ud,ge(i.value),1)]),A("div",Hd,[U(d,{icon:"",text:"",onClick:c[5]||(c[5]=_=>s.value=s.value=="random"?"list":"random")},{default:K(()=>[s.value=="random"?(N(),te("i",qd)):Te("",!0),s.value=="list"?(N(),te("i",Wd)):Te("",!0)]),_:1}),U(d,{icon:"",text:"",onClick:c[6]||(c[6]=_=>r.value=!0)},{default:K(()=>[Kd]),_:1})])]),U(p)],64)}}},Xd=Ve(Yd,[["__scopeId","data-v-b42ec457"]]),Gd=Object.freeze(Object.defineProperty({__proto__:null,default:Xd},Symbol.toStringTag,{value:"Module"}));const Qd={props:{modelValue:{type:Boolean},showClose:{type:Boolean,default:!1},closeable:{type:Boolean,default:!0},maxWidth:{type:String,default:"min(700px, calc(100vw - 60px))"}}},Jd={class:"modal-wrapper"},Zd=A("i",{class:"bx bx-x"},null,-1),ep=[Zd];function tp(e,t,n,r,s,o){return N(),le(Sf,{to:"body"},[U(Lo,{name:"modal"},{default:K(()=>[n.modelValue?(N(),te("div",{key:0,class:"modal-mask",onClick:t[2]||(t[2]=a=>n.closeable&&e.$emit("update:modelValue",!1))},[A("div",Jd,[A("div",{class:"modal-container",onClick:t[1]||(t[1]=Kr(()=>{},["stop"])),style:Jr(`--max-width: ${n.maxWidth}`)},[n.showClose?(N(),te("div",{key:0,class:"close",onClick:t[0]||(t[0]=a=>n.closeable&&e.$emit("update:modelValue",!1))},ep)):Te("",!0),Lt(e.$slots,"default")],4)])])):Te("",!0)]),_:3})])}const np=Ve(Qd,[["render",tp]]),rp=Object.freeze(Object.defineProperty({__proto__:null,default:np},Symbol.toStringTag,{value:"Module"}));const sp={class:"empty-state"},op={class:"empty-state__icon"},ip={class:"empty-state__title"},ap={class:"empty-state__description"},lp={__name:"EmptyState",props:{title:String,description:String},setup(e){return(t,n)=>(N(),te("div",sp,[A("div",op,[Lt(t.$slots,"default",{},void 0,!0)]),A("div",ip,ge(e.title),1),A("div",ap,ge(e.description),1)]))}},cp=Ve(lp,[["__scopeId","data-v-91d0b47e"]]),up=Object.freeze(Object.defineProperty({__proto__:null,default:cp},Symbol.toStringTag,{value:"Module"}));const Er=e=>(Dn("data-v-de85c361"),e=e(),Bn(),e),fp={class:"fullscreen-player__container"},dp={class:"header"},pp=Er(()=>A("div",{class:"left"},[A("div",{class:"logo"}," PokaPlayer ")],-1)),hp={class:"right"},mp=Er(()=>A("i",{class:"bx bx-chevron-down"},null,-1)),_p={class:"content"},yp={class:"left"},gp={class:"footer"},vp=Er(()=>A("i",{class:"bx bx-play"},null,-1)),bp=Er(()=>A("i",{class:"bx bxs-playlist"},null,-1)),wp=Er(()=>A("i",{class:"bx bx-captions"},null,-1)),Ep={__name:"FullscreenPlayer",setup(e){const t=Ro(),{show:n}=Ao(t),r=ne("playlist");let s=()=>{window.innerWidth>768&&r.value=="player"&&(r.value="playlist")};return Xt(()=>{window.addEventListener("resize",s)}),Gt(()=>{window.removeEventListener("resize",s)}),(o,a)=>{const i=ee("p-btn"),l=ee("fullscreen-Player-Player"),u=ee("fullscreen-Player-List"),f=ee("fullscreen-Player-Lyric");return N(),te("div",{class:at(["fullscreen-player",{show:De(n)}])},[A("div",fp,[A("div",dp,[pp,A("div",hp,[U(i,{icon:"",onClick:a[0]||(a[0]=c=>n.value=!1)},{default:K(()=>[mp]),_:1})])]),A("div",_p,[A("div",yp,[U(l)]),A("div",{class:at(["right",[`current-page-${r.value}`]])},[r.value=="player"?(N(),le(l,{key:0})):Te("",!0),r.value=="playlist"?(N(),le(u,{key:1})):Te("",!0),r.value=="lyric"?(N(),le(f,{key:2})):Te("",!0)],2)]),A("div",gp,[U(i,{icon:"",text:r.value!="player",onClick:a[1]||(a[1]=c=>r.value="player")},{default:K(()=>[vp]),_:1},8,["text"]),U(i,{icon:"",text:r.value!="playlist",onClick:a[2]||(a[2]=c=>r.value="playlist")},{default:K(()=>[bp]),_:1},8,["text"]),U(i,{icon:"",text:r.value!="lyric",onClick:a[3]||(a[3]=c=>r.value="lyric")},{default:K(()=>[wp]),_:1},8,["text"])])])],2)}}},xp=Ve(Ep,[["__scopeId","data-v-de85c361"]]),kp=Object.freeze(Object.defineProperty({__proto__:null,default:xp},Symbol.toStringTag,{value:"Module"}));const Tp={class:"fullscreen-player__list"},Sp={__name:"List",setup(e){const t=Re("Player"),n=ne([]),r=ne(-1);let s=setInterval(()=>{n.value=t.songList,r.value=t.currentIndex},100);return nt(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"}))}),Xt(()=>{n.value=t.songList,r.value=t.currentIndex,_r(()=>{var o;r.value!=-1&&((o=document.querySelector(`.fullscreen-player__list .p-list-item[data-index="${r.value}"]`))==null||o.scrollIntoView({block:"center"}))})}),Gt(()=>{clearInterval(s)}),(o,a)=>{const i=ee("parse-songs");return N(),te("div",Tp,[U(i,{items:n.value,currentIndex:r.value},null,8,["items","currentIndex"])])}}},Op=Ve(Sp,[["__scopeId","data-v-5457ebaa"]]),Pp=Object.freeze(Object.defineProperty({__proto__:null,default:Op},Symbol.toStringTag,{value:"Module"}));const xr=e=>(Dn("data-v-6b2ad199"),e=e(),Bn(),e),Cp=xr(()=>A("div",{class:"icon"},[A("i",{class:"bx bx-question-mark"})],-1)),zp={class:"content"},Ip={class:"title"},Lp={class:"description"},Ap={class:"actions"},Rp=xr(()=>A("i",{class:"bx bx-search"},null,-1)),Mp=xr(()=>A("i",{class:"bx bx-check"},null,-1)),$p=["data-lyric-set"],Np={class:"lyric-search__header"},Fp=xr(()=>A("i",{class:"bx bx-search"},null,-1)),Dp={class:"lyric-search__content"},Bp=xr(()=>A("i",{class:"bx bx-save"},null,-1)),jp={__name:"Lyric",setup(e){const t=Re("Player"),n=Re("PokaAPI"),r=ne(null),s=ne(-1),o=ne(-1),a=ne(-1),i=ne(!1),l=ne(!1),u=ne(!1),f=ne(null),c=ne(""),d=ne(null),p=ne(!1),_=ne([]),h=ne(null),w=/\[[0-9]{1,}\:[0-9]{1,2}(\.[0-9]{1,})?\]/g;let v=setInterval(()=>{var k,M;let E=(k=r.value)==null?void 0:k.uuid;if(r.value=t.trackInfo,s.value=t.currentIndex,o.value=t.rawCurrentTime,_.value!=[])for(let q=0;q<_.value.length;q++)o.value+.3>=_.value[q].time&&(a.value=q,a.value==_.value.length-1&&i.value&&(a.value=q-1));E!=((M=r.value)==null?void 0:M.uuid)&&T()},100);nt(a,E=>{E&&E!=-1&&_r(()=>{var k;(k=document.querySelector(".fullscreen-player__lyric .lyric-item.active"))==null||k.scrollIntoView({behavior:"smooth",block:"center"})})}),Xt(()=>{r.value=t.trackInfo,s.value=t.currentIndex,o.value=t.rawCurrentTime,T()});async function T(){let{id:E,source:k,name:M,artist:q}=r.value;if(_.value=[],h.value=null,i.value=!1,l.value=!1,a.value=0,d.value=null,c.value=`${M} ${q}`,f.value=null,E){p.value=!0;let{lyrics:Q}=await n.getLyric(k,E);p.value=!1,Q.length&&Q[0].lyric.match(w)?(d.value="saved",b(Q[0].lyric)):S(`${M} ${q}`)}}async function S(E,k=!0){f.value=null,p.value=!0;let{lyrics:M}=await n.getLyricByKeyword(E);p.value=!1,f.value=M,c.value=E,k&&M[0]&&(d.value="search",l.value=!0,b(M[0].lyric))}function P(E){let k=E.replace(/\[|\]/g,"").split(":");return parseInt(k[0])*60+parseFloat(k[1])}async function b(E){h.value=E,E=E.replaceAll("\r","");let k=E.match(w),M=[];if((k==null?void 0:k.length)>0){let q=E.split(` +`);for(let Q=0;Q{clearInterval(v)}),(E,k)=>{const M=ee("p-btn"),q=ee("Loader"),Q=ee("p-input"),V=ee("empty-state"),ce=ee("p-list-item-content"),Ee=ee("p-list-item"),Oe=ee("p-list-items"),xe=ee("Dialog");return N(),te(we,null,[A("div",{class:at(["fullscreen-player__lyric",{"with-translated":i.value}]),onDblclick:k[1]||(k[1]=Z=>u.value=!0)},[A("div",{class:at(["is-lyric-correct",{show:l.value}])},[Cp,A("div",zp,[A("div",Ip,ge(E.$t("lyric.isLyricCorrect.title")),1),A("div",Lp,ge(E.$t("lyric.isLyricCorrect.description")),1),A("div",Ap,[U(M,{outline:"",onClick:k[0]||(k[0]=Z=>u.value=!0)},{default:K(()=>[Rp,qt(ge(E.$t("lyric.isLyricCorrect.search")),1)]),_:1}),U(M,{color:"primary",onClick:y},{default:K(()=>[Mp,qt(ge(E.$t("lyric.isLyricCorrect.correct")),1)]),_:1})])])],2),(N(!0),te(we,null,It(_.value,(Z,ae)=>(N(),te("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(Z.lyric),11,$p))),256)),p.value?(N(),le(q,{key:0})):Te("",!0)],34),U(xe,{modelValue:u.value,"onUpdate:modelValue":k[5]||(k[5]=Z=>u.value=Z)},{default:K(()=>[A("div",Np,[U(Q,{modelValue:c.value,"onUpdate:modelValue":k[2]||(k[2]=Z=>c.value=Z),onKeydown:k[3]||(k[3]=Ml(Kr(Z=>S(c.value),["prevent"]),["enter"]))},null,8,["modelValue"]),U(M,{icon:"",onClick:k[4]||(k[4]=Z=>S(c.value))},{default:K(()=>[Fp]),_:1})]),A("div",Dp,[!f.value&&d.value=="saved"&&!p.value?(N(),le(V,{key:0,style:{"margin-top":"80px"},title:E.$t("lyric.currentLyricSource.saved.title"),description:E.$t("lyric.currentLyricSource.saved.description")},{default:K(()=>[Bp]),_:1},8,["title","description"])):Te("",!0),p.value?(N(),le(q,{key:1,style:{"margin-top":"80px"}})):Te("",!0),U(Oe,{"single-row":""},{default:K(()=>[(N(!0),te(we,null,It(f.value,Z=>(N(),le(Ee,{onClick:ae=>{b(Z.lyric),u.value=!1}},{default:K(()=>[U(ce,{title:`${Z.name}`,description:`[${E.$t(`source.${Z.source}`)}] ${Z.artist}`},null,8,["title","description"])]),_:2},1032,["onClick"]))),256))]),_:1})])]),_:1},8,["modelValue"])],64)}}},Vp=Ve(jp,[["__scopeId","data-v-6b2ad199"]]),Up=Object.freeze(Object.defineProperty({__proto__:null,default:Vp},Symbol.toStringTag,{value:"Module"}));const Mo=e=>(Dn("data-v-e90d75d3"),e=e(),Bn(),e),Hp={class:"fullscreen-player__player"},qp={class:"cover"},Wp=["src"],Kp={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"},Yp={class:"track-info-text"},Xp={class:"track-name"},Gp={class:"track-artist"},Qp={class:"seek-control"},Jp={class:"time-items"},Zp={class:"time"},eh={class:"time"},th={class:"track-control"},nh={key:0,class:"bx bx-shuffle"},rh={key:1,class:"bx bx-repeat"},sh=Mo(()=>A("i",{class:"bx bx-skip-previous"},null,-1)),oh={key:0,class:"bx bx-play"},ih={key:1,class:"bx bx-pause"},ah=Mo(()=>A("i",{class:"bx bx-skip-next"},null,-1)),lh=Mo(()=>A("i",{class:"bx bx-list-plus"},null,-1)),ch={__name:"Player",setup(e){const t=Re("Player"),n=Re("PokaAPI"),r=ne(!1),s=ne(t.audioOrder);nt(s,w=>t.audioOrder=w);const o=ne(t.paused),a=ne("0:00"),i=ne(0),l=ne("0:00"),u=ne(0),f=ne(null),c=ne(!1);let d=setInterval(()=>{_()},100),p=setInterval(()=>{i.value=t.rawCurrentTime,u.value=t.rawDuration},1e3/60);async function _(){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)}_(),Gt(()=>{clearInterval(p),clearInterval(d)});function h(w){t.seek(w.target.value)}return(w,v)=>{var b,y;const T=ee("p-slider"),S=ee("p-btn"),P=ee("playlist-dialog");return N(),te(we,null,[A("div",Hp,[A("div",qp,[f.value?(N(),te("img",{key:0,src:f.value.cover,alt:"cover"},null,8,Wp)):(N(),te("img",Kp))]),A("div",Yp,[A("div",Xp,ge(((b=f.value)==null?void 0:b.name)||"PokaPlayer"),1),A("div",Gp,ge(((y=f.value)==null?void 0:y.artist)||w.$t("waitForPlay")),1)]),A("div",Qp,[U(T,{value:i.value,max:u.value,step:"0.000001",onInput:h,onChange:h},null,8,["value","max"]),A("div",Jp,[A("div",Zp,ge(a.value),1),A("div",eh,ge(l.value),1)])]),A("div",th,[U(S,{icon:"",text:"",onClick:v[0]||(v[0]=E=>s.value=s.value=="random"?"list":"random")},{default:K(()=>[s.value=="random"?(N(),te("i",nh)):Te("",!0),s.value=="list"?(N(),te("i",rh)):Te("",!0)]),_:1}),U(S,{icon:"",text:"",onClick:v[1]||(v[1]=E=>De(t).previous())},{default:K(()=>[sh]),_:1}),U(S,{icon:"",color:"primary",onClick:v[2]||(v[2]=E=>De(t).toggle())},{default:K(()=>[o.value?(N(),te("i",oh)):(N(),te("i",ih))]),_:1}),U(S,{icon:"",text:"",onClick:v[3]||(v[3]=E=>De(t).next())},{default:K(()=>[ah]),_:1}),U(S,{icon:"",text:"",onClick:v[4]||(v[4]=E=>r.value=!0)},{default:K(()=>[lh]),_:1})])]),U(P,{modelValue:r.value,"onUpdate:modelValue":v[5]||(v[5]=E=>r.value=E),item:f.value},null,8,["modelValue","item"])],64)}}},uh=Ve(ch,[["__scopeId","data-v-e90d75d3"]]),fh=Object.freeze(Object.defineProperty({__proto__:null,default:uh},Symbol.toStringTag,{value:"Module"}));const dh={},ph=e=>(Dn("data-v-a89e0edd"),e=e(),Bn(),e),hh={class:"loader","aria-label":"Loading"},mh=ph(()=>A("div",{class:"loader__spinner"},null,-1)),_h=[mh];function yh(e,t){return N(),te("div",hh,_h)}const gh=Ve(dh,[["render",yh],["__scopeId","data-v-a89e0edd"]]),vh=Object.freeze(Object.defineProperty({__proto__:null,default:gh},Symbol.toStringTag,{value:"Module"}));const bh={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 wh(e,t,n,r,s,o){return N(),le(Oo(n.href?"a":"button"),gr({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(()=>[Lt(e.$slots,"default",{},void 0,!0)]),_:3},16,["href","type","class","color"])}const Eh=Ve(bh,[["render",wh],["__scopeId","data-v-f6ac482c"]]),xh=Object.freeze(Object.defineProperty({__proto__:null,default:Eh},Symbol.toStringTag,{value:"Module"}));/*! + * vue-router v4.1.6 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const bn=typeof window<"u";function kh(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const be=Object.assign;function Ss(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 nr=()=>{},mt=Array.isArray,Th=/\/$/,Sh=e=>e.replace(Th,"");function Os(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=zh(r??t,n),{fullPath:r+(o&&"?")+o+a,path:r,query:s,hash:a}}function Oh(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function $i(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Ph(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&An(t.matched[r],n.matched[s])&&jl(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function An(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function jl(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ch(e[n],t[n]))return!1;return!0}function Ch(e,t){return mt(e)?Ni(e,t):mt(t)?Ni(t,e):e===t}function Ni(e,t){return mt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function zh(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 dr;(function(e){e.pop="pop",e.push="push"})(dr||(dr={}));var rr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(rr||(rr={}));function Ih(e){if(!e)if(bn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Sh(e)}const Lh=/^[^#]+#/;function Ah(e,t){return e.replace(Lh,"#")+t}function Rh(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 fs=()=>({left:window.pageXOffset,top:window.pageYOffset});function Mh(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=Rh(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 Fi(e,t){return(history.state?history.state.position-t:-1)+e}const Ws=new Map;function $h(e,t){Ws.set(e,t)}function Nh(e){const t=Ws.get(e);return Ws.delete(e),t}let Fh=()=>location.protocol+"//"+location.host;function Vl(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),$i(l,"")}return $i(n,e)+r+s}function Dh(e,t,n,r){let s=[],o=[],a=null;const i=({state:d})=>{const p=Vl(e,location),_=n.value,h=t.value;let w=0;if(d){if(n.value=p,t.value=d,a&&a===_){a=null;return}w=h?d.position-h.position:0}else r(p);s.forEach(v=>{v(n.value,_,{delta:w,type:dr.pop,direction:w?w>0?rr.forward:rr.back:rr.unknown})})};function l(){a=n.value}function u(d){s.push(d);const p=()=>{const _=s.indexOf(d);_>-1&&s.splice(_,1)};return o.push(p),p}function f(){const{history:d}=window;d.state&&d.replaceState(be({},d.state,{scroll:fs()}),"")}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 Di(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?fs():null}}function Bh(e){const{history:t,location:n}=window,r={value:Vl(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:Fh()+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,Di(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:fs()});o(f.current,f,!0);const c=be({},Di(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 jh(e){e=Ih(e);const t=Bh(e),n=Dh(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:Ah.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 Vh(e){return typeof e=="string"||e&&typeof e=="object"}function Ul(e){return typeof e=="string"||typeof e=="symbol"}const Ft={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hl=Symbol("");var Bi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Bi||(Bi={}));function Rn(e,t){return be(new Error,{type:e,[Hl]:!0},t)}function St(e,t){return e instanceof Error&&Hl in e&&(t==null||!!(e.type&t))}const ji="[^/]+?",Uh={sensitive:!1,strict:!1,start:!0,end:!0},Hh=/[.+*?^${}()[\]/\\]/g;function qh(e,t){const n=be({},Uh,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 Kh(e,t){let n=0;const r=e.score,s=t.score;for(;n0&&t[t.length-1]<0}const Yh={type:0,value:""},Xh=/[a-zA-Z0-9_]/;function Gh(e){if(!e)return[[]];if(e==="/")return[[Yh]];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(T)}:nr}function a(f){if(Ul(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||!ql(f,n[c]));)c++;n.splice(c,0,f),f.record.name&&!Hi(f)&&r.set(f.record.name,f)}function u(f,c){let d,p={},_,h;if("name"in f&&f.name){if(d=r.get(f.name),!d)throw Rn(1,{location:f});h=d.record.name,p=be(Ui(c.params,d.keys.filter(T=>!T.optional).map(T=>T.name)),f.params&&Ui(f.params,d.keys.map(T=>T.name))),_=d.stringify(p)}else if("path"in f)_=f.path,d=n.find(T=>T.re.test(_)),d&&(p=d.parse(_),h=d.record.name);else{if(d=c.name?r.get(c.name):n.find(T=>T.re.test(c.path)),!d)throw Rn(1,{location:f,currentLocation:c});h=d.record.name,p=be({},c.params,f.params),_=d.stringify(p)}const w=[];let v=d;for(;v;)w.unshift(v.record),v=v.parent;return{name:h,path:_,params:p,matched:w,meta:tm(w)}}return e.forEach(f=>o(f)),{addRoute:o,resolve:u,removeRoute:a,getRoutes:i,getRecordMatcher:s}}function Ui(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Zh(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:em(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 em(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 Hi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function tm(e){return e.reduce((t,n)=>be(t,n.meta),{})}function qi(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ql(e,t){return t.children.some(n=>n===e||ql(e,n))}const Wl=/#/g,nm=/&/g,rm=/\//g,sm=/=/g,om=/\?/g,Kl=/\+/g,im=/%5B/g,am=/%5D/g,Yl=/%5E/g,lm=/%60/g,Xl=/%7B/g,cm=/%7C/g,Gl=/%7D/g,um=/%20/g;function $o(e){return encodeURI(""+e).replace(cm,"|").replace(im,"[").replace(am,"]")}function fm(e){return $o(e).replace(Xl,"{").replace(Gl,"}").replace(Yl,"^")}function Ks(e){return $o(e).replace(Kl,"%2B").replace(um,"+").replace(Wl,"%23").replace(nm,"%26").replace(lm,"`").replace(Xl,"{").replace(Gl,"}").replace(Yl,"^")}function dm(e){return Ks(e).replace(sm,"%3D")}function pm(e){return $o(e).replace(Wl,"%23").replace(om,"%3F")}function hm(e){return e==null?"":pm(e).replace(rm,"%2F")}function Yr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function mm(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;so&&Ks(o)):[r&&Ks(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function _m(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 ym=Symbol(""),Ki=Symbol(""),ds=Symbol(""),No=Symbol(""),Ys=Symbol("");function Wn(){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 jt(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(Rn(4,{from:n,to:t})):c instanceof Error?i(c):Vh(c)?i(Rn(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 Ps(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(gm(i)){const u=(i.__vccOpts||i)[t];u&&s.push(jt(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=kh(u)?u.default:u;o.components[a]=f;const d=(f.__vccOpts||f)[t];return d&&jt(d,n,r,o,a)()}))}}return s}function gm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Yi(e){const t=Re(ds),n=Re(No),r=Ae(()=>t.resolve(De(e.to))),s=Ae(()=>{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(An.bind(null,f));if(d>-1)return d;const p=Xi(l[u-2]);return u>1&&Xi(f)===p&&c[c.length-1].path!==p?c.findIndex(An.bind(null,l[u-2])):d}),o=Ae(()=>s.value>-1&&wm(n.params,r.value.params)),a=Ae(()=>s.value>-1&&s.value===n.matched.length-1&&jl(n.params,r.value.params));function i(l={}){return bm(l)?t[De(e.replace)?"replace":"push"](De(e.to)).catch(nr):Promise.resolve()}return{route:r,href:Ae(()=>r.value.href),isActive:o,isExactActive:a,navigate:i}}const vm=pl({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:Yi,setup(e,{slots:t}){const n=Fn(Yi(e)),{options:r}=Re(ds),s=Ae(()=>({[Gi(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Gi(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)}}}),Ql=vm;function bm(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 wm(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 Xi(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Gi=(e,t,n)=>e??t??n,Em=pl({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Re(Ys),s=Ae(()=>e.route||r.value),o=Re(Ki,0),a=Ae(()=>{let u=De(o);const{matched:f}=s.value;let c;for(;(c=f[u])&&!c.components;)u++;return u}),i=Ae(()=>s.value.matched[a.value]);Nr(Ki,Ae(()=>a.value+1)),Nr(ym,i),Nr(Ys,s);const l=ne();return nt(()=>[l.value,i.value,e.name],([u,f,c],[d,p,_])=>{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||!An(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 Qi(n.default,{Component:d,route:u});const p=c.props[f],_=p?p===!0?u.params:typeof p=="function"?p(u):p:null,w=br(d,be({},_,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(c.instances[f]=null)},ref:l}));return Qi(n.default,{Component:w,route:u})||w}}});function Qi(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Jl=Em;function xm(e){const t=Jh(e.routes,e),n=e.parseQuery||mm,r=e.stringifyQuery||Wi,s=e.history,o=Wn(),a=Wn(),i=Wn(),l=Cu(Ft);let u=Ft;bn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Ss.bind(null,L=>""+L),c=Ss.bind(null,hm),d=Ss.bind(null,Yr);function p(L,H){let B,G;return Ul(L)?(B=t.getRecordMatcher(L),G=H):G=L,t.addRoute(G,B)}function _(L){const H=t.getRecordMatcher(L);H&&t.removeRoute(H)}function h(){return t.getRoutes().map(L=>L.record)}function w(L){return!!t.getRecordMatcher(L)}function v(L,H){if(H=be({},H||l.value),typeof L=="string"){const m=Os(n,L,H.path),g=t.resolve({path:m.path},H),C=s.createHref(m.fullPath);return be(m,g,{params:d(g.params),hash:Yr(m.hash),redirectedFrom:void 0,href:C})}let B;if("path"in L)B=be({},L,{path:Os(n,L.path,H.path).path});else{const m=be({},L.params);for(const g in m)m[g]==null&&delete m[g];B=be({},L,{params:c(L.params)}),H.params=c(H.params)}const G=t.resolve(B,H),fe=L.hash||"";G.params=f(d(G.params));const Pe=Oh(r,be({},L,{hash:fm(fe),path:G.path})),se=s.createHref(Pe);return be({fullPath:Pe,hash:fe,query:r===Wi?_m(L.query):L.query||{}},G,{redirectedFrom:void 0,href:se})}function T(L){return typeof L=="string"?Os(n,L,l.value.path):be({},L)}function S(L,H){if(u!==L)return Rn(8,{from:H,to:L})}function P(L){return E(L)}function b(L){return P(be(T(L),{replace:!0}))}function y(L){const H=L.matched[L.matched.length-1];if(H&&H.redirect){const{redirect:B}=H;let G=typeof B=="function"?B(L):B;return typeof G=="string"&&(G=G.includes("?")||G.includes("#")?G=T(G):{path:G},G.params={}),be({query:L.query,hash:L.hash,params:"path"in G?{}:L.params},G)}}function E(L,H){const B=u=v(L),G=l.value,fe=L.state,Pe=L.force,se=L.replace===!0,m=y(B);if(m)return E(be(T(m),{state:typeof m=="object"?be({},fe,m.state):fe,force:Pe,replace:se}),H||B);const g=B;g.redirectedFrom=H;let C;return!Pe&&Ph(r,G,B)&&(C=Rn(16,{to:g,from:G}),Tt(G,G,!0,!1)),(C?Promise.resolve(C):M(g,G)).catch(z=>St(z)?St(z,2)?z:Je(z):Z(z,g,G)).then(z=>{if(z){if(St(z,2))return E(be({replace:se},T(z.to),{state:typeof z.to=="object"?be({},fe,z.to.state):fe,force:Pe}),H||g)}else z=Q(g,G,!0,se,fe);return q(g,G,z),z})}function k(L,H){const B=S(L,H);return B?Promise.reject(B):Promise.resolve()}function M(L,H){let B;const[G,fe,Pe]=km(L,H);B=Ps(G.reverse(),"beforeRouteLeave",L,H);for(const m of G)m.leaveGuards.forEach(g=>{B.push(jt(g,L,H))});const se=k.bind(null,L,H);return B.push(se),vn(B).then(()=>{B=[];for(const m of o.list())B.push(jt(m,L,H));return B.push(se),vn(B)}).then(()=>{B=Ps(fe,"beforeRouteUpdate",L,H);for(const m of fe)m.updateGuards.forEach(g=>{B.push(jt(g,L,H))});return B.push(se),vn(B)}).then(()=>{B=[];for(const m of L.matched)if(m.beforeEnter&&!H.matched.includes(m))if(mt(m.beforeEnter))for(const g of m.beforeEnter)B.push(jt(g,L,H));else B.push(jt(m.beforeEnter,L,H));return B.push(se),vn(B)}).then(()=>(L.matched.forEach(m=>m.enterCallbacks={}),B=Ps(Pe,"beforeRouteEnter",L,H),B.push(se),vn(B))).then(()=>{B=[];for(const m of a.list())B.push(jt(m,L,H));return B.push(se),vn(B)}).catch(m=>St(m,8)?m:Promise.reject(m))}function q(L,H,B){for(const G of i.list())G(L,H,B)}function Q(L,H,B,G,fe){const Pe=S(L,H);if(Pe)return Pe;const se=H===Ft,m=bn?history.state:{};B&&(G||se?s.replace(L.fullPath,be({scroll:se&&m&&m.scroll},fe)):s.push(L.fullPath,fe)),l.value=L,Tt(L,H,B,se),Je()}let V;function ce(){V||(V=s.listen((L,H,B)=>{if(!_n.listening)return;const G=v(L),fe=y(G);if(fe){E(be(fe,{replace:!0}),G).catch(nr);return}u=G;const Pe=l.value;bn&&$h(Fi(Pe.fullPath,B.delta),fs()),M(G,Pe).catch(se=>St(se,12)?se:St(se,2)?(E(se.to,G).then(m=>{St(m,20)&&!B.delta&&B.type===dr.pop&&s.go(-1,!1)}).catch(nr),Promise.reject()):(B.delta&&s.go(-B.delta,!1),Z(se,G,Pe))).then(se=>{se=se||Q(G,Pe,!1),se&&(B.delta&&!St(se,8)?s.go(-B.delta,!1):B.type===dr.pop&&St(se,20)&&s.go(-1,!1)),q(G,Pe,se)}).catch(nr)}))}let Ee=Wn(),Oe=Wn(),xe;function Z(L,H,B){Je(L);const G=Oe.list();return G.length?G.forEach(fe=>fe(L,H,B)):console.error(L),Promise.reject(L)}function ae(){return xe&&l.value!==Ft?Promise.resolve():new Promise((L,H)=>{Ee.add([L,H])})}function Je(L){return xe||(xe=!L,ce(),Ee.list().forEach(([H,B])=>L?B(L):H()),Ee.reset()),L}function Tt(L,H,B,G){const{scrollBehavior:fe}=e;if(!bn||!fe)return Promise.resolve();const Pe=!B&&Nh(Fi(L.fullPath,0))||(G||!B)&&history.state&&history.state.scroll||null;return _r().then(()=>fe(L,H,Pe)).then(se=>se&&Mh(se)).catch(se=>Z(se,L,H))}const Ze=L=>s.go(L);let We;const Zt=new Set,_n={currentRoute:l,listening:!0,addRoute:p,removeRoute:_,hasRoute:w,getRoutes:h,resolve:v,options:e,push:P,replace:b,go:Ze,back:()=>Ze(-1),forward:()=>Ze(1),beforeEach:o.add,beforeResolve:a.add,afterEach:i.add,onError:Oe.add,isReady:ae,install(L){const H=this;L.component("RouterLink",Ql),L.component("RouterView",Jl),L.config.globalProperties.$router=H,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>De(l)}),bn&&!We&&l.value===Ft&&(We=!0,P(s.location).catch(fe=>{}));const B={};for(const fe in Ft)B[fe]=Ae(()=>l.value[fe]);L.provide(ds,H),L.provide(No,Fn(B)),L.provide(Ys,l);const G=L.unmount;Zt.add(L),L.unmount=function(){Zt.delete(L),Zt.size<1&&(u=Ft,V&&V(),V=null,l.value=Ft,We=!1,xe=!1),G()}}};return _n}function vn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function km(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let a=0;aAn(u,i))?r.push(i):n.push(i));const l=e.matched[a];l&&(t.matched.find(u=>An(u,l))||s.push(l))}return[n,r,s]}function Ov(){return Re(ds)}function Pv(){return Re(No)}const Tm={class:"p-card__img-container"},Sm=["src"],Om={key:1,class:"p-card__icon"},Pm={class:"p-card__source"},Cm={class:"p-card__content"},zm={class:"p-card__title"},Im={class:"p-card__description"},Lm={__name:"Card",props:{imgSrc:String,title:String,description:String,source:String,to:String,icon:String},setup(e){return(t,n)=>(N(),le(Oo(e.to?"RouterLink":"div"),{class:"p-card",to:e.to},{default:K(()=>[A("div",Tm,[e.imgSrc?(N(),te("img",{key:0,class:"p-card__img",src:e.imgSrc,loading:"lazy"},null,8,Sm)):Te("",!0),e.icon?(N(),te("div",Om,[A("i",{class:at(e.icon)},null,2)])):Te("",!0),A("div",Pm,ge(e.source),1)]),A("div",Cm,[A("div",zm,ge(e.title),1),A("div",Im,ge(e.description),1)])]),_:1},8,["to"]))}},Am=Ve(Lm,[["__scopeId","data-v-b94b0d0e"]]),Rm=Object.freeze(Object.defineProperty({__proto__:null,default:Am},Symbol.toStringTag,{value:"Module"}));const Mm={},$m={class:"p-cards"};function Nm(e,t){return N(),te("div",$m,[Lt(e.$slots,"default",{},void 0,!0)])}const Fm=Ve(Mm,[["render",Nm],["__scopeId","data-v-12104c8c"]]),Dm=Object.freeze(Object.defineProperty({__proto__:null,default:Fm},Symbol.toStringTag,{value:"Module"}));const Bm={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)}}}},jm=["for"],Vm={class:"p-input__label-text"},Um=["id","type"];function Hm(e,t,n,r,s,o){return N(),te("div",{class:at(["p-input",{value:o.value.length}])},[A("label",{class:"p-input__label",for:s.randomInputId},[A("span",Vm,ge(n.label),1)],8,jm),_l(A("input",gr({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,Um),[[dd,o.value]])],2)}const qm=Ve(Bm,[["render",Hm],["__scopeId","data-v-e4c17f47"]]),Wm=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"}));const Km={class:"p-list-item__content"},Ym={class:"p-list-item__actions"},Xm={__name:"Item",props:{to:String,active:{type:Boolean,default:!1}},setup(e){return(t,n)=>(N(),le(Oo(e.to?De(Ql):"div"),{class:at(["p-list-item",{active:e.active}]),to:e.to},{default:K(()=>[A("div",Km,[Lt(t.$slots,"default")]),A("div",Ym,[Lt(t.$slots,"actions")])]),_:3},8,["to","class"]))}},Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Xm},Symbol.toStringTag,{value:"Module"})),Qm={class:"p-list-item__content-content"},Jm={class:"p-list-item__content-title"},Zm={class:"p-list-item__content-description"},e_={__name:"ItemContent",props:{title:String,description:String},setup(e){return(t,n)=>(N(),te("div",Qm,[A("div",Jm,ge(e.title),1),A("div",Zm,ge(e.description),1)]))}},t_=Object.freeze(Object.defineProperty({__proto__:null,default:e_},Symbol.toStringTag,{value:"Module"})),n_={},r_={class:"p-list-item__icon-btn"};function s_(e,t){return N(),te("button",r_,[Lt(e.$slots,"default")])}const o_=Ve(n_,[["render",s_]]),i_=Object.freeze(Object.defineProperty({__proto__:null,default:o_},Symbol.toStringTag,{value:"Module"})),a_={class:"p-list-item__img"},l_=["src","alt"],c_={__name:"ItemImg",props:{src:String,alt:String},setup(e){return(t,n)=>(N(),te("div",a_,[A("img",{src:e.src,alt:e.alt,loading:"lazy"},null,8,l_)]))}},u_=Object.freeze(Object.defineProperty({__proto__:null,default:c_},Symbol.toStringTag,{value:"Module"}));const f_={__name:"Items",props:{singleRow:Boolean},setup(e){return(t,n)=>(N(),te("div",{class:at(["p-list-items",{"single-row":e.singleRow}])},[Lt(t.$slots,"default",{},void 0,!0)],2))}},d_=Ve(f_,[["__scopeId","data-v-c0affab2"]]),p_=Object.freeze(Object.defineProperty({__proto__:null,default:d_},Symbol.toStringTag,{value:"Module"}));const h_={name:"PokaTextInput",props:["modelValue"],computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}},m_={class:"p-select"};function __(e,t,n,r,s,o){return N(),te("div",m_,[_l(A("select",gr({"onUpdate:modelValue":t[0]||(t[0]=a=>o.value=a)},e.$attrs),[Lt(e.$slots,"default",{},void 0,!0)],16),[[Al,o.value]])])}const y_=Ve(h_,[["render",__],["__scopeId","data-v-393de3cf"]]),g_=Object.freeze(Object.defineProperty({__proto__:null,default:y_},Symbol.toStringTag,{value:"Module"}));const v_=["min","max","value"],b_={__name:"Slider",props:{min:{type:Number},max:{type:Number},value:{type:Number}},setup(e){const t=e,n=Ae(()=>t.value/t.max*100||0);return(r,s)=>(N(),te("input",gr({type:"range",min:e.min,max:e.max,value:e.value,style:`--value-in-percent: ${De(n)}%`},r.$attrs),null,16,v_))}},w_=Ve(b_,[["__scopeId","data-v-1aeaf1ae"]]),E_=Object.freeze(Object.defineProperty({__proto__:null,default:w_},Symbol.toStringTag,{value:"Module"})),x_={__name:"Albums",props:{items:Array},setup(e){return(t,n)=>{const r=ee("p-card"),s=ee("p-cards");return N(),le(s,null,{default:K(()=>[(N(!0),te(we,null,It(e.items,o=>(N(),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})}}},k_=Object.freeze(Object.defineProperty({__proto__:null,default:x_},Symbol.toStringTag,{value:"Module"})),T_={__name:"Artists",props:{items:Array,type:{type:String,default:"artists"}},setup(e){return(t,n)=>{const r=ee("p-card"),s=ee("p-cards");return N(),le(s,null,{default:K(()=>[(N(!0),te(we,null,It(e.items,o=>(N(),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})}}},S_=Object.freeze(Object.defineProperty({__proto__:null,default:T_},Symbol.toStringTag,{value:"Module"}));const O_={class:"home-item"},P_={class:"home-item__header"},C_={class:"home-item__title"},z_={class:"home-item__type"},I_={__name:"Home",props:{items:Array},setup(e){return(t,n)=>{const r=ee("parse-albums"),s=ee("parse-playlists"),o=ee("parse-artists");return N(!0),te(we,null,It(e.items,a=>(N(),te(we,null,[(N(!0),te(we,null,It(Object.entries(a).filter(([i,l])=>!["title","source","icon"].includes(i)&&l.length),([i,l])=>(N(),te("div",O_,[A("div",P_,[A("h3",C_,ge(t.$t(`home.${a.title}`)),1),A("p",z_,ge(t.$t(`nav.${i}`)),1)]),i=="albums"?(N(),le(r,{key:0,items:l},null,8,["items"])):Te("",!0),i=="playlists"?(N(),le(s,{key:1,items:l},null,8,["items"])):Te("",!0),["composers","artists"].includes(i)?(N(),le(o,{key:2,items:l,type:i},null,8,["items","type"])):Te("",!0)]))),256))],64))),256)}}},L_=Ve(I_,[["__scopeId","data-v-1ec0bd1f"]]),A_=Object.freeze(Object.defineProperty({__proto__:null,default:L_},Symbol.toStringTag,{value:"Module"})),R_={__name:"Playlists",props:{items:Array},setup(e){return(t,n)=>{const r=ee("p-card"),s=ee("p-cards");return N(),le(s,null,{default:K(()=>[(N(!0),te(we,null,It(e.items,o=>(N(),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})}}},M_=Object.freeze(Object.defineProperty({__proto__:null,default:R_},Symbol.toStringTag,{value:"Module"})),$_=A("i",{class:"bx bx-plus"},null,-1),N_={__name:"Songs",props:{items:{type:Array,default:()=>[]},currentIndex:{type:Number,default:-1}},setup(e){const t=e,n=Re("Player"),r=ne(null),s=ne(!1);function o(a){n.addSongs({songs:t.items,index:a})}return(a,i)=>{const l=ee("p-list-item-img"),u=ee("p-list-item-content"),f=ee("p-list-item-icon-btn"),c=ee("p-list-item"),d=ee("p-list-items"),p=ee("song-dialog");return N(),te(we,null,[e.items.length?(N(),le(d,{key:0,singleRow:e.currentIndex!=-1},{default:K(()=>[(N(!0),te(we,null,It(e.items,(_,h)=>(N(),le(c,{onClick:w=>o(h),onKeydown:Ml(w=>o(h),["enter"]),active:h==e.currentIndex,"data-index":h,tabindex:0,onContextmenu:Kr(w=>{r.value=_,s.value=!0},["prevent"])},{actions:K(()=>[e.currentIndex==-1?(N(),le(f,{key:0,onClick:Kr(w=>De(n).addSongs({songs:[_],clear:!1}),["stop"])},{default:K(()=>[$_]),_:2},1032,["onClick"])):Te("",!0)]),default:K(()=>[U(l,{src:_.cover},null,8,["src"]),U(u,{title:_.name,description:_.artist},null,8,["title","description"])]),_:2},1032,["onClick","onKeydown","active","data-index","onContextmenu"]))),256))]),_:1},8,["singleRow"])):Te("",!0),U(p,{modelValue:s.value,"onUpdate:modelValue":i[0]||(i[0]=_=>s.value=_),item:r.value},null,8,["modelValue","item"])],64)}}},F_=Object.freeze(Object.defineProperty({__proto__:null,default:N_},Symbol.toStringTag,{value:"Module"})),D_=A("i",{class:"bx bx-loader bx-spin"},null,-1),B_=A("i",{class:"bx bxs-pin"},null,-1),j_=A("i",{class:"bx bxs-pin"},null,-1),V_={__name:"PinBtn",props:{source:String,id:String,name:String,cover:String,artist:String,type:String},setup(e){const t=e,n=ne(!1),r=ne(!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 Xt(async()=>{await o()}),(l,u)=>{const f=ee("p-btn");return r.value?(N(),le(f,{key:0,outline:""},{default:K(()=>[D_,qt(ge(l.$t("pin.loading")),1)]),_:1})):n.value?(N(),le(f,{key:1,outline:"",onClick:i},{default:K(()=>[B_,qt(ge(l.$t("pin.unpin")),1)]),_:1})):(N(),le(f,{key:2,onClick:a},{default:K(()=>[j_,qt(ge(l.$t("pin.pin")),1)]),_:1}))}}},U_=Object.freeze(Object.defineProperty({__proto__:null,default:V_},Symbol.toStringTag,{value:"Module"})),H_={style:{"margin-bottom":"calc(var(--padding) * 2)"}},q_={key:0,class:"bx bxs-checkbox-checked"},W_={key:1,class:"bx bx-checkbox"},K_={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},Y_={__name:"PlaylistDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Re("PokaAPI"),s=Ae(()=>{var f;return((f=n.item)==null?void 0:f.originalObject)||n.item}),o=Ae({get(){return!!n.modelValue},set(){t("update:modelValue",null)}}),a=ne(null),i=ne(!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 Xt(()=>{s.value&&l()}),nt(s,()=>{l()}),(f,c)=>{const d=ee("Loader"),p=ee("p-list-item-icon-btn"),_=ee("p-list-item-content"),h=ee("p-list-item"),w=ee("p-list-items"),v=ee("p-btn"),T=ee("Dialog");return N(),le(T,{modelValue:De(o),"onUpdate:modelValue":c[1]||(c[1]=S=>Ie(o)?o.value=S:null),"max-width":"400px"},{default:K(()=>[A("h3",H_,ge(f.$t("songDialog.addToPlaylist")),1),a.value===null?(N(),le(d,{key:0,style:{"margin-top":"calc(var(--padding) * 2)"}})):Te("",!0),U(w,{"single-row":""},{default:K(()=>[(N(!0),te(we,null,It(a.value,S=>(N(),le(h,{tabindex:"0",onClick:P=>u(S.id)},{default:K(()=>[U(p,null,{default:K(()=>[S.exist?(N(),te("i",q_)):(N(),te("i",W_))]),_:2},1024),U(_,{title:S.name},null,8,["title"])]),_:2},1032,["onClick"]))),256))]),_:1}),A("div",K_,[U(v,{onClick:c[0]||(c[0]=S=>o.value=!1),color:"primary"},{default:K(()=>[qt(ge(f.$t("close")),1)]),_:1})])]),_:1},8,["modelValue"])}}},X_=Object.freeze(Object.defineProperty({__proto__:null,default:Y_},Symbol.toStringTag,{value:"Module"}));const Rt=e=>(Dn("data-v-52a80f23"),e=e(),Bn(),e),G_={class:"song-info-dialog-content"},Q_=["src"],J_={class:"info"},Z_={class:"name"},ey={class:"artist"},ty=Rt(()=>A("i",{class:"bx bx-list-plus"},null,-1)),ny=Rt(()=>A("i",{class:"bx bx-microphone"},null,-1)),ry=Rt(()=>A("i",{class:"bx bx-right-arrow-alt"},null,-1)),sy=Rt(()=>A("i",{class:"nav-item-icon bx bx-album"},null,-1)),oy=Rt(()=>A("i",{class:"bx bx-right-arrow-alt"},null,-1)),iy=Rt(()=>A("i",{class:"bx bx-file-blank"},null,-1)),ay=Rt(()=>A("i",{class:"bx bx-time"},null,-1)),ly=Rt(()=>A("i",{class:"bx bx-data"},null,-1)),cy=Rt(()=>A("i",{class:"bx bx-tag"},null,-1)),uy={style:{display:"flex","justify-content":"flex-end","margin-top":"var(--padding)"}},fy={__name:"SongDialog",props:{modelValue:Boolean,item:Object},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Ro(),{show:s}=Ao(r),o=Ae({get(){return n.modelValue},set(){t("update:modelValue",null)}}),a=ne(!1);function i(){s.value=!1,o.value=!1}return(l,u)=>{const f=ee("p-list-item-icon-btn"),c=ee("p-list-item-content"),d=ee("p-list-item"),p=ee("p-list-items"),_=ee("p-btn"),h=ee("Dialog"),w=ee("playlist-dialog");return N(),te(we,null,[U(h,{modelValue:De(o),"onUpdate:modelValue":u[4]||(u[4]=v=>Ie(o)?o.value=v:null),"max-width":"400px"},{default:K(()=>[A("div",G_,[A("img",{src:e.item.cover,class:"cover"},null,8,Q_),A("div",J_,[A("div",Z_,ge(e.item.name),1),A("div",ey,ge(e.item.artist),1)]),U(p,{"single-row":""},{default:K(()=>[U(d,{onClick:u[0]||(u[0]=v=>a.value=!0),tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[ty]),_:1}),U(c,{title:l.$t("songDialog.addToPlaylist")},null,8,["title"])]),_:1}),U(d,{to:e.item.artistId?`/artist/${e.item.source}/${e.item.artistId}`:void 0,onClick:u[1]||(u[1]=v=>e.item.artistId&&i()),tabindex:"0"},{actions:K(()=>[e.item.artistId?(N(),le(f,{key:0},{default:K(()=>[ry]),_:1})):Te("",!0)]),default:K(()=>[U(f,null,{default:K(()=>[ny]),_:1}),U(c,{title:e.item.artist,description:l.$t("nav.artists")},null,8,["title","description"])]),_:1},8,["to"]),U(d,{to:e.item.albumId?`/album/${e.item.source}/${e.item.albumId}`:void 0,onClick:u[2]||(u[2]=v=>e.item.albumId&&i()),tabindex:"0"},{actions:K(()=>[e.item.albumId?(N(),le(f,{key:0},{default:K(()=>[oy]),_:1})):Te("",!0)]),default:K(()=>[U(f,null,{default:K(()=>[sy]),_:1}),U(c,{title:e.item.album,description:l.$t("nav.albums")},null,8,["title","description"])]),_:1},8,["to"]),e.item.codec&&e.item.bitrate?(N(),le(d,{key:0,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[iy]),_:1}),U(c,{title:`${e.item.codec.toUpperCase()} ${e.item.bitrate/1e3}k`,description:l.$t("songDialog.codec")},null,8,["title","description"])]),_:1})):Te("",!0),e.item.year?(N(),le(d,{key:1,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[ay]),_:1}),U(c,{title:e.item.year.toString(),description:l.$t("songDialog.year")},null,8,["title","description"])]),_:1})):Te("",!0),e.item.source?(N(),le(d,{key:2,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[ly]),_:1}),U(c,{title:l.$t(`source.${e.item.source}`),description:l.$t("songDialog.source")},null,8,["title","description"])]),_:1})):Te("",!0),e.item.id?(N(),le(d,{key:3,tabindex:"0"},{default:K(()=>[U(f,null,{default:K(()=>[cy]),_:1}),U(c,{title:e.item.id,description:l.$t("songDialog.id")},null,8,["title","description"])]),_:1})):Te("",!0)]),_:1}),A("div",uy,[U(_,{onClick:u[3]||(u[3]=v=>o.value=!1),color:"primary"},{default:K(()=>[qt(ge(l.$t("close")),1)]),_:1})])])]),_:1},8,["modelValue"]),U(w,{modelValue:a.value,"onUpdate:modelValue":u[5]||(u[5]=v=>a.value=v),item:e.item},null,8,["modelValue","item"])],64)}}},dy=Ve(fy,[["__scopeId","data-v-52a80f23"]]),py=Object.freeze(Object.defineProperty({__proto__:null,default:dy},Symbol.toStringTag,{value:"Module"}));/*! + * shared v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const Xs=typeof window<"u",hy=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Qt=e=>hy?Symbol(e):e,my=(e,t,n)=>_y({l:e,k:t,s:n}),_y=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),je=e=>typeof e=="number"&&isFinite(e),yy=e=>Bo(e)==="[object Date]",Xr=e=>Bo(e)==="[object RegExp]",ps=e=>_e(e)&&Object.keys(e).length===0;function gy(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Xe=Object.assign;let Ji;const Fo=()=>Ji||(Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Zi(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const vy=Object.prototype.hasOwnProperty;function Do(e,t){return vy.call(e,t)}const Ne=Array.isArray,Ue=e=>typeof e=="function",Y=e=>typeof e=="string",Me=e=>typeof e=="boolean",Se=e=>e!==null&&typeof e=="object",Zl=Object.prototype.toString,Bo=e=>Zl.call(e),_e=e=>Bo(e)==="[object Object]",by=e=>e==null?"":Ne(e)||_e(e)&&e.toString===Zl?JSON.stringify(e,null,2):String(e);/*! + * message-compiler v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const ec={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 tc(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}/*! + * devtools-if v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const nc={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! + * core-base v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */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 wy=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ey(e){return wy.test(e)}function xy(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 ky(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 Ty(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Ey(t)?xy(t):"*"+t}function Sy(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=Ty(a),a===!1))return!1;d[1]()}};function p(){const _=e[n+1];if(r===5&&_==="'"||r===6&&_==='"')return n++,i="\\"+_,d[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=ky(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 ea=new Map;function Oy(e,t){return Se(e)?e[t]:null}function Py(e,t){if(!Se(e))return null;let n=ea.get(t);if(n||(n=Sy(t),n&&ea.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;oe,zy=e=>"",Iy="text",Ly=e=>e.length===0?"":e.join(""),Ay=by;function ta(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ry(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 My(e,t){t.count||(t.count=e),t.n||(t.n=e)}function $y(e={}){const t=e.locale,n=Ry(e),r=Se(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?e.pluralRules[t]:ta,s=Se(e.pluralRules)&&Y(t)&&Ue(e.pluralRules[t])?ta:void 0,o=v=>v[r(n,v.length,s)],a=e.list||[],i=v=>a[v],l=e.named||{};je(e.pluralIndex)&&My(n,l);const u=v=>l[v];function f(v){const T=Ue(e.messages)?e.messages(v):Se(e.messages)?e.messages[v]:!1;return T||(e.parent?e.parent.message(v):zy)}const c=v=>e.modifiers?e.modifiers[v]:Cy,d=_e(e.processor)&&Ue(e.processor.normalize)?e.processor.normalize:Ly,p=_e(e.processor)&&Ue(e.processor.interpolate)?e.processor.interpolate:Ay,_=_e(e.processor)&&Y(e.processor.type)?e.processor.type:Iy,w={list:i,named:u,plural:o,linked:(v,...T)=>{const[S,P]=T;let b="text",y="";T.length===1?Se(S)?(y=S.modifier||y,b=S.type||b):Y(S)&&(y=S||y):T.length===2&&(Y(S)&&(y=S||y),Y(P)&&(b=P||b));let E=f(v)(w);return b==="vnode"&&Ne(E)&&y&&(E=E[0]),y?c(y)(E,b):E},message:f,type:_,interpolate:p,normalize:d};return w}let pr=null;function Ny(e){pr=e}function Fy(e,t,n){pr&&pr.emit(nc.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Dy=By(nc.FunctionTranslate);function By(e){return t=>pr&&pr.emit(e,t)}const jy={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 Vy(e,t,n){return[...new Set([n,...Ne(t)?t:Se(t)?Object.keys(t):Y(t)?[t]:[n]])]}function rc(e,t,n){const r=Y(n)?n:jo,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let a=[n];for(;Ne(a);)a=na(o,a,t);const i=Ne(t)||!_e(t)?t:t.default?t.default:null;a=Y(i)?[i]:i,Ne(a)&&na(o,a,!1),s.__localeChainCache.set(r,o)}return o}function na(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Wy(){return{upper:(e,t)=>t==="text"&&Y(e)?e.toUpperCase():t==="vnode"&&Se(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Y(e)?e.toLowerCase():t==="vnode"&&Se(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Y(e)?sa(e):t==="vnode"&&Se(e)&&"__v_isVNode"in e?sa(e.children):e}}let Ky,sc;function Yy(e){sc=e}let oc;function Xy(e){oc=e}let ic=null;const oa=e=>{ic=e},Gy=()=>ic;let ac=null;const ia=e=>{ac=e},Qy=()=>ac;let aa=0;function Jy(e={}){const t=Y(e.version)?e.version:qy,n=Y(e.locale)?e.locale:jo,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||{},Wy()),l=e.pluralRules||{},u=Ue(e.missing)?e.missing:null,f=Me(e.missingWarn)||Xr(e.missingWarn)?e.missingWarn:!0,c=Me(e.fallbackWarn)||Xr(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,p=!!e.unresolving,_=Ue(e.postTranslation)?e.postTranslation:null,h=_e(e.processor)?e.processor:null,w=Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,T=Ue(e.messageCompiler)?e.messageCompiler:Ky,S=Ue(e.messageResolver)?e.messageResolver:sc||Oy,P=Ue(e.localeFallbacker)?e.localeFallbacker:oc||Vy,b=Se(e.fallbackContext)?e.fallbackContext:void 0,y=Ue(e.onWarn)?e.onWarn:gy,E=e,k=Se(E.__datetimeFormatters)?E.__datetimeFormatters:new Map,M=Se(E.__numberFormatters)?E.__numberFormatters:new Map,q=Se(E.__meta)?E.__meta:{};aa++;const Q={version:t,cid:aa,locale:n,fallbackLocale:r,messages:s,modifiers:i,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:c,fallbackFormat:d,unresolving:p,postTranslation:_,processor:h,warnHtmlMessage:w,escapeParameter:v,messageCompiler:T,messageResolver:S,localeFallbacker:P,fallbackContext:b,onWarn:y,__meta:q};return Q.datetimeFormats=o,Q.numberFormats=a,Q.__datetimeFormatters=k,Q.__numberFormatters=M,__INTLIFY_PROD_DEVTOOLS__&&Fy(Q,t,q),Q}function Vo(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 Kn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let lc=ec.__EXTEND_POINT__;const Cs=()=>++lc,wn={INVALID_ARGUMENT:lc,INVALID_DATE_ARGUMENT:Cs(),INVALID_ISO_DATE_ARGUMENT:Cs(),__EXTEND_POINT__:Cs()};function En(e){return tc(e,null,void 0)}const la=()=>"",bt=e=>Ue(e);function ca(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:a,messages:i}=e,[l,u]=Gs(...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,_=Y(u.default)||Me(u.default)?Me(u.default)?o?l:()=>l:u.default:n?o?l:()=>l:"",h=n||_!=="",w=Y(u.locale)?u.locale:e.locale;d&&Zy(u);let[v,T,S]=p?[l,w,i[w]||{}]:cc(e,l,w,a,c,f),P=v,b=l;if(!p&&!(Y(P)||bt(P))&&h&&(P=_,b=P),!p&&(!(Y(P)||bt(P))||!Y(T)))return s?hs:l;let y=!1;const E=()=>{y=!0},k=bt(P)?P:uc(e,l,T,P,b,E);if(y)return P;const M=ng(e,T,S,u),q=$y(M),Q=eg(e,k,q),V=r?r(Q,l):Q;if(__INTLIFY_PROD_DEVTOOLS__){const ce={timestamp:Date.now(),key:Y(l)?l:bt(P)?P.key:"",locale:T||(bt(P)?P.locale:""),format:Y(P)?P:bt(P)?P.source:"",message:V};ce.meta=Xe({},e.__meta,Gy()||{}),Dy(ce)}return V}function Zy(e){Ne(e.list)?e.list=e.list.map(t=>Y(t)?Zi(t):t):Se(e.named)&&Object.keys(e.named).forEach(t=>{Y(e.named[t])&&(e.named[t]=Zi(e.named[t]))})}function cc(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 _="translate";for(let h=0;hr;return u.locale=n,u.key=t,u}const l=a(r,tg(e,n,s,r,i,o));return l.locale=n,l.key=t,l.source=r,l}function eg(e,t,n){return t(n)}function Gs(...e){const[t,n,r]=e,s={};if(!Y(t)&&!je(t)&&!bt(t))throw En(wn.INVALID_ARGUMENT);const o=je(t)?String(t):(bt(t),t);return je(n)?s.plural=n:Y(n)?s.default=n:_e(n)&&!ps(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 tg(e,t,n,r,s,o){return{warnHtmlMessage:s,onError:a=>{throw o&&o(a),a},onCacheKey:a=>my(t,n,a)}}function ng(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 _=a(n,p);if(_==null&&f){const[,,h]=cc(f,p,t,i,l,u);_=a(h,p)}if(Y(_)){let h=!1;const v=uc(e,p,t,_,p,()=>{h=!0});return h?la:v}else return bt(_)?_:la}};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 ua(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__datetimeFormatters:i}=e,[l,u,f,c]=Qs(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,_=Y(f.locale)?f.locale:e.locale,h=a(e,s,_);if(!Y(l)||l==="")return new Intl.DateTimeFormat(_,c).format(u);let w={},v,T=null;const S="datetime format";for(let y=0;y{fc.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 fa(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;r.__datetimeFormatters.has(o)&&r.__datetimeFormatters.delete(o)}}function da(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:a}=e,{__numberFormatters:i}=e,[l,u,f,c]=Js(...t),d=Me(f.missingWarn)?f.missingWarn:e.missingWarn;Me(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,_=Y(f.locale)?f.locale:e.locale,h=a(e,s,_);if(!Y(l)||l==="")return new Intl.NumberFormat(_,c).format(u);let w={},v,T=null;const S="number format";for(let y=0;y{dc.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"&&(Fo().__INTLIFY_PROD_DEVTOOLS__=!1);/*! + * vue-i18n v9.2.2 + * (c) 2022 kazuya kawaguchi + * Released under the MIT License. + */const rg="9.2.2";function sg(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Fo().__INTLIFY_PROD_DEVTOOLS__=!1)}jy.__EXTEND_POINT__;let pc=ec.__EXTEND_POINT__;const Ge=()=>++pc,st={UNEXPECTED_RETURN_TYPE:pc,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 tc(e,null,void 0)}const Zs=Qt("__transrateVNode"),eo=Qt("__datetimeParts"),to=Qt("__numberParts"),og=Qt("__setPluralRules");Qt("__intlifyMeta");const ig=Qt("__injectWithOption");function no(e){if(!Se(e))return e;for(const t in e)if(Do(e,t))if(!t.includes("."))Se(e[t])&&no(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]||{},sr(u,a[l])):sr(u,a)}else Y(i)&&sr(JSON.parse(i),a)}),s==null&&o)for(const i in a)Do(a,i)&&no(a[i]);return a}const Lr=e=>!Se(e)||Ne(e);function sr(e,t){if(Lr(e)||Lr(t))throw ut(st.INVALID_VALUE);for(const n in e)Do(e,n)&&(Lr(e[n])||Lr(t[n])?t[n]=e[n]:sr(e[n],t[n]))}function mc(e){return e.type}function ag(e,t,n){let r=Se(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=hc(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Se(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(Se(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function ha(e){return U(yr,null,e,0)}const ma="__INTLIFY_META__";let _a=0;function ya(e){return(t,n,r,s)=>e(n,r,vr()||void 0,s)}const lg=()=>{const e=vr();let t=null;return e&&(t=mc(e)[ma])?{[ma]:t}:null};function _c(e={},t){const{__root:n}=e,r=n===void 0;let s=Me(e.inheritLocale)?e.inheritLocale:!0;const o=ne(n&&s?n.locale.value:Y(e.locale)?e.locale:jo),a=ne(n&&s?n.fallbackLocale.value:Y(e.fallbackLocale)||Ne(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o.value),i=ne(hc(o.value,e)),l=ne(_e(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),u=ne(_e(e.numberFormats)?e.numberFormats:{[o.value]:{}});let f=n?n.missingWarn:Me(e.missingWarn)||Xr(e.missingWarn)?e.missingWarn:!0,c=n?n.fallbackWarn:Me(e.fallbackWarn)||Xr(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:Me(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,_=Ue(e.missing)?e.missing:null,h=Ue(e.missing)?ya(e.missing):null,w=Ue(e.postTranslation)?e.postTranslation:null,v=n?n.warnHtmlMessage:Me(e.warnHtmlMessage)?e.warnHtmlMessage:!0,T=!!e.escapeParameter;const S=n?n.modifiers:_e(e.modifiers)?e.modifiers:{};let P=e.pluralRules||n&&n.pluralRules,b;b=(()=>{r&&ia(null);const x={version:rg,locale:o.value,fallbackLocale:a.value,messages:i.value,modifiers:S,pluralRules:P,missing:h===null?void 0:h,missingWarn:f,fallbackWarn:c,fallbackFormat:p,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:v,escapeParameter:T,messageResolver:e.messageResolver,__meta:{framework:"vue"}};x.datetimeFormats=l.value,x.numberFormats=u.value,x.__datetimeFormatters=_e(b)?b.__datetimeFormatters:void 0,x.__numberFormatters=_e(b)?b.__numberFormatters:void 0;const O=Jy(x);return r&&ia(O),O})(),Kn(b,o.value,a.value);function E(){return[o.value,a.value,i.value,l.value,u.value]}const k=Ae({get:()=>o.value,set:x=>{o.value=x,b.locale=o.value}}),M=Ae({get:()=>a.value,set:x=>{a.value=x,b.fallbackLocale=a.value,Kn(b,o.value,x)}}),q=Ae(()=>i.value),Q=Ae(()=>l.value),V=Ae(()=>u.value);function ce(){return Ue(w)?w:null}function Ee(x){w=x,b.postTranslation=x}function Oe(){return _}function xe(x){x!==null&&(h=ya(x)),_=x,b.missing=h}const Z=(x,O,W,X,oe,ve)=>{E();let de;if(__INTLIFY_PROD_DEVTOOLS__)try{oa(lg()),r||(b.fallbackContext=n?Qy():void 0),de=x(b)}finally{oa(null),r||(b.fallbackContext=void 0)}else de=x(b);if(je(de)&&de===hs){const[Le,ot]=O();return n&&d?X(n):oe(Le)}else{if(ve(de))return de;throw ut(st.UNEXPECTED_RETURN_TYPE)}};function ae(...x){return Z(O=>Reflect.apply(ca,null,[O,...x]),()=>Gs(...x),"translate",O=>Reflect.apply(O.t,O,[...x]),O=>O,O=>Y(O))}function Je(...x){const[O,W,X]=x;if(X&&!Se(X))throw ut(st.INVALID_ARGUMENT);return ae(O,W,Xe({resolvedMessage:!0},X||{}))}function Tt(...x){return Z(O=>Reflect.apply(ua,null,[O,...x]),()=>Qs(...x),"datetime format",O=>Reflect.apply(O.d,O,[...x]),()=>ra,O=>Y(O))}function Ze(...x){return Z(O=>Reflect.apply(da,null,[O,...x]),()=>Js(...x),"number format",O=>Reflect.apply(O.n,O,[...x]),()=>ra,O=>Y(O))}function We(x){return x.map(O=>Y(O)||je(O)||Me(O)?ha(String(O)):O)}const _n={normalize:We,interpolate:x=>x,type:"vnode"};function L(...x){return Z(O=>{let W;const X=O;try{X.processor=_n,W=Reflect.apply(ca,null,[X,...x])}finally{X.processor=null}return W},()=>Gs(...x),"translate",O=>O[Zs](...x),O=>[ha(O)],O=>Ne(O))}function H(...x){return Z(O=>Reflect.apply(da,null,[O,...x]),()=>Js(...x),"number format",O=>O[to](...x),()=>[],O=>Y(O)||Ne(O))}function B(...x){return Z(O=>Reflect.apply(ua,null,[O,...x]),()=>Qs(...x),"datetime format",O=>O[eo](...x),()=>[],O=>Y(O)||Ne(O))}function G(x){P=x,b.pluralRules=P}function fe(x,O){const W=Y(O)?O:o.value,X=m(W);return b.messageResolver(X,x)!==null}function Pe(x){let O=null;const W=rc(b,a.value,o.value);for(let X=0;X{s&&(o.value=x,b.locale=x,Kn(b,o.value,a.value))}),nt(n.fallbackLocale,x=>{s&&(a.value=x,b.fallbackLocale=x,Kn(b,o.value,a.value))}));const I={id:_a,locale:k,fallbackLocale:M,get inheritLocale(){return s},set inheritLocale(x){s=x,x&&n&&(o.value=n.locale.value,a.value=n.fallbackLocale.value,Kn(b,o.value,a.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:q,get modifiers(){return S},get pluralRules(){return P||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(x){f=x,b.missingWarn=f},get fallbackWarn(){return c},set fallbackWarn(x){c=x,b.fallbackWarn=c},get fallbackRoot(){return d},set fallbackRoot(x){d=x},get fallbackFormat(){return p},set fallbackFormat(x){p=x,b.fallbackFormat=p},get warnHtmlMessage(){return v},set warnHtmlMessage(x){v=x,b.warnHtmlMessage=x},get escapeParameter(){return T},set escapeParameter(x){T=x,b.escapeParameter=x},t:ae,getLocaleMessage:m,setLocaleMessage:g,mergeLocaleMessage:C,getPostTranslationHandler:ce,setPostTranslationHandler:Ee,getMissingHandler:Oe,setMissingHandler:xe,[og]:G};return I.datetimeFormats=Q,I.numberFormats=V,I.rt=Je,I.te=fe,I.tm=se,I.d=Tt,I.n=Ze,I.getDateTimeFormat=z,I.setDateTimeFormat=R,I.mergeDateTimeFormat=F,I.getNumberFormat=j,I.setNumberFormat=$,I.mergeNumberFormat=D,I[ig]=e.__injectWithOption,I[Zs]=L,I[eo]=B,I[to]=H,I}const Uo={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function cg({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 yc(e){return we}const ga={name:"i18n-t",props:Xe({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>je(e)||!isNaN(e)}},Uo),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Ho({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=cg(t,o),l=s[Zs](e.keypath,i,a),u=Xe({},r),f=Y(e.tag)||Se(e.tag)?e.tag:yc();return br(f,u,l)}}};function ug(e){return Ne(e)&&!Y(e[0])}function gc(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:Se(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 _=s[d.type],h=_?_({[d.type]:d.value,index:p,parts:l}):[d.value];return ug(h)&&(h[0].key=`${d.type}-${p}`),h}):Y(l)&&(u=[l]);const f=Xe({},o),c=Y(e.tag)||Se(e.tag)?e.tag:yc();return br(c,f,u)}}const va={name:"i18n-n",props:Xe({value:{type:Number,required:!0},format:{type:[String,Object]}},Uo),setup(e,t){const n=e.i18n||Ho({useScope:"parent",__useComponent:!0});return gc(e,t,dc,(...r)=>n[to](...r))}},ba={name:"i18n-d",props:Xe({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Uo),setup(e,t){const n=e.i18n||Ho({useScope:"parent",__useComponent:!0});return gc(e,t,fc,(...r)=>n[eo](...r))}};function fg(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 dg(e){const t=a=>{const{instance:i,modifiers:l,value:u}=a;if(!i||!i.$)throw ut(st.UNEXPECTED_ERROR);const f=fg(e,i.$),c=wa(u);return[Reflect.apply(f.t,f,[...Ea(c)]),f]};return{created:(a,i)=>{const[l,u]=t(i);Xs&&e.global===u&&(a.__i18nWatcher=nt(u.locale,()=>{i.instance&&i.instance.$forceUpdate()})),a.__composer=u,a.textContent=l},unmounted:a=>{Xs&&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=wa(i);a.textContent=Reflect.apply(l.t,l,[...Ea(u)])}},getSSRProps:a=>{const[i]=t(a);return{textContent:i}}}}function wa(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 Ea(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 pg(e,t,...n){const r=_e(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Me(r.globalInstall)?r.globalInstall:!0)&&(e.component(s?"i18n":ga.name,ga),e.component(va.name,va),e.component(ba.name,ba)),e.directive("t",dg(t))}const hg=Qt("global-vue-i18n");function mg(e={},t){const n=Me(e.globalInjection)?e.globalInjection:!0,r=!0,s=new Map,[o,a]=_g(e),i=Qt("");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&&kg(d,c.global),pg(d,c,...p);const _=d.unmount;d.unmount=()=>{c.dispose(),_()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:f};return c}}function Ho(e={}){const t=vr();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=yg(t),r=vg(n),s=mc(t),o=gg(e,s);if(o==="global")return ag(r,e,s),r;if(o==="parent"){let l=bg(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=_c(l),wg(a,t),a.__setInstance(t,i)}return i}function _g(e,t,n){const r=_o();{const s=r.run(()=>_c(e));if(s==null)throw ut(st.UNEXPECTED_ERROR);return[r,s]}}function yg(e){{const t=Re(e.isCE?hg:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw ut(e.isCE?st.NOT_INSLALLED_WITH_PROVIDE:st.UNEXPECTED_ERROR);return t}}function gg(e,t){return ps(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vg(e){return e.mode==="composition"?e.global:e.global.__composer}function bg(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 wg(e,t,n){Xt(()=>{},t),Gt(()=>{e.__deleteInstance(t)},t)}const Eg=["locale","fallbackLocale","availableLocales"],xg=["t","rt","d","n","tm"];function kg(e,t){const n=Object.create(null);Eg.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,xg.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw ut(st.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,s)})}Yy(Py);Xy(rc);sg();if(__INTLIFY_PROD_DEVTOOLS__){const e=Fo();e.__INTLIFY__=!0,Ny(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const kt=Object.create(null);kt.open="0";kt.close="1";kt.ping="2";kt.pong="3";kt.message="4";kt.upgrade="5";kt.noop="6";const Dr=Object.create(null);Object.keys(kt).forEach(e=>{Dr[kt[e]]=e});const Tg={type:"error",data:"parser error"},Sg=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Og=typeof ArrayBuffer=="function",Pg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,vc=({type:e,data:t},n,r)=>Sg&&t instanceof Blob?n?r(t):xa(t,r):Og&&(t instanceof ArrayBuffer||Pg(t))?n?r(t):xa(new Blob([t]),r):r(kt[e]+(t||"")),xa=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+r)},n.readAsDataURL(e)},ka="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gn=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},zg=typeof ArrayBuffer=="function",bc=(e,t)=>{if(typeof e!="string")return{type:"message",data:wc(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:Ig(e.substring(1),t)}:Dr[n]?e.length>1?{type:Dr[n],data:e.substring(1)}:{type:Dr[n]}:Tg},Ig=(e,t)=>{if(zg){const n=Cg(e);return wc(n,t)}else return{base64:!0,data:e}},wc=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},Ec=String.fromCharCode(30),Lg=(e,t)=>{const n=e.length,r=new Array(n);let s=0;e.forEach((o,a)=>{vc(o,!1,i=>{r[a]=i,++s===n&&t(r.join(Ec))})})},Ag=(e,t)=>{const n=e.split(Ec),r=[];for(let s=0;stypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function kc(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Mg=setTimeout,$g=clearTimeout;function ms(e,t){t.useNativeTimers?(e.setTimeoutFn=Mg.bind(Vt),e.clearTimeoutFn=$g.bind(Vt)):(e.setTimeoutFn=setTimeout.bind(Vt),e.clearTimeoutFn=clearTimeout.bind(Vt))}const Ng=1.33;function Fg(e){return typeof e=="string"?Dg(e):Math.ceil((e.byteLength||e.size)*Ng)}function Dg(e){let t=0,n=0;for(let r=0,s=e.length;r=57344?n+=3:(r++,n+=4);return n}class Bg extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class Tc extends Fe{constructor(t){super(),this.writable=!1,ms(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Bg(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=bc(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const Sc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),ro=64,jg={};let Ta=0,Ar=0,Sa;function Oa(e){let t="";do t=Sc[e%ro]+t,e=Math.floor(e/ro);while(e>0);return t}function Oc(){const e=Oa(+new Date);return e!==Sa?(Ta=0,Sa=e):e+"."+Oa(Ta++)}for(;Ar{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)};Ag(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,Lg(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]=Oc()),!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=Pc(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(),ms(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=kc(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 zc(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=Hg,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",Pa);else if(typeof addEventListener=="function"){const e="onpagehide"in Vt?"pagehide":"unload";addEventListener(e,Pa,!1)}}function Pa(){for(let e in Et.requests)Et.requests.hasOwnProperty(e)&&Et.requests[e].abort()}const Ic=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Rr=Vt.WebSocket||Vt.MozWebSocket,Ca=!0,Kg="arraybuffer",za=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Yg extends Tc{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=za?{}:kc(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=Ca&&!za?n?new Rr(t,n):new Rr(t):new Rr(t,n,r)}catch(s){return this.emitReserved("error",s)}this.ws.binaryType=this.socket.binaryType||Kg,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{Ca&&this.ws.send(o)}catch{}s&&Ic(()=>{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]=Oc()),this.supportsBinary||(t.b64=1);const s=Pc(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!!Rr}}const Xg={websocket:Yg,polling:Wg},Gg=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Qg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function so(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=Gg.exec(e||""),o={},a=14;for(;a--;)o[Qg[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=Jg(o,o.path),o.queryKey=Zg(o,o.query),o}function Jg(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 Zg(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=so(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=so(n.host).host),ms(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=Vg(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=xc,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 Xg[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,Lc=Object.prototype.toString,rv=typeof Blob=="function"||typeof Blob<"u"&&Lc.call(Blob)==="[object BlobConstructor]",sv=typeof File=="function"||typeof File<"u"&&Lc.call(File)==="[object FileConstructor]";function qo(e){return tv&&(e instanceof ArrayBuffer||nv(e))||rv&&e instanceof Blob||sv&&e instanceof File}function Br(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 cv{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=iv(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const uv=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Wo,Encoder:lv,get PacketType(){return he},protocol:av},Symbol.toStringTag,{value:"Module"}));function ft(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const fv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ac 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(fv.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}jn.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?e+n:e-n}return Math.min(e,this.max)|0};jn.prototype.reset=function(){this.attempts=0};jn.prototype.setMin=function(e){this.ms=e};jn.prototype.setMax=function(e){this.max=e};jn.prototype.setJitter=function(e){this.jitter=e};class ao 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,ms(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 jn({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||uv;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){Ic(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r||(r=new Ac(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 Yn={};function jr(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=ev(e,t.path||"/socket.io"),r=n.source,s=n.id,o=n.path,a=Yn[s]&&o in Yn[s].nsps,i=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return i?l=new ao(r,t):(Yn[s]||(Yn[s]=new ao(r,t)),l=Yn[s]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(jr,{Manager:ao,Socket:Ac,io:jr,connect:jr});const dv={"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:{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:{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:{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(["格式"])}}}},pv={class:"root-container"},Rc={__name:"App",setup(e){return(t,n)=>(N(),te("div",pv,[U(De(Jl))]))}},hv=Object.freeze(Object.defineProperty({__proto__:null,default:Rc},Symbol.toStringTag,{value:"Module"})),mv="modulepreload",_v=function(e){return"/"+e},Ia={},Ce=function(t,n,r){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=_v(o),o in Ia)return;Ia[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":mv,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())},yv=xm({history:jh("/"),routes:[{path:"/",name:"app",component:()=>Ce(()=>Promise.resolve().then(()=>hv),void 0),children:[{path:"/",name:"default-layout",component:()=>Ce(()=>import("./default-fd7f9336.js"),["assets/default-fd7f9336.js","assets/user-0f5f0501.js","assets/default-b28e542e.css"]),children:[{path:"/",name:"Library",component:()=>Ce(()=>import("./Library-50cabd24.js"),[])},{path:"/albums",name:"Albums",component:()=>Ce(()=>import("./Albums-c7763ed2.js"),[]),meta:{type:"albums"}},{path:"/album/:source/:id",name:"Album",component:()=>Ce(()=>import("./Album-aa78e208.js"),["assets/Album-aa78e208.js","assets/Album-e008826f.css"]),meta:{type:"album"}},{path:"/artists",name:"Artists",component:()=>Ce(()=>import("./Artists-61b7c148.js"),[]),meta:{type:"artists"}},{path:"/artist/:source/:id",name:"Artist",component:()=>Ce(()=>import("./Albums-c7763ed2.js"),[]),meta:{type:"artists"}},{path:"/composers",name:"Composers",component:()=>Ce(()=>import("./Artists-61b7c148.js"),[]),meta:{type:"composers"}},{path:"/composer/:source/:id",name:"Composer",component:()=>Ce(()=>import("./Albums-c7763ed2.js"),[]),meta:{type:"composers"}},{path:"/folders",name:"Folders",component:()=>Ce(()=>import("./Folders-fe28df3b.js"),[])},{path:"/folder/:source/:id",name:"Folder",component:()=>Ce(()=>import("./Folders-fe28df3b.js"),[])},{path:"/playlists",name:"Playlists",component:()=>Ce(()=>import("./Playlists-84b6ad72.js"),[])},{path:"/playlists/folder/:id",name:"PlaylistsFolder",component:()=>Ce(()=>import("./Playlists-84b6ad72.js"),[])},{path:"/playlist/:source/:id",name:"Playlist",component:()=>Ce(()=>import("./Album-aa78e208.js"),["assets/Album-aa78e208.js","assets/Album-e008826f.css"]),meta:{type:"playlist"}},{path:"/search",name:"Search",component:()=>Ce(()=>import("./Search-c123552c.js"),["assets/Search-c123552c.js","assets/Search-08b1b292.css"])},{path:"/settings",name:"Settings",component:()=>Ce(()=>import("./Index-05caf915.js"),["assets/Index-05caf915.js","assets/user-0f5f0501.js"])},{path:"/settings/theme",name:"SettingsTheme",component:()=>Ce(()=>import("./Theme-1466c3ad.js"),["assets/Theme-1466c3ad.js","assets/index-b5081660.js","assets/Theme-08e39d68.css"])},{path:"/settings/pins",name:"SettingsPins",component:()=>Ce(()=>import("./Pins-b11bc254.js"),[])},{path:"/settings/user",name:"SettingsUser",component:()=>Ce(()=>import("./User-17c9f6e4.js"),["assets/User-17c9f6e4.js","assets/user-0f5f0501.js"])},{path:"/settings/users",name:"SettingsUsers",component:()=>Ce(()=>import("./Users-56523967.js"),[])},{path:"/settings/log",name:"SettingsLog",component:()=>Ce(()=>import("./Log-f571c16c.js"),["assets/Log-f571c16c.js","assets/index-b5081660.js","assets/Log-af7ff627.css"])},{path:"/settings/System",name:"SettingsSystem",component:()=>Ce(()=>import("./System-12d00b92.js"),[])},{path:"/:pathMatch(.*)*",name:"404",component:()=>Ce(()=>import("./404-20688794.js"),[])}]},{path:"/empty",name:"empty-layout",component:()=>Ce(()=>import("./empty-7c673d1a.js"),[]),children:[{path:"/login",name:"Login",component:()=>Ce(()=>import("./Login-baee24d6.js"),["assets/Login-baee24d6.js","assets/Login-9a5467f5.css"])}]}]}]});var Sn,On,ue,pe;class gv{constructor(){en(this,ue);en(this,Sn,localStorage.getItem("username")||"");en(this,On,localStorage.getItem("password")||"")}async login(t,n){ys(this,Sn,t),ys(this,On,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:Un(this,Sn),password:Un(this,On)}});return r.success&&(localStorage.setItem("username",Un(this,Sn)),localStorage.setItem("password",Un(this,On))),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})}}Sn=new WeakMap,On=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 vv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lo={},bv={get exports(){return lo},set exports(e){lo=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(_+d),i+=` + `,i+=f(p.name),i+=` + `,i+=f(p.artist),i+=` + +`}),i}},function(n,r,s){n.exports=s(15)},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=P(s(33)),a=P(s(32)),i=P(s(31)),l=P(s(30)),u=P(s(29)),f=P(s(28)),c=P(s(27)),d=P(s(26)),p=P(s(25)),_=P(s(24)),h=P(s(23)),w=P(s(22)),v=P(s(21)),T=P(s(20)),S=P(s(19));function P(y){return y&&y.__esModule?y:{default:y}}var b={play:o.default,pause:a.default,volumeUp:i.default,volumeDown:l.default,volumeOff:u.default,orderRandom:f.default,orderList:c.default,menu:d.default,loopAll:p.default,loopOne:_.default,loopNone:h.default,loading:w.default,right:v.default,skip:T.default,lrc:S.default};r.default=b},function(n,r,s){var o,a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i};o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":a(window))==="object"&&(o=window)}n.exports=o},function(n,r,s){var o,a,i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l};(a=typeof(o=function(){if((typeof window>"u"?"undefined":i(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var l=function(c,d,p,_){return p>_?d:c+(d-c)*((h=p/_)<.5?4*h*h*h:(h-1)*(2*h-2)*(2*h-2)+1);var h},u=function(c,d,p,_){d=d||500;var h=(_=_||window).scrollTop||window.pageYOffset;if(typeof c=="number")var w=parseInt(c);else var w=function(S,P){return S.nodeName==="HTML"?-P:S.getBoundingClientRect().top+P}(c,h);var v=Date.now(),T=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(S){window.setTimeout(S,15)};(function S(){var P=Date.now()-v;_!==window?_.scrollTop=l(h,w,P,d):window.scroll(0,l(h,w,P,d)),P>d?typeof p=="function"&&p(c):T(S)})()},f=function(c){if(!c.defaultPrevented){c.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var d=document.getElementById(this.hash.substring(1));if(!d)return;u(d,500,function(p){location.replace("#"+p.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var c,d=document.querySelectorAll('a[href^="#"]:not([href="#"])'),p=d.length;c=d[--p];)c.addEventListener("click",f,!1)}),u}})=="function"?o.call(r,s,r,n):o)===void 0||(n.exports=a)},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function c(d,p){for(var _=0;_1),_=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:d,index:this.audios.length+1}),this.audios=this.audios.concat(d),p&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=i.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=d.theme||this.player.options.theme,_&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(d){if(this.player.events.trigger("listremove",{index:d}),this.audios[d])if(this.audios.length>1){var p=this.player.container.querySelectorAll(".aplayer-list li");p[d].remove(),this.audios.splice(d,1),this.player.lrc&&this.player.lrc.remove(d),d===this.index&&(this.audios[d]?this.switch(d):this.switch(d-1)),this.index>d&&this.index--;for(var _=d;_u&&!l.player.audio.paused&&(l.player.container.classList.remove("aplayer-loading"),c=!1),u=f)},100)}},{key:"enable",value:function(l){this["enable"+l+"Checker"]=!0,l==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(l){this["enable"+l+"Checker"]=!1}},{key:"destroy",value:function(){var l=this;this.types.forEach(function(u){l["enable"+u+"Checker"]=!1,l[u+"Checker"]&&clearInterval(l[u+"Checker"])})}}]),i}();r.default=a},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function f(c,d){for(var p=0;p1?c.player.options.loop==="one"?(c.player.options.loop="none",c.player.template.loop.innerHTML=i.default.loopNone):c.player.options.loop==="none"?(c.player.options.loop="all",c.player.template.loop.innerHTML=i.default.loopAll):c.player.options.loop==="all"&&(c.player.options.loop="one",c.player.template.loop.innerHTML=i.default.loopOne):c.player.options.loop==="one"||c.player.options.loop==="all"?(c.player.options.loop="none",c.player.template.loop.innerHTML=i.default.loopNone):c.player.options.loop==="none"&&(c.player.options.loop="all",c.player.template.loop.innerHTML=i.default.loopAll)})}},{key:"initMenuButton",value:function(){var c=this;this.player.template.menu.addEventListener("click",function(){c.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var c=this;this.player.template.miniSwitcher.addEventListener("click",function(){c.player.setMode(c.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var c=this;this.player.template.skipBackButton.addEventListener("click",function(){c.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){c.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){c.player.toggle()})}},{key:"initLrcButton",value:function(){var c=this;this.player.template.lrcButton.addEventListener("click",function(){c.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(c.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),c.player.lrc&&c.player.lrc.show()):(c.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),c.player.lrc&&c.player.lrc.hide())})}}]),f}();r.default=u},function(n,r,s){var o=s(2);n.exports=function(a){a=a||{};var i="",l=o.$each,u=a.lyrics,f=(a.$value,a.$index,o.$escape);return l(u,function(c,d){i+=` + +`}),i}},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o,a=function(){function f(c,d){for(var p=0;p0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||c=this.current[this.index+1][0])for(var d=0;d=this.current[d][0]&&(!this.current[d+1]||c=200&&p.status<300||p.status===304?d.parsed[c]=d.parse(p.responseText):(d.player.notice("LRC file request fails: status "+p.status),d.parsed[c]=[["00:00","Not available"]]),d.container.innerHTML=(0,l.default)({lyrics:d.parsed[c]}),d.update(0),d.current=d.parsed[c])};var _=this.player.list.audios[c].lrc;p.open("get",_,!0),p.send(null)}else this.player.list.audios[c].lrc?this.parsed[c]=this.parse(this.player.list.audios[c].lrc):this.parsed[c]=[["00:00","Not available"]];this.container.innerHTML=(0,l.default)({lyrics:this.parsed[c]}),this.update(0),this.current=this.parsed[c]}},{key:"parse",value:function(c){if(c){for(var d=(c=c.replace(/([^\]^\n])\[/g,function(y,E){return E+` +[`})).split(` +`),p=[],_=d.length,h=0;h<_;h++){var w=d[h].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),v=d[h].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(w)for(var T=w.length,S=0;S]/;i.$escape=function(u){return function(f){var c=""+f,d=l.exec(c);if(!d)return f;var p="",_=void 0,h=void 0,w=void 0;for(_=d.index,h=0;_ + + `,d(s(1)(p({theme:l.theme,audio:l.audio,index:1}))),i+=` + + +
+
+
`,i+=c.play,i+=`
+
+ +
+
+
+
+
+
+`):(i+=` +
+
+
`,i+=c.play,i+=`
+
+
+
+ No audio + +
+
+
+
+
+
+
+
+
+ + `,i+=c.loading,i+=` + +
+
+
+
+ + 00:00 / 00:00 + + + `,i+=c.skip,i+=` + + + `,i+=c.play,i+=` + + + `,i+=c.skip,i+=` + +
+ +
+
+
+
+
+
+ + + + +
+
+
+
+
+
+
+ + `,d(s(1)(p({theme:l.theme,audio:l.audio,index:1}))),i+=` + +
+`),i}},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0});var o=function(){function f(c,d){for(var p=0;p'},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r){n.exports=''},function(n,r,s){var o,a,i=n.exports={};function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function f(S){if(o===setTimeout)return setTimeout(S,0);if((o===l||!o)&&setTimeout)return o=setTimeout,setTimeout(S,0);try{return o(S,0)}catch{try{return o.call(null,S,0)}catch{return o.call(this,S,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:l}catch{o=l}try{a=typeof clearTimeout=="function"?clearTimeout:u}catch{a=u}})();var c,d=[],p=!1,_=-1;function h(){p&&c&&(p=!1,c.length?d=c.concat(d):_=-1,d.length&&w())}function w(){if(!p){var S=f(h);p=!0;for(var P=d.length;P;){for(c=d,d=[];++_1)for(var b=1;b"u"?o===void 0?void 0:o:self)}).call(this,s(4),s(34))},function(n,r,s){var o=Function.prototype.apply;function a(i,l){this._id=i,this._clearFn=l}r.setTimeout=function(){return new a(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new a(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(i){i&&i.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(i,l){clearTimeout(i._idleTimeoutId),i._idleTimeout=l},r.unenroll=function(i){clearTimeout(i._idleTimeoutId),i._idleTimeout=-1},r._unrefActive=r.active=function(i){clearTimeout(i._idleTimeoutId);var l=i._idleTimeout;l>=0&&(i._idleTimeoutId=setTimeout(function(){i._onTimeout&&i._onTimeout()},l))},s(35),r.setImmediate=setImmediate,r.clearImmediate=clearImmediate},function(n,r,s){(function(o){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},i=setTimeout;function l(){}function u(h){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if(typeof h!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],_(h,this)}function f(h,w){for(;h._state===3;)h=h._value;h._state!==0?(h._handled=!0,u._immediateFn(function(){var v=h._state===1?w.onFulfilled:w.onRejected;if(v!==null){var T;try{T=v(h._value)}catch(S){return void d(w.promise,S)}c(w.promise,T)}else(h._state===1?c:d)(w.promise,h._value)})):h._deferreds.push(w)}function c(h,w){try{if(w===h)throw new TypeError("A promise cannot be resolved with itself.");if(w&&((w===void 0?"undefined":a(w))==="object"||typeof w=="function")){var v=w.then;if(w instanceof u)return h._state=3,h._value=w,void p(h);if(typeof v=="function")return void _((T=v,S=w,function(){T.apply(S,arguments)}),h)}h._state=1,h._value=w,p(h)}catch(P){d(h,P)}var T,S}function d(h,w){h._state=2,h._value=w,p(h)}function p(h){h._state===2&&h._deferreds.length===0&&u._immediateFn(function(){h._handled||u._unhandledRejectionFn(h._value)});for(var w=0,v=h._deferreds.length;w1&&this.container.classList.add("aplayer-withlist"),i.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,this.options.lrcType===2||this.options.lrcType===!0)for(var E=this.container.getElementsByClassName("aplayer-lrc-content"),k=0;k1?(y.notice("An audio error has occurred, player will skip forward in 2 seconds."),E=setTimeout(function(){y.skipForward(),y.paused||y.play()},2e3)):y.list.audios.length===1&&y.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){E&&clearTimeout(E)}),this.on("ended",function(){y.options.loop==="none"?y.options.order==="list"?y.list.index0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[E]&&(this.list.audios[E].theme=y),this.template.listCurs[E]&&(this.template.listCurs[E].style.backgroundColor=y),E===this.list.index&&(this.template.pic.style.backgroundColor=y,this.template.played.style.background=y,this.template.thumb.style.background=y,this.template.volume.style.background=y)}},{key:"seek",value:function(y){y=Math.max(y,0),y=Math.min(y,this.duration),this.audio.currentTime=y,this.bar.set("played",y/this.duration,"width"),this.template.ptime.innerHTML=i.default.secondToTime(y)}},{key:"setUIPlaying",value:function(){var y=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){y.template.button.innerHTML=l.default.pause},100),this.template.skipPlayButton.innerHTML=l.default.pause),this.timer.enable("loading"),this.options.mutex)for(var E=0;E=.95?this.template.volumeButton.innerHTML=l.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=l.default.volumeDown:this.template.volumeButton.innerHTML=l.default.volumeOff}},{key:"volume",value:function(y,E){return y=parseFloat(y),isNaN(y)||(y=Math.max(y,0),y=Math.min(y,1),this.bar.set("volume",y,"height"),E||this.storage.set("volume",y),this.audio.volume=y,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(y,E){this.events.on(y,E)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(y){this.list.switch(y)}},{key:"addAudio",value:function(y){this.list.add(y)}},{key:"removeAudio",value:function(y){this.list.remove(y)}},{key:"destroy",value:function(){S.splice(S.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=y,y==="mini"?this.container.classList.add("aplayer-narrow"):y==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(y){var E=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=y,this.template.notice.style.opacity=M,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:y}),k&&(this.noticeTime=setTimeout(function(){E.template.notice.style.opacity=0,E.events.trigger("noticehide")},k))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var y=this.randomOrder.indexOf(this.list.index);return y===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[y-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var y=this.randomOrder.indexOf(this.list.index);return y===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[y+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),b}();r.default=P},,function(n,r,s){},function(n,r,s){Object.defineProperty(r,"__esModule",{value:!0}),s(40);var o,a=s(38),i=(o=a)&&o.__esModule?o:{default:o};console.log(` + %c APlayer v1.10.1 af84efb %c http://aplayer.js.org +`,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),r.default=i.default}]).default})})(bv);const wv=vv(lo);var Gr,Mc,hr,co,Qr,$c;class Ev{constructor(){en(this,Gr);en(this,hr);en(this,Qr);if(this.player=new wv({container:document.getElementById("player")}),"mediaSession"in navigator){setInterval(()=>{var t,n,r,s;this.trackInfo?navigator.mediaSession.metadata=new MediaMetadata({title:((t=this.trackInfo)==null?void 0:t.name)||"PokaPlayer",artist:((n=this.trackInfo)==null?void 0:n.artist)||"PokaPlayer",album:((r=this.trackInfo)==null?void 0:r.album)||"PokaPlayer",artwork:[{src:(s=this.trackInfo)==null?void 0:s.cover}]}):navigator.mediaSession.metadata=null,navigator.mediaSession.playbackState=this.paused?"paused":"playing","setPositionState"in navigator.mediaSession&&navigator.mediaSession.setPositionState({duration:this.player.audio.duration||0,playbackRate:1,position:this.player.audio.currentTime||0})},100),navigator.mediaSession.setActionHandler("play",()=>{this.player.play(),navigator.mediaSession.playbackState="playing"}),navigator.mediaSession.setActionHandler("pause",()=>{this.player.pause(),navigator.mediaSession.playbackState="paused"}),navigator.mediaSession.setActionHandler("previoustrack",()=>{this.previous()}),navigator.mediaSession.setActionHandler("nexttrack",()=>{this.next()});try{navigator.mediaSession.setActionHandler("seekto",t=>{this.player.seek(t.seekTime)})}catch{console.warn('Warning! The "seekto" media session action is not supported.')}}}toggle(){this.player.toggle()}addSongs({songs:t=[],index:n=0,clear:r=!0}){let s="original";const o=t.map(a=>{const i=ie(this,Gr,Mc).call(this,a);return i.originalObject=a,i.url=i.url+"&songRes="+s,i.source,i.uuid=ie(this,Qr,$c).call(this),i});r&&this.player.list.clear(),this.player.list.add(o),this.player.list.switch(n),this.player.play()}next(){this.player.skipForward(),this.player.play()}previous(){this.player.skipBack(),this.player.play()}seek(t){this.player.seek(t)}get audioOrder(){return this.player.options.order}set audioOrder(t){this.player.options.order=t}get trackInfo(){return this.songList[this.currentIndex]}get paused(){return this.player.paused}get currentTime(){var t;return ie(this,hr,co).call(this,((t=this.player.audio)==null?void 0:t.currentTime)||0)}get rawCurrentTime(){var t;return((t=this.player.audio)==null?void 0:t.currentTime)||0}get duration(){var t;return ie(this,hr,co).call(this,((t=this.player.audio)==null?void 0:t.duration)||0)}get rawDuration(){var t;return((t=this.player.audio)==null?void 0:t.duration)||0}get songList(){return this.player.list.audios}get currentIndex(){return this.player.list.index}}Gr=new WeakSet,Mc=function(t){return JSON.parse(JSON.stringify(t))},hr=new WeakSet,co=function(t){let n=Math.floor(t/60),r=Math.floor(t%60);return`${n}:${`0${r}`.slice(-2)}`},Qr=new WeakSet,$c=function(){let t=new Date().getTime();return window.performance&&typeof window.performance.now=="function"&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){const r=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n==="x"?r:r&3|8).toString(16)})};const _t=vd(Rc),xv=Object.assign({"./components/BottomPlayer.vue":Gd,"./components/Dialog.vue":rp,"./components/EmptyState.vue":up,"./components/FullscreenPlayer.vue":kp,"./components/FullscreenPlayer/List.vue":Pp,"./components/FullscreenPlayer/Lyric.vue":Up,"./components/FullscreenPlayer/Player.vue":fh,"./components/Loader.vue":vh,"./components/P/Btn.vue":xh,"./components/P/Card.vue":Rm,"./components/P/Cards.vue":Dm,"./components/P/Input.vue":Wm,"./components/P/List/Item.vue":Gm,"./components/P/List/ItemContent.vue":t_,"./components/P/List/ItemIconBtn.vue":i_,"./components/P/List/ItemImg.vue":u_,"./components/P/List/Items.vue":p_,"./components/P/Select.vue":g_,"./components/P/Slider.vue":E_,"./components/Parse/Albums.vue":k_,"./components/Parse/Artists.vue":S_,"./components/Parse/Home.vue":A_,"./components/Parse/Playlists.vue":M_,"./components/Parse/Songs.vue":F_,"./components/PinBtn.vue":U_,"./components/PlaylistDialog.vue":X_,"./components/SongDialog.vue":py});Object.entries(xv).forEach(([e,t])=>{const n=e.split("/").slice(2).join("").replace(/\.\w+$/,"");_t.component(n,t.default)});const Nc=jr(location.origin);_t.config.globalProperties.$socket=Nc;_t.provide("socket",Nc);let Fc=new gv;_t.config.globalProperties.$PokaAPI=Fc;_t.provide("PokaAPI",Fc);const Dc=new Ev;_t.config.globalProperties.$Player=Dc;_t.provide("Player",Dc);const kv=mg({legacy:!1,locale:"zh-TW",messages:dv});_t.use(kv);_t.use(wd());_t.use(yv);_t.mount("#app");export{Ie as A,_l as B,Ii as C,Jr as D,Sv as E,we as F,_r as G,vr as H,tu as I,nu as J,Cu as K,Ae as L,Jl as R,Sf as T,Ve as _,Ql as a,A as b,te as c,It as d,le as e,U as f,Bn as g,Sd as h,ne as i,Re as j,Xt as k,nt as l,qt as m,at as n,N as o,Dn as p,De as q,ee as r,Te as s,ge as t,Pv as u,Ov as v,K as w,Kr as x,Ho as y,Ao as z}; diff --git a/public/assets/index-93a3d630.css b/public/assets/index-e7eb2d5b.css similarity index 60% rename from public/assets/index-93a3d630.css rename to public/assets/index-e7eb2d5b.css index 9e99e1e..4861e1e 100644 --- a/public/assets/index-93a3d630.css +++ b/public/assets/index-e7eb2d5b.css @@ -1 +1 @@ -.bottom-player[data-v-62673e53]{padding:calc(var(--padding) / 2) var(--padding);display:grid;grid-template-columns:1fr 250px 1fr}@media screen and (max-width: 768px){.bottom-player[data-v-62673e53]{grid-template-columns:1fr auto}.bottom-player .player-control[data-v-62673e53]{display:none}}.bottom-player .track-info[data-v-62673e53]{display:flex;align-items:center;width:100%;cursor:pointer}.bottom-player .track-info .cover[data-v-62673e53]{align-items:center;--cover-size: calc(var(--padding) * 5 + 24px);width:var(--cover-size);height:var(--cover-size);display:flex;flex-direction:column;justify-content:center}@media (max-width: 768px){.bottom-player .track-info .cover[data-v-62673e53]{--cover-size: calc(var(--padding) * 3.5 + 24px)}}.bottom-player .track-info .cover img[data-v-62673e53]{width:var(--cover-size);height:var(--cover-size);border-radius:var(--border-radius);object-fit:cover;background-color:#fff}.bottom-player .track-info .track-info-text[data-v-62673e53]{margin-left:var(--padding);font-size:18px;width:100%;max-width:calc(50vw - 125px - 64px - var(--padding) * 2);overflow:hidden;flex:1}@media (max-width: 768px){.bottom-player .track-info .track-info-text[data-v-62673e53]{font-size:16px;max-width:calc(100vw - 134px - 52px - var(--padding) * 2)}}.bottom-player .track-info .track-info-text .track-artist[data-v-62673e53],.bottom-player .track-info .track-info-text .track-name[data-v-62673e53]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.bottom-player .track-info .track-info-text .track-name[data-v-62673e53]{font-weight:700}.bottom-player .track-info .track-info-text .track-artist[data-v-62673e53]{color:var(--text-color);opacity:.75}.bottom-player .track-control[data-v-62673e53]{display:flex;align-items:center;justify-content:center;gap:calc(var(--padding) / 2)}@media (max-width: 768px){.bottom-player .track-control .time[data-v-62673e53]{display:none}}.bottom-player .player-control[data-v-62673e53]{display:flex;align-items:center;justify-content:flex-end;gap:calc(var(--padding) / 2)}@media (max-width: 768px){.bottom-player .player-control[data-v-62673e53]{display:none}}.modal-mask{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;overflow:hidden;background-color:#000000bf;display:table;transition:opacity var(--transition);font-size:14px;cursor:pointer}.modal-wrapper{display:grid;place-content:center;height:100vh;height:100svh;line-break:anywhere}.modal-container{max-height:calc(100svh - 60px);overflow-y:auto;overflow-x:hidden;cursor:default;width:600px;max-width:var(--max-width);margin:0 auto;padding:calc(var(--padding) * 2);background-color:var(--background-layer-1);border-radius:var(--border-radius);box-shadow:var(--box-shadow);transition:all var(--transition);position:sticky;top:0;position:relative}.modal-container .close{position:sticky;cursor:pointer;--size: 36px;transition:all .2s ease;font-size:var(--size);z-index:1;height:var(--size);display:flex;justify-content:flex-end;align-items:center;margin-bottom:calc(var(--size) * -1)}.modal-container .close i{background:#333;color:#fff;border-radius:100em}@media screen and (max-width: 768px){.modal-container .close{--size: 24px}}.modal-container .close:hover{cursor:pointer;opacity:.8}.modal-container .close:active{opacity:.6}.modal-enter-from,.modal-leave-to{opacity:0}.modal-enter-active .modal-container,.modal-leave-active .modal-container{transform:translateY(100px);opacity:0}.empty-state[data-v-11011440]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--text-color)}.empty-state .empty-state__icon[data-v-11011440]{font-size:3rem;margin-bottom:var(--padding)}.empty-state .empty-state__title[data-v-11011440]{font-size:1.5rem;margin-bottom:var(--padding)}.empty-state .empty-state__description[data-v-11011440]{font-size:1rem;color:var(--text-color);opacity:.75}.fullscreen-player[data-v-17ca1e16]{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100svh;background-color:var(--background-layer-2);z-index:1;transition:transform var(--transition),border-radius var(--transition);overflow:hidden}.fullscreen-player[data-v-17ca1e16]:not(.show){transform:translateY(100vh);border-radius:var(--border-radius)}.fullscreen-player .fullscreen-player__container[data-v-17ca1e16]{width:min(1200px,100vw - var(--padding) * 2);padding:var(--padding) calc(var(--padding) * 2);height:100vh;margin:0 auto}.fullscreen-player .fullscreen-player__container .header[data-v-17ca1e16]{display:flex;align-items:center}.fullscreen-player .fullscreen-player__container .header .left[data-v-17ca1e16]{flex:1}.fullscreen-player .fullscreen-player__container .header .left .logo[data-v-17ca1e16]{font-family:Product Sans,sans-serif;font-weight:700;font-size:24px}.fullscreen-player .fullscreen-player__container .content[data-v-17ca1e16]{display:grid;grid-template-columns:400px 1fr;align-items:center;gap:calc(var(--padding) * 4);margin:calc(var(--padding) * 1) 0;height:calc(100svh - var(--padding) * 4 - 84px)}@media screen and (max-width: 768px){.fullscreen-player .fullscreen-player__container .content[data-v-17ca1e16]{grid-template-columns:1fr}}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16],.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]{overflow:hidden;overflow-y:auto}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]::-webkit-scrollbar,.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]::-webkit-scrollbar{width:4px}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]::-webkit-scrollbar-track,.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]::-webkit-scrollbar-track{background:transparent}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]::-webkit-scrollbar-thumb,.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]::-webkit-scrollbar-thumb{background:#888;border-radius:2px}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]::-webkit-scrollbar-thumb:hover,.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]::-webkit-scrollbar-thumb:hover{background:#777}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]::-webkit-scrollbar-thumb:active,.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]::-webkit-scrollbar-thumb:active{background:#666}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]::-webkit-scrollbar-button,.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]::-webkit-scrollbar-button{display:none}.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]{max-height:100%}@media screen and (max-width: 768px){.fullscreen-player .fullscreen-player__container .content .left[data-v-17ca1e16]{display:none}}.fullscreen-player .fullscreen-player__container .content .right[data-v-17ca1e16]{padding:calc(var(--padding) * 2);background-color:var(--background-layer-1);border-radius:var(--border-radius);height:100%}.fullscreen-player .fullscreen-player__container .content .right.current-page-player[data-v-17ca1e16]{background-color:var(--background-layer-2);display:flex;align-items:center;justify-content:center}.fullscreen-player .fullscreen-player__container .footer[data-v-17ca1e16]{display:flex;gap:calc(var(--padding) / 2);justify-content:flex-end}@media screen and (max-width: 768px){.fullscreen-player .fullscreen-player__container .footer[data-v-17ca1e16]{justify-content:center}}@media screen and (min-width: 768.1px){.fullscreen-player .fullscreen-player__container .footer .p-btn[data-v-17ca1e16]:first-child{display:none}}.fullscreen-player__list[data-v-1d86eedc]{height:100%;overflow-y:auto}.fullscreen-player__lyric[data-v-7293c89c]{padding-bottom:25vh}.fullscreen-player__lyric .is-lyric-correct[data-v-7293c89c]{position:sticky;top:0;z-index:1;border-radius:var(--border-radius);border:1px solid rgba(var(--text-color-value),.1);background-color:var(--background-layer-1);display:flex;gap:var(--padding);box-shadow:var(--box-shadow);transition:transform .2s ease,opacity .2s ease;max-width:512px;margin:0 auto}.fullscreen-player__lyric .is-lyric-correct[data-v-7293c89c]:not(.show){transform:translateY(-100%) scale(.95);transform-origin:top center;opacity:0;pointer-events:none}.fullscreen-player__lyric .is-lyric-correct .icon[data-v-7293c89c]{font-size:36px;display:inline-flex;align-items:center;justify-content:center;padding:var(--padding) calc(var(--padding) * 2);border-radius:var(--border-radius) 0 0 var(--border-radius);background-color:var(--background-layer-2)}.fullscreen-player__lyric .is-lyric-correct .content[data-v-7293c89c]{flex:1;line-height:1.5;padding:var(--padding)}.fullscreen-player__lyric .is-lyric-correct .content .title[data-v-7293c89c]{font-size:18px;font-weight:700}.fullscreen-player__lyric .is-lyric-correct .content .description[data-v-7293c89c]{font-size:14px;color:rgba(var(--text-color-value),.5)}.fullscreen-player__lyric .is-lyric-correct .content .actions[data-v-7293c89c]{margin-top:var(--padding);display:flex;justify-content:flex-end;gap:calc(var(--padding) / 2)}.fullscreen-player__lyric .lyric-item[data-v-7293c89c]{line-height:2;font-size:24px;opacity:.2;margin:var(--padding);transition:all .3s ease}.fullscreen-player__lyric .lyric-item[data-lyric-set="0"][data-v-7293c89c]{opacity:1}.fullscreen-player__lyric .lyric-item[data-lyric-set="-1"][data-v-7293c89c],.fullscreen-player__lyric .lyric-item[data-lyric-set="1"][data-v-7293c89c]{opacity:.5}.fullscreen-player__lyric .lyric-item[data-lyric-set="-2"][data-v-7293c89c],.fullscreen-player__lyric .lyric-item[data-lyric-set="2"][data-v-7293c89c]{opacity:.4875}.fullscreen-player__lyric .lyric-item[data-lyric-set="-3"][data-v-7293c89c],.fullscreen-player__lyric .lyric-item[data-lyric-set="3"][data-v-7293c89c]{opacity:.325}.fullscreen-player__lyric .lyric-item[data-lyric-set="-4"][data-v-7293c89c],.fullscreen-player__lyric .lyric-item[data-lyric-set="4"][data-v-7293c89c]{opacity:.2}.fullscreen-player__lyric.with-translated .lyric-item[data-v-7293c89c]{margin-bottom:0}.fullscreen-player__lyric.with-translated .lyric-item.translated[data-v-7293c89c]{margin-top:0;margin-bottom:var(--padding);font-size:18px}.lyric-search__header[data-v-7293c89c]{display:flex;align-items:center;gap:var(--padding)}.lyric-search__content[data-v-7293c89c]{height:400px;overflow-y:auto}.fullscreen-player__player[data-v-1bdd18be]{display:flex;flex-direction:column;gap:var(--padding)}.fullscreen-player__player .cover img[data-v-1bdd18be]{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;border-radius:var(--border-radius);border:1px solid var(--background-layer-2);max-width:400px;background-color:#fff}.fullscreen-player__player .track-info-text .track-name[data-v-1bdd18be],.fullscreen-player__player .track-info-text .track-artist[data-v-1bdd18be]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.fullscreen-player__player .track-info-text .track-name[data-v-1bdd18be]{font-size:1.5rem;font-weight:700}.fullscreen-player__player .track-info-text .track-artist[data-v-1bdd18be]{font-size:1.25rem;opacity:.75}.fullscreen-player__player .time-items[data-v-1bdd18be]{display:flex;justify-content:space-between}.fullscreen-player__player .time-items .time[data-v-1bdd18be]{opacity:.75}.fullscreen-player__player .track-control[data-v-1bdd18be]{display:flex;align-items:center;justify-content:center;gap:calc(var(--padding) / 2)}.loader[data-v-f4517432]{display:flex;align-items:center;justify-content:center;margin-top:30vh}.loader .loader__spinner[data-v-f4517432]{width:40px;height:40px;border:4px solid transparent;border-top-color:var(--primary-color);border-radius:50%;animation:spin-f4517432 .5s linear infinite}@keyframes spin-f4517432{to{transform:rotate(360deg)}}.p-btn[data-v-6e7d6ed3]{color:var(--text-color);background-color:rgba(var(--text-color-value),.075);border:1px solid transparent;padding:var(--padding) calc(var(--padding) * 2);border-radius:var(--border-radius);cursor:pointer;transition:all var(--transition);font-size:14px;line-height:1.5;font-weight:700;display:flex;align-items:center;justify-content:center;gap:var(--padding);box-shadow:inset 0 0 0 100px transparent;text-decoration:none;display:inline-flex}.p-btn[data-v-6e7d6ed3]:hover{box-shadow:inset 0 0 0 100px rgba(var(--text-color-value),.1);border:1px solid rgba(var(--text-color-value),.1)}.p-btn[data-v-6e7d6ed3]:active{box-shadow:inset 0 0 0 100px rgba(var(--text-color-value),.2);border:1px solid rgba(var(--text-color-value),.2);transform:scale(.95)}.p-btn[color=primary][data-v-6e7d6ed3]{background-color:var(--primary-color);color:#fff}.p-btn.outline[data-v-6e7d6ed3]{background-color:transparent;border-color:rgba(var(--text-color-value),.05)}.p-btn.outline[data-v-6e7d6ed3]:hover{border-color:rgba(var(--text-color-value),.15)}.p-btn.outline[data-v-6e7d6ed3]:active{border-color:rgba(var(--text-color-value),.25)}.p-btn.text[data-v-6e7d6ed3]{background-color:transparent}.p-btn.icon[data-v-6e7d6ed3]{padding:var(--padding);font-size:24px}.p-btn.block[data-v-6e7d6ed3]{width:100%;display:block}.p-card[data-v-7ba3ec3e]{width:100%;transition:all var(--transition);border-radius:var(--border-radius);color:var(--text-color);text-decoration:none}.p-card[data-v-7ba3ec3e]:hover{background-color:var(--background-layer-2);box-shadow:0 0 0 var(--padding) var(--background-layer-2)}.p-card:hover .p-card__img[data-v-7ba3ec3e]{filter:brightness(1.05)}.p-card[data-v-7ba3ec3e]:active{transform:scale(.95)}.p-card .p-card__img-container[data-v-7ba3ec3e]{position:relative;width:100%}.p-card .p-card__img-container .p-card__img[data-v-7ba3ec3e]{border-radius:var(--border-radius);width:100%;aspect-ratio:1/1;object-fit:cover;border:1px solid var(--background-layer-2);transition:filter var(--transition)}.p-card .p-card__img-container .p-card__source[data-v-7ba3ec3e]{position:absolute;top:calc(var(--padding) / 2);right:calc(var(--padding) / 2);padding:calc(var(--padding) * .5) var(--padding);background-color:var(--background-layer-2);color:var(--text-color);font-size:.75rem;opacity:.75;border-radius:calc(var(--border-radius) - var(--padding) / 2)}.p-card .p-card__content[data-v-7ba3ec3e]{padding:calc(var(--padding) / 2) 0}.p-card .p-card__content .p-card__title[data-v-7ba3ec3e]{font-size:1em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.p-card .p-card__content .p-card__description[data-v-7ba3ec3e]{color:var(--text-color);opacity:.75;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.p-cards[data-v-cd28673c]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--min-card-width),1fr));gap:calc(var(--padding) * 2)}.p-input[data-v-dc46621b]{display:flex;flex-direction:column;width:100%}.p-input+.p-input[data-v-dc46621b]{margin-top:calc(var(--padding) * 2)}.p-input .p-input__label[data-v-dc46621b]{display:flex;align-items:center}.p-input .p-input__label .p-input__label-text[data-v-dc46621b]{font-size:14px;color:var(--text-color);transition:all var(--transition)}.p-input:not(.value):not(:has(input:focus)) .p-input__label[data-v-dc46621b]{cursor:text}.p-input:not(.value):not(:has(input:focus)) .p-input__label .p-input__label-text[data-v-dc46621b]{transform:translateY(calc(var(--padding) * 2 + 16px)) translate(var(--padding)) scale(1.1429);opacity:.5}.p-input:has(input:focus) .p-input__label .p-input__label-text[data-v-dc46621b]{color:var(--primary-color);font-weight:700}.p-input .p-input__input[data-v-dc46621b]{border:none;outline:none;background:none;width:100%;height:100%;padding:calc(var(--padding) * 1.5) var(--padding);font-size:16px;border-bottom:var(--border-width) solid var(--border-color);transition:border-bottom var(--transition),box-shadow var(--transition);box-shadow:0 1px transparent;border-radius:0;color:var(--text-color)}.p-input .p-input__input[data-v-dc46621b]:focus{border-color:var(--primary-color);box-shadow:0 1px var(--primary-color)}.p-list-item{padding:calc(var(--padding) * .75) var(--padding);border-radius:var(--border-radius);display:flex;transition:all var(--transition);width:100%;cursor:pointer;color:var(--text-color);text-decoration:none}.p-list-item:hover{background-color:rgba(var(--text-color-value),.05)}.p-list-item:active,.p-list-item.active{background-color:rgba(var(--text-color-value),.1)}.p-list-item .p-list-item__content,.p-list-item .p-list-item__actions{display:flex;gap:var(--padding);align-items:center}.p-list-item .p-list-item__content{flex:1}.p-list-item .p-list-item__img{--size: 42px;width:var(--size);height:var(--size);min-width:var(--size)}.p-list-item .p-list-item__img img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;border-radius:var(--border-radius);border:1px solid var(--background-layer-2);background-color:#fff}.p-list-item .p-list-item__content-content .p-list-item__content-title{font-size:1rem;font-weight:700}.p-list-item .p-list-item__content-content .p-list-item__content-description{opacity:.5}.p-list-item .p-list-item__icon-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--border-radius);cursor:pointer;transition:all var(--transition);background-color:transparent;border:1px solid transparent}.p-list-item .p-list-item__icon-btn:hover{background-color:rgba(var(--text-color-value),.05)}.p-list-item .p-list-item__icon-btn:active{background-color:rgba(var(--text-color-value),.1)}.p-list-item .p-list-item__icon-btn i{font-size:24px;color:var(--text-color)}.p-list-items[data-v-6dc192e0]{display:grid;grid-template-columns:repeat(2,1fr)}.p-list-items.single-row[data-v-6dc192e0]{grid-template-columns:1fr}@media screen and (max-width: 768px){.p-list-items[data-v-6dc192e0]{grid-template-columns:1fr}}.p-select[data-v-396b2373]{width:100%;position:relative}.p-select[data-v-396b2373]:before{content:"\ea4a";font-family:boxicons!important;position:absolute;right:var(--padding);top:50%;transform:translateY(-50%);pointer-events:none;font-size:1.5em;color:rgba(var(--text-color-value),.5)}.p-select select[data-v-396b2373]{width:100%;height:100%;border:none;background:transparent;font-size:1rem;color:var(--text-color);appearance:none;color:rgba(var(--text-color-value),1);padding:var(--padding) calc(var(--padding) * 2);padding-right:calc(var(--padding) * 2 + 1.5em);border:1px solid rgba(var(--text-color-value),.1);border-radius:var(--border-radius)}.p-select select[data-v-396b2373]:focus{outline:none}input[data-v-4ad436c5]{-webkit-appearance:none;cursor:pointer;width:100%;height:4px;border-radius:2px;background:linear-gradient(to right,var(--primary-color) var(--value-in-percent),rgba(var(--text-color-value),.1) var(--value-in-percent)) no-repeat;outline:none;border:none;--thumb-outline-size: 5px}input[data-v-4ad436c5]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;border-radius:100em;background:var(--primary-color);cursor:pointer;transition:all var(--transition);outline:var(--thumb-outline-size) solid transparent;box-shadow:none}input[data-v-4ad436c5]::-webkit-slider-runnable-track{-webkit-appearance:none;box-shadow:none;border:none;background:transparent}input[data-v-4ad436c5]::-moz-range-thumb{width:12px;height:12px;border-radius:100em;background:var(--primary-color);cursor:pointer;transition:all var(--transition);outline:var(--thumb-outline-size) solid transparent}input[data-v-4ad436c5]:hover::-webkit-slider-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.1)}input[data-v-4ad436c5]:hover::-moz-range-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.1)}input[data-v-4ad436c5]:active{--thumb-outline-size: 10px}input[data-v-4ad436c5]:active::-webkit-slider-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.2)}input[data-v-4ad436c5]:active::-moz-range-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.2)}.home-item[data-v-25d19ae0]{margin-bottom:calc(var(--padding) * 4)}.home-item .home-item__header[data-v-25d19ae0]{margin-bottom:calc(var(--padding) * 1)}.song-info-dialog-content .cover[data-v-2a2e2f70]{width:100%;display:block;max-width:240px;margin:0 auto;aspect-ratio:1/1;object-fit:cover;border-radius:var(--border-radius);border:1px solid var(--background-layer-2)}.song-info-dialog-content .info[data-v-2a2e2f70]{text-align:center;font-size:16px;margin:var(--padding) 0}.song-info-dialog-content .info .name[data-v-2a2e2f70]{font-weight:700}.song-info-dialog-content .info .artist[data-v-2a2e2f70]{opacity:.5}*,:after,:before{box-sizing:inherit;padding:0;margin:0}html{line-height:1.15;box-sizing:border-box;font-family:sans-serif}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{line-height:inherit;border:1px solid currentColor}button{overflow:visible;text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;padding:1px 6px}input{overflow:visible}input,textarea{padding:1px}fieldset{border:1px solid currentColor;margin:0 2px}legend{color:inherit;display:table;max-width:100%;white-space:normal}progress{display:inline-block;vertical-align:baseline}select{text-transform:none}textarea{overflow:auto;vertical-align:top}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=color]{background:inherit}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.5}::-webkit-file-upload-button,::-webkit-search-decoration{-webkit-appearance:button;font:inherit}::-moz-focus-inner{border:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}hr{box-sizing:content-box;height:0;color:inherit;overflow:visible}dl,ol,ul{margin:1em 0}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{margin:0}b,strong{font-weight:bolder}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border:0}svg:not(:root){overflow:hidden}table{text-indent:0;border-color:inherit}details{display:block}dialog{background-color:inherit;border:solid;color:inherit;display:block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}dialog:not([open]){display:none}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}:root{--background-layer-1: #fff;--background-layer-2: #f2f2f2;--text-color-value: 51,51,51;--text-color: rgba(var(--text-color-value), 1);--border-color: rgba(var(--text-color-value), .1);--border-focus-color: rgba(var(--text-color-value), .2);--border-width: 1px;--box-shadow: 0 4px 8px rgba(0, 0, 0, .05);--transition-duration: .15s;--transition-timing-function: ease;--transition: var(--transition-duration) var(--transition-timing-function);--primary-color: #007bff;--min-card-width: 128px;--border-radius: 12px;--padding: 8px}body,html{font-size:16px;line-height:1.25;font-family:Lato,Noto Sans TC,sans-serif;color:var(--text-color)}body h1,html h1{font-size:42px;font-weight:400;margin:.2em 0}.setting-item{padding:calc(var(--padding) * 2);margin-bottom:calc(var(--padding) * 2);border:1px solid rgba(var(--text-color-value),.1);box-shadow:var(--box-shadow);border-radius:var(--border-radius);display:flex;align-items:center;gap:calc(var(--padding) * 2)}.setting-item .content{flex:1}.setting-item .content .title{font-weight:700}.setting-item .content .description{opacity:.75}.setting-item .control{width:200px;display:flex;align-items:center;justify-content:flex-end;gap:var(--padding)} +.bottom-player[data-v-b42ec457]{padding:calc(var(--padding) / 2) var(--padding);display:grid;grid-template-columns:1fr 250px 1fr}@media screen and (max-width: 768px){.bottom-player[data-v-b42ec457]{grid-template-columns:1fr auto}.bottom-player .player-control[data-v-b42ec457]{display:none}}.bottom-player .track-info[data-v-b42ec457]{display:flex;align-items:center;width:100%;cursor:pointer}.bottom-player .track-info .cover[data-v-b42ec457]{align-items:center;--cover-size: calc(var(--padding) * 5 + 24px);width:var(--cover-size);height:var(--cover-size);display:flex;flex-direction:column;justify-content:center}@media (max-width: 768px){.bottom-player .track-info .cover[data-v-b42ec457]{--cover-size: calc(var(--padding) * 3.5 + 24px)}}.bottom-player .track-info .cover img[data-v-b42ec457]{width:var(--cover-size);height:var(--cover-size);border-radius:var(--border-radius);object-fit:cover;background-color:#fff}.bottom-player .track-info .track-info-text[data-v-b42ec457]{margin-left:var(--padding);font-size:18px;width:100%;max-width:calc(50vw - 125px - 64px - var(--padding) * 2);overflow:hidden;flex:1}@media (max-width: 768px){.bottom-player .track-info .track-info-text[data-v-b42ec457]{font-size:16px;max-width:calc(100vw - 134px - 52px - var(--padding) * 2)}}.bottom-player .track-info .track-info-text .track-artist[data-v-b42ec457],.bottom-player .track-info .track-info-text .track-name[data-v-b42ec457]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.bottom-player .track-info .track-info-text .track-name[data-v-b42ec457]{font-weight:700}.bottom-player .track-info .track-info-text .track-artist[data-v-b42ec457]{color:var(--text-color);opacity:.75}.bottom-player .track-control[data-v-b42ec457]{display:flex;align-items:center;justify-content:center;gap:calc(var(--padding) / 2)}@media (max-width: 768px){.bottom-player .track-control .time[data-v-b42ec457]{display:none}}.bottom-player .player-control[data-v-b42ec457]{display:flex;align-items:center;justify-content:flex-end;gap:calc(var(--padding) / 2)}@media (max-width: 768px){.bottom-player .player-control[data-v-b42ec457]{display:none}}.modal-mask{position:fixed;z-index:9998;top:0;left:0;width:100%;height:100%;overflow:hidden;background-color:#000000bf;display:table;transition:opacity var(--transition);font-size:14px;cursor:pointer}.modal-wrapper{display:grid;place-content:center;height:100vh;height:100svh;line-break:anywhere}.modal-container{max-height:calc(100svh - 60px);overflow-y:auto;overflow-x:hidden;cursor:default;width:600px;max-width:var(--max-width);margin:0 auto;padding:calc(var(--padding) * 2);background-color:var(--background-layer-1);border-radius:var(--border-radius);box-shadow:var(--box-shadow);transition:all var(--transition);position:sticky;top:0;position:relative}.modal-container .close{position:sticky;cursor:pointer;--size: 36px;transition:all .2s ease;font-size:var(--size);z-index:1;height:var(--size);display:flex;justify-content:flex-end;align-items:center;margin-bottom:calc(var(--size) * -1)}.modal-container .close i{background:#333;color:#fff;border-radius:100em}@media screen and (max-width: 768px){.modal-container .close{--size: 24px}}.modal-container .close:hover{cursor:pointer;opacity:.8}.modal-container .close:active{opacity:.6}.modal-enter-from,.modal-leave-to{opacity:0}.modal-enter-active .modal-container,.modal-leave-active .modal-container{transform:translateY(100px);opacity:0}.empty-state[data-v-91d0b47e]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--text-color)}.empty-state .empty-state__icon[data-v-91d0b47e]{font-size:3rem;margin-bottom:var(--padding)}.empty-state .empty-state__title[data-v-91d0b47e]{font-size:1.5rem;margin-bottom:var(--padding)}.empty-state .empty-state__description[data-v-91d0b47e]{font-size:1rem;color:var(--text-color);opacity:.75}.fullscreen-player[data-v-de85c361]{position:fixed;top:0;left:0;width:100vw;height:100vh;height:100svh;background-color:var(--background-layer-2);z-index:1;transition:transform var(--transition),border-radius var(--transition);overflow:hidden}.fullscreen-player[data-v-de85c361]:not(.show){transform:translateY(100vh);border-radius:var(--border-radius)}.fullscreen-player .fullscreen-player__container[data-v-de85c361]{width:min(1200px,100vw - var(--padding) * 2);padding:var(--padding) calc(var(--padding) * 2);height:100vh;margin:0 auto}.fullscreen-player .fullscreen-player__container .header[data-v-de85c361]{display:flex;align-items:center}.fullscreen-player .fullscreen-player__container .header .left[data-v-de85c361]{flex:1}.fullscreen-player .fullscreen-player__container .header .left .logo[data-v-de85c361]{font-family:Product Sans,sans-serif;font-weight:700;font-size:24px}.fullscreen-player .fullscreen-player__container .content[data-v-de85c361]{display:grid;grid-template-columns:400px 1fr;align-items:center;gap:calc(var(--padding) * 4);margin:calc(var(--padding) * 1) 0;height:calc(100svh - var(--padding) * 4 - 84px)}@media screen and (max-width: 768px){.fullscreen-player .fullscreen-player__container .content[data-v-de85c361]{grid-template-columns:1fr}}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361],.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]{overflow:hidden;overflow-y:auto}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]::-webkit-scrollbar,.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]::-webkit-scrollbar{width:4px}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]::-webkit-scrollbar-track,.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]::-webkit-scrollbar-track{background:transparent}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]::-webkit-scrollbar-thumb,.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]::-webkit-scrollbar-thumb{background:#888;border-radius:2px}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]::-webkit-scrollbar-thumb:hover,.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]::-webkit-scrollbar-thumb:hover{background:#777}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]::-webkit-scrollbar-thumb:active,.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]::-webkit-scrollbar-thumb:active{background:#666}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]::-webkit-scrollbar-button,.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]::-webkit-scrollbar-button{display:none}.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]{max-height:100%}@media screen and (max-width: 768px){.fullscreen-player .fullscreen-player__container .content .left[data-v-de85c361]{display:none}}.fullscreen-player .fullscreen-player__container .content .right[data-v-de85c361]{padding:calc(var(--padding) * 2);background-color:var(--background-layer-1);border-radius:var(--border-radius);height:100%}.fullscreen-player .fullscreen-player__container .content .right.current-page-player[data-v-de85c361]{background-color:var(--background-layer-2);display:flex;align-items:center;justify-content:center}.fullscreen-player .fullscreen-player__container .footer[data-v-de85c361]{display:flex;gap:calc(var(--padding) / 2);justify-content:flex-end}@media screen and (max-width: 768px){.fullscreen-player .fullscreen-player__container .footer[data-v-de85c361]{justify-content:center}}@media screen and (min-width: 768.1px){.fullscreen-player .fullscreen-player__container .footer .p-btn[data-v-de85c361]:first-child{display:none}}.fullscreen-player__list[data-v-5457ebaa]{height:100%;overflow-y:auto}.fullscreen-player__lyric[data-v-6b2ad199]{padding-bottom:25vh}.fullscreen-player__lyric .is-lyric-correct[data-v-6b2ad199]{position:sticky;top:0;z-index:1;border-radius:var(--border-radius);border:1px solid rgba(var(--text-color-value),.1);background-color:var(--background-layer-1);display:flex;gap:var(--padding);box-shadow:var(--box-shadow);transition:transform .2s ease,opacity .2s ease;max-width:512px;margin:0 auto}.fullscreen-player__lyric .is-lyric-correct[data-v-6b2ad199]:not(.show){transform:translateY(-100%) scale(.95);transform-origin:top center;opacity:0;pointer-events:none}.fullscreen-player__lyric .is-lyric-correct .icon[data-v-6b2ad199]{font-size:36px;display:inline-flex;align-items:center;justify-content:center;padding:var(--padding) calc(var(--padding) * 2);border-radius:var(--border-radius) 0 0 var(--border-radius);background-color:var(--background-layer-2)}.fullscreen-player__lyric .is-lyric-correct .content[data-v-6b2ad199]{flex:1;line-height:1.5;padding:var(--padding)}.fullscreen-player__lyric .is-lyric-correct .content .title[data-v-6b2ad199]{font-size:18px;font-weight:700}.fullscreen-player__lyric .is-lyric-correct .content .description[data-v-6b2ad199]{font-size:14px;color:rgba(var(--text-color-value),.5)}.fullscreen-player__lyric .is-lyric-correct .content .actions[data-v-6b2ad199]{margin-top:var(--padding);display:flex;justify-content:flex-end;gap:calc(var(--padding) / 2)}.fullscreen-player__lyric .lyric-item[data-v-6b2ad199]{line-height:2;font-size:24px;opacity:.2;margin:var(--padding);transition:all .3s ease}.fullscreen-player__lyric .lyric-item[data-lyric-set="0"][data-v-6b2ad199]{opacity:1}.fullscreen-player__lyric .lyric-item[data-lyric-set="-1"][data-v-6b2ad199],.fullscreen-player__lyric .lyric-item[data-lyric-set="1"][data-v-6b2ad199]{opacity:.5}.fullscreen-player__lyric .lyric-item[data-lyric-set="-2"][data-v-6b2ad199],.fullscreen-player__lyric .lyric-item[data-lyric-set="2"][data-v-6b2ad199]{opacity:.4875}.fullscreen-player__lyric .lyric-item[data-lyric-set="-3"][data-v-6b2ad199],.fullscreen-player__lyric .lyric-item[data-lyric-set="3"][data-v-6b2ad199]{opacity:.325}.fullscreen-player__lyric .lyric-item[data-lyric-set="-4"][data-v-6b2ad199],.fullscreen-player__lyric .lyric-item[data-lyric-set="4"][data-v-6b2ad199]{opacity:.2}.fullscreen-player__lyric.with-translated .lyric-item[data-v-6b2ad199]{margin-bottom:0}.fullscreen-player__lyric.with-translated .lyric-item.translated[data-v-6b2ad199]{margin-top:0;margin-bottom:var(--padding);font-size:18px}.lyric-search__header[data-v-6b2ad199]{display:flex;align-items:center;gap:var(--padding)}.lyric-search__content[data-v-6b2ad199]{height:400px;overflow-y:auto}.fullscreen-player__player[data-v-e90d75d3]{display:flex;flex-direction:column;gap:var(--padding)}.fullscreen-player__player .cover img[data-v-e90d75d3]{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;border-radius:var(--border-radius);border:1px solid var(--background-layer-2);max-width:400px;background-color:#fff}.fullscreen-player__player .track-info-text .track-name[data-v-e90d75d3],.fullscreen-player__player .track-info-text .track-artist[data-v-e90d75d3]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}.fullscreen-player__player .track-info-text .track-name[data-v-e90d75d3]{font-size:1.5rem;font-weight:700}.fullscreen-player__player .track-info-text .track-artist[data-v-e90d75d3]{font-size:1.25rem;opacity:.75}.fullscreen-player__player .time-items[data-v-e90d75d3]{display:flex;justify-content:space-between}.fullscreen-player__player .time-items .time[data-v-e90d75d3]{opacity:.75}.fullscreen-player__player .track-control[data-v-e90d75d3]{display:flex;align-items:center;justify-content:center;gap:calc(var(--padding) / 2)}.loader[data-v-a89e0edd]{display:flex;align-items:center;justify-content:center;margin-top:30vh}.loader .loader__spinner[data-v-a89e0edd]{width:40px;height:40px;border:4px solid transparent;border-top-color:var(--primary-color);border-radius:50%;animation:spin-a89e0edd .5s linear infinite}@keyframes spin-a89e0edd{to{transform:rotate(360deg)}}.p-btn[data-v-f6ac482c]{color:var(--text-color);background-color:rgba(var(--text-color-value),.075);border:1px solid transparent;padding:var(--padding) calc(var(--padding) * 2);border-radius:var(--border-radius);cursor:pointer;transition:all var(--transition);font-size:14px;line-height:1.5;font-weight:700;display:flex;align-items:center;justify-content:center;gap:var(--padding);box-shadow:inset 0 0 0 100px transparent;text-decoration:none;display:inline-flex}.p-btn[data-v-f6ac482c]:hover{box-shadow:inset 0 0 0 100px rgba(var(--text-color-value),.1);border:1px solid rgba(var(--text-color-value),.1)}.p-btn[data-v-f6ac482c]:active{box-shadow:inset 0 0 0 100px rgba(var(--text-color-value),.2);border:1px solid rgba(var(--text-color-value),.2);transform:scale(.95)}.p-btn[color=primary][data-v-f6ac482c]{background-color:var(--primary-color);color:#fff}.p-btn.outline[data-v-f6ac482c]{background-color:transparent;border-color:rgba(var(--text-color-value),.05)}.p-btn.outline[data-v-f6ac482c]:hover{border-color:rgba(var(--text-color-value),.15)}.p-btn.outline[data-v-f6ac482c]:active{border-color:rgba(var(--text-color-value),.25)}.p-btn.text[data-v-f6ac482c]{background-color:transparent}.p-btn.icon[data-v-f6ac482c]{padding:var(--padding);font-size:24px}.p-btn.block[data-v-f6ac482c]{width:100%;display:block}.p-card[data-v-b94b0d0e]{width:100%;transition:all var(--transition);border-radius:var(--border-radius);color:var(--text-color);text-decoration:none}.p-card[data-v-b94b0d0e]:hover{background-color:var(--background-layer-2);box-shadow:0 0 0 var(--padding) var(--background-layer-2)}.p-card:hover .p-card__img[data-v-b94b0d0e]{filter:brightness(1.05)}.p-card[data-v-b94b0d0e]:active{transform:scale(.95)}.p-card .p-card__img-container[data-v-b94b0d0e]{position:relative;width:100%}.p-card .p-card__img-container .p-card__img[data-v-b94b0d0e]{border-radius:var(--border-radius);width:100%;aspect-ratio:1/1;object-fit:cover;border:1px solid var(--background-layer-2);transition:filter var(--transition)}.p-card .p-card__img-container .p-card__source[data-v-b94b0d0e]{position:absolute;top:calc(var(--padding) / 2);right:calc(var(--padding) / 2);padding:calc(var(--padding) * .5) var(--padding);background-color:var(--background-layer-2);color:var(--text-color);font-size:.75rem;opacity:.75;border-radius:calc(var(--border-radius) - var(--padding) / 2)}.p-card .p-card__content[data-v-b94b0d0e]{padding:calc(var(--padding) / 2) 0}.p-card .p-card__content .p-card__title[data-v-b94b0d0e]{font-size:1em;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.p-card .p-card__content .p-card__description[data-v-b94b0d0e]{color:var(--text-color);opacity:.75;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.p-cards[data-v-12104c8c]{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--min-card-width),1fr));gap:calc(var(--padding) * 2)}.p-input[data-v-e4c17f47]{display:flex;flex-direction:column;width:100%}.p-input+.p-input[data-v-e4c17f47]{margin-top:calc(var(--padding) * 2)}.p-input .p-input__label[data-v-e4c17f47]{display:flex;align-items:center}.p-input .p-input__label .p-input__label-text[data-v-e4c17f47]{font-size:14px;color:var(--text-color);transition:all var(--transition)}.p-input:not(.value):not(:has(input:focus)) .p-input__label[data-v-e4c17f47]{cursor:text}.p-input:not(.value):not(:has(input:focus)) .p-input__label .p-input__label-text[data-v-e4c17f47]{transform:translateY(calc(var(--padding) * 2 + 16px)) translate(var(--padding)) scale(1.1429);opacity:.5}.p-input:has(input:focus) .p-input__label .p-input__label-text[data-v-e4c17f47]{color:var(--primary-color);font-weight:700}.p-input .p-input__input[data-v-e4c17f47]{border:none;outline:none;background:none;width:100%;height:100%;padding:calc(var(--padding) * 1.5) var(--padding);font-size:16px;border-bottom:var(--border-width) solid var(--border-color);transition:border-bottom var(--transition),box-shadow var(--transition);box-shadow:0 1px transparent;border-radius:0;color:var(--text-color)}.p-input .p-input__input[data-v-e4c17f47]:focus{border-color:var(--primary-color);box-shadow:0 1px var(--primary-color)}.p-list-item{padding:calc(var(--padding) * .75) var(--padding);border-radius:var(--border-radius);display:flex;transition:all var(--transition);width:100%;cursor:pointer;color:var(--text-color);text-decoration:none}.p-list-item:hover{background-color:rgba(var(--text-color-value),.05)}.p-list-item:active,.p-list-item.active{background-color:rgba(var(--text-color-value),.1)}.p-list-item .p-list-item__content,.p-list-item .p-list-item__actions{display:flex;gap:var(--padding);align-items:center}.p-list-item .p-list-item__content{flex:1}.p-list-item .p-list-item__img{--size: 42px;width:var(--size);height:var(--size);min-width:var(--size)}.p-list-item .p-list-item__img img{width:100%;height:100%;object-fit:cover;aspect-ratio:1/1;border-radius:var(--border-radius);border:1px solid var(--background-layer-2);background-color:#fff}.p-list-item .p-list-item__content-content .p-list-item__content-title{font-size:1rem;font-weight:700}.p-list-item .p-list-item__content-content .p-list-item__content-description{opacity:.5}.p-list-item .p-list-item__icon-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:var(--border-radius);cursor:pointer;transition:all var(--transition);background-color:transparent;border:1px solid transparent}.p-list-item .p-list-item__icon-btn:hover{background-color:rgba(var(--text-color-value),.05)}.p-list-item .p-list-item__icon-btn:active{background-color:rgba(var(--text-color-value),.1)}.p-list-item .p-list-item__icon-btn i{font-size:24px;color:var(--text-color)}.p-list-items[data-v-c0affab2]{display:grid;grid-template-columns:repeat(2,1fr)}.p-list-items.single-row[data-v-c0affab2]{grid-template-columns:1fr}@media screen and (max-width: 768px){.p-list-items[data-v-c0affab2]{grid-template-columns:1fr}}.p-select[data-v-393de3cf]{width:100%;position:relative}.p-select[data-v-393de3cf]:before{content:"\ea4a";font-family:boxicons!important;position:absolute;right:var(--padding);top:50%;transform:translateY(-50%);pointer-events:none;font-size:1.5em;color:rgba(var(--text-color-value),.5)}.p-select select[data-v-393de3cf]{width:100%;height:100%;border:none;background:transparent;font-size:1rem;color:var(--text-color);appearance:none;color:rgba(var(--text-color-value),1);padding:var(--padding) calc(var(--padding) * 2);padding-right:calc(var(--padding) * 2 + 1.5em);border:1px solid rgba(var(--text-color-value),.1);border-radius:var(--border-radius)}.p-select select[data-v-393de3cf]:focus{outline:none}input[data-v-1aeaf1ae]{-webkit-appearance:none;cursor:pointer;width:100%;height:4px;border-radius:2px;background:linear-gradient(to right,var(--primary-color) var(--value-in-percent),rgba(var(--text-color-value),.1) var(--value-in-percent)) no-repeat;outline:none;border:none;--thumb-outline-size: 5px}input[data-v-1aeaf1ae]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:12px;height:12px;border-radius:100em;background:var(--primary-color);cursor:pointer;transition:all var(--transition);outline:var(--thumb-outline-size) solid transparent;box-shadow:none}input[data-v-1aeaf1ae]::-webkit-slider-runnable-track{-webkit-appearance:none;box-shadow:none;border:none;background:transparent}input[data-v-1aeaf1ae]::-moz-range-thumb{width:12px;height:12px;border-radius:100em;background:var(--primary-color);cursor:pointer;transition:all var(--transition);outline:var(--thumb-outline-size) solid transparent}input[data-v-1aeaf1ae]:hover::-webkit-slider-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.1)}input[data-v-1aeaf1ae]:hover::-moz-range-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.1)}input[data-v-1aeaf1ae]:active{--thumb-outline-size: 10px}input[data-v-1aeaf1ae]:active::-webkit-slider-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.2)}input[data-v-1aeaf1ae]:active::-moz-range-thumb{outline:var(--thumb-outline-size) solid rgba(var(--text-color-value),.2)}.home-item[data-v-1ec0bd1f]{margin-bottom:calc(var(--padding) * 4)}.home-item .home-item__header[data-v-1ec0bd1f]{margin-bottom:calc(var(--padding) * 1)}.song-info-dialog-content .cover[data-v-52a80f23]{width:100%;display:block;max-width:240px;margin:0 auto;aspect-ratio:1/1;object-fit:cover;border-radius:var(--border-radius);border:1px solid var(--background-layer-2)}.song-info-dialog-content .info[data-v-52a80f23]{text-align:center;font-size:16px;margin:var(--padding) 0}.song-info-dialog-content .info .name[data-v-52a80f23]{font-weight:700}.song-info-dialog-content .info .artist[data-v-52a80f23]{opacity:.5}*,:after,:before{box-sizing:inherit;padding:0;margin:0}html{line-height:1.15;box-sizing:border-box;font-family:sans-serif}main{display:block}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{line-height:inherit;border:1px solid currentColor}button{overflow:visible;text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;padding:1px 6px}input{overflow:visible}input,textarea{padding:1px}fieldset{border:1px solid currentColor;margin:0 2px}legend{color:inherit;display:table;max-width:100%;white-space:normal}progress{display:inline-block;vertical-align:baseline}select{text-transform:none}textarea{overflow:auto;vertical-align:top}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=color]{background:inherit}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.5}::-webkit-file-upload-button,::-webkit-search-decoration{-webkit-appearance:button;font:inherit}::-moz-focus-inner{border:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}hr{box-sizing:content-box;height:0;color:inherit;overflow:visible}dl,ol,ul{margin:1em 0}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{margin:0}b,strong{font-weight:bolder}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border:0}svg:not(:root){overflow:hidden}table{text-indent:0;border-color:inherit}details{display:block}dialog{background-color:inherit;border:solid;color:inherit;display:block;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}dialog:not([open]){display:none}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}:root{--background-layer-1: #fff;--background-layer-2: #f2f2f2;--text-color-value: 51,51,51;--text-color: rgba(var(--text-color-value), 1);--border-color: rgba(var(--text-color-value), .1);--border-focus-color: rgba(var(--text-color-value), .2);--border-width: 1px;--box-shadow: 0 4px 8px rgba(0, 0, 0, .05);--transition-duration: .15s;--transition-timing-function: ease;--transition: var(--transition-duration) var(--transition-timing-function);--primary-color: #007bff;--min-card-width: 128px;--border-radius: 12px;--padding: 8px}body,html{font-size:16px;line-height:1.25;font-family:Lato,Noto Sans TC,sans-serif;color:var(--text-color)}body h1,html h1{font-size:42px;font-weight:400;margin:.2em 0}.setting-item{padding:calc(var(--padding) * 2);margin-bottom:calc(var(--padding) * 2);border:1px solid rgba(var(--text-color-value),.1);box-shadow:var(--box-shadow);border-radius:var(--border-radius);display:flex;align-items:center;gap:calc(var(--padding) * 2)}.setting-item .content{flex:1}.setting-item .content .title{font-weight:700}.setting-item .content .description{opacity:.75}.setting-item .control{width:200px;display:flex;align-items:center;justify-content:flex-end;gap:var(--padding)} diff --git a/public/assets/user-0ade28ac.js b/public/assets/user-0f5f0501.js similarity index 58% rename from public/assets/user-0ade28ac.js rename to public/assets/user-0f5f0501.js index 1456cd0..d2df612 100644 --- a/public/assets/user-0ade28ac.js +++ b/public/assets/user-0f5f0501.js @@ -1 +1 @@ -import{h as o,i as t}from"./index-d10ff82d.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-dca75ef4.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 32b11c9..0eb407f 100644 --- a/public/index.html +++ b/public/index.html @@ -18,8 +18,8 @@ - - + + diff --git a/public/sw.js b/public/sw.js index 951275b..a66758c 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-b3f1d5c1.js",revision:null},{url:"assets/Album-56482e8c.css",revision:null},{url:"assets/Album-da9305e8.js",revision:null},{url:"assets/Albums-f757822a.js",revision:null},{url:"assets/Artists-07c42e42.js",revision:null},{url:"assets/default-275421d5.js",revision:null},{url:"assets/default-8ab79025.css",revision:null},{url:"assets/empty-7b315d63.js",revision:null},{url:"assets/Folders-cfd0ef30.js",revision:null},{url:"assets/index-5118a9b6.js",revision:null},{url:"assets/Index-8a89df71.js",revision:null},{url:"assets/index-93a3d630.css",revision:null},{url:"assets/index-d10ff82d.js",revision:null},{url:"assets/Library-95f835bf.js",revision:null},{url:"assets/Log-a5375869.js",revision:null},{url:"assets/Log-c9db7119.css",revision:null},{url:"assets/Login-043232fe.js",revision:null},{url:"assets/Login-d18de0a5.css",revision:null},{url:"assets/Pins-8f3146b9.js",revision:null},{url:"assets/Playlists-1cea1c41.js",revision:null},{url:"assets/Search-717321c2.js",revision:null},{url:"assets/Search-f3c2d4ea.css",revision:null},{url:"assets/System-18e7d4b8.js",revision:null},{url:"assets/Theme-08e39d68.css",revision:null},{url:"assets/Theme-fcdafdad.js",revision:null},{url:"assets/user-0ade28ac.js",revision:null},{url:"assets/User-23ef9b1b.js",revision:null},{url:"assets/Users-2d2264f7.js",revision:null},{url:"index.html",revision:"15b2f6e442c2320381067319db535608"},{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-e0782b83"],(function(s){"use strict";self.addEventListener("message",(s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()})),s.precacheAndRoute([{url:"assets/404-20688794.js",revision:null},{url:"assets/Album-aa78e208.js",revision:null},{url:"assets/Album-e008826f.css",revision:null},{url:"assets/Albums-c7763ed2.js",revision:null},{url:"assets/Artists-61b7c148.js",revision:null},{url:"assets/default-b28e542e.css",revision:null},{url:"assets/default-fd7f9336.js",revision:null},{url:"assets/empty-7c673d1a.js",revision:null},{url:"assets/Folders-fe28df3b.js",revision:null},{url:"assets/Index-05caf915.js",revision:null},{url:"assets/index-b5081660.js",revision:null},{url:"assets/index-dca75ef4.js",revision:null},{url:"assets/index-e7eb2d5b.css",revision:null},{url:"assets/Library-50cabd24.js",revision:null},{url:"assets/Log-af7ff627.css",revision:null},{url:"assets/Log-f571c16c.js",revision:null},{url:"assets/Login-9a5467f5.css",revision:null},{url:"assets/Login-baee24d6.js",revision:null},{url:"assets/Pins-b11bc254.js",revision:null},{url:"assets/Playlists-84b6ad72.js",revision:null},{url:"assets/Search-08b1b292.css",revision:null},{url:"assets/Search-c123552c.js",revision:null},{url:"assets/System-12d00b92.js",revision:null},{url:"assets/Theme-08e39d68.css",revision:null},{url:"assets/Theme-1466c3ad.js",revision:null},{url:"assets/user-0f5f0501.js",revision:null},{url:"assets/User-17c9f6e4.js",revision:null},{url:"assets/Users-56523967.js",revision:null},{url:"index.html",revision:"759960c3cc14b9fc913a9980a4394a6b"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"favicon.ico",revision:"de3528fc1966170b009743368e6fc4b3"},{url:"img/apple-touch-icon.png",revision:"bf1ff7241b39d4a945cff48130fd6af8"},{url:"img/icon.svg",revision:"7445ef5fa3c2c126f431089e9c648efd"},{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")))})); diff --git a/public/workbox-7369c0e1.js b/public/workbox-e0782b83.js similarity index 100% rename from public/workbox-7369c0e1.js rename to public/workbox-e0782b83.js