From 297c35ca2f2f0a3cfaa2bd53005be175ce167967 Mon Sep 17 00:00:00 2001 From: oscarvx00 Date: Sun, 11 Jun 2023 14:55:02 +0200 Subject: [PATCH 01/22] Playlist url accepted --- src/model/search.js | 6 ++++-- src/views/Front.vue | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/model/search.js b/src/model/search.js index ce4eff1..f92f260 100644 --- a/src/model/search.js +++ b/src/model/search.js @@ -15,7 +15,7 @@ function useSearchManager() { function isValidSearch(str) { if ( str === '' || - str.includes('://open.spotify.com/playlist/') || + //str.includes('://open.spotify.com/playlist/') || str.includes('://open.spotify.com/album/') || str.includes('://open.spotify.com/show/') || str.includes('://open.spotify.com/artist/') @@ -25,7 +25,9 @@ function useSearchManager() { return true } function isValidURL(str) { - if (str.includes('://open.spotify.com/track/')) { + if (str.includes('://open.spotify.com/track/') || + str.includes('://open.spotify.com/playlist/') + ) { return true } return false diff --git a/src/views/Front.vue b/src/views/Front.vue index d99a301..2c73041 100644 --- a/src/views/Front.vue +++ b/src/views/Front.vue @@ -12,13 +12,13 @@ export default { setup() { onMounted(() => { window.scroll(0, 0) - API.check_for_update().then((resp) => { + /*API.check_for_update().then((resp) => { if (Boolean(resp.data) === true) { alert("This version is no longer supported, please update https://github.com/spotDL/spotify-downloader") } }).catch((error) => { alert("This version is no longer supported, please update https://github.com/spotDL/spotify-downloader") - }) + })*/ }) return {} }, From 3a43a6b58ccd2ce56cd9f634e68f6d099b270e0b Mon Sep 17 00:00:00 2001 From: oscarvx00 Date: Sun, 11 Jun 2023 14:55:43 +0200 Subject: [PATCH 02/22] Built with playlist url accepted --- dist/assets/{index-8ce425b2.css => index-711a1c65.css} | 2 +- dist/assets/{index-1987eb7b.js => index-c428f059.js} | 8 ++++---- dist/index.html | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) rename dist/assets/{index-8ce425b2.css => index-711a1c65.css} (99%) rename dist/assets/{index-1987eb7b.js => index-c428f059.js} (73%) diff --git a/dist/assets/index-8ce425b2.css b/dist/assets/index-711a1c65.css similarity index 99% rename from dist/assets/index-8ce425b2.css rename to dist/assets/index-711a1c65.css index 0658a2b..d046f7e 100644 --- a/dist/assets/index-8ce425b2.css +++ b/dist/assets/index-711a1c65.css @@ -1 +1 @@ -.center[data-v-6db37697],.center[data-v-a8dd849c]{text-align:center;margin-left:auto;margin-right:auto}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=spotdl-dark]{--p: 141.33 72.581% 48.627%;--pf: 141.33 72.581% 38.902%;--sf: 0 0% 80%;--af: 0 0% 80%;--nf: 0 0% 23.843%;--bc: 0 0% 82.902%;--sc: 0 0% 20%;--ac: 0 0% 20%;--nc: 0 0% 85.961%;--inc: 198 100% 12%;--suc: 141.33 100% 9.7255%;--wac: 42.778 100% 11.216%;--erc: 0 100% 14.196%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--pc: 0 0% 100%;--s: 0 0% 100%;--a: 0 0% 100%;--n: 0 0% 29.804%;--b1: 0 0% 14.51%;--b2: 0 0% 14.51%;--b3: 0 0% 7.0588%;--in: 198 93.137% 60%;--su: 141.33 72.581% 48.627%;--wa: 42.778 96.429% 56.078%;--er: 0 90.541% 70.98%;--rounded-btn: 1.9rem}[data-theme=spotdl-light]{--p: 141.33 72.581% 48.627%;--pf: 141.33 72.581% 38.902%;--sf: 0 0% 29.176%;--af: 141.2 80.702% 35.765%;--nf: 0 0% 23.843%;--bc: 0 0% 20%;--sc: 0 0% 87.294%;--ac: 141.2 100% 8.9412%;--nc: 0 0% 85.961%;--inc: 198 100% 12%;--suc: 141.33 100% 9.7255%;--wac: 42.778 100% 11.216%;--erc: 0 100% 14.196%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--pc: 0 0% 100%;--s: 0 0% 36.471%;--a: 141.2 80.702% 44.706%;--n: 0 0% 29.804%;--b1: 0 0% 100%;--b2: 0 0% 100%;--b3: 0 0% 100%;--in: 198 93.137% 60%;--su: 141.33 72.581% 48.627%;--wa: 42.778 96.429% 56.078%;--er: 0 90.541% 70.98%;--rounded-btn: 1.9rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:1.25rem;font-size:.875rem;line-height:1.25rem;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--n) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity));border-radius:var(--rounded-badge, 1.9rem)}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled]{pointer-events:none}.btn-square{height:3rem;width:3rem;padding:0}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));opacity:.75;border-radius:var(--rounded-box, 1rem)}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.carousel{display:flex;overflow-x:scroll;scroll-snap-type:x mandatory;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none}.carousel-item{box-sizing:content-box;display:flex;flex:none;scroll-snap-align:start}.carousel-center .carousel-item{scroll-snap-align:center}.carousel-end .carousel-item{scroll-snap-align:end}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;row-gap:2.5rem;column-gap:1rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.form-control{display:flex;flex-direction:column}.label{display:flex;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.hero{display:grid;width:100%;place-items:center;background-size:cover;background-position:center}.hero>*{grid-column-start:1;grid-row-start:1}.hero-content{z-index:0;display:flex;align-items:center;justify-content:center;max-width:80rem;gap:1rem;padding:1rem}.indicator{position:relative;display:inline-flex;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.input{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.modal{pointer-events:none;visibility:hidden;position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;appearance:none;opacity:0}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar > *){display:inline-flex;align-items:center}.navbar-start{width:50%;justify-content:flex-start}.navbar-center{flex-shrink:0}.navbar-end{width:50%;justify-content:flex-end}.progress{position:relative;width:100%;appearance:none;overflow:hidden;height:.5rem;border-radius:var(--rounded-box, 1rem)}.radial-progress{position:relative;display:inline-grid;height:var(--size);width:var(--size);place-content:center;border-radius:9999px;background-color:transparent;vertical-align:middle;box-sizing:content-box;--value: 0;--size: 5rem;--thickness: calc(var(--size) / 10)}.radial-progress::-moz-progress-bar{appearance:none;background-color:transparent}.radial-progress::-webkit-progress-value{appearance:none;background-color:transparent}.radial-progress::-webkit-progress-bar{appearance:none;background-color:transparent}.radial-progress:before,.radial-progress:after{position:absolute;border-radius:9999px;content:""}.radial-progress:before{top:0px;right:0px;bottom:0px;left:0px;background:radial-gradient(farthest-side,currentColor 98%,#0000) top/var(--thickness) var(--thickness) no-repeat,conic-gradient(currentColor calc(var(--value) * 1%),#0000 0);-webkit-mask:radial-gradient(farthest-side,#0000 calc(99% - var(--thickness)),#000 calc(100% - var(--thickness)));mask:radial-gradient(farthest-side,#0000 calc(99% - var(--thickness)),#000 calc(100% - var(--thickness)))}.radial-progress:after{inset:calc(50% - var(--thickness) / 2);transform:rotate(calc(var(--value) * 3.6deg - 90deg)) translate(calc(var(--size) / 2 - 50%));background-color:currentColor}.select{display:inline-flex;flex-shrink:0;cursor:pointer;user-select:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stat-figure{grid-column-start:2;grid-row:span 3 / span 3;grid-row-start:1;place-self:center;justify-self:end}.swap{position:relative;display:inline-grid;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.toggle{flex-shrink:0;--tglbg: hsl(var(--b1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .5;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-badge, 1.9rem);transition:background,box-shadow var(--animation-input, .2s) ease-in-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-info{--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.alert-success{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.badge-secondary{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.badge-error{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.badge-outline.badge-secondary{--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.badge-outline.badge-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline .badge{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary .badge{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent .badge{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--a) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-secondary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-accent .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-info .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--in) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.btn-outline.btn-success .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-warning .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--wa) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.btn-outline.btn-error .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--ac) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-primary:hover,.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn-secondary{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-secondary:hover,.btn-secondary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--sf, var(--s)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity))}.btn-secondary:focus-visible{outline:2px solid hsl(var(--s))}.btn-accent{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--a) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-accent:hover,.btn-accent.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity))}.btn-accent:focus-visible{outline:2px solid hsl(var(--a))}.btn-error{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-error:hover,.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity))}.btn-error:focus-visible{outline:2px solid hsl(var(--er))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline{border-color:currentColor;background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.btn-outline:hover,.btn-outline.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--b1) / var(--tw-text-opacity))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover,.btn-outline.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary{--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover,.btn-outline.btn-secondary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--sf, var(--s)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent{--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover,.btn-outline.btn-accent.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-outline.btn-success{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-success:hover,.btn-outline.btn-success.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-info{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.btn-outline.btn-info:hover,.btn-outline.btn-info.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--in) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-warning{--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.btn-outline.btn-warning:hover,.btn-outline.btn-warning.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--wa) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--wa) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--wac, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline.btn-error:hover,.btn-outline.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered,.card-bordered{border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.carousel::-webkit-scrollbar{display:none}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-secondary{outline:2px solid hsl(var(--s))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-accent{outline:2px solid hsl(var(--a))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-error{outline:2px solid hsl(var(--er))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.footer-title{margin-bottom:.5rem;font-weight:700;text-transform:uppercase;opacity:.5}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.progress::-moz-progress-bar{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity))}.progress:indeterminate:after{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));content:"";position:absolute;top:0px;bottom:0px;left:-40%;width:33.333333%;border-radius:var(--rounded-box, 1rem);animation:progress-loading 5s infinite ease-in-out}.progress::-webkit-progress-bar{background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;border-radius:var(--rounded-box, 1rem)}.progress::-webkit-progress-value{--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));border-radius:var(--rounded-box, 1rem)}@keyframes progress-loading{50%{left:107%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}.swap-rotate .swap-on,.swap-rotate .swap-indeterminate,.swap-rotate input:indeterminate~.swap-on{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate.swap-active .swap-off,.swap-rotate input:indeterminate~.swap-off{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate.swap-active .swap-on,.swap-rotate input:indeterminate~.swap-indeterminate{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-flip .swap-on,.swap-flip .swap-indeterminate,.swap-flip input:indeterminate~.swap-on{transform:rotateY(180deg);backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-off,.swap-flip.swap-active .swap-off,.swap-flip input:indeterminate~.swap-off{transform:rotateY(-180deg);backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-on,.swap-flip.swap-active .swap-on,.swap-flip input:indeterminate~.swap-indeterminate{transform:rotateY(0)}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.toggle:checked,.toggle[checked=true],.toggle[aria-checked=true]{--handleoffsetcalculator: var(--handleoffset);--tw-border-opacity: 1;--tw-bg-opacity: 1}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true],[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-border-opacity: 1;--tw-bg-opacity: 1;box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--bc) / var(--tw-border-opacity));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px hsl(var(--bc)) inset, var(--handleoffsetcalculator) 0 0 3px hsl(var(--bc)) inset}.rounded-box{border-radius:var(--rounded-box, 1rem)}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-md){height:3rem;width:3rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.indicator :where(.indicator-item){right:0px;left:auto;top:0px;bottom:auto;--tw-translate-x: 50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){right:auto;left:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){right:50%;left:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){right:0px;left:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){top:auto;bottom:0px;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){top:50%;bottom:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){top:0px;bottom:auto;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.bottom-0{bottom:0px}.right-2{right:.5rem}.top-2{top:.5rem}.m-2{margin:.5rem}.m-4{margin:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-0{margin-left:0;margin-right:0}.mb-5{margin-bottom:1.25rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-6{height:1.5rem}.h-48{height:12rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-6{width:1.5rem}.w-8{width:2rem}.w-32{width:8rem}.w-10{width:2.5rem}.w-96{width:24rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.grid-flow-col{grid-auto-flow:column}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.border-4{border-width:4px}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.bg-base-300{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.bg-neutral{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.stroke-info{stroke:hsl(var(--in))}.stroke-current{stroke:currentColor}.object-contain{object-fit:contain}.p-10{padding:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-base-content{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.text-primary-content{--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.text-neutral-content{--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 640px){.sm\:flex{display:flex}.sm\:hidden{display:none}}@media (min-width: 768px){.md\:max-h-fit{max-height:fit-content}.md\:max-h-44{max-height:11rem}.md\:card-side{align-items:stretch;flex-direction:row}.md\:card-side :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:unset}.md\:card-side :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:inherit}.md\:card-side figure>*{max-width:unset}:where(.md\:card-side figure > *){width:100%;height:100%;object-fit:cover}} +.center[data-v-a94c0599],.center[data-v-e0cba7f6]{text-align:center;margin-left:auto;margin-right:auto}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:hsla(var(--b1) / var(--tw-bg-opacity, 1));color:hsla(var(--bc) / var(--tw-text-opacity, 1))}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}}[data-theme=light]{color-scheme:light;--pf: 258.89 94.378% 40.941%;--sf: 314 100% 37.647%;--af: 174 60% 40.784%;--nf: 219 14.085% 22.275%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 258.89 94.378% 51.176%;--pc: 0 0% 100%;--s: 314 100% 47.059%;--sc: 0 0% 100%;--a: 174 60% 50.98%;--ac: 174.71 43.59% 15.294%;--n: 219 14.085% 27.843%;--nc: 0 0% 100%;--b1: 0 0% 100%;--b2: 0 0% 94.902%;--b3: 180 1.9608% 90%;--bc: 215 27.907% 16.863%}[data-theme=dark]{color-scheme:dark;--pf: 262.35 80.315% 40.157%;--sf: 315.75 70.196% 40%;--af: 174.69 70.335% 32.784%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-btn: .5rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 262.35 80.315% 50.196%;--pc: 0 0% 100%;--s: 315.75 70.196% 50%;--sc: 0 0% 100%;--a: 174.69 70.335% 40.98%;--ac: 0 0% 100%;--n: 218.18 18.033% 11.961%;--nf: 222.86 17.073% 8.0392%;--nc: 220 13.376% 69.216%;--b1: 220 17.647% 20%;--b2: 220 17.241% 17.059%;--b3: 218.57 17.949% 15.294%;--bc: 220 13.376% 69.216%}[data-theme=forest]{color-scheme:dark;--pf: 141.04 71.963% 33.569%;--sf: 140.98 74.694% 38.431%;--af: 35.148 68.98% 41.569%;--nf: 0 9.6774% 4.8627%;--b2: 0 12.195% 7.2353%;--b3: 0 12.195% 6.5118%;--in: 198 93% 60%;--su: 158 64% 52%;--wa: 43 96% 56%;--er: 0 91% 71%;--bc: 0 11.727% 81.608%;--sc: 140.98 100% 9.6078%;--ac: 35.148 100% 10.392%;--nc: 0 6.8894% 81.216%;--inc: 198 100% 12%;--suc: 158 100% 10%;--wac: 43 100% 11%;--erc: 0 100% 14%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--p: 141.04 71.963% 41.961%;--pc: 140.66 100% 88.039%;--s: 140.98 74.694% 48.039%;--a: 35.148 68.98% 51.961%;--n: 0 9.6774% 6.0784%;--b1: 0 12.195% 8.0392%;--rounded-btn: 1.9rem}[data-theme=spotdl-dark]{--p: 141.33 72.581% 48.627%;--pf: 141.33 72.581% 38.902%;--sf: 0 0% 80%;--af: 0 0% 80%;--nf: 0 0% 23.843%;--bc: 0 0% 82.902%;--sc: 0 0% 20%;--ac: 0 0% 20%;--nc: 0 0% 85.961%;--inc: 198 100% 12%;--suc: 141.33 100% 9.7255%;--wac: 42.778 100% 11.216%;--erc: 0 100% 14.196%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--pc: 0 0% 100%;--s: 0 0% 100%;--a: 0 0% 100%;--n: 0 0% 29.804%;--b1: 0 0% 14.51%;--b2: 0 0% 14.51%;--b3: 0 0% 7.0588%;--in: 198 93.137% 60%;--su: 141.33 72.581% 48.627%;--wa: 42.778 96.429% 56.078%;--er: 0 90.541% 70.98%;--rounded-btn: 1.9rem}[data-theme=spotdl-light]{--p: 141.33 72.581% 48.627%;--pf: 141.33 72.581% 38.902%;--sf: 0 0% 29.176%;--af: 141.2 80.702% 35.765%;--nf: 0 0% 23.843%;--bc: 0 0% 20%;--sc: 0 0% 87.294%;--ac: 141.2 100% 8.9412%;--nc: 0 0% 85.961%;--inc: 198 100% 12%;--suc: 141.33 100% 9.7255%;--wac: 42.778 100% 11.216%;--erc: 0 100% 14.196%;--rounded-box: 1rem;--rounded-badge: 1.9rem;--animation-btn: .25s;--animation-input: .2s;--btn-text-case: uppercase;--btn-focus-scale: .95;--border-btn: 1px;--tab-border: 1px;--tab-radius: .5rem;--pc: 0 0% 100%;--s: 0 0% 36.471%;--a: 141.2 80.702% 44.706%;--n: 0 0% 29.804%;--b1: 0 0% 100%;--b2: 0 0% 100%;--b3: 0 0% 100%;--in: 198 93.137% 60%;--su: 141.33 72.581% 48.627%;--wa: 42.778 96.429% 56.078%;--er: 0 90.541% 70.98%;--rounded-btn: 1.9rem}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.alert{display:flex;width:100%;flex-direction:column;align-items:center;justify-content:space-between;gap:1rem;--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));padding:1rem;border-radius:var(--rounded-box, 1rem)}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}@media (min-width: 768px){.alert{flex-direction:row}.alert>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}}.alert>:where(*){display:flex;align-items:center;gap:.5rem}.avatar.placeholder>div{display:flex;align-items:center;justify-content:center}.badge{display:inline-flex;align-items:center;justify-content:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:1.25rem;font-size:.875rem;line-height:1.25rem;width:fit-content;padding-left:.563rem;padding-right:.563rem;border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--n) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity));border-radius:var(--rounded-badge, 1.9rem)}.btn{display:inline-flex;flex-shrink:0;cursor:pointer;user-select:none;flex-wrap:wrap;align-items:center;justify-content:center;border-color:transparent;border-color:hsl(var(--n) / var(--tw-border-opacity));text-align:center;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);height:3rem;padding-left:1rem;padding-right:1rem;font-size:.875rem;line-height:1.25rem;line-height:1em;min-height:3rem;font-weight:600;text-transform:uppercase;text-transform:var(--btn-text-case, uppercase);text-decoration-line:none;border-width:var(--border-btn, 1px);animation:button-pop var(--animation-btn, .25s) ease-out;--tw-border-opacity: 1;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-disabled,.btn[disabled]{pointer-events:none}.btn-square{height:3rem;width:3rem;padding:0}.btn-circle{height:3rem;width:3rem;border-radius:9999px;padding:0}.btn.loading,.btn.loading:hover{pointer-events:none}.btn.loading:before{margin-right:.5rem;height:1rem;width:1rem;border-radius:9999px;border-width:2px;animation:spin 2s linear infinite;content:"";border-top-color:transparent;border-left-color:transparent;border-bottom-color:currentColor;border-right-color:currentColor}@media (prefers-reduced-motion: reduce){.btn.loading:before{animation:spin 10s linear infinite}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.btn-group>input[type=radio].btn{appearance:none}.btn-group>input[type=radio].btn:before{content:attr(data-title)}.card{position:relative;display:flex;flex-direction:column;border-radius:var(--rounded-box, 1rem)}.card:focus{outline:2px solid transparent;outline-offset:2px}.card-body{display:flex;flex:1 1 auto;flex-direction:column;padding:var(--padding-card, 2rem);gap:.5rem}.card-body :where(p){flex-grow:1}.card-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem}.card figure{display:flex;align-items:center;justify-content:center}.card.image-full{display:grid}.card.image-full:before{position:relative;content:"";z-index:10;--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));opacity:.75;border-radius:var(--rounded-box, 1rem)}.card.image-full:before,.card.image-full>*{grid-column-start:1;grid-row-start:1}.card.image-full>figure img{height:100%;object-fit:cover}.card.image-full>.card-body{position:relative;z-index:20;--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.carousel{display:flex;overflow-x:scroll;scroll-snap-type:x mandatory;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none}.carousel-item{box-sizing:content-box;display:flex;flex:none;scroll-snap-align:start}.carousel-center .carousel-item{scroll-snap-align:center}.carousel-end .carousel-item{scroll-snap-align:end}.checkbox{flex-shrink:0;--chkbg: var(--bc);--chkfg: var(--b1);height:1.5rem;width:1.5rem;cursor:pointer;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;border-radius:var(--rounded-btn, .5rem)}.footer{display:grid;width:100%;grid-auto-flow:row;place-items:start;row-gap:2.5rem;column-gap:1rem;font-size:.875rem;line-height:1.25rem}.footer>*{display:grid;place-items:start;gap:.5rem}@media (min-width: 48rem){.footer{grid-auto-flow:column}.footer-center{grid-auto-flow:row dense}}.form-control{display:flex;flex-direction:column}.label{display:flex;user-select:none;align-items:center;justify-content:space-between;padding:.5rem .25rem}.hero{display:grid;width:100%;place-items:center;background-size:cover;background-position:center}.hero>*{grid-column-start:1;grid-row-start:1}.hero-content{z-index:0;display:flex;align-items:center;justify-content:center;max-width:80rem;gap:1rem;padding:1rem}.indicator{position:relative;display:inline-flex;width:max-content}.indicator :where(.indicator-item){z-index:1;position:absolute;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.input{flex-shrink:1;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);height:3rem;padding-left:1rem;padding-right:1rem;font-size:1rem;line-height:2;line-height:1.5rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));border-radius:var(--rounded-btn, .5rem)}.input-group>.input{isolation:isolate}.input-group>*,.input-group>.input,.input-group>.textarea,.input-group>.select{border-radius:0}.link{cursor:pointer;text-decoration-line:underline}.modal{pointer-events:none;visibility:hidden;position:fixed;top:0px;right:0px;bottom:0px;left:0px;display:flex;justify-content:center;opacity:0;z-index:999;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));--tw-bg-opacity: .4;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity,visibility;overflow-y:hidden;overscroll-behavior:contain}:where(.modal){align-items:center}.modal-box{max-height:calc(100vh - 5em);--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));padding:1.5rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);width:91.666667%;max-width:32rem;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-top-left-radius:var(--rounded-box, 1rem);border-top-right-radius:var(--rounded-box, 1rem);border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem);box-shadow:0 25px 50px -12px #00000040;overflow-y:auto;overscroll-behavior:contain}.modal-open,.modal:target,.modal-toggle:checked+.modal{pointer-events:auto;visibility:visible;opacity:1}.modal-action{display:flex;margin-top:1.5rem;justify-content:flex-end}.modal-toggle{position:fixed;height:0px;width:0px;appearance:none;opacity:0}.navbar{display:flex;align-items:center;padding:var(--navbar-padding, .5rem);min-height:4rem;width:100%}:where(.navbar > *){display:inline-flex;align-items:center}.navbar-start{width:50%;justify-content:flex-start}.navbar-center{flex-shrink:0}.navbar-end{width:50%;justify-content:flex-end}.progress{position:relative;width:100%;appearance:none;overflow:hidden;height:.5rem;border-radius:var(--rounded-box, 1rem)}.radial-progress{position:relative;display:inline-grid;height:var(--size);width:var(--size);place-content:center;border-radius:9999px;background-color:transparent;vertical-align:middle;box-sizing:content-box;--value: 0;--size: 5rem;--thickness: calc(var(--size) / 10)}.radial-progress::-moz-progress-bar{appearance:none;background-color:transparent}.radial-progress::-webkit-progress-value{appearance:none;background-color:transparent}.radial-progress::-webkit-progress-bar{appearance:none;background-color:transparent}.radial-progress:before,.radial-progress:after{position:absolute;border-radius:9999px;content:""}.radial-progress:before{top:0px;right:0px;bottom:0px;left:0px;background:radial-gradient(farthest-side,currentColor 98%,#0000) top/var(--thickness) var(--thickness) no-repeat,conic-gradient(currentColor calc(var(--value) * 1%),#0000 0);-webkit-mask:radial-gradient(farthest-side,#0000 calc(99% - var(--thickness)),#000 calc(100% - var(--thickness)));mask:radial-gradient(farthest-side,#0000 calc(99% - var(--thickness)),#000 calc(100% - var(--thickness)))}.radial-progress:after{inset:calc(50% - var(--thickness) / 2);transform:rotate(calc(var(--value) * 3.6deg - 90deg)) translate(calc(var(--size) / 2 - 50%));background-color:currentColor}.select{display:inline-flex;flex-shrink:0;cursor:pointer;user-select:none;appearance:none;height:3rem;padding-left:1rem;padding-right:2.5rem;font-size:.875rem;line-height:1.25rem;line-height:2;min-height:3rem;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: 0;--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity));font-weight:600;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-btn, .5rem);background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) calc(1px + 50%),calc(100% - 16px) calc(1px + 50%);background-size:4px 4px,4px 4px;background-repeat:no-repeat}.select[multiple]{height:auto}.stat-figure{grid-column-start:2;grid-row:span 3 / span 3;grid-row-start:1;place-self:center;justify-self:end}.swap{position:relative;display:inline-grid;user-select:none;place-content:center;cursor:pointer}.swap>*{grid-column-start:1;grid-row-start:1;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:transform,opacity}.swap input{appearance:none}.swap .swap-on,.swap .swap-indeterminate,.swap input:indeterminate~.swap-on{opacity:0}.swap input:checked~.swap-off,.swap.swap-active .swap-off,.swap input:indeterminate~.swap-off{opacity:0}.swap input:checked~.swap-on,.swap-active .swap-on,.swap input:indeterminate~.swap-indeterminate{opacity:1}.toggle{flex-shrink:0;--tglbg: hsl(var(--b1));--handleoffset: 1.5rem;--handleoffsetcalculator: calc(var(--handleoffset) * -1);--togglehandleborder: 0 0;height:1.5rem;width:3rem;cursor:pointer;appearance:none;border-width:1px;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-border-opacity: .2;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .5;transition-duration:.3s;transition-timing-function:cubic-bezier(.4,0,.2,1);border-radius:var(--rounded-badge, 1.9rem);transition:background,box-shadow var(--animation-input, .2s) ease-in-out;box-shadow:var(--handleoffsetcalculator) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset,var(--togglehandleborder)}.alert-info{--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.alert-success{--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.alert-error{--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.badge-secondary{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.badge-error{border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.badge-outline.badge-secondary{--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.badge-outline.badge-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline .badge{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary .badge{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary .badge{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent .badge{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--a) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-outline .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));background-color:transparent}.btn-outline.btn-primary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-secondary .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-accent .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-info .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--in) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.btn-outline.btn-success .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-warning .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--wa) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.btn-outline.btn-error .badge-outline{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.btn-outline:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--pc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--sc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--ac) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover .badge.outline{--tw-border-opacity: 1;border-color:hsl(var(--ac) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btm-nav>* .label{font-size:1rem;line-height:1.5rem}.btn:active:hover,.btn:active:focus{animation:none;transform:scale(var(--btn-focus-scale, .95))}.btn:hover,.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--nf, var(--n)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity))}.btn:focus-visible{outline:2px solid hsl(var(--nf));outline-offset:2px}.btn-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-primary:hover,.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity))}.btn-primary:focus-visible{outline:2px solid hsl(var(--p))}.btn-secondary{--tw-border-opacity: 1;border-color:hsl(var(--s) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--s) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-secondary:hover,.btn-secondary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--sf, var(--s)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity))}.btn-secondary:focus-visible{outline:2px solid hsl(var(--s))}.btn-accent{--tw-border-opacity: 1;border-color:hsl(var(--a) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--a) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-accent:hover,.btn-accent.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity))}.btn-accent:focus-visible{outline:2px solid hsl(var(--a))}.btn-error{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-error:hover,.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity))}.btn-error:focus-visible{outline:2px solid hsl(var(--er))}.btn.glass:hover,.btn.glass.btn-active{--glass-opacity: 25%;--glass-border-opacity: 15%}.btn.glass:focus-visible{outline:2px solid currentColor}.btn-ghost{border-width:1px;border-color:transparent;background-color:transparent;color:currentColor}.btn-ghost:hover,.btn-ghost.btn-active{--tw-border-opacity: 0;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-bg-opacity: .2}.btn-ghost:focus-visible{outline:2px solid currentColor}.btn-outline{border-color:currentColor;background-color:transparent;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.btn-outline:hover,.btn-outline.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--bc) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--b1) / var(--tw-text-opacity))}.btn-outline.btn-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.btn-outline.btn-primary:hover,.btn-outline.btn-primary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--pf, var(--p)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--pf, var(--p)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-outline.btn-secondary{--tw-text-opacity: 1;color:hsl(var(--s) / var(--tw-text-opacity))}.btn-outline.btn-secondary:hover,.btn-outline.btn-secondary.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--sf, var(--s)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--sf, var(--s)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--sc) / var(--tw-text-opacity))}.btn-outline.btn-accent{--tw-text-opacity: 1;color:hsl(var(--a) / var(--tw-text-opacity))}.btn-outline.btn-accent:hover,.btn-outline.btn-accent.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--af, var(--a)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--af, var(--a)) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--ac) / var(--tw-text-opacity))}.btn-outline.btn-success{--tw-text-opacity: 1;color:hsl(var(--su) / var(--tw-text-opacity))}.btn-outline.btn-success:hover,.btn-outline.btn-success.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--su) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--su) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--suc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-info{--tw-text-opacity: 1;color:hsl(var(--in) / var(--tw-text-opacity))}.btn-outline.btn-info:hover,.btn-outline.btn-info.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--in) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--in) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--inc, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-warning{--tw-text-opacity: 1;color:hsl(var(--wa) / var(--tw-text-opacity))}.btn-outline.btn-warning:hover,.btn-outline.btn-warning.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--wa) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--wa) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--wac, var(--nc)) / var(--tw-text-opacity))}.btn-outline.btn-error{--tw-text-opacity: 1;color:hsl(var(--er) / var(--tw-text-opacity))}.btn-outline.btn-error:hover,.btn-outline.btn-error.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--er) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--er) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--erc, var(--nc)) / var(--tw-text-opacity))}.btn-disabled,.btn-disabled:hover,.btn[disabled],.btn[disabled]:hover{--tw-border-opacity: 0;background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;color:hsl(var(--bc) / var(--tw-text-opacity));--tw-text-opacity: .2}.btn.loading.btn-square:before,.btn.loading.btn-circle:before{margin-right:0}.btn.loading.btn-xl:before,.btn.loading.btn-lg:before{height:1.25rem;width:1.25rem}.btn.loading.btn-sm:before,.btn.loading.btn-xs:before{height:.75rem;width:.75rem}.btn-group>input[type=radio]:checked.btn,.btn-group>.btn-active{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity));--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.btn-group>input[type=radio]:checked.btn:focus-visible,.btn-group>.btn-active:focus-visible{outline:2px solid hsl(var(--p))}@keyframes button-pop{0%{transform:scale(var(--btn-focus-scale, .95))}40%{transform:scale(1.02)}to{transform:scale(1)}}.card :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:unset}.card :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:inherit}.card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.card.bordered,.card-bordered{border-width:1px;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity))}.card.compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-title{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.card.image-full :where(figure){overflow:hidden;border-radius:inherit}.carousel::-webkit-scrollbar{display:none}.checkbox:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.checkbox:checked,.checkbox[checked=true],.checkbox[aria-checked=true]{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(-45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.checkbox:indeterminate{--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));background-repeat:no-repeat;animation:checkmark var(--animation-input, .2s) ease-in-out;background-image:linear-gradient(90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(-90deg,transparent 80%,hsl(var(--chkbg)) 80%),linear-gradient(0deg,hsl(var(--chkbg)) 43%,hsl(var(--chkfg)) 43%,hsl(var(--chkfg)) 57%,hsl(var(--chkbg)) 57%)}.checkbox:disabled{cursor:not-allowed;border-color:transparent;--tw-bg-opacity: 1;background-color:hsl(var(--bc) / var(--tw-bg-opacity));opacity:.2}@keyframes checkmark{0%{background-position-y:5px}50%{background-position-y:-2px}to{background-position-y:0}}[dir=rtl] .checkbox:checked,[dir=rtl] .checkbox[checked=true],[dir=rtl] .checkbox[aria-checked=true]{background-image:linear-gradient(45deg,transparent 65%,hsl(var(--chkbg)) 65.99%),linear-gradient(-45deg,transparent 75%,hsl(var(--chkbg)) 75.99%),linear-gradient(45deg,hsl(var(--chkbg)) 40%,transparent 40.99%),linear-gradient(-45deg,hsl(var(--chkbg)) 30%,hsl(var(--chkfg)) 30.99%,hsl(var(--chkfg)) 40%,transparent 40.99%),linear-gradient(45deg,hsl(var(--chkfg)) 50%,hsl(var(--chkbg)) 50.99%)}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-primary{outline:2px solid hsl(var(--p))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-secondary{outline:2px solid hsl(var(--s))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-accent{outline:2px solid hsl(var(--a))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-error{outline:2px solid hsl(var(--er))}.drawer-toggle:focus-visible~.drawer-content .drawer-button.btn-ghost{outline:2px solid currentColor}.footer-title{margin-bottom:.5rem;font-weight:700;text-transform:uppercase;opacity:.5}.label-text{font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.label a:hover{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.input[list]::-webkit-calendar-picker-indicator{line-height:1em}.input-bordered{--tw-border-opacity: .2}.input:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.input-disabled,.input[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.input-disabled::placeholder,.input[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.link:focus{outline:2px solid transparent;outline-offset:2px}.link:focus-visible{outline:2px solid currentColor;outline-offset:2px}.modal-open .modal-box,.modal-toggle:checked+.modal .modal-box,.modal:target .modal-box{--tw-translate-y: 0px;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.modal-action>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.progress::-moz-progress-bar{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity))}.progress:indeterminate:after{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity));content:"";position:absolute;top:0px;bottom:0px;left:-40%;width:33.333333%;border-radius:var(--rounded-box, 1rem);animation:progress-loading 5s infinite ease-in-out}.progress::-webkit-progress-bar{background-color:hsl(var(--n) / var(--tw-bg-opacity));--tw-bg-opacity: .2;border-radius:var(--rounded-box, 1rem)}.progress::-webkit-progress-value{--tw-bg-opacity: 1;background-color:hsl(var(--nf, var(--n)) / var(--tw-bg-opacity));border-radius:var(--rounded-box, 1rem)}@keyframes progress-loading{50%{left:107%}}@keyframes radiomark{0%{box-shadow:0 0 0 12px hsl(var(--b1)) inset,0 0 0 12px hsl(var(--b1)) inset}50%{box-shadow:0 0 0 3px hsl(var(--b1)) inset,0 0 0 3px hsl(var(--b1)) inset}to{box-shadow:0 0 0 4px hsl(var(--b1)) inset,0 0 0 4px hsl(var(--b1)) inset}}@keyframes rating-pop{0%{transform:translateY(-.125em)}40%{transform:translateY(-.125em)}to{transform:translateY(0)}}.select:focus{outline:2px solid hsla(var(--bc) / .2);outline-offset:2px}.select-disabled,.select[disabled]{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--b2, var(--b1)) / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity));--tw-text-opacity: .2}.select-disabled::placeholder,.select[disabled]::placeholder{color:hsl(var(--bc) / var(--tw-placeholder-opacity));--tw-placeholder-opacity: .2}.select-multiple,.select[multiple],.select[size].select:not([size="1"]){background-image:none;padding-right:1rem}[dir=rtl] .select{background-position:calc(0% + 12px) calc(1px + 50%),calc(0% + 16px) calc(1px + 50%)}.swap-rotate .swap-on,.swap-rotate .swap-indeterminate,.swap-rotate input:indeterminate~.swap-on{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-off,.swap-rotate.swap-active .swap-off,.swap-rotate input:indeterminate~.swap-off{--tw-rotate: -45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-rotate input:checked~.swap-on,.swap-rotate.swap-active .swap-on,.swap-rotate input:indeterminate~.swap-indeterminate{--tw-rotate: 0deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.swap-flip .swap-on,.swap-flip .swap-indeterminate,.swap-flip input:indeterminate~.swap-on{transform:rotateY(180deg);backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-off,.swap-flip.swap-active .swap-off,.swap-flip input:indeterminate~.swap-off{transform:rotateY(-180deg);backface-visibility:hidden;opacity:1}.swap-flip input:checked~.swap-on,.swap-flip.swap-active .swap-on,.swap-flip input:indeterminate~.swap-indeterminate{transform:rotateY(0)}@keyframes toast-pop{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}[dir=rtl] .toggle{--handleoffsetcalculator: calc(var(--handleoffset) * 1)}.toggle:focus-visible{outline:2px solid hsl(var(--bc));outline-offset:2px}.toggle:checked,.toggle[checked=true],.toggle[aria-checked=true]{--handleoffsetcalculator: var(--handleoffset);--tw-border-opacity: 1;--tw-bg-opacity: 1}[dir=rtl] .toggle:checked,[dir=rtl] .toggle[checked=true],[dir=rtl] .toggle[aria-checked=true]{--handleoffsetcalculator: calc(var(--handleoffset) * -1)}.toggle:indeterminate{--tw-border-opacity: 1;--tw-bg-opacity: 1;box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}[dir=rtl] .toggle:indeterminate{box-shadow:calc(var(--handleoffset) / 2) 0 0 2px var(--tglbg) inset,calc(var(--handleoffset) / -2) 0 0 2px var(--tglbg) inset,0 0 0 2px var(--tglbg) inset}.toggle:disabled{cursor:not-allowed;--tw-border-opacity: 1;border-color:hsl(var(--bc) / var(--tw-border-opacity));background-color:transparent;opacity:.3;--togglehandleborder: 0 0 0 3px hsl(var(--bc)) inset, var(--handleoffsetcalculator) 0 0 3px hsl(var(--bc)) inset}.rounded-box{border-radius:var(--rounded-box, 1rem)}.btn-sm{height:2rem;padding-left:.75rem;padding-right:.75rem;min-height:2rem;font-size:.875rem}.btn-square:where(.btn-xs){height:1.5rem;width:1.5rem;padding:0}.btn-square:where(.btn-sm){height:2rem;width:2rem;padding:0}.btn-square:where(.btn-md){height:3rem;width:3rem;padding:0}.btn-square:where(.btn-lg){height:4rem;width:4rem;padding:0}.btn-circle:where(.btn-xs){height:1.5rem;width:1.5rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-sm){height:2rem;width:2rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-md){height:3rem;width:3rem;border-radius:9999px;padding:0}.btn-circle:where(.btn-lg){height:4rem;width:4rem;border-radius:9999px;padding:0}.indicator :where(.indicator-item){right:0px;left:auto;top:0px;bottom:auto;--tw-translate-x: 50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-start){right:auto;left:0px;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-center){right:50%;left:50%;--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-end){right:0px;left:auto;--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-bottom){top:auto;bottom:0px;--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-middle){top:50%;bottom:50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.indicator :where(.indicator-item.indicator-top){top:0px;bottom:auto;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.btn-group .btn:not(:first-child):not(:last-child),.btn-group.btn-group-horizontal .btn:not(:first-child):not(:last-child){border-radius:0}.btn-group .btn:first-child:not(:last-child),.btn-group.btn-group-horizontal .btn:first-child:not(:last-child){margin-left:-1px;margin-top:-0px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:0}.btn-group .btn:last-child:not(:first-child),.btn-group.btn-group-horizontal .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:var(--rounded-btn, .5rem)}.btn-group.btn-group-vertical .btn:first-child:not(:last-child){margin-left:-0px;margin-top:-1px;border-top-left-radius:var(--rounded-btn, .5rem);border-top-right-radius:var(--rounded-btn, .5rem);border-bottom-left-radius:0;border-bottom-right-radius:0}.btn-group.btn-group-vertical .btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--rounded-btn, .5rem);border-bottom-right-radius:var(--rounded-btn, .5rem)}.card-compact .card-body{padding:1rem;font-size:.875rem;line-height:1.25rem}.card-compact .card-title{margin-bottom:.25rem}.card-normal .card-body{padding:var(--padding-card, 2rem);font-size:1rem;line-height:1.5rem}.card-normal .card-title{margin-bottom:.75rem}.modal-bottom :where(.modal-box){width:100%;max-width:none;--tw-translate-y: 2.5rem;--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-right-radius:0;border-bottom-left-radius:0}.modal-middle :where(.modal-box){width:91.666667%;max-width:32rem;--tw-translate-y: 0px;--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));border-bottom-left-radius:var(--rounded-box, 1rem);border-bottom-right-radius:var(--rounded-box, 1rem)}.absolute{position:absolute}.relative{position:relative}.top-0{top:0px}.right-0{right:0px}.bottom-0{bottom:0px}.right-2{right:.5rem}.top-2{top:.5rem}.m-2{margin:.5rem}.m-4{margin:1rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.mx-0{margin-left:0;margin-right:0}.mb-5{margin-bottom:1.25rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-6{height:1.5rem}.h-48{height:12rem}.h-8{height:2rem}.min-h-screen{min-height:100vh}.w-full{width:100%}.w-6{width:1.5rem}.w-8{width:2rem}.w-32{width:8rem}.w-10{width:2.5rem}.w-96{width:24rem}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.grid-flow-col{grid-auto-flow:column}.grid-rows-1{grid-template-rows:repeat(1,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.gap-2{gap:.5rem}.gap-4{gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.border-4{border-width:4px}.border-primary{--tw-border-opacity: 1;border-color:hsl(var(--p) / var(--tw-border-opacity))}.bg-base-300{--tw-bg-opacity: 1;background-color:hsl(var(--b3, var(--b2)) / var(--tw-bg-opacity))}.bg-base-100{--tw-bg-opacity: 1;background-color:hsl(var(--b1) / var(--tw-bg-opacity))}.bg-base-200{--tw-bg-opacity: 1;background-color:hsl(var(--b2, var(--b1)) / var(--tw-bg-opacity))}.bg-primary{--tw-bg-opacity: 1;background-color:hsl(var(--p) / var(--tw-bg-opacity))}.bg-neutral{--tw-bg-opacity: 1;background-color:hsl(var(--n) / var(--tw-bg-opacity))}.bg-cover{background-size:cover}.bg-center{background-position:center}.bg-no-repeat{background-repeat:no-repeat}.fill-current{fill:currentColor}.stroke-info{stroke:hsl(var(--in))}.stroke-current{stroke:currentColor}.object-contain{object-fit:contain}.p-10{padding:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pr-2{padding-right:.5rem}.text-center{text-align:center}.text-5xl{font-size:3rem;line-height:1}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-base-content{--tw-text-opacity: 1;color:hsl(var(--bc) / var(--tw-text-opacity))}.text-primary{--tw-text-opacity: 1;color:hsl(var(--p) / var(--tw-text-opacity))}.text-primary-content{--tw-text-opacity: 1;color:hsl(var(--pc) / var(--tw-text-opacity))}.text-neutral-content{--tw-text-opacity: 1;color:hsl(var(--nc) / var(--tw-text-opacity))}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 640px){.sm\:flex{display:flex}.sm\:hidden{display:none}}@media (min-width: 768px){.md\:max-h-fit{max-height:fit-content}.md\:max-h-44{max-height:11rem}.md\:card-side{align-items:stretch;flex-direction:row}.md\:card-side :where(figure:first-child){overflow:hidden;border-start-start-radius:inherit;border-start-end-radius:unset;border-end-start-radius:inherit;border-end-end-radius:unset}.md\:card-side :where(figure:last-child){overflow:hidden;border-start-start-radius:unset;border-start-end-radius:inherit;border-end-start-radius:unset;border-end-end-radius:inherit}.md\:card-side figure>*{max-width:unset}:where(.md\:card-side figure > *){width:100%;height:100%;object-fit:cover}} diff --git a/dist/assets/index-1987eb7b.js b/dist/assets/index-c428f059.js similarity index 73% rename from dist/assets/index-1987eb7b.js rename to dist/assets/index-c428f059.js index e9e211c..c9e4ba5 100644 --- a/dist/assets/index-1987eb7b.js +++ b/dist/assets/index-c428f059.js @@ -1,7 +1,7 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Tr(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function _s(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(Il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function bs(e){let t="";if(fe(e))t=e;else if(j(e))for(let n=0;nws(n,t))}const Ce=e=>fe(e)?e:e==null?"":j(e)||re(e)&&(e.toString===ji||!q(e.toString))?JSON.stringify(e,Fi,2):String(e),Fi=(e,t)=>t&&t.__v_isRef?Fi(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:re(t)&&!j(t)&&!Ui(t)?String(t):t,oe={},Bt=[],je=()=>{},$l=()=>!1,jl=/^on[^a-z]/,vs=e=>jl.test(e),Pr=e=>e.startsWith("onUpdate:"),xe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ul=Object.prototype.hasOwnProperty,X=(e,t)=>Ul.call(e,t),j=Array.isArray,Ht=e=>Pn(e)==="[object Map]",Es=e=>Pn(e)==="[object Set]",go=e=>Pn(e)==="[object Date]",q=e=>typeof e=="function",fe=e=>typeof e=="string",_n=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",$i=e=>re(e)&&q(e.then)&&q(e.catch),ji=Object.prototype.toString,Pn=e=>ji.call(e),Bl=e=>Pn(e).slice(8,-1),Ui=e=>Pn(e)==="[object Object]",kr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hl=/-(\w)/g,Ge=xs(e=>e.replace(Hl,(t,n)=>n?n.toUpperCase():"")),ql=/\B([A-Z])/g,Lt=xs(e=>e.replace(ql,"-$1").toLowerCase()),Ss=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=xs(e=>e?`on${Ss(e)}`:""),bn=(e,t)=>!Object.is(e,t),Wn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yo;const Kl=()=>yo||(yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class zl{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Bi=e=>(e.w>)>0,Hi=e=>(e.n>)>0,Wl=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&c.push(a)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?kr(n)&&c.push(i.get("length")):(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"delete":j(e)||(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"set":Ht(e)&&c.push(i.get(At));break}if(c.length===1)c[0]&&ir(c[0]);else{const l=[];for(const a of c)a&&l.push(...a);ir(Nr(l))}}function ir(e,t){const n=j(e)?e:[...e];for(const s of n)s.computed&&bo(s);for(const s of n)s.computed||bo(s)}function bo(e,t){(e!==De||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ql=Tr("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_n)),Xl=Mr(),Yl=Mr(!1,!0),Gl=Mr(!0),wo=Zl();function Zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=G(this);for(let o=0,i=this.length;o{e[t]=function(...n){Gt();const s=G(this)[t].apply(this,n);return Zt(),s}}),e}function Mr(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?ma:Xi:t?Qi:Ji).get(s))return s;const i=j(s);if(!e&&i&&X(wo,r))return Reflect.get(wo,r,o);const c=Reflect.get(s,r,o);return(_n(r)?zi.has(r):Ql(r))||(e||Ae(s,"get",r),t)?c:be(c)?i&&kr(r)?c:c.value:re(c)?e?Yi(c):In(c):c}}const ea=Vi(),ta=Vi(!0);function Vi(e=!1){return function(n,s,r,o){let i=n[s];if(Vt(i)&&be(i)&&!be(r))return!1;if(!e&&(!ls(r)&&!Vt(r)&&(i=G(i),r=G(r)),!j(n)&&be(i)&&!be(r)))return i.value=r,!0;const c=j(n)&&kr(s)?Number(s)e,Rs=e=>Reflect.getPrototypeOf(e);function Dn(e,t,n=!1,s=!1){e=e.__v_raw;const r=G(e),o=G(t);n||(t!==o&&Ae(r,"get",t),Ae(r,"get",o));const{has:i}=Rs(r),c=s?Dr:n?jr:vn;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function Fn(e,t=!1){const n=this.__v_raw,s=G(n),r=G(e);return t||(e!==r&&Ae(s,"has",e),Ae(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function $n(e,t=!1){return e=e.__v_raw,!t&&Ae(G(e),"iterate",At),Reflect.get(e,"size",e)}function vo(e){e=G(e);const t=G(this);return Rs(t).has.call(t,e)||(t.add(e),st(t,"add",e,e)),this}function Eo(e,t){t=G(t);const n=G(this),{has:s,get:r}=Rs(n);let o=s.call(n,e);o||(e=G(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?bn(t,i)&&st(n,"set",e,t):st(n,"add",e,t),this}function xo(e){const t=G(this),{has:n,get:s}=Rs(t);let r=n.call(t,e);r||(e=G(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&st(t,"delete",e,void 0),o}function So(){const e=G(this),t=e.size!==0,n=e.clear();return t&&st(e,"clear",void 0,void 0),n}function jn(e,t){return function(s,r){const o=this,i=o.__v_raw,c=G(i),l=t?Dr:e?jr:vn;return!e&&Ae(c,"iterate",At),i.forEach((a,u)=>s.call(r,l(a),l(u),o))}}function Un(e,t,n){return function(...s){const r=this.__v_raw,o=G(r),i=Ht(o),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,a=r[e](...s),u=n?Dr:t?jr:vn;return!t&&Ae(o,"iterate",l?or:At),{next(){const{value:d,done:p}=a.next();return p?{value:d,done:p}:{value:c?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function ct(e){return function(...t){return e==="delete"?!1:this}}function ca(){const e={get(o){return Dn(this,o)},get size(){return $n(this)},has:Fn,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!1)},t={get(o){return Dn(this,o,!1,!0)},get size(){return $n(this)},has:Fn,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!0)},n={get(o){return Dn(this,o,!0)},get size(){return $n(this,!0)},has(o){return Fn.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:jn(!0,!1)},s={get(o){return Dn(this,o,!0,!0)},get size(){return $n(this,!0)},has(o){return Fn.call(this,o,!0)},add:ct("add"),set:ct("set"),delete:ct("delete"),clear:ct("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Un(o,!1,!1),n[o]=Un(o,!0,!1),t[o]=Un(o,!1,!0),s[o]=Un(o,!0,!0)}),[e,n,t,s]}const[la,aa,ua,fa]=ca();function Fr(e,t){const n=t?e?fa:ua:e?aa:la;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const da={get:Fr(!1,!1)},ha={get:Fr(!1,!0)},pa={get:Fr(!0,!1)},Ji=new WeakMap,Qi=new WeakMap,Xi=new WeakMap,ma=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ya(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(Bl(e))}function In(e){return Vt(e)?e:$r(e,!1,Wi,da,Ji)}function _a(e){return $r(e,!1,ia,ha,Qi)}function Yi(e){return $r(e,!0,oa,pa,Xi)}function $r(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ya(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function qt(e){return Vt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function Gi(e){return qt(e)||Vt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Zi(e){return cs(e,"__v_skip",!0),e}const vn=e=>re(e)?In(e):e,jr=e=>re(e)?Yi(e):e;function ec(e){pt&&De&&(e=G(e),Ki(e.dep||(e.dep=Nr())))}function tc(e,t){e=G(e),e.dep&&ir(e.dep)}function be(e){return!!(e&&e.__v_isRef===!0)}function Te(e){return nc(e,!1)}function ba(e){return nc(e,!0)}function nc(e,t){return be(e)?e:new wa(e,t)}class wa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:vn(t)}get value(){return ec(this),this._value}set value(t){const n=this.__v_isShallow||ls(t)||Vt(t);t=n?t:G(t),bn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vn(t),tc(this))}}function Kt(e){return be(e)?e.value:e}const va={get:(e,t,n)=>Kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function sc(e){return qt(e)?e:new Proxy(e,va)}var rc;class Ea{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rc]=!1,this._dirty=!0,this.effect=new Lr(t,()=>{this._dirty||(this._dirty=!0,tc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=G(this);return ec(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rc="__v_isReadonly";function xa(e,t,n=!1){let s,r;const o=q(e);return o?(s=e,r=je):(s=e.get,r=e.set),new Ea(s,r,o||!r,n)}function mt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Os(o,t,n)}return r}function Ue(e,t,n,s){if(q(e)){const o=mt(e,t,n,s);return o&&$i(o)&&o.catch(i=>{Os(i,t,n)}),o}const r=[];for(let o=0;o>>1;xn(_e[s])Qe&&_e.splice(t,1)}function Ca(e){j(e)?zt.push(...e):(!et||!et.includes(e,e.allowRecurse?St+1:St))&&zt.push(e),cc()}function Ro(e,t=En?Qe+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function lc(e){if(zt.length){const t=[...new Set(zt)];if(zt.length=0,et){et.push(...t);return}for(et=t,et.sort((n,s)=>xn(n)-xn(s)),St=0;Ste.id==null?1/0:e.id,Aa=(e,t)=>{const n=xn(e)-xn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ac(e){cr=!1,En=!0,_e.sort(Aa);const t=je;try{for(Qe=0;Qe<_e.length;Qe++){const n=_e[Qe];n&&n.active!==!1&&mt(n,null,14)}}finally{Qe=0,_e.length=0,lc(),En=!1,Ur=null,(_e.length||zt.length)&&ac()}}function Ta(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:p}=s[u]||oe;p&&(r=n.map(m=>fe(m)?m.trim():m)),d&&(r=n.map(wn))}let c,l=s[c=qs(t)]||s[c=qs(Ge(t))];!l&&o&&(l=s[c=qs(Lt(t))]),l&&Ue(l,e,6,r);const a=s[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ue(a,e,6,r)}}function uc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!q(e)){const l=a=>{const u=uc(a,t,!0);u&&(c=!0,xe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!c?(re(e)&&s.set(e,null),null):(j(o)?o.forEach(l=>i[l]=null):xe(i,o),re(e)&&s.set(e,i),i)}function Cs(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Lt(t))||X(e,t))}let Ie=null,As=null;function as(e){const t=Ie;return Ie=e,As=e&&e.type.__scopeId||null,t}function fc(e){As=e}function dc(){As=null}function Pa(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Lo(-1);const o=as(t);let i;try{i=e(...r)}finally{as(o),s._d&&Lo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:m,ctx:g,inheritAttrs:w}=e;let A,R;const N=as(e);try{if(n.shapeFlag&4){const J=r||s;A=Je(u.call(J,J,d,o,m,p,g)),R=l}else{const J=t;A=Je(J.length>1?J(o,{attrs:l,slots:c,emit:a}):J(o,null)),R=t.props?l:Ia(l)}}catch(J){pn.length=0,Os(J,e,1),A=W(It)}let M=A;if(R&&w!==!1){const J=Object.keys(R),{shapeFlag:le}=M;J.length&&le&7&&(i&&J.some(Pr)&&(R=ka(R,i)),M=Wt(M,R))}return n.dirs&&(M=Wt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),A=M,as(N),A}const Ia=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},ka=(e,t)=>{const n={};for(const s in e)(!Pr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Na(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:l}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Oo(s,i,a):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Da(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Ca(e)}function Jn(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ye||Ie;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s.proxy):t}}const Bn={};function dn(e,t,n){return hc(e,t,n)}function hc(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=oe){const c=ye;let l,a=!1,u=!1;if(be(e)?(l=()=>e.value,a=ls(e)):qt(e)?(l=()=>e,s=!0):j(e)?(u=!0,a=e.some(M=>qt(M)||ls(M)),l=()=>e.map(M=>{if(be(M))return M.value;if(qt(M))return Ct(M);if(q(M))return mt(M,c,2)})):q(e)?t?l=()=>mt(e,c,2):l=()=>{if(!(c&&c.isUnmounted))return d&&d(),Ue(e,c,3,[p])}:l=je,t&&s){const M=l;l=()=>Ct(M())}let d,p=M=>{d=R.onStop=()=>{mt(M,c,4)}},m;if(Rn)if(p=je,t?n&&Ue(t,c,3,[l(),u?[]:void 0,p]):l(),r==="sync"){const M=Ou();m=M.__watcherHandles||(M.__watcherHandles=[])}else return je;let g=u?new Array(e.length).fill(Bn):Bn;const w=()=>{if(R.active)if(t){const M=R.run();(s||a||(u?M.some((J,le)=>bn(J,g[le])):bn(M,g)))&&(d&&d(),Ue(t,c,3,[M,g===Bn?void 0:u&&g[0]===Bn?[]:g,p]),g=M)}else R.run()};w.allowRecurse=!!t;let A;r==="sync"?A=w:r==="post"?A=()=>Re(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),A=()=>Br(w));const R=new Lr(l,A);t?n?w():g=R.run():r==="post"?Re(R.run.bind(R),c&&c.suspense):R.run();const N=()=>{R.stop(),c&&c.scope&&Ir(c.scope.effects,R)};return m&&m.push(N),N}function Fa(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?pc(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=ye;Jt(this);const c=hc(r,o.bind(s),n);return i?Jt(i):Pt(),c}function pc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ct(n,t)});else if(Ui(e))for(const n in e)Ct(e[n],t);return e}function Hr(e){return q(e)?{setup:e,name:e.name}:e}const Qn=e=>!!e.type.__asyncLoader,mc=e=>e.type.__isKeepAlive;function $a(e,t){gc(e,"a",t)}function ja(e,t){gc(e,"da",t)}function gc(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ts(t,s,n),n){let r=n.parent;for(;r&&r.parent;)mc(r.parent.vnode)&&Ua(s,t,n,r),r=r.parent}}function Ua(e,t,n,s){const r=Ts(t,e,s,!0);bc(()=>{Ir(s[t],r)},n)}function Ts(e,t,n=ye,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Gt(),Jt(n);const c=Ue(t,n,e,i);return Pt(),Zt(),c});return s?r.unshift(o):r.push(o),o}}const rt=e=>(t,n=ye)=>(!Rn||e==="sp")&&Ts(e,(...s)=>t(...s),n),yc=rt("bm"),Ps=rt("m"),Ba=rt("bu"),Ha=rt("u"),_c=rt("bum"),bc=rt("um"),qa=rt("sp"),Ka=rt("rtg"),za=rt("rtc");function Va(e,t=ye){Ts("ec",e,t)}function Xn(e,t){const n=Ie;if(n===null)return e;const s=Ns(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,l=i.length;ce?kc(e)?Ns(e)||e.proxy:lr(e.parent):null,hn=xe(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=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>qr(e),$forceUpdate:e=>e.f||(e.f=()=>Br(e.update)),$nextTick:e=>e.n||(e.n=ic.bind(e.proxy)),$watch:e=>Fa.bind(e)}),zs=(e,t)=>e!==oe&&!e.__isScriptSetup&&X(e,t),Qa={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=e;let a;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(zs(s,t))return i[t]=1,s[t];if(r!==oe&&X(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&X(a,t))return i[t]=3,o[t];if(n!==oe&&X(n,t))return i[t]=4,n[t];ar&&(i[t]=0)}}const u=hn[t];let d,p;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==oe&&X(n,t))return i[t]=4,n[t];if(p=l.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return zs(r,t)?(r[t]=n,!0):s!==oe&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==oe&&X(e,i)||zs(t,i)||(c=o[0])&&X(c,i)||X(s,i)||X(hn,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ar=!0;function Xa(e){const t=qr(e),n=e.proxy,s=e.ctx;ar=!1,t.beforeCreate&&Ao(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:A,beforeDestroy:R,beforeUnmount:N,destroyed:M,unmounted:J,render:le,renderTracked:K,renderTriggered:ie,errorCaptured:we,serverPrefetch:ke,expose:he,inheritAttrs:it,components:qe,directives:Dt,filters:yt}=t;if(a&&Ya(a,s,null,e.appContext.config.unwrapInjectedRef),i)for(const ne in i){const ee=i[ne];q(ee)&&(s[ne]=ee.bind(n))}if(r){const ne=r.call(n,n);re(ne)&&(e.data=In(ne))}if(ar=!0,o)for(const ne in o){const ee=o[ne],Ne=q(ee)?ee.bind(n,n):q(ee.get)?ee.get.bind(n,n):je,_t=!q(ee)&&q(ee.set)?ee.set.bind(n):je,Le=Pe({get:Ne,set:_t});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Se=>Le.value=Se})}if(c)for(const ne in c)vc(c[ne],s,n,ne);if(l){const ne=q(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ee=>{Jn(ee,ne[ee])})}u&&Ao(u,e,"c");function ae(ne,ee){j(ee)?ee.forEach(Ne=>ne(Ne.bind(n))):ee&&ne(ee.bind(n))}if(ae(yc,d),ae(Ps,p),ae(Ba,m),ae(Ha,g),ae($a,w),ae(ja,A),ae(Va,we),ae(za,K),ae(Ka,ie),ae(_c,N),ae(bc,J),ae(qa,ke),j(he))if(he.length){const ne=e.exposed||(e.exposed={});he.forEach(ee=>{Object.defineProperty(ne,ee,{get:()=>n[ee],set:Ne=>n[ee]=Ne})})}else e.exposed||(e.exposed={});le&&e.render===je&&(e.render=le),it!=null&&(e.inheritAttrs=it),qe&&(e.components=qe),Dt&&(e.directives=Dt)}function Ya(e,t,n=je,s=!1){j(e)&&(e=ur(e));for(const r in e){const o=e[r];let i;re(o)?"default"in o?i=Ye(o.from||r,o.default,!0):i=Ye(o.from||r):i=Ye(o),be(i)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[r]=i}}function Ao(e,t,n){Ue(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vc(e,t,n,s){const r=s.includes(".")?pc(n,s):()=>n[s];if(fe(e)){const o=t[e];q(o)&&dn(r,o)}else if(q(e))dn(r,e.bind(n));else if(re(e))if(j(e))e.forEach(o=>vc(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&dn(r,o,e)}}function qr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(a=>us(l,a,i,!0)),us(l,t,i)),re(t)&&o.set(t,l),l}function us(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&us(e,o,n,!0),r&&r.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Ga[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ga={data:To,props:xt,emits:xt,methods:xt,computed:xt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:xt,directives:xt,watch:eu,provide:To,inject:Za};function To(e,t){return t?e?function(){return xe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Za(e,t){return xt(ur(e),ur(t))}function ur(e){if(j(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[p,m]=xc(d,t,!0);xe(i,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return re(e)&&s.set(e,Bt),Bt;if(j(o))for(let u=0;u-1,m[1]=w<0||g-1||X(m,"default"))&&c.push(d)}}}const a=[i,c];return re(e)&&s.set(e,a),a}function Po(e){return e[0]!=="$"}function Io(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ko(e,t){return Io(e)===Io(t)}function No(e,t){return j(t)?t.findIndex(n=>ko(n,e)):q(t)&&ko(t,e)?0:-1}const Sc=e=>e[0]==="_"||e==="$stable",Kr=e=>j(e)?e.map(Je):[Je(e)],su=(e,t,n)=>{if(t._n)return t;const s=Pa((...r)=>Kr(t(...r)),n);return s._c=!1,s},Rc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Sc(r))continue;const o=e[r];if(q(o))t[r]=su(r,o,s);else if(o!=null){const i=Kr(o);t[r]=()=>i}}},Oc=(e,t)=>{const n=Kr(t);e.slots.default=()=>n},ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),cs(t,"_",n)):Rc(t,e.slots={})}else e.slots={},t&&Oc(e,t);cs(e.slots,ks,1)},ou=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(xe(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Rc(t,r)),i=t}else t&&(Oc(e,t),i={default:1});if(o)for(const c in r)!Sc(c)&&!(c in i)&&delete r[c]};function Cc(){return{app:null,config:{isNativeTag:$l,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 iu=0;function cu(e,t){return function(s,r=null){q(s)||(s=Object.assign({},s)),r!=null&&!re(r)&&(r=null);const o=Cc(),i=new Set;let c=!1;const l=o.app={_uid:iu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Cu,get config(){return o.config},set config(a){},use(a,...u){return i.has(a)||(a&&q(a.install)?(i.add(a),a.install(l,...u)):q(a)&&(i.add(a),a(l,...u))),l},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),l},component(a,u){return u?(o.components[a]=u,l):o.components[a]},directive(a,u){return u?(o.directives[a]=u,l):o.directives[a]},mount(a,u,d){if(!c){const p=W(s,r);return p.appContext=o,u&&t?t(p,a):e(p,a,d),c=!0,l._container=a,a.__vue_app__=l,Ns(p.component)||p.component.proxy}},unmount(){c&&(e(null,l._container),delete l._container.__vue_app__)},provide(a,u){return o.provides[a]=u,l}};return l}}function dr(e,t,n,s,r=!1){if(j(e)){e.forEach((p,m)=>dr(p,t&&(j(t)?t[m]:t),n,s,r));return}if(Qn(s)&&!r)return;const o=s.shapeFlag&4?Ns(s.component)||s.component.proxy:s.el,i=r?null:o,{i:c,r:l}=e,a=t&&t.r,u=c.refs===oe?c.refs={}:c.refs,d=c.setupState;if(a!=null&&a!==l&&(fe(a)?(u[a]=null,X(d,a)&&(d[a]=null)):be(a)&&(a.value=null)),q(l))mt(l,c,12,[i,u]);else{const p=fe(l),m=be(l);if(p||m){const g=()=>{if(e.f){const w=p?X(d,l)?d[l]:u[l]:l.value;r?j(w)&&Ir(w,o):j(w)?w.includes(o)||w.push(o):p?(u[l]=[o],X(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,X(d,l)&&(d[l]=i)):m&&(l.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,Re(g,n)):g()}}}const Re=Da;function lu(e){return au(e)}function au(e,t){const n=Kl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:m=je,insertStaticContent:g}=e,w=(f,h,y,b=null,E=null,C=null,I=!1,S=null,T=!!h.dynamicChildren)=>{if(f===h)return;f&&!on(f,h)&&(b=P(f),Se(f,E,C,!0),f=null),h.patchFlag===-2&&(T=!1,h.dynamicChildren=null);const{type:x,ref:F,shapeFlag:L}=h;switch(x){case Is:A(f,h,y,b);break;case It:R(f,h,y,b);break;case Yn:f==null&&N(h,y,b,I);break;case pe:qe(f,h,y,b,E,C,I,S,T);break;default:L&1?le(f,h,y,b,E,C,I,S,T):L&6?Dt(f,h,y,b,E,C,I,S,T):(L&64||L&128)&&x.process(f,h,y,b,E,C,I,S,T,Q)}F!=null&&E&&dr(F,f&&f.ref,C,h||f,!h)},A=(f,h,y,b)=>{if(f==null)s(h.el=c(h.children),y,b);else{const E=h.el=f.el;h.children!==f.children&&a(E,h.children)}},R=(f,h,y,b)=>{f==null?s(h.el=l(h.children||""),y,b):h.el=f.el},N=(f,h,y,b)=>{[f.el,f.anchor]=g(f.children,h,y,b,f.el,f.anchor)},M=({el:f,anchor:h},y,b)=>{let E;for(;f&&f!==h;)E=p(f),s(f,y,b),f=E;s(h,y,b)},J=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=p(f),r(f),f=y;r(h)},le=(f,h,y,b,E,C,I,S,T)=>{I=I||h.type==="svg",f==null?K(h,y,b,E,C,I,S,T):ke(f,h,E,C,I,S,T)},K=(f,h,y,b,E,C,I,S)=>{let T,x;const{type:F,props:L,shapeFlag:$,transition:B,dirs:V}=f;if(T=f.el=i(f.type,C,L&&L.is,L),$&8?u(T,f.children):$&16&&we(f.children,T,null,b,E,C&&F!=="foreignObject",I,S),V&&bt(f,null,b,"created"),L){for(const te in L)te!=="value"&&!Vn(te)&&o(T,te,null,L[te],C,f.children,b,E,k);"value"in L&&o(T,"value",null,L.value),(x=L.onVnodeBeforeMount)&&ze(x,b,f)}ie(T,f,f.scopeId,I,b),V&&bt(f,null,b,"beforeMount");const se=(!E||E&&!E.pendingBranch)&&B&&!B.persisted;se&&B.beforeEnter(T),s(T,h,y),((x=L&&L.onVnodeMounted)||se||V)&&Re(()=>{x&&ze(x,b,f),se&&B.enter(T),V&&bt(f,null,b,"mounted")},E)},ie=(f,h,y,b,E)=>{if(y&&m(f,y),b)for(let C=0;C{for(let x=T;x{const S=h.el=f.el;let{patchFlag:T,dynamicChildren:x,dirs:F}=h;T|=f.patchFlag&16;const L=f.props||oe,$=h.props||oe;let B;y&&wt(y,!1),(B=$.onVnodeBeforeUpdate)&&ze(B,y,h,f),F&&bt(h,f,y,"beforeUpdate"),y&&wt(y,!0);const V=E&&h.type!=="foreignObject";if(x?he(f.dynamicChildren,x,S,y,b,V,C):I||ee(f,h,S,null,y,b,V,C,!1),T>0){if(T&16)it(S,h,L,$,y,b,E);else if(T&2&&L.class!==$.class&&o(S,"class",null,$.class,E),T&4&&o(S,"style",L.style,$.style,E),T&8){const se=h.dynamicProps;for(let te=0;te{B&&ze(B,y,h,f),F&&bt(h,f,y,"updated")},b)},he=(f,h,y,b,E,C,I)=>{for(let S=0;S{if(y!==b){if(y!==oe)for(const S in y)!Vn(S)&&!(S in b)&&o(f,S,y[S],null,I,h.children,E,C,k);for(const S in b){if(Vn(S))continue;const T=b[S],x=y[S];T!==x&&S!=="value"&&o(f,S,x,T,I,h.children,E,C,k)}"value"in b&&o(f,"value",y.value,b.value)}},qe=(f,h,y,b,E,C,I,S,T)=>{const x=h.el=f?f.el:c(""),F=h.anchor=f?f.anchor:c("");let{patchFlag:L,dynamicChildren:$,slotScopeIds:B}=h;B&&(S=S?S.concat(B):B),f==null?(s(x,y,b),s(F,y,b),we(h.children,y,F,E,C,I,S,T)):L>0&&L&64&&$&&f.dynamicChildren?(he(f.dynamicChildren,$,y,E,C,I,S),(h.key!=null||E&&h===E.subTree)&&Ac(f,h,!0)):ee(f,h,y,F,E,C,I,S,T)},Dt=(f,h,y,b,E,C,I,S,T)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?E.ctx.activate(h,y,b,I,T):yt(h,y,b,E,C,I,T):sn(f,h,T)},yt=(f,h,y,b,E,C,I)=>{const S=f.component=_u(f,b,E);if(mc(f)&&(S.ctx.renderer=Q),bu(S),S.asyncDep){if(E&&E.registerDep(S,ae),!f.el){const T=S.subTree=W(It);R(null,T,h,y)}return}ae(S,f,h,y,E,C,I)},sn=(f,h,y)=>{const b=h.component=f.component;if(Na(f,h,y))if(b.asyncDep&&!b.asyncResolved){ne(b,h,y);return}else b.next=h,Oa(b.update),b.update();else h.el=f.el,b.vnode=h},ae=(f,h,y,b,E,C,I)=>{const S=()=>{if(f.isMounted){let{next:F,bu:L,u:$,parent:B,vnode:V}=f,se=F,te;wt(f,!1),F?(F.el=V.el,ne(f,F,I)):F=V,L&&Wn(L),(te=F.props&&F.props.onVnodeBeforeUpdate)&&ze(te,B,F,V),wt(f,!0);const ue=Ks(f),Me=f.subTree;f.subTree=ue,w(Me,ue,d(Me.el),P(Me),f,E,C),F.el=ue.el,se===null&&La(f,ue.el),$&&Re($,E),(te=F.props&&F.props.onVnodeUpdated)&&Re(()=>ze(te,B,F,V),E)}else{let F;const{el:L,props:$}=h,{bm:B,m:V,parent:se}=f,te=Qn(h);if(wt(f,!1),B&&Wn(B),!te&&(F=$&&$.onVnodeBeforeMount)&&ze(F,se,h),wt(f,!0),L&&z){const ue=()=>{f.subTree=Ks(f),z(L,f.subTree,f,E,null)};te?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ue()):ue()}else{const ue=f.subTree=Ks(f);w(null,ue,y,b,f,E,C),h.el=ue.el}if(V&&Re(V,E),!te&&(F=$&&$.onVnodeMounted)){const ue=h;Re(()=>ze(F,se,ue),E)}(h.shapeFlag&256||se&&Qn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Re(f.a,E),f.isMounted=!0,h=y=b=null}},T=f.effect=new Lr(S,()=>Br(x),f.scope),x=f.update=()=>T.run();x.id=f.uid,wt(f,!0),x()},ne=(f,h,y)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,nu(f,h.props,b,y),ou(f,h.children,y),Gt(),Ro(),Zt()},ee=(f,h,y,b,E,C,I,S,T=!1)=>{const x=f&&f.children,F=f?f.shapeFlag:0,L=h.children,{patchFlag:$,shapeFlag:B}=h;if($>0){if($&128){_t(x,L,y,b,E,C,I,S,T);return}else if($&256){Ne(x,L,y,b,E,C,I,S,T);return}}B&8?(F&16&&k(x,E,C),L!==x&&u(y,L)):F&16?B&16?_t(x,L,y,b,E,C,I,S,T):k(x,E,C,!0):(F&8&&u(y,""),B&16&&we(L,y,b,E,C,I,S,T))},Ne=(f,h,y,b,E,C,I,S,T)=>{f=f||Bt,h=h||Bt;const x=f.length,F=h.length,L=Math.min(x,F);let $;for($=0;$F?k(f,E,C,!0,!1,L):we(h,y,b,E,C,I,S,T,L)},_t=(f,h,y,b,E,C,I,S,T)=>{let x=0;const F=h.length;let L=f.length-1,$=F-1;for(;x<=L&&x<=$;){const B=f[x],V=h[x]=T?ft(h[x]):Je(h[x]);if(on(B,V))w(B,V,y,null,E,C,I,S,T);else break;x++}for(;x<=L&&x<=$;){const B=f[L],V=h[$]=T?ft(h[$]):Je(h[$]);if(on(B,V))w(B,V,y,null,E,C,I,S,T);else break;L--,$--}if(x>L){if(x<=$){const B=$+1,V=B$)for(;x<=L;)Se(f[x],E,C,!0),x++;else{const B=x,V=x,se=new Map;for(x=V;x<=$;x++){const Oe=h[x]=T?ft(h[x]):Je(h[x]);Oe.key!=null&&se.set(Oe.key,x)}let te,ue=0;const Me=$-V+1;let $t=!1,ho=0;const rn=new Array(Me);for(x=0;x=Me){Se(Oe,E,C,!0);continue}let Ke;if(Oe.key!=null)Ke=se.get(Oe.key);else for(te=V;te<=$;te++)if(rn[te-V]===0&&on(Oe,h[te])){Ke=te;break}Ke===void 0?Se(Oe,E,C,!0):(rn[Ke-V]=x+1,Ke>=ho?ho=Ke:$t=!0,w(Oe,h[Ke],y,null,E,C,I,S,T),ue++)}const po=$t?uu(rn):Bt;for(te=po.length-1,x=Me-1;x>=0;x--){const Oe=V+x,Ke=h[Oe],mo=Oe+1{const{el:C,type:I,transition:S,children:T,shapeFlag:x}=f;if(x&6){Le(f.component.subTree,h,y,b);return}if(x&128){f.suspense.move(h,y,b);return}if(x&64){I.move(f,h,y,Q);return}if(I===pe){s(C,h,y);for(let L=0;LS.enter(C),E);else{const{leave:L,delayLeave:$,afterLeave:B}=S,V=()=>s(C,h,y),se=()=>{L(C,()=>{V(),B&&B()})};$?$(C,V,se):se()}else s(C,h,y)},Se=(f,h,y,b=!1,E=!1)=>{const{type:C,props:I,ref:S,children:T,dynamicChildren:x,shapeFlag:F,patchFlag:L,dirs:$}=f;if(S!=null&&dr(S,null,y,f,!0),F&256){h.ctx.deactivate(f);return}const B=F&1&&$,V=!Qn(f);let se;if(V&&(se=I&&I.onVnodeBeforeUnmount)&&ze(se,h,f),F&6)v(f.component,y,b);else{if(F&128){f.suspense.unmount(y,b);return}B&&bt(f,null,h,"beforeUnmount"),F&64?f.type.remove(f,h,y,E,Q,b):x&&(C!==pe||L>0&&L&64)?k(x,h,y,!1,!0):(C===pe&&L&384||!E&&F&16)&&k(T,h,y),b&&Ft(f)}(V&&(se=I&&I.onVnodeUnmounted)||B)&&Re(()=>{se&&ze(se,h,f),B&&bt(f,null,h,"unmounted")},y)},Ft=f=>{const{type:h,el:y,anchor:b,transition:E}=f;if(h===pe){Mn(y,b);return}if(h===Yn){J(f);return}const C=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:S}=E,T=()=>I(y,C);S?S(f.el,C,T):T()}else C()},Mn=(f,h)=>{let y;for(;f!==h;)y=p(f),r(f),f=y;r(h)},v=(f,h,y)=>{const{bum:b,scope:E,update:C,subTree:I,um:S}=f;b&&Wn(b),E.stop(),C&&(C.active=!1,Se(I,f,h,y)),S&&Re(S,h),Re(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},k=(f,h,y,b=!1,E=!1,C=0)=>{for(let I=C;If.shapeFlag&6?P(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),D=(f,h,y)=>{f==null?h._vnode&&Se(h._vnode,null,null,!0):w(h._vnode||null,f,h,null,null,null,y),Ro(),lc(),h._vnode=f},Q={p:w,um:Se,m:Le,r:Ft,mt:yt,mc:we,pc:ee,pbc:he,n:P,o:e};let ce,z;return t&&([ce,z]=t(Q)),{render:D,hydrate:ce,createApp:cu(D,ce)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ac(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const fu=e=>e.__isTeleport,pe=Symbol(void 0),Is=Symbol(void 0),It=Symbol(void 0),Yn=Symbol(void 0),pn=[];let $e=null;function U(e=!1){pn.push($e=e?null:[])}function du(){pn.pop(),$e=pn[pn.length-1]||null}let Sn=1;function Lo(e){Sn+=e}function Tc(e){return e.dynamicChildren=Sn>0?$e||Bt:null,du(),Sn>0&&$e&&$e.push(e),e}function H(e,t,n,s,r,o){return Tc(O(e,t,n,s,r,o,!0))}function fs(e,t,n,s,r){return Tc(W(e,t,n,s,r,!0))}function hr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ks="__vInternal",Pc=({key:e})=>e??null,Gn=({ref:e,ref_key:t,ref_for:n})=>e!=null?fe(e)||be(e)||q(e)?{i:Ie,r:e,k:t,f:!!n}:e:null;function O(e,t=null,n=null,s=0,r=null,o=e===pe?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pc(t),ref:t&&Gn(t),scopeId:As,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return c?(zr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=fe(n)?8:16),Sn>0&&!i&&$e&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&$e.push(l),l}const W=hu;function hu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Wa)&&(e=It),hr(e)){const c=Wt(e,t,!0);return n&&zr(c,n),Sn>0&&!o&&$e&&(c.shapeFlag&6?$e[$e.indexOf(e)]=c:$e.push(c)),c.patchFlag|=-2,c}if(Su(e)&&(e=e.__vccOpts),t){t=pu(t);let{class:c,style:l}=t;c&&!fe(c)&&(t.class=bs(c)),re(l)&&(Gi(l)&&!j(l)&&(l=xe({},l)),t.style=_s(l))}const i=fe(e)?1:Ma(e)?128:fu(e)?64:re(e)?4:q(e)?2:0;return O(e,t,n,s,r,i,o,!0)}function pu(e){return e?Gi(e)||ks in e?xe({},e):e:null}function Wt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,c=t?mu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Pc(c),ref:t&&t.ref?n&&r?j(r)?r.concat(Gn(t)):[r,Gn(t)]:Gn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?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&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function me(e=" ",t=0){return W(Is,null,e,t)}function Ic(e,t){const n=W(Yn,null,e);return n.staticCount=t,n}function ht(e="",t=!1){return t?(U(),fs(It,null,e)):W(It,null,e)}function Je(e){return e==null||typeof e=="boolean"?W(It):j(e)?W(pe,null,e.slice()):typeof e=="object"?ft(e):W(Is,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ks in t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mu(...e){const t={};for(let n=0;n{ye=e,e.scope.on()},Pt=()=>{ye&&ye.scope.off(),ye=null};function kc(e){return e.vnode.shapeFlag&4}let Rn=!1;function bu(e,t=!1){Rn=t;const{props:n,children:s}=e.vnode,r=kc(e);tu(e,n,r,t),ru(e,s);const o=r?wu(e,t):void 0;return Rn=!1,o}function wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Zi(new Proxy(e.ctx,Qa));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Eu(e):null;Jt(e),Gt();const o=mt(s,e,0,[e.props,r]);if(Zt(),Pt(),$i(o)){if(o.then(Pt,Pt),t)return o.then(i=>{Mo(e,i,t)}).catch(i=>{Os(i,e,0)});e.asyncDep=o}else Mo(e,o,t)}else Nc(e,t)}function Mo(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=sc(t)),Nc(e,n)}let Do;function Nc(e,t,n){const s=e.type;if(!e.render){if(!t&&Do&&!s.render){const r=s.template||qr(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:l}=s,a=xe(xe({isCustomElement:o,delimiters:c},i),l);s.render=Do(r,a)}}e.render=s.render||je}Jt(e),Gt(),Xa(e),Zt(),Pt()}function vu(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function Eu(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=vu(e))},slots:e.slots,emit:e.emit,expose:t}}function Ns(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sc(Zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function xu(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Su(e){return q(e)&&"__vccOpts"in e}const Pe=(e,t)=>xa(e,t,Rn);function ds(e,t,n){const s=arguments.length;return s===2?re(t)&&!j(t)?hr(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hr(n)&&(n=[n]),W(e,t,n))}const Ru=Symbol(""),Ou=()=>Ye(Ru),Cu="3.2.45",Au="http://www.w3.org/2000/svg",Rt=typeof document<"u"?document:null,Fo=Rt&&Rt.createElement("template"),Tu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Rt.createElementNS(Au,e):Rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{Fo.innerHTML=s?`${e}`:e;const c=Fo.content;if(s){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Pu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Iu(e,t,n){const s=e.style,r=fe(n);if(n&&!r){for(const o in n)pr(s,o,n[o]);if(t&&!fe(t))for(const o in t)n[o]==null&&pr(s,o,"")}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const $o=/\s*!important$/;function pr(e,t,n){if(j(n))n.forEach(s=>pr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ku(e,t);$o.test(n)?e.setProperty(Lt(s),n.replace($o,""),"important"):e[s]=n}}const jo=["Webkit","Moz","ms"],Vs={};function ku(e,t){const n=Vs[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return Vs[t]=s;s=Ss(s);for(let r=0;rWs||($u.then(()=>Ws=0),Ws=Date.now());function Uu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(Bu(s,n.value),t,5,[s])};return n.value=e,n.attached=ju(),n}function Bu(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ho=/^on[a-z]/,Hu=(e,t,n,s,r=!1,o,i,c,l)=>{t==="class"?Pu(e,s,r):t==="style"?Iu(e,n,s):vs(t)?Pr(t)||Du(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qu(e,t,s,r))?Lu(e,t,s,o,i,c,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nu(e,t,s,r))};function qu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ho.test(t)&&q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ho.test(t)&&fe(n)?!1:t in e}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Wn(t,n):t};function Ku(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=hs(r);const o=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=wn(c)),e._assign(c)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",Ku),Ot(e,"compositionend",qo),Ot(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=hs(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&wn(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Js={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Es(t);Ot(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?wn(ps(i)):ps(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=hs(s)},mounted(e,{value:t}){Ko(e,t)},beforeUpdate(e,t,n){e._assign=hs(n)},updated(e,{value:t}){Ko(e,t)}};function Ko(e,t){const n=e.multiple;if(!(n&&!j(t)&&!Es(t))){for(let s=0,r=e.options.length;s-1:o.selected=t.has(i);else if(ws(ps(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}const Vu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wu=(e,t)=>n=>{if(!("key"in n))return;const s=Lt(n.key);if(t.some(r=>r===s||Vu[r]===s))return e(n)},Ju=xe({patchProp:Hu},Tu);let zo;function Qu(){return zo||(zo=lu(Ju))}const Xu=(...e)=>{const t=Qu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Yu(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Yu(e){return fe(e)?document.querySelector(e):e}const Vr="/assets/spotdl-5dcb64c0.svg",He=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gu={components:{},setup(){return{}}},Zu={class:"p-10 footer bg-neutral text-neutral-content"},ef=O("div",null,[O("img",{src:Vr,width:"50",height:"50",viewBox:"0 0 24 24"}),O("p",null,[me("spotDL"),O("br"),me("Open Source Music Downloader")])],-1),tf=Ic('
Social
',1),nf=[ef,tf];function sf(e,t,n,s,r,o){return U(),H("footer",Zu,nf)}const rf=He(Gu,[["render",sf]]);function Lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:Wr}=Object,Jr=(e=>t=>{const n=Mc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ot=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Ls=e=>t=>typeof t===e,{isArray:en}=Array,On=Ls("undefined");function of(e){return e!==null&&!On(e)&&e.constructor!==null&&!On(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Dc=ot("ArrayBuffer");function cf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Dc(e.buffer),t}const lf=Ls("string"),kt=Ls("function"),Fc=Ls("number"),Qr=e=>e!==null&&typeof e=="object",af=e=>e===!0||e===!1,Zn=e=>{if(Jr(e)!=="object")return!1;const t=Wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uf=ot("Date"),ff=ot("File"),df=ot("Blob"),hf=ot("FileList"),pf=e=>Qr(e)&&kt(e.pipe),mf=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mc.call(e)===t||kt(e.toString)&&e.toString()===t)},gf=ot("URLSearchParams"),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),en(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const jc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!On(e)&&e!==jc;function mr(){const{caseless:e}=Uc(this)&&this||{},t={},n=(s,r)=>{const o=e&&$c(t,r)||r;Zn(t[o])&&Zn(s)?t[o]=mr(t[o],s):Zn(s)?t[o]=mr({},s):en(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(kn(t,(r,o)=>{n&&kt(r)?e[o]=Lc(r,n):e[o]=r},{allOwnKeys:s}),e),bf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wf=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vf=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ef=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},xf=e=>{if(!e)return null;if(en(e))return e;let t=e.length;if(!Fc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wr(Uint8Array)),Rf=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Of=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Cf=ot("HTMLFormElement"),Af=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Vo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tf=ot("RegExp"),Bc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};kn(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},Pf=e=>{Bc(e,(t,n)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(kt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},If=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return en(e)?s(e):s(String(e).split(t)),n},kf=()=>{},Nf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Lf=e=>{const t=new Array(10),n=(s,r)=>{if(Qr(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=en(s)?[]:{};return kn(s,(i,c)=>{const l=n(i,r+1);!On(l)&&(o[c]=l)}),t[r]=void 0,o}}return s};return n(e,0)},_={isArray:en,isArrayBuffer:Dc,isBuffer:of,isFormData:mf,isArrayBufferView:cf,isString:lf,isNumber:Fc,isBoolean:af,isObject:Qr,isPlainObject:Zn,isUndefined:On,isDate:uf,isFile:ff,isBlob:df,isRegExp:Tf,isFunction:kt,isStream:pf,isURLSearchParams:gf,isTypedArray:Sf,isFileList:hf,forEach:kn,merge:mr,extend:_f,trim:yf,stripBOM:bf,inherits:wf,toFlatObject:vf,kindOf:Jr,kindOfTest:ot,endsWith:Ef,toArray:xf,forEachEntry:Rf,matchAll:Of,isHTMLForm:Cf,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Bc,freezeMethods:Pf,toObjectSet:If,toCamelCase:Af,noop:kf,toFiniteNumber:Nf,findKey:$c,global:jc,isContextDefined:Uc,toJSONObject:Lf};function Y(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}_.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hc=Y.prototype,qc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qc[e]={value:e}});Object.defineProperties(Y,qc);Object.defineProperty(Hc,"isAxiosError",{value:!0});Y.from=(e,t,n,s,r,o)=>{const i=Object.create(Hc);return _.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),Y.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var Mf=typeof self=="object"?self.FormData:window.FormData;const Df=Mf;function gr(e){return _.isPlainObject(e)||_.isArray(e)}function Kc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Wo(e,t,n){return e?e.concat(t).map(function(r,o){return r=Kc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function Ff(e){return _.isArray(e)&&!e.some(gr)}const $f=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e){return e&&_.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ms(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new(Df||FormData),n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,A){return!_.isUndefined(A[w])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&jf(t);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!l&&_.isBlob(g))throw new Y("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,w,A){let R=g;if(g&&!A&&typeof g=="object"){if(_.endsWith(w,"{}"))w=s?w:w.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&Ff(g)||_.isFileList(g)||_.endsWith(w,"[]")&&(R=_.toArray(g)))return w=Kc(w),R.forEach(function(M,J){!(_.isUndefined(M)||M===null)&&t.append(i===!0?Wo([w],J,o):i===null?w:w+"[]",a(M))}),!1}return gr(g)?!0:(t.append(Wo(A,w,o),a(g)),!1)}const d=[],p=Object.assign($f,{defaultVisitor:u,convertValue:a,isVisitable:gr});function m(g,w){if(!_.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(g),_.forEach(g,function(R,N){(!(_.isUndefined(R)||R===null)&&r.call(t,R,_.isString(N)?N.trim():N,w,p))===!0&&m(R,w?w.concat(N):[N])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Jo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Xr(e,t){this._pairs=[],e&&Ms(e,this,t)}const zc=Xr.prototype;zc.append=function(t,n){this._pairs.push([t,n])};zc.toString=function(t){const n=t?function(s){return t.call(this,s,Jo)}:Jo;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Uf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vc(e,t,n){if(!t)return e;const s=n&&n.encode||Uf,r=n&&n.serialize;let o;if(r?o=r(t,n):o=_.isURLSearchParams(t)?t.toString():new Xr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qo=Bf,Wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hf=typeof URLSearchParams<"u"?URLSearchParams:Xr,qf=FormData,Kf=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zf=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xe={isBrowser:!0,classes:{URLSearchParams:Hf,FormData:qf,Blob},isStandardBrowserEnv:Kf,isStandardBrowserWebWorkerEnv:zf,protocols:["http","https","file","blob","url","data"]};function Vf(e,t){return Ms(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Xe.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Wf(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jf(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&_.isArray(r)?r.length:i,l?(_.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!c):((!r[i]||!_.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&_.isArray(r[i])&&(r[i]=Jf(r[i])),!c)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,r)=>{t(Wf(s),r,n,0)}),n}return null}const Qf={"Content-Type":void 0};function Xf(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ds={transitional:Wc,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r&&r?JSON.stringify(Jc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Vf(t,this.formSerializer).toString();if((c=_.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ms(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Xf(t)):t}],transformResponse:[function(t){const n=this.transitional||Ds.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&_.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?Y.from(c,Y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(t){Ds.headers[t]={}});_.forEach(["post","put","patch"],function(t){Ds.headers[t]=_.merge(Qf)});const Yr=Ds,Yf=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gf=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Yf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Xo=Symbol("internals");function cn(e){return e&&String(e).trim().toLowerCase()}function es(e){return e===!1||e==null?e:_.isArray(e)?e.map(es):String(e)}function Zf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function ed(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Yo(e,t,n,s){if(_.isFunction(s))return s.call(this,t,n);if(_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function nd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class Fs{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,l,a){const u=cn(l);if(!u)throw new Error("header name must be a non-empty string");const d=_.findKey(r,u);(!d||r[d]===void 0||a===!0||a===void 0&&r[d]!==!1)&&(r[d||l]=es(c))}const i=(c,l)=>_.forEach(c,(a,u)=>o(a,u,l));return _.isPlainObject(t)||t instanceof this.constructor?i(t,n):_.isString(t)&&(t=t.trim())&&!ed(t)?i(Gf(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=cn(t),t){const s=_.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Zf(r);if(_.isFunction(n))return n.call(this,r,s);if(_.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cn(t),t){const s=_.findKey(this,t);return!!(s&&(!n||Yo(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=cn(i),i){const c=_.findKey(s,i);c&&(!n||Yo(s,s[c],c,n))&&(delete s[c],r=!0)}}return _.isArray(t)?t.forEach(o):o(t),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return _.forEach(this,(r,o)=>{const i=_.findKey(s,o);if(i){n[i]=es(r),delete n[o];return}const c=t?td(o):String(o).trim();c!==o&&delete n[o],n[c]=es(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&_.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Xo]=this[Xo]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=cn(i);s[c]||(nd(r,i),s[c]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}Fs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);_.freezeMethods(Fs.prototype);_.freezeMethods(Fs);const tt=Fs;function Qs(e,t){const n=this||Yr,s=t||n,r=tt.from(s.headers);let o=s.data;return _.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Qc(e){return!!(e&&e.__CANCEL__)}function Nn(e,t,n){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Nn,Y,{__CANCEL__:!0});const sd=null;function rd(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const od=Xe.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,c){const l=[];l.push(n+"="+encodeURIComponent(s)),_.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),_.isString(o)&&l.push("path="+o),_.isString(i)&&l.push("domain="+i),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cd(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Xc(e,t){return e&&!id(t)?cd(e,t):t}const ld=Xe.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const c=_.isString(i)?r(i):i;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ud(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const a=Date.now(),u=s[o];i||(i=a),n[r]=l,s[r]=a;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,c=o-n,l=s(c),a=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&a?(i-o)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const fd=typeof XMLHttpRequest<"u",dd=fd&&function(e){return new Promise(function(n,s){let r=e.data;const o=tt.from(e.headers).normalize(),i=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}_.isFormData(r)&&(Xe.isStandardBrowserEnv||Xe.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let a=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const u=Xc(e.baseURL,e.url);a.open(e.method.toUpperCase(),Vc(u,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const m=tt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};rd(function(R){n(R),l()},function(R){s(R),l()},w),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new Y("Request aborted",Y.ECONNABORTED,e,a)),a=null)},a.onerror=function(){s(new Y("Network Error",Y.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Wc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new Y(g,w.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,a)),a=null},Xe.isStandardBrowserEnv){const m=(e.withCredentials||ld(u))&&e.xsrfCookieName&&od.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in a&&_.forEach(o.toJSON(),function(g,w){a.setRequestHeader(w,g)}),_.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Go(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Go(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{a&&(s(!m||m.type?new Nn(null,e,a):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const p=ad(u);if(p&&Xe.protocols.indexOf(p)===-1){s(new Y("Unsupported protocol "+p+":",Y.ERR_BAD_REQUEST,e));return}a.send(r||null)})},ts={http:sd,xhr:dd};_.forEach(ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hd={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof tt?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function s(a,u,d){return _.isPlainObject(a)&&_.isPlainObject(u)?_.merge.call({caseless:d},a,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(a,u,d){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a,d)}else return s(a,u,d)}function o(a,u){if(!_.isUndefined(u))return s(void 0,u)}function i(a,u){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function c(a,u,d){if(d in t)return s(a,u);if(d in e)return s(void 0,a)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(a,u)=>r(ei(a),ei(u),!0)};return _.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||r,p=d(e[u],t[u],u);_.isUndefined(p)&&d!==c||(n[u]=p)}),n}const Yc="1.2.5",Gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ti={};Gr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Yc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new Y(r(i," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!ti[i]&&(ti[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function pd(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Y("option "+o+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const yr={assertOptions:pd,validators:Gr},lt=yr.validators;class ms{constructor(t){this.defaults=t,this.interceptors={request:new Qo,response:new Qo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&yr.assertOptions(s,{silentJSONParsing:lt.transitional(lt.boolean),forcedJSONParsing:lt.transitional(lt.boolean),clarifyTimeoutError:lt.transitional(lt.boolean)},!1),r!==void 0&&yr.assertOptions(r,{encode:lt.function,serialize:lt.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&_.merge(o.common,o[n.method]),i&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=tt.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,c.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let u,d=0,p;if(!l){const g=[Zo.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,a),p=g.length,u=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new Nn(o,i,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Zr(function(r){t=r}),cancel:t}}}const md=Zr;function gd(e){return function(n){return e.apply(null,n)}}function yd(e){return _.isObject(e)&&e.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([e,t])=>{_r[t]=e});const _d=_r;function Gc(e){const t=new ns(e),n=Lc(ns.prototype.request,t);return _.extend(n,ns.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Gc(Qt(e,r))},n}const de=Gc(Yr);de.Axios=ns;de.CanceledError=Nn;de.CancelToken=md;de.isCancel=Qc;de.VERSION=Yc;de.toFormData=Ms;de.AxiosError=Y;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=gd;de.isAxiosError=yd;de.mergeConfig=Qt;de.AxiosHeaders=tt;de.formToJSON=e=>Jc(_.isHTMLForm(e)?new FormData(e):e);de.HttpStatusCode=_d;de.default=de;const bd=de,Fe={PROTOCOL:{}.PROTOCOL||window.location.protocol,WS_PROTOCOL:{}.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:{}.BACKEND||window.location.hostname,PORT:{}.PORT||window.location.port,WS_PORT:{}.WS_PORT||window.location.port,BASEURL:{}.BASEURL||""};let Hn;const wd=new Uint8Array(16);function vd(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(wd)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function Ed(e,t=0){return(ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]).toLowerCase()}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:xd};function Sd(e,t,n){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};const s=e.random||(e.rng||vd)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=s[r];return t}return Ed(s)}console.log("using env:",{});console.log("using config: ",Fe);const Mt=bd.create({baseURL:`${Fe.PROTOCOL}//${Fe.BACKEND}:${Fe.PORT}${Fe.BASEURL}`}),tn=Sd();console.log("session ID: ",tn);const eo=new WebSocket(`${Fe.WS_PROTOCOL}//${Fe.BACKEND}${Fe.PORT!==""?":"+Fe.PORT:""}${Fe.BASEURL}/api/ws?client_id=${tn}`);eo.onopen=e=>{console.log("websocket connection opened",e)};function Rd(e){return Mt.get("/api/songs/search",{params:{query:e}})}function Od(e){return Mt.get("/api/song/url",{params:{url:e}})}function Cd(e){return Mt.post("/api/download/url",null,{params:{url:e,client_id:tn}})}function Ad(){return Mt.get("/api/check_update")}function Td(e){return Mt.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(tn)}function Pd(){return Mt.get("/api/settings",{params:{client_id:tn}})}function Id(e){return Mt.post("/api/settings/update",e,{params:{client_id:tn}})}function kd(e){return eo.onmessage=e}function Nd(e){return eo.onerror=e}const nt={search:Rd,open:Od,download:Cd,downloadFileURL:Td,getSettings:Pd,setSettings:Id,check_for_update:Ad,ws_onmessage:kd,ws_onerror:Nd},ss=Te({audio_providers:[""],lyrics_providers:[""]}),Ld={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};nt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),ss.value=e.data):console.log("Error loading settings")});function Md(){const e=Te();function t(){console.log("Saving settings:",ss.value),nt.setSettings(ss.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.log("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:ss,settingsOptions:Ld,isSaved:e}}const mn=/^[a-z0-9]+(-[a-z0-9]+)*$/,$s=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:s,prefix:l,name:c};return t&&!rs(a)?null:a}const o=r[0],i=o.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!rs(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:o};return t&&!rs(c,n)?null:c}return null},rs=(e,t)=>e?!!((e.provider===""||e.provider.match(mn))&&(t&&e.prefix===""||e.prefix.match(mn))&&e.name.match(mn)):!1,Zc=Object.freeze({left:0,top:0,width:16,height:16}),gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),js=Object.freeze({...Zc,...gs}),br=Object.freeze({...js,body:"",hidden:!1});function Dd(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function si(e,t){const n=Dd(e,t);for(const s in br)s in gs?s in e&&!(s in n)&&(n[s]=gs[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function Fd(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=s[i]&&s[i].parent,l=c&&o(c);l&&(r[i]=[c].concat(l))}return r[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(o),r}function $d(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(c){o=si(s[c]||r[c],o)}return i(t),n.forEach(i),si(e,o)}function el(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=Fd(e);for(const r in s){const o=s[r];o&&(t(r,$d(e,r,o)),n.push(r))}return n}const jd={provider:"",aliases:{},not_found:{},...Zc};function Ys(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ys(e,jd))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(mn)||typeof o.body!="string"||!Ys(o,br))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(mn)||typeof i!="string"||!n[i]&&!s[i]||!Ys(o,br))return null}return t}const ri=Object.create(null);function Ud(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Nt(e,t){const n=ri[e]||(ri[e]=Object.create(null));return n[t]||(n[t]=Ud(e,t))}function to(e,t){return tl(t)?el(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Bd(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Cn=!1;function nl(e){return typeof e=="boolean"&&(Cn=e),Cn}function Hd(e){const t=typeof e=="string"?$s(e,!0,Cn):e;if(t){const n=Nt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function qd(e,t){const n=$s(e,!0,Cn);if(!n)return!1;const s=Nt(n.provider,n.prefix);return Bd(s,n.name,t)}function Kd(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Cn&&!t&&!e.prefix){let r=!1;return tl(e)&&(e.prefix="",el(e,(o,i)=>{i&&qd(o,i)&&(r=!0)})),r}const n=e.prefix;if(!rs({provider:t,prefix:n,name:"a"}))return!1;const s=Nt(t,n);return!!to(s,e)}const sl=Object.freeze({width:null,height:null}),rl=Object.freeze({...sl,...gs}),zd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oi(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(zd);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=Vd.test(o);for(;;){if(i){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function Wd(e,t){const n={...js,...e},s={...rl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(m=>{const g=[],w=m.hFlip,A=m.vFlip;let R=m.rotate;w?A?R+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):A&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let N;switch(R<0&&(R-=Math.floor(R/4)*4),R=R%4,R){case 1:N=r.height/2+r.top,g.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:N=r.width/2+r.left,g.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}R%2===1&&(r.left!==r.top&&(N=r.left,r.left=r.top,r.top=N),r.width!==r.height&&(N=r.width,r.width=r.height,r.height=N)),g.length&&(o=''+o+"")});const i=s.width,c=s.height,l=r.width,a=r.height;let u,d;return i===null?(d=c===null?"1em":c==="auto"?a:c,u=oi(d,l/a)):(u=i==="auto"?l:i,d=c===null?oi(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:d.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString()},body:o}}const Jd=/\sid="(\S+)"/g,Qd="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xd=0;function Yd(e,t=Qd){const n=[];let s;for(;s=Jd.exec(e);)n.push(s[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(Xd++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const wr=Object.create(null);function Gd(e,t){wr[e]=t}function vr(e){return wr[e]||wr[""]}function no(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const so=Object.create(null),ln=["https://api.simplesvg.com","https://api.unisvg.com"],os=[];for(;ln.length>0;)ln.length===1||Math.random()>.5?os.push(ln.shift()):os.push(ln.pop());so[""]=no({resources:["https://api.iconify.design"].concat(os)});function Zd(e,t){const n=no(t);return n===null?!1:(so[e]=n,!0)}function ro(e){return so[e]}const eh=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ii=eh();function th(e,t){const n=ro(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function nh(e){return e===404}const sh=(e,t,n)=>{const s=[],r=th(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),s.push(i),s};function rh(e){if(typeof e=="string"){const t=ro(e);if(t)return t.path}return"/"}const oh=(e,t,n)=>{if(!ii){n("abort",424);return}let s=rh(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});s+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;ii(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(nh(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},ih={prepare:sh,send:oh};function ch(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,c=r.name,l=n[o]||(n[o]=Object.create(null)),a=l[i]||(l[i]=Nt(o,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const d={provider:o,prefix:i,name:c};u.push(d)}),t}function ol(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function lh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:s,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ol([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let ah=0;function uh(e,t,n){const s=ah++,r=ol.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function fh(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?$s(r,t,n):r;o&&s.push(o)}),s}var dh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function hh(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let K=e.resources.slice(0);for(i=[];K.length>1;){const ie=Math.floor(Math.random()*K.length);i.push(K[ie]),K=K.slice(0,ie).concat(K.slice(ie+1))}i=i.concat(K)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let l="pending",a=0,u,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function g(){d&&(clearTimeout(d),d=null)}function w(){l==="pending"&&(l="aborted"),g(),p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function A(K,ie){ie&&(m=[]),typeof K=="function"&&m.push(K)}function R(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:p.length,subscribe:A,abort:w}}function N(){l="failed",m.forEach(K=>{K(void 0,u)})}function M(){p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function J(K,ie,we){const ke=ie!=="success";switch(p=p.filter(he=>he!==K),l){case"pending":break;case"failed":if(ke||!e.dataAfterTimeout)return;break;default:return}if(ie==="abort"){u=we,N();return}if(ke){u=we,p.length||(i.length?le():N());return}if(g(),M(),!e.random){const he=e.resources.indexOf(K.resource);he!==-1&&he!==e.index&&(e.index=he)}l="completed",m.forEach(he=>{he(we)})}function le(){if(l!=="pending")return;g();const K=i.shift();if(K===void 0){if(p.length){d=setTimeout(()=>{g(),l==="pending"&&(M(),N())},e.timeout);return}N();return}const ie={status:"pending",resource:K,callback:(we,ke)=>{J(ie,we,ke)}};p.push(ie),a++,d=setTimeout(le,e.rotate),n(K,t,ie.callback)}return setTimeout(le),R}function il(e){const t={...dh,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=hh(t,c,l,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function o(c){return n.find(l=>c(l))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ci(){}const Gs=Object.create(null);function ph(e){if(!Gs[e]){const t=ro(e);if(!t)return;const n=il(t),s={config:t,redundancy:n};Gs[e]=s}return Gs[e]}function mh(e,t,n){let s,r;if(typeof e=="string"){const o=vr(e);if(!o)return n(void 0,424),ci;r=o.send;const i=ph(e);i&&(s=i.redundancy)}else{const o=no(e);if(o){s=il(o);const i=e.resources?e.resources[0]:"",c=vr(i);c&&(r=c.send)}}return!s||!r?(n(void 0,424),ci):s.query(t,r,n)().abort}const li="iconify2",An="iconify",cl=An+"-count",ai=An+"-version",ll=36e5,gh=168;function Er(e,t){try{return e.getItem(t)}catch{}}function oo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ui(e,t){try{e.removeItem(t)}catch{}}function xr(e,t){return oo(e,cl,t.toString())}function Sr(e){return parseInt(Er(e,cl))||0}const Us={local:!0,session:!0},al={local:new Set,session:new Set};let io=!1;function yh(e){io=e}let qn=typeof window>"u"?{}:window;function ul(e){const t=e+"Storage";try{if(qn&&qn[t]&&typeof qn[t].length=="number")return qn[t]}catch{}Us[e]=!1}function fl(e,t){const n=ul(e);if(!n)return;const s=Er(n,ai);if(s!==li){if(s){const c=Sr(n);for(let l=0;l{const l=An+c.toString(),a=Er(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}ui(n,l)}};let i=Sr(n);for(let c=i-1;c>=0;c--)o(c)||(c===i-1?(i--,xr(n,i)):al[e].add(c))}function dl(){if(!io){yh(!0);for(const e in Us)fl(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=Nt(s,r);if(!to(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function _h(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in Us)fl(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function bh(e,t){io||dl();function n(s){let r;if(!Us[s]||!(r=ul(s)))return;const o=al[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Sr(r),!xr(r,i+1))return;const c={cached:Math.floor(Date.now()/ll),provider:e.provider,data:t};return oo(r,An+i.toString(),JSON.stringify(c))}t.lastModified&&!_h(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function fi(){}function wh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,lh(e)}))}function vh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=vr(n)))return;o.prepare(n,s,r).forEach(c=>{mh(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=to(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(d=>{u.delete(d)}),bh(e,l)}catch(a){console.error(a)}wh(e)})})}))}const Eh=(e,t)=>{const n=fh(e,!0,nl()),s=ch(n);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,fi)}),()=>{l=!1}}const r=Object.create(null),o=[];let i,c;return s.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,o.push(Nt(a,u));const d=r[a]||(r[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(l=>{const{provider:a,prefix:u,name:d}=l,p=Nt(a,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[a][u].push(d))}),o.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&vh(l,r[a][u])}),t?uh(t,s,o):fi};function xh(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in sl?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Sh=/[\s,]+/;function Rh(e,t){t.split(Sh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Oh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function Ch(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function Ah(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Th(e){return'url("data:image/svg+xml,'+Ah(e)+'")'}const di={...rl,inline:!1},Ph={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ih={display:"inline-block"},Rr={backgroundColor:"currentColor"},hl={backgroundColor:"transparent"},hi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},pi={webkitMask:Rr,mask:Rr,background:hl};for(const e in pi){const t=pi[e];for(const n in hi)t[e+n]=hi[n]}const is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";is[e+"-flip"]=t,is[e.slice(0,1)+"-flip"]=t,is[e+"Flip"]=t});function mi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const gi=(e,t)=>{const n=xh(di,t),s={...Ph},r=t.mode||"svg",o={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let w in t){const A=t[w];if(A!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[w]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Rh(n,A);break;case"color":o.color=A;break;case"rotate":typeof A=="string"?n[w]=Oh(A):typeof A=="number"&&(n[w]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete s["aria-hidden"];break;default:{const R=is[w];R?(A===!0||A==="true"||A===1)&&(n[R]=!0):di[w]===void 0&&(s[w]=A)}}}const l=Wd(e,n),a=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...c},Object.assign(s,a);let w=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),s.innerHTML=Yd(l.body,A?()=>A+"ID"+w++:"iconifyVue"),ds("svg",s)}const{body:u,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Ch(u,{...a,width:d+"",height:p+""});return s.style={...o,"--svg":Th(g),width:mi(a.width),height:mi(a.height),...Ih,...m?Rr:hl,...c},ds("span",s)};nl(!0);Gd("",ih);if(typeof document<"u"&&typeof window<"u"){dl();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Kd(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Zd(n,r)||console.error(s)}catch{console.error(s)}}}}const kh={...js,body:""},nn=Hr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=$s(e,!1,!0))===null)return this.abortLoading(),null;const s=Hd(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Eh([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return gi(kh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),gi({...js,...t.data},n)}}),Nh={components:{Icon:nn},setup(){return{sm:Md()}}},Lh=O("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),Mh={class:"modal"},Dh={class:"modal-box relative"},Fh=O("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),$h=O("h3",{class:"font-bold text-lg"},"Download Settings",-1),jh={class:"flex flex-col justify-center my-4"},Uh={class:"form-control w-full"},Bh=O("label",{class:"label"},[O("span",{class:"label-text"},"Audio Provider")],-1),Hh=["selected"],qh={class:"form-control w-full"},Kh=O("label",{class:"label"},[O("span",{class:"label-text"},"Lyrics Provider")],-1),zh=["selected"],Vh={class:"form-control w-full"},Wh=O("label",{class:"label"},[O("span",{class:"label-text"},"Output Format")],-1),Jh=["selected"],Qh={key:0,class:"alert alert-success shadow-lg"},Xh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Changes saved")],-1),Yh=[Xh],Gh={key:1,class:"alert alert-error shadow-lg"},Zh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Error! Unable to save settings")],-1),ep=[Zh],tp={class:"modal-action"};function np(e,t,n,s,r,o){return U(),H(pe,null,[Lh,O("div",Mh,[O("div",Dh,[Fh,$h,O("div",jh,[O("div",Uh,[Bh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[0]||(t[0]=i=>s.sm.settings.value.audio_providers[0]=i)},[(U(!0),H(pe,null,Tt(s.sm.settingsOptions.audio_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.audio_providers)==null?void 0:l[0])},Ce(i),9,Hh)}),128))],512),[[Js,s.sm.settings.value.audio_providers[0]]])]),O("div",qh,[Kh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[1]||(t[1]=i=>s.sm.settings.value.lyrics_providers[0]=i)},[(U(!0),H(pe,null,Tt(s.sm.settingsOptions.lyrics_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.lyrics_providers)==null?void 0:l[0])},Ce(i),9,zh)}),128))],512),[[Js,s.sm.settings.value.lyrics_providers[0]]])]),O("div",Vh,[Wh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[2]||(t[2]=i=>s.sm.settings.value.format=i)},[(U(!0),H(pe,null,Tt(s.sm.settingsOptions.format,(i,c)=>(U(),H("option",{key:c,selected:i===s.sm.settings.value.format},Ce(i),9,Jh))),128))],512),[[Js,s.sm.settings.value.format]])])]),s.sm.isSaved.value===!0?(U(),H("div",Qh,Yh)):ht("",!0),s.sm.isSaved.value===!1?(U(),H("div",Gh,ep)):ht("",!0),O("div",tp,[O("label",{class:"btn",onClick:t[3]||(t[3]=i=>s.sm.saveSettings())},"Save")])])])],64)}const sp=He(Nh,[["render",np]]),Ve=Te(""),yi=Te("light"),_i=Te("dark");function pl({useSystem:e=!0,initialTheme:t="",newLightAlias:n=null,newDarkAlias:s=null}={}){function r(u){yi.value=u,a()}function o(u){_i.value=u,a()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c(u){Ve.value=u,a()}function l(){Ve==="dark"?Ve.value="light":Ve==="light"&&(Ve.value="dark"),a()}function a(){document.documentElement.setAttribute("data-theme",Ve.value==="dark"?_i.value:yi.value)}return Ve.value!=="light"&&Ve.value!=="dark"&&(e&&c(i()),(t==="light"||t==="dark")&&(Ve.value=t)),n&&r(n),s&&o(s),a(),{currentTheme:Ve,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:c,switchTheme:l}}const rp={name:"App",components:{Footer:rf,Settings:sp},setup(){const e=pl();return yc(()=>{e.setLightAlias("emerald"),e.setDarkAlias("forest")}),{themeMgr:e}}},op={class:"bg-base-300 absolute w-full top-0"};function ip(e,t,n,s,r,o){const i=Ee("router-view"),c=Ee("Footer"),l=Ee("Settings");return U(),H("div",op,[W(i),W(c),W(l)])}const cp=He(rp,[["render",ip]]);/*! +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Pr(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function _s(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(Il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function bs(e){let t="";if(fe(e))t=e;else if(j(e))for(let n=0;nws(n,t))}const Ce=e=>fe(e)?e:e==null?"":j(e)||re(e)&&(e.toString===ji||!q(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:re(t)&&!j(t)&&!Ui(t)?String(t):t,oe={},Bt=[],je=()=>{},Dl=()=>!1,jl=/^on[^a-z]/,vs=e=>jl.test(e),Tr=e=>e.startsWith("onUpdate:"),xe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ul=Object.prototype.hasOwnProperty,X=(e,t)=>Ul.call(e,t),j=Array.isArray,Ht=e=>Tn(e)==="[object Map]",Es=e=>Tn(e)==="[object Set]",go=e=>Tn(e)==="[object Date]",q=e=>typeof e=="function",fe=e=>typeof e=="string",_n=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Di=e=>re(e)&&q(e.then)&&q(e.catch),ji=Object.prototype.toString,Tn=e=>ji.call(e),Bl=e=>Tn(e).slice(8,-1),Ui=e=>Tn(e)==="[object Object]",kr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hl=/-(\w)/g,Ge=xs(e=>e.replace(Hl,(t,n)=>n?n.toUpperCase():"")),ql=/\B([A-Z])/g,Lt=xs(e=>e.replace(ql,"-$1").toLowerCase()),Ss=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=xs(e=>e?`on${Ss(e)}`:""),bn=(e,t)=>!Object.is(e,t),Wn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yo;const Kl=()=>yo||(yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class zl{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Bi=e=>(e.w>)>0,Hi=e=>(e.n>)>0,Wl=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&c.push(a)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?kr(n)&&c.push(i.get("length")):(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"delete":j(e)||(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"set":Ht(e)&&c.push(i.get(At));break}if(c.length===1)c[0]&&ir(c[0]);else{const l=[];for(const a of c)a&&l.push(...a);ir(Nr(l))}}function ir(e,t){const n=j(e)?e:[...e];for(const s of n)s.computed&&bo(s);for(const s of n)s.computed||bo(s)}function bo(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ql=Pr("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_n)),Xl=Mr(),Yl=Mr(!1,!0),Gl=Mr(!0),wo=Zl();function Zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=G(this);for(let o=0,i=this.length;o{e[t]=function(...n){Gt();const s=G(this)[t].apply(this,n);return Zt(),s}}),e}function Mr(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?ma:Xi:t?Qi:Ji).get(s))return s;const i=j(s);if(!e&&i&&X(wo,r))return Reflect.get(wo,r,o);const c=Reflect.get(s,r,o);return(_n(r)?zi.has(r):Ql(r))||(e||Ae(s,"get",r),t)?c:be(c)?i&&kr(r)?c:c.value:re(c)?e?Yi(c):In(c):c}}const ea=Vi(),ta=Vi(!0);function Vi(e=!1){return function(n,s,r,o){let i=n[s];if(Vt(i)&&be(i)&&!be(r))return!1;if(!e&&(!ls(r)&&!Vt(r)&&(i=G(i),r=G(r)),!j(n)&&be(i)&&!be(r)))return i.value=r,!0;const c=j(n)&&kr(s)?Number(s)e,Rs=e=>Reflect.getPrototypeOf(e);function Fn(e,t,n=!1,s=!1){e=e.__v_raw;const r=G(e),o=G(t);n||(t!==o&&Ae(r,"get",t),Ae(r,"get",o));const{has:i}=Rs(r),c=s?Fr:n?jr:vn;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function $n(e,t=!1){const n=this.__v_raw,s=G(n),r=G(e);return t||(e!==r&&Ae(s,"has",e),Ae(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Dn(e,t=!1){return e=e.__v_raw,!t&&Ae(G(e),"iterate",At),Reflect.get(e,"size",e)}function vo(e){e=G(e);const t=G(this);return Rs(t).has.call(t,e)||(t.add(e),nt(t,"add",e,e)),this}function Eo(e,t){t=G(t);const n=G(this),{has:s,get:r}=Rs(n);let o=s.call(n,e);o||(e=G(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?bn(t,i)&&nt(n,"set",e,t):nt(n,"add",e,t),this}function xo(e){const t=G(this),{has:n,get:s}=Rs(t);let r=n.call(t,e);r||(e=G(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&nt(t,"delete",e,void 0),o}function So(){const e=G(this),t=e.size!==0,n=e.clear();return t&&nt(e,"clear",void 0,void 0),n}function jn(e,t){return function(s,r){const o=this,i=o.__v_raw,c=G(i),l=t?Fr:e?jr:vn;return!e&&Ae(c,"iterate",At),i.forEach((a,u)=>s.call(r,l(a),l(u),o))}}function Un(e,t,n){return function(...s){const r=this.__v_raw,o=G(r),i=Ht(o),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,a=r[e](...s),u=n?Fr:t?jr:vn;return!t&&Ae(o,"iterate",l?or:At),{next(){const{value:d,done:p}=a.next();return p?{value:d,done:p}:{value:c?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){return e==="delete"?!1:this}}function ca(){const e={get(o){return Fn(this,o)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!1)},t={get(o){return Fn(this,o,!1,!0)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!0)},n={get(o){return Fn(this,o,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!1)},s={get(o){return Fn(this,o,!0,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Un(o,!1,!1),n[o]=Un(o,!0,!1),t[o]=Un(o,!1,!0),s[o]=Un(o,!0,!0)}),[e,n,t,s]}const[la,aa,ua,fa]=ca();function $r(e,t){const n=t?e?fa:ua:e?aa:la;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const da={get:$r(!1,!1)},ha={get:$r(!1,!0)},pa={get:$r(!0,!1)},Ji=new WeakMap,Qi=new WeakMap,Xi=new WeakMap,ma=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ya(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(Bl(e))}function In(e){return Vt(e)?e:Dr(e,!1,Wi,da,Ji)}function _a(e){return Dr(e,!1,ia,ha,Qi)}function Yi(e){return Dr(e,!0,oa,pa,Xi)}function Dr(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ya(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function qt(e){return Vt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function Gi(e){return qt(e)||Vt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Zi(e){return cs(e,"__v_skip",!0),e}const vn=e=>re(e)?In(e):e,jr=e=>re(e)?Yi(e):e;function ec(e){ht&&Fe&&(e=G(e),Ki(e.dep||(e.dep=Nr())))}function tc(e,t){e=G(e),e.dep&&ir(e.dep)}function be(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){return nc(e,!1)}function ba(e){return nc(e,!0)}function nc(e,t){return be(e)?e:new wa(e,t)}class wa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:vn(t)}get value(){return ec(this),this._value}set value(t){const n=this.__v_isShallow||ls(t)||Vt(t);t=n?t:G(t),bn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vn(t),tc(this))}}function Kt(e){return be(e)?e.value:e}const va={get:(e,t,n)=>Kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function sc(e){return qt(e)?e:new Proxy(e,va)}var rc;class Ea{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rc]=!1,this._dirty=!0,this.effect=new Lr(t,()=>{this._dirty||(this._dirty=!0,tc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=G(this);return ec(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rc="__v_isReadonly";function xa(e,t,n=!1){let s,r;const o=q(e);return o?(s=e,r=je):(s=e.get,r=e.set),new Ea(s,r,o||!r,n)}function pt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Os(o,t,n)}return r}function Ue(e,t,n,s){if(q(e)){const o=pt(e,t,n,s);return o&&Di(o)&&o.catch(i=>{Os(i,t,n)}),o}const r=[];for(let o=0;o>>1;xn(_e[s])Qe&&_e.splice(t,1)}function Ca(e){j(e)?zt.push(...e):(!et||!et.includes(e,e.allowRecurse?St+1:St))&&zt.push(e),cc()}function Ro(e,t=En?Qe+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function lc(e){if(zt.length){const t=[...new Set(zt)];if(zt.length=0,et){et.push(...t);return}for(et=t,et.sort((n,s)=>xn(n)-xn(s)),St=0;Ste.id==null?1/0:e.id,Aa=(e,t)=>{const n=xn(e)-xn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ac(e){cr=!1,En=!0,_e.sort(Aa);const t=je;try{for(Qe=0;Qe<_e.length;Qe++){const n=_e[Qe];n&&n.active!==!1&&pt(n,null,14)}}finally{Qe=0,_e.length=0,lc(),En=!1,Ur=null,(_e.length||zt.length)&&ac()}}function Pa(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:p}=s[u]||oe;p&&(r=n.map(m=>fe(m)?m.trim():m)),d&&(r=n.map(wn))}let c,l=s[c=qs(t)]||s[c=qs(Ge(t))];!l&&o&&(l=s[c=qs(Lt(t))]),l&&Ue(l,e,6,r);const a=s[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ue(a,e,6,r)}}function uc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!q(e)){const l=a=>{const u=uc(a,t,!0);u&&(c=!0,xe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!c?(re(e)&&s.set(e,null),null):(j(o)?o.forEach(l=>i[l]=null):xe(i,o),re(e)&&s.set(e,i),i)}function Cs(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Lt(t))||X(e,t))}let Ie=null,As=null;function as(e){const t=Ie;return Ie=e,As=e&&e.type.__scopeId||null,t}function fc(e){As=e}function dc(){As=null}function Ta(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Lo(-1);const o=as(t);let i;try{i=e(...r)}finally{as(o),s._d&&Lo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:m,ctx:g,inheritAttrs:w}=e;let A,R;const N=as(e);try{if(n.shapeFlag&4){const J=r||s;A=Je(u.call(J,J,d,o,m,p,g)),R=l}else{const J=t;A=Je(J.length>1?J(o,{attrs:l,slots:c,emit:a}):J(o,null)),R=t.props?l:Ia(l)}}catch(J){pn.length=0,Os(J,e,1),A=W(It)}let M=A;if(R&&w!==!1){const J=Object.keys(R),{shapeFlag:le}=M;J.length&&le&7&&(i&&J.some(Tr)&&(R=ka(R,i)),M=Wt(M,R))}return n.dirs&&(M=Wt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),A=M,as(N),A}const Ia=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},ka=(e,t)=>{const n={};for(const s in e)(!Tr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Na(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:l}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Oo(s,i,a):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Fa(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Ca(e)}function Jn(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ye||Ie;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s.proxy):t}}const Bn={};function dn(e,t,n){return hc(e,t,n)}function hc(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=oe){const c=ye;let l,a=!1,u=!1;if(be(e)?(l=()=>e.value,a=ls(e)):qt(e)?(l=()=>e,s=!0):j(e)?(u=!0,a=e.some(M=>qt(M)||ls(M)),l=()=>e.map(M=>{if(be(M))return M.value;if(qt(M))return Ct(M);if(q(M))return pt(M,c,2)})):q(e)?t?l=()=>pt(e,c,2):l=()=>{if(!(c&&c.isUnmounted))return d&&d(),Ue(e,c,3,[p])}:l=je,t&&s){const M=l;l=()=>Ct(M())}let d,p=M=>{d=R.onStop=()=>{pt(M,c,4)}},m;if(Rn)if(p=je,t?n&&Ue(t,c,3,[l(),u?[]:void 0,p]):l(),r==="sync"){const M=Ou();m=M.__watcherHandles||(M.__watcherHandles=[])}else return je;let g=u?new Array(e.length).fill(Bn):Bn;const w=()=>{if(R.active)if(t){const M=R.run();(s||a||(u?M.some((J,le)=>bn(J,g[le])):bn(M,g)))&&(d&&d(),Ue(t,c,3,[M,g===Bn?void 0:u&&g[0]===Bn?[]:g,p]),g=M)}else R.run()};w.allowRecurse=!!t;let A;r==="sync"?A=w:r==="post"?A=()=>Re(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),A=()=>Br(w));const R=new Lr(l,A);t?n?w():g=R.run():r==="post"?Re(R.run.bind(R),c&&c.suspense):R.run();const N=()=>{R.stop(),c&&c.scope&&Ir(c.scope.effects,R)};return m&&m.push(N),N}function $a(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?pc(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=ye;Jt(this);const c=hc(r,o.bind(s),n);return i?Jt(i):Tt(),c}function pc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ct(n,t)});else if(Ui(e))for(const n in e)Ct(e[n],t);return e}function Hr(e){return q(e)?{setup:e,name:e.name}:e}const Qn=e=>!!e.type.__asyncLoader,mc=e=>e.type.__isKeepAlive;function Da(e,t){gc(e,"a",t)}function ja(e,t){gc(e,"da",t)}function gc(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ps(t,s,n),n){let r=n.parent;for(;r&&r.parent;)mc(r.parent.vnode)&&Ua(s,t,n,r),r=r.parent}}function Ua(e,t,n,s){const r=Ps(t,e,s,!0);bc(()=>{Ir(s[t],r)},n)}function Ps(e,t,n=ye,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Gt(),Jt(n);const c=Ue(t,n,e,i);return Tt(),Zt(),c});return s?r.unshift(o):r.push(o),o}}const st=e=>(t,n=ye)=>(!Rn||e==="sp")&&Ps(e,(...s)=>t(...s),n),yc=st("bm"),Ts=st("m"),Ba=st("bu"),Ha=st("u"),_c=st("bum"),bc=st("um"),qa=st("sp"),Ka=st("rtg"),za=st("rtc");function Va(e,t=ye){Ps("ec",e,t)}function Xn(e,t){const n=Ie;if(n===null)return e;const s=Ns(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,l=i.length;ce?kc(e)?Ns(e)||e.proxy:lr(e.parent):null,hn=xe(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=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>qr(e),$forceUpdate:e=>e.f||(e.f=()=>Br(e.update)),$nextTick:e=>e.n||(e.n=ic.bind(e.proxy)),$watch:e=>$a.bind(e)}),zs=(e,t)=>e!==oe&&!e.__isScriptSetup&&X(e,t),Qa={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=e;let a;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(zs(s,t))return i[t]=1,s[t];if(r!==oe&&X(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&X(a,t))return i[t]=3,o[t];if(n!==oe&&X(n,t))return i[t]=4,n[t];ar&&(i[t]=0)}}const u=hn[t];let d,p;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==oe&&X(n,t))return i[t]=4,n[t];if(p=l.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return zs(r,t)?(r[t]=n,!0):s!==oe&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==oe&&X(e,i)||zs(t,i)||(c=o[0])&&X(c,i)||X(s,i)||X(hn,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ar=!0;function Xa(e){const t=qr(e),n=e.proxy,s=e.ctx;ar=!1,t.beforeCreate&&Ao(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:A,beforeDestroy:R,beforeUnmount:N,destroyed:M,unmounted:J,render:le,renderTracked:K,renderTriggered:ie,errorCaptured:we,serverPrefetch:ke,expose:he,inheritAttrs:ot,components:qe,directives:Ft,filters:yt}=t;if(a&&Ya(a,s,null,e.appContext.config.unwrapInjectedRef),i)for(const ne in i){const ee=i[ne];q(ee)&&(s[ne]=ee.bind(n))}if(r){const ne=r.call(n,n);re(ne)&&(e.data=In(ne))}if(ar=!0,o)for(const ne in o){const ee=o[ne],Ne=q(ee)?ee.bind(n,n):q(ee.get)?ee.get.bind(n,n):je,_t=!q(ee)&&q(ee.set)?ee.set.bind(n):je,Le=Te({get:Ne,set:_t});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Se=>Le.value=Se})}if(c)for(const ne in c)vc(c[ne],s,n,ne);if(l){const ne=q(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ee=>{Jn(ee,ne[ee])})}u&&Ao(u,e,"c");function ae(ne,ee){j(ee)?ee.forEach(Ne=>ne(Ne.bind(n))):ee&&ne(ee.bind(n))}if(ae(yc,d),ae(Ts,p),ae(Ba,m),ae(Ha,g),ae(Da,w),ae(ja,A),ae(Va,we),ae(za,K),ae(Ka,ie),ae(_c,N),ae(bc,J),ae(qa,ke),j(he))if(he.length){const ne=e.exposed||(e.exposed={});he.forEach(ee=>{Object.defineProperty(ne,ee,{get:()=>n[ee],set:Ne=>n[ee]=Ne})})}else e.exposed||(e.exposed={});le&&e.render===je&&(e.render=le),ot!=null&&(e.inheritAttrs=ot),qe&&(e.components=qe),Ft&&(e.directives=Ft)}function Ya(e,t,n=je,s=!1){j(e)&&(e=ur(e));for(const r in e){const o=e[r];let i;re(o)?"default"in o?i=Ye(o.from||r,o.default,!0):i=Ye(o.from||r):i=Ye(o),be(i)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[r]=i}}function Ao(e,t,n){Ue(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vc(e,t,n,s){const r=s.includes(".")?pc(n,s):()=>n[s];if(fe(e)){const o=t[e];q(o)&&dn(r,o)}else if(q(e))dn(r,e.bind(n));else if(re(e))if(j(e))e.forEach(o=>vc(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&dn(r,o,e)}}function qr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(a=>us(l,a,i,!0)),us(l,t,i)),re(t)&&o.set(t,l),l}function us(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&us(e,o,n,!0),r&&r.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Ga[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ga={data:Po,props:xt,emits:xt,methods:xt,computed:xt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:xt,directives:xt,watch:eu,provide:Po,inject:Za};function Po(e,t){return t?e?function(){return xe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Za(e,t){return xt(ur(e),ur(t))}function ur(e){if(j(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[p,m]=xc(d,t,!0);xe(i,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return re(e)&&s.set(e,Bt),Bt;if(j(o))for(let u=0;u-1,m[1]=w<0||g-1||X(m,"default"))&&c.push(d)}}}const a=[i,c];return re(e)&&s.set(e,a),a}function To(e){return e[0]!=="$"}function Io(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ko(e,t){return Io(e)===Io(t)}function No(e,t){return j(t)?t.findIndex(n=>ko(n,e)):q(t)&&ko(t,e)?0:-1}const Sc=e=>e[0]==="_"||e==="$stable",Kr=e=>j(e)?e.map(Je):[Je(e)],su=(e,t,n)=>{if(t._n)return t;const s=Ta((...r)=>Kr(t(...r)),n);return s._c=!1,s},Rc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Sc(r))continue;const o=e[r];if(q(o))t[r]=su(r,o,s);else if(o!=null){const i=Kr(o);t[r]=()=>i}}},Oc=(e,t)=>{const n=Kr(t);e.slots.default=()=>n},ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),cs(t,"_",n)):Rc(t,e.slots={})}else e.slots={},t&&Oc(e,t);cs(e.slots,ks,1)},ou=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(xe(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Rc(t,r)),i=t}else t&&(Oc(e,t),i={default:1});if(o)for(const c in r)!Sc(c)&&!(c in i)&&delete r[c]};function Cc(){return{app:null,config:{isNativeTag:Dl,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 iu=0;function cu(e,t){return function(s,r=null){q(s)||(s=Object.assign({},s)),r!=null&&!re(r)&&(r=null);const o=Cc(),i=new Set;let c=!1;const l=o.app={_uid:iu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Cu,get config(){return o.config},set config(a){},use(a,...u){return i.has(a)||(a&&q(a.install)?(i.add(a),a.install(l,...u)):q(a)&&(i.add(a),a(l,...u))),l},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),l},component(a,u){return u?(o.components[a]=u,l):o.components[a]},directive(a,u){return u?(o.directives[a]=u,l):o.directives[a]},mount(a,u,d){if(!c){const p=W(s,r);return p.appContext=o,u&&t?t(p,a):e(p,a,d),c=!0,l._container=a,a.__vue_app__=l,Ns(p.component)||p.component.proxy}},unmount(){c&&(e(null,l._container),delete l._container.__vue_app__)},provide(a,u){return o.provides[a]=u,l}};return l}}function dr(e,t,n,s,r=!1){if(j(e)){e.forEach((p,m)=>dr(p,t&&(j(t)?t[m]:t),n,s,r));return}if(Qn(s)&&!r)return;const o=s.shapeFlag&4?Ns(s.component)||s.component.proxy:s.el,i=r?null:o,{i:c,r:l}=e,a=t&&t.r,u=c.refs===oe?c.refs={}:c.refs,d=c.setupState;if(a!=null&&a!==l&&(fe(a)?(u[a]=null,X(d,a)&&(d[a]=null)):be(a)&&(a.value=null)),q(l))pt(l,c,12,[i,u]);else{const p=fe(l),m=be(l);if(p||m){const g=()=>{if(e.f){const w=p?X(d,l)?d[l]:u[l]:l.value;r?j(w)&&Ir(w,o):j(w)?w.includes(o)||w.push(o):p?(u[l]=[o],X(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,X(d,l)&&(d[l]=i)):m&&(l.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,Re(g,n)):g()}}}const Re=Fa;function lu(e){return au(e)}function au(e,t){const n=Kl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:m=je,insertStaticContent:g}=e,w=(f,h,y,b=null,E=null,C=null,I=!1,S=null,P=!!h.dynamicChildren)=>{if(f===h)return;f&&!on(f,h)&&(b=T(f),Se(f,E,C,!0),f=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:x,ref:$,shapeFlag:L}=h;switch(x){case Is:A(f,h,y,b);break;case It:R(f,h,y,b);break;case Yn:f==null&&N(h,y,b,I);break;case pe:qe(f,h,y,b,E,C,I,S,P);break;default:L&1?le(f,h,y,b,E,C,I,S,P):L&6?Ft(f,h,y,b,E,C,I,S,P):(L&64||L&128)&&x.process(f,h,y,b,E,C,I,S,P,Q)}$!=null&&E&&dr($,f&&f.ref,C,h||f,!h)},A=(f,h,y,b)=>{if(f==null)s(h.el=c(h.children),y,b);else{const E=h.el=f.el;h.children!==f.children&&a(E,h.children)}},R=(f,h,y,b)=>{f==null?s(h.el=l(h.children||""),y,b):h.el=f.el},N=(f,h,y,b)=>{[f.el,f.anchor]=g(f.children,h,y,b,f.el,f.anchor)},M=({el:f,anchor:h},y,b)=>{let E;for(;f&&f!==h;)E=p(f),s(f,y,b),f=E;s(h,y,b)},J=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=p(f),r(f),f=y;r(h)},le=(f,h,y,b,E,C,I,S,P)=>{I=I||h.type==="svg",f==null?K(h,y,b,E,C,I,S,P):ke(f,h,E,C,I,S,P)},K=(f,h,y,b,E,C,I,S)=>{let P,x;const{type:$,props:L,shapeFlag:D,transition:B,dirs:V}=f;if(P=f.el=i(f.type,C,L&&L.is,L),D&8?u(P,f.children):D&16&&we(f.children,P,null,b,E,C&&$!=="foreignObject",I,S),V&&bt(f,null,b,"created"),L){for(const te in L)te!=="value"&&!Vn(te)&&o(P,te,null,L[te],C,f.children,b,E,k);"value"in L&&o(P,"value",null,L.value),(x=L.onVnodeBeforeMount)&&ze(x,b,f)}ie(P,f,f.scopeId,I,b),V&&bt(f,null,b,"beforeMount");const se=(!E||E&&!E.pendingBranch)&&B&&!B.persisted;se&&B.beforeEnter(P),s(P,h,y),((x=L&&L.onVnodeMounted)||se||V)&&Re(()=>{x&&ze(x,b,f),se&&B.enter(P),V&&bt(f,null,b,"mounted")},E)},ie=(f,h,y,b,E)=>{if(y&&m(f,y),b)for(let C=0;C{for(let x=P;x{const S=h.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=h;P|=f.patchFlag&16;const L=f.props||oe,D=h.props||oe;let B;y&&wt(y,!1),(B=D.onVnodeBeforeUpdate)&&ze(B,y,h,f),$&&bt(h,f,y,"beforeUpdate"),y&&wt(y,!0);const V=E&&h.type!=="foreignObject";if(x?he(f.dynamicChildren,x,S,y,b,V,C):I||ee(f,h,S,null,y,b,V,C,!1),P>0){if(P&16)ot(S,h,L,D,y,b,E);else if(P&2&&L.class!==D.class&&o(S,"class",null,D.class,E),P&4&&o(S,"style",L.style,D.style,E),P&8){const se=h.dynamicProps;for(let te=0;te{B&&ze(B,y,h,f),$&&bt(h,f,y,"updated")},b)},he=(f,h,y,b,E,C,I)=>{for(let S=0;S{if(y!==b){if(y!==oe)for(const S in y)!Vn(S)&&!(S in b)&&o(f,S,y[S],null,I,h.children,E,C,k);for(const S in b){if(Vn(S))continue;const P=b[S],x=y[S];P!==x&&S!=="value"&&o(f,S,x,P,I,h.children,E,C,k)}"value"in b&&o(f,"value",y.value,b.value)}},qe=(f,h,y,b,E,C,I,S,P)=>{const x=h.el=f?f.el:c(""),$=h.anchor=f?f.anchor:c("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=h;B&&(S=S?S.concat(B):B),f==null?(s(x,y,b),s($,y,b),we(h.children,y,$,E,C,I,S,P)):L>0&&L&64&&D&&f.dynamicChildren?(he(f.dynamicChildren,D,y,E,C,I,S),(h.key!=null||E&&h===E.subTree)&&Ac(f,h,!0)):ee(f,h,y,$,E,C,I,S,P)},Ft=(f,h,y,b,E,C,I,S,P)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?E.ctx.activate(h,y,b,I,P):yt(h,y,b,E,C,I,P):sn(f,h,P)},yt=(f,h,y,b,E,C,I)=>{const S=f.component=_u(f,b,E);if(mc(f)&&(S.ctx.renderer=Q),bu(S),S.asyncDep){if(E&&E.registerDep(S,ae),!f.el){const P=S.subTree=W(It);R(null,P,h,y)}return}ae(S,f,h,y,E,C,I)},sn=(f,h,y)=>{const b=h.component=f.component;if(Na(f,h,y))if(b.asyncDep&&!b.asyncResolved){ne(b,h,y);return}else b.next=h,Oa(b.update),b.update();else h.el=f.el,b.vnode=h},ae=(f,h,y,b,E,C,I)=>{const S=()=>{if(f.isMounted){let{next:$,bu:L,u:D,parent:B,vnode:V}=f,se=$,te;wt(f,!1),$?($.el=V.el,ne(f,$,I)):$=V,L&&Wn(L),(te=$.props&&$.props.onVnodeBeforeUpdate)&&ze(te,B,$,V),wt(f,!0);const ue=Ks(f),Me=f.subTree;f.subTree=ue,w(Me,ue,d(Me.el),T(Me),f,E,C),$.el=ue.el,se===null&&La(f,ue.el),D&&Re(D,E),(te=$.props&&$.props.onVnodeUpdated)&&Re(()=>ze(te,B,$,V),E)}else{let $;const{el:L,props:D}=h,{bm:B,m:V,parent:se}=f,te=Qn(h);if(wt(f,!1),B&&Wn(B),!te&&($=D&&D.onVnodeBeforeMount)&&ze($,se,h),wt(f,!0),L&&z){const ue=()=>{f.subTree=Ks(f),z(L,f.subTree,f,E,null)};te?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ue()):ue()}else{const ue=f.subTree=Ks(f);w(null,ue,y,b,f,E,C),h.el=ue.el}if(V&&Re(V,E),!te&&($=D&&D.onVnodeMounted)){const ue=h;Re(()=>ze($,se,ue),E)}(h.shapeFlag&256||se&&Qn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Re(f.a,E),f.isMounted=!0,h=y=b=null}},P=f.effect=new Lr(S,()=>Br(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,wt(f,!0),x()},ne=(f,h,y)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,nu(f,h.props,b,y),ou(f,h.children,y),Gt(),Ro(),Zt()},ee=(f,h,y,b,E,C,I,S,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,L=h.children,{patchFlag:D,shapeFlag:B}=h;if(D>0){if(D&128){_t(x,L,y,b,E,C,I,S,P);return}else if(D&256){Ne(x,L,y,b,E,C,I,S,P);return}}B&8?($&16&&k(x,E,C),L!==x&&u(y,L)):$&16?B&16?_t(x,L,y,b,E,C,I,S,P):k(x,E,C,!0):($&8&&u(y,""),B&16&&we(L,y,b,E,C,I,S,P))},Ne=(f,h,y,b,E,C,I,S,P)=>{f=f||Bt,h=h||Bt;const x=f.length,$=h.length,L=Math.min(x,$);let D;for(D=0;D$?k(f,E,C,!0,!1,L):we(h,y,b,E,C,I,S,P,L)},_t=(f,h,y,b,E,C,I,S,P)=>{let x=0;const $=h.length;let L=f.length-1,D=$-1;for(;x<=L&&x<=D;){const B=f[x],V=h[x]=P?ut(h[x]):Je(h[x]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;x++}for(;x<=L&&x<=D;){const B=f[L],V=h[D]=P?ut(h[D]):Je(h[D]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;L--,D--}if(x>L){if(x<=D){const B=D+1,V=B<$?h[B].el:b;for(;x<=D;)w(null,h[x]=P?ut(h[x]):Je(h[x]),y,V,E,C,I,S,P),x++}}else if(x>D)for(;x<=L;)Se(f[x],E,C,!0),x++;else{const B=x,V=x,se=new Map;for(x=V;x<=D;x++){const Oe=h[x]=P?ut(h[x]):Je(h[x]);Oe.key!=null&&se.set(Oe.key,x)}let te,ue=0;const Me=D-V+1;let Dt=!1,ho=0;const rn=new Array(Me);for(x=0;x=Me){Se(Oe,E,C,!0);continue}let Ke;if(Oe.key!=null)Ke=se.get(Oe.key);else for(te=V;te<=D;te++)if(rn[te-V]===0&&on(Oe,h[te])){Ke=te;break}Ke===void 0?Se(Oe,E,C,!0):(rn[Ke-V]=x+1,Ke>=ho?ho=Ke:Dt=!0,w(Oe,h[Ke],y,null,E,C,I,S,P),ue++)}const po=Dt?uu(rn):Bt;for(te=po.length-1,x=Me-1;x>=0;x--){const Oe=V+x,Ke=h[Oe],mo=Oe+1<$?h[Oe+1].el:b;rn[x]===0?w(null,Ke,y,mo,E,C,I,S,P):Dt&&(te<0||x!==po[te]?Le(Ke,y,mo,2):te--)}}},Le=(f,h,y,b,E=null)=>{const{el:C,type:I,transition:S,children:P,shapeFlag:x}=f;if(x&6){Le(f.component.subTree,h,y,b);return}if(x&128){f.suspense.move(h,y,b);return}if(x&64){I.move(f,h,y,Q);return}if(I===pe){s(C,h,y);for(let L=0;LS.enter(C),E);else{const{leave:L,delayLeave:D,afterLeave:B}=S,V=()=>s(C,h,y),se=()=>{L(C,()=>{V(),B&&B()})};D?D(C,V,se):se()}else s(C,h,y)},Se=(f,h,y,b=!1,E=!1)=>{const{type:C,props:I,ref:S,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:L,dirs:D}=f;if(S!=null&&dr(S,null,y,f,!0),$&256){h.ctx.deactivate(f);return}const B=$&1&&D,V=!Qn(f);let se;if(V&&(se=I&&I.onVnodeBeforeUnmount)&&ze(se,h,f),$&6)v(f.component,y,b);else{if($&128){f.suspense.unmount(y,b);return}B&&bt(f,null,h,"beforeUnmount"),$&64?f.type.remove(f,h,y,E,Q,b):x&&(C!==pe||L>0&&L&64)?k(x,h,y,!1,!0):(C===pe&&L&384||!E&&$&16)&&k(P,h,y),b&&$t(f)}(V&&(se=I&&I.onVnodeUnmounted)||B)&&Re(()=>{se&&ze(se,h,f),B&&bt(f,null,h,"unmounted")},y)},$t=f=>{const{type:h,el:y,anchor:b,transition:E}=f;if(h===pe){Mn(y,b);return}if(h===Yn){J(f);return}const C=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:S}=E,P=()=>I(y,C);S?S(f.el,C,P):P()}else C()},Mn=(f,h)=>{let y;for(;f!==h;)y=p(f),r(f),f=y;r(h)},v=(f,h,y)=>{const{bum:b,scope:E,update:C,subTree:I,um:S}=f;b&&Wn(b),E.stop(),C&&(C.active=!1,Se(I,f,h,y)),S&&Re(S,h),Re(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},k=(f,h,y,b=!1,E=!1,C=0)=>{for(let I=C;If.shapeFlag&6?T(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),F=(f,h,y)=>{f==null?h._vnode&&Se(h._vnode,null,null,!0):w(h._vnode||null,f,h,null,null,null,y),Ro(),lc(),h._vnode=f},Q={p:w,um:Se,m:Le,r:$t,mt:yt,mc:we,pc:ee,pbc:he,n:T,o:e};let ce,z;return t&&([ce,z]=t(Q)),{render:F,hydrate:ce,createApp:cu(F,ce)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ac(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const fu=e=>e.__isTeleport,pe=Symbol(void 0),Is=Symbol(void 0),It=Symbol(void 0),Yn=Symbol(void 0),pn=[];let De=null;function U(e=!1){pn.push(De=e?null:[])}function du(){pn.pop(),De=pn[pn.length-1]||null}let Sn=1;function Lo(e){Sn+=e}function Pc(e){return e.dynamicChildren=Sn>0?De||Bt:null,du(),Sn>0&&De&&De.push(e),e}function H(e,t,n,s,r,o){return Pc(O(e,t,n,s,r,o,!0))}function fs(e,t,n,s,r){return Pc(W(e,t,n,s,r,!0))}function hr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ks="__vInternal",Tc=({key:e})=>e??null,Gn=({ref:e,ref_key:t,ref_for:n})=>e!=null?fe(e)||be(e)||q(e)?{i:Ie,r:e,k:t,f:!!n}:e:null;function O(e,t=null,n=null,s=0,r=null,o=e===pe?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tc(t),ref:t&&Gn(t),scopeId:As,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return c?(zr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=fe(n)?8:16),Sn>0&&!i&&De&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&De.push(l),l}const W=hu;function hu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Wa)&&(e=It),hr(e)){const c=Wt(e,t,!0);return n&&zr(c,n),Sn>0&&!o&&De&&(c.shapeFlag&6?De[De.indexOf(e)]=c:De.push(c)),c.patchFlag|=-2,c}if(Su(e)&&(e=e.__vccOpts),t){t=pu(t);let{class:c,style:l}=t;c&&!fe(c)&&(t.class=bs(c)),re(l)&&(Gi(l)&&!j(l)&&(l=xe({},l)),t.style=_s(l))}const i=fe(e)?1:Ma(e)?128:fu(e)?64:re(e)?4:q(e)?2:0;return O(e,t,n,s,r,i,o,!0)}function pu(e){return e?Gi(e)||ks in e?xe({},e):e:null}function Wt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,c=t?mu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Tc(c),ref:t&&t.ref?n&&r?j(r)?r.concat(Gn(t)):[r,Gn(t)]:Gn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?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&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function me(e=" ",t=0){return W(Is,null,e,t)}function Ic(e,t){const n=W(Yn,null,e);return n.staticCount=t,n}function dt(e="",t=!1){return t?(U(),fs(It,null,e)):W(It,null,e)}function Je(e){return e==null||typeof e=="boolean"?W(It):j(e)?W(pe,null,e.slice()):typeof e=="object"?ut(e):W(Is,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ks in t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mu(...e){const t={};for(let n=0;n{ye=e,e.scope.on()},Tt=()=>{ye&&ye.scope.off(),ye=null};function kc(e){return e.vnode.shapeFlag&4}let Rn=!1;function bu(e,t=!1){Rn=t;const{props:n,children:s}=e.vnode,r=kc(e);tu(e,n,r,t),ru(e,s);const o=r?wu(e,t):void 0;return Rn=!1,o}function wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Zi(new Proxy(e.ctx,Qa));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Eu(e):null;Jt(e),Gt();const o=pt(s,e,0,[e.props,r]);if(Zt(),Tt(),Di(o)){if(o.then(Tt,Tt),t)return o.then(i=>{Mo(e,i,t)}).catch(i=>{Os(i,e,0)});e.asyncDep=o}else Mo(e,o,t)}else Nc(e,t)}function Mo(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=sc(t)),Nc(e,n)}let Fo;function Nc(e,t,n){const s=e.type;if(!e.render){if(!t&&Fo&&!s.render){const r=s.template||qr(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:l}=s,a=xe(xe({isCustomElement:o,delimiters:c},i),l);s.render=Fo(r,a)}}e.render=s.render||je}Jt(e),Gt(),Xa(e),Zt(),Tt()}function vu(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function Eu(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=vu(e))},slots:e.slots,emit:e.emit,expose:t}}function Ns(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sc(Zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function xu(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Su(e){return q(e)&&"__vccOpts"in e}const Te=(e,t)=>xa(e,t,Rn);function ds(e,t,n){const s=arguments.length;return s===2?re(t)&&!j(t)?hr(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hr(n)&&(n=[n]),W(e,t,n))}const Ru=Symbol(""),Ou=()=>Ye(Ru),Cu="3.2.45",Au="http://www.w3.org/2000/svg",Rt=typeof document<"u"?document:null,$o=Rt&&Rt.createElement("template"),Pu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Rt.createElementNS(Au,e):Rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{$o.innerHTML=s?`${e}`:e;const c=$o.content;if(s){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Tu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Iu(e,t,n){const s=e.style,r=fe(n);if(n&&!r){for(const o in n)pr(s,o,n[o]);if(t&&!fe(t))for(const o in t)n[o]==null&&pr(s,o,"")}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Do=/\s*!important$/;function pr(e,t,n){if(j(n))n.forEach(s=>pr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ku(e,t);Do.test(n)?e.setProperty(Lt(s),n.replace(Do,""),"important"):e[s]=n}}const jo=["Webkit","Moz","ms"],Vs={};function ku(e,t){const n=Vs[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return Vs[t]=s;s=Ss(s);for(let r=0;rWs||(Du.then(()=>Ws=0),Ws=Date.now());function Uu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(Bu(s,n.value),t,5,[s])};return n.value=e,n.attached=ju(),n}function Bu(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ho=/^on[a-z]/,Hu=(e,t,n,s,r=!1,o,i,c,l)=>{t==="class"?Tu(e,s,r):t==="style"?Iu(e,n,s):vs(t)?Tr(t)||Fu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qu(e,t,s,r))?Lu(e,t,s,o,i,c,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nu(e,t,s,r))};function qu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ho.test(t)&&q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ho.test(t)&&fe(n)?!1:t in e}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Wn(t,n):t};function Ku(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=hs(r);const o=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=wn(c)),e._assign(c)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",Ku),Ot(e,"compositionend",qo),Ot(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=hs(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&wn(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Js={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Es(t);Ot(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?wn(ps(i)):ps(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=hs(s)},mounted(e,{value:t}){Ko(e,t)},beforeUpdate(e,t,n){e._assign=hs(n)},updated(e,{value:t}){Ko(e,t)}};function Ko(e,t){const n=e.multiple;if(!(n&&!j(t)&&!Es(t))){for(let s=0,r=e.options.length;s-1:o.selected=t.has(i);else if(ws(ps(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}const Vu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wu=(e,t)=>n=>{if(!("key"in n))return;const s=Lt(n.key);if(t.some(r=>r===s||Vu[r]===s))return e(n)},Ju=xe({patchProp:Hu},Pu);let zo;function Qu(){return zo||(zo=lu(Ju))}const Xu=(...e)=>{const t=Qu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Yu(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Yu(e){return fe(e)?document.querySelector(e):e}const Vr="/assets/spotdl-5dcb64c0.svg",He=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gu={components:{},setup(){return{}}},Zu={class:"p-10 footer bg-neutral text-neutral-content"},ef=O("div",null,[O("img",{src:Vr,width:"50",height:"50",viewBox:"0 0 24 24"}),O("p",null,[me("spotDL"),O("br"),me("Open Source Music Downloader")])],-1),tf=Ic('
Social
',1),nf=[ef,tf];function sf(e,t,n,s,r,o){return U(),H("footer",Zu,nf)}const rf=He(Gu,[["render",sf]]);function Lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:Wr}=Object,Jr=(e=>t=>{const n=Mc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Ls=e=>t=>typeof t===e,{isArray:en}=Array,On=Ls("undefined");function of(e){return e!==null&&!On(e)&&e.constructor!==null&&!On(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fc=rt("ArrayBuffer");function cf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fc(e.buffer),t}const lf=Ls("string"),kt=Ls("function"),$c=Ls("number"),Qr=e=>e!==null&&typeof e=="object",af=e=>e===!0||e===!1,Zn=e=>{if(Jr(e)!=="object")return!1;const t=Wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uf=rt("Date"),ff=rt("File"),df=rt("Blob"),hf=rt("FileList"),pf=e=>Qr(e)&&kt(e.pipe),mf=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mc.call(e)===t||kt(e.toString)&&e.toString()===t)},gf=rt("URLSearchParams"),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),en(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const jc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!On(e)&&e!==jc;function mr(){const{caseless:e}=Uc(this)&&this||{},t={},n=(s,r)=>{const o=e&&Dc(t,r)||r;Zn(t[o])&&Zn(s)?t[o]=mr(t[o],s):Zn(s)?t[o]=mr({},s):en(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(kn(t,(r,o)=>{n&&kt(r)?e[o]=Lc(r,n):e[o]=r},{allOwnKeys:s}),e),bf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wf=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vf=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ef=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},xf=e=>{if(!e)return null;if(en(e))return e;let t=e.length;if(!$c(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wr(Uint8Array)),Rf=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Of=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Cf=rt("HTMLFormElement"),Af=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Vo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pf=rt("RegExp"),Bc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};kn(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},Tf=e=>{Bc(e,(t,n)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(kt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},If=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return en(e)?s(e):s(String(e).split(t)),n},kf=()=>{},Nf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Lf=e=>{const t=new Array(10),n=(s,r)=>{if(Qr(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=en(s)?[]:{};return kn(s,(i,c)=>{const l=n(i,r+1);!On(l)&&(o[c]=l)}),t[r]=void 0,o}}return s};return n(e,0)},_={isArray:en,isArrayBuffer:Fc,isBuffer:of,isFormData:mf,isArrayBufferView:cf,isString:lf,isNumber:$c,isBoolean:af,isObject:Qr,isPlainObject:Zn,isUndefined:On,isDate:uf,isFile:ff,isBlob:df,isRegExp:Pf,isFunction:kt,isStream:pf,isURLSearchParams:gf,isTypedArray:Sf,isFileList:hf,forEach:kn,merge:mr,extend:_f,trim:yf,stripBOM:bf,inherits:wf,toFlatObject:vf,kindOf:Jr,kindOfTest:rt,endsWith:Ef,toArray:xf,forEachEntry:Rf,matchAll:Of,isHTMLForm:Cf,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Bc,freezeMethods:Tf,toObjectSet:If,toCamelCase:Af,noop:kf,toFiniteNumber:Nf,findKey:Dc,global:jc,isContextDefined:Uc,toJSONObject:Lf};function Y(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}_.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hc=Y.prototype,qc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qc[e]={value:e}});Object.defineProperties(Y,qc);Object.defineProperty(Hc,"isAxiosError",{value:!0});Y.from=(e,t,n,s,r,o)=>{const i=Object.create(Hc);return _.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),Y.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var Mf=typeof self=="object"?self.FormData:window.FormData;const Ff=Mf;function gr(e){return _.isPlainObject(e)||_.isArray(e)}function Kc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Wo(e,t,n){return e?e.concat(t).map(function(r,o){return r=Kc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function $f(e){return _.isArray(e)&&!e.some(gr)}const Df=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e){return e&&_.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ms(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new(Ff||FormData),n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,A){return!_.isUndefined(A[w])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&jf(t);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!l&&_.isBlob(g))throw new Y("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,w,A){let R=g;if(g&&!A&&typeof g=="object"){if(_.endsWith(w,"{}"))w=s?w:w.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&$f(g)||_.isFileList(g)||_.endsWith(w,"[]")&&(R=_.toArray(g)))return w=Kc(w),R.forEach(function(M,J){!(_.isUndefined(M)||M===null)&&t.append(i===!0?Wo([w],J,o):i===null?w:w+"[]",a(M))}),!1}return gr(g)?!0:(t.append(Wo(A,w,o),a(g)),!1)}const d=[],p=Object.assign(Df,{defaultVisitor:u,convertValue:a,isVisitable:gr});function m(g,w){if(!_.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(g),_.forEach(g,function(R,N){(!(_.isUndefined(R)||R===null)&&r.call(t,R,_.isString(N)?N.trim():N,w,p))===!0&&m(R,w?w.concat(N):[N])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Jo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Xr(e,t){this._pairs=[],e&&Ms(e,this,t)}const zc=Xr.prototype;zc.append=function(t,n){this._pairs.push([t,n])};zc.toString=function(t){const n=t?function(s){return t.call(this,s,Jo)}:Jo;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Uf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vc(e,t,n){if(!t)return e;const s=n&&n.encode||Uf,r=n&&n.serialize;let o;if(r?o=r(t,n):o=_.isURLSearchParams(t)?t.toString():new Xr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qo=Bf,Wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hf=typeof URLSearchParams<"u"?URLSearchParams:Xr,qf=FormData,Kf=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zf=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xe={isBrowser:!0,classes:{URLSearchParams:Hf,FormData:qf,Blob},isStandardBrowserEnv:Kf,isStandardBrowserWebWorkerEnv:zf,protocols:["http","https","file","blob","url","data"]};function Vf(e,t){return Ms(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Xe.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Wf(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jf(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&_.isArray(r)?r.length:i,l?(_.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!c):((!r[i]||!_.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&_.isArray(r[i])&&(r[i]=Jf(r[i])),!c)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,r)=>{t(Wf(s),r,n,0)}),n}return null}const Qf={"Content-Type":void 0};function Xf(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Fs={transitional:Wc,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r&&r?JSON.stringify(Jc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Vf(t,this.formSerializer).toString();if((c=_.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ms(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Xf(t)):t}],transformResponse:[function(t){const n=this.transitional||Fs.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&_.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?Y.from(c,Y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(t){Fs.headers[t]={}});_.forEach(["post","put","patch"],function(t){Fs.headers[t]=_.merge(Qf)});const Yr=Fs,Yf=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gf=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Yf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Xo=Symbol("internals");function cn(e){return e&&String(e).trim().toLowerCase()}function es(e){return e===!1||e==null?e:_.isArray(e)?e.map(es):String(e)}function Zf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function ed(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Yo(e,t,n,s){if(_.isFunction(s))return s.call(this,t,n);if(_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function nd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class $s{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,l,a){const u=cn(l);if(!u)throw new Error("header name must be a non-empty string");const d=_.findKey(r,u);(!d||r[d]===void 0||a===!0||a===void 0&&r[d]!==!1)&&(r[d||l]=es(c))}const i=(c,l)=>_.forEach(c,(a,u)=>o(a,u,l));return _.isPlainObject(t)||t instanceof this.constructor?i(t,n):_.isString(t)&&(t=t.trim())&&!ed(t)?i(Gf(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=cn(t),t){const s=_.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Zf(r);if(_.isFunction(n))return n.call(this,r,s);if(_.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cn(t),t){const s=_.findKey(this,t);return!!(s&&(!n||Yo(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=cn(i),i){const c=_.findKey(s,i);c&&(!n||Yo(s,s[c],c,n))&&(delete s[c],r=!0)}}return _.isArray(t)?t.forEach(o):o(t),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return _.forEach(this,(r,o)=>{const i=_.findKey(s,o);if(i){n[i]=es(r),delete n[o];return}const c=t?td(o):String(o).trim();c!==o&&delete n[o],n[c]=es(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&_.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Xo]=this[Xo]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=cn(i);s[c]||(nd(r,i),s[c]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}$s.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);_.freezeMethods($s.prototype);_.freezeMethods($s);const tt=$s;function Qs(e,t){const n=this||Yr,s=t||n,r=tt.from(s.headers);let o=s.data;return _.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Qc(e){return!!(e&&e.__CANCEL__)}function Nn(e,t,n){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Nn,Y,{__CANCEL__:!0});const sd=null;function rd(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const od=Xe.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,c){const l=[];l.push(n+"="+encodeURIComponent(s)),_.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),_.isString(o)&&l.push("path="+o),_.isString(i)&&l.push("domain="+i),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cd(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Xc(e,t){return e&&!id(t)?cd(e,t):t}const ld=Xe.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const c=_.isString(i)?r(i):i;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ud(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const a=Date.now(),u=s[o];i||(i=a),n[r]=l,s[r]=a;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,c=o-n,l=s(c),a=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&a?(i-o)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const fd=typeof XMLHttpRequest<"u",dd=fd&&function(e){return new Promise(function(n,s){let r=e.data;const o=tt.from(e.headers).normalize(),i=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}_.isFormData(r)&&(Xe.isStandardBrowserEnv||Xe.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let a=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const u=Xc(e.baseURL,e.url);a.open(e.method.toUpperCase(),Vc(u,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const m=tt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};rd(function(R){n(R),l()},function(R){s(R),l()},w),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new Y("Request aborted",Y.ECONNABORTED,e,a)),a=null)},a.onerror=function(){s(new Y("Network Error",Y.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Wc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new Y(g,w.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,a)),a=null},Xe.isStandardBrowserEnv){const m=(e.withCredentials||ld(u))&&e.xsrfCookieName&&od.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in a&&_.forEach(o.toJSON(),function(g,w){a.setRequestHeader(w,g)}),_.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Go(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Go(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{a&&(s(!m||m.type?new Nn(null,e,a):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const p=ad(u);if(p&&Xe.protocols.indexOf(p)===-1){s(new Y("Unsupported protocol "+p+":",Y.ERR_BAD_REQUEST,e));return}a.send(r||null)})},ts={http:sd,xhr:dd};_.forEach(ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hd={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof tt?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function s(a,u,d){return _.isPlainObject(a)&&_.isPlainObject(u)?_.merge.call({caseless:d},a,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(a,u,d){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a,d)}else return s(a,u,d)}function o(a,u){if(!_.isUndefined(u))return s(void 0,u)}function i(a,u){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function c(a,u,d){if(d in t)return s(a,u);if(d in e)return s(void 0,a)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(a,u)=>r(ei(a),ei(u),!0)};return _.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||r,p=d(e[u],t[u],u);_.isUndefined(p)&&d!==c||(n[u]=p)}),n}const Yc="1.2.5",Gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ti={};Gr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Yc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new Y(r(i," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!ti[i]&&(ti[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function pd(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Y("option "+o+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const yr={assertOptions:pd,validators:Gr},ct=yr.validators;class ms{constructor(t){this.defaults=t,this.interceptors={request:new Qo,response:new Qo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&yr.assertOptions(s,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),r!==void 0&&yr.assertOptions(r,{encode:ct.function,serialize:ct.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&_.merge(o.common,o[n.method]),i&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=tt.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,c.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let u,d=0,p;if(!l){const g=[Zo.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,a),p=g.length,u=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new Nn(o,i,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Zr(function(r){t=r}),cancel:t}}}const md=Zr;function gd(e){return function(n){return e.apply(null,n)}}function yd(e){return _.isObject(e)&&e.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([e,t])=>{_r[t]=e});const _d=_r;function Gc(e){const t=new ns(e),n=Lc(ns.prototype.request,t);return _.extend(n,ns.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Gc(Qt(e,r))},n}const de=Gc(Yr);de.Axios=ns;de.CanceledError=Nn;de.CancelToken=md;de.isCancel=Qc;de.VERSION=Yc;de.toFormData=Ms;de.AxiosError=Y;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=gd;de.isAxiosError=yd;de.mergeConfig=Qt;de.AxiosHeaders=tt;de.formToJSON=e=>Jc(_.isHTMLForm(e)?new FormData(e):e);de.HttpStatusCode=_d;de.default=de;const bd=de,$e={PROTOCOL:{}.PROTOCOL||window.location.protocol,WS_PROTOCOL:{}.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:{}.BACKEND||window.location.hostname,PORT:{}.PORT||window.location.port,WS_PORT:{}.WS_PORT||window.location.port,BASEURL:{}.BASEURL||""};let Hn;const wd=new Uint8Array(16);function vd(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(wd)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function Ed(e,t=0){return(ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]).toLowerCase()}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:xd};function Sd(e,t,n){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};const s=e.random||(e.rng||vd)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=s[r];return t}return Ed(s)}console.log("using env:",{});console.log("using config: ",$e);const Mt=bd.create({baseURL:`${$e.PROTOCOL}//${$e.BACKEND}:${$e.PORT}${$e.BASEURL}`}),tn=Sd();console.log("session ID: ",tn);const eo=new WebSocket(`${$e.WS_PROTOCOL}//${$e.BACKEND}${$e.PORT!==""?":"+$e.PORT:""}${$e.BASEURL}/api/ws?client_id=${tn}`);eo.onopen=e=>{console.log("websocket connection opened",e)};function Rd(e){return Mt.get("/api/songs/search",{params:{query:e}})}function Od(e){return Mt.get("/api/song/url",{params:{url:e}})}function Cd(e){return Mt.post("/api/download/url",null,{params:{url:e,client_id:tn}})}function Ad(){return Mt.get("/api/check_update")}function Pd(e){return Mt.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(tn)}function Td(){return Mt.get("/api/settings",{params:{client_id:tn}})}function Id(e){return Mt.post("/api/settings/update",e,{params:{client_id:tn}})}function kd(e){return eo.onmessage=e}function Nd(e){return eo.onerror=e}const mt={search:Rd,open:Od,download:Cd,downloadFileURL:Pd,getSettings:Td,setSettings:Id,check_for_update:Ad,ws_onmessage:kd,ws_onerror:Nd},ss=Pe({audio_providers:[""],lyrics_providers:[""]}),Ld={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};mt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),ss.value=e.data):console.log("Error loading settings")});function Md(){const e=Pe();function t(){console.log("Saving settings:",ss.value),mt.setSettings(ss.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.log("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:ss,settingsOptions:Ld,isSaved:e}}const mn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ds=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:s,prefix:l,name:c};return t&&!rs(a)?null:a}const o=r[0],i=o.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!rs(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:o};return t&&!rs(c,n)?null:c}return null},rs=(e,t)=>e?!!((e.provider===""||e.provider.match(mn))&&(t&&e.prefix===""||e.prefix.match(mn))&&e.name.match(mn)):!1,Zc=Object.freeze({left:0,top:0,width:16,height:16}),gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),js=Object.freeze({...Zc,...gs}),br=Object.freeze({...js,body:"",hidden:!1});function Fd(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function si(e,t){const n=Fd(e,t);for(const s in br)s in gs?s in e&&!(s in n)&&(n[s]=gs[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function $d(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=s[i]&&s[i].parent,l=c&&o(c);l&&(r[i]=[c].concat(l))}return r[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(o),r}function Dd(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(c){o=si(s[c]||r[c],o)}return i(t),n.forEach(i),si(e,o)}function el(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=$d(e);for(const r in s){const o=s[r];o&&(t(r,Dd(e,r,o)),n.push(r))}return n}const jd={provider:"",aliases:{},not_found:{},...Zc};function Ys(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ys(e,jd))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(mn)||typeof o.body!="string"||!Ys(o,br))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(mn)||typeof i!="string"||!n[i]&&!s[i]||!Ys(o,br))return null}return t}const ri=Object.create(null);function Ud(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Nt(e,t){const n=ri[e]||(ri[e]=Object.create(null));return n[t]||(n[t]=Ud(e,t))}function to(e,t){return tl(t)?el(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Bd(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Cn=!1;function nl(e){return typeof e=="boolean"&&(Cn=e),Cn}function Hd(e){const t=typeof e=="string"?Ds(e,!0,Cn):e;if(t){const n=Nt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function qd(e,t){const n=Ds(e,!0,Cn);if(!n)return!1;const s=Nt(n.provider,n.prefix);return Bd(s,n.name,t)}function Kd(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Cn&&!t&&!e.prefix){let r=!1;return tl(e)&&(e.prefix="",el(e,(o,i)=>{i&&qd(o,i)&&(r=!0)})),r}const n=e.prefix;if(!rs({provider:t,prefix:n,name:"a"}))return!1;const s=Nt(t,n);return!!to(s,e)}const sl=Object.freeze({width:null,height:null}),rl=Object.freeze({...sl,...gs}),zd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oi(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(zd);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=Vd.test(o);for(;;){if(i){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function Wd(e,t){const n={...js,...e},s={...rl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(m=>{const g=[],w=m.hFlip,A=m.vFlip;let R=m.rotate;w?A?R+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):A&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let N;switch(R<0&&(R-=Math.floor(R/4)*4),R=R%4,R){case 1:N=r.height/2+r.top,g.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:N=r.width/2+r.left,g.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}R%2===1&&(r.left!==r.top&&(N=r.left,r.left=r.top,r.top=N),r.width!==r.height&&(N=r.width,r.width=r.height,r.height=N)),g.length&&(o=''+o+"")});const i=s.width,c=s.height,l=r.width,a=r.height;let u,d;return i===null?(d=c===null?"1em":c==="auto"?a:c,u=oi(d,l/a)):(u=i==="auto"?l:i,d=c===null?oi(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:d.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString()},body:o}}const Jd=/\sid="(\S+)"/g,Qd="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xd=0;function Yd(e,t=Qd){const n=[];let s;for(;s=Jd.exec(e);)n.push(s[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(Xd++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const wr=Object.create(null);function Gd(e,t){wr[e]=t}function vr(e){return wr[e]||wr[""]}function no(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const so=Object.create(null),ln=["https://api.simplesvg.com","https://api.unisvg.com"],os=[];for(;ln.length>0;)ln.length===1||Math.random()>.5?os.push(ln.shift()):os.push(ln.pop());so[""]=no({resources:["https://api.iconify.design"].concat(os)});function Zd(e,t){const n=no(t);return n===null?!1:(so[e]=n,!0)}function ro(e){return so[e]}const eh=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ii=eh();function th(e,t){const n=ro(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function nh(e){return e===404}const sh=(e,t,n)=>{const s=[],r=th(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),s.push(i),s};function rh(e){if(typeof e=="string"){const t=ro(e);if(t)return t.path}return"/"}const oh=(e,t,n)=>{if(!ii){n("abort",424);return}let s=rh(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});s+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;ii(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(nh(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},ih={prepare:sh,send:oh};function ch(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,c=r.name,l=n[o]||(n[o]=Object.create(null)),a=l[i]||(l[i]=Nt(o,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const d={provider:o,prefix:i,name:c};u.push(d)}),t}function ol(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function lh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:s,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ol([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let ah=0;function uh(e,t,n){const s=ah++,r=ol.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function fh(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?Ds(r,t,n):r;o&&s.push(o)}),s}var dh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function hh(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let K=e.resources.slice(0);for(i=[];K.length>1;){const ie=Math.floor(Math.random()*K.length);i.push(K[ie]),K=K.slice(0,ie).concat(K.slice(ie+1))}i=i.concat(K)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let l="pending",a=0,u,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function g(){d&&(clearTimeout(d),d=null)}function w(){l==="pending"&&(l="aborted"),g(),p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function A(K,ie){ie&&(m=[]),typeof K=="function"&&m.push(K)}function R(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:p.length,subscribe:A,abort:w}}function N(){l="failed",m.forEach(K=>{K(void 0,u)})}function M(){p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function J(K,ie,we){const ke=ie!=="success";switch(p=p.filter(he=>he!==K),l){case"pending":break;case"failed":if(ke||!e.dataAfterTimeout)return;break;default:return}if(ie==="abort"){u=we,N();return}if(ke){u=we,p.length||(i.length?le():N());return}if(g(),M(),!e.random){const he=e.resources.indexOf(K.resource);he!==-1&&he!==e.index&&(e.index=he)}l="completed",m.forEach(he=>{he(we)})}function le(){if(l!=="pending")return;g();const K=i.shift();if(K===void 0){if(p.length){d=setTimeout(()=>{g(),l==="pending"&&(M(),N())},e.timeout);return}N();return}const ie={status:"pending",resource:K,callback:(we,ke)=>{J(ie,we,ke)}};p.push(ie),a++,d=setTimeout(le,e.rotate),n(K,t,ie.callback)}return setTimeout(le),R}function il(e){const t={...dh,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=hh(t,c,l,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function o(c){return n.find(l=>c(l))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ci(){}const Gs=Object.create(null);function ph(e){if(!Gs[e]){const t=ro(e);if(!t)return;const n=il(t),s={config:t,redundancy:n};Gs[e]=s}return Gs[e]}function mh(e,t,n){let s,r;if(typeof e=="string"){const o=vr(e);if(!o)return n(void 0,424),ci;r=o.send;const i=ph(e);i&&(s=i.redundancy)}else{const o=no(e);if(o){s=il(o);const i=e.resources?e.resources[0]:"",c=vr(i);c&&(r=c.send)}}return!s||!r?(n(void 0,424),ci):s.query(t,r,n)().abort}const li="iconify2",An="iconify",cl=An+"-count",ai=An+"-version",ll=36e5,gh=168;function Er(e,t){try{return e.getItem(t)}catch{}}function oo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ui(e,t){try{e.removeItem(t)}catch{}}function xr(e,t){return oo(e,cl,t.toString())}function Sr(e){return parseInt(Er(e,cl))||0}const Us={local:!0,session:!0},al={local:new Set,session:new Set};let io=!1;function yh(e){io=e}let qn=typeof window>"u"?{}:window;function ul(e){const t=e+"Storage";try{if(qn&&qn[t]&&typeof qn[t].length=="number")return qn[t]}catch{}Us[e]=!1}function fl(e,t){const n=ul(e);if(!n)return;const s=Er(n,ai);if(s!==li){if(s){const c=Sr(n);for(let l=0;l{const l=An+c.toString(),a=Er(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}ui(n,l)}};let i=Sr(n);for(let c=i-1;c>=0;c--)o(c)||(c===i-1?(i--,xr(n,i)):al[e].add(c))}function dl(){if(!io){yh(!0);for(const e in Us)fl(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=Nt(s,r);if(!to(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function _h(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in Us)fl(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function bh(e,t){io||dl();function n(s){let r;if(!Us[s]||!(r=ul(s)))return;const o=al[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Sr(r),!xr(r,i+1))return;const c={cached:Math.floor(Date.now()/ll),provider:e.provider,data:t};return oo(r,An+i.toString(),JSON.stringify(c))}t.lastModified&&!_h(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function fi(){}function wh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,lh(e)}))}function vh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=vr(n)))return;o.prepare(n,s,r).forEach(c=>{mh(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=to(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(d=>{u.delete(d)}),bh(e,l)}catch(a){console.error(a)}wh(e)})})}))}const Eh=(e,t)=>{const n=fh(e,!0,nl()),s=ch(n);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,fi)}),()=>{l=!1}}const r=Object.create(null),o=[];let i,c;return s.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,o.push(Nt(a,u));const d=r[a]||(r[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(l=>{const{provider:a,prefix:u,name:d}=l,p=Nt(a,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[a][u].push(d))}),o.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&vh(l,r[a][u])}),t?uh(t,s,o):fi};function xh(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in sl?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Sh=/[\s,]+/;function Rh(e,t){t.split(Sh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Oh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function Ch(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function Ah(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ph(e){return'url("data:image/svg+xml,'+Ah(e)+'")'}const di={...rl,inline:!1},Th={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ih={display:"inline-block"},Rr={backgroundColor:"currentColor"},hl={backgroundColor:"transparent"},hi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},pi={webkitMask:Rr,mask:Rr,background:hl};for(const e in pi){const t=pi[e];for(const n in hi)t[e+n]=hi[n]}const is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";is[e+"-flip"]=t,is[e.slice(0,1)+"-flip"]=t,is[e+"Flip"]=t});function mi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const gi=(e,t)=>{const n=xh(di,t),s={...Th},r=t.mode||"svg",o={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let w in t){const A=t[w];if(A!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[w]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Rh(n,A);break;case"color":o.color=A;break;case"rotate":typeof A=="string"?n[w]=Oh(A):typeof A=="number"&&(n[w]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete s["aria-hidden"];break;default:{const R=is[w];R?(A===!0||A==="true"||A===1)&&(n[R]=!0):di[w]===void 0&&(s[w]=A)}}}const l=Wd(e,n),a=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...c},Object.assign(s,a);let w=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),s.innerHTML=Yd(l.body,A?()=>A+"ID"+w++:"iconifyVue"),ds("svg",s)}const{body:u,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Ch(u,{...a,width:d+"",height:p+""});return s.style={...o,"--svg":Ph(g),width:mi(a.width),height:mi(a.height),...Ih,...m?Rr:hl,...c},ds("span",s)};nl(!0);Gd("",ih);if(typeof document<"u"&&typeof window<"u"){dl();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Kd(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Zd(n,r)||console.error(s)}catch{console.error(s)}}}}const kh={...js,body:""},nn=Hr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Ds(e,!1,!0))===null)return this.abortLoading(),null;const s=Hd(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Eh([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return gi(kh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),gi({...js,...t.data},n)}}),Nh={components:{Icon:nn},setup(){return{sm:Md()}}},Lh=O("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),Mh={class:"modal"},Fh={class:"modal-box relative"},$h=O("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),Dh=O("h3",{class:"font-bold text-lg"},"Download Settings",-1),jh={class:"flex flex-col justify-center my-4"},Uh={class:"form-control w-full"},Bh=O("label",{class:"label"},[O("span",{class:"label-text"},"Audio Provider")],-1),Hh=["selected"],qh={class:"form-control w-full"},Kh=O("label",{class:"label"},[O("span",{class:"label-text"},"Lyrics Provider")],-1),zh=["selected"],Vh={class:"form-control w-full"},Wh=O("label",{class:"label"},[O("span",{class:"label-text"},"Output Format")],-1),Jh=["selected"],Qh={key:0,class:"alert alert-success shadow-lg"},Xh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Changes saved")],-1),Yh=[Xh],Gh={key:1,class:"alert alert-error shadow-lg"},Zh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Error! Unable to save settings")],-1),ep=[Zh],tp={class:"modal-action"};function np(e,t,n,s,r,o){return U(),H(pe,null,[Lh,O("div",Mh,[O("div",Fh,[$h,Dh,O("div",jh,[O("div",Uh,[Bh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[0]||(t[0]=i=>s.sm.settings.value.audio_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.audio_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.audio_providers)==null?void 0:l[0])},Ce(i),9,Hh)}),128))],512),[[Js,s.sm.settings.value.audio_providers[0]]])]),O("div",qh,[Kh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[1]||(t[1]=i=>s.sm.settings.value.lyrics_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.lyrics_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.lyrics_providers)==null?void 0:l[0])},Ce(i),9,zh)}),128))],512),[[Js,s.sm.settings.value.lyrics_providers[0]]])]),O("div",Vh,[Wh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[2]||(t[2]=i=>s.sm.settings.value.format=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.format,(i,c)=>(U(),H("option",{key:c,selected:i===s.sm.settings.value.format},Ce(i),9,Jh))),128))],512),[[Js,s.sm.settings.value.format]])])]),s.sm.isSaved.value===!0?(U(),H("div",Qh,Yh)):dt("",!0),s.sm.isSaved.value===!1?(U(),H("div",Gh,ep)):dt("",!0),O("div",tp,[O("label",{class:"btn",onClick:t[3]||(t[3]=i=>s.sm.saveSettings())},"Save")])])])],64)}const sp=He(Nh,[["render",np]]),Ve=Pe(""),yi=Pe("light"),_i=Pe("dark");function pl({useSystem:e=!0,initialTheme:t="",newLightAlias:n=null,newDarkAlias:s=null}={}){function r(u){yi.value=u,a()}function o(u){_i.value=u,a()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c(u){Ve.value=u,a()}function l(){Ve==="dark"?Ve.value="light":Ve==="light"&&(Ve.value="dark"),a()}function a(){document.documentElement.setAttribute("data-theme",Ve.value==="dark"?_i.value:yi.value)}return Ve.value!=="light"&&Ve.value!=="dark"&&(e&&c(i()),(t==="light"||t==="dark")&&(Ve.value=t)),n&&r(n),s&&o(s),a(),{currentTheme:Ve,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:c,switchTheme:l}}const rp={name:"App",components:{Footer:rf,Settings:sp},setup(){const e=pl();return yc(()=>{e.setLightAlias("emerald"),e.setDarkAlias("forest")}),{themeMgr:e}}},op={class:"bg-base-300 absolute w-full top-0"};function ip(e,t,n,s,r,o){const i=Ee("router-view"),c=Ee("Footer"),l=Ee("Settings");return U(),H("div",op,[W(i),W(c),W(l)])}const cp=He(rp,[["render",ip]]);/*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const Ut=typeof window<"u";function lp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const gn=()=>{},Be=Array.isArray,ap=/\/$/,up=e=>e.replace(ap,"");function er(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=pp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function fp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dp(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Xt(t.matched[s],n.matched[r])&&ml(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ml(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hp(e[n],t[n]))return!1;return!0}function hp(e,t){return Be(e)?wi(e,t):Be(t)?wi(t,e):e===t}function wi(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var Tn;(function(e){e.pop="pop",e.push="push"})(Tn||(Tn={}));var yn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yn||(yn={}));function mp(e){if(!e)if(Ut){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),up(e)}const gp=/^[^#]+#/;function yp(e,t){return e.replace(gp,"#")+t}function _p(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bs=()=>({left:window.pageXOffset,top:window.pageYOffset});function bp(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=_p(r,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 vi(e,t){return(history.state?history.state.position-t:-1)+e}const Or=new Map;function wp(e,t){Or.set(e,t)}function vp(e){const t=Or.get(e);return Or.delete(e),t}let Ep=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),bi(l,"")}return bi(n,e)+s+r}function xp(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const m=gl(e,location),g=n.value,w=t.value;let A=0;if(p){if(n.value=m,t.value=p,i&&i===g){i=null;return}A=w?p.position-w.position:0}else s(m);r.forEach(R=>{R(n.value,g,{delta:A,type:Tn.pop,direction:A?A>0?yn.forward:yn.back:yn.unknown})})};function l(){i=n.value}function a(p){r.push(p);const m=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Bs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:a,destroy:d}}function Ei(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bs():null}}function Sp(e){const{history:t,location:n}=window,s={value:gl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,a,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ep()+e+l;try{t[u?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(l,a){const u=Z({},t.state,Ei(r.value.back,l,r.value.forward,!0),a,{position:r.value.position});o(l,u,!0),s.value=l}function c(l,a){const u=Z({},r.value,t.state,{forward:l,scroll:Bs()});o(u.current,u,!0);const d=Z({},Ei(s.value,l,null),{position:u.position+1},a);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Rp(e){e=mp(e);const t=Sp(e),n=xp(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Z({location:"",base:e,go:s,createHref:yp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Op(e){return typeof e=="string"||e&&typeof e=="object"}function yl(e){return typeof e=="string"||typeof e=="symbol"}const at={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_l=Symbol("");var xi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xi||(xi={}));function Yt(e,t){return Z(new Error,{type:e,[_l]:!0},t)}function Ze(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const Si="[^/]+?",Cp={sensitive:!1,strict:!1,start:!0,end:!0},Ap=/[.+*?^${}()[\]/\\]/g;function Tp(e,t){const n=Z({},Cp,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ip(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const kp={type:0,value:""},Np=/[a-zA-Z0-9_]/;function Lp(e){if(!e)return[[]];if(e==="/")return[[kp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,a="",u="";function d(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;c{i(N)}:gn}function i(u){if(yl(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!bl(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Ci(u)&&s.set(u.record.name,u)}function a(u,d){let p,m={},g,w;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw Yt(1,{location:u});w=p.record.name,m=Z(Oi(d.params,p.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&Oi(u.params,p.keys.map(N=>N.name))),g=p.stringify(m)}else if("path"in u)g=u.path,p=n.find(N=>N.re.test(g)),p&&(m=p.parse(g),w=p.record.name);else{if(p=d.name?s.get(d.name):n.find(N=>N.re.test(d.path)),!p)throw Yt(1,{location:u,currentLocation:d});w=p.record.name,m=Z({},d.params,u.params),g=p.stringify(m)}const A=[];let R=p;for(;R;)A.unshift(R.record),R=R.parent;return{name:w,path:g,params:m,matched:A,meta:jp(A)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function Oi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Fp(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:$p(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 $p(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jp(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function bl(e,t){return t.children.some(n=>n===e||bl(e,n))}const wl=/#/g,Up=/&/g,Bp=/\//g,Hp=/=/g,qp=/\?/g,vl=/\+/g,Kp=/%5B/g,zp=/%5D/g,El=/%5E/g,Vp=/%60/g,xl=/%7B/g,Wp=/%7C/g,Sl=/%7D/g,Jp=/%20/g;function co(e){return encodeURI(""+e).replace(Wp,"|").replace(Kp,"[").replace(zp,"]")}function Qp(e){return co(e).replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Cr(e){return co(e).replace(vl,"%2B").replace(Jp,"+").replace(wl,"%23").replace(Up,"%26").replace(Vp,"`").replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Xp(e){return Cr(e).replace(Hp,"%3D")}function Yp(e){return co(e).replace(wl,"%23").replace(qp,"%3F")}function Gp(e){return e==null?"":Yp(e).replace(Bp,"%2F")}function ys(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Zp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Cr(o)):[s&&Cr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function em(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const tm=Symbol(""),Pi=Symbol(""),lo=Symbol(""),ao=Symbol(""),Ar=Symbol("");function an(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function dt(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Yt(4,{from:n,to:t})):d instanceof Error?c(d):Op(d)?c(Yt(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},a=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(a);e.length<3&&(u=u.then(l)),u.catch(d=>c(d))})}function tr(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(nm(c)){const a=(c.__vccOpts||c)[t];a&&r.push(dt(a,n,s,o,i))}else{let l=c();r.push(()=>l.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=lp(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&dt(p,n,s,o,i)()}))}}return r}function nm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ii(e){const t=Ye(lo),n=Ye(ao),s=Pe(()=>t.resolve(Kt(e.to))),r=Pe(()=>{const{matched:l}=s.value,{length:a}=l,u=l[a-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Xt.bind(null,u));if(p>-1)return p;const m=ki(l[a-2]);return a>1&&ki(u)===m&&d[d.length-1].path!==m?d.findIndex(Xt.bind(null,l[a-2])):p}),o=Pe(()=>r.value>-1&&im(n.params,s.value.params)),i=Pe(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function c(l={}){return om(l)?t[Kt(e.replace)?"replace":"push"](Kt(e.to)).catch(gn):Promise.resolve()}return{route:s,href:Pe(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const sm=Hr({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:Ii,setup(e,{slots:t}){const n=In(Ii(e)),{options:s}=Ye(lo),r=Pe(()=>({[Ni(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ni(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),rm=sm;function om(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 im(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ni=(e,t,n)=>e??t??n,cm=Hr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Ar),r=Pe(()=>e.route||s.value),o=Ye(Pi,0),i=Pe(()=>{let a=Kt(o);const{matched:u}=r.value;let d;for(;(d=u[a])&&!d.components;)a++;return a}),c=Pe(()=>r.value.matched[i.value]);Jn(Pi,Pe(()=>i.value+1)),Jn(tm,c),Jn(Ar,r);const l=Te();return dn(()=>[l.value,c.value,e.name],([a,u,d],[p,m,g])=>{u&&(u.instances[d]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Xt(u,m)||!p)&&(u.enterCallbacks[d]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,d=c.value,p=d&&d.components[u];if(!p)return Li(n.default,{Component:p,route:a});const m=d.props[u],g=m?m===!0?a.params:typeof m=="function"?m(a):m:null,A=ds(p,Z({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Li(n.default,{Component:A,route:a})||A}}});function Li(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lm=cm;function am(e){const t=Dp(e.routes,e),n=e.parseQuery||Zp,s=e.stringifyQuery||Ti,r=e.history,o=an(),i=an(),c=an(),l=ba(at);let a=at;Ut&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zs.bind(null,v=>""+v),d=Zs.bind(null,Gp),p=Zs.bind(null,ys);function m(v,k){let P,D;return yl(v)?(P=t.getRecordMatcher(v),D=k):D=v,t.addRoute(D,P)}function g(v){const k=t.getRecordMatcher(v);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(v=>v.record)}function A(v){return!!t.getRecordMatcher(v)}function R(v,k){if(k=Z({},k||l.value),typeof v=="string"){const f=er(n,v,k.path),h=t.resolve({path:f.path},k),y=r.createHref(f.fullPath);return Z(f,h,{params:p(h.params),hash:ys(f.hash),redirectedFrom:void 0,href:y})}let P;if("path"in v)P=Z({},v,{path:er(n,v.path,k.path).path});else{const f=Z({},v.params);for(const h in f)f[h]==null&&delete f[h];P=Z({},v,{params:d(v.params)}),k.params=d(k.params)}const D=t.resolve(P,k),Q=v.hash||"";D.params=u(p(D.params));const ce=fp(s,Z({},v,{hash:Qp(Q),path:D.path})),z=r.createHref(ce);return Z({fullPath:ce,hash:Q,query:s===Ti?em(v.query):v.query||{}},D,{redirectedFrom:void 0,href:z})}function N(v){return typeof v=="string"?er(n,v,l.value.path):Z({},v)}function M(v,k){if(a!==v)return Yt(8,{from:k,to:v})}function J(v){return ie(v)}function le(v){return J(Z(N(v),{replace:!0}))}function K(v){const k=v.matched[v.matched.length-1];if(k&&k.redirect){const{redirect:P}=k;let D=typeof P=="function"?P(v):P;return typeof D=="string"&&(D=D.includes("?")||D.includes("#")?D=N(D):{path:D},D.params={}),Z({query:v.query,hash:v.hash,params:"path"in D?{}:v.params},D)}}function ie(v,k){const P=a=R(v),D=l.value,Q=v.state,ce=v.force,z=v.replace===!0,f=K(P);if(f)return ie(Z(N(f),{state:typeof f=="object"?Z({},Q,f.state):Q,force:ce,replace:z}),k||P);const h=P;h.redirectedFrom=k;let y;return!ce&&dp(s,D,P)&&(y=Yt(16,{to:h,from:D}),_t(D,D,!0,!1)),(y?Promise.resolve(y):ke(h,D)).catch(b=>Ze(b)?Ze(b,2)?b:Ne(b):ne(b,h,D)).then(b=>{if(b){if(Ze(b,2))return ie(Z({replace:z},N(b.to),{state:typeof b.to=="object"?Z({},Q,b.to.state):Q,force:ce}),k||h)}else b=it(h,D,!0,z,Q);return he(h,D,b),b})}function we(v,k){const P=M(v,k);return P?Promise.reject(P):Promise.resolve()}function ke(v,k){let P;const[D,Q,ce]=um(v,k);P=tr(D.reverse(),"beforeRouteLeave",v,k);for(const f of D)f.leaveGuards.forEach(h=>{P.push(dt(h,v,k))});const z=we.bind(null,v,k);return P.push(z),jt(P).then(()=>{P=[];for(const f of o.list())P.push(dt(f,v,k));return P.push(z),jt(P)}).then(()=>{P=tr(Q,"beforeRouteUpdate",v,k);for(const f of Q)f.updateGuards.forEach(h=>{P.push(dt(h,v,k))});return P.push(z),jt(P)}).then(()=>{P=[];for(const f of v.matched)if(f.beforeEnter&&!k.matched.includes(f))if(Be(f.beforeEnter))for(const h of f.beforeEnter)P.push(dt(h,v,k));else P.push(dt(f.beforeEnter,v,k));return P.push(z),jt(P)}).then(()=>(v.matched.forEach(f=>f.enterCallbacks={}),P=tr(ce,"beforeRouteEnter",v,k),P.push(z),jt(P))).then(()=>{P=[];for(const f of i.list())P.push(dt(f,v,k));return P.push(z),jt(P)}).catch(f=>Ze(f,8)?f:Promise.reject(f))}function he(v,k,P){for(const D of c.list())D(v,k,P)}function it(v,k,P,D,Q){const ce=M(v,k);if(ce)return ce;const z=k===at,f=Ut?history.state:{};P&&(D||z?r.replace(v.fullPath,Z({scroll:z&&f&&f.scroll},Q)):r.push(v.fullPath,Q)),l.value=v,_t(v,k,P,z),Ne()}let qe;function Dt(){qe||(qe=r.listen((v,k,P)=>{if(!Mn.listening)return;const D=R(v),Q=K(D);if(Q){ie(Z(Q,{replace:!0}),D).catch(gn);return}a=D;const ce=l.value;Ut&&wp(vi(ce.fullPath,P.delta),Bs()),ke(D,ce).catch(z=>Ze(z,12)?z:Ze(z,2)?(ie(z.to,D).then(f=>{Ze(f,20)&&!P.delta&&P.type===Tn.pop&&r.go(-1,!1)}).catch(gn),Promise.reject()):(P.delta&&r.go(-P.delta,!1),ne(z,D,ce))).then(z=>{z=z||it(D,ce,!1),z&&(P.delta&&!Ze(z,8)?r.go(-P.delta,!1):P.type===Tn.pop&&Ze(z,20)&&r.go(-1,!1)),he(D,ce,z)}).catch(gn)}))}let yt=an(),sn=an(),ae;function ne(v,k,P){Ne(v);const D=sn.list();return D.length?D.forEach(Q=>Q(v,k,P)):console.error(v),Promise.reject(v)}function ee(){return ae&&l.value!==at?Promise.resolve():new Promise((v,k)=>{yt.add([v,k])})}function Ne(v){return ae||(ae=!v,Dt(),yt.list().forEach(([k,P])=>v?P(v):k()),yt.reset()),v}function _t(v,k,P,D){const{scrollBehavior:Q}=e;if(!Ut||!Q)return Promise.resolve();const ce=!P&&vp(vi(v.fullPath,0))||(D||!P)&&history.state&&history.state.scroll||null;return ic().then(()=>Q(v,k,ce)).then(z=>z&&bp(z)).catch(z=>ne(z,v,k))}const Le=v=>r.go(v);let Se;const Ft=new Set,Mn={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,hasRoute:A,getRoutes:w,resolve:R,options:e,push:J,replace:le,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:sn.add,isReady:ee,install(v){const k=this;v.component("RouterLink",rm),v.component("RouterView",lm),v.config.globalProperties.$router=k,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Kt(l)}),Ut&&!Se&&l.value===at&&(Se=!0,J(r.location).catch(Q=>{}));const P={};for(const Q in at)P[Q]=Pe(()=>l.value[Q]);v.provide(lo,k),v.provide(ao,In(P)),v.provide(Ar,l);const D=v.unmount;Ft.add(v),v.unmount=function(){Ft.delete(v),Ft.size<1&&(a=at,qe&&qe(),qe=null,l.value=at,Se=!1,ae=!1),D()}}};return Mn}function jt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function um(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iXt(a,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(a=>Xt(a,l))||r.push(l))}return[n,s,r]}function Rl(){return Ye(ao)}const Mi=Te(""),nr=Te(),un=Te(!1),Kn=Te(!1),zn=Te("");function uo(){function e(r){return t(r)||n(r)}function t(r){return!(r===""||r.includes("://open.spotify.com/playlist/")||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/"))}function n(r){return!!r.includes("://open.spotify.com/track/")}function s(r){console.log("Searching for:",r),nr.value=[],un.value=!0,Mi.value=r,Kn.value=!1,zn.value="",nt.search(r).then(o=>{console.log("Received Data:",o.data),o.status===200?(nr.value=o.data,un.value=!1):(console.log("Error:",o),un.value=!1,Kn.value=!0,zn.value=o.toString())}).catch(o=>{console.log("Other Error:",o.message),un.value=!1,Kn.value=!0,zn.value=o.message})}return{searchTerm:Mi,isSearching:un,results:nr,error:Kn,errorValue:zn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const vt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},Et=Te([]);class fm{constructor(t){this.song=t,this.web_status=vt.QUEUED,this.progress=0,this.message=null,this.web_download_url=null}setDownloading(){this.web_status=vt.DOWNLOADING}setDownloaded(){this.web_status=vt.DOWNLOADED}setError(){this.web_status=vt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===vt.DOWNLOADING}isDownloaded(){return this.web_status===vt.DOWNLOADED}isErrored(){return this.web_status===vt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Hs(){function e(r){return Et.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new fm(r);Et.value.push(o)}function n(r){console.log("removing",r,r.song_id),Et.value=Et.value.filter(o=>o.song.song_id!==r.song_id),console.log(Et.value)}function s(r){return Et.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:Et}}const ut=Hs();nt.ws_onmessage(e=>{let t=JSON.parse(e.data);ut.getBySong(t.song).wsUpdate(t)});nt.ws_onerror(e=>{console.log("websocket error:",e)});function Ln(){function e(r){nt.open(r).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Opened Song:",i),n(i)}else console.log("Error:",o)}).catch(o=>{console.log("Other Error:",o.message)})}function t(r){console.log("Downloading",r),ut.getBySong(r).setDownloading(),nt.download(r.url).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Download Complete:",i),ut.getBySong(r).setWebURL(nt.downloadFileURL(i)),ut.getBySong(r).setDownloaded()}else console.log("Error:",o),ut.getBySong(r).setError()}).catch(o=>{console.log("Other Error:",o.message),ut.getBySong(r).setError()})}function n(r,o=!0){ut.appendSong(r),o&&t(r)}function s(r){console.log("removing"),ut.removeSong(r)}return{fromURL:e,download:t,queue:n,remove:s}}const dm={components:{Icon:nn},setup(){const e=uo(),t=Ln(),n=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],s=Te(n[0]),r=setInterval(()=>{n.push(n.shift()),s.value=n[0]},6e3);_c(()=>{clearInterval(r)});function o(c){if(e.isValidURL(c))t.fromURL(c),i({name:"Download"});else if(e.isValidSearch(c)){let l={name:"Search",params:{query:c}};e.isValidSearch(c)&&i(l)}else console.log("Invalid search term.")}function i(c){fo.push(c)}return{lookUp:o,searchTerm:e.searchTerm,isValidURL:e.isValidURL,placeHolder:s}}},hm={class:"flex flex-row items-center space-x-4 w-full"},pm=["placeholder"];function mm(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",hm,[Xn(O("input",{type:"text",placeholder:s.placeHolder,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":t[0]||(t[0]=c=>s.searchTerm=c),onKeyup:t[1]||(t[1]=Wu(c=>s.lookUp(s.searchTerm),["enter"]))},null,40,pm),[[zu,s.searchTerm]]),O("button",{class:"btn btn-square btn-primary",onClick:t[2]||(t[2]=c=>s.lookUp(s.searchTerm))},[me(" ​ "),s.isValidURL(s.searchTerm)?(U(),fs(i,{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(U(),fs(i,{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))])])}const Ol=He(dm,[["render",mm]]);const gm={components:{Icon:nn,SearchInput:Ol},setup(){return{themeMgr:pl({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"})}}},ym=e=>(fc("data-v-6db37697"),e=e(),dc(),e),_m={class:"hero min-h-screen"},bm={key:0,class:"flex justify-end absolute top-0 right-0"},wm={class:"swap swap-rotate"},vm=["checked"],Em={for:"my-modal",class:"btn btn-square modal-button m-2"},xm={class:"block text-center justify-center hero-content"},Sm=Ic('

spotDL

Download your Spotify songs with embedded album art and metadata

',2),Rm={class:"alert alert-info shadow-lg my-4"},Om=ym(()=>O("span",null,[me("This web interface currently downloads only songs. "),O("br"),me(" Album, Artist, Playlist and Show links will not work.")],-1));function Cm(e,t,n,s,r,o){const i=Ee("Icon"),c=Ee("SearchInput");return U(),H("div",_m,[(U(),H("div",bm,[O("label",wm,[O("input",{type:"checkbox",onChange:t[0]||(t[0]=l=>s.themeMgr.setTheme(l.target.checked?"light":"dark")),checked:s.themeMgr.currentTheme.value==="dark"?!1:"checked"},null,40,vm),me(" ​ "),W(i,{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),me(" ​ "),W(i,{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",Em,[me(" ​ "),W(i,{icon:"clarity:settings-line",class:"h-6 w-6"})])])),O("div",xm,[Sm,W(c),O("div",Rm,[O("div",null,[W(i,{icon:"clarity:info-circle-line",class:"swap-off fill-current h-6 w-6"}),Om])])])])}const Am=He(gm,[["render",Cm],["__scopeId","data-v-6db37697"]]),Tm={components:{Hero:Am},setup(){return Ps(()=>{window.scroll(0,0),nt.check_for_update().then(e=>{Boolean(e.data)===!0&&alert("This version is no longer supported, please update https://github.com/spotDL/spotify-downloader")}).catch(e=>{alert("This version is no longer supported, please update https://github.com/spotDL/spotify-downloader")})}),{}}};function Pm(e,t,n,s,r,o){const i=Ee("Hero");return U(),fs(i)}const Im=He(Tm,[["render",Pm]]);const km={components:{Icon:nn,SearchInput:Ol},setup(){const e=Hs(),t=Ln(),n=Rl();function s(r){fo.push(r)}return{goto:s,route:n,pt:e,dm:t}}},Cl=e=>(fc("data-v-a8dd849c"),e=e(),dc(),e),Nm={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},Lm=Cl(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:Vr,class:"py-2 pr-2 w-10 center"})],-1)),Mm=Cl(()=>O("button",{class:"text-lg font-bold"},"spotDL",-1)),Dm=[Lm,Mm],Fm={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},$m={class:"navbar-end"},jm={for:"my-modal",class:"btn btn-square modal-button mx-2"},Um={class:"indicator"},Bm={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},Hm={class:"sm:hidden px-2 mx-2"};function qm(e,t,n,s,r,o){const i=Ee("SearchInput"),c=Ee("Icon");return U(),H(pe,null,[O("div",Nm,[O("button",{class:"px-2 mx-2 navbar-start",onClick:t[0]||(t[0]=l=>s.goto({name:"Home"}))},Dm),O("div",Fm,[W(i,{class:"w-full"})]),O("div",$m,[O("label",jm,[me(" ​ "),W(c,{icon:"clarity:settings-line",class:"h-6 w-6"})]),O("div",Um,[s.pt.downloadQueue.value.length>0?(U(),H("div",Bm,Ce(s.pt.downloadQueue.value.length),1)):ht("",!0),O("a",{class:bs(["btn btn-square",s.route.name==="Download"?"btn-primary":"btn-ghost"]),onClick:t[1]||(t[1]=l=>s.goto({name:"Download"}))},[me(" ​ "),W(c,{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),O("div",Hm,[W(i,{class:"w-full"})])],64)}const Al=He(km,[["render",qm],["__scopeId","data-v-a8dd849c"]]),Km={components:{Icon:nn},props:["data","error"],emits:["download"],setup(e,t){const n=uo(),s=Hs(),r=Ln();return{data:e.data,error:e.error,errorValue:n.errorValue,loading:n.isSearching,download:o=>t.emit("download",o),dm:r,pt:s}}},zm={class:"min-h-screen m-2"},Vm={key:0,class:"hero min-h-screen"},Wm={key:0,class:"btn btn-sm btn-ghost loading"},Jm={key:1,class:"alert alert-error"},Qm={class:"flex-1"},Xm=O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Ym={class:"aspect-square md:max-h-fit"},Gm=["src"],Zm={class:"card-body"},eg={class:"card-title"},tg={key:0,class:"badge mx-0.5 badge-error"},ng={key:0},sg=O("br",null,null,-1),rg=O("p",null,[O("br")],-1),og={class:"card-actions absolute bottom-0 right-0 m-2"},ig=["href"],cg={key:0,class:"btn btn-primary btn-square"},lg=["onClick"];function ag(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",zm,[s.loading||s.error?(U(),H("div",Vm,[s.loading?(U(),H("button",Wm," LOADING ")):ht("",!0),s.error?(U(),H("div",Jm,[O("div",Qm,[Xm,O("label",null,"Error: "+Ce(s.errorValue),1)])])):ht("",!0)])):(U(!0),H(pe,{key:1},Tt(s.data,(c,l)=>{var a;return U(),H("div",{key:l,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[O("figure",Ym,[O("img",{src:c.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Gm)]),O("div",Zm,[O("h2",eg,[me(Ce(c.name)+" ",1),c.explicit?(U(),H("div",tg," Explicit ")):ht("",!0)]),O("h3",null,[(U(!0),H(pe,null,Tt(c.artists,(u,d)=>(U(),H("a",{key:d},[d!==0?(U(),H("a",ng," • ")):ht("",!0),me(" "+Ce(u),1)]))),128))]),O("h3",null,Ce(c.album_name),1),sg,rg,O("div",og,[O("a",{class:"btn btn-ghost btn-square",href:c.url,target:"_blank"},[me(" ​ "),W(i,{icon:"clarity:link-line",class:"h-6 w-6"})],8,ig),(a=s.pt.getBySong(c))!=null&&a.isQueued()?(U(),H("button",cg,[me(" ​ "),W(i,{icon:"clarity:check-line",class:"h-6 w-6"})])):(U(),H("button",{key:1,class:"btn btn-primary btn-square",onClick:u=>s.download(c)},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,lg))])])])}),128))])}const ug=He(Km,[["render",ag]]),fg={components:{Navbar:Al,SearchList:ug},setup(){Ps(()=>{window.scroll(0,0)});const e=Rl(),t=uo(),n=Ln();return dn(()=>e.params.query,()=>{e.params.query&&t.searchFor(e.params.query)},{deep:!0}),t.searchFor(e.params.query),{sm:t,dm:n}}};function dg(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("SearchList");return U(),H("div",null,[W(i),W(c,{data:s.sm.results,error:s.sm.error,onDownload:t[0]||(t[0]=l=>s.dm.queue(l))},null,8,["data","error"])])}const hg=He(fg,[["render",dg]]),pg={components:{Icon:nn},props:{data:Object},setup(e,t){const n=Hs(),s=Ln();function r(o){const i=document.createElement("a");i.href=o,i.download=o.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return{dm:s,pt:n,download:r}}},mg={class:"min-h-screen m-2"},gg={key:0},yg=O("div",{class:"alert shadow-lg"},[O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"No downloads are queued. Search for a song to begin.")])],-1),_g=[yg],bg={key:1},wg={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},vg=["src"],Eg={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},xg={class:"card-title"},Sg={class:"stat-figure text-primary flex space-x-2 items-center"},Rg={key:0,class:"badge badge-error gap-2"},Og={class:"badge"},Cg=["onClick"],Ag=["onClick"],Tg={key:2,class:"btn btn-square btn-ghost loading"};function Pg(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",mg,[s.pt.downloadQueue.value.length===0?(U(),H("div",gg,_g)):(U(),H("div",bg,[O("div",wg,[(U(!0),H(pe,null,Tt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"carousel-item h-48"},[O("img",{src:c.song.cover_url},null,8,vg)]))),128))]),O("div",Eg,[(U(!0),H(pe,null,Tt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"card-body grid grid-rows-1"},[O("h2",xg,Ce(c.song.name)+" - "+Ce(c.song.artist),1),O("p",null,Ce(c.song.album_name),1),O("div",Sg,[c.isErrored()?(U(),H("div",Rg," error ")):ht("",!0),O("span",Og,Ce(c.message||c.web_status),1),O("button",{class:"btn btn-error btn-outline btn-square",onClick:a=>s.dm.remove(c.song)},[me(" ​ "),W(i,{icon:"clarity:trash-line",class:"h-6 w-6"})],8,Cg),c.isDownloaded()?(U(),H("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:a=>s.download(c.web_download_url),download:""},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,Ag)):c.progress===0?(U(),H("button",Tg," ​ ")):(U(),H("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:_s(`--value: ${c.progress}; --size: 2.5rem`)},Ce(Math.round(c.progress))+"% ",5))])]))),128))])]))])}const Ig=He(pg,[["render",Pg]]),kg={components:{Navbar:Al,DownloadList:Ig},setup(){return Ps(()=>{window.scroll(0,0)}),{}}};function Ng(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("DownloadList");return U(),H("div",null,[W(i),W(c)])}const Lg=He(kg,[["render",Ng]]),Mg=[{path:"/",name:"Home",component:Im},{path:"/search/:query",name:"Search",component:hg},{path:"/download",name:"Download",component:Lg}],fo=am({history:Rp(Fe.BASEURL),routes:Mg});const Tl=Xu(cp);Tl.use(fo);Tl.mount("#app"); + */const Ut=typeof window<"u";function lp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const gn=()=>{},Be=Array.isArray,ap=/\/$/,up=e=>e.replace(ap,"");function er(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=pp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function fp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dp(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Xt(t.matched[s],n.matched[r])&&ml(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ml(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hp(e[n],t[n]))return!1;return!0}function hp(e,t){return Be(e)?wi(e,t):Be(t)?wi(t,e):e===t}function wi(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var Pn;(function(e){e.pop="pop",e.push="push"})(Pn||(Pn={}));var yn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yn||(yn={}));function mp(e){if(!e)if(Ut){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),up(e)}const gp=/^[^#]+#/;function yp(e,t){return e.replace(gp,"#")+t}function _p(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bs=()=>({left:window.pageXOffset,top:window.pageYOffset});function bp(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=_p(r,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 vi(e,t){return(history.state?history.state.position-t:-1)+e}const Or=new Map;function wp(e,t){Or.set(e,t)}function vp(e){const t=Or.get(e);return Or.delete(e),t}let Ep=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),bi(l,"")}return bi(n,e)+s+r}function xp(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const m=gl(e,location),g=n.value,w=t.value;let A=0;if(p){if(n.value=m,t.value=p,i&&i===g){i=null;return}A=w?p.position-w.position:0}else s(m);r.forEach(R=>{R(n.value,g,{delta:A,type:Pn.pop,direction:A?A>0?yn.forward:yn.back:yn.unknown})})};function l(){i=n.value}function a(p){r.push(p);const m=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Bs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:a,destroy:d}}function Ei(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bs():null}}function Sp(e){const{history:t,location:n}=window,s={value:gl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,a,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ep()+e+l;try{t[u?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(l,a){const u=Z({},t.state,Ei(r.value.back,l,r.value.forward,!0),a,{position:r.value.position});o(l,u,!0),s.value=l}function c(l,a){const u=Z({},r.value,t.state,{forward:l,scroll:Bs()});o(u.current,u,!0);const d=Z({},Ei(s.value,l,null),{position:u.position+1},a);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Rp(e){e=mp(e);const t=Sp(e),n=xp(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Z({location:"",base:e,go:s,createHref:yp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Op(e){return typeof e=="string"||e&&typeof e=="object"}function yl(e){return typeof e=="string"||typeof e=="symbol"}const lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_l=Symbol("");var xi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xi||(xi={}));function Yt(e,t){return Z(new Error,{type:e,[_l]:!0},t)}function Ze(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const Si="[^/]+?",Cp={sensitive:!1,strict:!1,start:!0,end:!0},Ap=/[.+*?^${}()[\]/\\]/g;function Pp(e,t){const n=Z({},Cp,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ip(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const kp={type:0,value:""},Np=/[a-zA-Z0-9_]/;function Lp(e){if(!e)return[[]];if(e==="/")return[[kp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,a="",u="";function d(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;c{i(N)}:gn}function i(u){if(yl(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!bl(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Ci(u)&&s.set(u.record.name,u)}function a(u,d){let p,m={},g,w;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw Yt(1,{location:u});w=p.record.name,m=Z(Oi(d.params,p.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&Oi(u.params,p.keys.map(N=>N.name))),g=p.stringify(m)}else if("path"in u)g=u.path,p=n.find(N=>N.re.test(g)),p&&(m=p.parse(g),w=p.record.name);else{if(p=d.name?s.get(d.name):n.find(N=>N.re.test(d.path)),!p)throw Yt(1,{location:u,currentLocation:d});w=p.record.name,m=Z({},d.params,u.params),g=p.stringify(m)}const A=[];let R=p;for(;R;)A.unshift(R.record),R=R.parent;return{name:w,path:g,params:m,matched:A,meta:jp(A)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function Oi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function $p(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dp(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 Dp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jp(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function bl(e,t){return t.children.some(n=>n===e||bl(e,n))}const wl=/#/g,Up=/&/g,Bp=/\//g,Hp=/=/g,qp=/\?/g,vl=/\+/g,Kp=/%5B/g,zp=/%5D/g,El=/%5E/g,Vp=/%60/g,xl=/%7B/g,Wp=/%7C/g,Sl=/%7D/g,Jp=/%20/g;function co(e){return encodeURI(""+e).replace(Wp,"|").replace(Kp,"[").replace(zp,"]")}function Qp(e){return co(e).replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Cr(e){return co(e).replace(vl,"%2B").replace(Jp,"+").replace(wl,"%23").replace(Up,"%26").replace(Vp,"`").replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Xp(e){return Cr(e).replace(Hp,"%3D")}function Yp(e){return co(e).replace(wl,"%23").replace(qp,"%3F")}function Gp(e){return e==null?"":Yp(e).replace(Bp,"%2F")}function ys(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Zp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Cr(o)):[s&&Cr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function em(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const tm=Symbol(""),Ti=Symbol(""),lo=Symbol(""),ao=Symbol(""),Ar=Symbol("");function an(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ft(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Yt(4,{from:n,to:t})):d instanceof Error?c(d):Op(d)?c(Yt(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},a=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(a);e.length<3&&(u=u.then(l)),u.catch(d=>c(d))})}function tr(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(nm(c)){const a=(c.__vccOpts||c)[t];a&&r.push(ft(a,n,s,o,i))}else{let l=c();r.push(()=>l.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=lp(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&ft(p,n,s,o,i)()}))}}return r}function nm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ii(e){const t=Ye(lo),n=Ye(ao),s=Te(()=>t.resolve(Kt(e.to))),r=Te(()=>{const{matched:l}=s.value,{length:a}=l,u=l[a-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Xt.bind(null,u));if(p>-1)return p;const m=ki(l[a-2]);return a>1&&ki(u)===m&&d[d.length-1].path!==m?d.findIndex(Xt.bind(null,l[a-2])):p}),o=Te(()=>r.value>-1&&im(n.params,s.value.params)),i=Te(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function c(l={}){return om(l)?t[Kt(e.replace)?"replace":"push"](Kt(e.to)).catch(gn):Promise.resolve()}return{route:s,href:Te(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const sm=Hr({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:Ii,setup(e,{slots:t}){const n=In(Ii(e)),{options:s}=Ye(lo),r=Te(()=>({[Ni(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ni(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),rm=sm;function om(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 im(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ni=(e,t,n)=>e??t??n,cm=Hr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Ar),r=Te(()=>e.route||s.value),o=Ye(Ti,0),i=Te(()=>{let a=Kt(o);const{matched:u}=r.value;let d;for(;(d=u[a])&&!d.components;)a++;return a}),c=Te(()=>r.value.matched[i.value]);Jn(Ti,Te(()=>i.value+1)),Jn(tm,c),Jn(Ar,r);const l=Pe();return dn(()=>[l.value,c.value,e.name],([a,u,d],[p,m,g])=>{u&&(u.instances[d]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Xt(u,m)||!p)&&(u.enterCallbacks[d]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,d=c.value,p=d&&d.components[u];if(!p)return Li(n.default,{Component:p,route:a});const m=d.props[u],g=m?m===!0?a.params:typeof m=="function"?m(a):m:null,A=ds(p,Z({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Li(n.default,{Component:A,route:a})||A}}});function Li(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lm=cm;function am(e){const t=Fp(e.routes,e),n=e.parseQuery||Zp,s=e.stringifyQuery||Pi,r=e.history,o=an(),i=an(),c=an(),l=ba(lt);let a=lt;Ut&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zs.bind(null,v=>""+v),d=Zs.bind(null,Gp),p=Zs.bind(null,ys);function m(v,k){let T,F;return yl(v)?(T=t.getRecordMatcher(v),F=k):F=v,t.addRoute(F,T)}function g(v){const k=t.getRecordMatcher(v);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(v=>v.record)}function A(v){return!!t.getRecordMatcher(v)}function R(v,k){if(k=Z({},k||l.value),typeof v=="string"){const f=er(n,v,k.path),h=t.resolve({path:f.path},k),y=r.createHref(f.fullPath);return Z(f,h,{params:p(h.params),hash:ys(f.hash),redirectedFrom:void 0,href:y})}let T;if("path"in v)T=Z({},v,{path:er(n,v.path,k.path).path});else{const f=Z({},v.params);for(const h in f)f[h]==null&&delete f[h];T=Z({},v,{params:d(v.params)}),k.params=d(k.params)}const F=t.resolve(T,k),Q=v.hash||"";F.params=u(p(F.params));const ce=fp(s,Z({},v,{hash:Qp(Q),path:F.path})),z=r.createHref(ce);return Z({fullPath:ce,hash:Q,query:s===Pi?em(v.query):v.query||{}},F,{redirectedFrom:void 0,href:z})}function N(v){return typeof v=="string"?er(n,v,l.value.path):Z({},v)}function M(v,k){if(a!==v)return Yt(8,{from:k,to:v})}function J(v){return ie(v)}function le(v){return J(Z(N(v),{replace:!0}))}function K(v){const k=v.matched[v.matched.length-1];if(k&&k.redirect){const{redirect:T}=k;let F=typeof T=="function"?T(v):T;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=N(F):{path:F},F.params={}),Z({query:v.query,hash:v.hash,params:"path"in F?{}:v.params},F)}}function ie(v,k){const T=a=R(v),F=l.value,Q=v.state,ce=v.force,z=v.replace===!0,f=K(T);if(f)return ie(Z(N(f),{state:typeof f=="object"?Z({},Q,f.state):Q,force:ce,replace:z}),k||T);const h=T;h.redirectedFrom=k;let y;return!ce&&dp(s,F,T)&&(y=Yt(16,{to:h,from:F}),_t(F,F,!0,!1)),(y?Promise.resolve(y):ke(h,F)).catch(b=>Ze(b)?Ze(b,2)?b:Ne(b):ne(b,h,F)).then(b=>{if(b){if(Ze(b,2))return ie(Z({replace:z},N(b.to),{state:typeof b.to=="object"?Z({},Q,b.to.state):Q,force:ce}),k||h)}else b=ot(h,F,!0,z,Q);return he(h,F,b),b})}function we(v,k){const T=M(v,k);return T?Promise.reject(T):Promise.resolve()}function ke(v,k){let T;const[F,Q,ce]=um(v,k);T=tr(F.reverse(),"beforeRouteLeave",v,k);for(const f of F)f.leaveGuards.forEach(h=>{T.push(ft(h,v,k))});const z=we.bind(null,v,k);return T.push(z),jt(T).then(()=>{T=[];for(const f of o.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).then(()=>{T=tr(Q,"beforeRouteUpdate",v,k);for(const f of Q)f.updateGuards.forEach(h=>{T.push(ft(h,v,k))});return T.push(z),jt(T)}).then(()=>{T=[];for(const f of v.matched)if(f.beforeEnter&&!k.matched.includes(f))if(Be(f.beforeEnter))for(const h of f.beforeEnter)T.push(ft(h,v,k));else T.push(ft(f.beforeEnter,v,k));return T.push(z),jt(T)}).then(()=>(v.matched.forEach(f=>f.enterCallbacks={}),T=tr(ce,"beforeRouteEnter",v,k),T.push(z),jt(T))).then(()=>{T=[];for(const f of i.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).catch(f=>Ze(f,8)?f:Promise.reject(f))}function he(v,k,T){for(const F of c.list())F(v,k,T)}function ot(v,k,T,F,Q){const ce=M(v,k);if(ce)return ce;const z=k===lt,f=Ut?history.state:{};T&&(F||z?r.replace(v.fullPath,Z({scroll:z&&f&&f.scroll},Q)):r.push(v.fullPath,Q)),l.value=v,_t(v,k,T,z),Ne()}let qe;function Ft(){qe||(qe=r.listen((v,k,T)=>{if(!Mn.listening)return;const F=R(v),Q=K(F);if(Q){ie(Z(Q,{replace:!0}),F).catch(gn);return}a=F;const ce=l.value;Ut&&wp(vi(ce.fullPath,T.delta),Bs()),ke(F,ce).catch(z=>Ze(z,12)?z:Ze(z,2)?(ie(z.to,F).then(f=>{Ze(f,20)&&!T.delta&&T.type===Pn.pop&&r.go(-1,!1)}).catch(gn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),ne(z,F,ce))).then(z=>{z=z||ot(F,ce,!1),z&&(T.delta&&!Ze(z,8)?r.go(-T.delta,!1):T.type===Pn.pop&&Ze(z,20)&&r.go(-1,!1)),he(F,ce,z)}).catch(gn)}))}let yt=an(),sn=an(),ae;function ne(v,k,T){Ne(v);const F=sn.list();return F.length?F.forEach(Q=>Q(v,k,T)):console.error(v),Promise.reject(v)}function ee(){return ae&&l.value!==lt?Promise.resolve():new Promise((v,k)=>{yt.add([v,k])})}function Ne(v){return ae||(ae=!v,Ft(),yt.list().forEach(([k,T])=>v?T(v):k()),yt.reset()),v}function _t(v,k,T,F){const{scrollBehavior:Q}=e;if(!Ut||!Q)return Promise.resolve();const ce=!T&&vp(vi(v.fullPath,0))||(F||!T)&&history.state&&history.state.scroll||null;return ic().then(()=>Q(v,k,ce)).then(z=>z&&bp(z)).catch(z=>ne(z,v,k))}const Le=v=>r.go(v);let Se;const $t=new Set,Mn={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,hasRoute:A,getRoutes:w,resolve:R,options:e,push:J,replace:le,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:sn.add,isReady:ee,install(v){const k=this;v.component("RouterLink",rm),v.component("RouterView",lm),v.config.globalProperties.$router=k,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Kt(l)}),Ut&&!Se&&l.value===lt&&(Se=!0,J(r.location).catch(Q=>{}));const T={};for(const Q in lt)T[Q]=Te(()=>l.value[Q]);v.provide(lo,k),v.provide(ao,In(T)),v.provide(Ar,l);const F=v.unmount;$t.add(v),v.unmount=function(){$t.delete(v),$t.size<1&&(a=lt,qe&&qe(),qe=null,l.value=lt,Se=!1,ae=!1),F()}}};return Mn}function jt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function um(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iXt(a,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(a=>Xt(a,l))||r.push(l))}return[n,s,r]}function Rl(){return Ye(ao)}const Mi=Pe(""),nr=Pe(),un=Pe(!1),Kn=Pe(!1),zn=Pe("");function uo(){function e(r){return t(r)||n(r)}function t(r){return!(r===""||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/"))}function n(r){return!!(r.includes("://open.spotify.com/track/")||r.includes("://open.spotify.com/playlist/"))}function s(r){console.log("Searching for:",r),nr.value=[],un.value=!0,Mi.value=r,Kn.value=!1,zn.value="",mt.search(r).then(o=>{console.log("Received Data:",o.data),o.status===200?(nr.value=o.data,un.value=!1):(console.log("Error:",o),un.value=!1,Kn.value=!0,zn.value=o.toString())}).catch(o=>{console.log("Other Error:",o.message),un.value=!1,Kn.value=!0,zn.value=o.message})}return{searchTerm:Mi,isSearching:un,results:nr,error:Kn,errorValue:zn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const vt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},Et=Pe([]);class fm{constructor(t){this.song=t,this.web_status=vt.QUEUED,this.progress=0,this.message=null,this.web_download_url=null}setDownloading(){this.web_status=vt.DOWNLOADING}setDownloaded(){this.web_status=vt.DOWNLOADED}setError(){this.web_status=vt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===vt.DOWNLOADING}isDownloaded(){return this.web_status===vt.DOWNLOADED}isErrored(){return this.web_status===vt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Hs(){function e(r){return Et.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new fm(r);Et.value.push(o)}function n(r){console.log("removing",r,r.song_id),Et.value=Et.value.filter(o=>o.song.song_id!==r.song_id),console.log(Et.value)}function s(r){return Et.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:Et}}const at=Hs();mt.ws_onmessage(e=>{let t=JSON.parse(e.data);at.getBySong(t.song).wsUpdate(t)});mt.ws_onerror(e=>{console.log("websocket error:",e)});function Ln(){function e(r){mt.open(r).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Opened Song:",i),n(i)}else console.log("Error:",o)}).catch(o=>{console.log("Other Error:",o.message)})}function t(r){console.log("Downloading",r),at.getBySong(r).setDownloading(),mt.download(r.url).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Download Complete:",i),at.getBySong(r).setWebURL(mt.downloadFileURL(i)),at.getBySong(r).setDownloaded()}else console.log("Error:",o),at.getBySong(r).setError()}).catch(o=>{console.log("Other Error:",o.message),at.getBySong(r).setError()})}function n(r,o=!0){at.appendSong(r),o&&t(r)}function s(r){console.log("removing"),at.removeSong(r)}return{fromURL:e,download:t,queue:n,remove:s}}const dm={components:{Icon:nn},setup(){const e=uo(),t=Ln(),n=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],s=Pe(n[0]),r=setInterval(()=>{n.push(n.shift()),s.value=n[0]},6e3);_c(()=>{clearInterval(r)});function o(c){if(e.isValidURL(c))t.fromURL(c),i({name:"Download"});else if(e.isValidSearch(c)){let l={name:"Search",params:{query:c}};e.isValidSearch(c)&&i(l)}else console.log("Invalid search term.")}function i(c){fo.push(c)}return{lookUp:o,searchTerm:e.searchTerm,isValidURL:e.isValidURL,placeHolder:s}}},hm={class:"flex flex-row items-center space-x-4 w-full"},pm=["placeholder"];function mm(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",hm,[Xn(O("input",{type:"text",placeholder:s.placeHolder,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":t[0]||(t[0]=c=>s.searchTerm=c),onKeyup:t[1]||(t[1]=Wu(c=>s.lookUp(s.searchTerm),["enter"]))},null,40,pm),[[zu,s.searchTerm]]),O("button",{class:"btn btn-square btn-primary",onClick:t[2]||(t[2]=c=>s.lookUp(s.searchTerm))},[me(" ​ "),s.isValidURL(s.searchTerm)?(U(),fs(i,{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(U(),fs(i,{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))])])}const Ol=He(dm,[["render",mm]]);const gm={components:{Icon:nn,SearchInput:Ol},setup(){return{themeMgr:pl({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"})}}},ym=e=>(fc("data-v-a94c0599"),e=e(),dc(),e),_m={class:"hero min-h-screen"},bm={key:0,class:"flex justify-end absolute top-0 right-0"},wm={class:"swap swap-rotate"},vm=["checked"],Em={for:"my-modal",class:"btn btn-square modal-button m-2"},xm={class:"block text-center justify-center hero-content"},Sm=Ic('

spotDL

Download your Spotify songs with embedded album art and metadata

',2),Rm={class:"alert alert-info shadow-lg my-4"},Om=ym(()=>O("span",null,[me("This web interface currently downloads only songs. "),O("br"),me(" Album, Artist, Playlist and Show links will not work.")],-1));function Cm(e,t,n,s,r,o){const i=Ee("Icon"),c=Ee("SearchInput");return U(),H("div",_m,[(U(),H("div",bm,[O("label",wm,[O("input",{type:"checkbox",onChange:t[0]||(t[0]=l=>s.themeMgr.setTheme(l.target.checked?"light":"dark")),checked:s.themeMgr.currentTheme.value==="dark"?!1:"checked"},null,40,vm),me(" ​ "),W(i,{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),me(" ​ "),W(i,{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",Em,[me(" ​ "),W(i,{icon:"clarity:settings-line",class:"h-6 w-6"})])])),O("div",xm,[Sm,W(c),O("div",Rm,[O("div",null,[W(i,{icon:"clarity:info-circle-line",class:"swap-off fill-current h-6 w-6"}),Om])])])])}const Am=He(gm,[["render",Cm],["__scopeId","data-v-a94c0599"]]),Pm={components:{Hero:Am},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Tm(e,t,n,s,r,o){const i=Ee("Hero");return U(),fs(i)}const Im=He(Pm,[["render",Tm]]);const km={components:{Icon:nn,SearchInput:Ol},setup(){const e=Hs(),t=Ln(),n=Rl();function s(r){fo.push(r)}return{goto:s,route:n,pt:e,dm:t}}},Cl=e=>(fc("data-v-e0cba7f6"),e=e(),dc(),e),Nm={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},Lm=Cl(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:Vr,class:"py-2 pr-2 w-10 center"})],-1)),Mm=Cl(()=>O("button",{class:"text-lg font-bold"},"spotDL",-1)),Fm=[Lm,Mm],$m={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},Dm={class:"navbar-end"},jm={for:"my-modal",class:"btn btn-square modal-button mx-2"},Um={class:"indicator"},Bm={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},Hm={class:"sm:hidden px-2 mx-2"};function qm(e,t,n,s,r,o){const i=Ee("SearchInput"),c=Ee("Icon");return U(),H(pe,null,[O("div",Nm,[O("button",{class:"px-2 mx-2 navbar-start",onClick:t[0]||(t[0]=l=>s.goto({name:"Home"}))},Fm),O("div",$m,[W(i,{class:"w-full"})]),O("div",Dm,[O("label",jm,[me(" ​ "),W(c,{icon:"clarity:settings-line",class:"h-6 w-6"})]),O("div",Um,[s.pt.downloadQueue.value.length>0?(U(),H("div",Bm,Ce(s.pt.downloadQueue.value.length),1)):dt("",!0),O("a",{class:bs(["btn btn-square",s.route.name==="Download"?"btn-primary":"btn-ghost"]),onClick:t[1]||(t[1]=l=>s.goto({name:"Download"}))},[me(" ​ "),W(c,{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),O("div",Hm,[W(i,{class:"w-full"})])],64)}const Al=He(km,[["render",qm],["__scopeId","data-v-e0cba7f6"]]),Km={components:{Icon:nn},props:["data","error"],emits:["download"],setup(e,t){const n=uo(),s=Hs(),r=Ln();return{data:e.data,error:e.error,errorValue:n.errorValue,loading:n.isSearching,download:o=>t.emit("download",o),dm:r,pt:s}}},zm={class:"min-h-screen m-2"},Vm={key:0,class:"hero min-h-screen"},Wm={key:0,class:"btn btn-sm btn-ghost loading"},Jm={key:1,class:"alert alert-error"},Qm={class:"flex-1"},Xm=O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Ym={class:"aspect-square md:max-h-fit"},Gm=["src"],Zm={class:"card-body"},eg={class:"card-title"},tg={key:0,class:"badge mx-0.5 badge-error"},ng={key:0},sg=O("br",null,null,-1),rg=O("p",null,[O("br")],-1),og={class:"card-actions absolute bottom-0 right-0 m-2"},ig=["href"],cg={key:0,class:"btn btn-primary btn-square"},lg=["onClick"];function ag(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",zm,[s.loading||s.error?(U(),H("div",Vm,[s.loading?(U(),H("button",Wm," LOADING ")):dt("",!0),s.error?(U(),H("div",Jm,[O("div",Qm,[Xm,O("label",null,"Error: "+Ce(s.errorValue),1)])])):dt("",!0)])):(U(!0),H(pe,{key:1},Pt(s.data,(c,l)=>{var a;return U(),H("div",{key:l,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[O("figure",Ym,[O("img",{src:c.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Gm)]),O("div",Zm,[O("h2",eg,[me(Ce(c.name)+" ",1),c.explicit?(U(),H("div",tg," Explicit ")):dt("",!0)]),O("h3",null,[(U(!0),H(pe,null,Pt(c.artists,(u,d)=>(U(),H("a",{key:d},[d!==0?(U(),H("a",ng," • ")):dt("",!0),me(" "+Ce(u),1)]))),128))]),O("h3",null,Ce(c.album_name),1),sg,rg,O("div",og,[O("a",{class:"btn btn-ghost btn-square",href:c.url,target:"_blank"},[me(" ​ "),W(i,{icon:"clarity:link-line",class:"h-6 w-6"})],8,ig),(a=s.pt.getBySong(c))!=null&&a.isQueued()?(U(),H("button",cg,[me(" ​ "),W(i,{icon:"clarity:check-line",class:"h-6 w-6"})])):(U(),H("button",{key:1,class:"btn btn-primary btn-square",onClick:u=>s.download(c)},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,lg))])])])}),128))])}const ug=He(Km,[["render",ag]]),fg={components:{Navbar:Al,SearchList:ug},setup(){Ts(()=>{window.scroll(0,0)});const e=Rl(),t=uo(),n=Ln();return dn(()=>e.params.query,()=>{e.params.query&&t.searchFor(e.params.query)},{deep:!0}),t.searchFor(e.params.query),{sm:t,dm:n}}};function dg(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("SearchList");return U(),H("div",null,[W(i),W(c,{data:s.sm.results,error:s.sm.error,onDownload:t[0]||(t[0]=l=>s.dm.queue(l))},null,8,["data","error"])])}const hg=He(fg,[["render",dg]]),pg={components:{Icon:nn},props:{data:Object},setup(e,t){const n=Hs(),s=Ln();function r(o){const i=document.createElement("a");i.href=o,i.download=o.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return{dm:s,pt:n,download:r}}},mg={class:"min-h-screen m-2"},gg={key:0},yg=O("div",{class:"alert shadow-lg"},[O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"No downloads are queued. Search for a song to begin.")])],-1),_g=[yg],bg={key:1},wg={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},vg=["src"],Eg={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},xg={class:"card-title"},Sg={class:"stat-figure text-primary flex space-x-2 items-center"},Rg={key:0,class:"badge badge-error gap-2"},Og={class:"badge"},Cg=["onClick"],Ag=["onClick"],Pg={key:2,class:"btn btn-square btn-ghost loading"};function Tg(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",mg,[s.pt.downloadQueue.value.length===0?(U(),H("div",gg,_g)):(U(),H("div",bg,[O("div",wg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"carousel-item h-48"},[O("img",{src:c.song.cover_url},null,8,vg)]))),128))]),O("div",Eg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"card-body grid grid-rows-1"},[O("h2",xg,Ce(c.song.name)+" - "+Ce(c.song.artist),1),O("p",null,Ce(c.song.album_name),1),O("div",Sg,[c.isErrored()?(U(),H("div",Rg," error ")):dt("",!0),O("span",Og,Ce(c.message||c.web_status),1),O("button",{class:"btn btn-error btn-outline btn-square",onClick:a=>s.dm.remove(c.song)},[me(" ​ "),W(i,{icon:"clarity:trash-line",class:"h-6 w-6"})],8,Cg),c.isDownloaded()?(U(),H("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:a=>s.download(c.web_download_url),download:""},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,Ag)):c.progress===0?(U(),H("button",Pg," ​ ")):(U(),H("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:_s(`--value: ${c.progress}; --size: 2.5rem`)},Ce(Math.round(c.progress))+"% ",5))])]))),128))])]))])}const Ig=He(pg,[["render",Tg]]),kg={components:{Navbar:Al,DownloadList:Ig},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Ng(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("DownloadList");return U(),H("div",null,[W(i),W(c)])}const Lg=He(kg,[["render",Ng]]),Mg=[{path:"/",name:"Home",component:Im},{path:"/search/:query",name:"Search",component:hg},{path:"/download",name:"Download",component:Lg}],fo=am({history:Rp($e.BASEURL),routes:Mg});const Pl=Xu(cp);Pl.use(fo);Pl.mount("#app"); diff --git a/dist/index.html b/dist/index.html index 68100b9..8f2df7a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,8 +5,8 @@ spotDL - - + +
From 87e86d03b231f8de563ae88a58cb80953b828e92 Mon Sep 17 00:00:00 2001 From: oscarvx00 Date: Mon, 12 Jun 2023 14:39:30 +0200 Subject: [PATCH 03/22] Song search response is received as an array of songs, then each song is queued --- dist/assets/index-c428f059.js | 7 ------- dist/index.html | 2 +- src/model/download.js | 8 +++++--- 3 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 dist/assets/index-c428f059.js diff --git a/dist/assets/index-c428f059.js b/dist/assets/index-c428f059.js deleted file mode 100644 index c9e4ba5..0000000 --- a/dist/assets/index-c428f059.js +++ /dev/null @@ -1,7 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Pr(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function _s(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(Il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function bs(e){let t="";if(fe(e))t=e;else if(j(e))for(let n=0;nws(n,t))}const Ce=e=>fe(e)?e:e==null?"":j(e)||re(e)&&(e.toString===ji||!q(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:re(t)&&!j(t)&&!Ui(t)?String(t):t,oe={},Bt=[],je=()=>{},Dl=()=>!1,jl=/^on[^a-z]/,vs=e=>jl.test(e),Tr=e=>e.startsWith("onUpdate:"),xe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ul=Object.prototype.hasOwnProperty,X=(e,t)=>Ul.call(e,t),j=Array.isArray,Ht=e=>Tn(e)==="[object Map]",Es=e=>Tn(e)==="[object Set]",go=e=>Tn(e)==="[object Date]",q=e=>typeof e=="function",fe=e=>typeof e=="string",_n=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Di=e=>re(e)&&q(e.then)&&q(e.catch),ji=Object.prototype.toString,Tn=e=>ji.call(e),Bl=e=>Tn(e).slice(8,-1),Ui=e=>Tn(e)==="[object Object]",kr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hl=/-(\w)/g,Ge=xs(e=>e.replace(Hl,(t,n)=>n?n.toUpperCase():"")),ql=/\B([A-Z])/g,Lt=xs(e=>e.replace(ql,"-$1").toLowerCase()),Ss=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=xs(e=>e?`on${Ss(e)}`:""),bn=(e,t)=>!Object.is(e,t),Wn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yo;const Kl=()=>yo||(yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class zl{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Bi=e=>(e.w>)>0,Hi=e=>(e.n>)>0,Wl=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&c.push(a)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?kr(n)&&c.push(i.get("length")):(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"delete":j(e)||(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"set":Ht(e)&&c.push(i.get(At));break}if(c.length===1)c[0]&&ir(c[0]);else{const l=[];for(const a of c)a&&l.push(...a);ir(Nr(l))}}function ir(e,t){const n=j(e)?e:[...e];for(const s of n)s.computed&&bo(s);for(const s of n)s.computed||bo(s)}function bo(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ql=Pr("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_n)),Xl=Mr(),Yl=Mr(!1,!0),Gl=Mr(!0),wo=Zl();function Zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=G(this);for(let o=0,i=this.length;o{e[t]=function(...n){Gt();const s=G(this)[t].apply(this,n);return Zt(),s}}),e}function Mr(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?ma:Xi:t?Qi:Ji).get(s))return s;const i=j(s);if(!e&&i&&X(wo,r))return Reflect.get(wo,r,o);const c=Reflect.get(s,r,o);return(_n(r)?zi.has(r):Ql(r))||(e||Ae(s,"get",r),t)?c:be(c)?i&&kr(r)?c:c.value:re(c)?e?Yi(c):In(c):c}}const ea=Vi(),ta=Vi(!0);function Vi(e=!1){return function(n,s,r,o){let i=n[s];if(Vt(i)&&be(i)&&!be(r))return!1;if(!e&&(!ls(r)&&!Vt(r)&&(i=G(i),r=G(r)),!j(n)&&be(i)&&!be(r)))return i.value=r,!0;const c=j(n)&&kr(s)?Number(s)e,Rs=e=>Reflect.getPrototypeOf(e);function Fn(e,t,n=!1,s=!1){e=e.__v_raw;const r=G(e),o=G(t);n||(t!==o&&Ae(r,"get",t),Ae(r,"get",o));const{has:i}=Rs(r),c=s?Fr:n?jr:vn;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function $n(e,t=!1){const n=this.__v_raw,s=G(n),r=G(e);return t||(e!==r&&Ae(s,"has",e),Ae(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Dn(e,t=!1){return e=e.__v_raw,!t&&Ae(G(e),"iterate",At),Reflect.get(e,"size",e)}function vo(e){e=G(e);const t=G(this);return Rs(t).has.call(t,e)||(t.add(e),nt(t,"add",e,e)),this}function Eo(e,t){t=G(t);const n=G(this),{has:s,get:r}=Rs(n);let o=s.call(n,e);o||(e=G(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?bn(t,i)&&nt(n,"set",e,t):nt(n,"add",e,t),this}function xo(e){const t=G(this),{has:n,get:s}=Rs(t);let r=n.call(t,e);r||(e=G(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&nt(t,"delete",e,void 0),o}function So(){const e=G(this),t=e.size!==0,n=e.clear();return t&&nt(e,"clear",void 0,void 0),n}function jn(e,t){return function(s,r){const o=this,i=o.__v_raw,c=G(i),l=t?Fr:e?jr:vn;return!e&&Ae(c,"iterate",At),i.forEach((a,u)=>s.call(r,l(a),l(u),o))}}function Un(e,t,n){return function(...s){const r=this.__v_raw,o=G(r),i=Ht(o),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,a=r[e](...s),u=n?Fr:t?jr:vn;return!t&&Ae(o,"iterate",l?or:At),{next(){const{value:d,done:p}=a.next();return p?{value:d,done:p}:{value:c?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){return e==="delete"?!1:this}}function ca(){const e={get(o){return Fn(this,o)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!1)},t={get(o){return Fn(this,o,!1,!0)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!0)},n={get(o){return Fn(this,o,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!1)},s={get(o){return Fn(this,o,!0,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Un(o,!1,!1),n[o]=Un(o,!0,!1),t[o]=Un(o,!1,!0),s[o]=Un(o,!0,!0)}),[e,n,t,s]}const[la,aa,ua,fa]=ca();function $r(e,t){const n=t?e?fa:ua:e?aa:la;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const da={get:$r(!1,!1)},ha={get:$r(!1,!0)},pa={get:$r(!0,!1)},Ji=new WeakMap,Qi=new WeakMap,Xi=new WeakMap,ma=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ya(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(Bl(e))}function In(e){return Vt(e)?e:Dr(e,!1,Wi,da,Ji)}function _a(e){return Dr(e,!1,ia,ha,Qi)}function Yi(e){return Dr(e,!0,oa,pa,Xi)}function Dr(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ya(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function qt(e){return Vt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function Gi(e){return qt(e)||Vt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Zi(e){return cs(e,"__v_skip",!0),e}const vn=e=>re(e)?In(e):e,jr=e=>re(e)?Yi(e):e;function ec(e){ht&&Fe&&(e=G(e),Ki(e.dep||(e.dep=Nr())))}function tc(e,t){e=G(e),e.dep&&ir(e.dep)}function be(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){return nc(e,!1)}function ba(e){return nc(e,!0)}function nc(e,t){return be(e)?e:new wa(e,t)}class wa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:vn(t)}get value(){return ec(this),this._value}set value(t){const n=this.__v_isShallow||ls(t)||Vt(t);t=n?t:G(t),bn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vn(t),tc(this))}}function Kt(e){return be(e)?e.value:e}const va={get:(e,t,n)=>Kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function sc(e){return qt(e)?e:new Proxy(e,va)}var rc;class Ea{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rc]=!1,this._dirty=!0,this.effect=new Lr(t,()=>{this._dirty||(this._dirty=!0,tc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=G(this);return ec(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rc="__v_isReadonly";function xa(e,t,n=!1){let s,r;const o=q(e);return o?(s=e,r=je):(s=e.get,r=e.set),new Ea(s,r,o||!r,n)}function pt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Os(o,t,n)}return r}function Ue(e,t,n,s){if(q(e)){const o=pt(e,t,n,s);return o&&Di(o)&&o.catch(i=>{Os(i,t,n)}),o}const r=[];for(let o=0;o>>1;xn(_e[s])Qe&&_e.splice(t,1)}function Ca(e){j(e)?zt.push(...e):(!et||!et.includes(e,e.allowRecurse?St+1:St))&&zt.push(e),cc()}function Ro(e,t=En?Qe+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function lc(e){if(zt.length){const t=[...new Set(zt)];if(zt.length=0,et){et.push(...t);return}for(et=t,et.sort((n,s)=>xn(n)-xn(s)),St=0;Ste.id==null?1/0:e.id,Aa=(e,t)=>{const n=xn(e)-xn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ac(e){cr=!1,En=!0,_e.sort(Aa);const t=je;try{for(Qe=0;Qe<_e.length;Qe++){const n=_e[Qe];n&&n.active!==!1&&pt(n,null,14)}}finally{Qe=0,_e.length=0,lc(),En=!1,Ur=null,(_e.length||zt.length)&&ac()}}function Pa(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:p}=s[u]||oe;p&&(r=n.map(m=>fe(m)?m.trim():m)),d&&(r=n.map(wn))}let c,l=s[c=qs(t)]||s[c=qs(Ge(t))];!l&&o&&(l=s[c=qs(Lt(t))]),l&&Ue(l,e,6,r);const a=s[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ue(a,e,6,r)}}function uc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!q(e)){const l=a=>{const u=uc(a,t,!0);u&&(c=!0,xe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!c?(re(e)&&s.set(e,null),null):(j(o)?o.forEach(l=>i[l]=null):xe(i,o),re(e)&&s.set(e,i),i)}function Cs(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Lt(t))||X(e,t))}let Ie=null,As=null;function as(e){const t=Ie;return Ie=e,As=e&&e.type.__scopeId||null,t}function fc(e){As=e}function dc(){As=null}function Ta(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Lo(-1);const o=as(t);let i;try{i=e(...r)}finally{as(o),s._d&&Lo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:m,ctx:g,inheritAttrs:w}=e;let A,R;const N=as(e);try{if(n.shapeFlag&4){const J=r||s;A=Je(u.call(J,J,d,o,m,p,g)),R=l}else{const J=t;A=Je(J.length>1?J(o,{attrs:l,slots:c,emit:a}):J(o,null)),R=t.props?l:Ia(l)}}catch(J){pn.length=0,Os(J,e,1),A=W(It)}let M=A;if(R&&w!==!1){const J=Object.keys(R),{shapeFlag:le}=M;J.length&&le&7&&(i&&J.some(Tr)&&(R=ka(R,i)),M=Wt(M,R))}return n.dirs&&(M=Wt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),A=M,as(N),A}const Ia=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},ka=(e,t)=>{const n={};for(const s in e)(!Tr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Na(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:l}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Oo(s,i,a):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Fa(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Ca(e)}function Jn(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ye||Ie;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s.proxy):t}}const Bn={};function dn(e,t,n){return hc(e,t,n)}function hc(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=oe){const c=ye;let l,a=!1,u=!1;if(be(e)?(l=()=>e.value,a=ls(e)):qt(e)?(l=()=>e,s=!0):j(e)?(u=!0,a=e.some(M=>qt(M)||ls(M)),l=()=>e.map(M=>{if(be(M))return M.value;if(qt(M))return Ct(M);if(q(M))return pt(M,c,2)})):q(e)?t?l=()=>pt(e,c,2):l=()=>{if(!(c&&c.isUnmounted))return d&&d(),Ue(e,c,3,[p])}:l=je,t&&s){const M=l;l=()=>Ct(M())}let d,p=M=>{d=R.onStop=()=>{pt(M,c,4)}},m;if(Rn)if(p=je,t?n&&Ue(t,c,3,[l(),u?[]:void 0,p]):l(),r==="sync"){const M=Ou();m=M.__watcherHandles||(M.__watcherHandles=[])}else return je;let g=u?new Array(e.length).fill(Bn):Bn;const w=()=>{if(R.active)if(t){const M=R.run();(s||a||(u?M.some((J,le)=>bn(J,g[le])):bn(M,g)))&&(d&&d(),Ue(t,c,3,[M,g===Bn?void 0:u&&g[0]===Bn?[]:g,p]),g=M)}else R.run()};w.allowRecurse=!!t;let A;r==="sync"?A=w:r==="post"?A=()=>Re(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),A=()=>Br(w));const R=new Lr(l,A);t?n?w():g=R.run():r==="post"?Re(R.run.bind(R),c&&c.suspense):R.run();const N=()=>{R.stop(),c&&c.scope&&Ir(c.scope.effects,R)};return m&&m.push(N),N}function $a(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?pc(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=ye;Jt(this);const c=hc(r,o.bind(s),n);return i?Jt(i):Tt(),c}function pc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ct(n,t)});else if(Ui(e))for(const n in e)Ct(e[n],t);return e}function Hr(e){return q(e)?{setup:e,name:e.name}:e}const Qn=e=>!!e.type.__asyncLoader,mc=e=>e.type.__isKeepAlive;function Da(e,t){gc(e,"a",t)}function ja(e,t){gc(e,"da",t)}function gc(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ps(t,s,n),n){let r=n.parent;for(;r&&r.parent;)mc(r.parent.vnode)&&Ua(s,t,n,r),r=r.parent}}function Ua(e,t,n,s){const r=Ps(t,e,s,!0);bc(()=>{Ir(s[t],r)},n)}function Ps(e,t,n=ye,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Gt(),Jt(n);const c=Ue(t,n,e,i);return Tt(),Zt(),c});return s?r.unshift(o):r.push(o),o}}const st=e=>(t,n=ye)=>(!Rn||e==="sp")&&Ps(e,(...s)=>t(...s),n),yc=st("bm"),Ts=st("m"),Ba=st("bu"),Ha=st("u"),_c=st("bum"),bc=st("um"),qa=st("sp"),Ka=st("rtg"),za=st("rtc");function Va(e,t=ye){Ps("ec",e,t)}function Xn(e,t){const n=Ie;if(n===null)return e;const s=Ns(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,l=i.length;ce?kc(e)?Ns(e)||e.proxy:lr(e.parent):null,hn=xe(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=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>qr(e),$forceUpdate:e=>e.f||(e.f=()=>Br(e.update)),$nextTick:e=>e.n||(e.n=ic.bind(e.proxy)),$watch:e=>$a.bind(e)}),zs=(e,t)=>e!==oe&&!e.__isScriptSetup&&X(e,t),Qa={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=e;let a;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(zs(s,t))return i[t]=1,s[t];if(r!==oe&&X(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&X(a,t))return i[t]=3,o[t];if(n!==oe&&X(n,t))return i[t]=4,n[t];ar&&(i[t]=0)}}const u=hn[t];let d,p;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==oe&&X(n,t))return i[t]=4,n[t];if(p=l.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return zs(r,t)?(r[t]=n,!0):s!==oe&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==oe&&X(e,i)||zs(t,i)||(c=o[0])&&X(c,i)||X(s,i)||X(hn,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ar=!0;function Xa(e){const t=qr(e),n=e.proxy,s=e.ctx;ar=!1,t.beforeCreate&&Ao(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:A,beforeDestroy:R,beforeUnmount:N,destroyed:M,unmounted:J,render:le,renderTracked:K,renderTriggered:ie,errorCaptured:we,serverPrefetch:ke,expose:he,inheritAttrs:ot,components:qe,directives:Ft,filters:yt}=t;if(a&&Ya(a,s,null,e.appContext.config.unwrapInjectedRef),i)for(const ne in i){const ee=i[ne];q(ee)&&(s[ne]=ee.bind(n))}if(r){const ne=r.call(n,n);re(ne)&&(e.data=In(ne))}if(ar=!0,o)for(const ne in o){const ee=o[ne],Ne=q(ee)?ee.bind(n,n):q(ee.get)?ee.get.bind(n,n):je,_t=!q(ee)&&q(ee.set)?ee.set.bind(n):je,Le=Te({get:Ne,set:_t});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Se=>Le.value=Se})}if(c)for(const ne in c)vc(c[ne],s,n,ne);if(l){const ne=q(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ee=>{Jn(ee,ne[ee])})}u&&Ao(u,e,"c");function ae(ne,ee){j(ee)?ee.forEach(Ne=>ne(Ne.bind(n))):ee&&ne(ee.bind(n))}if(ae(yc,d),ae(Ts,p),ae(Ba,m),ae(Ha,g),ae(Da,w),ae(ja,A),ae(Va,we),ae(za,K),ae(Ka,ie),ae(_c,N),ae(bc,J),ae(qa,ke),j(he))if(he.length){const ne=e.exposed||(e.exposed={});he.forEach(ee=>{Object.defineProperty(ne,ee,{get:()=>n[ee],set:Ne=>n[ee]=Ne})})}else e.exposed||(e.exposed={});le&&e.render===je&&(e.render=le),ot!=null&&(e.inheritAttrs=ot),qe&&(e.components=qe),Ft&&(e.directives=Ft)}function Ya(e,t,n=je,s=!1){j(e)&&(e=ur(e));for(const r in e){const o=e[r];let i;re(o)?"default"in o?i=Ye(o.from||r,o.default,!0):i=Ye(o.from||r):i=Ye(o),be(i)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[r]=i}}function Ao(e,t,n){Ue(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vc(e,t,n,s){const r=s.includes(".")?pc(n,s):()=>n[s];if(fe(e)){const o=t[e];q(o)&&dn(r,o)}else if(q(e))dn(r,e.bind(n));else if(re(e))if(j(e))e.forEach(o=>vc(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&dn(r,o,e)}}function qr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(a=>us(l,a,i,!0)),us(l,t,i)),re(t)&&o.set(t,l),l}function us(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&us(e,o,n,!0),r&&r.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Ga[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ga={data:Po,props:xt,emits:xt,methods:xt,computed:xt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:xt,directives:xt,watch:eu,provide:Po,inject:Za};function Po(e,t){return t?e?function(){return xe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Za(e,t){return xt(ur(e),ur(t))}function ur(e){if(j(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[p,m]=xc(d,t,!0);xe(i,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return re(e)&&s.set(e,Bt),Bt;if(j(o))for(let u=0;u-1,m[1]=w<0||g-1||X(m,"default"))&&c.push(d)}}}const a=[i,c];return re(e)&&s.set(e,a),a}function To(e){return e[0]!=="$"}function Io(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ko(e,t){return Io(e)===Io(t)}function No(e,t){return j(t)?t.findIndex(n=>ko(n,e)):q(t)&&ko(t,e)?0:-1}const Sc=e=>e[0]==="_"||e==="$stable",Kr=e=>j(e)?e.map(Je):[Je(e)],su=(e,t,n)=>{if(t._n)return t;const s=Ta((...r)=>Kr(t(...r)),n);return s._c=!1,s},Rc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Sc(r))continue;const o=e[r];if(q(o))t[r]=su(r,o,s);else if(o!=null){const i=Kr(o);t[r]=()=>i}}},Oc=(e,t)=>{const n=Kr(t);e.slots.default=()=>n},ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),cs(t,"_",n)):Rc(t,e.slots={})}else e.slots={},t&&Oc(e,t);cs(e.slots,ks,1)},ou=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(xe(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Rc(t,r)),i=t}else t&&(Oc(e,t),i={default:1});if(o)for(const c in r)!Sc(c)&&!(c in i)&&delete r[c]};function Cc(){return{app:null,config:{isNativeTag:Dl,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 iu=0;function cu(e,t){return function(s,r=null){q(s)||(s=Object.assign({},s)),r!=null&&!re(r)&&(r=null);const o=Cc(),i=new Set;let c=!1;const l=o.app={_uid:iu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Cu,get config(){return o.config},set config(a){},use(a,...u){return i.has(a)||(a&&q(a.install)?(i.add(a),a.install(l,...u)):q(a)&&(i.add(a),a(l,...u))),l},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),l},component(a,u){return u?(o.components[a]=u,l):o.components[a]},directive(a,u){return u?(o.directives[a]=u,l):o.directives[a]},mount(a,u,d){if(!c){const p=W(s,r);return p.appContext=o,u&&t?t(p,a):e(p,a,d),c=!0,l._container=a,a.__vue_app__=l,Ns(p.component)||p.component.proxy}},unmount(){c&&(e(null,l._container),delete l._container.__vue_app__)},provide(a,u){return o.provides[a]=u,l}};return l}}function dr(e,t,n,s,r=!1){if(j(e)){e.forEach((p,m)=>dr(p,t&&(j(t)?t[m]:t),n,s,r));return}if(Qn(s)&&!r)return;const o=s.shapeFlag&4?Ns(s.component)||s.component.proxy:s.el,i=r?null:o,{i:c,r:l}=e,a=t&&t.r,u=c.refs===oe?c.refs={}:c.refs,d=c.setupState;if(a!=null&&a!==l&&(fe(a)?(u[a]=null,X(d,a)&&(d[a]=null)):be(a)&&(a.value=null)),q(l))pt(l,c,12,[i,u]);else{const p=fe(l),m=be(l);if(p||m){const g=()=>{if(e.f){const w=p?X(d,l)?d[l]:u[l]:l.value;r?j(w)&&Ir(w,o):j(w)?w.includes(o)||w.push(o):p?(u[l]=[o],X(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,X(d,l)&&(d[l]=i)):m&&(l.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,Re(g,n)):g()}}}const Re=Fa;function lu(e){return au(e)}function au(e,t){const n=Kl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:m=je,insertStaticContent:g}=e,w=(f,h,y,b=null,E=null,C=null,I=!1,S=null,P=!!h.dynamicChildren)=>{if(f===h)return;f&&!on(f,h)&&(b=T(f),Se(f,E,C,!0),f=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:x,ref:$,shapeFlag:L}=h;switch(x){case Is:A(f,h,y,b);break;case It:R(f,h,y,b);break;case Yn:f==null&&N(h,y,b,I);break;case pe:qe(f,h,y,b,E,C,I,S,P);break;default:L&1?le(f,h,y,b,E,C,I,S,P):L&6?Ft(f,h,y,b,E,C,I,S,P):(L&64||L&128)&&x.process(f,h,y,b,E,C,I,S,P,Q)}$!=null&&E&&dr($,f&&f.ref,C,h||f,!h)},A=(f,h,y,b)=>{if(f==null)s(h.el=c(h.children),y,b);else{const E=h.el=f.el;h.children!==f.children&&a(E,h.children)}},R=(f,h,y,b)=>{f==null?s(h.el=l(h.children||""),y,b):h.el=f.el},N=(f,h,y,b)=>{[f.el,f.anchor]=g(f.children,h,y,b,f.el,f.anchor)},M=({el:f,anchor:h},y,b)=>{let E;for(;f&&f!==h;)E=p(f),s(f,y,b),f=E;s(h,y,b)},J=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=p(f),r(f),f=y;r(h)},le=(f,h,y,b,E,C,I,S,P)=>{I=I||h.type==="svg",f==null?K(h,y,b,E,C,I,S,P):ke(f,h,E,C,I,S,P)},K=(f,h,y,b,E,C,I,S)=>{let P,x;const{type:$,props:L,shapeFlag:D,transition:B,dirs:V}=f;if(P=f.el=i(f.type,C,L&&L.is,L),D&8?u(P,f.children):D&16&&we(f.children,P,null,b,E,C&&$!=="foreignObject",I,S),V&&bt(f,null,b,"created"),L){for(const te in L)te!=="value"&&!Vn(te)&&o(P,te,null,L[te],C,f.children,b,E,k);"value"in L&&o(P,"value",null,L.value),(x=L.onVnodeBeforeMount)&&ze(x,b,f)}ie(P,f,f.scopeId,I,b),V&&bt(f,null,b,"beforeMount");const se=(!E||E&&!E.pendingBranch)&&B&&!B.persisted;se&&B.beforeEnter(P),s(P,h,y),((x=L&&L.onVnodeMounted)||se||V)&&Re(()=>{x&&ze(x,b,f),se&&B.enter(P),V&&bt(f,null,b,"mounted")},E)},ie=(f,h,y,b,E)=>{if(y&&m(f,y),b)for(let C=0;C{for(let x=P;x{const S=h.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=h;P|=f.patchFlag&16;const L=f.props||oe,D=h.props||oe;let B;y&&wt(y,!1),(B=D.onVnodeBeforeUpdate)&&ze(B,y,h,f),$&&bt(h,f,y,"beforeUpdate"),y&&wt(y,!0);const V=E&&h.type!=="foreignObject";if(x?he(f.dynamicChildren,x,S,y,b,V,C):I||ee(f,h,S,null,y,b,V,C,!1),P>0){if(P&16)ot(S,h,L,D,y,b,E);else if(P&2&&L.class!==D.class&&o(S,"class",null,D.class,E),P&4&&o(S,"style",L.style,D.style,E),P&8){const se=h.dynamicProps;for(let te=0;te{B&&ze(B,y,h,f),$&&bt(h,f,y,"updated")},b)},he=(f,h,y,b,E,C,I)=>{for(let S=0;S{if(y!==b){if(y!==oe)for(const S in y)!Vn(S)&&!(S in b)&&o(f,S,y[S],null,I,h.children,E,C,k);for(const S in b){if(Vn(S))continue;const P=b[S],x=y[S];P!==x&&S!=="value"&&o(f,S,x,P,I,h.children,E,C,k)}"value"in b&&o(f,"value",y.value,b.value)}},qe=(f,h,y,b,E,C,I,S,P)=>{const x=h.el=f?f.el:c(""),$=h.anchor=f?f.anchor:c("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=h;B&&(S=S?S.concat(B):B),f==null?(s(x,y,b),s($,y,b),we(h.children,y,$,E,C,I,S,P)):L>0&&L&64&&D&&f.dynamicChildren?(he(f.dynamicChildren,D,y,E,C,I,S),(h.key!=null||E&&h===E.subTree)&&Ac(f,h,!0)):ee(f,h,y,$,E,C,I,S,P)},Ft=(f,h,y,b,E,C,I,S,P)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?E.ctx.activate(h,y,b,I,P):yt(h,y,b,E,C,I,P):sn(f,h,P)},yt=(f,h,y,b,E,C,I)=>{const S=f.component=_u(f,b,E);if(mc(f)&&(S.ctx.renderer=Q),bu(S),S.asyncDep){if(E&&E.registerDep(S,ae),!f.el){const P=S.subTree=W(It);R(null,P,h,y)}return}ae(S,f,h,y,E,C,I)},sn=(f,h,y)=>{const b=h.component=f.component;if(Na(f,h,y))if(b.asyncDep&&!b.asyncResolved){ne(b,h,y);return}else b.next=h,Oa(b.update),b.update();else h.el=f.el,b.vnode=h},ae=(f,h,y,b,E,C,I)=>{const S=()=>{if(f.isMounted){let{next:$,bu:L,u:D,parent:B,vnode:V}=f,se=$,te;wt(f,!1),$?($.el=V.el,ne(f,$,I)):$=V,L&&Wn(L),(te=$.props&&$.props.onVnodeBeforeUpdate)&&ze(te,B,$,V),wt(f,!0);const ue=Ks(f),Me=f.subTree;f.subTree=ue,w(Me,ue,d(Me.el),T(Me),f,E,C),$.el=ue.el,se===null&&La(f,ue.el),D&&Re(D,E),(te=$.props&&$.props.onVnodeUpdated)&&Re(()=>ze(te,B,$,V),E)}else{let $;const{el:L,props:D}=h,{bm:B,m:V,parent:se}=f,te=Qn(h);if(wt(f,!1),B&&Wn(B),!te&&($=D&&D.onVnodeBeforeMount)&&ze($,se,h),wt(f,!0),L&&z){const ue=()=>{f.subTree=Ks(f),z(L,f.subTree,f,E,null)};te?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ue()):ue()}else{const ue=f.subTree=Ks(f);w(null,ue,y,b,f,E,C),h.el=ue.el}if(V&&Re(V,E),!te&&($=D&&D.onVnodeMounted)){const ue=h;Re(()=>ze($,se,ue),E)}(h.shapeFlag&256||se&&Qn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Re(f.a,E),f.isMounted=!0,h=y=b=null}},P=f.effect=new Lr(S,()=>Br(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,wt(f,!0),x()},ne=(f,h,y)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,nu(f,h.props,b,y),ou(f,h.children,y),Gt(),Ro(),Zt()},ee=(f,h,y,b,E,C,I,S,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,L=h.children,{patchFlag:D,shapeFlag:B}=h;if(D>0){if(D&128){_t(x,L,y,b,E,C,I,S,P);return}else if(D&256){Ne(x,L,y,b,E,C,I,S,P);return}}B&8?($&16&&k(x,E,C),L!==x&&u(y,L)):$&16?B&16?_t(x,L,y,b,E,C,I,S,P):k(x,E,C,!0):($&8&&u(y,""),B&16&&we(L,y,b,E,C,I,S,P))},Ne=(f,h,y,b,E,C,I,S,P)=>{f=f||Bt,h=h||Bt;const x=f.length,$=h.length,L=Math.min(x,$);let D;for(D=0;D$?k(f,E,C,!0,!1,L):we(h,y,b,E,C,I,S,P,L)},_t=(f,h,y,b,E,C,I,S,P)=>{let x=0;const $=h.length;let L=f.length-1,D=$-1;for(;x<=L&&x<=D;){const B=f[x],V=h[x]=P?ut(h[x]):Je(h[x]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;x++}for(;x<=L&&x<=D;){const B=f[L],V=h[D]=P?ut(h[D]):Je(h[D]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;L--,D--}if(x>L){if(x<=D){const B=D+1,V=B<$?h[B].el:b;for(;x<=D;)w(null,h[x]=P?ut(h[x]):Je(h[x]),y,V,E,C,I,S,P),x++}}else if(x>D)for(;x<=L;)Se(f[x],E,C,!0),x++;else{const B=x,V=x,se=new Map;for(x=V;x<=D;x++){const Oe=h[x]=P?ut(h[x]):Je(h[x]);Oe.key!=null&&se.set(Oe.key,x)}let te,ue=0;const Me=D-V+1;let Dt=!1,ho=0;const rn=new Array(Me);for(x=0;x=Me){Se(Oe,E,C,!0);continue}let Ke;if(Oe.key!=null)Ke=se.get(Oe.key);else for(te=V;te<=D;te++)if(rn[te-V]===0&&on(Oe,h[te])){Ke=te;break}Ke===void 0?Se(Oe,E,C,!0):(rn[Ke-V]=x+1,Ke>=ho?ho=Ke:Dt=!0,w(Oe,h[Ke],y,null,E,C,I,S,P),ue++)}const po=Dt?uu(rn):Bt;for(te=po.length-1,x=Me-1;x>=0;x--){const Oe=V+x,Ke=h[Oe],mo=Oe+1<$?h[Oe+1].el:b;rn[x]===0?w(null,Ke,y,mo,E,C,I,S,P):Dt&&(te<0||x!==po[te]?Le(Ke,y,mo,2):te--)}}},Le=(f,h,y,b,E=null)=>{const{el:C,type:I,transition:S,children:P,shapeFlag:x}=f;if(x&6){Le(f.component.subTree,h,y,b);return}if(x&128){f.suspense.move(h,y,b);return}if(x&64){I.move(f,h,y,Q);return}if(I===pe){s(C,h,y);for(let L=0;LS.enter(C),E);else{const{leave:L,delayLeave:D,afterLeave:B}=S,V=()=>s(C,h,y),se=()=>{L(C,()=>{V(),B&&B()})};D?D(C,V,se):se()}else s(C,h,y)},Se=(f,h,y,b=!1,E=!1)=>{const{type:C,props:I,ref:S,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:L,dirs:D}=f;if(S!=null&&dr(S,null,y,f,!0),$&256){h.ctx.deactivate(f);return}const B=$&1&&D,V=!Qn(f);let se;if(V&&(se=I&&I.onVnodeBeforeUnmount)&&ze(se,h,f),$&6)v(f.component,y,b);else{if($&128){f.suspense.unmount(y,b);return}B&&bt(f,null,h,"beforeUnmount"),$&64?f.type.remove(f,h,y,E,Q,b):x&&(C!==pe||L>0&&L&64)?k(x,h,y,!1,!0):(C===pe&&L&384||!E&&$&16)&&k(P,h,y),b&&$t(f)}(V&&(se=I&&I.onVnodeUnmounted)||B)&&Re(()=>{se&&ze(se,h,f),B&&bt(f,null,h,"unmounted")},y)},$t=f=>{const{type:h,el:y,anchor:b,transition:E}=f;if(h===pe){Mn(y,b);return}if(h===Yn){J(f);return}const C=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:S}=E,P=()=>I(y,C);S?S(f.el,C,P):P()}else C()},Mn=(f,h)=>{let y;for(;f!==h;)y=p(f),r(f),f=y;r(h)},v=(f,h,y)=>{const{bum:b,scope:E,update:C,subTree:I,um:S}=f;b&&Wn(b),E.stop(),C&&(C.active=!1,Se(I,f,h,y)),S&&Re(S,h),Re(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},k=(f,h,y,b=!1,E=!1,C=0)=>{for(let I=C;If.shapeFlag&6?T(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),F=(f,h,y)=>{f==null?h._vnode&&Se(h._vnode,null,null,!0):w(h._vnode||null,f,h,null,null,null,y),Ro(),lc(),h._vnode=f},Q={p:w,um:Se,m:Le,r:$t,mt:yt,mc:we,pc:ee,pbc:he,n:T,o:e};let ce,z;return t&&([ce,z]=t(Q)),{render:F,hydrate:ce,createApp:cu(F,ce)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ac(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const fu=e=>e.__isTeleport,pe=Symbol(void 0),Is=Symbol(void 0),It=Symbol(void 0),Yn=Symbol(void 0),pn=[];let De=null;function U(e=!1){pn.push(De=e?null:[])}function du(){pn.pop(),De=pn[pn.length-1]||null}let Sn=1;function Lo(e){Sn+=e}function Pc(e){return e.dynamicChildren=Sn>0?De||Bt:null,du(),Sn>0&&De&&De.push(e),e}function H(e,t,n,s,r,o){return Pc(O(e,t,n,s,r,o,!0))}function fs(e,t,n,s,r){return Pc(W(e,t,n,s,r,!0))}function hr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ks="__vInternal",Tc=({key:e})=>e??null,Gn=({ref:e,ref_key:t,ref_for:n})=>e!=null?fe(e)||be(e)||q(e)?{i:Ie,r:e,k:t,f:!!n}:e:null;function O(e,t=null,n=null,s=0,r=null,o=e===pe?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tc(t),ref:t&&Gn(t),scopeId:As,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return c?(zr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=fe(n)?8:16),Sn>0&&!i&&De&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&De.push(l),l}const W=hu;function hu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Wa)&&(e=It),hr(e)){const c=Wt(e,t,!0);return n&&zr(c,n),Sn>0&&!o&&De&&(c.shapeFlag&6?De[De.indexOf(e)]=c:De.push(c)),c.patchFlag|=-2,c}if(Su(e)&&(e=e.__vccOpts),t){t=pu(t);let{class:c,style:l}=t;c&&!fe(c)&&(t.class=bs(c)),re(l)&&(Gi(l)&&!j(l)&&(l=xe({},l)),t.style=_s(l))}const i=fe(e)?1:Ma(e)?128:fu(e)?64:re(e)?4:q(e)?2:0;return O(e,t,n,s,r,i,o,!0)}function pu(e){return e?Gi(e)||ks in e?xe({},e):e:null}function Wt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,c=t?mu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Tc(c),ref:t&&t.ref?n&&r?j(r)?r.concat(Gn(t)):[r,Gn(t)]:Gn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?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&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function me(e=" ",t=0){return W(Is,null,e,t)}function Ic(e,t){const n=W(Yn,null,e);return n.staticCount=t,n}function dt(e="",t=!1){return t?(U(),fs(It,null,e)):W(It,null,e)}function Je(e){return e==null||typeof e=="boolean"?W(It):j(e)?W(pe,null,e.slice()):typeof e=="object"?ut(e):W(Is,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ks in t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mu(...e){const t={};for(let n=0;n{ye=e,e.scope.on()},Tt=()=>{ye&&ye.scope.off(),ye=null};function kc(e){return e.vnode.shapeFlag&4}let Rn=!1;function bu(e,t=!1){Rn=t;const{props:n,children:s}=e.vnode,r=kc(e);tu(e,n,r,t),ru(e,s);const o=r?wu(e,t):void 0;return Rn=!1,o}function wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Zi(new Proxy(e.ctx,Qa));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Eu(e):null;Jt(e),Gt();const o=pt(s,e,0,[e.props,r]);if(Zt(),Tt(),Di(o)){if(o.then(Tt,Tt),t)return o.then(i=>{Mo(e,i,t)}).catch(i=>{Os(i,e,0)});e.asyncDep=o}else Mo(e,o,t)}else Nc(e,t)}function Mo(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=sc(t)),Nc(e,n)}let Fo;function Nc(e,t,n){const s=e.type;if(!e.render){if(!t&&Fo&&!s.render){const r=s.template||qr(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:l}=s,a=xe(xe({isCustomElement:o,delimiters:c},i),l);s.render=Fo(r,a)}}e.render=s.render||je}Jt(e),Gt(),Xa(e),Zt(),Tt()}function vu(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function Eu(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=vu(e))},slots:e.slots,emit:e.emit,expose:t}}function Ns(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sc(Zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function xu(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Su(e){return q(e)&&"__vccOpts"in e}const Te=(e,t)=>xa(e,t,Rn);function ds(e,t,n){const s=arguments.length;return s===2?re(t)&&!j(t)?hr(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hr(n)&&(n=[n]),W(e,t,n))}const Ru=Symbol(""),Ou=()=>Ye(Ru),Cu="3.2.45",Au="http://www.w3.org/2000/svg",Rt=typeof document<"u"?document:null,$o=Rt&&Rt.createElement("template"),Pu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Rt.createElementNS(Au,e):Rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{$o.innerHTML=s?`${e}`:e;const c=$o.content;if(s){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Tu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Iu(e,t,n){const s=e.style,r=fe(n);if(n&&!r){for(const o in n)pr(s,o,n[o]);if(t&&!fe(t))for(const o in t)n[o]==null&&pr(s,o,"")}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Do=/\s*!important$/;function pr(e,t,n){if(j(n))n.forEach(s=>pr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ku(e,t);Do.test(n)?e.setProperty(Lt(s),n.replace(Do,""),"important"):e[s]=n}}const jo=["Webkit","Moz","ms"],Vs={};function ku(e,t){const n=Vs[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return Vs[t]=s;s=Ss(s);for(let r=0;rWs||(Du.then(()=>Ws=0),Ws=Date.now());function Uu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(Bu(s,n.value),t,5,[s])};return n.value=e,n.attached=ju(),n}function Bu(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ho=/^on[a-z]/,Hu=(e,t,n,s,r=!1,o,i,c,l)=>{t==="class"?Tu(e,s,r):t==="style"?Iu(e,n,s):vs(t)?Tr(t)||Fu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qu(e,t,s,r))?Lu(e,t,s,o,i,c,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nu(e,t,s,r))};function qu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ho.test(t)&&q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ho.test(t)&&fe(n)?!1:t in e}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Wn(t,n):t};function Ku(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=hs(r);const o=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=wn(c)),e._assign(c)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",Ku),Ot(e,"compositionend",qo),Ot(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=hs(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&wn(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Js={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Es(t);Ot(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?wn(ps(i)):ps(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=hs(s)},mounted(e,{value:t}){Ko(e,t)},beforeUpdate(e,t,n){e._assign=hs(n)},updated(e,{value:t}){Ko(e,t)}};function Ko(e,t){const n=e.multiple;if(!(n&&!j(t)&&!Es(t))){for(let s=0,r=e.options.length;s-1:o.selected=t.has(i);else if(ws(ps(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}const Vu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wu=(e,t)=>n=>{if(!("key"in n))return;const s=Lt(n.key);if(t.some(r=>r===s||Vu[r]===s))return e(n)},Ju=xe({patchProp:Hu},Pu);let zo;function Qu(){return zo||(zo=lu(Ju))}const Xu=(...e)=>{const t=Qu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Yu(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Yu(e){return fe(e)?document.querySelector(e):e}const Vr="/assets/spotdl-5dcb64c0.svg",He=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gu={components:{},setup(){return{}}},Zu={class:"p-10 footer bg-neutral text-neutral-content"},ef=O("div",null,[O("img",{src:Vr,width:"50",height:"50",viewBox:"0 0 24 24"}),O("p",null,[me("spotDL"),O("br"),me("Open Source Music Downloader")])],-1),tf=Ic('
Social
',1),nf=[ef,tf];function sf(e,t,n,s,r,o){return U(),H("footer",Zu,nf)}const rf=He(Gu,[["render",sf]]);function Lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:Wr}=Object,Jr=(e=>t=>{const n=Mc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Ls=e=>t=>typeof t===e,{isArray:en}=Array,On=Ls("undefined");function of(e){return e!==null&&!On(e)&&e.constructor!==null&&!On(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fc=rt("ArrayBuffer");function cf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fc(e.buffer),t}const lf=Ls("string"),kt=Ls("function"),$c=Ls("number"),Qr=e=>e!==null&&typeof e=="object",af=e=>e===!0||e===!1,Zn=e=>{if(Jr(e)!=="object")return!1;const t=Wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uf=rt("Date"),ff=rt("File"),df=rt("Blob"),hf=rt("FileList"),pf=e=>Qr(e)&&kt(e.pipe),mf=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mc.call(e)===t||kt(e.toString)&&e.toString()===t)},gf=rt("URLSearchParams"),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),en(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const jc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!On(e)&&e!==jc;function mr(){const{caseless:e}=Uc(this)&&this||{},t={},n=(s,r)=>{const o=e&&Dc(t,r)||r;Zn(t[o])&&Zn(s)?t[o]=mr(t[o],s):Zn(s)?t[o]=mr({},s):en(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(kn(t,(r,o)=>{n&&kt(r)?e[o]=Lc(r,n):e[o]=r},{allOwnKeys:s}),e),bf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wf=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vf=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ef=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},xf=e=>{if(!e)return null;if(en(e))return e;let t=e.length;if(!$c(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wr(Uint8Array)),Rf=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Of=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Cf=rt("HTMLFormElement"),Af=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Vo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pf=rt("RegExp"),Bc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};kn(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},Tf=e=>{Bc(e,(t,n)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(kt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},If=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return en(e)?s(e):s(String(e).split(t)),n},kf=()=>{},Nf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Lf=e=>{const t=new Array(10),n=(s,r)=>{if(Qr(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=en(s)?[]:{};return kn(s,(i,c)=>{const l=n(i,r+1);!On(l)&&(o[c]=l)}),t[r]=void 0,o}}return s};return n(e,0)},_={isArray:en,isArrayBuffer:Fc,isBuffer:of,isFormData:mf,isArrayBufferView:cf,isString:lf,isNumber:$c,isBoolean:af,isObject:Qr,isPlainObject:Zn,isUndefined:On,isDate:uf,isFile:ff,isBlob:df,isRegExp:Pf,isFunction:kt,isStream:pf,isURLSearchParams:gf,isTypedArray:Sf,isFileList:hf,forEach:kn,merge:mr,extend:_f,trim:yf,stripBOM:bf,inherits:wf,toFlatObject:vf,kindOf:Jr,kindOfTest:rt,endsWith:Ef,toArray:xf,forEachEntry:Rf,matchAll:Of,isHTMLForm:Cf,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Bc,freezeMethods:Tf,toObjectSet:If,toCamelCase:Af,noop:kf,toFiniteNumber:Nf,findKey:Dc,global:jc,isContextDefined:Uc,toJSONObject:Lf};function Y(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}_.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hc=Y.prototype,qc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qc[e]={value:e}});Object.defineProperties(Y,qc);Object.defineProperty(Hc,"isAxiosError",{value:!0});Y.from=(e,t,n,s,r,o)=>{const i=Object.create(Hc);return _.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),Y.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var Mf=typeof self=="object"?self.FormData:window.FormData;const Ff=Mf;function gr(e){return _.isPlainObject(e)||_.isArray(e)}function Kc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Wo(e,t,n){return e?e.concat(t).map(function(r,o){return r=Kc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function $f(e){return _.isArray(e)&&!e.some(gr)}const Df=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e){return e&&_.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ms(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new(Ff||FormData),n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,A){return!_.isUndefined(A[w])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&jf(t);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!l&&_.isBlob(g))throw new Y("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,w,A){let R=g;if(g&&!A&&typeof g=="object"){if(_.endsWith(w,"{}"))w=s?w:w.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&$f(g)||_.isFileList(g)||_.endsWith(w,"[]")&&(R=_.toArray(g)))return w=Kc(w),R.forEach(function(M,J){!(_.isUndefined(M)||M===null)&&t.append(i===!0?Wo([w],J,o):i===null?w:w+"[]",a(M))}),!1}return gr(g)?!0:(t.append(Wo(A,w,o),a(g)),!1)}const d=[],p=Object.assign(Df,{defaultVisitor:u,convertValue:a,isVisitable:gr});function m(g,w){if(!_.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(g),_.forEach(g,function(R,N){(!(_.isUndefined(R)||R===null)&&r.call(t,R,_.isString(N)?N.trim():N,w,p))===!0&&m(R,w?w.concat(N):[N])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Jo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Xr(e,t){this._pairs=[],e&&Ms(e,this,t)}const zc=Xr.prototype;zc.append=function(t,n){this._pairs.push([t,n])};zc.toString=function(t){const n=t?function(s){return t.call(this,s,Jo)}:Jo;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Uf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vc(e,t,n){if(!t)return e;const s=n&&n.encode||Uf,r=n&&n.serialize;let o;if(r?o=r(t,n):o=_.isURLSearchParams(t)?t.toString():new Xr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qo=Bf,Wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hf=typeof URLSearchParams<"u"?URLSearchParams:Xr,qf=FormData,Kf=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zf=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xe={isBrowser:!0,classes:{URLSearchParams:Hf,FormData:qf,Blob},isStandardBrowserEnv:Kf,isStandardBrowserWebWorkerEnv:zf,protocols:["http","https","file","blob","url","data"]};function Vf(e,t){return Ms(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Xe.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Wf(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jf(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&_.isArray(r)?r.length:i,l?(_.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!c):((!r[i]||!_.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&_.isArray(r[i])&&(r[i]=Jf(r[i])),!c)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,r)=>{t(Wf(s),r,n,0)}),n}return null}const Qf={"Content-Type":void 0};function Xf(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Fs={transitional:Wc,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r&&r?JSON.stringify(Jc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Vf(t,this.formSerializer).toString();if((c=_.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ms(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Xf(t)):t}],transformResponse:[function(t){const n=this.transitional||Fs.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&_.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?Y.from(c,Y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(t){Fs.headers[t]={}});_.forEach(["post","put","patch"],function(t){Fs.headers[t]=_.merge(Qf)});const Yr=Fs,Yf=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gf=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Yf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Xo=Symbol("internals");function cn(e){return e&&String(e).trim().toLowerCase()}function es(e){return e===!1||e==null?e:_.isArray(e)?e.map(es):String(e)}function Zf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function ed(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Yo(e,t,n,s){if(_.isFunction(s))return s.call(this,t,n);if(_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function nd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class $s{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,l,a){const u=cn(l);if(!u)throw new Error("header name must be a non-empty string");const d=_.findKey(r,u);(!d||r[d]===void 0||a===!0||a===void 0&&r[d]!==!1)&&(r[d||l]=es(c))}const i=(c,l)=>_.forEach(c,(a,u)=>o(a,u,l));return _.isPlainObject(t)||t instanceof this.constructor?i(t,n):_.isString(t)&&(t=t.trim())&&!ed(t)?i(Gf(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=cn(t),t){const s=_.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Zf(r);if(_.isFunction(n))return n.call(this,r,s);if(_.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cn(t),t){const s=_.findKey(this,t);return!!(s&&(!n||Yo(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=cn(i),i){const c=_.findKey(s,i);c&&(!n||Yo(s,s[c],c,n))&&(delete s[c],r=!0)}}return _.isArray(t)?t.forEach(o):o(t),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return _.forEach(this,(r,o)=>{const i=_.findKey(s,o);if(i){n[i]=es(r),delete n[o];return}const c=t?td(o):String(o).trim();c!==o&&delete n[o],n[c]=es(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&_.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Xo]=this[Xo]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=cn(i);s[c]||(nd(r,i),s[c]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}$s.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);_.freezeMethods($s.prototype);_.freezeMethods($s);const tt=$s;function Qs(e,t){const n=this||Yr,s=t||n,r=tt.from(s.headers);let o=s.data;return _.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Qc(e){return!!(e&&e.__CANCEL__)}function Nn(e,t,n){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Nn,Y,{__CANCEL__:!0});const sd=null;function rd(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const od=Xe.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,c){const l=[];l.push(n+"="+encodeURIComponent(s)),_.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),_.isString(o)&&l.push("path="+o),_.isString(i)&&l.push("domain="+i),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cd(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Xc(e,t){return e&&!id(t)?cd(e,t):t}const ld=Xe.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const c=_.isString(i)?r(i):i;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ud(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const a=Date.now(),u=s[o];i||(i=a),n[r]=l,s[r]=a;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,c=o-n,l=s(c),a=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&a?(i-o)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const fd=typeof XMLHttpRequest<"u",dd=fd&&function(e){return new Promise(function(n,s){let r=e.data;const o=tt.from(e.headers).normalize(),i=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}_.isFormData(r)&&(Xe.isStandardBrowserEnv||Xe.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let a=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const u=Xc(e.baseURL,e.url);a.open(e.method.toUpperCase(),Vc(u,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const m=tt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};rd(function(R){n(R),l()},function(R){s(R),l()},w),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new Y("Request aborted",Y.ECONNABORTED,e,a)),a=null)},a.onerror=function(){s(new Y("Network Error",Y.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Wc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new Y(g,w.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,a)),a=null},Xe.isStandardBrowserEnv){const m=(e.withCredentials||ld(u))&&e.xsrfCookieName&&od.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in a&&_.forEach(o.toJSON(),function(g,w){a.setRequestHeader(w,g)}),_.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Go(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Go(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{a&&(s(!m||m.type?new Nn(null,e,a):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const p=ad(u);if(p&&Xe.protocols.indexOf(p)===-1){s(new Y("Unsupported protocol "+p+":",Y.ERR_BAD_REQUEST,e));return}a.send(r||null)})},ts={http:sd,xhr:dd};_.forEach(ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hd={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof tt?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function s(a,u,d){return _.isPlainObject(a)&&_.isPlainObject(u)?_.merge.call({caseless:d},a,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(a,u,d){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a,d)}else return s(a,u,d)}function o(a,u){if(!_.isUndefined(u))return s(void 0,u)}function i(a,u){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function c(a,u,d){if(d in t)return s(a,u);if(d in e)return s(void 0,a)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(a,u)=>r(ei(a),ei(u),!0)};return _.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||r,p=d(e[u],t[u],u);_.isUndefined(p)&&d!==c||(n[u]=p)}),n}const Yc="1.2.5",Gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ti={};Gr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Yc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new Y(r(i," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!ti[i]&&(ti[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function pd(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Y("option "+o+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const yr={assertOptions:pd,validators:Gr},ct=yr.validators;class ms{constructor(t){this.defaults=t,this.interceptors={request:new Qo,response:new Qo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&yr.assertOptions(s,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),r!==void 0&&yr.assertOptions(r,{encode:ct.function,serialize:ct.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&_.merge(o.common,o[n.method]),i&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=tt.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,c.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let u,d=0,p;if(!l){const g=[Zo.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,a),p=g.length,u=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new Nn(o,i,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Zr(function(r){t=r}),cancel:t}}}const md=Zr;function gd(e){return function(n){return e.apply(null,n)}}function yd(e){return _.isObject(e)&&e.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([e,t])=>{_r[t]=e});const _d=_r;function Gc(e){const t=new ns(e),n=Lc(ns.prototype.request,t);return _.extend(n,ns.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Gc(Qt(e,r))},n}const de=Gc(Yr);de.Axios=ns;de.CanceledError=Nn;de.CancelToken=md;de.isCancel=Qc;de.VERSION=Yc;de.toFormData=Ms;de.AxiosError=Y;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=gd;de.isAxiosError=yd;de.mergeConfig=Qt;de.AxiosHeaders=tt;de.formToJSON=e=>Jc(_.isHTMLForm(e)?new FormData(e):e);de.HttpStatusCode=_d;de.default=de;const bd=de,$e={PROTOCOL:{}.PROTOCOL||window.location.protocol,WS_PROTOCOL:{}.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:{}.BACKEND||window.location.hostname,PORT:{}.PORT||window.location.port,WS_PORT:{}.WS_PORT||window.location.port,BASEURL:{}.BASEURL||""};let Hn;const wd=new Uint8Array(16);function vd(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(wd)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function Ed(e,t=0){return(ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]).toLowerCase()}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:xd};function Sd(e,t,n){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};const s=e.random||(e.rng||vd)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=s[r];return t}return Ed(s)}console.log("using env:",{});console.log("using config: ",$e);const Mt=bd.create({baseURL:`${$e.PROTOCOL}//${$e.BACKEND}:${$e.PORT}${$e.BASEURL}`}),tn=Sd();console.log("session ID: ",tn);const eo=new WebSocket(`${$e.WS_PROTOCOL}//${$e.BACKEND}${$e.PORT!==""?":"+$e.PORT:""}${$e.BASEURL}/api/ws?client_id=${tn}`);eo.onopen=e=>{console.log("websocket connection opened",e)};function Rd(e){return Mt.get("/api/songs/search",{params:{query:e}})}function Od(e){return Mt.get("/api/song/url",{params:{url:e}})}function Cd(e){return Mt.post("/api/download/url",null,{params:{url:e,client_id:tn}})}function Ad(){return Mt.get("/api/check_update")}function Pd(e){return Mt.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(tn)}function Td(){return Mt.get("/api/settings",{params:{client_id:tn}})}function Id(e){return Mt.post("/api/settings/update",e,{params:{client_id:tn}})}function kd(e){return eo.onmessage=e}function Nd(e){return eo.onerror=e}const mt={search:Rd,open:Od,download:Cd,downloadFileURL:Pd,getSettings:Td,setSettings:Id,check_for_update:Ad,ws_onmessage:kd,ws_onerror:Nd},ss=Pe({audio_providers:[""],lyrics_providers:[""]}),Ld={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};mt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),ss.value=e.data):console.log("Error loading settings")});function Md(){const e=Pe();function t(){console.log("Saving settings:",ss.value),mt.setSettings(ss.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.log("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:ss,settingsOptions:Ld,isSaved:e}}const mn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ds=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:s,prefix:l,name:c};return t&&!rs(a)?null:a}const o=r[0],i=o.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!rs(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:o};return t&&!rs(c,n)?null:c}return null},rs=(e,t)=>e?!!((e.provider===""||e.provider.match(mn))&&(t&&e.prefix===""||e.prefix.match(mn))&&e.name.match(mn)):!1,Zc=Object.freeze({left:0,top:0,width:16,height:16}),gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),js=Object.freeze({...Zc,...gs}),br=Object.freeze({...js,body:"",hidden:!1});function Fd(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function si(e,t){const n=Fd(e,t);for(const s in br)s in gs?s in e&&!(s in n)&&(n[s]=gs[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function $d(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=s[i]&&s[i].parent,l=c&&o(c);l&&(r[i]=[c].concat(l))}return r[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(o),r}function Dd(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(c){o=si(s[c]||r[c],o)}return i(t),n.forEach(i),si(e,o)}function el(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=$d(e);for(const r in s){const o=s[r];o&&(t(r,Dd(e,r,o)),n.push(r))}return n}const jd={provider:"",aliases:{},not_found:{},...Zc};function Ys(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ys(e,jd))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(mn)||typeof o.body!="string"||!Ys(o,br))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(mn)||typeof i!="string"||!n[i]&&!s[i]||!Ys(o,br))return null}return t}const ri=Object.create(null);function Ud(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Nt(e,t){const n=ri[e]||(ri[e]=Object.create(null));return n[t]||(n[t]=Ud(e,t))}function to(e,t){return tl(t)?el(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Bd(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Cn=!1;function nl(e){return typeof e=="boolean"&&(Cn=e),Cn}function Hd(e){const t=typeof e=="string"?Ds(e,!0,Cn):e;if(t){const n=Nt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function qd(e,t){const n=Ds(e,!0,Cn);if(!n)return!1;const s=Nt(n.provider,n.prefix);return Bd(s,n.name,t)}function Kd(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Cn&&!t&&!e.prefix){let r=!1;return tl(e)&&(e.prefix="",el(e,(o,i)=>{i&&qd(o,i)&&(r=!0)})),r}const n=e.prefix;if(!rs({provider:t,prefix:n,name:"a"}))return!1;const s=Nt(t,n);return!!to(s,e)}const sl=Object.freeze({width:null,height:null}),rl=Object.freeze({...sl,...gs}),zd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oi(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(zd);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=Vd.test(o);for(;;){if(i){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function Wd(e,t){const n={...js,...e},s={...rl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(m=>{const g=[],w=m.hFlip,A=m.vFlip;let R=m.rotate;w?A?R+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):A&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let N;switch(R<0&&(R-=Math.floor(R/4)*4),R=R%4,R){case 1:N=r.height/2+r.top,g.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:N=r.width/2+r.left,g.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}R%2===1&&(r.left!==r.top&&(N=r.left,r.left=r.top,r.top=N),r.width!==r.height&&(N=r.width,r.width=r.height,r.height=N)),g.length&&(o=''+o+"")});const i=s.width,c=s.height,l=r.width,a=r.height;let u,d;return i===null?(d=c===null?"1em":c==="auto"?a:c,u=oi(d,l/a)):(u=i==="auto"?l:i,d=c===null?oi(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:d.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString()},body:o}}const Jd=/\sid="(\S+)"/g,Qd="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xd=0;function Yd(e,t=Qd){const n=[];let s;for(;s=Jd.exec(e);)n.push(s[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(Xd++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const wr=Object.create(null);function Gd(e,t){wr[e]=t}function vr(e){return wr[e]||wr[""]}function no(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const so=Object.create(null),ln=["https://api.simplesvg.com","https://api.unisvg.com"],os=[];for(;ln.length>0;)ln.length===1||Math.random()>.5?os.push(ln.shift()):os.push(ln.pop());so[""]=no({resources:["https://api.iconify.design"].concat(os)});function Zd(e,t){const n=no(t);return n===null?!1:(so[e]=n,!0)}function ro(e){return so[e]}const eh=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ii=eh();function th(e,t){const n=ro(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function nh(e){return e===404}const sh=(e,t,n)=>{const s=[],r=th(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),s.push(i),s};function rh(e){if(typeof e=="string"){const t=ro(e);if(t)return t.path}return"/"}const oh=(e,t,n)=>{if(!ii){n("abort",424);return}let s=rh(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});s+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;ii(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(nh(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},ih={prepare:sh,send:oh};function ch(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,c=r.name,l=n[o]||(n[o]=Object.create(null)),a=l[i]||(l[i]=Nt(o,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const d={provider:o,prefix:i,name:c};u.push(d)}),t}function ol(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function lh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:s,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ol([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let ah=0;function uh(e,t,n){const s=ah++,r=ol.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function fh(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?Ds(r,t,n):r;o&&s.push(o)}),s}var dh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function hh(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let K=e.resources.slice(0);for(i=[];K.length>1;){const ie=Math.floor(Math.random()*K.length);i.push(K[ie]),K=K.slice(0,ie).concat(K.slice(ie+1))}i=i.concat(K)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let l="pending",a=0,u,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function g(){d&&(clearTimeout(d),d=null)}function w(){l==="pending"&&(l="aborted"),g(),p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function A(K,ie){ie&&(m=[]),typeof K=="function"&&m.push(K)}function R(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:p.length,subscribe:A,abort:w}}function N(){l="failed",m.forEach(K=>{K(void 0,u)})}function M(){p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function J(K,ie,we){const ke=ie!=="success";switch(p=p.filter(he=>he!==K),l){case"pending":break;case"failed":if(ke||!e.dataAfterTimeout)return;break;default:return}if(ie==="abort"){u=we,N();return}if(ke){u=we,p.length||(i.length?le():N());return}if(g(),M(),!e.random){const he=e.resources.indexOf(K.resource);he!==-1&&he!==e.index&&(e.index=he)}l="completed",m.forEach(he=>{he(we)})}function le(){if(l!=="pending")return;g();const K=i.shift();if(K===void 0){if(p.length){d=setTimeout(()=>{g(),l==="pending"&&(M(),N())},e.timeout);return}N();return}const ie={status:"pending",resource:K,callback:(we,ke)=>{J(ie,we,ke)}};p.push(ie),a++,d=setTimeout(le,e.rotate),n(K,t,ie.callback)}return setTimeout(le),R}function il(e){const t={...dh,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=hh(t,c,l,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function o(c){return n.find(l=>c(l))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ci(){}const Gs=Object.create(null);function ph(e){if(!Gs[e]){const t=ro(e);if(!t)return;const n=il(t),s={config:t,redundancy:n};Gs[e]=s}return Gs[e]}function mh(e,t,n){let s,r;if(typeof e=="string"){const o=vr(e);if(!o)return n(void 0,424),ci;r=o.send;const i=ph(e);i&&(s=i.redundancy)}else{const o=no(e);if(o){s=il(o);const i=e.resources?e.resources[0]:"",c=vr(i);c&&(r=c.send)}}return!s||!r?(n(void 0,424),ci):s.query(t,r,n)().abort}const li="iconify2",An="iconify",cl=An+"-count",ai=An+"-version",ll=36e5,gh=168;function Er(e,t){try{return e.getItem(t)}catch{}}function oo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ui(e,t){try{e.removeItem(t)}catch{}}function xr(e,t){return oo(e,cl,t.toString())}function Sr(e){return parseInt(Er(e,cl))||0}const Us={local:!0,session:!0},al={local:new Set,session:new Set};let io=!1;function yh(e){io=e}let qn=typeof window>"u"?{}:window;function ul(e){const t=e+"Storage";try{if(qn&&qn[t]&&typeof qn[t].length=="number")return qn[t]}catch{}Us[e]=!1}function fl(e,t){const n=ul(e);if(!n)return;const s=Er(n,ai);if(s!==li){if(s){const c=Sr(n);for(let l=0;l{const l=An+c.toString(),a=Er(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}ui(n,l)}};let i=Sr(n);for(let c=i-1;c>=0;c--)o(c)||(c===i-1?(i--,xr(n,i)):al[e].add(c))}function dl(){if(!io){yh(!0);for(const e in Us)fl(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=Nt(s,r);if(!to(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function _h(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in Us)fl(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function bh(e,t){io||dl();function n(s){let r;if(!Us[s]||!(r=ul(s)))return;const o=al[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Sr(r),!xr(r,i+1))return;const c={cached:Math.floor(Date.now()/ll),provider:e.provider,data:t};return oo(r,An+i.toString(),JSON.stringify(c))}t.lastModified&&!_h(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function fi(){}function wh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,lh(e)}))}function vh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=vr(n)))return;o.prepare(n,s,r).forEach(c=>{mh(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=to(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(d=>{u.delete(d)}),bh(e,l)}catch(a){console.error(a)}wh(e)})})}))}const Eh=(e,t)=>{const n=fh(e,!0,nl()),s=ch(n);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,fi)}),()=>{l=!1}}const r=Object.create(null),o=[];let i,c;return s.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,o.push(Nt(a,u));const d=r[a]||(r[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(l=>{const{provider:a,prefix:u,name:d}=l,p=Nt(a,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[a][u].push(d))}),o.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&vh(l,r[a][u])}),t?uh(t,s,o):fi};function xh(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in sl?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Sh=/[\s,]+/;function Rh(e,t){t.split(Sh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Oh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function Ch(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function Ah(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ph(e){return'url("data:image/svg+xml,'+Ah(e)+'")'}const di={...rl,inline:!1},Th={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ih={display:"inline-block"},Rr={backgroundColor:"currentColor"},hl={backgroundColor:"transparent"},hi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},pi={webkitMask:Rr,mask:Rr,background:hl};for(const e in pi){const t=pi[e];for(const n in hi)t[e+n]=hi[n]}const is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";is[e+"-flip"]=t,is[e.slice(0,1)+"-flip"]=t,is[e+"Flip"]=t});function mi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const gi=(e,t)=>{const n=xh(di,t),s={...Th},r=t.mode||"svg",o={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let w in t){const A=t[w];if(A!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[w]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Rh(n,A);break;case"color":o.color=A;break;case"rotate":typeof A=="string"?n[w]=Oh(A):typeof A=="number"&&(n[w]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete s["aria-hidden"];break;default:{const R=is[w];R?(A===!0||A==="true"||A===1)&&(n[R]=!0):di[w]===void 0&&(s[w]=A)}}}const l=Wd(e,n),a=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...c},Object.assign(s,a);let w=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),s.innerHTML=Yd(l.body,A?()=>A+"ID"+w++:"iconifyVue"),ds("svg",s)}const{body:u,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Ch(u,{...a,width:d+"",height:p+""});return s.style={...o,"--svg":Ph(g),width:mi(a.width),height:mi(a.height),...Ih,...m?Rr:hl,...c},ds("span",s)};nl(!0);Gd("",ih);if(typeof document<"u"&&typeof window<"u"){dl();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Kd(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Zd(n,r)||console.error(s)}catch{console.error(s)}}}}const kh={...js,body:""},nn=Hr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Ds(e,!1,!0))===null)return this.abortLoading(),null;const s=Hd(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Eh([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return gi(kh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),gi({...js,...t.data},n)}}),Nh={components:{Icon:nn},setup(){return{sm:Md()}}},Lh=O("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),Mh={class:"modal"},Fh={class:"modal-box relative"},$h=O("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),Dh=O("h3",{class:"font-bold text-lg"},"Download Settings",-1),jh={class:"flex flex-col justify-center my-4"},Uh={class:"form-control w-full"},Bh=O("label",{class:"label"},[O("span",{class:"label-text"},"Audio Provider")],-1),Hh=["selected"],qh={class:"form-control w-full"},Kh=O("label",{class:"label"},[O("span",{class:"label-text"},"Lyrics Provider")],-1),zh=["selected"],Vh={class:"form-control w-full"},Wh=O("label",{class:"label"},[O("span",{class:"label-text"},"Output Format")],-1),Jh=["selected"],Qh={key:0,class:"alert alert-success shadow-lg"},Xh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Changes saved")],-1),Yh=[Xh],Gh={key:1,class:"alert alert-error shadow-lg"},Zh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Error! Unable to save settings")],-1),ep=[Zh],tp={class:"modal-action"};function np(e,t,n,s,r,o){return U(),H(pe,null,[Lh,O("div",Mh,[O("div",Fh,[$h,Dh,O("div",jh,[O("div",Uh,[Bh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[0]||(t[0]=i=>s.sm.settings.value.audio_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.audio_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.audio_providers)==null?void 0:l[0])},Ce(i),9,Hh)}),128))],512),[[Js,s.sm.settings.value.audio_providers[0]]])]),O("div",qh,[Kh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[1]||(t[1]=i=>s.sm.settings.value.lyrics_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.lyrics_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.lyrics_providers)==null?void 0:l[0])},Ce(i),9,zh)}),128))],512),[[Js,s.sm.settings.value.lyrics_providers[0]]])]),O("div",Vh,[Wh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[2]||(t[2]=i=>s.sm.settings.value.format=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.format,(i,c)=>(U(),H("option",{key:c,selected:i===s.sm.settings.value.format},Ce(i),9,Jh))),128))],512),[[Js,s.sm.settings.value.format]])])]),s.sm.isSaved.value===!0?(U(),H("div",Qh,Yh)):dt("",!0),s.sm.isSaved.value===!1?(U(),H("div",Gh,ep)):dt("",!0),O("div",tp,[O("label",{class:"btn",onClick:t[3]||(t[3]=i=>s.sm.saveSettings())},"Save")])])])],64)}const sp=He(Nh,[["render",np]]),Ve=Pe(""),yi=Pe("light"),_i=Pe("dark");function pl({useSystem:e=!0,initialTheme:t="",newLightAlias:n=null,newDarkAlias:s=null}={}){function r(u){yi.value=u,a()}function o(u){_i.value=u,a()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c(u){Ve.value=u,a()}function l(){Ve==="dark"?Ve.value="light":Ve==="light"&&(Ve.value="dark"),a()}function a(){document.documentElement.setAttribute("data-theme",Ve.value==="dark"?_i.value:yi.value)}return Ve.value!=="light"&&Ve.value!=="dark"&&(e&&c(i()),(t==="light"||t==="dark")&&(Ve.value=t)),n&&r(n),s&&o(s),a(),{currentTheme:Ve,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:c,switchTheme:l}}const rp={name:"App",components:{Footer:rf,Settings:sp},setup(){const e=pl();return yc(()=>{e.setLightAlias("emerald"),e.setDarkAlias("forest")}),{themeMgr:e}}},op={class:"bg-base-300 absolute w-full top-0"};function ip(e,t,n,s,r,o){const i=Ee("router-view"),c=Ee("Footer"),l=Ee("Settings");return U(),H("div",op,[W(i),W(c),W(l)])}const cp=He(rp,[["render",ip]]);/*! - * vue-router v4.1.6 - * (c) 2022 Eduardo San Martin Morote - * @license MIT - */const Ut=typeof window<"u";function lp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const gn=()=>{},Be=Array.isArray,ap=/\/$/,up=e=>e.replace(ap,"");function er(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=pp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function fp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dp(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Xt(t.matched[s],n.matched[r])&&ml(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ml(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hp(e[n],t[n]))return!1;return!0}function hp(e,t){return Be(e)?wi(e,t):Be(t)?wi(t,e):e===t}function wi(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var Pn;(function(e){e.pop="pop",e.push="push"})(Pn||(Pn={}));var yn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yn||(yn={}));function mp(e){if(!e)if(Ut){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),up(e)}const gp=/^[^#]+#/;function yp(e,t){return e.replace(gp,"#")+t}function _p(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bs=()=>({left:window.pageXOffset,top:window.pageYOffset});function bp(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=_p(r,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 vi(e,t){return(history.state?history.state.position-t:-1)+e}const Or=new Map;function wp(e,t){Or.set(e,t)}function vp(e){const t=Or.get(e);return Or.delete(e),t}let Ep=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),bi(l,"")}return bi(n,e)+s+r}function xp(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const m=gl(e,location),g=n.value,w=t.value;let A=0;if(p){if(n.value=m,t.value=p,i&&i===g){i=null;return}A=w?p.position-w.position:0}else s(m);r.forEach(R=>{R(n.value,g,{delta:A,type:Pn.pop,direction:A?A>0?yn.forward:yn.back:yn.unknown})})};function l(){i=n.value}function a(p){r.push(p);const m=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Bs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:a,destroy:d}}function Ei(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bs():null}}function Sp(e){const{history:t,location:n}=window,s={value:gl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,a,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ep()+e+l;try{t[u?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(l,a){const u=Z({},t.state,Ei(r.value.back,l,r.value.forward,!0),a,{position:r.value.position});o(l,u,!0),s.value=l}function c(l,a){const u=Z({},r.value,t.state,{forward:l,scroll:Bs()});o(u.current,u,!0);const d=Z({},Ei(s.value,l,null),{position:u.position+1},a);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Rp(e){e=mp(e);const t=Sp(e),n=xp(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Z({location:"",base:e,go:s,createHref:yp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Op(e){return typeof e=="string"||e&&typeof e=="object"}function yl(e){return typeof e=="string"||typeof e=="symbol"}const lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_l=Symbol("");var xi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xi||(xi={}));function Yt(e,t){return Z(new Error,{type:e,[_l]:!0},t)}function Ze(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const Si="[^/]+?",Cp={sensitive:!1,strict:!1,start:!0,end:!0},Ap=/[.+*?^${}()[\]/\\]/g;function Pp(e,t){const n=Z({},Cp,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ip(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const kp={type:0,value:""},Np=/[a-zA-Z0-9_]/;function Lp(e){if(!e)return[[]];if(e==="/")return[[kp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,a="",u="";function d(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;c{i(N)}:gn}function i(u){if(yl(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!bl(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Ci(u)&&s.set(u.record.name,u)}function a(u,d){let p,m={},g,w;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw Yt(1,{location:u});w=p.record.name,m=Z(Oi(d.params,p.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&Oi(u.params,p.keys.map(N=>N.name))),g=p.stringify(m)}else if("path"in u)g=u.path,p=n.find(N=>N.re.test(g)),p&&(m=p.parse(g),w=p.record.name);else{if(p=d.name?s.get(d.name):n.find(N=>N.re.test(d.path)),!p)throw Yt(1,{location:u,currentLocation:d});w=p.record.name,m=Z({},d.params,u.params),g=p.stringify(m)}const A=[];let R=p;for(;R;)A.unshift(R.record),R=R.parent;return{name:w,path:g,params:m,matched:A,meta:jp(A)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function Oi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function $p(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dp(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 Dp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jp(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function bl(e,t){return t.children.some(n=>n===e||bl(e,n))}const wl=/#/g,Up=/&/g,Bp=/\//g,Hp=/=/g,qp=/\?/g,vl=/\+/g,Kp=/%5B/g,zp=/%5D/g,El=/%5E/g,Vp=/%60/g,xl=/%7B/g,Wp=/%7C/g,Sl=/%7D/g,Jp=/%20/g;function co(e){return encodeURI(""+e).replace(Wp,"|").replace(Kp,"[").replace(zp,"]")}function Qp(e){return co(e).replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Cr(e){return co(e).replace(vl,"%2B").replace(Jp,"+").replace(wl,"%23").replace(Up,"%26").replace(Vp,"`").replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Xp(e){return Cr(e).replace(Hp,"%3D")}function Yp(e){return co(e).replace(wl,"%23").replace(qp,"%3F")}function Gp(e){return e==null?"":Yp(e).replace(Bp,"%2F")}function ys(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Zp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Cr(o)):[s&&Cr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function em(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const tm=Symbol(""),Ti=Symbol(""),lo=Symbol(""),ao=Symbol(""),Ar=Symbol("");function an(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ft(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Yt(4,{from:n,to:t})):d instanceof Error?c(d):Op(d)?c(Yt(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},a=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(a);e.length<3&&(u=u.then(l)),u.catch(d=>c(d))})}function tr(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(nm(c)){const a=(c.__vccOpts||c)[t];a&&r.push(ft(a,n,s,o,i))}else{let l=c();r.push(()=>l.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=lp(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&ft(p,n,s,o,i)()}))}}return r}function nm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ii(e){const t=Ye(lo),n=Ye(ao),s=Te(()=>t.resolve(Kt(e.to))),r=Te(()=>{const{matched:l}=s.value,{length:a}=l,u=l[a-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Xt.bind(null,u));if(p>-1)return p;const m=ki(l[a-2]);return a>1&&ki(u)===m&&d[d.length-1].path!==m?d.findIndex(Xt.bind(null,l[a-2])):p}),o=Te(()=>r.value>-1&&im(n.params,s.value.params)),i=Te(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function c(l={}){return om(l)?t[Kt(e.replace)?"replace":"push"](Kt(e.to)).catch(gn):Promise.resolve()}return{route:s,href:Te(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const sm=Hr({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:Ii,setup(e,{slots:t}){const n=In(Ii(e)),{options:s}=Ye(lo),r=Te(()=>({[Ni(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ni(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),rm=sm;function om(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 im(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ni=(e,t,n)=>e??t??n,cm=Hr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Ar),r=Te(()=>e.route||s.value),o=Ye(Ti,0),i=Te(()=>{let a=Kt(o);const{matched:u}=r.value;let d;for(;(d=u[a])&&!d.components;)a++;return a}),c=Te(()=>r.value.matched[i.value]);Jn(Ti,Te(()=>i.value+1)),Jn(tm,c),Jn(Ar,r);const l=Pe();return dn(()=>[l.value,c.value,e.name],([a,u,d],[p,m,g])=>{u&&(u.instances[d]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Xt(u,m)||!p)&&(u.enterCallbacks[d]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,d=c.value,p=d&&d.components[u];if(!p)return Li(n.default,{Component:p,route:a});const m=d.props[u],g=m?m===!0?a.params:typeof m=="function"?m(a):m:null,A=ds(p,Z({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Li(n.default,{Component:A,route:a})||A}}});function Li(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lm=cm;function am(e){const t=Fp(e.routes,e),n=e.parseQuery||Zp,s=e.stringifyQuery||Pi,r=e.history,o=an(),i=an(),c=an(),l=ba(lt);let a=lt;Ut&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zs.bind(null,v=>""+v),d=Zs.bind(null,Gp),p=Zs.bind(null,ys);function m(v,k){let T,F;return yl(v)?(T=t.getRecordMatcher(v),F=k):F=v,t.addRoute(F,T)}function g(v){const k=t.getRecordMatcher(v);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(v=>v.record)}function A(v){return!!t.getRecordMatcher(v)}function R(v,k){if(k=Z({},k||l.value),typeof v=="string"){const f=er(n,v,k.path),h=t.resolve({path:f.path},k),y=r.createHref(f.fullPath);return Z(f,h,{params:p(h.params),hash:ys(f.hash),redirectedFrom:void 0,href:y})}let T;if("path"in v)T=Z({},v,{path:er(n,v.path,k.path).path});else{const f=Z({},v.params);for(const h in f)f[h]==null&&delete f[h];T=Z({},v,{params:d(v.params)}),k.params=d(k.params)}const F=t.resolve(T,k),Q=v.hash||"";F.params=u(p(F.params));const ce=fp(s,Z({},v,{hash:Qp(Q),path:F.path})),z=r.createHref(ce);return Z({fullPath:ce,hash:Q,query:s===Pi?em(v.query):v.query||{}},F,{redirectedFrom:void 0,href:z})}function N(v){return typeof v=="string"?er(n,v,l.value.path):Z({},v)}function M(v,k){if(a!==v)return Yt(8,{from:k,to:v})}function J(v){return ie(v)}function le(v){return J(Z(N(v),{replace:!0}))}function K(v){const k=v.matched[v.matched.length-1];if(k&&k.redirect){const{redirect:T}=k;let F=typeof T=="function"?T(v):T;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=N(F):{path:F},F.params={}),Z({query:v.query,hash:v.hash,params:"path"in F?{}:v.params},F)}}function ie(v,k){const T=a=R(v),F=l.value,Q=v.state,ce=v.force,z=v.replace===!0,f=K(T);if(f)return ie(Z(N(f),{state:typeof f=="object"?Z({},Q,f.state):Q,force:ce,replace:z}),k||T);const h=T;h.redirectedFrom=k;let y;return!ce&&dp(s,F,T)&&(y=Yt(16,{to:h,from:F}),_t(F,F,!0,!1)),(y?Promise.resolve(y):ke(h,F)).catch(b=>Ze(b)?Ze(b,2)?b:Ne(b):ne(b,h,F)).then(b=>{if(b){if(Ze(b,2))return ie(Z({replace:z},N(b.to),{state:typeof b.to=="object"?Z({},Q,b.to.state):Q,force:ce}),k||h)}else b=ot(h,F,!0,z,Q);return he(h,F,b),b})}function we(v,k){const T=M(v,k);return T?Promise.reject(T):Promise.resolve()}function ke(v,k){let T;const[F,Q,ce]=um(v,k);T=tr(F.reverse(),"beforeRouteLeave",v,k);for(const f of F)f.leaveGuards.forEach(h=>{T.push(ft(h,v,k))});const z=we.bind(null,v,k);return T.push(z),jt(T).then(()=>{T=[];for(const f of o.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).then(()=>{T=tr(Q,"beforeRouteUpdate",v,k);for(const f of Q)f.updateGuards.forEach(h=>{T.push(ft(h,v,k))});return T.push(z),jt(T)}).then(()=>{T=[];for(const f of v.matched)if(f.beforeEnter&&!k.matched.includes(f))if(Be(f.beforeEnter))for(const h of f.beforeEnter)T.push(ft(h,v,k));else T.push(ft(f.beforeEnter,v,k));return T.push(z),jt(T)}).then(()=>(v.matched.forEach(f=>f.enterCallbacks={}),T=tr(ce,"beforeRouteEnter",v,k),T.push(z),jt(T))).then(()=>{T=[];for(const f of i.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).catch(f=>Ze(f,8)?f:Promise.reject(f))}function he(v,k,T){for(const F of c.list())F(v,k,T)}function ot(v,k,T,F,Q){const ce=M(v,k);if(ce)return ce;const z=k===lt,f=Ut?history.state:{};T&&(F||z?r.replace(v.fullPath,Z({scroll:z&&f&&f.scroll},Q)):r.push(v.fullPath,Q)),l.value=v,_t(v,k,T,z),Ne()}let qe;function Ft(){qe||(qe=r.listen((v,k,T)=>{if(!Mn.listening)return;const F=R(v),Q=K(F);if(Q){ie(Z(Q,{replace:!0}),F).catch(gn);return}a=F;const ce=l.value;Ut&&wp(vi(ce.fullPath,T.delta),Bs()),ke(F,ce).catch(z=>Ze(z,12)?z:Ze(z,2)?(ie(z.to,F).then(f=>{Ze(f,20)&&!T.delta&&T.type===Pn.pop&&r.go(-1,!1)}).catch(gn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),ne(z,F,ce))).then(z=>{z=z||ot(F,ce,!1),z&&(T.delta&&!Ze(z,8)?r.go(-T.delta,!1):T.type===Pn.pop&&Ze(z,20)&&r.go(-1,!1)),he(F,ce,z)}).catch(gn)}))}let yt=an(),sn=an(),ae;function ne(v,k,T){Ne(v);const F=sn.list();return F.length?F.forEach(Q=>Q(v,k,T)):console.error(v),Promise.reject(v)}function ee(){return ae&&l.value!==lt?Promise.resolve():new Promise((v,k)=>{yt.add([v,k])})}function Ne(v){return ae||(ae=!v,Ft(),yt.list().forEach(([k,T])=>v?T(v):k()),yt.reset()),v}function _t(v,k,T,F){const{scrollBehavior:Q}=e;if(!Ut||!Q)return Promise.resolve();const ce=!T&&vp(vi(v.fullPath,0))||(F||!T)&&history.state&&history.state.scroll||null;return ic().then(()=>Q(v,k,ce)).then(z=>z&&bp(z)).catch(z=>ne(z,v,k))}const Le=v=>r.go(v);let Se;const $t=new Set,Mn={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,hasRoute:A,getRoutes:w,resolve:R,options:e,push:J,replace:le,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:sn.add,isReady:ee,install(v){const k=this;v.component("RouterLink",rm),v.component("RouterView",lm),v.config.globalProperties.$router=k,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Kt(l)}),Ut&&!Se&&l.value===lt&&(Se=!0,J(r.location).catch(Q=>{}));const T={};for(const Q in lt)T[Q]=Te(()=>l.value[Q]);v.provide(lo,k),v.provide(ao,In(T)),v.provide(Ar,l);const F=v.unmount;$t.add(v),v.unmount=function(){$t.delete(v),$t.size<1&&(a=lt,qe&&qe(),qe=null,l.value=lt,Se=!1,ae=!1),F()}}};return Mn}function jt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function um(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iXt(a,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(a=>Xt(a,l))||r.push(l))}return[n,s,r]}function Rl(){return Ye(ao)}const Mi=Pe(""),nr=Pe(),un=Pe(!1),Kn=Pe(!1),zn=Pe("");function uo(){function e(r){return t(r)||n(r)}function t(r){return!(r===""||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/"))}function n(r){return!!(r.includes("://open.spotify.com/track/")||r.includes("://open.spotify.com/playlist/"))}function s(r){console.log("Searching for:",r),nr.value=[],un.value=!0,Mi.value=r,Kn.value=!1,zn.value="",mt.search(r).then(o=>{console.log("Received Data:",o.data),o.status===200?(nr.value=o.data,un.value=!1):(console.log("Error:",o),un.value=!1,Kn.value=!0,zn.value=o.toString())}).catch(o=>{console.log("Other Error:",o.message),un.value=!1,Kn.value=!0,zn.value=o.message})}return{searchTerm:Mi,isSearching:un,results:nr,error:Kn,errorValue:zn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const vt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},Et=Pe([]);class fm{constructor(t){this.song=t,this.web_status=vt.QUEUED,this.progress=0,this.message=null,this.web_download_url=null}setDownloading(){this.web_status=vt.DOWNLOADING}setDownloaded(){this.web_status=vt.DOWNLOADED}setError(){this.web_status=vt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===vt.DOWNLOADING}isDownloaded(){return this.web_status===vt.DOWNLOADED}isErrored(){return this.web_status===vt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Hs(){function e(r){return Et.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new fm(r);Et.value.push(o)}function n(r){console.log("removing",r,r.song_id),Et.value=Et.value.filter(o=>o.song.song_id!==r.song_id),console.log(Et.value)}function s(r){return Et.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:Et}}const at=Hs();mt.ws_onmessage(e=>{let t=JSON.parse(e.data);at.getBySong(t.song).wsUpdate(t)});mt.ws_onerror(e=>{console.log("websocket error:",e)});function Ln(){function e(r){mt.open(r).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Opened Song:",i),n(i)}else console.log("Error:",o)}).catch(o=>{console.log("Other Error:",o.message)})}function t(r){console.log("Downloading",r),at.getBySong(r).setDownloading(),mt.download(r.url).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Download Complete:",i),at.getBySong(r).setWebURL(mt.downloadFileURL(i)),at.getBySong(r).setDownloaded()}else console.log("Error:",o),at.getBySong(r).setError()}).catch(o=>{console.log("Other Error:",o.message),at.getBySong(r).setError()})}function n(r,o=!0){at.appendSong(r),o&&t(r)}function s(r){console.log("removing"),at.removeSong(r)}return{fromURL:e,download:t,queue:n,remove:s}}const dm={components:{Icon:nn},setup(){const e=uo(),t=Ln(),n=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],s=Pe(n[0]),r=setInterval(()=>{n.push(n.shift()),s.value=n[0]},6e3);_c(()=>{clearInterval(r)});function o(c){if(e.isValidURL(c))t.fromURL(c),i({name:"Download"});else if(e.isValidSearch(c)){let l={name:"Search",params:{query:c}};e.isValidSearch(c)&&i(l)}else console.log("Invalid search term.")}function i(c){fo.push(c)}return{lookUp:o,searchTerm:e.searchTerm,isValidURL:e.isValidURL,placeHolder:s}}},hm={class:"flex flex-row items-center space-x-4 w-full"},pm=["placeholder"];function mm(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",hm,[Xn(O("input",{type:"text",placeholder:s.placeHolder,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":t[0]||(t[0]=c=>s.searchTerm=c),onKeyup:t[1]||(t[1]=Wu(c=>s.lookUp(s.searchTerm),["enter"]))},null,40,pm),[[zu,s.searchTerm]]),O("button",{class:"btn btn-square btn-primary",onClick:t[2]||(t[2]=c=>s.lookUp(s.searchTerm))},[me(" ​ "),s.isValidURL(s.searchTerm)?(U(),fs(i,{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(U(),fs(i,{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))])])}const Ol=He(dm,[["render",mm]]);const gm={components:{Icon:nn,SearchInput:Ol},setup(){return{themeMgr:pl({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"})}}},ym=e=>(fc("data-v-a94c0599"),e=e(),dc(),e),_m={class:"hero min-h-screen"},bm={key:0,class:"flex justify-end absolute top-0 right-0"},wm={class:"swap swap-rotate"},vm=["checked"],Em={for:"my-modal",class:"btn btn-square modal-button m-2"},xm={class:"block text-center justify-center hero-content"},Sm=Ic('

spotDL

Download your Spotify songs with embedded album art and metadata

',2),Rm={class:"alert alert-info shadow-lg my-4"},Om=ym(()=>O("span",null,[me("This web interface currently downloads only songs. "),O("br"),me(" Album, Artist, Playlist and Show links will not work.")],-1));function Cm(e,t,n,s,r,o){const i=Ee("Icon"),c=Ee("SearchInput");return U(),H("div",_m,[(U(),H("div",bm,[O("label",wm,[O("input",{type:"checkbox",onChange:t[0]||(t[0]=l=>s.themeMgr.setTheme(l.target.checked?"light":"dark")),checked:s.themeMgr.currentTheme.value==="dark"?!1:"checked"},null,40,vm),me(" ​ "),W(i,{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),me(" ​ "),W(i,{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",Em,[me(" ​ "),W(i,{icon:"clarity:settings-line",class:"h-6 w-6"})])])),O("div",xm,[Sm,W(c),O("div",Rm,[O("div",null,[W(i,{icon:"clarity:info-circle-line",class:"swap-off fill-current h-6 w-6"}),Om])])])])}const Am=He(gm,[["render",Cm],["__scopeId","data-v-a94c0599"]]),Pm={components:{Hero:Am},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Tm(e,t,n,s,r,o){const i=Ee("Hero");return U(),fs(i)}const Im=He(Pm,[["render",Tm]]);const km={components:{Icon:nn,SearchInput:Ol},setup(){const e=Hs(),t=Ln(),n=Rl();function s(r){fo.push(r)}return{goto:s,route:n,pt:e,dm:t}}},Cl=e=>(fc("data-v-e0cba7f6"),e=e(),dc(),e),Nm={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},Lm=Cl(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:Vr,class:"py-2 pr-2 w-10 center"})],-1)),Mm=Cl(()=>O("button",{class:"text-lg font-bold"},"spotDL",-1)),Fm=[Lm,Mm],$m={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},Dm={class:"navbar-end"},jm={for:"my-modal",class:"btn btn-square modal-button mx-2"},Um={class:"indicator"},Bm={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},Hm={class:"sm:hidden px-2 mx-2"};function qm(e,t,n,s,r,o){const i=Ee("SearchInput"),c=Ee("Icon");return U(),H(pe,null,[O("div",Nm,[O("button",{class:"px-2 mx-2 navbar-start",onClick:t[0]||(t[0]=l=>s.goto({name:"Home"}))},Fm),O("div",$m,[W(i,{class:"w-full"})]),O("div",Dm,[O("label",jm,[me(" ​ "),W(c,{icon:"clarity:settings-line",class:"h-6 w-6"})]),O("div",Um,[s.pt.downloadQueue.value.length>0?(U(),H("div",Bm,Ce(s.pt.downloadQueue.value.length),1)):dt("",!0),O("a",{class:bs(["btn btn-square",s.route.name==="Download"?"btn-primary":"btn-ghost"]),onClick:t[1]||(t[1]=l=>s.goto({name:"Download"}))},[me(" ​ "),W(c,{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),O("div",Hm,[W(i,{class:"w-full"})])],64)}const Al=He(km,[["render",qm],["__scopeId","data-v-e0cba7f6"]]),Km={components:{Icon:nn},props:["data","error"],emits:["download"],setup(e,t){const n=uo(),s=Hs(),r=Ln();return{data:e.data,error:e.error,errorValue:n.errorValue,loading:n.isSearching,download:o=>t.emit("download",o),dm:r,pt:s}}},zm={class:"min-h-screen m-2"},Vm={key:0,class:"hero min-h-screen"},Wm={key:0,class:"btn btn-sm btn-ghost loading"},Jm={key:1,class:"alert alert-error"},Qm={class:"flex-1"},Xm=O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Ym={class:"aspect-square md:max-h-fit"},Gm=["src"],Zm={class:"card-body"},eg={class:"card-title"},tg={key:0,class:"badge mx-0.5 badge-error"},ng={key:0},sg=O("br",null,null,-1),rg=O("p",null,[O("br")],-1),og={class:"card-actions absolute bottom-0 right-0 m-2"},ig=["href"],cg={key:0,class:"btn btn-primary btn-square"},lg=["onClick"];function ag(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",zm,[s.loading||s.error?(U(),H("div",Vm,[s.loading?(U(),H("button",Wm," LOADING ")):dt("",!0),s.error?(U(),H("div",Jm,[O("div",Qm,[Xm,O("label",null,"Error: "+Ce(s.errorValue),1)])])):dt("",!0)])):(U(!0),H(pe,{key:1},Pt(s.data,(c,l)=>{var a;return U(),H("div",{key:l,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[O("figure",Ym,[O("img",{src:c.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Gm)]),O("div",Zm,[O("h2",eg,[me(Ce(c.name)+" ",1),c.explicit?(U(),H("div",tg," Explicit ")):dt("",!0)]),O("h3",null,[(U(!0),H(pe,null,Pt(c.artists,(u,d)=>(U(),H("a",{key:d},[d!==0?(U(),H("a",ng," • ")):dt("",!0),me(" "+Ce(u),1)]))),128))]),O("h3",null,Ce(c.album_name),1),sg,rg,O("div",og,[O("a",{class:"btn btn-ghost btn-square",href:c.url,target:"_blank"},[me(" ​ "),W(i,{icon:"clarity:link-line",class:"h-6 w-6"})],8,ig),(a=s.pt.getBySong(c))!=null&&a.isQueued()?(U(),H("button",cg,[me(" ​ "),W(i,{icon:"clarity:check-line",class:"h-6 w-6"})])):(U(),H("button",{key:1,class:"btn btn-primary btn-square",onClick:u=>s.download(c)},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,lg))])])])}),128))])}const ug=He(Km,[["render",ag]]),fg={components:{Navbar:Al,SearchList:ug},setup(){Ts(()=>{window.scroll(0,0)});const e=Rl(),t=uo(),n=Ln();return dn(()=>e.params.query,()=>{e.params.query&&t.searchFor(e.params.query)},{deep:!0}),t.searchFor(e.params.query),{sm:t,dm:n}}};function dg(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("SearchList");return U(),H("div",null,[W(i),W(c,{data:s.sm.results,error:s.sm.error,onDownload:t[0]||(t[0]=l=>s.dm.queue(l))},null,8,["data","error"])])}const hg=He(fg,[["render",dg]]),pg={components:{Icon:nn},props:{data:Object},setup(e,t){const n=Hs(),s=Ln();function r(o){const i=document.createElement("a");i.href=o,i.download=o.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return{dm:s,pt:n,download:r}}},mg={class:"min-h-screen m-2"},gg={key:0},yg=O("div",{class:"alert shadow-lg"},[O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"No downloads are queued. Search for a song to begin.")])],-1),_g=[yg],bg={key:1},wg={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},vg=["src"],Eg={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},xg={class:"card-title"},Sg={class:"stat-figure text-primary flex space-x-2 items-center"},Rg={key:0,class:"badge badge-error gap-2"},Og={class:"badge"},Cg=["onClick"],Ag=["onClick"],Pg={key:2,class:"btn btn-square btn-ghost loading"};function Tg(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",mg,[s.pt.downloadQueue.value.length===0?(U(),H("div",gg,_g)):(U(),H("div",bg,[O("div",wg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"carousel-item h-48"},[O("img",{src:c.song.cover_url},null,8,vg)]))),128))]),O("div",Eg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"card-body grid grid-rows-1"},[O("h2",xg,Ce(c.song.name)+" - "+Ce(c.song.artist),1),O("p",null,Ce(c.song.album_name),1),O("div",Sg,[c.isErrored()?(U(),H("div",Rg," error ")):dt("",!0),O("span",Og,Ce(c.message||c.web_status),1),O("button",{class:"btn btn-error btn-outline btn-square",onClick:a=>s.dm.remove(c.song)},[me(" ​ "),W(i,{icon:"clarity:trash-line",class:"h-6 w-6"})],8,Cg),c.isDownloaded()?(U(),H("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:a=>s.download(c.web_download_url),download:""},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,Ag)):c.progress===0?(U(),H("button",Pg," ​ ")):(U(),H("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:_s(`--value: ${c.progress}; --size: 2.5rem`)},Ce(Math.round(c.progress))+"% ",5))])]))),128))])]))])}const Ig=He(pg,[["render",Tg]]),kg={components:{Navbar:Al,DownloadList:Ig},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Ng(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("DownloadList");return U(),H("div",null,[W(i),W(c)])}const Lg=He(kg,[["render",Ng]]),Mg=[{path:"/",name:"Home",component:Im},{path:"/search/:query",name:"Search",component:hg},{path:"/download",name:"Download",component:Lg}],fo=am({history:Rp($e.BASEURL),routes:Mg});const Pl=Xu(cp);Pl.use(fo);Pl.mount("#app"); diff --git a/dist/index.html b/dist/index.html index 8f2df7a..fc32482 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ spotDL - + diff --git a/src/model/download.js b/src/model/download.js index ad5c098..f7add82 100644 --- a/src/model/download.js +++ b/src/model/download.js @@ -99,9 +99,11 @@ function useDownloadManager() { .then((res) => { console.log('Received Response:', res) if (res.status === 200) { - let song = res.data - console.log('Opened Song:', song) - queue(song) + let songs = res.data + for(const song of songs){ + console.log('Opened Song:', song) + queue(song) + } } else { console.log('Error:', res) } From e68541d0a721439144902e2835aba41737c43f4a Mon Sep 17 00:00:00 2001 From: oscarvx00 Date: Mon, 12 Jun 2023 14:40:50 +0200 Subject: [PATCH 04/22] Added dist file --- dist/assets/index-21e675e3.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 dist/assets/index-21e675e3.js diff --git a/dist/assets/index-21e675e3.js b/dist/assets/index-21e675e3.js new file mode 100644 index 0000000..aab210b --- /dev/null +++ b/dist/assets/index-21e675e3.js @@ -0,0 +1,7 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Pr(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function _s(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(Il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function bs(e){let t="";if(fe(e))t=e;else if(j(e))for(let n=0;nws(n,t))}const Ce=e=>fe(e)?e:e==null?"":j(e)||re(e)&&(e.toString===ji||!q(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:re(t)&&!j(t)&&!Ui(t)?String(t):t,oe={},Bt=[],je=()=>{},Dl=()=>!1,jl=/^on[^a-z]/,vs=e=>jl.test(e),Tr=e=>e.startsWith("onUpdate:"),xe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ul=Object.prototype.hasOwnProperty,X=(e,t)=>Ul.call(e,t),j=Array.isArray,Ht=e=>Tn(e)==="[object Map]",Es=e=>Tn(e)==="[object Set]",go=e=>Tn(e)==="[object Date]",q=e=>typeof e=="function",fe=e=>typeof e=="string",_n=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Di=e=>re(e)&&q(e.then)&&q(e.catch),ji=Object.prototype.toString,Tn=e=>ji.call(e),Bl=e=>Tn(e).slice(8,-1),Ui=e=>Tn(e)==="[object Object]",kr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hl=/-(\w)/g,Ge=xs(e=>e.replace(Hl,(t,n)=>n?n.toUpperCase():"")),ql=/\B([A-Z])/g,Lt=xs(e=>e.replace(ql,"-$1").toLowerCase()),Ss=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=xs(e=>e?`on${Ss(e)}`:""),bn=(e,t)=>!Object.is(e,t),Wn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yo;const Kl=()=>yo||(yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class zl{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Bi=e=>(e.w>)>0,Hi=e=>(e.n>)>0,Wl=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&c.push(a)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?kr(n)&&c.push(i.get("length")):(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"delete":j(e)||(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"set":Ht(e)&&c.push(i.get(At));break}if(c.length===1)c[0]&&ir(c[0]);else{const l=[];for(const a of c)a&&l.push(...a);ir(Nr(l))}}function ir(e,t){const n=j(e)?e:[...e];for(const s of n)s.computed&&bo(s);for(const s of n)s.computed||bo(s)}function bo(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ql=Pr("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_n)),Xl=Mr(),Yl=Mr(!1,!0),Gl=Mr(!0),wo=Zl();function Zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=G(this);for(let o=0,i=this.length;o{e[t]=function(...n){Gt();const s=G(this)[t].apply(this,n);return Zt(),s}}),e}function Mr(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?ma:Xi:t?Qi:Ji).get(s))return s;const i=j(s);if(!e&&i&&X(wo,r))return Reflect.get(wo,r,o);const c=Reflect.get(s,r,o);return(_n(r)?zi.has(r):Ql(r))||(e||Ae(s,"get",r),t)?c:be(c)?i&&kr(r)?c:c.value:re(c)?e?Yi(c):In(c):c}}const ea=Vi(),ta=Vi(!0);function Vi(e=!1){return function(n,s,r,o){let i=n[s];if(Vt(i)&&be(i)&&!be(r))return!1;if(!e&&(!ls(r)&&!Vt(r)&&(i=G(i),r=G(r)),!j(n)&&be(i)&&!be(r)))return i.value=r,!0;const c=j(n)&&kr(s)?Number(s)e,Rs=e=>Reflect.getPrototypeOf(e);function Fn(e,t,n=!1,s=!1){e=e.__v_raw;const r=G(e),o=G(t);n||(t!==o&&Ae(r,"get",t),Ae(r,"get",o));const{has:i}=Rs(r),c=s?Fr:n?jr:vn;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function $n(e,t=!1){const n=this.__v_raw,s=G(n),r=G(e);return t||(e!==r&&Ae(s,"has",e),Ae(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Dn(e,t=!1){return e=e.__v_raw,!t&&Ae(G(e),"iterate",At),Reflect.get(e,"size",e)}function vo(e){e=G(e);const t=G(this);return Rs(t).has.call(t,e)||(t.add(e),nt(t,"add",e,e)),this}function Eo(e,t){t=G(t);const n=G(this),{has:s,get:r}=Rs(n);let o=s.call(n,e);o||(e=G(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?bn(t,i)&&nt(n,"set",e,t):nt(n,"add",e,t),this}function xo(e){const t=G(this),{has:n,get:s}=Rs(t);let r=n.call(t,e);r||(e=G(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&nt(t,"delete",e,void 0),o}function So(){const e=G(this),t=e.size!==0,n=e.clear();return t&&nt(e,"clear",void 0,void 0),n}function jn(e,t){return function(s,r){const o=this,i=o.__v_raw,c=G(i),l=t?Fr:e?jr:vn;return!e&&Ae(c,"iterate",At),i.forEach((a,u)=>s.call(r,l(a),l(u),o))}}function Un(e,t,n){return function(...s){const r=this.__v_raw,o=G(r),i=Ht(o),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,a=r[e](...s),u=n?Fr:t?jr:vn;return!t&&Ae(o,"iterate",l?or:At),{next(){const{value:d,done:p}=a.next();return p?{value:d,done:p}:{value:c?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){return e==="delete"?!1:this}}function ca(){const e={get(o){return Fn(this,o)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!1)},t={get(o){return Fn(this,o,!1,!0)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!0)},n={get(o){return Fn(this,o,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!1)},s={get(o){return Fn(this,o,!0,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Un(o,!1,!1),n[o]=Un(o,!0,!1),t[o]=Un(o,!1,!0),s[o]=Un(o,!0,!0)}),[e,n,t,s]}const[la,aa,ua,fa]=ca();function $r(e,t){const n=t?e?fa:ua:e?aa:la;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const da={get:$r(!1,!1)},ha={get:$r(!1,!0)},pa={get:$r(!0,!1)},Ji=new WeakMap,Qi=new WeakMap,Xi=new WeakMap,ma=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ya(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(Bl(e))}function In(e){return Vt(e)?e:Dr(e,!1,Wi,da,Ji)}function _a(e){return Dr(e,!1,ia,ha,Qi)}function Yi(e){return Dr(e,!0,oa,pa,Xi)}function Dr(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ya(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function qt(e){return Vt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function Gi(e){return qt(e)||Vt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Zi(e){return cs(e,"__v_skip",!0),e}const vn=e=>re(e)?In(e):e,jr=e=>re(e)?Yi(e):e;function ec(e){ht&&Fe&&(e=G(e),Ki(e.dep||(e.dep=Nr())))}function tc(e,t){e=G(e),e.dep&&ir(e.dep)}function be(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){return nc(e,!1)}function ba(e){return nc(e,!0)}function nc(e,t){return be(e)?e:new wa(e,t)}class wa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:vn(t)}get value(){return ec(this),this._value}set value(t){const n=this.__v_isShallow||ls(t)||Vt(t);t=n?t:G(t),bn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vn(t),tc(this))}}function Kt(e){return be(e)?e.value:e}const va={get:(e,t,n)=>Kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function sc(e){return qt(e)?e:new Proxy(e,va)}var rc;class Ea{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rc]=!1,this._dirty=!0,this.effect=new Lr(t,()=>{this._dirty||(this._dirty=!0,tc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=G(this);return ec(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rc="__v_isReadonly";function xa(e,t,n=!1){let s,r;const o=q(e);return o?(s=e,r=je):(s=e.get,r=e.set),new Ea(s,r,o||!r,n)}function pt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Os(o,t,n)}return r}function Ue(e,t,n,s){if(q(e)){const o=pt(e,t,n,s);return o&&Di(o)&&o.catch(i=>{Os(i,t,n)}),o}const r=[];for(let o=0;o>>1;xn(_e[s])Qe&&_e.splice(t,1)}function Ca(e){j(e)?zt.push(...e):(!et||!et.includes(e,e.allowRecurse?St+1:St))&&zt.push(e),cc()}function Ro(e,t=En?Qe+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function lc(e){if(zt.length){const t=[...new Set(zt)];if(zt.length=0,et){et.push(...t);return}for(et=t,et.sort((n,s)=>xn(n)-xn(s)),St=0;Ste.id==null?1/0:e.id,Aa=(e,t)=>{const n=xn(e)-xn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ac(e){cr=!1,En=!0,_e.sort(Aa);const t=je;try{for(Qe=0;Qe<_e.length;Qe++){const n=_e[Qe];n&&n.active!==!1&&pt(n,null,14)}}finally{Qe=0,_e.length=0,lc(),En=!1,Ur=null,(_e.length||zt.length)&&ac()}}function Pa(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:p}=s[u]||oe;p&&(r=n.map(m=>fe(m)?m.trim():m)),d&&(r=n.map(wn))}let c,l=s[c=qs(t)]||s[c=qs(Ge(t))];!l&&o&&(l=s[c=qs(Lt(t))]),l&&Ue(l,e,6,r);const a=s[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ue(a,e,6,r)}}function uc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!q(e)){const l=a=>{const u=uc(a,t,!0);u&&(c=!0,xe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!c?(re(e)&&s.set(e,null),null):(j(o)?o.forEach(l=>i[l]=null):xe(i,o),re(e)&&s.set(e,i),i)}function Cs(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Lt(t))||X(e,t))}let Ie=null,As=null;function as(e){const t=Ie;return Ie=e,As=e&&e.type.__scopeId||null,t}function fc(e){As=e}function dc(){As=null}function Ta(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Lo(-1);const o=as(t);let i;try{i=e(...r)}finally{as(o),s._d&&Lo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:m,ctx:g,inheritAttrs:w}=e;let A,R;const N=as(e);try{if(n.shapeFlag&4){const J=r||s;A=Je(u.call(J,J,d,o,m,p,g)),R=l}else{const J=t;A=Je(J.length>1?J(o,{attrs:l,slots:c,emit:a}):J(o,null)),R=t.props?l:Ia(l)}}catch(J){pn.length=0,Os(J,e,1),A=W(It)}let M=A;if(R&&w!==!1){const J=Object.keys(R),{shapeFlag:le}=M;J.length&&le&7&&(i&&J.some(Tr)&&(R=ka(R,i)),M=Wt(M,R))}return n.dirs&&(M=Wt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),A=M,as(N),A}const Ia=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},ka=(e,t)=>{const n={};for(const s in e)(!Tr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Na(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:l}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Oo(s,i,a):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Fa(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Ca(e)}function Jn(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ye||Ie;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s.proxy):t}}const Bn={};function dn(e,t,n){return hc(e,t,n)}function hc(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=oe){const c=ye;let l,a=!1,u=!1;if(be(e)?(l=()=>e.value,a=ls(e)):qt(e)?(l=()=>e,s=!0):j(e)?(u=!0,a=e.some(M=>qt(M)||ls(M)),l=()=>e.map(M=>{if(be(M))return M.value;if(qt(M))return Ct(M);if(q(M))return pt(M,c,2)})):q(e)?t?l=()=>pt(e,c,2):l=()=>{if(!(c&&c.isUnmounted))return d&&d(),Ue(e,c,3,[p])}:l=je,t&&s){const M=l;l=()=>Ct(M())}let d,p=M=>{d=R.onStop=()=>{pt(M,c,4)}},m;if(Rn)if(p=je,t?n&&Ue(t,c,3,[l(),u?[]:void 0,p]):l(),r==="sync"){const M=Ou();m=M.__watcherHandles||(M.__watcherHandles=[])}else return je;let g=u?new Array(e.length).fill(Bn):Bn;const w=()=>{if(R.active)if(t){const M=R.run();(s||a||(u?M.some((J,le)=>bn(J,g[le])):bn(M,g)))&&(d&&d(),Ue(t,c,3,[M,g===Bn?void 0:u&&g[0]===Bn?[]:g,p]),g=M)}else R.run()};w.allowRecurse=!!t;let A;r==="sync"?A=w:r==="post"?A=()=>Re(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),A=()=>Br(w));const R=new Lr(l,A);t?n?w():g=R.run():r==="post"?Re(R.run.bind(R),c&&c.suspense):R.run();const N=()=>{R.stop(),c&&c.scope&&Ir(c.scope.effects,R)};return m&&m.push(N),N}function $a(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?pc(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=ye;Jt(this);const c=hc(r,o.bind(s),n);return i?Jt(i):Tt(),c}function pc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ct(n,t)});else if(Ui(e))for(const n in e)Ct(e[n],t);return e}function Hr(e){return q(e)?{setup:e,name:e.name}:e}const Qn=e=>!!e.type.__asyncLoader,mc=e=>e.type.__isKeepAlive;function Da(e,t){gc(e,"a",t)}function ja(e,t){gc(e,"da",t)}function gc(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ps(t,s,n),n){let r=n.parent;for(;r&&r.parent;)mc(r.parent.vnode)&&Ua(s,t,n,r),r=r.parent}}function Ua(e,t,n,s){const r=Ps(t,e,s,!0);bc(()=>{Ir(s[t],r)},n)}function Ps(e,t,n=ye,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Gt(),Jt(n);const c=Ue(t,n,e,i);return Tt(),Zt(),c});return s?r.unshift(o):r.push(o),o}}const st=e=>(t,n=ye)=>(!Rn||e==="sp")&&Ps(e,(...s)=>t(...s),n),yc=st("bm"),Ts=st("m"),Ba=st("bu"),Ha=st("u"),_c=st("bum"),bc=st("um"),qa=st("sp"),Ka=st("rtg"),za=st("rtc");function Va(e,t=ye){Ps("ec",e,t)}function Xn(e,t){const n=Ie;if(n===null)return e;const s=Ns(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,l=i.length;ce?kc(e)?Ns(e)||e.proxy:lr(e.parent):null,hn=xe(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=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>qr(e),$forceUpdate:e=>e.f||(e.f=()=>Br(e.update)),$nextTick:e=>e.n||(e.n=ic.bind(e.proxy)),$watch:e=>$a.bind(e)}),zs=(e,t)=>e!==oe&&!e.__isScriptSetup&&X(e,t),Qa={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=e;let a;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(zs(s,t))return i[t]=1,s[t];if(r!==oe&&X(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&X(a,t))return i[t]=3,o[t];if(n!==oe&&X(n,t))return i[t]=4,n[t];ar&&(i[t]=0)}}const u=hn[t];let d,p;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==oe&&X(n,t))return i[t]=4,n[t];if(p=l.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return zs(r,t)?(r[t]=n,!0):s!==oe&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==oe&&X(e,i)||zs(t,i)||(c=o[0])&&X(c,i)||X(s,i)||X(hn,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ar=!0;function Xa(e){const t=qr(e),n=e.proxy,s=e.ctx;ar=!1,t.beforeCreate&&Ao(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:A,beforeDestroy:R,beforeUnmount:N,destroyed:M,unmounted:J,render:le,renderTracked:K,renderTriggered:ie,errorCaptured:we,serverPrefetch:ke,expose:he,inheritAttrs:ot,components:qe,directives:Ft,filters:yt}=t;if(a&&Ya(a,s,null,e.appContext.config.unwrapInjectedRef),i)for(const ne in i){const ee=i[ne];q(ee)&&(s[ne]=ee.bind(n))}if(r){const ne=r.call(n,n);re(ne)&&(e.data=In(ne))}if(ar=!0,o)for(const ne in o){const ee=o[ne],Ne=q(ee)?ee.bind(n,n):q(ee.get)?ee.get.bind(n,n):je,_t=!q(ee)&&q(ee.set)?ee.set.bind(n):je,Le=Te({get:Ne,set:_t});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Se=>Le.value=Se})}if(c)for(const ne in c)vc(c[ne],s,n,ne);if(l){const ne=q(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ee=>{Jn(ee,ne[ee])})}u&&Ao(u,e,"c");function ae(ne,ee){j(ee)?ee.forEach(Ne=>ne(Ne.bind(n))):ee&&ne(ee.bind(n))}if(ae(yc,d),ae(Ts,p),ae(Ba,m),ae(Ha,g),ae(Da,w),ae(ja,A),ae(Va,we),ae(za,K),ae(Ka,ie),ae(_c,N),ae(bc,J),ae(qa,ke),j(he))if(he.length){const ne=e.exposed||(e.exposed={});he.forEach(ee=>{Object.defineProperty(ne,ee,{get:()=>n[ee],set:Ne=>n[ee]=Ne})})}else e.exposed||(e.exposed={});le&&e.render===je&&(e.render=le),ot!=null&&(e.inheritAttrs=ot),qe&&(e.components=qe),Ft&&(e.directives=Ft)}function Ya(e,t,n=je,s=!1){j(e)&&(e=ur(e));for(const r in e){const o=e[r];let i;re(o)?"default"in o?i=Ye(o.from||r,o.default,!0):i=Ye(o.from||r):i=Ye(o),be(i)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[r]=i}}function Ao(e,t,n){Ue(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vc(e,t,n,s){const r=s.includes(".")?pc(n,s):()=>n[s];if(fe(e)){const o=t[e];q(o)&&dn(r,o)}else if(q(e))dn(r,e.bind(n));else if(re(e))if(j(e))e.forEach(o=>vc(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&dn(r,o,e)}}function qr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(a=>us(l,a,i,!0)),us(l,t,i)),re(t)&&o.set(t,l),l}function us(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&us(e,o,n,!0),r&&r.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Ga[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ga={data:Po,props:xt,emits:xt,methods:xt,computed:xt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:xt,directives:xt,watch:eu,provide:Po,inject:Za};function Po(e,t){return t?e?function(){return xe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Za(e,t){return xt(ur(e),ur(t))}function ur(e){if(j(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[p,m]=xc(d,t,!0);xe(i,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return re(e)&&s.set(e,Bt),Bt;if(j(o))for(let u=0;u-1,m[1]=w<0||g-1||X(m,"default"))&&c.push(d)}}}const a=[i,c];return re(e)&&s.set(e,a),a}function To(e){return e[0]!=="$"}function Io(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ko(e,t){return Io(e)===Io(t)}function No(e,t){return j(t)?t.findIndex(n=>ko(n,e)):q(t)&&ko(t,e)?0:-1}const Sc=e=>e[0]==="_"||e==="$stable",Kr=e=>j(e)?e.map(Je):[Je(e)],su=(e,t,n)=>{if(t._n)return t;const s=Ta((...r)=>Kr(t(...r)),n);return s._c=!1,s},Rc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Sc(r))continue;const o=e[r];if(q(o))t[r]=su(r,o,s);else if(o!=null){const i=Kr(o);t[r]=()=>i}}},Oc=(e,t)=>{const n=Kr(t);e.slots.default=()=>n},ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),cs(t,"_",n)):Rc(t,e.slots={})}else e.slots={},t&&Oc(e,t);cs(e.slots,ks,1)},ou=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(xe(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Rc(t,r)),i=t}else t&&(Oc(e,t),i={default:1});if(o)for(const c in r)!Sc(c)&&!(c in i)&&delete r[c]};function Cc(){return{app:null,config:{isNativeTag:Dl,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 iu=0;function cu(e,t){return function(s,r=null){q(s)||(s=Object.assign({},s)),r!=null&&!re(r)&&(r=null);const o=Cc(),i=new Set;let c=!1;const l=o.app={_uid:iu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Cu,get config(){return o.config},set config(a){},use(a,...u){return i.has(a)||(a&&q(a.install)?(i.add(a),a.install(l,...u)):q(a)&&(i.add(a),a(l,...u))),l},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),l},component(a,u){return u?(o.components[a]=u,l):o.components[a]},directive(a,u){return u?(o.directives[a]=u,l):o.directives[a]},mount(a,u,d){if(!c){const p=W(s,r);return p.appContext=o,u&&t?t(p,a):e(p,a,d),c=!0,l._container=a,a.__vue_app__=l,Ns(p.component)||p.component.proxy}},unmount(){c&&(e(null,l._container),delete l._container.__vue_app__)},provide(a,u){return o.provides[a]=u,l}};return l}}function dr(e,t,n,s,r=!1){if(j(e)){e.forEach((p,m)=>dr(p,t&&(j(t)?t[m]:t),n,s,r));return}if(Qn(s)&&!r)return;const o=s.shapeFlag&4?Ns(s.component)||s.component.proxy:s.el,i=r?null:o,{i:c,r:l}=e,a=t&&t.r,u=c.refs===oe?c.refs={}:c.refs,d=c.setupState;if(a!=null&&a!==l&&(fe(a)?(u[a]=null,X(d,a)&&(d[a]=null)):be(a)&&(a.value=null)),q(l))pt(l,c,12,[i,u]);else{const p=fe(l),m=be(l);if(p||m){const g=()=>{if(e.f){const w=p?X(d,l)?d[l]:u[l]:l.value;r?j(w)&&Ir(w,o):j(w)?w.includes(o)||w.push(o):p?(u[l]=[o],X(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,X(d,l)&&(d[l]=i)):m&&(l.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,Re(g,n)):g()}}}const Re=Fa;function lu(e){return au(e)}function au(e,t){const n=Kl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:m=je,insertStaticContent:g}=e,w=(f,h,y,b=null,E=null,C=null,I=!1,S=null,P=!!h.dynamicChildren)=>{if(f===h)return;f&&!on(f,h)&&(b=T(f),Se(f,E,C,!0),f=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:x,ref:$,shapeFlag:L}=h;switch(x){case Is:A(f,h,y,b);break;case It:R(f,h,y,b);break;case Yn:f==null&&N(h,y,b,I);break;case pe:qe(f,h,y,b,E,C,I,S,P);break;default:L&1?le(f,h,y,b,E,C,I,S,P):L&6?Ft(f,h,y,b,E,C,I,S,P):(L&64||L&128)&&x.process(f,h,y,b,E,C,I,S,P,Q)}$!=null&&E&&dr($,f&&f.ref,C,h||f,!h)},A=(f,h,y,b)=>{if(f==null)s(h.el=c(h.children),y,b);else{const E=h.el=f.el;h.children!==f.children&&a(E,h.children)}},R=(f,h,y,b)=>{f==null?s(h.el=l(h.children||""),y,b):h.el=f.el},N=(f,h,y,b)=>{[f.el,f.anchor]=g(f.children,h,y,b,f.el,f.anchor)},M=({el:f,anchor:h},y,b)=>{let E;for(;f&&f!==h;)E=p(f),s(f,y,b),f=E;s(h,y,b)},J=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=p(f),r(f),f=y;r(h)},le=(f,h,y,b,E,C,I,S,P)=>{I=I||h.type==="svg",f==null?K(h,y,b,E,C,I,S,P):ke(f,h,E,C,I,S,P)},K=(f,h,y,b,E,C,I,S)=>{let P,x;const{type:$,props:L,shapeFlag:D,transition:B,dirs:V}=f;if(P=f.el=i(f.type,C,L&&L.is,L),D&8?u(P,f.children):D&16&&we(f.children,P,null,b,E,C&&$!=="foreignObject",I,S),V&&bt(f,null,b,"created"),L){for(const te in L)te!=="value"&&!Vn(te)&&o(P,te,null,L[te],C,f.children,b,E,k);"value"in L&&o(P,"value",null,L.value),(x=L.onVnodeBeforeMount)&&ze(x,b,f)}ie(P,f,f.scopeId,I,b),V&&bt(f,null,b,"beforeMount");const se=(!E||E&&!E.pendingBranch)&&B&&!B.persisted;se&&B.beforeEnter(P),s(P,h,y),((x=L&&L.onVnodeMounted)||se||V)&&Re(()=>{x&&ze(x,b,f),se&&B.enter(P),V&&bt(f,null,b,"mounted")},E)},ie=(f,h,y,b,E)=>{if(y&&m(f,y),b)for(let C=0;C{for(let x=P;x{const S=h.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=h;P|=f.patchFlag&16;const L=f.props||oe,D=h.props||oe;let B;y&&wt(y,!1),(B=D.onVnodeBeforeUpdate)&&ze(B,y,h,f),$&&bt(h,f,y,"beforeUpdate"),y&&wt(y,!0);const V=E&&h.type!=="foreignObject";if(x?he(f.dynamicChildren,x,S,y,b,V,C):I||ee(f,h,S,null,y,b,V,C,!1),P>0){if(P&16)ot(S,h,L,D,y,b,E);else if(P&2&&L.class!==D.class&&o(S,"class",null,D.class,E),P&4&&o(S,"style",L.style,D.style,E),P&8){const se=h.dynamicProps;for(let te=0;te{B&&ze(B,y,h,f),$&&bt(h,f,y,"updated")},b)},he=(f,h,y,b,E,C,I)=>{for(let S=0;S{if(y!==b){if(y!==oe)for(const S in y)!Vn(S)&&!(S in b)&&o(f,S,y[S],null,I,h.children,E,C,k);for(const S in b){if(Vn(S))continue;const P=b[S],x=y[S];P!==x&&S!=="value"&&o(f,S,x,P,I,h.children,E,C,k)}"value"in b&&o(f,"value",y.value,b.value)}},qe=(f,h,y,b,E,C,I,S,P)=>{const x=h.el=f?f.el:c(""),$=h.anchor=f?f.anchor:c("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=h;B&&(S=S?S.concat(B):B),f==null?(s(x,y,b),s($,y,b),we(h.children,y,$,E,C,I,S,P)):L>0&&L&64&&D&&f.dynamicChildren?(he(f.dynamicChildren,D,y,E,C,I,S),(h.key!=null||E&&h===E.subTree)&&Ac(f,h,!0)):ee(f,h,y,$,E,C,I,S,P)},Ft=(f,h,y,b,E,C,I,S,P)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?E.ctx.activate(h,y,b,I,P):yt(h,y,b,E,C,I,P):sn(f,h,P)},yt=(f,h,y,b,E,C,I)=>{const S=f.component=_u(f,b,E);if(mc(f)&&(S.ctx.renderer=Q),bu(S),S.asyncDep){if(E&&E.registerDep(S,ae),!f.el){const P=S.subTree=W(It);R(null,P,h,y)}return}ae(S,f,h,y,E,C,I)},sn=(f,h,y)=>{const b=h.component=f.component;if(Na(f,h,y))if(b.asyncDep&&!b.asyncResolved){ne(b,h,y);return}else b.next=h,Oa(b.update),b.update();else h.el=f.el,b.vnode=h},ae=(f,h,y,b,E,C,I)=>{const S=()=>{if(f.isMounted){let{next:$,bu:L,u:D,parent:B,vnode:V}=f,se=$,te;wt(f,!1),$?($.el=V.el,ne(f,$,I)):$=V,L&&Wn(L),(te=$.props&&$.props.onVnodeBeforeUpdate)&&ze(te,B,$,V),wt(f,!0);const ue=Ks(f),Me=f.subTree;f.subTree=ue,w(Me,ue,d(Me.el),T(Me),f,E,C),$.el=ue.el,se===null&&La(f,ue.el),D&&Re(D,E),(te=$.props&&$.props.onVnodeUpdated)&&Re(()=>ze(te,B,$,V),E)}else{let $;const{el:L,props:D}=h,{bm:B,m:V,parent:se}=f,te=Qn(h);if(wt(f,!1),B&&Wn(B),!te&&($=D&&D.onVnodeBeforeMount)&&ze($,se,h),wt(f,!0),L&&z){const ue=()=>{f.subTree=Ks(f),z(L,f.subTree,f,E,null)};te?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ue()):ue()}else{const ue=f.subTree=Ks(f);w(null,ue,y,b,f,E,C),h.el=ue.el}if(V&&Re(V,E),!te&&($=D&&D.onVnodeMounted)){const ue=h;Re(()=>ze($,se,ue),E)}(h.shapeFlag&256||se&&Qn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Re(f.a,E),f.isMounted=!0,h=y=b=null}},P=f.effect=new Lr(S,()=>Br(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,wt(f,!0),x()},ne=(f,h,y)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,nu(f,h.props,b,y),ou(f,h.children,y),Gt(),Ro(),Zt()},ee=(f,h,y,b,E,C,I,S,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,L=h.children,{patchFlag:D,shapeFlag:B}=h;if(D>0){if(D&128){_t(x,L,y,b,E,C,I,S,P);return}else if(D&256){Ne(x,L,y,b,E,C,I,S,P);return}}B&8?($&16&&k(x,E,C),L!==x&&u(y,L)):$&16?B&16?_t(x,L,y,b,E,C,I,S,P):k(x,E,C,!0):($&8&&u(y,""),B&16&&we(L,y,b,E,C,I,S,P))},Ne=(f,h,y,b,E,C,I,S,P)=>{f=f||Bt,h=h||Bt;const x=f.length,$=h.length,L=Math.min(x,$);let D;for(D=0;D$?k(f,E,C,!0,!1,L):we(h,y,b,E,C,I,S,P,L)},_t=(f,h,y,b,E,C,I,S,P)=>{let x=0;const $=h.length;let L=f.length-1,D=$-1;for(;x<=L&&x<=D;){const B=f[x],V=h[x]=P?ut(h[x]):Je(h[x]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;x++}for(;x<=L&&x<=D;){const B=f[L],V=h[D]=P?ut(h[D]):Je(h[D]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;L--,D--}if(x>L){if(x<=D){const B=D+1,V=B<$?h[B].el:b;for(;x<=D;)w(null,h[x]=P?ut(h[x]):Je(h[x]),y,V,E,C,I,S,P),x++}}else if(x>D)for(;x<=L;)Se(f[x],E,C,!0),x++;else{const B=x,V=x,se=new Map;for(x=V;x<=D;x++){const Oe=h[x]=P?ut(h[x]):Je(h[x]);Oe.key!=null&&se.set(Oe.key,x)}let te,ue=0;const Me=D-V+1;let Dt=!1,ho=0;const rn=new Array(Me);for(x=0;x=Me){Se(Oe,E,C,!0);continue}let Ke;if(Oe.key!=null)Ke=se.get(Oe.key);else for(te=V;te<=D;te++)if(rn[te-V]===0&&on(Oe,h[te])){Ke=te;break}Ke===void 0?Se(Oe,E,C,!0):(rn[Ke-V]=x+1,Ke>=ho?ho=Ke:Dt=!0,w(Oe,h[Ke],y,null,E,C,I,S,P),ue++)}const po=Dt?uu(rn):Bt;for(te=po.length-1,x=Me-1;x>=0;x--){const Oe=V+x,Ke=h[Oe],mo=Oe+1<$?h[Oe+1].el:b;rn[x]===0?w(null,Ke,y,mo,E,C,I,S,P):Dt&&(te<0||x!==po[te]?Le(Ke,y,mo,2):te--)}}},Le=(f,h,y,b,E=null)=>{const{el:C,type:I,transition:S,children:P,shapeFlag:x}=f;if(x&6){Le(f.component.subTree,h,y,b);return}if(x&128){f.suspense.move(h,y,b);return}if(x&64){I.move(f,h,y,Q);return}if(I===pe){s(C,h,y);for(let L=0;LS.enter(C),E);else{const{leave:L,delayLeave:D,afterLeave:B}=S,V=()=>s(C,h,y),se=()=>{L(C,()=>{V(),B&&B()})};D?D(C,V,se):se()}else s(C,h,y)},Se=(f,h,y,b=!1,E=!1)=>{const{type:C,props:I,ref:S,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:L,dirs:D}=f;if(S!=null&&dr(S,null,y,f,!0),$&256){h.ctx.deactivate(f);return}const B=$&1&&D,V=!Qn(f);let se;if(V&&(se=I&&I.onVnodeBeforeUnmount)&&ze(se,h,f),$&6)v(f.component,y,b);else{if($&128){f.suspense.unmount(y,b);return}B&&bt(f,null,h,"beforeUnmount"),$&64?f.type.remove(f,h,y,E,Q,b):x&&(C!==pe||L>0&&L&64)?k(x,h,y,!1,!0):(C===pe&&L&384||!E&&$&16)&&k(P,h,y),b&&$t(f)}(V&&(se=I&&I.onVnodeUnmounted)||B)&&Re(()=>{se&&ze(se,h,f),B&&bt(f,null,h,"unmounted")},y)},$t=f=>{const{type:h,el:y,anchor:b,transition:E}=f;if(h===pe){Mn(y,b);return}if(h===Yn){J(f);return}const C=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:S}=E,P=()=>I(y,C);S?S(f.el,C,P):P()}else C()},Mn=(f,h)=>{let y;for(;f!==h;)y=p(f),r(f),f=y;r(h)},v=(f,h,y)=>{const{bum:b,scope:E,update:C,subTree:I,um:S}=f;b&&Wn(b),E.stop(),C&&(C.active=!1,Se(I,f,h,y)),S&&Re(S,h),Re(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},k=(f,h,y,b=!1,E=!1,C=0)=>{for(let I=C;If.shapeFlag&6?T(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),F=(f,h,y)=>{f==null?h._vnode&&Se(h._vnode,null,null,!0):w(h._vnode||null,f,h,null,null,null,y),Ro(),lc(),h._vnode=f},Q={p:w,um:Se,m:Le,r:$t,mt:yt,mc:we,pc:ee,pbc:he,n:T,o:e};let ce,z;return t&&([ce,z]=t(Q)),{render:F,hydrate:ce,createApp:cu(F,ce)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ac(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const fu=e=>e.__isTeleport,pe=Symbol(void 0),Is=Symbol(void 0),It=Symbol(void 0),Yn=Symbol(void 0),pn=[];let De=null;function U(e=!1){pn.push(De=e?null:[])}function du(){pn.pop(),De=pn[pn.length-1]||null}let Sn=1;function Lo(e){Sn+=e}function Pc(e){return e.dynamicChildren=Sn>0?De||Bt:null,du(),Sn>0&&De&&De.push(e),e}function H(e,t,n,s,r,o){return Pc(O(e,t,n,s,r,o,!0))}function fs(e,t,n,s,r){return Pc(W(e,t,n,s,r,!0))}function hr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ks="__vInternal",Tc=({key:e})=>e??null,Gn=({ref:e,ref_key:t,ref_for:n})=>e!=null?fe(e)||be(e)||q(e)?{i:Ie,r:e,k:t,f:!!n}:e:null;function O(e,t=null,n=null,s=0,r=null,o=e===pe?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tc(t),ref:t&&Gn(t),scopeId:As,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return c?(zr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=fe(n)?8:16),Sn>0&&!i&&De&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&De.push(l),l}const W=hu;function hu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Wa)&&(e=It),hr(e)){const c=Wt(e,t,!0);return n&&zr(c,n),Sn>0&&!o&&De&&(c.shapeFlag&6?De[De.indexOf(e)]=c:De.push(c)),c.patchFlag|=-2,c}if(Su(e)&&(e=e.__vccOpts),t){t=pu(t);let{class:c,style:l}=t;c&&!fe(c)&&(t.class=bs(c)),re(l)&&(Gi(l)&&!j(l)&&(l=xe({},l)),t.style=_s(l))}const i=fe(e)?1:Ma(e)?128:fu(e)?64:re(e)?4:q(e)?2:0;return O(e,t,n,s,r,i,o,!0)}function pu(e){return e?Gi(e)||ks in e?xe({},e):e:null}function Wt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,c=t?mu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Tc(c),ref:t&&t.ref?n&&r?j(r)?r.concat(Gn(t)):[r,Gn(t)]:Gn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?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&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function me(e=" ",t=0){return W(Is,null,e,t)}function Ic(e,t){const n=W(Yn,null,e);return n.staticCount=t,n}function dt(e="",t=!1){return t?(U(),fs(It,null,e)):W(It,null,e)}function Je(e){return e==null||typeof e=="boolean"?W(It):j(e)?W(pe,null,e.slice()):typeof e=="object"?ut(e):W(Is,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ks in t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mu(...e){const t={};for(let n=0;n{ye=e,e.scope.on()},Tt=()=>{ye&&ye.scope.off(),ye=null};function kc(e){return e.vnode.shapeFlag&4}let Rn=!1;function bu(e,t=!1){Rn=t;const{props:n,children:s}=e.vnode,r=kc(e);tu(e,n,r,t),ru(e,s);const o=r?wu(e,t):void 0;return Rn=!1,o}function wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Zi(new Proxy(e.ctx,Qa));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Eu(e):null;Jt(e),Gt();const o=pt(s,e,0,[e.props,r]);if(Zt(),Tt(),Di(o)){if(o.then(Tt,Tt),t)return o.then(i=>{Mo(e,i,t)}).catch(i=>{Os(i,e,0)});e.asyncDep=o}else Mo(e,o,t)}else Nc(e,t)}function Mo(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=sc(t)),Nc(e,n)}let Fo;function Nc(e,t,n){const s=e.type;if(!e.render){if(!t&&Fo&&!s.render){const r=s.template||qr(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:l}=s,a=xe(xe({isCustomElement:o,delimiters:c},i),l);s.render=Fo(r,a)}}e.render=s.render||je}Jt(e),Gt(),Xa(e),Zt(),Tt()}function vu(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function Eu(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=vu(e))},slots:e.slots,emit:e.emit,expose:t}}function Ns(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sc(Zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function xu(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Su(e){return q(e)&&"__vccOpts"in e}const Te=(e,t)=>xa(e,t,Rn);function ds(e,t,n){const s=arguments.length;return s===2?re(t)&&!j(t)?hr(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hr(n)&&(n=[n]),W(e,t,n))}const Ru=Symbol(""),Ou=()=>Ye(Ru),Cu="3.2.45",Au="http://www.w3.org/2000/svg",Rt=typeof document<"u"?document:null,$o=Rt&&Rt.createElement("template"),Pu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Rt.createElementNS(Au,e):Rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{$o.innerHTML=s?`${e}`:e;const c=$o.content;if(s){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Tu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Iu(e,t,n){const s=e.style,r=fe(n);if(n&&!r){for(const o in n)pr(s,o,n[o]);if(t&&!fe(t))for(const o in t)n[o]==null&&pr(s,o,"")}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Do=/\s*!important$/;function pr(e,t,n){if(j(n))n.forEach(s=>pr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ku(e,t);Do.test(n)?e.setProperty(Lt(s),n.replace(Do,""),"important"):e[s]=n}}const jo=["Webkit","Moz","ms"],Vs={};function ku(e,t){const n=Vs[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return Vs[t]=s;s=Ss(s);for(let r=0;rWs||(Du.then(()=>Ws=0),Ws=Date.now());function Uu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(Bu(s,n.value),t,5,[s])};return n.value=e,n.attached=ju(),n}function Bu(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ho=/^on[a-z]/,Hu=(e,t,n,s,r=!1,o,i,c,l)=>{t==="class"?Tu(e,s,r):t==="style"?Iu(e,n,s):vs(t)?Tr(t)||Fu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qu(e,t,s,r))?Lu(e,t,s,o,i,c,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nu(e,t,s,r))};function qu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ho.test(t)&&q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ho.test(t)&&fe(n)?!1:t in e}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Wn(t,n):t};function Ku(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=hs(r);const o=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=wn(c)),e._assign(c)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",Ku),Ot(e,"compositionend",qo),Ot(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=hs(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&wn(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Js={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Es(t);Ot(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?wn(ps(i)):ps(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=hs(s)},mounted(e,{value:t}){Ko(e,t)},beforeUpdate(e,t,n){e._assign=hs(n)},updated(e,{value:t}){Ko(e,t)}};function Ko(e,t){const n=e.multiple;if(!(n&&!j(t)&&!Es(t))){for(let s=0,r=e.options.length;s-1:o.selected=t.has(i);else if(ws(ps(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}const Vu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wu=(e,t)=>n=>{if(!("key"in n))return;const s=Lt(n.key);if(t.some(r=>r===s||Vu[r]===s))return e(n)},Ju=xe({patchProp:Hu},Pu);let zo;function Qu(){return zo||(zo=lu(Ju))}const Xu=(...e)=>{const t=Qu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Yu(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Yu(e){return fe(e)?document.querySelector(e):e}const Vr="/assets/spotdl-5dcb64c0.svg",He=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gu={components:{},setup(){return{}}},Zu={class:"p-10 footer bg-neutral text-neutral-content"},ef=O("div",null,[O("img",{src:Vr,width:"50",height:"50",viewBox:"0 0 24 24"}),O("p",null,[me("spotDL"),O("br"),me("Open Source Music Downloader")])],-1),tf=Ic('
Social
',1),nf=[ef,tf];function sf(e,t,n,s,r,o){return U(),H("footer",Zu,nf)}const rf=He(Gu,[["render",sf]]);function Lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:Wr}=Object,Jr=(e=>t=>{const n=Mc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Ls=e=>t=>typeof t===e,{isArray:en}=Array,On=Ls("undefined");function of(e){return e!==null&&!On(e)&&e.constructor!==null&&!On(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fc=rt("ArrayBuffer");function cf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fc(e.buffer),t}const lf=Ls("string"),kt=Ls("function"),$c=Ls("number"),Qr=e=>e!==null&&typeof e=="object",af=e=>e===!0||e===!1,Zn=e=>{if(Jr(e)!=="object")return!1;const t=Wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uf=rt("Date"),ff=rt("File"),df=rt("Blob"),hf=rt("FileList"),pf=e=>Qr(e)&&kt(e.pipe),mf=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mc.call(e)===t||kt(e.toString)&&e.toString()===t)},gf=rt("URLSearchParams"),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),en(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const jc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!On(e)&&e!==jc;function mr(){const{caseless:e}=Uc(this)&&this||{},t={},n=(s,r)=>{const o=e&&Dc(t,r)||r;Zn(t[o])&&Zn(s)?t[o]=mr(t[o],s):Zn(s)?t[o]=mr({},s):en(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(kn(t,(r,o)=>{n&&kt(r)?e[o]=Lc(r,n):e[o]=r},{allOwnKeys:s}),e),bf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wf=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vf=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ef=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},xf=e=>{if(!e)return null;if(en(e))return e;let t=e.length;if(!$c(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wr(Uint8Array)),Rf=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Of=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Cf=rt("HTMLFormElement"),Af=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Vo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pf=rt("RegExp"),Bc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};kn(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},Tf=e=>{Bc(e,(t,n)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(kt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},If=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return en(e)?s(e):s(String(e).split(t)),n},kf=()=>{},Nf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Lf=e=>{const t=new Array(10),n=(s,r)=>{if(Qr(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=en(s)?[]:{};return kn(s,(i,c)=>{const l=n(i,r+1);!On(l)&&(o[c]=l)}),t[r]=void 0,o}}return s};return n(e,0)},_={isArray:en,isArrayBuffer:Fc,isBuffer:of,isFormData:mf,isArrayBufferView:cf,isString:lf,isNumber:$c,isBoolean:af,isObject:Qr,isPlainObject:Zn,isUndefined:On,isDate:uf,isFile:ff,isBlob:df,isRegExp:Pf,isFunction:kt,isStream:pf,isURLSearchParams:gf,isTypedArray:Sf,isFileList:hf,forEach:kn,merge:mr,extend:_f,trim:yf,stripBOM:bf,inherits:wf,toFlatObject:vf,kindOf:Jr,kindOfTest:rt,endsWith:Ef,toArray:xf,forEachEntry:Rf,matchAll:Of,isHTMLForm:Cf,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Bc,freezeMethods:Tf,toObjectSet:If,toCamelCase:Af,noop:kf,toFiniteNumber:Nf,findKey:Dc,global:jc,isContextDefined:Uc,toJSONObject:Lf};function Y(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}_.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hc=Y.prototype,qc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qc[e]={value:e}});Object.defineProperties(Y,qc);Object.defineProperty(Hc,"isAxiosError",{value:!0});Y.from=(e,t,n,s,r,o)=>{const i=Object.create(Hc);return _.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),Y.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var Mf=typeof self=="object"?self.FormData:window.FormData;const Ff=Mf;function gr(e){return _.isPlainObject(e)||_.isArray(e)}function Kc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Wo(e,t,n){return e?e.concat(t).map(function(r,o){return r=Kc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function $f(e){return _.isArray(e)&&!e.some(gr)}const Df=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e){return e&&_.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ms(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new(Ff||FormData),n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,A){return!_.isUndefined(A[w])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&jf(t);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!l&&_.isBlob(g))throw new Y("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,w,A){let R=g;if(g&&!A&&typeof g=="object"){if(_.endsWith(w,"{}"))w=s?w:w.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&$f(g)||_.isFileList(g)||_.endsWith(w,"[]")&&(R=_.toArray(g)))return w=Kc(w),R.forEach(function(M,J){!(_.isUndefined(M)||M===null)&&t.append(i===!0?Wo([w],J,o):i===null?w:w+"[]",a(M))}),!1}return gr(g)?!0:(t.append(Wo(A,w,o),a(g)),!1)}const d=[],p=Object.assign(Df,{defaultVisitor:u,convertValue:a,isVisitable:gr});function m(g,w){if(!_.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(g),_.forEach(g,function(R,N){(!(_.isUndefined(R)||R===null)&&r.call(t,R,_.isString(N)?N.trim():N,w,p))===!0&&m(R,w?w.concat(N):[N])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Jo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Xr(e,t){this._pairs=[],e&&Ms(e,this,t)}const zc=Xr.prototype;zc.append=function(t,n){this._pairs.push([t,n])};zc.toString=function(t){const n=t?function(s){return t.call(this,s,Jo)}:Jo;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Uf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vc(e,t,n){if(!t)return e;const s=n&&n.encode||Uf,r=n&&n.serialize;let o;if(r?o=r(t,n):o=_.isURLSearchParams(t)?t.toString():new Xr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qo=Bf,Wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hf=typeof URLSearchParams<"u"?URLSearchParams:Xr,qf=FormData,Kf=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zf=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xe={isBrowser:!0,classes:{URLSearchParams:Hf,FormData:qf,Blob},isStandardBrowserEnv:Kf,isStandardBrowserWebWorkerEnv:zf,protocols:["http","https","file","blob","url","data"]};function Vf(e,t){return Ms(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Xe.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Wf(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jf(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&_.isArray(r)?r.length:i,l?(_.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!c):((!r[i]||!_.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&_.isArray(r[i])&&(r[i]=Jf(r[i])),!c)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,r)=>{t(Wf(s),r,n,0)}),n}return null}const Qf={"Content-Type":void 0};function Xf(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Fs={transitional:Wc,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r&&r?JSON.stringify(Jc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Vf(t,this.formSerializer).toString();if((c=_.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ms(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Xf(t)):t}],transformResponse:[function(t){const n=this.transitional||Fs.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&_.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?Y.from(c,Y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(t){Fs.headers[t]={}});_.forEach(["post","put","patch"],function(t){Fs.headers[t]=_.merge(Qf)});const Yr=Fs,Yf=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gf=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Yf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Xo=Symbol("internals");function cn(e){return e&&String(e).trim().toLowerCase()}function es(e){return e===!1||e==null?e:_.isArray(e)?e.map(es):String(e)}function Zf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function ed(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Yo(e,t,n,s){if(_.isFunction(s))return s.call(this,t,n);if(_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function nd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class $s{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,l,a){const u=cn(l);if(!u)throw new Error("header name must be a non-empty string");const d=_.findKey(r,u);(!d||r[d]===void 0||a===!0||a===void 0&&r[d]!==!1)&&(r[d||l]=es(c))}const i=(c,l)=>_.forEach(c,(a,u)=>o(a,u,l));return _.isPlainObject(t)||t instanceof this.constructor?i(t,n):_.isString(t)&&(t=t.trim())&&!ed(t)?i(Gf(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=cn(t),t){const s=_.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Zf(r);if(_.isFunction(n))return n.call(this,r,s);if(_.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cn(t),t){const s=_.findKey(this,t);return!!(s&&(!n||Yo(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=cn(i),i){const c=_.findKey(s,i);c&&(!n||Yo(s,s[c],c,n))&&(delete s[c],r=!0)}}return _.isArray(t)?t.forEach(o):o(t),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return _.forEach(this,(r,o)=>{const i=_.findKey(s,o);if(i){n[i]=es(r),delete n[o];return}const c=t?td(o):String(o).trim();c!==o&&delete n[o],n[c]=es(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&_.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Xo]=this[Xo]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=cn(i);s[c]||(nd(r,i),s[c]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}$s.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);_.freezeMethods($s.prototype);_.freezeMethods($s);const tt=$s;function Qs(e,t){const n=this||Yr,s=t||n,r=tt.from(s.headers);let o=s.data;return _.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Qc(e){return!!(e&&e.__CANCEL__)}function Nn(e,t,n){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Nn,Y,{__CANCEL__:!0});const sd=null;function rd(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const od=Xe.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,c){const l=[];l.push(n+"="+encodeURIComponent(s)),_.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),_.isString(o)&&l.push("path="+o),_.isString(i)&&l.push("domain="+i),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cd(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Xc(e,t){return e&&!id(t)?cd(e,t):t}const ld=Xe.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const c=_.isString(i)?r(i):i;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ud(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const a=Date.now(),u=s[o];i||(i=a),n[r]=l,s[r]=a;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,c=o-n,l=s(c),a=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&a?(i-o)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const fd=typeof XMLHttpRequest<"u",dd=fd&&function(e){return new Promise(function(n,s){let r=e.data;const o=tt.from(e.headers).normalize(),i=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}_.isFormData(r)&&(Xe.isStandardBrowserEnv||Xe.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let a=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const u=Xc(e.baseURL,e.url);a.open(e.method.toUpperCase(),Vc(u,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const m=tt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};rd(function(R){n(R),l()},function(R){s(R),l()},w),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new Y("Request aborted",Y.ECONNABORTED,e,a)),a=null)},a.onerror=function(){s(new Y("Network Error",Y.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Wc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new Y(g,w.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,a)),a=null},Xe.isStandardBrowserEnv){const m=(e.withCredentials||ld(u))&&e.xsrfCookieName&&od.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in a&&_.forEach(o.toJSON(),function(g,w){a.setRequestHeader(w,g)}),_.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Go(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Go(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{a&&(s(!m||m.type?new Nn(null,e,a):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const p=ad(u);if(p&&Xe.protocols.indexOf(p)===-1){s(new Y("Unsupported protocol "+p+":",Y.ERR_BAD_REQUEST,e));return}a.send(r||null)})},ts={http:sd,xhr:dd};_.forEach(ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hd={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof tt?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function s(a,u,d){return _.isPlainObject(a)&&_.isPlainObject(u)?_.merge.call({caseless:d},a,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(a,u,d){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a,d)}else return s(a,u,d)}function o(a,u){if(!_.isUndefined(u))return s(void 0,u)}function i(a,u){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function c(a,u,d){if(d in t)return s(a,u);if(d in e)return s(void 0,a)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(a,u)=>r(ei(a),ei(u),!0)};return _.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||r,p=d(e[u],t[u],u);_.isUndefined(p)&&d!==c||(n[u]=p)}),n}const Yc="1.2.5",Gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ti={};Gr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Yc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new Y(r(i," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!ti[i]&&(ti[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function pd(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Y("option "+o+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const yr={assertOptions:pd,validators:Gr},ct=yr.validators;class ms{constructor(t){this.defaults=t,this.interceptors={request:new Qo,response:new Qo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&yr.assertOptions(s,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),r!==void 0&&yr.assertOptions(r,{encode:ct.function,serialize:ct.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&_.merge(o.common,o[n.method]),i&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=tt.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,c.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let u,d=0,p;if(!l){const g=[Zo.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,a),p=g.length,u=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new Nn(o,i,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Zr(function(r){t=r}),cancel:t}}}const md=Zr;function gd(e){return function(n){return e.apply(null,n)}}function yd(e){return _.isObject(e)&&e.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([e,t])=>{_r[t]=e});const _d=_r;function Gc(e){const t=new ns(e),n=Lc(ns.prototype.request,t);return _.extend(n,ns.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Gc(Qt(e,r))},n}const de=Gc(Yr);de.Axios=ns;de.CanceledError=Nn;de.CancelToken=md;de.isCancel=Qc;de.VERSION=Yc;de.toFormData=Ms;de.AxiosError=Y;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=gd;de.isAxiosError=yd;de.mergeConfig=Qt;de.AxiosHeaders=tt;de.formToJSON=e=>Jc(_.isHTMLForm(e)?new FormData(e):e);de.HttpStatusCode=_d;de.default=de;const bd=de,$e={PROTOCOL:{}.PROTOCOL||window.location.protocol,WS_PROTOCOL:{}.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:{}.BACKEND||window.location.hostname,PORT:{}.PORT||window.location.port,WS_PORT:{}.WS_PORT||window.location.port,BASEURL:{}.BASEURL||""};let Hn;const wd=new Uint8Array(16);function vd(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(wd)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function Ed(e,t=0){return(ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]).toLowerCase()}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:xd};function Sd(e,t,n){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};const s=e.random||(e.rng||vd)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=s[r];return t}return Ed(s)}console.log("using env:",{});console.log("using config: ",$e);const Mt=bd.create({baseURL:`${$e.PROTOCOL}//${$e.BACKEND}:${$e.PORT}${$e.BASEURL}`}),tn=Sd();console.log("session ID: ",tn);const eo=new WebSocket(`${$e.WS_PROTOCOL}//${$e.BACKEND}${$e.PORT!==""?":"+$e.PORT:""}${$e.BASEURL}/api/ws?client_id=${tn}`);eo.onopen=e=>{console.log("websocket connection opened",e)};function Rd(e){return Mt.get("/api/songs/search",{params:{query:e}})}function Od(e){return Mt.get("/api/song/url",{params:{url:e}})}function Cd(e){return Mt.post("/api/download/url",null,{params:{url:e,client_id:tn}})}function Ad(){return Mt.get("/api/check_update")}function Pd(e){return Mt.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(tn)}function Td(){return Mt.get("/api/settings",{params:{client_id:tn}})}function Id(e){return Mt.post("/api/settings/update",e,{params:{client_id:tn}})}function kd(e){return eo.onmessage=e}function Nd(e){return eo.onerror=e}const mt={search:Rd,open:Od,download:Cd,downloadFileURL:Pd,getSettings:Td,setSettings:Id,check_for_update:Ad,ws_onmessage:kd,ws_onerror:Nd},ss=Pe({audio_providers:[""],lyrics_providers:[""]}),Ld={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};mt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),ss.value=e.data):console.log("Error loading settings")});function Md(){const e=Pe();function t(){console.log("Saving settings:",ss.value),mt.setSettings(ss.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.log("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:ss,settingsOptions:Ld,isSaved:e}}const mn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ds=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:s,prefix:l,name:c};return t&&!rs(a)?null:a}const o=r[0],i=o.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!rs(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:o};return t&&!rs(c,n)?null:c}return null},rs=(e,t)=>e?!!((e.provider===""||e.provider.match(mn))&&(t&&e.prefix===""||e.prefix.match(mn))&&e.name.match(mn)):!1,Zc=Object.freeze({left:0,top:0,width:16,height:16}),gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),js=Object.freeze({...Zc,...gs}),br=Object.freeze({...js,body:"",hidden:!1});function Fd(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function si(e,t){const n=Fd(e,t);for(const s in br)s in gs?s in e&&!(s in n)&&(n[s]=gs[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function $d(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=s[i]&&s[i].parent,l=c&&o(c);l&&(r[i]=[c].concat(l))}return r[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(o),r}function Dd(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(c){o=si(s[c]||r[c],o)}return i(t),n.forEach(i),si(e,o)}function el(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=$d(e);for(const r in s){const o=s[r];o&&(t(r,Dd(e,r,o)),n.push(r))}return n}const jd={provider:"",aliases:{},not_found:{},...Zc};function Ys(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ys(e,jd))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(mn)||typeof o.body!="string"||!Ys(o,br))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(mn)||typeof i!="string"||!n[i]&&!s[i]||!Ys(o,br))return null}return t}const ri=Object.create(null);function Ud(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Nt(e,t){const n=ri[e]||(ri[e]=Object.create(null));return n[t]||(n[t]=Ud(e,t))}function to(e,t){return tl(t)?el(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Bd(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Cn=!1;function nl(e){return typeof e=="boolean"&&(Cn=e),Cn}function Hd(e){const t=typeof e=="string"?Ds(e,!0,Cn):e;if(t){const n=Nt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function qd(e,t){const n=Ds(e,!0,Cn);if(!n)return!1;const s=Nt(n.provider,n.prefix);return Bd(s,n.name,t)}function Kd(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Cn&&!t&&!e.prefix){let r=!1;return tl(e)&&(e.prefix="",el(e,(o,i)=>{i&&qd(o,i)&&(r=!0)})),r}const n=e.prefix;if(!rs({provider:t,prefix:n,name:"a"}))return!1;const s=Nt(t,n);return!!to(s,e)}const sl=Object.freeze({width:null,height:null}),rl=Object.freeze({...sl,...gs}),zd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oi(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(zd);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=Vd.test(o);for(;;){if(i){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function Wd(e,t){const n={...js,...e},s={...rl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(m=>{const g=[],w=m.hFlip,A=m.vFlip;let R=m.rotate;w?A?R+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):A&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let N;switch(R<0&&(R-=Math.floor(R/4)*4),R=R%4,R){case 1:N=r.height/2+r.top,g.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:N=r.width/2+r.left,g.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}R%2===1&&(r.left!==r.top&&(N=r.left,r.left=r.top,r.top=N),r.width!==r.height&&(N=r.width,r.width=r.height,r.height=N)),g.length&&(o=''+o+"")});const i=s.width,c=s.height,l=r.width,a=r.height;let u,d;return i===null?(d=c===null?"1em":c==="auto"?a:c,u=oi(d,l/a)):(u=i==="auto"?l:i,d=c===null?oi(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:d.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString()},body:o}}const Jd=/\sid="(\S+)"/g,Qd="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xd=0;function Yd(e,t=Qd){const n=[];let s;for(;s=Jd.exec(e);)n.push(s[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(Xd++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const wr=Object.create(null);function Gd(e,t){wr[e]=t}function vr(e){return wr[e]||wr[""]}function no(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const so=Object.create(null),ln=["https://api.simplesvg.com","https://api.unisvg.com"],os=[];for(;ln.length>0;)ln.length===1||Math.random()>.5?os.push(ln.shift()):os.push(ln.pop());so[""]=no({resources:["https://api.iconify.design"].concat(os)});function Zd(e,t){const n=no(t);return n===null?!1:(so[e]=n,!0)}function ro(e){return so[e]}const eh=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ii=eh();function th(e,t){const n=ro(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function nh(e){return e===404}const sh=(e,t,n)=>{const s=[],r=th(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),s.push(i),s};function rh(e){if(typeof e=="string"){const t=ro(e);if(t)return t.path}return"/"}const oh=(e,t,n)=>{if(!ii){n("abort",424);return}let s=rh(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});s+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;ii(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(nh(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},ih={prepare:sh,send:oh};function ch(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,c=r.name,l=n[o]||(n[o]=Object.create(null)),a=l[i]||(l[i]=Nt(o,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const d={provider:o,prefix:i,name:c};u.push(d)}),t}function ol(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function lh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:s,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ol([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let ah=0;function uh(e,t,n){const s=ah++,r=ol.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function fh(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?Ds(r,t,n):r;o&&s.push(o)}),s}var dh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function hh(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let K=e.resources.slice(0);for(i=[];K.length>1;){const ie=Math.floor(Math.random()*K.length);i.push(K[ie]),K=K.slice(0,ie).concat(K.slice(ie+1))}i=i.concat(K)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let l="pending",a=0,u,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function g(){d&&(clearTimeout(d),d=null)}function w(){l==="pending"&&(l="aborted"),g(),p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function A(K,ie){ie&&(m=[]),typeof K=="function"&&m.push(K)}function R(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:p.length,subscribe:A,abort:w}}function N(){l="failed",m.forEach(K=>{K(void 0,u)})}function M(){p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function J(K,ie,we){const ke=ie!=="success";switch(p=p.filter(he=>he!==K),l){case"pending":break;case"failed":if(ke||!e.dataAfterTimeout)return;break;default:return}if(ie==="abort"){u=we,N();return}if(ke){u=we,p.length||(i.length?le():N());return}if(g(),M(),!e.random){const he=e.resources.indexOf(K.resource);he!==-1&&he!==e.index&&(e.index=he)}l="completed",m.forEach(he=>{he(we)})}function le(){if(l!=="pending")return;g();const K=i.shift();if(K===void 0){if(p.length){d=setTimeout(()=>{g(),l==="pending"&&(M(),N())},e.timeout);return}N();return}const ie={status:"pending",resource:K,callback:(we,ke)=>{J(ie,we,ke)}};p.push(ie),a++,d=setTimeout(le,e.rotate),n(K,t,ie.callback)}return setTimeout(le),R}function il(e){const t={...dh,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=hh(t,c,l,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function o(c){return n.find(l=>c(l))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ci(){}const Gs=Object.create(null);function ph(e){if(!Gs[e]){const t=ro(e);if(!t)return;const n=il(t),s={config:t,redundancy:n};Gs[e]=s}return Gs[e]}function mh(e,t,n){let s,r;if(typeof e=="string"){const o=vr(e);if(!o)return n(void 0,424),ci;r=o.send;const i=ph(e);i&&(s=i.redundancy)}else{const o=no(e);if(o){s=il(o);const i=e.resources?e.resources[0]:"",c=vr(i);c&&(r=c.send)}}return!s||!r?(n(void 0,424),ci):s.query(t,r,n)().abort}const li="iconify2",An="iconify",cl=An+"-count",ai=An+"-version",ll=36e5,gh=168;function Er(e,t){try{return e.getItem(t)}catch{}}function oo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ui(e,t){try{e.removeItem(t)}catch{}}function xr(e,t){return oo(e,cl,t.toString())}function Sr(e){return parseInt(Er(e,cl))||0}const Us={local:!0,session:!0},al={local:new Set,session:new Set};let io=!1;function yh(e){io=e}let qn=typeof window>"u"?{}:window;function ul(e){const t=e+"Storage";try{if(qn&&qn[t]&&typeof qn[t].length=="number")return qn[t]}catch{}Us[e]=!1}function fl(e,t){const n=ul(e);if(!n)return;const s=Er(n,ai);if(s!==li){if(s){const c=Sr(n);for(let l=0;l{const l=An+c.toString(),a=Er(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}ui(n,l)}};let i=Sr(n);for(let c=i-1;c>=0;c--)o(c)||(c===i-1?(i--,xr(n,i)):al[e].add(c))}function dl(){if(!io){yh(!0);for(const e in Us)fl(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=Nt(s,r);if(!to(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function _h(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in Us)fl(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function bh(e,t){io||dl();function n(s){let r;if(!Us[s]||!(r=ul(s)))return;const o=al[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Sr(r),!xr(r,i+1))return;const c={cached:Math.floor(Date.now()/ll),provider:e.provider,data:t};return oo(r,An+i.toString(),JSON.stringify(c))}t.lastModified&&!_h(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function fi(){}function wh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,lh(e)}))}function vh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=vr(n)))return;o.prepare(n,s,r).forEach(c=>{mh(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=to(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(d=>{u.delete(d)}),bh(e,l)}catch(a){console.error(a)}wh(e)})})}))}const Eh=(e,t)=>{const n=fh(e,!0,nl()),s=ch(n);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,fi)}),()=>{l=!1}}const r=Object.create(null),o=[];let i,c;return s.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,o.push(Nt(a,u));const d=r[a]||(r[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(l=>{const{provider:a,prefix:u,name:d}=l,p=Nt(a,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[a][u].push(d))}),o.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&vh(l,r[a][u])}),t?uh(t,s,o):fi};function xh(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in sl?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Sh=/[\s,]+/;function Rh(e,t){t.split(Sh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Oh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function Ch(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function Ah(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ph(e){return'url("data:image/svg+xml,'+Ah(e)+'")'}const di={...rl,inline:!1},Th={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ih={display:"inline-block"},Rr={backgroundColor:"currentColor"},hl={backgroundColor:"transparent"},hi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},pi={webkitMask:Rr,mask:Rr,background:hl};for(const e in pi){const t=pi[e];for(const n in hi)t[e+n]=hi[n]}const is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";is[e+"-flip"]=t,is[e.slice(0,1)+"-flip"]=t,is[e+"Flip"]=t});function mi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const gi=(e,t)=>{const n=xh(di,t),s={...Th},r=t.mode||"svg",o={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let w in t){const A=t[w];if(A!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[w]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Rh(n,A);break;case"color":o.color=A;break;case"rotate":typeof A=="string"?n[w]=Oh(A):typeof A=="number"&&(n[w]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete s["aria-hidden"];break;default:{const R=is[w];R?(A===!0||A==="true"||A===1)&&(n[R]=!0):di[w]===void 0&&(s[w]=A)}}}const l=Wd(e,n),a=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...c},Object.assign(s,a);let w=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),s.innerHTML=Yd(l.body,A?()=>A+"ID"+w++:"iconifyVue"),ds("svg",s)}const{body:u,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Ch(u,{...a,width:d+"",height:p+""});return s.style={...o,"--svg":Ph(g),width:mi(a.width),height:mi(a.height),...Ih,...m?Rr:hl,...c},ds("span",s)};nl(!0);Gd("",ih);if(typeof document<"u"&&typeof window<"u"){dl();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Kd(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Zd(n,r)||console.error(s)}catch{console.error(s)}}}}const kh={...js,body:""},nn=Hr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Ds(e,!1,!0))===null)return this.abortLoading(),null;const s=Hd(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Eh([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return gi(kh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),gi({...js,...t.data},n)}}),Nh={components:{Icon:nn},setup(){return{sm:Md()}}},Lh=O("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),Mh={class:"modal"},Fh={class:"modal-box relative"},$h=O("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),Dh=O("h3",{class:"font-bold text-lg"},"Download Settings",-1),jh={class:"flex flex-col justify-center my-4"},Uh={class:"form-control w-full"},Bh=O("label",{class:"label"},[O("span",{class:"label-text"},"Audio Provider")],-1),Hh=["selected"],qh={class:"form-control w-full"},Kh=O("label",{class:"label"},[O("span",{class:"label-text"},"Lyrics Provider")],-1),zh=["selected"],Vh={class:"form-control w-full"},Wh=O("label",{class:"label"},[O("span",{class:"label-text"},"Output Format")],-1),Jh=["selected"],Qh={key:0,class:"alert alert-success shadow-lg"},Xh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Changes saved")],-1),Yh=[Xh],Gh={key:1,class:"alert alert-error shadow-lg"},Zh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Error! Unable to save settings")],-1),ep=[Zh],tp={class:"modal-action"};function np(e,t,n,s,r,o){return U(),H(pe,null,[Lh,O("div",Mh,[O("div",Fh,[$h,Dh,O("div",jh,[O("div",Uh,[Bh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[0]||(t[0]=i=>s.sm.settings.value.audio_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.audio_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.audio_providers)==null?void 0:l[0])},Ce(i),9,Hh)}),128))],512),[[Js,s.sm.settings.value.audio_providers[0]]])]),O("div",qh,[Kh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[1]||(t[1]=i=>s.sm.settings.value.lyrics_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.lyrics_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.lyrics_providers)==null?void 0:l[0])},Ce(i),9,zh)}),128))],512),[[Js,s.sm.settings.value.lyrics_providers[0]]])]),O("div",Vh,[Wh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[2]||(t[2]=i=>s.sm.settings.value.format=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.format,(i,c)=>(U(),H("option",{key:c,selected:i===s.sm.settings.value.format},Ce(i),9,Jh))),128))],512),[[Js,s.sm.settings.value.format]])])]),s.sm.isSaved.value===!0?(U(),H("div",Qh,Yh)):dt("",!0),s.sm.isSaved.value===!1?(U(),H("div",Gh,ep)):dt("",!0),O("div",tp,[O("label",{class:"btn",onClick:t[3]||(t[3]=i=>s.sm.saveSettings())},"Save")])])])],64)}const sp=He(Nh,[["render",np]]),Ve=Pe(""),yi=Pe("light"),_i=Pe("dark");function pl({useSystem:e=!0,initialTheme:t="",newLightAlias:n=null,newDarkAlias:s=null}={}){function r(u){yi.value=u,a()}function o(u){_i.value=u,a()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c(u){Ve.value=u,a()}function l(){Ve==="dark"?Ve.value="light":Ve==="light"&&(Ve.value="dark"),a()}function a(){document.documentElement.setAttribute("data-theme",Ve.value==="dark"?_i.value:yi.value)}return Ve.value!=="light"&&Ve.value!=="dark"&&(e&&c(i()),(t==="light"||t==="dark")&&(Ve.value=t)),n&&r(n),s&&o(s),a(),{currentTheme:Ve,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:c,switchTheme:l}}const rp={name:"App",components:{Footer:rf,Settings:sp},setup(){const e=pl();return yc(()=>{e.setLightAlias("emerald"),e.setDarkAlias("forest")}),{themeMgr:e}}},op={class:"bg-base-300 absolute w-full top-0"};function ip(e,t,n,s,r,o){const i=Ee("router-view"),c=Ee("Footer"),l=Ee("Settings");return U(),H("div",op,[W(i),W(c),W(l)])}const cp=He(rp,[["render",ip]]);/*! + * vue-router v4.1.6 + * (c) 2022 Eduardo San Martin Morote + * @license MIT + */const Ut=typeof window<"u";function lp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const gn=()=>{},Be=Array.isArray,ap=/\/$/,up=e=>e.replace(ap,"");function er(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=pp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function fp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dp(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Xt(t.matched[s],n.matched[r])&&ml(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ml(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hp(e[n],t[n]))return!1;return!0}function hp(e,t){return Be(e)?wi(e,t):Be(t)?wi(t,e):e===t}function wi(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var Pn;(function(e){e.pop="pop",e.push="push"})(Pn||(Pn={}));var yn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yn||(yn={}));function mp(e){if(!e)if(Ut){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),up(e)}const gp=/^[^#]+#/;function yp(e,t){return e.replace(gp,"#")+t}function _p(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bs=()=>({left:window.pageXOffset,top:window.pageYOffset});function bp(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=_p(r,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 vi(e,t){return(history.state?history.state.position-t:-1)+e}const Or=new Map;function wp(e,t){Or.set(e,t)}function vp(e){const t=Or.get(e);return Or.delete(e),t}let Ep=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),bi(l,"")}return bi(n,e)+s+r}function xp(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const m=gl(e,location),g=n.value,w=t.value;let A=0;if(p){if(n.value=m,t.value=p,i&&i===g){i=null;return}A=w?p.position-w.position:0}else s(m);r.forEach(R=>{R(n.value,g,{delta:A,type:Pn.pop,direction:A?A>0?yn.forward:yn.back:yn.unknown})})};function l(){i=n.value}function a(p){r.push(p);const m=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Bs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:a,destroy:d}}function Ei(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bs():null}}function Sp(e){const{history:t,location:n}=window,s={value:gl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,a,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ep()+e+l;try{t[u?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(l,a){const u=Z({},t.state,Ei(r.value.back,l,r.value.forward,!0),a,{position:r.value.position});o(l,u,!0),s.value=l}function c(l,a){const u=Z({},r.value,t.state,{forward:l,scroll:Bs()});o(u.current,u,!0);const d=Z({},Ei(s.value,l,null),{position:u.position+1},a);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Rp(e){e=mp(e);const t=Sp(e),n=xp(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Z({location:"",base:e,go:s,createHref:yp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Op(e){return typeof e=="string"||e&&typeof e=="object"}function yl(e){return typeof e=="string"||typeof e=="symbol"}const lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_l=Symbol("");var xi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xi||(xi={}));function Yt(e,t){return Z(new Error,{type:e,[_l]:!0},t)}function Ze(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const Si="[^/]+?",Cp={sensitive:!1,strict:!1,start:!0,end:!0},Ap=/[.+*?^${}()[\]/\\]/g;function Pp(e,t){const n=Z({},Cp,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ip(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const kp={type:0,value:""},Np=/[a-zA-Z0-9_]/;function Lp(e){if(!e)return[[]];if(e==="/")return[[kp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,a="",u="";function d(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;c{i(N)}:gn}function i(u){if(yl(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!bl(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Ci(u)&&s.set(u.record.name,u)}function a(u,d){let p,m={},g,w;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw Yt(1,{location:u});w=p.record.name,m=Z(Oi(d.params,p.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&Oi(u.params,p.keys.map(N=>N.name))),g=p.stringify(m)}else if("path"in u)g=u.path,p=n.find(N=>N.re.test(g)),p&&(m=p.parse(g),w=p.record.name);else{if(p=d.name?s.get(d.name):n.find(N=>N.re.test(d.path)),!p)throw Yt(1,{location:u,currentLocation:d});w=p.record.name,m=Z({},d.params,u.params),g=p.stringify(m)}const A=[];let R=p;for(;R;)A.unshift(R.record),R=R.parent;return{name:w,path:g,params:m,matched:A,meta:jp(A)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function Oi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function $p(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dp(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 Dp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jp(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function bl(e,t){return t.children.some(n=>n===e||bl(e,n))}const wl=/#/g,Up=/&/g,Bp=/\//g,Hp=/=/g,qp=/\?/g,vl=/\+/g,Kp=/%5B/g,zp=/%5D/g,El=/%5E/g,Vp=/%60/g,xl=/%7B/g,Wp=/%7C/g,Sl=/%7D/g,Jp=/%20/g;function co(e){return encodeURI(""+e).replace(Wp,"|").replace(Kp,"[").replace(zp,"]")}function Qp(e){return co(e).replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Cr(e){return co(e).replace(vl,"%2B").replace(Jp,"+").replace(wl,"%23").replace(Up,"%26").replace(Vp,"`").replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Xp(e){return Cr(e).replace(Hp,"%3D")}function Yp(e){return co(e).replace(wl,"%23").replace(qp,"%3F")}function Gp(e){return e==null?"":Yp(e).replace(Bp,"%2F")}function ys(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Zp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Cr(o)):[s&&Cr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function em(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const tm=Symbol(""),Ti=Symbol(""),lo=Symbol(""),ao=Symbol(""),Ar=Symbol("");function an(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ft(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Yt(4,{from:n,to:t})):d instanceof Error?c(d):Op(d)?c(Yt(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},a=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(a);e.length<3&&(u=u.then(l)),u.catch(d=>c(d))})}function tr(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(nm(c)){const a=(c.__vccOpts||c)[t];a&&r.push(ft(a,n,s,o,i))}else{let l=c();r.push(()=>l.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=lp(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&ft(p,n,s,o,i)()}))}}return r}function nm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ii(e){const t=Ye(lo),n=Ye(ao),s=Te(()=>t.resolve(Kt(e.to))),r=Te(()=>{const{matched:l}=s.value,{length:a}=l,u=l[a-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Xt.bind(null,u));if(p>-1)return p;const m=ki(l[a-2]);return a>1&&ki(u)===m&&d[d.length-1].path!==m?d.findIndex(Xt.bind(null,l[a-2])):p}),o=Te(()=>r.value>-1&&im(n.params,s.value.params)),i=Te(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function c(l={}){return om(l)?t[Kt(e.replace)?"replace":"push"](Kt(e.to)).catch(gn):Promise.resolve()}return{route:s,href:Te(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const sm=Hr({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:Ii,setup(e,{slots:t}){const n=In(Ii(e)),{options:s}=Ye(lo),r=Te(()=>({[Ni(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ni(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),rm=sm;function om(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 im(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ni=(e,t,n)=>e??t??n,cm=Hr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Ar),r=Te(()=>e.route||s.value),o=Ye(Ti,0),i=Te(()=>{let a=Kt(o);const{matched:u}=r.value;let d;for(;(d=u[a])&&!d.components;)a++;return a}),c=Te(()=>r.value.matched[i.value]);Jn(Ti,Te(()=>i.value+1)),Jn(tm,c),Jn(Ar,r);const l=Pe();return dn(()=>[l.value,c.value,e.name],([a,u,d],[p,m,g])=>{u&&(u.instances[d]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Xt(u,m)||!p)&&(u.enterCallbacks[d]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,d=c.value,p=d&&d.components[u];if(!p)return Li(n.default,{Component:p,route:a});const m=d.props[u],g=m?m===!0?a.params:typeof m=="function"?m(a):m:null,A=ds(p,Z({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Li(n.default,{Component:A,route:a})||A}}});function Li(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lm=cm;function am(e){const t=Fp(e.routes,e),n=e.parseQuery||Zp,s=e.stringifyQuery||Pi,r=e.history,o=an(),i=an(),c=an(),l=ba(lt);let a=lt;Ut&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zs.bind(null,v=>""+v),d=Zs.bind(null,Gp),p=Zs.bind(null,ys);function m(v,k){let T,F;return yl(v)?(T=t.getRecordMatcher(v),F=k):F=v,t.addRoute(F,T)}function g(v){const k=t.getRecordMatcher(v);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(v=>v.record)}function A(v){return!!t.getRecordMatcher(v)}function R(v,k){if(k=Z({},k||l.value),typeof v=="string"){const f=er(n,v,k.path),h=t.resolve({path:f.path},k),y=r.createHref(f.fullPath);return Z(f,h,{params:p(h.params),hash:ys(f.hash),redirectedFrom:void 0,href:y})}let T;if("path"in v)T=Z({},v,{path:er(n,v.path,k.path).path});else{const f=Z({},v.params);for(const h in f)f[h]==null&&delete f[h];T=Z({},v,{params:d(v.params)}),k.params=d(k.params)}const F=t.resolve(T,k),Q=v.hash||"";F.params=u(p(F.params));const ce=fp(s,Z({},v,{hash:Qp(Q),path:F.path})),z=r.createHref(ce);return Z({fullPath:ce,hash:Q,query:s===Pi?em(v.query):v.query||{}},F,{redirectedFrom:void 0,href:z})}function N(v){return typeof v=="string"?er(n,v,l.value.path):Z({},v)}function M(v,k){if(a!==v)return Yt(8,{from:k,to:v})}function J(v){return ie(v)}function le(v){return J(Z(N(v),{replace:!0}))}function K(v){const k=v.matched[v.matched.length-1];if(k&&k.redirect){const{redirect:T}=k;let F=typeof T=="function"?T(v):T;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=N(F):{path:F},F.params={}),Z({query:v.query,hash:v.hash,params:"path"in F?{}:v.params},F)}}function ie(v,k){const T=a=R(v),F=l.value,Q=v.state,ce=v.force,z=v.replace===!0,f=K(T);if(f)return ie(Z(N(f),{state:typeof f=="object"?Z({},Q,f.state):Q,force:ce,replace:z}),k||T);const h=T;h.redirectedFrom=k;let y;return!ce&&dp(s,F,T)&&(y=Yt(16,{to:h,from:F}),_t(F,F,!0,!1)),(y?Promise.resolve(y):ke(h,F)).catch(b=>Ze(b)?Ze(b,2)?b:Ne(b):ne(b,h,F)).then(b=>{if(b){if(Ze(b,2))return ie(Z({replace:z},N(b.to),{state:typeof b.to=="object"?Z({},Q,b.to.state):Q,force:ce}),k||h)}else b=ot(h,F,!0,z,Q);return he(h,F,b),b})}function we(v,k){const T=M(v,k);return T?Promise.reject(T):Promise.resolve()}function ke(v,k){let T;const[F,Q,ce]=um(v,k);T=tr(F.reverse(),"beforeRouteLeave",v,k);for(const f of F)f.leaveGuards.forEach(h=>{T.push(ft(h,v,k))});const z=we.bind(null,v,k);return T.push(z),jt(T).then(()=>{T=[];for(const f of o.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).then(()=>{T=tr(Q,"beforeRouteUpdate",v,k);for(const f of Q)f.updateGuards.forEach(h=>{T.push(ft(h,v,k))});return T.push(z),jt(T)}).then(()=>{T=[];for(const f of v.matched)if(f.beforeEnter&&!k.matched.includes(f))if(Be(f.beforeEnter))for(const h of f.beforeEnter)T.push(ft(h,v,k));else T.push(ft(f.beforeEnter,v,k));return T.push(z),jt(T)}).then(()=>(v.matched.forEach(f=>f.enterCallbacks={}),T=tr(ce,"beforeRouteEnter",v,k),T.push(z),jt(T))).then(()=>{T=[];for(const f of i.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).catch(f=>Ze(f,8)?f:Promise.reject(f))}function he(v,k,T){for(const F of c.list())F(v,k,T)}function ot(v,k,T,F,Q){const ce=M(v,k);if(ce)return ce;const z=k===lt,f=Ut?history.state:{};T&&(F||z?r.replace(v.fullPath,Z({scroll:z&&f&&f.scroll},Q)):r.push(v.fullPath,Q)),l.value=v,_t(v,k,T,z),Ne()}let qe;function Ft(){qe||(qe=r.listen((v,k,T)=>{if(!Mn.listening)return;const F=R(v),Q=K(F);if(Q){ie(Z(Q,{replace:!0}),F).catch(gn);return}a=F;const ce=l.value;Ut&&wp(vi(ce.fullPath,T.delta),Bs()),ke(F,ce).catch(z=>Ze(z,12)?z:Ze(z,2)?(ie(z.to,F).then(f=>{Ze(f,20)&&!T.delta&&T.type===Pn.pop&&r.go(-1,!1)}).catch(gn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),ne(z,F,ce))).then(z=>{z=z||ot(F,ce,!1),z&&(T.delta&&!Ze(z,8)?r.go(-T.delta,!1):T.type===Pn.pop&&Ze(z,20)&&r.go(-1,!1)),he(F,ce,z)}).catch(gn)}))}let yt=an(),sn=an(),ae;function ne(v,k,T){Ne(v);const F=sn.list();return F.length?F.forEach(Q=>Q(v,k,T)):console.error(v),Promise.reject(v)}function ee(){return ae&&l.value!==lt?Promise.resolve():new Promise((v,k)=>{yt.add([v,k])})}function Ne(v){return ae||(ae=!v,Ft(),yt.list().forEach(([k,T])=>v?T(v):k()),yt.reset()),v}function _t(v,k,T,F){const{scrollBehavior:Q}=e;if(!Ut||!Q)return Promise.resolve();const ce=!T&&vp(vi(v.fullPath,0))||(F||!T)&&history.state&&history.state.scroll||null;return ic().then(()=>Q(v,k,ce)).then(z=>z&&bp(z)).catch(z=>ne(z,v,k))}const Le=v=>r.go(v);let Se;const $t=new Set,Mn={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,hasRoute:A,getRoutes:w,resolve:R,options:e,push:J,replace:le,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:sn.add,isReady:ee,install(v){const k=this;v.component("RouterLink",rm),v.component("RouterView",lm),v.config.globalProperties.$router=k,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Kt(l)}),Ut&&!Se&&l.value===lt&&(Se=!0,J(r.location).catch(Q=>{}));const T={};for(const Q in lt)T[Q]=Te(()=>l.value[Q]);v.provide(lo,k),v.provide(ao,In(T)),v.provide(Ar,l);const F=v.unmount;$t.add(v),v.unmount=function(){$t.delete(v),$t.size<1&&(a=lt,qe&&qe(),qe=null,l.value=lt,Se=!1,ae=!1),F()}}};return Mn}function jt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function um(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iXt(a,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(a=>Xt(a,l))||r.push(l))}return[n,s,r]}function Rl(){return Ye(ao)}const Mi=Pe(""),nr=Pe(),un=Pe(!1),Kn=Pe(!1),zn=Pe("");function uo(){function e(r){return t(r)||n(r)}function t(r){return!(r===""||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/"))}function n(r){return!!(r.includes("://open.spotify.com/track/")||r.includes("://open.spotify.com/playlist/"))}function s(r){console.log("Searching for:",r),nr.value=[],un.value=!0,Mi.value=r,Kn.value=!1,zn.value="",mt.search(r).then(o=>{console.log("Received Data:",o.data),o.status===200?(nr.value=o.data,un.value=!1):(console.log("Error:",o),un.value=!1,Kn.value=!0,zn.value=o.toString())}).catch(o=>{console.log("Other Error:",o.message),un.value=!1,Kn.value=!0,zn.value=o.message})}return{searchTerm:Mi,isSearching:un,results:nr,error:Kn,errorValue:zn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const vt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},Et=Pe([]);class fm{constructor(t){this.song=t,this.web_status=vt.QUEUED,this.progress=0,this.message=null,this.web_download_url=null}setDownloading(){this.web_status=vt.DOWNLOADING}setDownloaded(){this.web_status=vt.DOWNLOADED}setError(){this.web_status=vt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===vt.DOWNLOADING}isDownloaded(){return this.web_status===vt.DOWNLOADED}isErrored(){return this.web_status===vt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Hs(){function e(r){return Et.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new fm(r);Et.value.push(o)}function n(r){console.log("removing",r,r.song_id),Et.value=Et.value.filter(o=>o.song.song_id!==r.song_id),console.log(Et.value)}function s(r){return Et.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:Et}}const at=Hs();mt.ws_onmessage(e=>{let t=JSON.parse(e.data);at.getBySong(t.song).wsUpdate(t)});mt.ws_onerror(e=>{console.log("websocket error:",e)});function Ln(){function e(r){mt.open(r).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;for(const c of i)console.log("Opened Song:",c),n(c)}else console.log("Error:",o)}).catch(o=>{console.log("Other Error:",o.message)})}function t(r){console.log("Downloading",r),at.getBySong(r).setDownloading(),mt.download(r.url).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Download Complete:",i),at.getBySong(r).setWebURL(mt.downloadFileURL(i)),at.getBySong(r).setDownloaded()}else console.log("Error:",o),at.getBySong(r).setError()}).catch(o=>{console.log("Other Error:",o.message),at.getBySong(r).setError()})}function n(r,o=!0){at.appendSong(r),o&&t(r)}function s(r){console.log("removing"),at.removeSong(r)}return{fromURL:e,download:t,queue:n,remove:s}}const dm={components:{Icon:nn},setup(){const e=uo(),t=Ln(),n=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],s=Pe(n[0]),r=setInterval(()=>{n.push(n.shift()),s.value=n[0]},6e3);_c(()=>{clearInterval(r)});function o(c){if(e.isValidURL(c))t.fromURL(c),i({name:"Download"});else if(e.isValidSearch(c)){let l={name:"Search",params:{query:c}};e.isValidSearch(c)&&i(l)}else console.log("Invalid search term.")}function i(c){fo.push(c)}return{lookUp:o,searchTerm:e.searchTerm,isValidURL:e.isValidURL,placeHolder:s}}},hm={class:"flex flex-row items-center space-x-4 w-full"},pm=["placeholder"];function mm(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",hm,[Xn(O("input",{type:"text",placeholder:s.placeHolder,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":t[0]||(t[0]=c=>s.searchTerm=c),onKeyup:t[1]||(t[1]=Wu(c=>s.lookUp(s.searchTerm),["enter"]))},null,40,pm),[[zu,s.searchTerm]]),O("button",{class:"btn btn-square btn-primary",onClick:t[2]||(t[2]=c=>s.lookUp(s.searchTerm))},[me(" ​ "),s.isValidURL(s.searchTerm)?(U(),fs(i,{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(U(),fs(i,{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))])])}const Ol=He(dm,[["render",mm]]);const gm={components:{Icon:nn,SearchInput:Ol},setup(){return{themeMgr:pl({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"})}}},ym=e=>(fc("data-v-a94c0599"),e=e(),dc(),e),_m={class:"hero min-h-screen"},bm={key:0,class:"flex justify-end absolute top-0 right-0"},wm={class:"swap swap-rotate"},vm=["checked"],Em={for:"my-modal",class:"btn btn-square modal-button m-2"},xm={class:"block text-center justify-center hero-content"},Sm=Ic('

spotDL

Download your Spotify songs with embedded album art and metadata

',2),Rm={class:"alert alert-info shadow-lg my-4"},Om=ym(()=>O("span",null,[me("This web interface currently downloads only songs. "),O("br"),me(" Album, Artist, Playlist and Show links will not work.")],-1));function Cm(e,t,n,s,r,o){const i=Ee("Icon"),c=Ee("SearchInput");return U(),H("div",_m,[(U(),H("div",bm,[O("label",wm,[O("input",{type:"checkbox",onChange:t[0]||(t[0]=l=>s.themeMgr.setTheme(l.target.checked?"light":"dark")),checked:s.themeMgr.currentTheme.value==="dark"?!1:"checked"},null,40,vm),me(" ​ "),W(i,{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),me(" ​ "),W(i,{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",Em,[me(" ​ "),W(i,{icon:"clarity:settings-line",class:"h-6 w-6"})])])),O("div",xm,[Sm,W(c),O("div",Rm,[O("div",null,[W(i,{icon:"clarity:info-circle-line",class:"swap-off fill-current h-6 w-6"}),Om])])])])}const Am=He(gm,[["render",Cm],["__scopeId","data-v-a94c0599"]]),Pm={components:{Hero:Am},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Tm(e,t,n,s,r,o){const i=Ee("Hero");return U(),fs(i)}const Im=He(Pm,[["render",Tm]]);const km={components:{Icon:nn,SearchInput:Ol},setup(){const e=Hs(),t=Ln(),n=Rl();function s(r){fo.push(r)}return{goto:s,route:n,pt:e,dm:t}}},Cl=e=>(fc("data-v-e0cba7f6"),e=e(),dc(),e),Nm={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},Lm=Cl(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:Vr,class:"py-2 pr-2 w-10 center"})],-1)),Mm=Cl(()=>O("button",{class:"text-lg font-bold"},"spotDL",-1)),Fm=[Lm,Mm],$m={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},Dm={class:"navbar-end"},jm={for:"my-modal",class:"btn btn-square modal-button mx-2"},Um={class:"indicator"},Bm={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},Hm={class:"sm:hidden px-2 mx-2"};function qm(e,t,n,s,r,o){const i=Ee("SearchInput"),c=Ee("Icon");return U(),H(pe,null,[O("div",Nm,[O("button",{class:"px-2 mx-2 navbar-start",onClick:t[0]||(t[0]=l=>s.goto({name:"Home"}))},Fm),O("div",$m,[W(i,{class:"w-full"})]),O("div",Dm,[O("label",jm,[me(" ​ "),W(c,{icon:"clarity:settings-line",class:"h-6 w-6"})]),O("div",Um,[s.pt.downloadQueue.value.length>0?(U(),H("div",Bm,Ce(s.pt.downloadQueue.value.length),1)):dt("",!0),O("a",{class:bs(["btn btn-square",s.route.name==="Download"?"btn-primary":"btn-ghost"]),onClick:t[1]||(t[1]=l=>s.goto({name:"Download"}))},[me(" ​ "),W(c,{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),O("div",Hm,[W(i,{class:"w-full"})])],64)}const Al=He(km,[["render",qm],["__scopeId","data-v-e0cba7f6"]]),Km={components:{Icon:nn},props:["data","error"],emits:["download"],setup(e,t){const n=uo(),s=Hs(),r=Ln();return{data:e.data,error:e.error,errorValue:n.errorValue,loading:n.isSearching,download:o=>t.emit("download",o),dm:r,pt:s}}},zm={class:"min-h-screen m-2"},Vm={key:0,class:"hero min-h-screen"},Wm={key:0,class:"btn btn-sm btn-ghost loading"},Jm={key:1,class:"alert alert-error"},Qm={class:"flex-1"},Xm=O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Ym={class:"aspect-square md:max-h-fit"},Gm=["src"],Zm={class:"card-body"},eg={class:"card-title"},tg={key:0,class:"badge mx-0.5 badge-error"},ng={key:0},sg=O("br",null,null,-1),rg=O("p",null,[O("br")],-1),og={class:"card-actions absolute bottom-0 right-0 m-2"},ig=["href"],cg={key:0,class:"btn btn-primary btn-square"},lg=["onClick"];function ag(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",zm,[s.loading||s.error?(U(),H("div",Vm,[s.loading?(U(),H("button",Wm," LOADING ")):dt("",!0),s.error?(U(),H("div",Jm,[O("div",Qm,[Xm,O("label",null,"Error: "+Ce(s.errorValue),1)])])):dt("",!0)])):(U(!0),H(pe,{key:1},Pt(s.data,(c,l)=>{var a;return U(),H("div",{key:l,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[O("figure",Ym,[O("img",{src:c.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Gm)]),O("div",Zm,[O("h2",eg,[me(Ce(c.name)+" ",1),c.explicit?(U(),H("div",tg," Explicit ")):dt("",!0)]),O("h3",null,[(U(!0),H(pe,null,Pt(c.artists,(u,d)=>(U(),H("a",{key:d},[d!==0?(U(),H("a",ng," • ")):dt("",!0),me(" "+Ce(u),1)]))),128))]),O("h3",null,Ce(c.album_name),1),sg,rg,O("div",og,[O("a",{class:"btn btn-ghost btn-square",href:c.url,target:"_blank"},[me(" ​ "),W(i,{icon:"clarity:link-line",class:"h-6 w-6"})],8,ig),(a=s.pt.getBySong(c))!=null&&a.isQueued()?(U(),H("button",cg,[me(" ​ "),W(i,{icon:"clarity:check-line",class:"h-6 w-6"})])):(U(),H("button",{key:1,class:"btn btn-primary btn-square",onClick:u=>s.download(c)},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,lg))])])])}),128))])}const ug=He(Km,[["render",ag]]),fg={components:{Navbar:Al,SearchList:ug},setup(){Ts(()=>{window.scroll(0,0)});const e=Rl(),t=uo(),n=Ln();return dn(()=>e.params.query,()=>{e.params.query&&t.searchFor(e.params.query)},{deep:!0}),t.searchFor(e.params.query),{sm:t,dm:n}}};function dg(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("SearchList");return U(),H("div",null,[W(i),W(c,{data:s.sm.results,error:s.sm.error,onDownload:t[0]||(t[0]=l=>s.dm.queue(l))},null,8,["data","error"])])}const hg=He(fg,[["render",dg]]),pg={components:{Icon:nn},props:{data:Object},setup(e,t){const n=Hs(),s=Ln();function r(o){const i=document.createElement("a");i.href=o,i.download=o.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return{dm:s,pt:n,download:r}}},mg={class:"min-h-screen m-2"},gg={key:0},yg=O("div",{class:"alert shadow-lg"},[O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"No downloads are queued. Search for a song to begin.")])],-1),_g=[yg],bg={key:1},wg={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},vg=["src"],Eg={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},xg={class:"card-title"},Sg={class:"stat-figure text-primary flex space-x-2 items-center"},Rg={key:0,class:"badge badge-error gap-2"},Og={class:"badge"},Cg=["onClick"],Ag=["onClick"],Pg={key:2,class:"btn btn-square btn-ghost loading"};function Tg(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",mg,[s.pt.downloadQueue.value.length===0?(U(),H("div",gg,_g)):(U(),H("div",bg,[O("div",wg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"carousel-item h-48"},[O("img",{src:c.song.cover_url},null,8,vg)]))),128))]),O("div",Eg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"card-body grid grid-rows-1"},[O("h2",xg,Ce(c.song.name)+" - "+Ce(c.song.artist),1),O("p",null,Ce(c.song.album_name),1),O("div",Sg,[c.isErrored()?(U(),H("div",Rg," error ")):dt("",!0),O("span",Og,Ce(c.message||c.web_status),1),O("button",{class:"btn btn-error btn-outline btn-square",onClick:a=>s.dm.remove(c.song)},[me(" ​ "),W(i,{icon:"clarity:trash-line",class:"h-6 w-6"})],8,Cg),c.isDownloaded()?(U(),H("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:a=>s.download(c.web_download_url),download:""},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,Ag)):c.progress===0?(U(),H("button",Pg," ​ ")):(U(),H("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:_s(`--value: ${c.progress}; --size: 2.5rem`)},Ce(Math.round(c.progress))+"% ",5))])]))),128))])]))])}const Ig=He(pg,[["render",Tg]]),kg={components:{Navbar:Al,DownloadList:Ig},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Ng(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("DownloadList");return U(),H("div",null,[W(i),W(c)])}const Lg=He(kg,[["render",Ng]]),Mg=[{path:"/",name:"Home",component:Im},{path:"/search/:query",name:"Search",component:hg},{path:"/download",name:"Download",component:Lg}],fo=am({history:Rp($e.BASEURL),routes:Mg});const Pl=Xu(cp);Pl.use(fo);Pl.mount("#app"); From dcf53c1852435fa21bb391666334311965942fac Mon Sep 17 00:00:00 2001 From: oscarvx00 Date: Mon, 12 Jun 2023 17:02:42 +0200 Subject: [PATCH 05/22] Added loading state to search button --- dist/assets/{index-21e675e3.js => index-5f1ccdb6.js} | 8 ++++---- dist/index.html | 2 +- src/components/SearchInput.vue | 8 +++++++- 3 files changed, 12 insertions(+), 6 deletions(-) rename dist/assets/{index-21e675e3.js => index-5f1ccdb6.js} (78%) diff --git a/dist/assets/index-21e675e3.js b/dist/assets/index-5f1ccdb6.js similarity index 78% rename from dist/assets/index-21e675e3.js rename to dist/assets/index-5f1ccdb6.js index aab210b..c29c175 100644 --- a/dist/assets/index-21e675e3.js +++ b/dist/assets/index-5f1ccdb6.js @@ -1,7 +1,7 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Pr(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function _s(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(Il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function bs(e){let t="";if(fe(e))t=e;else if(j(e))for(let n=0;nws(n,t))}const Ce=e=>fe(e)?e:e==null?"":j(e)||re(e)&&(e.toString===ji||!q(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:re(t)&&!j(t)&&!Ui(t)?String(t):t,oe={},Bt=[],je=()=>{},Dl=()=>!1,jl=/^on[^a-z]/,vs=e=>jl.test(e),Tr=e=>e.startsWith("onUpdate:"),xe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ul=Object.prototype.hasOwnProperty,X=(e,t)=>Ul.call(e,t),j=Array.isArray,Ht=e=>Tn(e)==="[object Map]",Es=e=>Tn(e)==="[object Set]",go=e=>Tn(e)==="[object Date]",q=e=>typeof e=="function",fe=e=>typeof e=="string",_n=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Di=e=>re(e)&&q(e.then)&&q(e.catch),ji=Object.prototype.toString,Tn=e=>ji.call(e),Bl=e=>Tn(e).slice(8,-1),Ui=e=>Tn(e)==="[object Object]",kr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hl=/-(\w)/g,Ge=xs(e=>e.replace(Hl,(t,n)=>n?n.toUpperCase():"")),ql=/\B([A-Z])/g,Lt=xs(e=>e.replace(ql,"-$1").toLowerCase()),Ss=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=xs(e=>e?`on${Ss(e)}`:""),bn=(e,t)=>!Object.is(e,t),Wn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yo;const Kl=()=>yo||(yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class zl{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Bi=e=>(e.w>)>0,Hi=e=>(e.n>)>0,Wl=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&c.push(a)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":j(e)?kr(n)&&c.push(i.get("length")):(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"delete":j(e)||(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"set":Ht(e)&&c.push(i.get(At));break}if(c.length===1)c[0]&&ir(c[0]);else{const l=[];for(const a of c)a&&l.push(...a);ir(Nr(l))}}function ir(e,t){const n=j(e)?e:[...e];for(const s of n)s.computed&&bo(s);for(const s of n)s.computed||bo(s)}function bo(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ql=Pr("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_n)),Xl=Mr(),Yl=Mr(!1,!0),Gl=Mr(!0),wo=Zl();function Zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=G(this);for(let o=0,i=this.length;o{e[t]=function(...n){Gt();const s=G(this)[t].apply(this,n);return Zt(),s}}),e}function Mr(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?ma:Xi:t?Qi:Ji).get(s))return s;const i=j(s);if(!e&&i&&X(wo,r))return Reflect.get(wo,r,o);const c=Reflect.get(s,r,o);return(_n(r)?zi.has(r):Ql(r))||(e||Ae(s,"get",r),t)?c:be(c)?i&&kr(r)?c:c.value:re(c)?e?Yi(c):In(c):c}}const ea=Vi(),ta=Vi(!0);function Vi(e=!1){return function(n,s,r,o){let i=n[s];if(Vt(i)&&be(i)&&!be(r))return!1;if(!e&&(!ls(r)&&!Vt(r)&&(i=G(i),r=G(r)),!j(n)&&be(i)&&!be(r)))return i.value=r,!0;const c=j(n)&&kr(s)?Number(s)e,Rs=e=>Reflect.getPrototypeOf(e);function Fn(e,t,n=!1,s=!1){e=e.__v_raw;const r=G(e),o=G(t);n||(t!==o&&Ae(r,"get",t),Ae(r,"get",o));const{has:i}=Rs(r),c=s?Fr:n?jr:vn;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function $n(e,t=!1){const n=this.__v_raw,s=G(n),r=G(e);return t||(e!==r&&Ae(s,"has",e),Ae(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Dn(e,t=!1){return e=e.__v_raw,!t&&Ae(G(e),"iterate",At),Reflect.get(e,"size",e)}function vo(e){e=G(e);const t=G(this);return Rs(t).has.call(t,e)||(t.add(e),nt(t,"add",e,e)),this}function Eo(e,t){t=G(t);const n=G(this),{has:s,get:r}=Rs(n);let o=s.call(n,e);o||(e=G(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?bn(t,i)&&nt(n,"set",e,t):nt(n,"add",e,t),this}function xo(e){const t=G(this),{has:n,get:s}=Rs(t);let r=n.call(t,e);r||(e=G(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&nt(t,"delete",e,void 0),o}function So(){const e=G(this),t=e.size!==0,n=e.clear();return t&&nt(e,"clear",void 0,void 0),n}function jn(e,t){return function(s,r){const o=this,i=o.__v_raw,c=G(i),l=t?Fr:e?jr:vn;return!e&&Ae(c,"iterate",At),i.forEach((a,u)=>s.call(r,l(a),l(u),o))}}function Un(e,t,n){return function(...s){const r=this.__v_raw,o=G(r),i=Ht(o),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,a=r[e](...s),u=n?Fr:t?jr:vn;return!t&&Ae(o,"iterate",l?or:At),{next(){const{value:d,done:p}=a.next();return p?{value:d,done:p}:{value:c?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){return e==="delete"?!1:this}}function ca(){const e={get(o){return Fn(this,o)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!1)},t={get(o){return Fn(this,o,!1,!0)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!0)},n={get(o){return Fn(this,o,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!1)},s={get(o){return Fn(this,o,!0,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Un(o,!1,!1),n[o]=Un(o,!0,!1),t[o]=Un(o,!1,!0),s[o]=Un(o,!0,!0)}),[e,n,t,s]}const[la,aa,ua,fa]=ca();function $r(e,t){const n=t?e?fa:ua:e?aa:la;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(X(n,r)&&r in s?n:s,r,o)}const da={get:$r(!1,!1)},ha={get:$r(!1,!0)},pa={get:$r(!0,!1)},Ji=new WeakMap,Qi=new WeakMap,Xi=new WeakMap,ma=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ya(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(Bl(e))}function In(e){return Vt(e)?e:Dr(e,!1,Wi,da,Ji)}function _a(e){return Dr(e,!1,ia,ha,Qi)}function Yi(e){return Dr(e,!0,oa,pa,Xi)}function Dr(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ya(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function qt(e){return Vt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function Gi(e){return qt(e)||Vt(e)}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function Zi(e){return cs(e,"__v_skip",!0),e}const vn=e=>re(e)?In(e):e,jr=e=>re(e)?Yi(e):e;function ec(e){ht&&Fe&&(e=G(e),Ki(e.dep||(e.dep=Nr())))}function tc(e,t){e=G(e),e.dep&&ir(e.dep)}function be(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){return nc(e,!1)}function ba(e){return nc(e,!0)}function nc(e,t){return be(e)?e:new wa(e,t)}class wa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:G(t),this._value=n?t:vn(t)}get value(){return ec(this),this._value}set value(t){const n=this.__v_isShallow||ls(t)||Vt(t);t=n?t:G(t),bn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vn(t),tc(this))}}function Kt(e){return be(e)?e.value:e}const va={get:(e,t,n)=>Kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function sc(e){return qt(e)?e:new Proxy(e,va)}var rc;class Ea{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rc]=!1,this._dirty=!0,this.effect=new Lr(t,()=>{this._dirty||(this._dirty=!0,tc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=G(this);return ec(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rc="__v_isReadonly";function xa(e,t,n=!1){let s,r;const o=q(e);return o?(s=e,r=je):(s=e.get,r=e.set),new Ea(s,r,o||!r,n)}function pt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Os(o,t,n)}return r}function Ue(e,t,n,s){if(q(e)){const o=pt(e,t,n,s);return o&&Di(o)&&o.catch(i=>{Os(i,t,n)}),o}const r=[];for(let o=0;o>>1;xn(_e[s])Qe&&_e.splice(t,1)}function Ca(e){j(e)?zt.push(...e):(!et||!et.includes(e,e.allowRecurse?St+1:St))&&zt.push(e),cc()}function Ro(e,t=En?Qe+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function lc(e){if(zt.length){const t=[...new Set(zt)];if(zt.length=0,et){et.push(...t);return}for(et=t,et.sort((n,s)=>xn(n)-xn(s)),St=0;Ste.id==null?1/0:e.id,Aa=(e,t)=>{const n=xn(e)-xn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ac(e){cr=!1,En=!0,_e.sort(Aa);const t=je;try{for(Qe=0;Qe<_e.length;Qe++){const n=_e[Qe];n&&n.active!==!1&&pt(n,null,14)}}finally{Qe=0,_e.length=0,lc(),En=!1,Ur=null,(_e.length||zt.length)&&ac()}}function Pa(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:p}=s[u]||oe;p&&(r=n.map(m=>fe(m)?m.trim():m)),d&&(r=n.map(wn))}let c,l=s[c=qs(t)]||s[c=qs(Ge(t))];!l&&o&&(l=s[c=qs(Lt(t))]),l&&Ue(l,e,6,r);const a=s[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ue(a,e,6,r)}}function uc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!q(e)){const l=a=>{const u=uc(a,t,!0);u&&(c=!0,xe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!c?(re(e)&&s.set(e,null),null):(j(o)?o.forEach(l=>i[l]=null):xe(i,o),re(e)&&s.set(e,i),i)}function Cs(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,Lt(t))||X(e,t))}let Ie=null,As=null;function as(e){const t=Ie;return Ie=e,As=e&&e.type.__scopeId||null,t}function fc(e){As=e}function dc(){As=null}function Ta(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Lo(-1);const o=as(t);let i;try{i=e(...r)}finally{as(o),s._d&&Lo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:m,ctx:g,inheritAttrs:w}=e;let A,R;const N=as(e);try{if(n.shapeFlag&4){const J=r||s;A=Je(u.call(J,J,d,o,m,p,g)),R=l}else{const J=t;A=Je(J.length>1?J(o,{attrs:l,slots:c,emit:a}):J(o,null)),R=t.props?l:Ia(l)}}catch(J){pn.length=0,Os(J,e,1),A=W(It)}let M=A;if(R&&w!==!1){const J=Object.keys(R),{shapeFlag:le}=M;J.length&&le&7&&(i&&J.some(Tr)&&(R=ka(R,i)),M=Wt(M,R))}return n.dirs&&(M=Wt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),A=M,as(N),A}const Ia=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},ka=(e,t)=>{const n={};for(const s in e)(!Tr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Na(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:l}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Oo(s,i,a):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Fa(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Ca(e)}function Jn(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Ye(e,t,n=!1){const s=ye||Ie;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s.proxy):t}}const Bn={};function dn(e,t,n){return hc(e,t,n)}function hc(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=oe){const c=ye;let l,a=!1,u=!1;if(be(e)?(l=()=>e.value,a=ls(e)):qt(e)?(l=()=>e,s=!0):j(e)?(u=!0,a=e.some(M=>qt(M)||ls(M)),l=()=>e.map(M=>{if(be(M))return M.value;if(qt(M))return Ct(M);if(q(M))return pt(M,c,2)})):q(e)?t?l=()=>pt(e,c,2):l=()=>{if(!(c&&c.isUnmounted))return d&&d(),Ue(e,c,3,[p])}:l=je,t&&s){const M=l;l=()=>Ct(M())}let d,p=M=>{d=R.onStop=()=>{pt(M,c,4)}},m;if(Rn)if(p=je,t?n&&Ue(t,c,3,[l(),u?[]:void 0,p]):l(),r==="sync"){const M=Ou();m=M.__watcherHandles||(M.__watcherHandles=[])}else return je;let g=u?new Array(e.length).fill(Bn):Bn;const w=()=>{if(R.active)if(t){const M=R.run();(s||a||(u?M.some((J,le)=>bn(J,g[le])):bn(M,g)))&&(d&&d(),Ue(t,c,3,[M,g===Bn?void 0:u&&g[0]===Bn?[]:g,p]),g=M)}else R.run()};w.allowRecurse=!!t;let A;r==="sync"?A=w:r==="post"?A=()=>Re(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),A=()=>Br(w));const R=new Lr(l,A);t?n?w():g=R.run():r==="post"?Re(R.run.bind(R),c&&c.suspense):R.run();const N=()=>{R.stop(),c&&c.scope&&Ir(c.scope.effects,R)};return m&&m.push(N),N}function $a(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?pc(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=ye;Jt(this);const c=hc(r,o.bind(s),n);return i?Jt(i):Tt(),c}function pc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ct(n,t)});else if(Ui(e))for(const n in e)Ct(e[n],t);return e}function Hr(e){return q(e)?{setup:e,name:e.name}:e}const Qn=e=>!!e.type.__asyncLoader,mc=e=>e.type.__isKeepAlive;function Da(e,t){gc(e,"a",t)}function ja(e,t){gc(e,"da",t)}function gc(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ps(t,s,n),n){let r=n.parent;for(;r&&r.parent;)mc(r.parent.vnode)&&Ua(s,t,n,r),r=r.parent}}function Ua(e,t,n,s){const r=Ps(t,e,s,!0);bc(()=>{Ir(s[t],r)},n)}function Ps(e,t,n=ye,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Gt(),Jt(n);const c=Ue(t,n,e,i);return Tt(),Zt(),c});return s?r.unshift(o):r.push(o),o}}const st=e=>(t,n=ye)=>(!Rn||e==="sp")&&Ps(e,(...s)=>t(...s),n),yc=st("bm"),Ts=st("m"),Ba=st("bu"),Ha=st("u"),_c=st("bum"),bc=st("um"),qa=st("sp"),Ka=st("rtg"),za=st("rtc");function Va(e,t=ye){Ps("ec",e,t)}function Xn(e,t){const n=Ie;if(n===null)return e;const s=Ns(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,l=i.length;ce?kc(e)?Ns(e)||e.proxy:lr(e.parent):null,hn=xe(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=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>qr(e),$forceUpdate:e=>e.f||(e.f=()=>Br(e.update)),$nextTick:e=>e.n||(e.n=ic.bind(e.proxy)),$watch:e=>$a.bind(e)}),zs=(e,t)=>e!==oe&&!e.__isScriptSetup&&X(e,t),Qa={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=e;let a;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(zs(s,t))return i[t]=1,s[t];if(r!==oe&&X(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&X(a,t))return i[t]=3,o[t];if(n!==oe&&X(n,t))return i[t]=4,n[t];ar&&(i[t]=0)}}const u=hn[t];let d,p;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==oe&&X(n,t))return i[t]=4,n[t];if(p=l.config.globalProperties,X(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return zs(r,t)?(r[t]=n,!0):s!==oe&&X(s,t)?(s[t]=n,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==oe&&X(e,i)||zs(t,i)||(c=o[0])&&X(c,i)||X(s,i)||X(hn,i)||X(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:X(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ar=!0;function Xa(e){const t=qr(e),n=e.proxy,s=e.ctx;ar=!1,t.beforeCreate&&Ao(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:A,beforeDestroy:R,beforeUnmount:N,destroyed:M,unmounted:J,render:le,renderTracked:K,renderTriggered:ie,errorCaptured:we,serverPrefetch:ke,expose:he,inheritAttrs:ot,components:qe,directives:Ft,filters:yt}=t;if(a&&Ya(a,s,null,e.appContext.config.unwrapInjectedRef),i)for(const ne in i){const ee=i[ne];q(ee)&&(s[ne]=ee.bind(n))}if(r){const ne=r.call(n,n);re(ne)&&(e.data=In(ne))}if(ar=!0,o)for(const ne in o){const ee=o[ne],Ne=q(ee)?ee.bind(n,n):q(ee.get)?ee.get.bind(n,n):je,_t=!q(ee)&&q(ee.set)?ee.set.bind(n):je,Le=Te({get:Ne,set:_t});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Se=>Le.value=Se})}if(c)for(const ne in c)vc(c[ne],s,n,ne);if(l){const ne=q(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ee=>{Jn(ee,ne[ee])})}u&&Ao(u,e,"c");function ae(ne,ee){j(ee)?ee.forEach(Ne=>ne(Ne.bind(n))):ee&&ne(ee.bind(n))}if(ae(yc,d),ae(Ts,p),ae(Ba,m),ae(Ha,g),ae(Da,w),ae(ja,A),ae(Va,we),ae(za,K),ae(Ka,ie),ae(_c,N),ae(bc,J),ae(qa,ke),j(he))if(he.length){const ne=e.exposed||(e.exposed={});he.forEach(ee=>{Object.defineProperty(ne,ee,{get:()=>n[ee],set:Ne=>n[ee]=Ne})})}else e.exposed||(e.exposed={});le&&e.render===je&&(e.render=le),ot!=null&&(e.inheritAttrs=ot),qe&&(e.components=qe),Ft&&(e.directives=Ft)}function Ya(e,t,n=je,s=!1){j(e)&&(e=ur(e));for(const r in e){const o=e[r];let i;re(o)?"default"in o?i=Ye(o.from||r,o.default,!0):i=Ye(o.from||r):i=Ye(o),be(i)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[r]=i}}function Ao(e,t,n){Ue(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vc(e,t,n,s){const r=s.includes(".")?pc(n,s):()=>n[s];if(fe(e)){const o=t[e];q(o)&&dn(r,o)}else if(q(e))dn(r,e.bind(n));else if(re(e))if(j(e))e.forEach(o=>vc(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&dn(r,o,e)}}function qr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(a=>us(l,a,i,!0)),us(l,t,i)),re(t)&&o.set(t,l),l}function us(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&us(e,o,n,!0),r&&r.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Ga[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ga={data:Po,props:xt,emits:xt,methods:xt,computed:xt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:xt,directives:xt,watch:eu,provide:Po,inject:Za};function Po(e,t){return t?e?function(){return xe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Za(e,t){return xt(ur(e),ur(t))}function ur(e){if(j(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[p,m]=xc(d,t,!0);xe(i,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return re(e)&&s.set(e,Bt),Bt;if(j(o))for(let u=0;u-1,m[1]=w<0||g-1||X(m,"default"))&&c.push(d)}}}const a=[i,c];return re(e)&&s.set(e,a),a}function To(e){return e[0]!=="$"}function Io(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ko(e,t){return Io(e)===Io(t)}function No(e,t){return j(t)?t.findIndex(n=>ko(n,e)):q(t)&&ko(t,e)?0:-1}const Sc=e=>e[0]==="_"||e==="$stable",Kr=e=>j(e)?e.map(Je):[Je(e)],su=(e,t,n)=>{if(t._n)return t;const s=Ta((...r)=>Kr(t(...r)),n);return s._c=!1,s},Rc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Sc(r))continue;const o=e[r];if(q(o))t[r]=su(r,o,s);else if(o!=null){const i=Kr(o);t[r]=()=>i}}},Oc=(e,t)=>{const n=Kr(t);e.slots.default=()=>n},ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=G(t),cs(t,"_",n)):Rc(t,e.slots={})}else e.slots={},t&&Oc(e,t);cs(e.slots,ks,1)},ou=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(xe(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Rc(t,r)),i=t}else t&&(Oc(e,t),i={default:1});if(o)for(const c in r)!Sc(c)&&!(c in i)&&delete r[c]};function Cc(){return{app:null,config:{isNativeTag:Dl,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 iu=0;function cu(e,t){return function(s,r=null){q(s)||(s=Object.assign({},s)),r!=null&&!re(r)&&(r=null);const o=Cc(),i=new Set;let c=!1;const l=o.app={_uid:iu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Cu,get config(){return o.config},set config(a){},use(a,...u){return i.has(a)||(a&&q(a.install)?(i.add(a),a.install(l,...u)):q(a)&&(i.add(a),a(l,...u))),l},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),l},component(a,u){return u?(o.components[a]=u,l):o.components[a]},directive(a,u){return u?(o.directives[a]=u,l):o.directives[a]},mount(a,u,d){if(!c){const p=W(s,r);return p.appContext=o,u&&t?t(p,a):e(p,a,d),c=!0,l._container=a,a.__vue_app__=l,Ns(p.component)||p.component.proxy}},unmount(){c&&(e(null,l._container),delete l._container.__vue_app__)},provide(a,u){return o.provides[a]=u,l}};return l}}function dr(e,t,n,s,r=!1){if(j(e)){e.forEach((p,m)=>dr(p,t&&(j(t)?t[m]:t),n,s,r));return}if(Qn(s)&&!r)return;const o=s.shapeFlag&4?Ns(s.component)||s.component.proxy:s.el,i=r?null:o,{i:c,r:l}=e,a=t&&t.r,u=c.refs===oe?c.refs={}:c.refs,d=c.setupState;if(a!=null&&a!==l&&(fe(a)?(u[a]=null,X(d,a)&&(d[a]=null)):be(a)&&(a.value=null)),q(l))pt(l,c,12,[i,u]);else{const p=fe(l),m=be(l);if(p||m){const g=()=>{if(e.f){const w=p?X(d,l)?d[l]:u[l]:l.value;r?j(w)&&Ir(w,o):j(w)?w.includes(o)||w.push(o):p?(u[l]=[o],X(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,X(d,l)&&(d[l]=i)):m&&(l.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,Re(g,n)):g()}}}const Re=Fa;function lu(e){return au(e)}function au(e,t){const n=Kl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:m=je,insertStaticContent:g}=e,w=(f,h,y,b=null,E=null,C=null,I=!1,S=null,P=!!h.dynamicChildren)=>{if(f===h)return;f&&!on(f,h)&&(b=T(f),Se(f,E,C,!0),f=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:x,ref:$,shapeFlag:L}=h;switch(x){case Is:A(f,h,y,b);break;case It:R(f,h,y,b);break;case Yn:f==null&&N(h,y,b,I);break;case pe:qe(f,h,y,b,E,C,I,S,P);break;default:L&1?le(f,h,y,b,E,C,I,S,P):L&6?Ft(f,h,y,b,E,C,I,S,P):(L&64||L&128)&&x.process(f,h,y,b,E,C,I,S,P,Q)}$!=null&&E&&dr($,f&&f.ref,C,h||f,!h)},A=(f,h,y,b)=>{if(f==null)s(h.el=c(h.children),y,b);else{const E=h.el=f.el;h.children!==f.children&&a(E,h.children)}},R=(f,h,y,b)=>{f==null?s(h.el=l(h.children||""),y,b):h.el=f.el},N=(f,h,y,b)=>{[f.el,f.anchor]=g(f.children,h,y,b,f.el,f.anchor)},M=({el:f,anchor:h},y,b)=>{let E;for(;f&&f!==h;)E=p(f),s(f,y,b),f=E;s(h,y,b)},J=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=p(f),r(f),f=y;r(h)},le=(f,h,y,b,E,C,I,S,P)=>{I=I||h.type==="svg",f==null?K(h,y,b,E,C,I,S,P):ke(f,h,E,C,I,S,P)},K=(f,h,y,b,E,C,I,S)=>{let P,x;const{type:$,props:L,shapeFlag:D,transition:B,dirs:V}=f;if(P=f.el=i(f.type,C,L&&L.is,L),D&8?u(P,f.children):D&16&&we(f.children,P,null,b,E,C&&$!=="foreignObject",I,S),V&&bt(f,null,b,"created"),L){for(const te in L)te!=="value"&&!Vn(te)&&o(P,te,null,L[te],C,f.children,b,E,k);"value"in L&&o(P,"value",null,L.value),(x=L.onVnodeBeforeMount)&&ze(x,b,f)}ie(P,f,f.scopeId,I,b),V&&bt(f,null,b,"beforeMount");const se=(!E||E&&!E.pendingBranch)&&B&&!B.persisted;se&&B.beforeEnter(P),s(P,h,y),((x=L&&L.onVnodeMounted)||se||V)&&Re(()=>{x&&ze(x,b,f),se&&B.enter(P),V&&bt(f,null,b,"mounted")},E)},ie=(f,h,y,b,E)=>{if(y&&m(f,y),b)for(let C=0;C{for(let x=P;x{const S=h.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=h;P|=f.patchFlag&16;const L=f.props||oe,D=h.props||oe;let B;y&&wt(y,!1),(B=D.onVnodeBeforeUpdate)&&ze(B,y,h,f),$&&bt(h,f,y,"beforeUpdate"),y&&wt(y,!0);const V=E&&h.type!=="foreignObject";if(x?he(f.dynamicChildren,x,S,y,b,V,C):I||ee(f,h,S,null,y,b,V,C,!1),P>0){if(P&16)ot(S,h,L,D,y,b,E);else if(P&2&&L.class!==D.class&&o(S,"class",null,D.class,E),P&4&&o(S,"style",L.style,D.style,E),P&8){const se=h.dynamicProps;for(let te=0;te{B&&ze(B,y,h,f),$&&bt(h,f,y,"updated")},b)},he=(f,h,y,b,E,C,I)=>{for(let S=0;S{if(y!==b){if(y!==oe)for(const S in y)!Vn(S)&&!(S in b)&&o(f,S,y[S],null,I,h.children,E,C,k);for(const S in b){if(Vn(S))continue;const P=b[S],x=y[S];P!==x&&S!=="value"&&o(f,S,x,P,I,h.children,E,C,k)}"value"in b&&o(f,"value",y.value,b.value)}},qe=(f,h,y,b,E,C,I,S,P)=>{const x=h.el=f?f.el:c(""),$=h.anchor=f?f.anchor:c("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=h;B&&(S=S?S.concat(B):B),f==null?(s(x,y,b),s($,y,b),we(h.children,y,$,E,C,I,S,P)):L>0&&L&64&&D&&f.dynamicChildren?(he(f.dynamicChildren,D,y,E,C,I,S),(h.key!=null||E&&h===E.subTree)&&Ac(f,h,!0)):ee(f,h,y,$,E,C,I,S,P)},Ft=(f,h,y,b,E,C,I,S,P)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?E.ctx.activate(h,y,b,I,P):yt(h,y,b,E,C,I,P):sn(f,h,P)},yt=(f,h,y,b,E,C,I)=>{const S=f.component=_u(f,b,E);if(mc(f)&&(S.ctx.renderer=Q),bu(S),S.asyncDep){if(E&&E.registerDep(S,ae),!f.el){const P=S.subTree=W(It);R(null,P,h,y)}return}ae(S,f,h,y,E,C,I)},sn=(f,h,y)=>{const b=h.component=f.component;if(Na(f,h,y))if(b.asyncDep&&!b.asyncResolved){ne(b,h,y);return}else b.next=h,Oa(b.update),b.update();else h.el=f.el,b.vnode=h},ae=(f,h,y,b,E,C,I)=>{const S=()=>{if(f.isMounted){let{next:$,bu:L,u:D,parent:B,vnode:V}=f,se=$,te;wt(f,!1),$?($.el=V.el,ne(f,$,I)):$=V,L&&Wn(L),(te=$.props&&$.props.onVnodeBeforeUpdate)&&ze(te,B,$,V),wt(f,!0);const ue=Ks(f),Me=f.subTree;f.subTree=ue,w(Me,ue,d(Me.el),T(Me),f,E,C),$.el=ue.el,se===null&&La(f,ue.el),D&&Re(D,E),(te=$.props&&$.props.onVnodeUpdated)&&Re(()=>ze(te,B,$,V),E)}else{let $;const{el:L,props:D}=h,{bm:B,m:V,parent:se}=f,te=Qn(h);if(wt(f,!1),B&&Wn(B),!te&&($=D&&D.onVnodeBeforeMount)&&ze($,se,h),wt(f,!0),L&&z){const ue=()=>{f.subTree=Ks(f),z(L,f.subTree,f,E,null)};te?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ue()):ue()}else{const ue=f.subTree=Ks(f);w(null,ue,y,b,f,E,C),h.el=ue.el}if(V&&Re(V,E),!te&&($=D&&D.onVnodeMounted)){const ue=h;Re(()=>ze($,se,ue),E)}(h.shapeFlag&256||se&&Qn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Re(f.a,E),f.isMounted=!0,h=y=b=null}},P=f.effect=new Lr(S,()=>Br(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,wt(f,!0),x()},ne=(f,h,y)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,nu(f,h.props,b,y),ou(f,h.children,y),Gt(),Ro(),Zt()},ee=(f,h,y,b,E,C,I,S,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,L=h.children,{patchFlag:D,shapeFlag:B}=h;if(D>0){if(D&128){_t(x,L,y,b,E,C,I,S,P);return}else if(D&256){Ne(x,L,y,b,E,C,I,S,P);return}}B&8?($&16&&k(x,E,C),L!==x&&u(y,L)):$&16?B&16?_t(x,L,y,b,E,C,I,S,P):k(x,E,C,!0):($&8&&u(y,""),B&16&&we(L,y,b,E,C,I,S,P))},Ne=(f,h,y,b,E,C,I,S,P)=>{f=f||Bt,h=h||Bt;const x=f.length,$=h.length,L=Math.min(x,$);let D;for(D=0;D$?k(f,E,C,!0,!1,L):we(h,y,b,E,C,I,S,P,L)},_t=(f,h,y,b,E,C,I,S,P)=>{let x=0;const $=h.length;let L=f.length-1,D=$-1;for(;x<=L&&x<=D;){const B=f[x],V=h[x]=P?ut(h[x]):Je(h[x]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;x++}for(;x<=L&&x<=D;){const B=f[L],V=h[D]=P?ut(h[D]):Je(h[D]);if(on(B,V))w(B,V,y,null,E,C,I,S,P);else break;L--,D--}if(x>L){if(x<=D){const B=D+1,V=B<$?h[B].el:b;for(;x<=D;)w(null,h[x]=P?ut(h[x]):Je(h[x]),y,V,E,C,I,S,P),x++}}else if(x>D)for(;x<=L;)Se(f[x],E,C,!0),x++;else{const B=x,V=x,se=new Map;for(x=V;x<=D;x++){const Oe=h[x]=P?ut(h[x]):Je(h[x]);Oe.key!=null&&se.set(Oe.key,x)}let te,ue=0;const Me=D-V+1;let Dt=!1,ho=0;const rn=new Array(Me);for(x=0;x=Me){Se(Oe,E,C,!0);continue}let Ke;if(Oe.key!=null)Ke=se.get(Oe.key);else for(te=V;te<=D;te++)if(rn[te-V]===0&&on(Oe,h[te])){Ke=te;break}Ke===void 0?Se(Oe,E,C,!0):(rn[Ke-V]=x+1,Ke>=ho?ho=Ke:Dt=!0,w(Oe,h[Ke],y,null,E,C,I,S,P),ue++)}const po=Dt?uu(rn):Bt;for(te=po.length-1,x=Me-1;x>=0;x--){const Oe=V+x,Ke=h[Oe],mo=Oe+1<$?h[Oe+1].el:b;rn[x]===0?w(null,Ke,y,mo,E,C,I,S,P):Dt&&(te<0||x!==po[te]?Le(Ke,y,mo,2):te--)}}},Le=(f,h,y,b,E=null)=>{const{el:C,type:I,transition:S,children:P,shapeFlag:x}=f;if(x&6){Le(f.component.subTree,h,y,b);return}if(x&128){f.suspense.move(h,y,b);return}if(x&64){I.move(f,h,y,Q);return}if(I===pe){s(C,h,y);for(let L=0;LS.enter(C),E);else{const{leave:L,delayLeave:D,afterLeave:B}=S,V=()=>s(C,h,y),se=()=>{L(C,()=>{V(),B&&B()})};D?D(C,V,se):se()}else s(C,h,y)},Se=(f,h,y,b=!1,E=!1)=>{const{type:C,props:I,ref:S,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:L,dirs:D}=f;if(S!=null&&dr(S,null,y,f,!0),$&256){h.ctx.deactivate(f);return}const B=$&1&&D,V=!Qn(f);let se;if(V&&(se=I&&I.onVnodeBeforeUnmount)&&ze(se,h,f),$&6)v(f.component,y,b);else{if($&128){f.suspense.unmount(y,b);return}B&&bt(f,null,h,"beforeUnmount"),$&64?f.type.remove(f,h,y,E,Q,b):x&&(C!==pe||L>0&&L&64)?k(x,h,y,!1,!0):(C===pe&&L&384||!E&&$&16)&&k(P,h,y),b&&$t(f)}(V&&(se=I&&I.onVnodeUnmounted)||B)&&Re(()=>{se&&ze(se,h,f),B&&bt(f,null,h,"unmounted")},y)},$t=f=>{const{type:h,el:y,anchor:b,transition:E}=f;if(h===pe){Mn(y,b);return}if(h===Yn){J(f);return}const C=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:S}=E,P=()=>I(y,C);S?S(f.el,C,P):P()}else C()},Mn=(f,h)=>{let y;for(;f!==h;)y=p(f),r(f),f=y;r(h)},v=(f,h,y)=>{const{bum:b,scope:E,update:C,subTree:I,um:S}=f;b&&Wn(b),E.stop(),C&&(C.active=!1,Se(I,f,h,y)),S&&Re(S,h),Re(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},k=(f,h,y,b=!1,E=!1,C=0)=>{for(let I=C;If.shapeFlag&6?T(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),F=(f,h,y)=>{f==null?h._vnode&&Se(h._vnode,null,null,!0):w(h._vnode||null,f,h,null,null,null,y),Ro(),lc(),h._vnode=f},Q={p:w,um:Se,m:Le,r:$t,mt:yt,mc:we,pc:ee,pbc:he,n:T,o:e};let ce,z;return t&&([ce,z]=t(Q)),{render:F,hydrate:ce,createApp:cu(F,ce)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ac(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const fu=e=>e.__isTeleport,pe=Symbol(void 0),Is=Symbol(void 0),It=Symbol(void 0),Yn=Symbol(void 0),pn=[];let De=null;function U(e=!1){pn.push(De=e?null:[])}function du(){pn.pop(),De=pn[pn.length-1]||null}let Sn=1;function Lo(e){Sn+=e}function Pc(e){return e.dynamicChildren=Sn>0?De||Bt:null,du(),Sn>0&&De&&De.push(e),e}function H(e,t,n,s,r,o){return Pc(O(e,t,n,s,r,o,!0))}function fs(e,t,n,s,r){return Pc(W(e,t,n,s,r,!0))}function hr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ks="__vInternal",Tc=({key:e})=>e??null,Gn=({ref:e,ref_key:t,ref_for:n})=>e!=null?fe(e)||be(e)||q(e)?{i:Ie,r:e,k:t,f:!!n}:e:null;function O(e,t=null,n=null,s=0,r=null,o=e===pe?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tc(t),ref:t&&Gn(t),scopeId:As,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return c?(zr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=fe(n)?8:16),Sn>0&&!i&&De&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&De.push(l),l}const W=hu;function hu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Wa)&&(e=It),hr(e)){const c=Wt(e,t,!0);return n&&zr(c,n),Sn>0&&!o&&De&&(c.shapeFlag&6?De[De.indexOf(e)]=c:De.push(c)),c.patchFlag|=-2,c}if(Su(e)&&(e=e.__vccOpts),t){t=pu(t);let{class:c,style:l}=t;c&&!fe(c)&&(t.class=bs(c)),re(l)&&(Gi(l)&&!j(l)&&(l=xe({},l)),t.style=_s(l))}const i=fe(e)?1:Ma(e)?128:fu(e)?64:re(e)?4:q(e)?2:0;return O(e,t,n,s,r,i,o,!0)}function pu(e){return e?Gi(e)||ks in e?xe({},e):e:null}function Wt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,c=t?mu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Tc(c),ref:t&&t.ref?n&&r?j(r)?r.concat(Gn(t)):[r,Gn(t)]:Gn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?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&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function me(e=" ",t=0){return W(Is,null,e,t)}function Ic(e,t){const n=W(Yn,null,e);return n.staticCount=t,n}function dt(e="",t=!1){return t?(U(),fs(It,null,e)):W(It,null,e)}function Je(e){return e==null||typeof e=="boolean"?W(It):j(e)?W(pe,null,e.slice()):typeof e=="object"?ut(e):W(Is,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ks in t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mu(...e){const t={};for(let n=0;n{ye=e,e.scope.on()},Tt=()=>{ye&&ye.scope.off(),ye=null};function kc(e){return e.vnode.shapeFlag&4}let Rn=!1;function bu(e,t=!1){Rn=t;const{props:n,children:s}=e.vnode,r=kc(e);tu(e,n,r,t),ru(e,s);const o=r?wu(e,t):void 0;return Rn=!1,o}function wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Zi(new Proxy(e.ctx,Qa));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Eu(e):null;Jt(e),Gt();const o=pt(s,e,0,[e.props,r]);if(Zt(),Tt(),Di(o)){if(o.then(Tt,Tt),t)return o.then(i=>{Mo(e,i,t)}).catch(i=>{Os(i,e,0)});e.asyncDep=o}else Mo(e,o,t)}else Nc(e,t)}function Mo(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=sc(t)),Nc(e,n)}let Fo;function Nc(e,t,n){const s=e.type;if(!e.render){if(!t&&Fo&&!s.render){const r=s.template||qr(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:l}=s,a=xe(xe({isCustomElement:o,delimiters:c},i),l);s.render=Fo(r,a)}}e.render=s.render||je}Jt(e),Gt(),Xa(e),Zt(),Tt()}function vu(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function Eu(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=vu(e))},slots:e.slots,emit:e.emit,expose:t}}function Ns(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sc(Zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function xu(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Su(e){return q(e)&&"__vccOpts"in e}const Te=(e,t)=>xa(e,t,Rn);function ds(e,t,n){const s=arguments.length;return s===2?re(t)&&!j(t)?hr(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hr(n)&&(n=[n]),W(e,t,n))}const Ru=Symbol(""),Ou=()=>Ye(Ru),Cu="3.2.45",Au="http://www.w3.org/2000/svg",Rt=typeof document<"u"?document:null,$o=Rt&&Rt.createElement("template"),Pu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Rt.createElementNS(Au,e):Rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{$o.innerHTML=s?`${e}`:e;const c=$o.content;if(s){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Tu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Iu(e,t,n){const s=e.style,r=fe(n);if(n&&!r){for(const o in n)pr(s,o,n[o]);if(t&&!fe(t))for(const o in t)n[o]==null&&pr(s,o,"")}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Do=/\s*!important$/;function pr(e,t,n){if(j(n))n.forEach(s=>pr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ku(e,t);Do.test(n)?e.setProperty(Lt(s),n.replace(Do,""),"important"):e[s]=n}}const jo=["Webkit","Moz","ms"],Vs={};function ku(e,t){const n=Vs[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return Vs[t]=s;s=Ss(s);for(let r=0;rWs||(Du.then(()=>Ws=0),Ws=Date.now());function Uu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(Bu(s,n.value),t,5,[s])};return n.value=e,n.attached=ju(),n}function Bu(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ho=/^on[a-z]/,Hu=(e,t,n,s,r=!1,o,i,c,l)=>{t==="class"?Tu(e,s,r):t==="style"?Iu(e,n,s):vs(t)?Tr(t)||Fu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qu(e,t,s,r))?Lu(e,t,s,o,i,c,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nu(e,t,s,r))};function qu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ho.test(t)&&q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ho.test(t)&&fe(n)?!1:t in e}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Wn(t,n):t};function Ku(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=hs(r);const o=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=wn(c)),e._assign(c)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",Ku),Ot(e,"compositionend",qo),Ot(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=hs(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&wn(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Js={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Es(t);Ot(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?wn(ps(i)):ps(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=hs(s)},mounted(e,{value:t}){Ko(e,t)},beforeUpdate(e,t,n){e._assign=hs(n)},updated(e,{value:t}){Ko(e,t)}};function Ko(e,t){const n=e.multiple;if(!(n&&!j(t)&&!Es(t))){for(let s=0,r=e.options.length;s-1:o.selected=t.has(i);else if(ws(ps(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}const Vu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wu=(e,t)=>n=>{if(!("key"in n))return;const s=Lt(n.key);if(t.some(r=>r===s||Vu[r]===s))return e(n)},Ju=xe({patchProp:Hu},Pu);let zo;function Qu(){return zo||(zo=lu(Ju))}const Xu=(...e)=>{const t=Qu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Yu(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Yu(e){return fe(e)?document.querySelector(e):e}const Vr="/assets/spotdl-5dcb64c0.svg",He=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Gu={components:{},setup(){return{}}},Zu={class:"p-10 footer bg-neutral text-neutral-content"},ef=O("div",null,[O("img",{src:Vr,width:"50",height:"50",viewBox:"0 0 24 24"}),O("p",null,[me("spotDL"),O("br"),me("Open Source Music Downloader")])],-1),tf=Ic('
Social
',1),nf=[ef,tf];function sf(e,t,n,s,r,o){return U(),H("footer",Zu,nf)}const rf=He(Gu,[["render",sf]]);function Lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:Wr}=Object,Jr=(e=>t=>{const n=Mc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Ls=e=>t=>typeof t===e,{isArray:en}=Array,On=Ls("undefined");function of(e){return e!==null&&!On(e)&&e.constructor!==null&&!On(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fc=rt("ArrayBuffer");function cf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fc(e.buffer),t}const lf=Ls("string"),kt=Ls("function"),$c=Ls("number"),Qr=e=>e!==null&&typeof e=="object",af=e=>e===!0||e===!1,Zn=e=>{if(Jr(e)!=="object")return!1;const t=Wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uf=rt("Date"),ff=rt("File"),df=rt("Blob"),hf=rt("FileList"),pf=e=>Qr(e)&&kt(e.pipe),mf=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mc.call(e)===t||kt(e.toString)&&e.toString()===t)},gf=rt("URLSearchParams"),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),en(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const jc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!On(e)&&e!==jc;function mr(){const{caseless:e}=Uc(this)&&this||{},t={},n=(s,r)=>{const o=e&&Dc(t,r)||r;Zn(t[o])&&Zn(s)?t[o]=mr(t[o],s):Zn(s)?t[o]=mr({},s):en(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(kn(t,(r,o)=>{n&&kt(r)?e[o]=Lc(r,n):e[o]=r},{allOwnKeys:s}),e),bf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wf=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vf=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ef=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},xf=e=>{if(!e)return null;if(en(e))return e;let t=e.length;if(!$c(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wr(Uint8Array)),Rf=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Of=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Cf=rt("HTMLFormElement"),Af=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Vo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pf=rt("RegExp"),Bc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};kn(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},Tf=e=>{Bc(e,(t,n)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(kt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},If=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return en(e)?s(e):s(String(e).split(t)),n},kf=()=>{},Nf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Lf=e=>{const t=new Array(10),n=(s,r)=>{if(Qr(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=en(s)?[]:{};return kn(s,(i,c)=>{const l=n(i,r+1);!On(l)&&(o[c]=l)}),t[r]=void 0,o}}return s};return n(e,0)},_={isArray:en,isArrayBuffer:Fc,isBuffer:of,isFormData:mf,isArrayBufferView:cf,isString:lf,isNumber:$c,isBoolean:af,isObject:Qr,isPlainObject:Zn,isUndefined:On,isDate:uf,isFile:ff,isBlob:df,isRegExp:Pf,isFunction:kt,isStream:pf,isURLSearchParams:gf,isTypedArray:Sf,isFileList:hf,forEach:kn,merge:mr,extend:_f,trim:yf,stripBOM:bf,inherits:wf,toFlatObject:vf,kindOf:Jr,kindOfTest:rt,endsWith:Ef,toArray:xf,forEachEntry:Rf,matchAll:Of,isHTMLForm:Cf,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Bc,freezeMethods:Tf,toObjectSet:If,toCamelCase:Af,noop:kf,toFiniteNumber:Nf,findKey:Dc,global:jc,isContextDefined:Uc,toJSONObject:Lf};function Y(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}_.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hc=Y.prototype,qc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qc[e]={value:e}});Object.defineProperties(Y,qc);Object.defineProperty(Hc,"isAxiosError",{value:!0});Y.from=(e,t,n,s,r,o)=>{const i=Object.create(Hc);return _.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),Y.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var Mf=typeof self=="object"?self.FormData:window.FormData;const Ff=Mf;function gr(e){return _.isPlainObject(e)||_.isArray(e)}function Kc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Wo(e,t,n){return e?e.concat(t).map(function(r,o){return r=Kc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function $f(e){return _.isArray(e)&&!e.some(gr)}const Df=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e){return e&&_.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ms(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new(Ff||FormData),n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,A){return!_.isUndefined(A[w])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&jf(t);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!l&&_.isBlob(g))throw new Y("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,w,A){let R=g;if(g&&!A&&typeof g=="object"){if(_.endsWith(w,"{}"))w=s?w:w.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&$f(g)||_.isFileList(g)||_.endsWith(w,"[]")&&(R=_.toArray(g)))return w=Kc(w),R.forEach(function(M,J){!(_.isUndefined(M)||M===null)&&t.append(i===!0?Wo([w],J,o):i===null?w:w+"[]",a(M))}),!1}return gr(g)?!0:(t.append(Wo(A,w,o),a(g)),!1)}const d=[],p=Object.assign(Df,{defaultVisitor:u,convertValue:a,isVisitable:gr});function m(g,w){if(!_.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(g),_.forEach(g,function(R,N){(!(_.isUndefined(R)||R===null)&&r.call(t,R,_.isString(N)?N.trim():N,w,p))===!0&&m(R,w?w.concat(N):[N])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Jo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Xr(e,t){this._pairs=[],e&&Ms(e,this,t)}const zc=Xr.prototype;zc.append=function(t,n){this._pairs.push([t,n])};zc.toString=function(t){const n=t?function(s){return t.call(this,s,Jo)}:Jo;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Uf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vc(e,t,n){if(!t)return e;const s=n&&n.encode||Uf,r=n&&n.serialize;let o;if(r?o=r(t,n):o=_.isURLSearchParams(t)?t.toString():new Xr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qo=Bf,Wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hf=typeof URLSearchParams<"u"?URLSearchParams:Xr,qf=FormData,Kf=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zf=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Xe={isBrowser:!0,classes:{URLSearchParams:Hf,FormData:qf,Blob},isStandardBrowserEnv:Kf,isStandardBrowserWebWorkerEnv:zf,protocols:["http","https","file","blob","url","data"]};function Vf(e,t){return Ms(e,new Xe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Xe.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Wf(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jf(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&_.isArray(r)?r.length:i,l?(_.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!c):((!r[i]||!_.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&_.isArray(r[i])&&(r[i]=Jf(r[i])),!c)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,r)=>{t(Wf(s),r,n,0)}),n}return null}const Qf={"Content-Type":void 0};function Xf(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Fs={transitional:Wc,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r&&r?JSON.stringify(Jc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Vf(t,this.formSerializer).toString();if((c=_.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ms(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Xf(t)):t}],transformResponse:[function(t){const n=this.transitional||Fs.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&_.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?Y.from(c,Y.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xe.classes.FormData,Blob:Xe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(t){Fs.headers[t]={}});_.forEach(["post","put","patch"],function(t){Fs.headers[t]=_.merge(Qf)});const Yr=Fs,Yf=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gf=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Yf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Xo=Symbol("internals");function cn(e){return e&&String(e).trim().toLowerCase()}function es(e){return e===!1||e==null?e:_.isArray(e)?e.map(es):String(e)}function Zf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function ed(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Yo(e,t,n,s){if(_.isFunction(s))return s.call(this,t,n);if(_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function nd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class $s{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,l,a){const u=cn(l);if(!u)throw new Error("header name must be a non-empty string");const d=_.findKey(r,u);(!d||r[d]===void 0||a===!0||a===void 0&&r[d]!==!1)&&(r[d||l]=es(c))}const i=(c,l)=>_.forEach(c,(a,u)=>o(a,u,l));return _.isPlainObject(t)||t instanceof this.constructor?i(t,n):_.isString(t)&&(t=t.trim())&&!ed(t)?i(Gf(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=cn(t),t){const s=_.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Zf(r);if(_.isFunction(n))return n.call(this,r,s);if(_.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cn(t),t){const s=_.findKey(this,t);return!!(s&&(!n||Yo(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=cn(i),i){const c=_.findKey(s,i);c&&(!n||Yo(s,s[c],c,n))&&(delete s[c],r=!0)}}return _.isArray(t)?t.forEach(o):o(t),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return _.forEach(this,(r,o)=>{const i=_.findKey(s,o);if(i){n[i]=es(r),delete n[o];return}const c=t?td(o):String(o).trim();c!==o&&delete n[o],n[c]=es(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&_.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Xo]=this[Xo]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=cn(i);s[c]||(nd(r,i),s[c]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}$s.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);_.freezeMethods($s.prototype);_.freezeMethods($s);const tt=$s;function Qs(e,t){const n=this||Yr,s=t||n,r=tt.from(s.headers);let o=s.data;return _.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Qc(e){return!!(e&&e.__CANCEL__)}function Nn(e,t,n){Y.call(this,e??"canceled",Y.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Nn,Y,{__CANCEL__:!0});const sd=null;function rd(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new Y("Request failed with status code "+n.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const od=Xe.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,c){const l=[];l.push(n+"="+encodeURIComponent(s)),_.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),_.isString(o)&&l.push("path="+o),_.isString(i)&&l.push("domain="+i),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cd(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Xc(e,t){return e&&!id(t)?cd(e,t):t}const ld=Xe.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const c=_.isString(i)?r(i):i;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ud(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const a=Date.now(),u=s[o];i||(i=a),n[r]=l,s[r]=a;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,c=o-n,l=s(c),a=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&a?(i-o)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const fd=typeof XMLHttpRequest<"u",dd=fd&&function(e){return new Promise(function(n,s){let r=e.data;const o=tt.from(e.headers).normalize(),i=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}_.isFormData(r)&&(Xe.isStandardBrowserEnv||Xe.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let a=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const u=Xc(e.baseURL,e.url);a.open(e.method.toUpperCase(),Vc(u,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const m=tt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};rd(function(R){n(R),l()},function(R){s(R),l()},w),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new Y("Request aborted",Y.ECONNABORTED,e,a)),a=null)},a.onerror=function(){s(new Y("Network Error",Y.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Wc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new Y(g,w.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,e,a)),a=null},Xe.isStandardBrowserEnv){const m=(e.withCredentials||ld(u))&&e.xsrfCookieName&&od.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in a&&_.forEach(o.toJSON(),function(g,w){a.setRequestHeader(w,g)}),_.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Go(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Go(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{a&&(s(!m||m.type?new Nn(null,e,a):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const p=ad(u);if(p&&Xe.protocols.indexOf(p)===-1){s(new Y("Unsupported protocol "+p+":",Y.ERR_BAD_REQUEST,e));return}a.send(r||null)})},ts={http:sd,xhr:dd};_.forEach(ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hd={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof tt?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function s(a,u,d){return _.isPlainObject(a)&&_.isPlainObject(u)?_.merge.call({caseless:d},a,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(a,u,d){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a,d)}else return s(a,u,d)}function o(a,u){if(!_.isUndefined(u))return s(void 0,u)}function i(a,u){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function c(a,u,d){if(d in t)return s(a,u);if(d in e)return s(void 0,a)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(a,u)=>r(ei(a),ei(u),!0)};return _.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||r,p=d(e[u],t[u],u);_.isUndefined(p)&&d!==c||(n[u]=p)}),n}const Yc="1.2.5",Gr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Gr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ti={};Gr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Yc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new Y(r(i," has been removed"+(n?" in "+n:"")),Y.ERR_DEPRECATED);return n&&!ti[i]&&(ti[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function pd(e,t,n){if(typeof e!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new Y("option "+o+" must be "+l,Y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Y("Unknown option "+o,Y.ERR_BAD_OPTION)}}const yr={assertOptions:pd,validators:Gr},ct=yr.validators;class ms{constructor(t){this.defaults=t,this.interceptors={request:new Qo,response:new Qo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&yr.assertOptions(s,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),r!==void 0&&yr.assertOptions(r,{encode:ct.function,serialize:ct.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&_.merge(o.common,o[n.method]),i&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=tt.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,c.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let u,d=0,p;if(!l){const g=[Zo.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,a),p=g.length,u=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new Nn(o,i,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Zr(function(r){t=r}),cancel:t}}}const md=Zr;function gd(e){return function(n){return e.apply(null,n)}}function yd(e){return _.isObject(e)&&e.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([e,t])=>{_r[t]=e});const _d=_r;function Gc(e){const t=new ns(e),n=Lc(ns.prototype.request,t);return _.extend(n,ns.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Gc(Qt(e,r))},n}const de=Gc(Yr);de.Axios=ns;de.CanceledError=Nn;de.CancelToken=md;de.isCancel=Qc;de.VERSION=Yc;de.toFormData=Ms;de.AxiosError=Y;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=gd;de.isAxiosError=yd;de.mergeConfig=Qt;de.AxiosHeaders=tt;de.formToJSON=e=>Jc(_.isHTMLForm(e)?new FormData(e):e);de.HttpStatusCode=_d;de.default=de;const bd=de,$e={PROTOCOL:{}.PROTOCOL||window.location.protocol,WS_PROTOCOL:{}.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:{}.BACKEND||window.location.hostname,PORT:{}.PORT||window.location.port,WS_PORT:{}.WS_PORT||window.location.port,BASEURL:{}.BASEURL||""};let Hn;const wd=new Uint8Array(16);function vd(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(wd)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function Ed(e,t=0){return(ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]).toLowerCase()}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:xd};function Sd(e,t,n){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};const s=e.random||(e.rng||vd)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=s[r];return t}return Ed(s)}console.log("using env:",{});console.log("using config: ",$e);const Mt=bd.create({baseURL:`${$e.PROTOCOL}//${$e.BACKEND}:${$e.PORT}${$e.BASEURL}`}),tn=Sd();console.log("session ID: ",tn);const eo=new WebSocket(`${$e.WS_PROTOCOL}//${$e.BACKEND}${$e.PORT!==""?":"+$e.PORT:""}${$e.BASEURL}/api/ws?client_id=${tn}`);eo.onopen=e=>{console.log("websocket connection opened",e)};function Rd(e){return Mt.get("/api/songs/search",{params:{query:e}})}function Od(e){return Mt.get("/api/song/url",{params:{url:e}})}function Cd(e){return Mt.post("/api/download/url",null,{params:{url:e,client_id:tn}})}function Ad(){return Mt.get("/api/check_update")}function Pd(e){return Mt.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(tn)}function Td(){return Mt.get("/api/settings",{params:{client_id:tn}})}function Id(e){return Mt.post("/api/settings/update",e,{params:{client_id:tn}})}function kd(e){return eo.onmessage=e}function Nd(e){return eo.onerror=e}const mt={search:Rd,open:Od,download:Cd,downloadFileURL:Pd,getSettings:Td,setSettings:Id,check_for_update:Ad,ws_onmessage:kd,ws_onerror:Nd},ss=Pe({audio_providers:[""],lyrics_providers:[""]}),Ld={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};mt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),ss.value=e.data):console.log("Error loading settings")});function Md(){const e=Pe();function t(){console.log("Saving settings:",ss.value),mt.setSettings(ss.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.log("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:ss,settingsOptions:Ld,isSaved:e}}const mn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ds=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:s,prefix:l,name:c};return t&&!rs(a)?null:a}const o=r[0],i=o.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!rs(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:o};return t&&!rs(c,n)?null:c}return null},rs=(e,t)=>e?!!((e.provider===""||e.provider.match(mn))&&(t&&e.prefix===""||e.prefix.match(mn))&&e.name.match(mn)):!1,Zc=Object.freeze({left:0,top:0,width:16,height:16}),gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),js=Object.freeze({...Zc,...gs}),br=Object.freeze({...js,body:"",hidden:!1});function Fd(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function si(e,t){const n=Fd(e,t);for(const s in br)s in gs?s in e&&!(s in n)&&(n[s]=gs[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function $d(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=s[i]&&s[i].parent,l=c&&o(c);l&&(r[i]=[c].concat(l))}return r[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(o),r}function Dd(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(c){o=si(s[c]||r[c],o)}return i(t),n.forEach(i),si(e,o)}function el(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=$d(e);for(const r in s){const o=s[r];o&&(t(r,Dd(e,r,o)),n.push(r))}return n}const jd={provider:"",aliases:{},not_found:{},...Zc};function Ys(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ys(e,jd))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(mn)||typeof o.body!="string"||!Ys(o,br))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(mn)||typeof i!="string"||!n[i]&&!s[i]||!Ys(o,br))return null}return t}const ri=Object.create(null);function Ud(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Nt(e,t){const n=ri[e]||(ri[e]=Object.create(null));return n[t]||(n[t]=Ud(e,t))}function to(e,t){return tl(t)?el(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Bd(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Cn=!1;function nl(e){return typeof e=="boolean"&&(Cn=e),Cn}function Hd(e){const t=typeof e=="string"?Ds(e,!0,Cn):e;if(t){const n=Nt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function qd(e,t){const n=Ds(e,!0,Cn);if(!n)return!1;const s=Nt(n.provider,n.prefix);return Bd(s,n.name,t)}function Kd(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Cn&&!t&&!e.prefix){let r=!1;return tl(e)&&(e.prefix="",el(e,(o,i)=>{i&&qd(o,i)&&(r=!0)})),r}const n=e.prefix;if(!rs({provider:t,prefix:n,name:"a"}))return!1;const s=Nt(t,n);return!!to(s,e)}const sl=Object.freeze({width:null,height:null}),rl=Object.freeze({...sl,...gs}),zd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oi(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(zd);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=Vd.test(o);for(;;){if(i){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function Wd(e,t){const n={...js,...e},s={...rl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(m=>{const g=[],w=m.hFlip,A=m.vFlip;let R=m.rotate;w?A?R+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):A&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let N;switch(R<0&&(R-=Math.floor(R/4)*4),R=R%4,R){case 1:N=r.height/2+r.top,g.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:N=r.width/2+r.left,g.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}R%2===1&&(r.left!==r.top&&(N=r.left,r.left=r.top,r.top=N),r.width!==r.height&&(N=r.width,r.width=r.height,r.height=N)),g.length&&(o=''+o+"")});const i=s.width,c=s.height,l=r.width,a=r.height;let u,d;return i===null?(d=c===null?"1em":c==="auto"?a:c,u=oi(d,l/a)):(u=i==="auto"?l:i,d=c===null?oi(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:d.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString()},body:o}}const Jd=/\sid="(\S+)"/g,Qd="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Xd=0;function Yd(e,t=Qd){const n=[];let s;for(;s=Jd.exec(e);)n.push(s[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(Xd++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const wr=Object.create(null);function Gd(e,t){wr[e]=t}function vr(e){return wr[e]||wr[""]}function no(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const so=Object.create(null),ln=["https://api.simplesvg.com","https://api.unisvg.com"],os=[];for(;ln.length>0;)ln.length===1||Math.random()>.5?os.push(ln.shift()):os.push(ln.pop());so[""]=no({resources:["https://api.iconify.design"].concat(os)});function Zd(e,t){const n=no(t);return n===null?!1:(so[e]=n,!0)}function ro(e){return so[e]}const eh=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ii=eh();function th(e,t){const n=ro(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function nh(e){return e===404}const sh=(e,t,n)=>{const s=[],r=th(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),s.push(i),s};function rh(e){if(typeof e=="string"){const t=ro(e);if(t)return t.path}return"/"}const oh=(e,t,n)=>{if(!ii){n("abort",424);return}let s=rh(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});s+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;ii(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(nh(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},ih={prepare:sh,send:oh};function ch(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,c=r.name,l=n[o]||(n[o]=Object.create(null)),a=l[i]||(l[i]=Nt(o,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const d={provider:o,prefix:i,name:c};u.push(d)}),t}function ol(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function lh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:s,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ol([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let ah=0;function uh(e,t,n){const s=ah++,r=ol.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function fh(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?Ds(r,t,n):r;o&&s.push(o)}),s}var dh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function hh(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let K=e.resources.slice(0);for(i=[];K.length>1;){const ie=Math.floor(Math.random()*K.length);i.push(K[ie]),K=K.slice(0,ie).concat(K.slice(ie+1))}i=i.concat(K)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let l="pending",a=0,u,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function g(){d&&(clearTimeout(d),d=null)}function w(){l==="pending"&&(l="aborted"),g(),p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function A(K,ie){ie&&(m=[]),typeof K=="function"&&m.push(K)}function R(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:p.length,subscribe:A,abort:w}}function N(){l="failed",m.forEach(K=>{K(void 0,u)})}function M(){p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function J(K,ie,we){const ke=ie!=="success";switch(p=p.filter(he=>he!==K),l){case"pending":break;case"failed":if(ke||!e.dataAfterTimeout)return;break;default:return}if(ie==="abort"){u=we,N();return}if(ke){u=we,p.length||(i.length?le():N());return}if(g(),M(),!e.random){const he=e.resources.indexOf(K.resource);he!==-1&&he!==e.index&&(e.index=he)}l="completed",m.forEach(he=>{he(we)})}function le(){if(l!=="pending")return;g();const K=i.shift();if(K===void 0){if(p.length){d=setTimeout(()=>{g(),l==="pending"&&(M(),N())},e.timeout);return}N();return}const ie={status:"pending",resource:K,callback:(we,ke)=>{J(ie,we,ke)}};p.push(ie),a++,d=setTimeout(le,e.rotate),n(K,t,ie.callback)}return setTimeout(le),R}function il(e){const t={...dh,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=hh(t,c,l,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function o(c){return n.find(l=>c(l))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ci(){}const Gs=Object.create(null);function ph(e){if(!Gs[e]){const t=ro(e);if(!t)return;const n=il(t),s={config:t,redundancy:n};Gs[e]=s}return Gs[e]}function mh(e,t,n){let s,r;if(typeof e=="string"){const o=vr(e);if(!o)return n(void 0,424),ci;r=o.send;const i=ph(e);i&&(s=i.redundancy)}else{const o=no(e);if(o){s=il(o);const i=e.resources?e.resources[0]:"",c=vr(i);c&&(r=c.send)}}return!s||!r?(n(void 0,424),ci):s.query(t,r,n)().abort}const li="iconify2",An="iconify",cl=An+"-count",ai=An+"-version",ll=36e5,gh=168;function Er(e,t){try{return e.getItem(t)}catch{}}function oo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ui(e,t){try{e.removeItem(t)}catch{}}function xr(e,t){return oo(e,cl,t.toString())}function Sr(e){return parseInt(Er(e,cl))||0}const Us={local:!0,session:!0},al={local:new Set,session:new Set};let io=!1;function yh(e){io=e}let qn=typeof window>"u"?{}:window;function ul(e){const t=e+"Storage";try{if(qn&&qn[t]&&typeof qn[t].length=="number")return qn[t]}catch{}Us[e]=!1}function fl(e,t){const n=ul(e);if(!n)return;const s=Er(n,ai);if(s!==li){if(s){const c=Sr(n);for(let l=0;l{const l=An+c.toString(),a=Er(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}ui(n,l)}};let i=Sr(n);for(let c=i-1;c>=0;c--)o(c)||(c===i-1?(i--,xr(n,i)):al[e].add(c))}function dl(){if(!io){yh(!0);for(const e in Us)fl(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=Nt(s,r);if(!to(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function _h(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in Us)fl(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function bh(e,t){io||dl();function n(s){let r;if(!Us[s]||!(r=ul(s)))return;const o=al[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Sr(r),!xr(r,i+1))return;const c={cached:Math.floor(Date.now()/ll),provider:e.provider,data:t};return oo(r,An+i.toString(),JSON.stringify(c))}t.lastModified&&!_h(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function fi(){}function wh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,lh(e)}))}function vh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=vr(n)))return;o.prepare(n,s,r).forEach(c=>{mh(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=to(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(d=>{u.delete(d)}),bh(e,l)}catch(a){console.error(a)}wh(e)})})}))}const Eh=(e,t)=>{const n=fh(e,!0,nl()),s=ch(n);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,fi)}),()=>{l=!1}}const r=Object.create(null),o=[];let i,c;return s.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,o.push(Nt(a,u));const d=r[a]||(r[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(l=>{const{provider:a,prefix:u,name:d}=l,p=Nt(a,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[a][u].push(d))}),o.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&vh(l,r[a][u])}),t?uh(t,s,o):fi};function xh(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in sl?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Sh=/[\s,]+/;function Rh(e,t){t.split(Sh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Oh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function Ch(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function Ah(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ph(e){return'url("data:image/svg+xml,'+Ah(e)+'")'}const di={...rl,inline:!1},Th={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ih={display:"inline-block"},Rr={backgroundColor:"currentColor"},hl={backgroundColor:"transparent"},hi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},pi={webkitMask:Rr,mask:Rr,background:hl};for(const e in pi){const t=pi[e];for(const n in hi)t[e+n]=hi[n]}const is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";is[e+"-flip"]=t,is[e.slice(0,1)+"-flip"]=t,is[e+"Flip"]=t});function mi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const gi=(e,t)=>{const n=xh(di,t),s={...Th},r=t.mode||"svg",o={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let w in t){const A=t[w];if(A!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[w]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Rh(n,A);break;case"color":o.color=A;break;case"rotate":typeof A=="string"?n[w]=Oh(A):typeof A=="number"&&(n[w]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete s["aria-hidden"];break;default:{const R=is[w];R?(A===!0||A==="true"||A===1)&&(n[R]=!0):di[w]===void 0&&(s[w]=A)}}}const l=Wd(e,n),a=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...c},Object.assign(s,a);let w=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),s.innerHTML=Yd(l.body,A?()=>A+"ID"+w++:"iconifyVue"),ds("svg",s)}const{body:u,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Ch(u,{...a,width:d+"",height:p+""});return s.style={...o,"--svg":Ph(g),width:mi(a.width),height:mi(a.height),...Ih,...m?Rr:hl,...c},ds("span",s)};nl(!0);Gd("",ih);if(typeof document<"u"&&typeof window<"u"){dl();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Kd(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Zd(n,r)||console.error(s)}catch{console.error(s)}}}}const kh={...js,body:""},nn=Hr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Ds(e,!1,!0))===null)return this.abortLoading(),null;const s=Hd(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Eh([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return gi(kh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),gi({...js,...t.data},n)}}),Nh={components:{Icon:nn},setup(){return{sm:Md()}}},Lh=O("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),Mh={class:"modal"},Fh={class:"modal-box relative"},$h=O("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),Dh=O("h3",{class:"font-bold text-lg"},"Download Settings",-1),jh={class:"flex flex-col justify-center my-4"},Uh={class:"form-control w-full"},Bh=O("label",{class:"label"},[O("span",{class:"label-text"},"Audio Provider")],-1),Hh=["selected"],qh={class:"form-control w-full"},Kh=O("label",{class:"label"},[O("span",{class:"label-text"},"Lyrics Provider")],-1),zh=["selected"],Vh={class:"form-control w-full"},Wh=O("label",{class:"label"},[O("span",{class:"label-text"},"Output Format")],-1),Jh=["selected"],Qh={key:0,class:"alert alert-success shadow-lg"},Xh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Changes saved")],-1),Yh=[Xh],Gh={key:1,class:"alert alert-error shadow-lg"},Zh=O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"Error! Unable to save settings")],-1),ep=[Zh],tp={class:"modal-action"};function np(e,t,n,s,r,o){return U(),H(pe,null,[Lh,O("div",Mh,[O("div",Fh,[$h,Dh,O("div",jh,[O("div",Uh,[Bh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[0]||(t[0]=i=>s.sm.settings.value.audio_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.audio_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.audio_providers)==null?void 0:l[0])},Ce(i),9,Hh)}),128))],512),[[Js,s.sm.settings.value.audio_providers[0]]])]),O("div",qh,[Kh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[1]||(t[1]=i=>s.sm.settings.value.lyrics_providers[0]=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.lyrics_providers,(i,c)=>{var l;return U(),H("option",{key:c,selected:i===((l=s.sm.settings.value.lyrics_providers)==null?void 0:l[0])},Ce(i),9,zh)}),128))],512),[[Js,s.sm.settings.value.lyrics_providers[0]]])]),O("div",Vh,[Wh,Xn(O("select",{class:"select w-full","onUpdate:modelValue":t[2]||(t[2]=i=>s.sm.settings.value.format=i)},[(U(!0),H(pe,null,Pt(s.sm.settingsOptions.format,(i,c)=>(U(),H("option",{key:c,selected:i===s.sm.settings.value.format},Ce(i),9,Jh))),128))],512),[[Js,s.sm.settings.value.format]])])]),s.sm.isSaved.value===!0?(U(),H("div",Qh,Yh)):dt("",!0),s.sm.isSaved.value===!1?(U(),H("div",Gh,ep)):dt("",!0),O("div",tp,[O("label",{class:"btn",onClick:t[3]||(t[3]=i=>s.sm.saveSettings())},"Save")])])])],64)}const sp=He(Nh,[["render",np]]),Ve=Pe(""),yi=Pe("light"),_i=Pe("dark");function pl({useSystem:e=!0,initialTheme:t="",newLightAlias:n=null,newDarkAlias:s=null}={}){function r(u){yi.value=u,a()}function o(u){_i.value=u,a()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c(u){Ve.value=u,a()}function l(){Ve==="dark"?Ve.value="light":Ve==="light"&&(Ve.value="dark"),a()}function a(){document.documentElement.setAttribute("data-theme",Ve.value==="dark"?_i.value:yi.value)}return Ve.value!=="light"&&Ve.value!=="dark"&&(e&&c(i()),(t==="light"||t==="dark")&&(Ve.value=t)),n&&r(n),s&&o(s),a(),{currentTheme:Ve,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:c,switchTheme:l}}const rp={name:"App",components:{Footer:rf,Settings:sp},setup(){const e=pl();return yc(()=>{e.setLightAlias("emerald"),e.setDarkAlias("forest")}),{themeMgr:e}}},op={class:"bg-base-300 absolute w-full top-0"};function ip(e,t,n,s,r,o){const i=Ee("router-view"),c=Ee("Footer"),l=Ee("Settings");return U(),H("div",op,[W(i),W(c),W(l)])}const cp=He(rp,[["render",ip]]);/*! +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerpolicy&&(o.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?o.credentials="include":r.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();function Pr(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function _s(e){if(U(e)){const t={};for(let n=0;n{if(n){const s=n.split(Il);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function bs(e){let t="";if(fe(e))t=e;else if(U(e))for(let n=0;nws(n,t))}const Ce=e=>fe(e)?e:e==null?"":U(e)||re(e)&&(e.toString===ji||!q(e.toString))?JSON.stringify(e,$i,2):String(e),$i=(e,t)=>t&&t.__v_isRef?$i(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:re(t)&&!U(t)&&!Ui(t)?String(t):t,oe={},Bt=[],je=()=>{},Dl=()=>!1,jl=/^on[^a-z]/,vs=e=>jl.test(e),Tr=e=>e.startsWith("onUpdate:"),xe=Object.assign,Ir=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ul=Object.prototype.hasOwnProperty,G=(e,t)=>Ul.call(e,t),U=Array.isArray,Ht=e=>Tn(e)==="[object Map]",Es=e=>Tn(e)==="[object Set]",go=e=>Tn(e)==="[object Date]",q=e=>typeof e=="function",fe=e=>typeof e=="string",_n=e=>typeof e=="symbol",re=e=>e!==null&&typeof e=="object",Di=e=>re(e)&&q(e.then)&&q(e.catch),ji=Object.prototype.toString,Tn=e=>ji.call(e),Bl=e=>Tn(e).slice(8,-1),Ui=e=>Tn(e)==="[object Object]",kr=e=>fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=Pr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xs=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hl=/-(\w)/g,Ye=xs(e=>e.replace(Hl,(t,n)=>n?n.toUpperCase():"")),ql=/\B([A-Z])/g,Lt=xs(e=>e.replace(ql,"-$1").toLowerCase()),Ss=xs(e=>e.charAt(0).toUpperCase()+e.slice(1)),qs=xs(e=>e?`on${Ss(e)}`:""),bn=(e,t)=>!Object.is(e,t),Wn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},wn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let yo;const Kl=()=>yo||(yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let We;class zl{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=We,!t&&We&&(this.index=(We.scopes||(We.scopes=[])).push(this)-1)}run(t){if(this.active){const n=We;try{return We=this,t()}finally{We=n}}}on(){We=this}off(){We=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Bi=e=>(e.w>)>0,Hi=e=>(e.n>)>0,Wl=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&c.push(a)})}else switch(n!==void 0&&c.push(i.get(n)),t){case"add":U(e)?kr(n)&&c.push(i.get("length")):(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"delete":U(e)||(c.push(i.get(At)),Ht(e)&&c.push(i.get(or)));break;case"set":Ht(e)&&c.push(i.get(At));break}if(c.length===1)c[0]&&ir(c[0]);else{const l=[];for(const a of c)a&&l.push(...a);ir(Nr(l))}}function ir(e,t){const n=U(e)?e:[...e];for(const s of n)s.computed&&bo(s);for(const s of n)s.computed||bo(s)}function bo(e,t){(e!==Fe||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ql=Pr("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(_n)),Gl=Mr(),Xl=Mr(!1,!0),Yl=Mr(!0),wo=Zl();function Zl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Y(this);for(let o=0,i=this.length;o{e[t]=function(...n){Yt();const s=Y(this)[t].apply(this,n);return Zt(),s}}),e}function Mr(e=!1,t=!1){return function(s,r,o){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&o===(e?t?ma:Gi:t?Qi:Ji).get(s))return s;const i=U(s);if(!e&&i&&G(wo,r))return Reflect.get(wo,r,o);const c=Reflect.get(s,r,o);return(_n(r)?zi.has(r):Ql(r))||(e||Ae(s,"get",r),t)?c:be(c)?i&&kr(r)?c:c.value:re(c)?e?Xi(c):In(c):c}}const ea=Vi(),ta=Vi(!0);function Vi(e=!1){return function(n,s,r,o){let i=n[s];if(Vt(i)&&be(i)&&!be(r))return!1;if(!e&&(!ls(r)&&!Vt(r)&&(i=Y(i),r=Y(r)),!U(n)&&be(i)&&!be(r)))return i.value=r,!0;const c=U(n)&&kr(s)?Number(s)e,Rs=e=>Reflect.getPrototypeOf(e);function Fn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Y(e),o=Y(t);n||(t!==o&&Ae(r,"get",t),Ae(r,"get",o));const{has:i}=Rs(r),c=s?Fr:n?jr:vn;if(i.call(r,t))return c(e.get(t));if(i.call(r,o))return c(e.get(o));e!==r&&e.get(t)}function $n(e,t=!1){const n=this.__v_raw,s=Y(n),r=Y(e);return t||(e!==r&&Ae(s,"has",e),Ae(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Dn(e,t=!1){return e=e.__v_raw,!t&&Ae(Y(e),"iterate",At),Reflect.get(e,"size",e)}function vo(e){e=Y(e);const t=Y(this);return Rs(t).has.call(t,e)||(t.add(e),nt(t,"add",e,e)),this}function Eo(e,t){t=Y(t);const n=Y(this),{has:s,get:r}=Rs(n);let o=s.call(n,e);o||(e=Y(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?bn(t,i)&&nt(n,"set",e,t):nt(n,"add",e,t),this}function xo(e){const t=Y(this),{has:n,get:s}=Rs(t);let r=n.call(t,e);r||(e=Y(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&nt(t,"delete",e,void 0),o}function So(){const e=Y(this),t=e.size!==0,n=e.clear();return t&&nt(e,"clear",void 0,void 0),n}function jn(e,t){return function(s,r){const o=this,i=o.__v_raw,c=Y(i),l=t?Fr:e?jr:vn;return!e&&Ae(c,"iterate",At),i.forEach((a,u)=>s.call(r,l(a),l(u),o))}}function Un(e,t,n){return function(...s){const r=this.__v_raw,o=Y(r),i=Ht(o),c=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,a=r[e](...s),u=n?Fr:t?jr:vn;return!t&&Ae(o,"iterate",l?or:At),{next(){const{value:d,done:p}=a.next();return p?{value:d,done:p}:{value:c?[u(d[0]),u(d[1])]:u(d),done:p}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){return e==="delete"?!1:this}}function ca(){const e={get(o){return Fn(this,o)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!1)},t={get(o){return Fn(this,o,!1,!0)},get size(){return Dn(this)},has:$n,add:vo,set:Eo,delete:xo,clear:So,forEach:jn(!1,!0)},n={get(o){return Fn(this,o,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!1)},s={get(o){return Fn(this,o,!0,!0)},get size(){return Dn(this,!0)},has(o){return $n.call(this,o,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:jn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Un(o,!1,!1),n[o]=Un(o,!0,!1),t[o]=Un(o,!1,!0),s[o]=Un(o,!0,!0)}),[e,n,t,s]}const[la,aa,ua,fa]=ca();function $r(e,t){const n=t?e?fa:ua:e?aa:la;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(G(n,r)&&r in s?n:s,r,o)}const da={get:$r(!1,!1)},ha={get:$r(!1,!0)},pa={get:$r(!0,!1)},Ji=new WeakMap,Qi=new WeakMap,Gi=new WeakMap,ma=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ya(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(Bl(e))}function In(e){return Vt(e)?e:Dr(e,!1,Wi,da,Ji)}function _a(e){return Dr(e,!1,ia,ha,Qi)}function Xi(e){return Dr(e,!0,oa,pa,Gi)}function Dr(e,t,n,s,r){if(!re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ya(e);if(i===0)return e;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function qt(e){return Vt(e)?qt(e.__v_raw):!!(e&&e.__v_isReactive)}function Vt(e){return!!(e&&e.__v_isReadonly)}function ls(e){return!!(e&&e.__v_isShallow)}function Yi(e){return qt(e)||Vt(e)}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function Zi(e){return cs(e,"__v_skip",!0),e}const vn=e=>re(e)?In(e):e,jr=e=>re(e)?Xi(e):e;function ec(e){ht&&Fe&&(e=Y(e),Ki(e.dep||(e.dep=Nr())))}function tc(e,t){e=Y(e),e.dep&&ir(e.dep)}function be(e){return!!(e&&e.__v_isRef===!0)}function Pe(e){return nc(e,!1)}function ba(e){return nc(e,!0)}function nc(e,t){return be(e)?e:new wa(e,t)}class wa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Y(t),this._value=n?t:vn(t)}get value(){return ec(this),this._value}set value(t){const n=this.__v_isShallow||ls(t)||Vt(t);t=n?t:Y(t),bn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vn(t),tc(this))}}function Kt(e){return be(e)?e.value:e}const va={get:(e,t,n)=>Kt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return be(r)&&!be(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function sc(e){return qt(e)?e:new Proxy(e,va)}var rc;class Ea{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rc]=!1,this._dirty=!0,this.effect=new Lr(t,()=>{this._dirty||(this._dirty=!0,tc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Y(this);return ec(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rc="__v_isReadonly";function xa(e,t,n=!1){let s,r;const o=q(e);return o?(s=e,r=je):(s=e.get,r=e.set),new Ea(s,r,o||!r,n)}function pt(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){Os(o,t,n)}return r}function Ue(e,t,n,s){if(q(e)){const o=pt(e,t,n,s);return o&&Di(o)&&o.catch(i=>{Os(i,t,n)}),o}const r=[];for(let o=0;o>>1;xn(_e[s])Qe&&_e.splice(t,1)}function Ca(e){U(e)?zt.push(...e):(!et||!et.includes(e,e.allowRecurse?St+1:St))&&zt.push(e),cc()}function Ro(e,t=En?Qe+1:0){for(;t<_e.length;t++){const n=_e[t];n&&n.pre&&(_e.splice(t,1),t--,n())}}function lc(e){if(zt.length){const t=[...new Set(zt)];if(zt.length=0,et){et.push(...t);return}for(et=t,et.sort((n,s)=>xn(n)-xn(s)),St=0;Ste.id==null?1/0:e.id,Aa=(e,t)=>{const n=xn(e)-xn(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ac(e){cr=!1,En=!0,_e.sort(Aa);const t=je;try{for(Qe=0;Qe<_e.length;Qe++){const n=_e[Qe];n&&n.active!==!1&&pt(n,null,14)}}finally{Qe=0,_e.length=0,lc(),En=!1,Ur=null,(_e.length||zt.length)&&ac()}}function Pa(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||oe;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const u=`${i==="modelValue"?"model":i}Modifiers`,{number:d,trim:p}=s[u]||oe;p&&(r=n.map(m=>fe(m)?m.trim():m)),d&&(r=n.map(wn))}let c,l=s[c=qs(t)]||s[c=qs(Ye(t))];!l&&o&&(l=s[c=qs(Lt(t))]),l&&Ue(l,e,6,r);const a=s[c+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Ue(a,e,6,r)}}function uc(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},c=!1;if(!q(e)){const l=a=>{const u=uc(a,t,!0);u&&(c=!0,xe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!c?(re(e)&&s.set(e,null),null):(U(o)?o.forEach(l=>i[l]=null):xe(i,o),re(e)&&s.set(e,i),i)}function Cs(e,t){return!e||!vs(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,Lt(t))||G(e,t))}let Ie=null,As=null;function as(e){const t=Ie;return Ie=e,As=e&&e.type.__scopeId||null,t}function fc(e){As=e}function dc(){As=null}function Ta(e,t=Ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Lo(-1);const o=as(t);let i;try{i=e(...r)}finally{as(o),s._d&&Lo(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Ks(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:c,attrs:l,emit:a,render:u,renderCache:d,data:p,setupState:m,ctx:g,inheritAttrs:w}=e;let A,R;const N=as(e);try{if(n.shapeFlag&4){const J=r||s;A=Je(u.call(J,J,d,o,m,p,g)),R=l}else{const J=t;A=Je(J.length>1?J(o,{attrs:l,slots:c,emit:a}):J(o,null)),R=t.props?l:Ia(l)}}catch(J){pn.length=0,Os(J,e,1),A=W(It)}let M=A;if(R&&w!==!1){const J=Object.keys(R),{shapeFlag:le}=M;J.length&&le&7&&(i&&J.some(Tr)&&(R=ka(R,i)),M=Wt(M,R))}return n.dirs&&(M=Wt(M),M.dirs=M.dirs?M.dirs.concat(n.dirs):n.dirs),n.transition&&(M.transition=n.transition),A=M,as(N),A}const Ia=e=>{let t;for(const n in e)(n==="class"||n==="style"||vs(n))&&((t||(t={}))[n]=e[n]);return t},ka=(e,t)=>{const n={};for(const s in e)(!Tr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Na(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:c,patchFlag:l}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Oo(s,i,a):!!i;if(l&8){const u=t.dynamicProps;for(let d=0;de.__isSuspense;function Fa(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):Ca(e)}function Jn(e,t){if(ye){let n=ye.provides;const s=ye.parent&&ye.parent.provides;s===n&&(n=ye.provides=Object.create(s)),n[e]=t}}function Xe(e,t,n=!1){const s=ye||Ie;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&q(t)?t.call(s.proxy):t}}const Bn={};function dn(e,t,n){return hc(e,t,n)}function hc(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=oe){const c=ye;let l,a=!1,u=!1;if(be(e)?(l=()=>e.value,a=ls(e)):qt(e)?(l=()=>e,s=!0):U(e)?(u=!0,a=e.some(M=>qt(M)||ls(M)),l=()=>e.map(M=>{if(be(M))return M.value;if(qt(M))return Ct(M);if(q(M))return pt(M,c,2)})):q(e)?t?l=()=>pt(e,c,2):l=()=>{if(!(c&&c.isUnmounted))return d&&d(),Ue(e,c,3,[p])}:l=je,t&&s){const M=l;l=()=>Ct(M())}let d,p=M=>{d=R.onStop=()=>{pt(M,c,4)}},m;if(Rn)if(p=je,t?n&&Ue(t,c,3,[l(),u?[]:void 0,p]):l(),r==="sync"){const M=Ou();m=M.__watcherHandles||(M.__watcherHandles=[])}else return je;let g=u?new Array(e.length).fill(Bn):Bn;const w=()=>{if(R.active)if(t){const M=R.run();(s||a||(u?M.some((J,le)=>bn(J,g[le])):bn(M,g)))&&(d&&d(),Ue(t,c,3,[M,g===Bn?void 0:u&&g[0]===Bn?[]:g,p]),g=M)}else R.run()};w.allowRecurse=!!t;let A;r==="sync"?A=w:r==="post"?A=()=>Re(w,c&&c.suspense):(w.pre=!0,c&&(w.id=c.uid),A=()=>Br(w));const R=new Lr(l,A);t?n?w():g=R.run():r==="post"?Re(R.run.bind(R),c&&c.suspense):R.run();const N=()=>{R.stop(),c&&c.scope&&Ir(c.scope.effects,R)};return m&&m.push(N),N}function $a(e,t,n){const s=this.proxy,r=fe(e)?e.includes(".")?pc(s,e):()=>s[e]:e.bind(s,s);let o;q(t)?o=t:(o=t.handler,n=t);const i=ye;Jt(this);const c=hc(r,o.bind(s),n);return i?Jt(i):Tt(),c}function pc(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Ct(n,t)});else if(Ui(e))for(const n in e)Ct(e[n],t);return e}function Hr(e){return q(e)?{setup:e,name:e.name}:e}const Qn=e=>!!e.type.__asyncLoader,mc=e=>e.type.__isKeepAlive;function Da(e,t){gc(e,"a",t)}function ja(e,t){gc(e,"da",t)}function gc(e,t,n=ye){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ps(t,s,n),n){let r=n.parent;for(;r&&r.parent;)mc(r.parent.vnode)&&Ua(s,t,n,r),r=r.parent}}function Ua(e,t,n,s){const r=Ps(t,e,s,!0);bc(()=>{Ir(s[t],r)},n)}function Ps(e,t,n=ye,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Yt(),Jt(n);const c=Ue(t,n,e,i);return Tt(),Zt(),c});return s?r.unshift(o):r.push(o),o}}const st=e=>(t,n=ye)=>(!Rn||e==="sp")&&Ps(e,(...s)=>t(...s),n),yc=st("bm"),Ts=st("m"),Ba=st("bu"),Ha=st("u"),_c=st("bum"),bc=st("um"),qa=st("sp"),Ka=st("rtg"),za=st("rtc");function Va(e,t=ye){Ps("ec",e,t)}function Gn(e,t){const n=Ie;if(n===null)return e;const s=Ns(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;ot(i,c,void 0,o&&o[c]));else{const i=Object.keys(e);r=new Array(i.length);for(let c=0,l=i.length;ce?kc(e)?Ns(e)||e.proxy:lr(e.parent):null,hn=xe(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=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>qr(e),$forceUpdate:e=>e.f||(e.f=()=>Br(e.update)),$nextTick:e=>e.n||(e.n=ic.bind(e.proxy)),$watch:e=>$a.bind(e)}),zs=(e,t)=>e!==oe&&!e.__isScriptSetup&&G(e,t),Qa={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:c,appContext:l}=e;let a;if(t[0]!=="$"){const m=i[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(zs(s,t))return i[t]=1,s[t];if(r!==oe&&G(r,t))return i[t]=2,r[t];if((a=e.propsOptions[0])&&G(a,t))return i[t]=3,o[t];if(n!==oe&&G(n,t))return i[t]=4,n[t];ar&&(i[t]=0)}}const u=hn[t];let d,p;if(u)return t==="$attrs"&&Ae(e,"get",t),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==oe&&G(n,t))return i[t]=4,n[t];if(p=l.config.globalProperties,G(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return zs(r,t)?(r[t]=n,!0):s!==oe&&G(s,t)?(s[t]=n,!0):G(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o}},i){let c;return!!n[i]||e!==oe&&G(e,i)||zs(t,i)||(c=o[0])&&G(c,i)||G(s,i)||G(hn,i)||G(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ar=!0;function Ga(e){const t=qr(e),n=e.proxy,s=e.ctx;ar=!1,t.beforeCreate&&Ao(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:c,provide:l,inject:a,created:u,beforeMount:d,mounted:p,beforeUpdate:m,updated:g,activated:w,deactivated:A,beforeDestroy:R,beforeUnmount:N,destroyed:M,unmounted:J,render:le,renderTracked:K,renderTriggered:ie,errorCaptured:we,serverPrefetch:ke,expose:he,inheritAttrs:ot,components:qe,directives:Ft,filters:yt}=t;if(a&&Xa(a,s,null,e.appContext.config.unwrapInjectedRef),i)for(const ne in i){const ee=i[ne];q(ee)&&(s[ne]=ee.bind(n))}if(r){const ne=r.call(n,n);re(ne)&&(e.data=In(ne))}if(ar=!0,o)for(const ne in o){const ee=o[ne],Ne=q(ee)?ee.bind(n,n):q(ee.get)?ee.get.bind(n,n):je,_t=!q(ee)&&q(ee.set)?ee.set.bind(n):je,Le=Te({get:Ne,set:_t});Object.defineProperty(s,ne,{enumerable:!0,configurable:!0,get:()=>Le.value,set:Se=>Le.value=Se})}if(c)for(const ne in c)vc(c[ne],s,n,ne);if(l){const ne=q(l)?l.call(n):l;Reflect.ownKeys(ne).forEach(ee=>{Jn(ee,ne[ee])})}u&&Ao(u,e,"c");function ae(ne,ee){U(ee)?ee.forEach(Ne=>ne(Ne.bind(n))):ee&&ne(ee.bind(n))}if(ae(yc,d),ae(Ts,p),ae(Ba,m),ae(Ha,g),ae(Da,w),ae(ja,A),ae(Va,we),ae(za,K),ae(Ka,ie),ae(_c,N),ae(bc,J),ae(qa,ke),U(he))if(he.length){const ne=e.exposed||(e.exposed={});he.forEach(ee=>{Object.defineProperty(ne,ee,{get:()=>n[ee],set:Ne=>n[ee]=Ne})})}else e.exposed||(e.exposed={});le&&e.render===je&&(e.render=le),ot!=null&&(e.inheritAttrs=ot),qe&&(e.components=qe),Ft&&(e.directives=Ft)}function Xa(e,t,n=je,s=!1){U(e)&&(e=ur(e));for(const r in e){const o=e[r];let i;re(o)?"default"in o?i=Xe(o.from||r,o.default,!0):i=Xe(o.from||r):i=Xe(o),be(i)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:c=>i.value=c}):t[r]=i}}function Ao(e,t,n){Ue(U(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vc(e,t,n,s){const r=s.includes(".")?pc(n,s):()=>n[s];if(fe(e)){const o=t[e];q(o)&&dn(r,o)}else if(q(e))dn(r,e.bind(n));else if(re(e))if(U(e))e.forEach(o=>vc(o,t,n,s));else{const o=q(e.handler)?e.handler.bind(n):t[e.handler];q(o)&&dn(r,o,e)}}function qr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,c=o.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(a=>us(l,a,i,!0)),us(l,t,i)),re(t)&&o.set(t,l),l}function us(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&us(e,o,n,!0),r&&r.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const c=Ya[i]||n&&n[i];e[i]=c?c(e[i],t[i]):t[i]}return e}const Ya={data:Po,props:xt,emits:xt,methods:xt,computed:xt,beforeCreate:ve,created:ve,beforeMount:ve,mounted:ve,beforeUpdate:ve,updated:ve,beforeDestroy:ve,beforeUnmount:ve,destroyed:ve,unmounted:ve,activated:ve,deactivated:ve,errorCaptured:ve,serverPrefetch:ve,components:xt,directives:xt,watch:eu,provide:Po,inject:Za};function Po(e,t){return t?e?function(){return xe(q(e)?e.call(this,this):e,q(t)?t.call(this,this):t)}:t:e}function Za(e,t){return xt(ur(e),ur(t))}function ur(e){if(U(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let d=0;d{l=!0;const[p,m]=xc(d,t,!0);xe(i,p),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return re(e)&&s.set(e,Bt),Bt;if(U(o))for(let u=0;u-1,m[1]=w<0||g-1||G(m,"default"))&&c.push(d)}}}const a=[i,c];return re(e)&&s.set(e,a),a}function To(e){return e[0]!=="$"}function Io(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ko(e,t){return Io(e)===Io(t)}function No(e,t){return U(t)?t.findIndex(n=>ko(n,e)):q(t)&&ko(t,e)?0:-1}const Sc=e=>e[0]==="_"||e==="$stable",Kr=e=>U(e)?e.map(Je):[Je(e)],su=(e,t,n)=>{if(t._n)return t;const s=Ta((...r)=>Kr(t(...r)),n);return s._c=!1,s},Rc=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Sc(r))continue;const o=e[r];if(q(o))t[r]=su(r,o,s);else if(o!=null){const i=Kr(o);t[r]=()=>i}}},Oc=(e,t)=>{const n=Kr(t);e.slots.default=()=>n},ru=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Y(t),cs(t,"_",n)):Rc(t,e.slots={})}else e.slots={},t&&Oc(e,t);cs(e.slots,ks,1)},ou=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=oe;if(s.shapeFlag&32){const c=t._;c?n&&c===1?o=!1:(xe(r,t),!n&&c===1&&delete r._):(o=!t.$stable,Rc(t,r)),i=t}else t&&(Oc(e,t),i={default:1});if(o)for(const c in r)!Sc(c)&&!(c in i)&&delete r[c]};function Cc(){return{app:null,config:{isNativeTag:Dl,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 iu=0;function cu(e,t){return function(s,r=null){q(s)||(s=Object.assign({},s)),r!=null&&!re(r)&&(r=null);const o=Cc(),i=new Set;let c=!1;const l=o.app={_uid:iu++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Cu,get config(){return o.config},set config(a){},use(a,...u){return i.has(a)||(a&&q(a.install)?(i.add(a),a.install(l,...u)):q(a)&&(i.add(a),a(l,...u))),l},mixin(a){return o.mixins.includes(a)||o.mixins.push(a),l},component(a,u){return u?(o.components[a]=u,l):o.components[a]},directive(a,u){return u?(o.directives[a]=u,l):o.directives[a]},mount(a,u,d){if(!c){const p=W(s,r);return p.appContext=o,u&&t?t(p,a):e(p,a,d),c=!0,l._container=a,a.__vue_app__=l,Ns(p.component)||p.component.proxy}},unmount(){c&&(e(null,l._container),delete l._container.__vue_app__)},provide(a,u){return o.provides[a]=u,l}};return l}}function dr(e,t,n,s,r=!1){if(U(e)){e.forEach((p,m)=>dr(p,t&&(U(t)?t[m]:t),n,s,r));return}if(Qn(s)&&!r)return;const o=s.shapeFlag&4?Ns(s.component)||s.component.proxy:s.el,i=r?null:o,{i:c,r:l}=e,a=t&&t.r,u=c.refs===oe?c.refs={}:c.refs,d=c.setupState;if(a!=null&&a!==l&&(fe(a)?(u[a]=null,G(d,a)&&(d[a]=null)):be(a)&&(a.value=null)),q(l))pt(l,c,12,[i,u]);else{const p=fe(l),m=be(l);if(p||m){const g=()=>{if(e.f){const w=p?G(d,l)?d[l]:u[l]:l.value;r?U(w)&&Ir(w,o):U(w)?w.includes(o)||w.push(o):p?(u[l]=[o],G(d,l)&&(d[l]=u[l])):(l.value=[o],e.k&&(u[e.k]=l.value))}else p?(u[l]=i,G(d,l)&&(d[l]=i)):m&&(l.value=i,e.k&&(u[e.k]=i))};i?(g.id=-1,Re(g,n)):g()}}}const Re=Fa;function lu(e){return au(e)}function au(e,t){const n=Kl();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:c,createComment:l,setText:a,setElementText:u,parentNode:d,nextSibling:p,setScopeId:m=je,insertStaticContent:g}=e,w=(f,h,y,b=null,E=null,O=null,I=!1,S=null,P=!!h.dynamicChildren)=>{if(f===h)return;f&&!on(f,h)&&(b=T(f),Se(f,E,O,!0),f=null),h.patchFlag===-2&&(P=!1,h.dynamicChildren=null);const{type:x,ref:$,shapeFlag:L}=h;switch(x){case Is:A(f,h,y,b);break;case It:R(f,h,y,b);break;case Xn:f==null&&N(h,y,b,I);break;case pe:qe(f,h,y,b,E,O,I,S,P);break;default:L&1?le(f,h,y,b,E,O,I,S,P):L&6?Ft(f,h,y,b,E,O,I,S,P):(L&64||L&128)&&x.process(f,h,y,b,E,O,I,S,P,Q)}$!=null&&E&&dr($,f&&f.ref,O,h||f,!h)},A=(f,h,y,b)=>{if(f==null)s(h.el=c(h.children),y,b);else{const E=h.el=f.el;h.children!==f.children&&a(E,h.children)}},R=(f,h,y,b)=>{f==null?s(h.el=l(h.children||""),y,b):h.el=f.el},N=(f,h,y,b)=>{[f.el,f.anchor]=g(f.children,h,y,b,f.el,f.anchor)},M=({el:f,anchor:h},y,b)=>{let E;for(;f&&f!==h;)E=p(f),s(f,y,b),f=E;s(h,y,b)},J=({el:f,anchor:h})=>{let y;for(;f&&f!==h;)y=p(f),r(f),f=y;r(h)},le=(f,h,y,b,E,O,I,S,P)=>{I=I||h.type==="svg",f==null?K(h,y,b,E,O,I,S,P):ke(f,h,E,O,I,S,P)},K=(f,h,y,b,E,O,I,S)=>{let P,x;const{type:$,props:L,shapeFlag:D,transition:B,dirs:V}=f;if(P=f.el=i(f.type,O,L&&L.is,L),D&8?u(P,f.children):D&16&&we(f.children,P,null,b,E,O&&$!=="foreignObject",I,S),V&&bt(f,null,b,"created"),L){for(const te in L)te!=="value"&&!Vn(te)&&o(P,te,null,L[te],O,f.children,b,E,k);"value"in L&&o(P,"value",null,L.value),(x=L.onVnodeBeforeMount)&&ze(x,b,f)}ie(P,f,f.scopeId,I,b),V&&bt(f,null,b,"beforeMount");const se=(!E||E&&!E.pendingBranch)&&B&&!B.persisted;se&&B.beforeEnter(P),s(P,h,y),((x=L&&L.onVnodeMounted)||se||V)&&Re(()=>{x&&ze(x,b,f),se&&B.enter(P),V&&bt(f,null,b,"mounted")},E)},ie=(f,h,y,b,E)=>{if(y&&m(f,y),b)for(let O=0;O{for(let x=P;x{const S=h.el=f.el;let{patchFlag:P,dynamicChildren:x,dirs:$}=h;P|=f.patchFlag&16;const L=f.props||oe,D=h.props||oe;let B;y&&wt(y,!1),(B=D.onVnodeBeforeUpdate)&&ze(B,y,h,f),$&&bt(h,f,y,"beforeUpdate"),y&&wt(y,!0);const V=E&&h.type!=="foreignObject";if(x?he(f.dynamicChildren,x,S,y,b,V,O):I||ee(f,h,S,null,y,b,V,O,!1),P>0){if(P&16)ot(S,h,L,D,y,b,E);else if(P&2&&L.class!==D.class&&o(S,"class",null,D.class,E),P&4&&o(S,"style",L.style,D.style,E),P&8){const se=h.dynamicProps;for(let te=0;te{B&&ze(B,y,h,f),$&&bt(h,f,y,"updated")},b)},he=(f,h,y,b,E,O,I)=>{for(let S=0;S{if(y!==b){if(y!==oe)for(const S in y)!Vn(S)&&!(S in b)&&o(f,S,y[S],null,I,h.children,E,O,k);for(const S in b){if(Vn(S))continue;const P=b[S],x=y[S];P!==x&&S!=="value"&&o(f,S,x,P,I,h.children,E,O,k)}"value"in b&&o(f,"value",y.value,b.value)}},qe=(f,h,y,b,E,O,I,S,P)=>{const x=h.el=f?f.el:c(""),$=h.anchor=f?f.anchor:c("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=h;B&&(S=S?S.concat(B):B),f==null?(s(x,y,b),s($,y,b),we(h.children,y,$,E,O,I,S,P)):L>0&&L&64&&D&&f.dynamicChildren?(he(f.dynamicChildren,D,y,E,O,I,S),(h.key!=null||E&&h===E.subTree)&&Ac(f,h,!0)):ee(f,h,y,$,E,O,I,S,P)},Ft=(f,h,y,b,E,O,I,S,P)=>{h.slotScopeIds=S,f==null?h.shapeFlag&512?E.ctx.activate(h,y,b,I,P):yt(h,y,b,E,O,I,P):sn(f,h,P)},yt=(f,h,y,b,E,O,I)=>{const S=f.component=_u(f,b,E);if(mc(f)&&(S.ctx.renderer=Q),bu(S),S.asyncDep){if(E&&E.registerDep(S,ae),!f.el){const P=S.subTree=W(It);R(null,P,h,y)}return}ae(S,f,h,y,E,O,I)},sn=(f,h,y)=>{const b=h.component=f.component;if(Na(f,h,y))if(b.asyncDep&&!b.asyncResolved){ne(b,h,y);return}else b.next=h,Oa(b.update),b.update();else h.el=f.el,b.vnode=h},ae=(f,h,y,b,E,O,I)=>{const S=()=>{if(f.isMounted){let{next:$,bu:L,u:D,parent:B,vnode:V}=f,se=$,te;wt(f,!1),$?($.el=V.el,ne(f,$,I)):$=V,L&&Wn(L),(te=$.props&&$.props.onVnodeBeforeUpdate)&&ze(te,B,$,V),wt(f,!0);const ue=Ks(f),Me=f.subTree;f.subTree=ue,w(Me,ue,d(Me.el),T(Me),f,E,O),$.el=ue.el,se===null&&La(f,ue.el),D&&Re(D,E),(te=$.props&&$.props.onVnodeUpdated)&&Re(()=>ze(te,B,$,V),E)}else{let $;const{el:L,props:D}=h,{bm:B,m:V,parent:se}=f,te=Qn(h);if(wt(f,!1),B&&Wn(B),!te&&($=D&&D.onVnodeBeforeMount)&&ze($,se,h),wt(f,!0),L&&z){const ue=()=>{f.subTree=Ks(f),z(L,f.subTree,f,E,null)};te?h.type.__asyncLoader().then(()=>!f.isUnmounted&&ue()):ue()}else{const ue=f.subTree=Ks(f);w(null,ue,y,b,f,E,O),h.el=ue.el}if(V&&Re(V,E),!te&&($=D&&D.onVnodeMounted)){const ue=h;Re(()=>ze($,se,ue),E)}(h.shapeFlag&256||se&&Qn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&Re(f.a,E),f.isMounted=!0,h=y=b=null}},P=f.effect=new Lr(S,()=>Br(x),f.scope),x=f.update=()=>P.run();x.id=f.uid,wt(f,!0),x()},ne=(f,h,y)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,nu(f,h.props,b,y),ou(f,h.children,y),Yt(),Ro(),Zt()},ee=(f,h,y,b,E,O,I,S,P=!1)=>{const x=f&&f.children,$=f?f.shapeFlag:0,L=h.children,{patchFlag:D,shapeFlag:B}=h;if(D>0){if(D&128){_t(x,L,y,b,E,O,I,S,P);return}else if(D&256){Ne(x,L,y,b,E,O,I,S,P);return}}B&8?($&16&&k(x,E,O),L!==x&&u(y,L)):$&16?B&16?_t(x,L,y,b,E,O,I,S,P):k(x,E,O,!0):($&8&&u(y,""),B&16&&we(L,y,b,E,O,I,S,P))},Ne=(f,h,y,b,E,O,I,S,P)=>{f=f||Bt,h=h||Bt;const x=f.length,$=h.length,L=Math.min(x,$);let D;for(D=0;D$?k(f,E,O,!0,!1,L):we(h,y,b,E,O,I,S,P,L)},_t=(f,h,y,b,E,O,I,S,P)=>{let x=0;const $=h.length;let L=f.length-1,D=$-1;for(;x<=L&&x<=D;){const B=f[x],V=h[x]=P?ut(h[x]):Je(h[x]);if(on(B,V))w(B,V,y,null,E,O,I,S,P);else break;x++}for(;x<=L&&x<=D;){const B=f[L],V=h[D]=P?ut(h[D]):Je(h[D]);if(on(B,V))w(B,V,y,null,E,O,I,S,P);else break;L--,D--}if(x>L){if(x<=D){const B=D+1,V=B<$?h[B].el:b;for(;x<=D;)w(null,h[x]=P?ut(h[x]):Je(h[x]),y,V,E,O,I,S,P),x++}}else if(x>D)for(;x<=L;)Se(f[x],E,O,!0),x++;else{const B=x,V=x,se=new Map;for(x=V;x<=D;x++){const Oe=h[x]=P?ut(h[x]):Je(h[x]);Oe.key!=null&&se.set(Oe.key,x)}let te,ue=0;const Me=D-V+1;let Dt=!1,ho=0;const rn=new Array(Me);for(x=0;x=Me){Se(Oe,E,O,!0);continue}let Ke;if(Oe.key!=null)Ke=se.get(Oe.key);else for(te=V;te<=D;te++)if(rn[te-V]===0&&on(Oe,h[te])){Ke=te;break}Ke===void 0?Se(Oe,E,O,!0):(rn[Ke-V]=x+1,Ke>=ho?ho=Ke:Dt=!0,w(Oe,h[Ke],y,null,E,O,I,S,P),ue++)}const po=Dt?uu(rn):Bt;for(te=po.length-1,x=Me-1;x>=0;x--){const Oe=V+x,Ke=h[Oe],mo=Oe+1<$?h[Oe+1].el:b;rn[x]===0?w(null,Ke,y,mo,E,O,I,S,P):Dt&&(te<0||x!==po[te]?Le(Ke,y,mo,2):te--)}}},Le=(f,h,y,b,E=null)=>{const{el:O,type:I,transition:S,children:P,shapeFlag:x}=f;if(x&6){Le(f.component.subTree,h,y,b);return}if(x&128){f.suspense.move(h,y,b);return}if(x&64){I.move(f,h,y,Q);return}if(I===pe){s(O,h,y);for(let L=0;LS.enter(O),E);else{const{leave:L,delayLeave:D,afterLeave:B}=S,V=()=>s(O,h,y),se=()=>{L(O,()=>{V(),B&&B()})};D?D(O,V,se):se()}else s(O,h,y)},Se=(f,h,y,b=!1,E=!1)=>{const{type:O,props:I,ref:S,children:P,dynamicChildren:x,shapeFlag:$,patchFlag:L,dirs:D}=f;if(S!=null&&dr(S,null,y,f,!0),$&256){h.ctx.deactivate(f);return}const B=$&1&&D,V=!Qn(f);let se;if(V&&(se=I&&I.onVnodeBeforeUnmount)&&ze(se,h,f),$&6)v(f.component,y,b);else{if($&128){f.suspense.unmount(y,b);return}B&&bt(f,null,h,"beforeUnmount"),$&64?f.type.remove(f,h,y,E,Q,b):x&&(O!==pe||L>0&&L&64)?k(x,h,y,!1,!0):(O===pe&&L&384||!E&&$&16)&&k(P,h,y),b&&$t(f)}(V&&(se=I&&I.onVnodeUnmounted)||B)&&Re(()=>{se&&ze(se,h,f),B&&bt(f,null,h,"unmounted")},y)},$t=f=>{const{type:h,el:y,anchor:b,transition:E}=f;if(h===pe){Mn(y,b);return}if(h===Xn){J(f);return}const O=()=>{r(y),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(f.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:S}=E,P=()=>I(y,O);S?S(f.el,O,P):P()}else O()},Mn=(f,h)=>{let y;for(;f!==h;)y=p(f),r(f),f=y;r(h)},v=(f,h,y)=>{const{bum:b,scope:E,update:O,subTree:I,um:S}=f;b&&Wn(b),E.stop(),O&&(O.active=!1,Se(I,f,h,y)),S&&Re(S,h),Re(()=>{f.isUnmounted=!0},h),h&&h.pendingBranch&&!h.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===h.pendingId&&(h.deps--,h.deps===0&&h.resolve())},k=(f,h,y,b=!1,E=!1,O=0)=>{for(let I=O;If.shapeFlag&6?T(f.component.subTree):f.shapeFlag&128?f.suspense.next():p(f.anchor||f.el),F=(f,h,y)=>{f==null?h._vnode&&Se(h._vnode,null,null,!0):w(h._vnode||null,f,h,null,null,null,y),Ro(),lc(),h._vnode=f},Q={p:w,um:Se,m:Le,r:$t,mt:yt,mc:we,pc:ee,pbc:he,n:T,o:e};let ce,z;return t&&([ce,z]=t(Q)),{render:F,hydrate:ce,createApp:cu(F,ce)}}function wt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ac(e,t,n=!1){const s=e.children,r=t.children;if(U(s)&&U(r))for(let o=0;o>1,e[n[c]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const fu=e=>e.__isTeleport,pe=Symbol(void 0),Is=Symbol(void 0),It=Symbol(void 0),Xn=Symbol(void 0),pn=[];let De=null;function j(e=!1){pn.push(De=e?null:[])}function du(){pn.pop(),De=pn[pn.length-1]||null}let Sn=1;function Lo(e){Sn+=e}function Pc(e){return e.dynamicChildren=Sn>0?De||Bt:null,du(),Sn>0&&De&&De.push(e),e}function H(e,t,n,s,r,o){return Pc(C(e,t,n,s,r,o,!0))}function fs(e,t,n,s,r){return Pc(W(e,t,n,s,r,!0))}function hr(e){return e?e.__v_isVNode===!0:!1}function on(e,t){return e.type===t.type&&e.key===t.key}const ks="__vInternal",Tc=({key:e})=>e??null,Yn=({ref:e,ref_key:t,ref_for:n})=>e!=null?fe(e)||be(e)||q(e)?{i:Ie,r:e,k:t,f:!!n}:e:null;function C(e,t=null,n=null,s=0,r=null,o=e===pe?0:1,i=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Tc(t),ref:t&&Yn(t),scopeId:As,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:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ie};return c?(zr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=fe(n)?8:16),Sn>0&&!i&&De&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&De.push(l),l}const W=hu;function hu(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Wa)&&(e=It),hr(e)){const c=Wt(e,t,!0);return n&&zr(c,n),Sn>0&&!o&&De&&(c.shapeFlag&6?De[De.indexOf(e)]=c:De.push(c)),c.patchFlag|=-2,c}if(Su(e)&&(e=e.__vccOpts),t){t=pu(t);let{class:c,style:l}=t;c&&!fe(c)&&(t.class=bs(c)),re(l)&&(Yi(l)&&!U(l)&&(l=xe({},l)),t.style=_s(l))}const i=fe(e)?1:Ma(e)?128:fu(e)?64:re(e)?4:q(e)?2:0;return C(e,t,n,s,r,i,o,!0)}function pu(e){return e?Yi(e)||ks in e?xe({},e):e:null}function Wt(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,c=t?mu(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Tc(c),ref:t&&t.ref?n&&r?U(r)?r.concat(Yn(t)):[r,Yn(t)]:Yn(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==pe?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&&Wt(e.ssContent),ssFallback:e.ssFallback&&Wt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function me(e=" ",t=0){return W(Is,null,e,t)}function Ic(e,t){const n=W(Xn,null,e);return n.staticCount=t,n}function dt(e="",t=!1){return t?(j(),fs(It,null,e)):W(It,null,e)}function Je(e){return e==null||typeof e=="boolean"?W(It):U(e)?W(pe,null,e.slice()):typeof e=="object"?ut(e):W(Is,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Wt(e)}function zr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zr(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(ks in t)?t._ctx=Ie:r===3&&Ie&&(Ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else q(t)?(t={default:t,_ctx:Ie},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function mu(...e){const t={};for(let n=0;n{ye=e,e.scope.on()},Tt=()=>{ye&&ye.scope.off(),ye=null};function kc(e){return e.vnode.shapeFlag&4}let Rn=!1;function bu(e,t=!1){Rn=t;const{props:n,children:s}=e.vnode,r=kc(e);tu(e,n,r,t),ru(e,s);const o=r?wu(e,t):void 0;return Rn=!1,o}function wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Zi(new Proxy(e.ctx,Qa));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Eu(e):null;Jt(e),Yt();const o=pt(s,e,0,[e.props,r]);if(Zt(),Tt(),Di(o)){if(o.then(Tt,Tt),t)return o.then(i=>{Mo(e,i,t)}).catch(i=>{Os(i,e,0)});e.asyncDep=o}else Mo(e,o,t)}else Nc(e,t)}function Mo(e,t,n){q(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:re(t)&&(e.setupState=sc(t)),Nc(e,n)}let Fo;function Nc(e,t,n){const s=e.type;if(!e.render){if(!t&&Fo&&!s.render){const r=s.template||qr(e).template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:c,compilerOptions:l}=s,a=xe(xe({isCustomElement:o,delimiters:c},i),l);s.render=Fo(r,a)}}e.render=s.render||je}Jt(e),Yt(),Ga(e),Zt(),Tt()}function vu(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function Eu(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=vu(e))},slots:e.slots,emit:e.emit,expose:t}}function Ns(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sc(Zi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in hn)return hn[n](e)},has(t,n){return n in t||n in hn}}))}function xu(e,t=!0){return q(e)?e.displayName||e.name:e.name||t&&e.__name}function Su(e){return q(e)&&"__vccOpts"in e}const Te=(e,t)=>xa(e,t,Rn);function ds(e,t,n){const s=arguments.length;return s===2?re(t)&&!U(t)?hr(t)?W(e,null,[t]):W(e,t):W(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&hr(n)&&(n=[n]),W(e,t,n))}const Ru=Symbol(""),Ou=()=>Xe(Ru),Cu="3.2.45",Au="http://www.w3.org/2000/svg",Rt=typeof document<"u"?document:null,$o=Rt&&Rt.createElement("template"),Pu={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Rt.createElementNS(Au,e):Rt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{$o.innerHTML=s?`${e}`:e;const c=$o.content;if(s){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Tu(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Iu(e,t,n){const s=e.style,r=fe(n);if(n&&!r){for(const o in n)pr(s,o,n[o]);if(t&&!fe(t))for(const o in t)n[o]==null&&pr(s,o,"")}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const Do=/\s*!important$/;function pr(e,t,n){if(U(n))n.forEach(s=>pr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ku(e,t);Do.test(n)?e.setProperty(Lt(s),n.replace(Do,""),"important"):e[s]=n}}const jo=["Webkit","Moz","ms"],Vs={};function ku(e,t){const n=Vs[t];if(n)return n;let s=Ye(t);if(s!=="filter"&&s in e)return Vs[t]=s;s=Ss(s);for(let r=0;rWs||(Du.then(()=>Ws=0),Ws=Date.now());function Uu(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ue(Bu(s,n.value),t,5,[s])};return n.value=e,n.attached=ju(),n}function Bu(e,t){if(U(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Ho=/^on[a-z]/,Hu=(e,t,n,s,r=!1,o,i,c,l)=>{t==="class"?Tu(e,s,r):t==="style"?Iu(e,n,s):vs(t)?Tr(t)||Fu(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qu(e,t,s,r))?Lu(e,t,s,o,i,c,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Nu(e,t,s,r))};function qu(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Ho.test(t)&&q(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Ho.test(t)&&fe(n)?!1:t in e}const hs=e=>{const t=e.props["onUpdate:modelValue"]||!1;return U(t)?n=>Wn(t,n):t};function Ku(e){e.target.composing=!0}function qo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zu={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=hs(r);const o=s||r.props&&r.props.type==="number";Ot(e,t?"change":"input",i=>{if(i.target.composing)return;let c=e.value;n&&(c=c.trim()),o&&(c=wn(c)),e._assign(c)}),n&&Ot(e,"change",()=>{e.value=e.value.trim()}),t||(Ot(e,"compositionstart",Ku),Ot(e,"compositionend",qo),Ot(e,"change",qo))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=hs(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&wn(e.value)===t))return;const i=t??"";e.value!==i&&(e.value=i)}},Js={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Es(t);Ot(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?wn(ps(i)):ps(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=hs(s)},mounted(e,{value:t}){Ko(e,t)},beforeUpdate(e,t,n){e._assign=hs(n)},updated(e,{value:t}){Ko(e,t)}};function Ko(e,t){const n=e.multiple;if(!(n&&!U(t)&&!Es(t))){for(let s=0,r=e.options.length;s-1:o.selected=t.has(i);else if(ws(ps(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ps(e){return"_value"in e?e._value:e.value}const Vu={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Wu=(e,t)=>n=>{if(!("key"in n))return;const s=Lt(n.key);if(t.some(r=>r===s||Vu[r]===s))return e(n)},Ju=xe({patchProp:Hu},Pu);let zo;function Qu(){return zo||(zo=lu(Ju))}const Gu=(...e)=>{const t=Qu().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Xu(s);if(!r)return;const o=t._component;!q(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Xu(e){return fe(e)?document.querySelector(e):e}const Vr="/assets/spotdl-5dcb64c0.svg",He=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Yu={components:{},setup(){return{}}},Zu={class:"p-10 footer bg-neutral text-neutral-content"},ef=C("div",null,[C("img",{src:Vr,width:"50",height:"50",viewBox:"0 0 24 24"}),C("p",null,[me("spotDL"),C("br"),me("Open Source Music Downloader")])],-1),tf=Ic('
Social
',1),nf=[ef,tf];function sf(e,t,n,s,r,o){return j(),H("footer",Zu,nf)}const rf=He(Yu,[["render",sf]]);function Lc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mc}=Object.prototype,{getPrototypeOf:Wr}=Object,Jr=(e=>t=>{const n=Mc.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Jr(t)===e),Ls=e=>t=>typeof t===e,{isArray:en}=Array,On=Ls("undefined");function of(e){return e!==null&&!On(e)&&e.constructor!==null&&!On(e.constructor)&&kt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Fc=rt("ArrayBuffer");function cf(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Fc(e.buffer),t}const lf=Ls("string"),kt=Ls("function"),$c=Ls("number"),Qr=e=>e!==null&&typeof e=="object",af=e=>e===!0||e===!1,Zn=e=>{if(Jr(e)!=="object")return!1;const t=Wr(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},uf=rt("Date"),ff=rt("File"),df=rt("Blob"),hf=rt("FileList"),pf=e=>Qr(e)&&kt(e.pipe),mf=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Mc.call(e)===t||kt(e.toString)&&e.toString()===t)},gf=rt("URLSearchParams"),yf=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kn(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),en(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const jc=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Uc=e=>!On(e)&&e!==jc;function mr(){const{caseless:e}=Uc(this)&&this||{},t={},n=(s,r)=>{const o=e&&Dc(t,r)||r;Zn(t[o])&&Zn(s)?t[o]=mr(t[o],s):Zn(s)?t[o]=mr({},s):en(s)?t[o]=s.slice():t[o]=s};for(let s=0,r=arguments.length;s(kn(t,(r,o)=>{n&&kt(r)?e[o]=Lc(r,n):e[o]=r},{allOwnKeys:s}),e),bf=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wf=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},vf=(e,t,n,s)=>{let r,o,i;const c={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)i=r[o],(!s||s(i,e,t))&&!c[i]&&(t[i]=e[i],c[i]=!0);e=n!==!1&&Wr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Ef=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},xf=e=>{if(!e)return null;if(en(e))return e;let t=e.length;if(!$c(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Sf=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Wr(Uint8Array)),Rf=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const o=r.value;t.call(e,o[0],o[1])}},Of=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Cf=rt("HTMLFormElement"),Af=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Vo=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Pf=rt("RegExp"),Bc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};kn(n,(r,o)=>{t(r,o,e)!==!1&&(s[o]=r)}),Object.defineProperties(e,s)},Tf=e=>{Bc(e,(t,n)=>{if(kt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(kt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},If=(e,t)=>{const n={},s=r=>{r.forEach(o=>{n[o]=!0})};return en(e)?s(e):s(String(e).split(t)),n},kf=()=>{},Nf=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Lf=e=>{const t=new Array(10),n=(s,r)=>{if(Qr(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const o=en(s)?[]:{};return kn(s,(i,c)=>{const l=n(i,r+1);!On(l)&&(o[c]=l)}),t[r]=void 0,o}}return s};return n(e,0)},_={isArray:en,isArrayBuffer:Fc,isBuffer:of,isFormData:mf,isArrayBufferView:cf,isString:lf,isNumber:$c,isBoolean:af,isObject:Qr,isPlainObject:Zn,isUndefined:On,isDate:uf,isFile:ff,isBlob:df,isRegExp:Pf,isFunction:kt,isStream:pf,isURLSearchParams:gf,isTypedArray:Sf,isFileList:hf,forEach:kn,merge:mr,extend:_f,trim:yf,stripBOM:bf,inherits:wf,toFlatObject:vf,kindOf:Jr,kindOfTest:rt,endsWith:Ef,toArray:xf,forEachEntry:Rf,matchAll:Of,isHTMLForm:Cf,hasOwnProperty:Vo,hasOwnProp:Vo,reduceDescriptors:Bc,freezeMethods:Tf,toObjectSet:If,toCamelCase:Af,noop:kf,toFiniteNumber:Nf,findKey:Dc,global:jc,isContextDefined:Uc,toJSONObject:Lf};function X(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}_.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Hc=X.prototype,qc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qc[e]={value:e}});Object.defineProperties(X,qc);Object.defineProperty(Hc,"isAxiosError",{value:!0});X.from=(e,t,n,s,r,o)=>{const i=Object.create(Hc);return _.toFlatObject(e,i,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),X.call(i,e.message,t,n,s,r),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};var Mf=typeof self=="object"?self.FormData:window.FormData;const Ff=Mf;function gr(e){return _.isPlainObject(e)||_.isArray(e)}function Kc(e){return _.endsWith(e,"[]")?e.slice(0,-2):e}function Wo(e,t,n){return e?e.concat(t).map(function(r,o){return r=Kc(r),!n&&o?"["+r+"]":r}).join(n?".":""):t}function $f(e){return _.isArray(e)&&!e.some(gr)}const Df=_.toFlatObject(_,{},null,function(t){return/^is[A-Z]/.test(t)});function jf(e){return e&&_.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Ms(e,t,n){if(!_.isObject(e))throw new TypeError("target must be an object");t=t||new(Ff||FormData),n=_.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,A){return!_.isUndefined(A[w])});const s=n.metaTokens,r=n.visitor||u,o=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&jf(t);if(!_.isFunction(r))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(_.isDate(g))return g.toISOString();if(!l&&_.isBlob(g))throw new X("Blob is not supported. Use a Buffer instead.");return _.isArrayBuffer(g)||_.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,w,A){let R=g;if(g&&!A&&typeof g=="object"){if(_.endsWith(w,"{}"))w=s?w:w.slice(0,-2),g=JSON.stringify(g);else if(_.isArray(g)&&$f(g)||_.isFileList(g)||_.endsWith(w,"[]")&&(R=_.toArray(g)))return w=Kc(w),R.forEach(function(M,J){!(_.isUndefined(M)||M===null)&&t.append(i===!0?Wo([w],J,o):i===null?w:w+"[]",a(M))}),!1}return gr(g)?!0:(t.append(Wo(A,w,o),a(g)),!1)}const d=[],p=Object.assign(Df,{defaultVisitor:u,convertValue:a,isVisitable:gr});function m(g,w){if(!_.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(g),_.forEach(g,function(R,N){(!(_.isUndefined(R)||R===null)&&r.call(t,R,_.isString(N)?N.trim():N,w,p))===!0&&m(R,w?w.concat(N):[N])}),d.pop()}}if(!_.isObject(e))throw new TypeError("data must be an object");return m(e),t}function Jo(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function Gr(e,t){this._pairs=[],e&&Ms(e,this,t)}const zc=Gr.prototype;zc.append=function(t,n){this._pairs.push([t,n])};zc.toString=function(t){const n=t?function(s){return t.call(this,s,Jo)}:Jo;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Uf(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vc(e,t,n){if(!t)return e;const s=n&&n.encode||Uf,r=n&&n.serialize;let o;if(r?o=r(t,n):o=_.isURLSearchParams(t)?t.toString():new Gr(t,n).toString(s),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class Bf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){_.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Qo=Bf,Wc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hf=typeof URLSearchParams<"u"?URLSearchParams:Gr,qf=FormData,Kf=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zf=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ge={isBrowser:!0,classes:{URLSearchParams:Hf,FormData:qf,Blob},isStandardBrowserEnv:Kf,isStandardBrowserWebWorkerEnv:zf,protocols:["http","https","file","blob","url","data"]};function Vf(e,t){return Ms(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,o){return Ge.isNode&&_.isBuffer(n)?(this.append(s,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Wf(e){return _.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jf(e){const t={},n=Object.keys(e);let s;const r=n.length;let o;for(s=0;s=n.length;return i=!i&&_.isArray(r)?r.length:i,l?(_.hasOwnProp(r,i)?r[i]=[r[i],s]:r[i]=s,!c):((!r[i]||!_.isObject(r[i]))&&(r[i]=[]),t(n,s,r[i],o)&&_.isArray(r[i])&&(r[i]=Jf(r[i])),!c)}if(_.isFormData(e)&&_.isFunction(e.entries)){const n={};return _.forEachEntry(e,(s,r)=>{t(Wf(s),r,n,0)}),n}return null}const Qf={"Content-Type":void 0};function Gf(e,t,n){if(_.isString(e))try{return(t||JSON.parse)(e),_.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Fs={transitional:Wc,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,o=_.isObject(t);if(o&&_.isHTMLForm(t)&&(t=new FormData(t)),_.isFormData(t))return r&&r?JSON.stringify(Jc(t)):t;if(_.isArrayBuffer(t)||_.isBuffer(t)||_.isStream(t)||_.isFile(t)||_.isBlob(t))return t;if(_.isArrayBufferView(t))return t.buffer;if(_.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(o){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Vf(t,this.formSerializer).toString();if((c=_.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ms(c?{"files[]":t}:t,l&&new l,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),Gf(t)):t}],transformResponse:[function(t){const n=this.transitional||Fs.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&_.isString(t)&&(s&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(c){if(i)throw c.name==="SyntaxError"?X.from(c,X.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};_.forEach(["delete","get","head"],function(t){Fs.headers[t]={}});_.forEach(["post","put","patch"],function(t){Fs.headers[t]=_.merge(Qf)});const Xr=Fs,Xf=_.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Yf=e=>{const t={};let n,s,r;return e&&e.split(` +`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),s=i.substring(r+1).trim(),!(!n||t[n]&&Xf[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Go=Symbol("internals");function cn(e){return e&&String(e).trim().toLowerCase()}function es(e){return e===!1||e==null?e:_.isArray(e)?e.map(es):String(e)}function Zf(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function ed(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function Xo(e,t,n,s){if(_.isFunction(s))return s.call(this,t,n);if(_.isString(t)){if(_.isString(s))return t.indexOf(s)!==-1;if(_.isRegExp(s))return s.test(t)}}function td(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function nd(e,t){const n=_.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,o,i){return this[s].call(this,t,r,o,i)},configurable:!0})})}class $s{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function o(c,l,a){const u=cn(l);if(!u)throw new Error("header name must be a non-empty string");const d=_.findKey(r,u);(!d||r[d]===void 0||a===!0||a===void 0&&r[d]!==!1)&&(r[d||l]=es(c))}const i=(c,l)=>_.forEach(c,(a,u)=>o(a,u,l));return _.isPlainObject(t)||t instanceof this.constructor?i(t,n):_.isString(t)&&(t=t.trim())&&!ed(t)?i(Yf(t),n):t!=null&&o(n,t,s),this}get(t,n){if(t=cn(t),t){const s=_.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Zf(r);if(_.isFunction(n))return n.call(this,r,s);if(_.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=cn(t),t){const s=_.findKey(this,t);return!!(s&&(!n||Xo(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function o(i){if(i=cn(i),i){const c=_.findKey(s,i);c&&(!n||Xo(s,s[c],c,n))&&(delete s[c],r=!0)}}return _.isArray(t)?t.forEach(o):o(t),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return _.forEach(this,(r,o)=>{const i=_.findKey(s,o);if(i){n[i]=es(r),delete n[o];return}const c=t?td(o):String(o).trim();c!==o&&delete n[o],n[c]=es(r),s[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return _.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&_.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Go]=this[Go]={accessors:{}}).accessors,r=this.prototype;function o(i){const c=cn(i);s[c]||(nd(r,i),s[c]=!0)}return _.isArray(t)?t.forEach(o):o(t),this}}$s.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);_.freezeMethods($s.prototype);_.freezeMethods($s);const tt=$s;function Qs(e,t){const n=this||Xr,s=t||n,r=tt.from(s.headers);let o=s.data;return _.forEach(e,function(c){o=c.call(n,o,r.normalize(),t?t.status:void 0)}),r.normalize(),o}function Qc(e){return!!(e&&e.__CANCEL__)}function Nn(e,t,n){X.call(this,e??"canceled",X.ERR_CANCELED,t,n),this.name="CanceledError"}_.inherits(Nn,X,{__CANCEL__:!0});const sd=null;function rd(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new X("Request failed with status code "+n.status,[X.ERR_BAD_REQUEST,X.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const od=Ge.isStandardBrowserEnv?function(){return{write:function(n,s,r,o,i,c){const l=[];l.push(n+"="+encodeURIComponent(s)),_.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),_.isString(o)&&l.push("path="+o),_.isString(i)&&l.push("domain="+i),c===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cd(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Gc(e,t){return e&&!id(t)?cd(e,t):t}const ld=Ge.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(i){const c=_.isString(i)?r(i):i;return c.protocol===s.protocol&&c.host===s.host}}():function(){return function(){return!0}}();function ad(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ud(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,o=0,i;return t=t!==void 0?t:1e3,function(l){const a=Date.now(),u=s[o];i||(i=a),n[r]=l,s[r]=a;let d=o,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===o&&(o=(o+1)%e),a-i{const o=r.loaded,i=r.lengthComputable?r.total:void 0,c=o-n,l=s(c),a=o<=i;n=o;const u={loaded:o,total:i,progress:i?o/i:void 0,bytes:c,rate:l||void 0,estimated:l&&i&&a?(i-o)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const fd=typeof XMLHttpRequest<"u",dd=fd&&function(e){return new Promise(function(n,s){let r=e.data;const o=tt.from(e.headers).normalize(),i=e.responseType;let c;function l(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}_.isFormData(r)&&(Ge.isStandardBrowserEnv||Ge.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let a=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(m+":"+g))}const u=Gc(e.baseURL,e.url);a.open(e.method.toUpperCase(),Vc(u,e.params,e.paramsSerializer),!0),a.timeout=e.timeout;function d(){if(!a)return;const m=tt.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:m,config:e,request:a};rd(function(R){n(R),l()},function(R){s(R),l()},w),a=null}if("onloadend"in a?a.onloadend=d:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(d)},a.onabort=function(){a&&(s(new X("Request aborted",X.ECONNABORTED,e,a)),a=null)},a.onerror=function(){s(new X("Network Error",X.ERR_NETWORK,e,a)),a=null},a.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||Wc;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),s(new X(g,w.clarifyTimeoutError?X.ETIMEDOUT:X.ECONNABORTED,e,a)),a=null},Ge.isStandardBrowserEnv){const m=(e.withCredentials||ld(u))&&e.xsrfCookieName&&od.read(e.xsrfCookieName);m&&o.set(e.xsrfHeaderName,m)}r===void 0&&o.setContentType(null),"setRequestHeader"in a&&_.forEach(o.toJSON(),function(g,w){a.setRequestHeader(w,g)}),_.isUndefined(e.withCredentials)||(a.withCredentials=!!e.withCredentials),i&&i!=="json"&&(a.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&a.addEventListener("progress",Yo(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",Yo(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=m=>{a&&(s(!m||m.type?new Nn(null,e,a):m),a.abort(),a=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const p=ad(u);if(p&&Ge.protocols.indexOf(p)===-1){s(new X("Unsupported protocol "+p+":",X.ERR_BAD_REQUEST,e));return}a.send(r||null)})},ts={http:sd,xhr:dd};_.forEach(ts,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const hd={getAdapter:e=>{e=_.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof tt?e.toJSON():e;function Qt(e,t){t=t||{};const n={};function s(a,u,d){return _.isPlainObject(a)&&_.isPlainObject(u)?_.merge.call({caseless:d},a,u):_.isPlainObject(u)?_.merge({},u):_.isArray(u)?u.slice():u}function r(a,u,d){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a,d)}else return s(a,u,d)}function o(a,u){if(!_.isUndefined(u))return s(void 0,u)}function i(a,u){if(_.isUndefined(u)){if(!_.isUndefined(a))return s(void 0,a)}else return s(void 0,u)}function c(a,u,d){if(d in t)return s(a,u);if(d in e)return s(void 0,a)}const l={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:c,headers:(a,u)=>r(ei(a),ei(u),!0)};return _.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const d=l[u]||r,p=d(e[u],t[u],u);_.isUndefined(p)&&d!==c||(n[u]=p)}),n}const Xc="1.2.5",Yr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Yr[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const ti={};Yr.transitional=function(t,n,s){function r(o,i){return"[Axios v"+Xc+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return(o,i,c)=>{if(t===!1)throw new X(r(i," has been removed"+(n?" in "+n:"")),X.ERR_DEPRECATED);return n&&!ti[i]&&(ti[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,c):!0}};function pd(e,t,n){if(typeof e!="object")throw new X("options must be an object",X.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const o=s[r],i=t[o];if(i){const c=e[o],l=c===void 0||i(c,o,e);if(l!==!0)throw new X("option "+o+" must be "+l,X.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new X("Unknown option "+o,X.ERR_BAD_OPTION)}}const yr={assertOptions:pd,validators:Yr},ct=yr.validators;class ms{constructor(t){this.defaults=t,this.interceptors={request:new Qo,response:new Qo}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qt(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:o}=n;s!==void 0&&yr.assertOptions(s,{silentJSONParsing:ct.transitional(ct.boolean),forcedJSONParsing:ct.transitional(ct.boolean),clarifyTimeoutError:ct.transitional(ct.boolean)},!1),r!==void 0&&yr.assertOptions(r,{encode:ct.function,serialize:ct.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&_.merge(o.common,o[n.method]),i&&_.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=tt.concat(i,o);const c=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,c.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let u,d=0,p;if(!l){const g=[Zo.bind(this),void 0];for(g.unshift.apply(g,c),g.push.apply(g,a),p=g.length,u=Promise.resolve(n);d{if(!s._listeners)return;let o=s._listeners.length;for(;o-- >0;)s._listeners[o](r);s._listeners=null}),this.promise.then=r=>{let o;const i=new Promise(c=>{s.subscribe(c),o=c}).then(r);return i.cancel=function(){s.unsubscribe(o)},i},t(function(o,i,c){s.reason||(s.reason=new Nn(o,i,c),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Zr(function(r){t=r}),cancel:t}}}const md=Zr;function gd(e){return function(n){return e.apply(null,n)}}function yd(e){return _.isObject(e)&&e.isAxiosError===!0}const _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(_r).forEach(([e,t])=>{_r[t]=e});const _d=_r;function Yc(e){const t=new ns(e),n=Lc(ns.prototype.request,t);return _.extend(n,ns.prototype,t,{allOwnKeys:!0}),_.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Yc(Qt(e,r))},n}const de=Yc(Xr);de.Axios=ns;de.CanceledError=Nn;de.CancelToken=md;de.isCancel=Qc;de.VERSION=Xc;de.toFormData=Ms;de.AxiosError=X;de.Cancel=de.CanceledError;de.all=function(t){return Promise.all(t)};de.spread=gd;de.isAxiosError=yd;de.mergeConfig=Qt;de.AxiosHeaders=tt;de.formToJSON=e=>Jc(_.isHTMLForm(e)?new FormData(e):e);de.HttpStatusCode=_d;de.default=de;const bd=de,$e={PROTOCOL:{}.PROTOCOL||window.location.protocol,WS_PROTOCOL:{}.WS_PROTOCOL||window.location.protocol==="https:"?"wss:":"ws:",BACKEND:{}.BACKEND||window.location.hostname,PORT:{}.PORT||window.location.port,WS_PORT:{}.WS_PORT||window.location.port,BASEURL:{}.BASEURL||""};let Hn;const wd=new Uint8Array(16);function vd(){if(!Hn&&(Hn=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hn))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hn(wd)}const ge=[];for(let e=0;e<256;++e)ge.push((e+256).toString(16).slice(1));function Ed(e,t=0){return(ge[e[t+0]]+ge[e[t+1]]+ge[e[t+2]]+ge[e[t+3]]+"-"+ge[e[t+4]]+ge[e[t+5]]+"-"+ge[e[t+6]]+ge[e[t+7]]+"-"+ge[e[t+8]]+ge[e[t+9]]+"-"+ge[e[t+10]]+ge[e[t+11]]+ge[e[t+12]]+ge[e[t+13]]+ge[e[t+14]]+ge[e[t+15]]).toLowerCase()}const xd=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ni={randomUUID:xd};function Sd(e,t,n){if(ni.randomUUID&&!t&&!e)return ni.randomUUID();e=e||{};const s=e.random||(e.rng||vd)();if(s[6]=s[6]&15|64,s[8]=s[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=s[r];return t}return Ed(s)}console.log("using env:",{});console.log("using config: ",$e);const Mt=bd.create({baseURL:`${$e.PROTOCOL}//${$e.BACKEND}:${$e.PORT}${$e.BASEURL}`}),tn=Sd();console.log("session ID: ",tn);const eo=new WebSocket(`${$e.WS_PROTOCOL}//${$e.BACKEND}${$e.PORT!==""?":"+$e.PORT:""}${$e.BASEURL}/api/ws?client_id=${tn}`);eo.onopen=e=>{console.log("websocket connection opened",e)};function Rd(e){return Mt.get("/api/songs/search",{params:{query:e}})}function Od(e){return Mt.get("/api/song/url",{params:{url:e}})}function Cd(e){return Mt.post("/api/download/url",null,{params:{url:e,client_id:tn}})}function Ad(){return Mt.get("/api/check_update")}function Pd(e){return Mt.defaults.baseURL+"/api/download/file?file="+encodeURIComponent(e)+"&client_id="+encodeURIComponent(tn)}function Td(){return Mt.get("/api/settings",{params:{client_id:tn}})}function Id(e){return Mt.post("/api/settings/update",e,{params:{client_id:tn}})}function kd(e){return eo.onmessage=e}function Nd(e){return eo.onerror=e}const mt={search:Rd,open:Od,download:Cd,downloadFileURL:Pd,getSettings:Td,setSettings:Id,check_for_update:Ad,ws_onmessage:kd,ws_onerror:Nd},ss=Pe({audio_providers:[""],lyrics_providers:[""]}),Ld={audio_providers:["youtube","youtube-music"],lyrics_providers:["genius","musixmatch","azlyrics"],format:["mp3","flac","ogg","opus","m4a"],output:"{artists} - {title}.{output-ext}"};mt.getSettings().then(e=>{e.status===200?(console.log("Received settings:",e.data),ss.value=e.data):console.log("Error loading settings")});function Md(){const e=Pe();function t(){console.log("Saving settings:",ss.value),mt.setSettings(ss.value).then(n=>{n.status===200?(console.log("Saved!"),e.value=!0,setTimeout(()=>{e.value=null},2e3)):(console.log("Error saving settings.",n),e.value=!1,setTimeout(()=>{e.value=null},2e3))})}return{saveSettings:t,settings:ss,settingsOptions:Ld,isSaved:e}}const mn=/^[a-z0-9]+(-[a-z0-9]+)*$/,Ds=(e,t,n,s="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;s=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),l=r.pop(),a={provider:r.length>0?r[0]:s,prefix:l,name:c};return t&&!rs(a)?null:a}const o=r[0],i=o.split("-");if(i.length>1){const c={provider:s,prefix:i.shift(),name:i.join("-")};return t&&!rs(c)?null:c}if(n&&s===""){const c={provider:s,prefix:"",name:o};return t&&!rs(c,n)?null:c}return null},rs=(e,t)=>e?!!((e.provider===""||e.provider.match(mn))&&(t&&e.prefix===""||e.prefix.match(mn))&&e.name.match(mn)):!1,Zc=Object.freeze({left:0,top:0,width:16,height:16}),gs=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),js=Object.freeze({...Zc,...gs}),br=Object.freeze({...js,body:"",hidden:!1});function Fd(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const s=((e.rotate||0)+(t.rotate||0))%4;return s&&(n.rotate=s),n}function si(e,t){const n=Fd(e,t);for(const s in br)s in gs?s in e&&!(s in n)&&(n[s]=gs[s]):s in t?n[s]=t[s]:s in e&&(n[s]=e[s]);return n}function $d(e,t){const n=e.icons,s=e.aliases||Object.create(null),r=Object.create(null);function o(i){if(n[i])return r[i]=[];if(!(i in r)){r[i]=null;const c=s[i]&&s[i].parent,l=c&&o(c);l&&(r[i]=[c].concat(l))}return r[i]}return(t||Object.keys(n).concat(Object.keys(s))).forEach(o),r}function Dd(e,t,n){const s=e.icons,r=e.aliases||Object.create(null);let o={};function i(c){o=si(s[c]||r[c],o)}return i(t),n.forEach(i),si(e,o)}function el(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(r=>{t(r,null),n.push(r)});const s=$d(e);for(const r in s){const o=s[r];o&&(t(r,Dd(e,r,o)),n.push(r))}return n}const jd={provider:"",aliases:{},not_found:{},...Zc};function Xs(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function tl(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Xs(e,jd))return null;const n=t.icons;for(const r in n){const o=n[r];if(!r.match(mn)||typeof o.body!="string"||!Xs(o,br))return null}const s=t.aliases||Object.create(null);for(const r in s){const o=s[r],i=o.parent;if(!r.match(mn)||typeof i!="string"||!n[i]&&!s[i]||!Xs(o,br))return null}return t}const ri=Object.create(null);function Ud(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Nt(e,t){const n=ri[e]||(ri[e]=Object.create(null));return n[t]||(n[t]=Ud(e,t))}function to(e,t){return tl(t)?el(t,(n,s)=>{s?e.icons[n]=s:e.missing.add(n)}):[]}function Bd(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let Cn=!1;function nl(e){return typeof e=="boolean"&&(Cn=e),Cn}function Hd(e){const t=typeof e=="string"?Ds(e,!0,Cn):e;if(t){const n=Nt(t.provider,t.prefix),s=t.name;return n.icons[s]||(n.missing.has(s)?null:void 0)}}function qd(e,t){const n=Ds(e,!0,Cn);if(!n)return!1;const s=Nt(n.provider,n.prefix);return Bd(s,n.name,t)}function Kd(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Cn&&!t&&!e.prefix){let r=!1;return tl(e)&&(e.prefix="",el(e,(o,i)=>{i&&qd(o,i)&&(r=!0)})),r}const n=e.prefix;if(!rs({provider:t,prefix:n,name:"a"}))return!1;const s=Nt(t,n);return!!to(s,e)}const sl=Object.freeze({width:null,height:null}),rl=Object.freeze({...sl,...gs}),zd=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vd=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function oi(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const s=e.split(zd);if(s===null||!s.length)return e;const r=[];let o=s.shift(),i=Vd.test(o);for(;;){if(i){const c=parseFloat(o);isNaN(c)?r.push(o):r.push(Math.ceil(c*t*n)/n)}else r.push(o);if(o=s.shift(),o===void 0)return r.join("");i=!i}}function Wd(e,t){const n={...js,...e},s={...rl,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let o=n.body;[n,s].forEach(m=>{const g=[],w=m.hFlip,A=m.vFlip;let R=m.rotate;w?A?R+=2:(g.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),g.push("scale(-1 1)"),r.top=r.left=0):A&&(g.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),g.push("scale(1 -1)"),r.top=r.left=0);let N;switch(R<0&&(R-=Math.floor(R/4)*4),R=R%4,R){case 1:N=r.height/2+r.top,g.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:g.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:N=r.width/2+r.left,g.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}R%2===1&&(r.left!==r.top&&(N=r.left,r.left=r.top,r.top=N),r.width!==r.height&&(N=r.width,r.width=r.height,r.height=N)),g.length&&(o=''+o+"")});const i=s.width,c=s.height,l=r.width,a=r.height;let u,d;return i===null?(d=c===null?"1em":c==="auto"?a:c,u=oi(d,l/a)):(u=i==="auto"?l:i,d=c===null?oi(u,a/l):c==="auto"?a:c),{attributes:{width:u.toString(),height:d.toString(),viewBox:r.left.toString()+" "+r.top.toString()+" "+l.toString()+" "+a.toString()},body:o}}const Jd=/\sid="(\S+)"/g,Qd="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Gd=0;function Xd(e,t=Qd){const n=[];let s;for(;s=Jd.exec(e);)n.push(s[1]);return n.length&&n.forEach(r=>{const o=typeof t=="function"?t(r):t+(Gd++).toString(),i=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+i+')([")]|\\.[a-z])',"g"),"$1"+o+"$3")}),e}const wr=Object.create(null);function Yd(e,t){wr[e]=t}function vr(e){return wr[e]||wr[""]}function no(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const so=Object.create(null),ln=["https://api.simplesvg.com","https://api.unisvg.com"],os=[];for(;ln.length>0;)ln.length===1||Math.random()>.5?os.push(ln.shift()):os.push(ln.pop());so[""]=no({resources:["https://api.iconify.design"].concat(os)});function Zd(e,t){const n=no(t);return n===null?!1:(so[e]=n,!0)}function ro(e){return so[e]}const eh=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let ii=eh();function th(e,t){const n=ro(e);if(!n)return 0;let s;if(!n.maxURL)s=0;else{let r=0;n.resources.forEach(i=>{r=Math.max(r,i.length)});const o=t+".json?icons=";s=n.maxURL-r-n.path.length-o.length}return s}function nh(e){return e===404}const sh=(e,t,n)=>{const s=[],r=th(e,t),o="icons";let i={type:o,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=r&&a>0&&(s.push(i),i={type:o,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),s.push(i),s};function rh(e){if(typeof e=="string"){const t=ro(e);if(t)return t.path}return"/"}const oh=(e,t,n)=>{if(!ii){n("abort",424);return}let s=rh(t.provider);switch(t.type){case"icons":{const o=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});s+=o+".json?"+l.toString();break}case"custom":{const o=t.uri;s+=o.slice(0,1)==="/"?o.slice(1):o;break}default:n("abort",400);return}let r=503;ii(e+s).then(o=>{const i=o.status;if(i!==200){setTimeout(()=>{n(nh(i)?"abort":"next",i)});return}return r=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?n("abort",o):n("next",r)});return}setTimeout(()=>{n("success",o)})}).catch(()=>{n("next",r)})},ih={prepare:sh,send:oh};function ch(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((r,o)=>r.provider!==o.provider?r.provider.localeCompare(o.provider):r.prefix!==o.prefix?r.prefix.localeCompare(o.prefix):r.name.localeCompare(o.name));let s={provider:"",prefix:"",name:""};return e.forEach(r=>{if(s.name===r.name&&s.prefix===r.prefix&&s.provider===r.provider)return;s=r;const o=r.provider,i=r.prefix,c=r.name,l=n[o]||(n[o]=Object.create(null)),a=l[i]||(l[i]=Nt(o,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const d={provider:o,prefix:i,name:c};u.push(d)}),t}function ol(e,t){e.forEach(n=>{const s=n.loaderCallbacks;s&&(n.loaderCallbacks=s.filter(r=>r.id!==t))})}function lh(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const s=e.provider,r=e.prefix;t.forEach(o=>{const i=o.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==r)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:s,prefix:r,name:a});else if(e.missing.has(a))i.missing.push({provider:s,prefix:r,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||ol([e],o.id),o.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),o.abort))})}))}let ah=0;function uh(e,t,n){const s=ah++,r=ol.bind(null,n,s);if(!t.pending.length)return r;const o={id:s,icons:t,callback:e,abort:r};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(o)}),r}function fh(e,t=!0,n=!1){const s=[];return e.forEach(r=>{const o=typeof r=="string"?Ds(r,t,n):r;o&&s.push(o)}),s}var dh={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function hh(e,t,n,s){const r=e.resources.length,o=e.random?Math.floor(Math.random()*r):e.index;let i;if(e.random){let K=e.resources.slice(0);for(i=[];K.length>1;){const ie=Math.floor(Math.random()*K.length);i.push(K[ie]),K=K.slice(0,ie).concat(K.slice(ie+1))}i=i.concat(K)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));const c=Date.now();let l="pending",a=0,u,d=null,p=[],m=[];typeof s=="function"&&m.push(s);function g(){d&&(clearTimeout(d),d=null)}function w(){l==="pending"&&(l="aborted"),g(),p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function A(K,ie){ie&&(m=[]),typeof K=="function"&&m.push(K)}function R(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:p.length,subscribe:A,abort:w}}function N(){l="failed",m.forEach(K=>{K(void 0,u)})}function M(){p.forEach(K=>{K.status==="pending"&&(K.status="aborted")}),p=[]}function J(K,ie,we){const ke=ie!=="success";switch(p=p.filter(he=>he!==K),l){case"pending":break;case"failed":if(ke||!e.dataAfterTimeout)return;break;default:return}if(ie==="abort"){u=we,N();return}if(ke){u=we,p.length||(i.length?le():N());return}if(g(),M(),!e.random){const he=e.resources.indexOf(K.resource);he!==-1&&he!==e.index&&(e.index=he)}l="completed",m.forEach(he=>{he(we)})}function le(){if(l!=="pending")return;g();const K=i.shift();if(K===void 0){if(p.length){d=setTimeout(()=>{g(),l==="pending"&&(M(),N())},e.timeout);return}N();return}const ie={status:"pending",resource:K,callback:(we,ke)=>{J(ie,we,ke)}};p.push(ie),a++,d=setTimeout(le,e.rotate),n(K,t,ie.callback)}return setTimeout(le),R}function il(e){const t={...dh,...e};let n=[];function s(){n=n.filter(c=>c().status==="pending")}function r(c,l,a){const u=hh(t,c,l,(d,p)=>{s(),a&&a(d,p)});return n.push(u),u}function o(c){return n.find(l=>c(l))||null}return{query:r,find:o,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:s}}function ci(){}const Ys=Object.create(null);function ph(e){if(!Ys[e]){const t=ro(e);if(!t)return;const n=il(t),s={config:t,redundancy:n};Ys[e]=s}return Ys[e]}function mh(e,t,n){let s,r;if(typeof e=="string"){const o=vr(e);if(!o)return n(void 0,424),ci;r=o.send;const i=ph(e);i&&(s=i.redundancy)}else{const o=no(e);if(o){s=il(o);const i=e.resources?e.resources[0]:"",c=vr(i);c&&(r=c.send)}}return!s||!r?(n(void 0,424),ci):s.query(t,r,n)().abort}const li="iconify2",An="iconify",cl=An+"-count",ai=An+"-version",ll=36e5,gh=168;function Er(e,t){try{return e.getItem(t)}catch{}}function oo(e,t,n){try{return e.setItem(t,n),!0}catch{}}function ui(e,t){try{e.removeItem(t)}catch{}}function xr(e,t){return oo(e,cl,t.toString())}function Sr(e){return parseInt(Er(e,cl))||0}const Us={local:!0,session:!0},al={local:new Set,session:new Set};let io=!1;function yh(e){io=e}let qn=typeof window>"u"?{}:window;function ul(e){const t=e+"Storage";try{if(qn&&qn[t]&&typeof qn[t].length=="number")return qn[t]}catch{}Us[e]=!1}function fl(e,t){const n=ul(e);if(!n)return;const s=Er(n,ai);if(s!==li){if(s){const c=Sr(n);for(let l=0;l{const l=An+c.toString(),a=Er(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>r&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}ui(n,l)}};let i=Sr(n);for(let c=i-1;c>=0;c--)o(c)||(c===i-1?(i--,xr(n,i)):al[e].add(c))}function dl(){if(!io){yh(!0);for(const e in Us)fl(e,t=>{const n=t.data,s=t.provider,r=n.prefix,o=Nt(s,r);if(!to(o,n).length)return!1;const i=n.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,i):i,!0})}}function _h(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const s in Us)fl(s,r=>{const o=r.data;return r.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function bh(e,t){io||dl();function n(s){let r;if(!Us[s]||!(r=ul(s)))return;const o=al[s];let i;if(o.size)o.delete(i=Array.from(o).shift());else if(i=Sr(r),!xr(r,i+1))return;const c={cached:Math.floor(Date.now()/ll),provider:e.provider,data:t};return oo(r,An+i.toString(),JSON.stringify(c))}t.lastModified&&!_h(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function fi(){}function wh(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,lh(e)}))}function vh(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:s}=e,r=e.iconsToLoad;delete e.iconsToLoad;let o;if(!r||!(o=vr(n)))return;o.prepare(n,s,r).forEach(c=>{mh(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=to(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(d=>{u.delete(d)}),bh(e,l)}catch(a){console.error(a)}wh(e)})})}))}const Eh=(e,t)=>{const n=fh(e,!0,nl()),s=ch(n);if(!s.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(s.loaded,s.missing,s.pending,fi)}),()=>{l=!1}}const r=Object.create(null),o=[];let i,c;return s.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,o.push(Nt(a,u));const d=r[a]||(r[a]=Object.create(null));d[u]||(d[u]=[])}),s.pending.forEach(l=>{const{provider:a,prefix:u,name:d}=l,p=Nt(a,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),r[a][u].push(d))}),o.forEach(l=>{const{provider:a,prefix:u}=l;r[a][u].length&&vh(l,r[a][u])}),t?uh(t,s,o):fi};function xh(e,t){const n={...e};for(const s in t){const r=t[s],o=typeof r;s in sl?(r===null||r&&(o==="string"||o==="number"))&&(n[s]=r):o===typeof n[s]&&(n[s]=s==="rotate"?r%4:r)}return n}const Sh=/[\s,]+/;function Rh(e,t){t.split(Sh).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function Oh(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function s(r){for(;r<0;)r+=4;return r%4}if(n===""){const r=parseInt(e);return isNaN(r)?0:s(r)}else if(n!==e){let r=0;switch(n){case"%":r=25;break;case"deg":r=90}if(r){let o=parseFloat(e.slice(0,e.length-n.length));return isNaN(o)?0:(o=o/r,o%1===0?s(o):0)}}return t}function Ch(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const s in t)n+=" "+s+'="'+t[s]+'"';return'"+e+""}function Ah(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function Ph(e){return'url("data:image/svg+xml,'+Ah(e)+'")'}const di={...rl,inline:!1},Th={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Ih={display:"inline-block"},Rr={backgroundColor:"currentColor"},hl={backgroundColor:"transparent"},hi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},pi={webkitMask:Rr,mask:Rr,background:hl};for(const e in pi){const t=pi[e];for(const n in hi)t[e+n]=hi[n]}const is={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";is[e+"-flip"]=t,is[e.slice(0,1)+"-flip"]=t,is[e+"Flip"]=t});function mi(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const gi=(e,t)=>{const n=xh(di,t),s={...Th},r=t.mode||"svg",o={},i=t.style,c=typeof i=="object"&&!(i instanceof Array)?i:{};for(let w in t){const A=t[w];if(A!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[w]=A===!0||A==="true"||A===1;break;case"flip":typeof A=="string"&&Rh(n,A);break;case"color":o.color=A;break;case"rotate":typeof A=="string"?n[w]=Oh(A):typeof A=="number"&&(n[w]=A);break;case"ariaHidden":case"aria-hidden":A!==!0&&A!=="true"&&delete s["aria-hidden"];break;default:{const R=is[w];R?(A===!0||A==="true"||A===1)&&(n[R]=!0):di[w]===void 0&&(s[w]=A)}}}const l=Wd(e,n),a=l.attributes;if(n.inline&&(o.verticalAlign="-0.125em"),r==="svg"){s.style={...o,...c},Object.assign(s,a);let w=0,A=t.id;return typeof A=="string"&&(A=A.replace(/-/g,"_")),s.innerHTML=Xd(l.body,A?()=>A+"ID"+w++:"iconifyVue"),ds("svg",s)}const{body:u,width:d,height:p}=e,m=r==="mask"||(r==="bg"?!1:u.indexOf("currentColor")!==-1),g=Ch(u,{...a,width:d+"",height:p+""});return s.style={...o,"--svg":Ph(g),width:mi(a.width),height:mi(a.height),...Ih,...m?Rr:hl,...c},ds("span",s)};nl(!0);Yd("",ih);if(typeof document<"u"&&typeof window<"u"){dl();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(s=>{try{(typeof s!="object"||s===null||s instanceof Array||typeof s.icons!="object"||typeof s.prefix!="string"||!Kd(s))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const s="IconifyProviders["+n+"] is invalid.";try{const r=t[n];if(typeof r!="object"||!r||r.resources===void 0)continue;Zd(n,r)||console.error(s)}catch{console.error(s)}}}}const kh={...js,body:""},nn=Hr({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=Ds(e,!1,!0))===null)return this.abortLoading(),null;const s=Hd(n);if(!s)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",s!==null&&(this._loadingIcon={name:e,abort:Eh([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const r=["iconify"];return n.prefix!==""&&r.push("iconify--"+n.prefix),n.provider!==""&&r.push("iconify--"+n.provider),{data:s,classes:r}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return gi(kh,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),gi({...js,...t.data},n)}}),Nh={components:{Icon:nn},setup(){return{sm:Md()}}},Lh=C("input",{type:"checkbox",id:"my-modal",class:"modal-toggle"},null,-1),Mh={class:"modal"},Fh={class:"modal-box relative"},$h=C("label",{for:"my-modal",class:"btn btn-sm btn-circle absolute right-2 top-2"},"✕",-1),Dh=C("h3",{class:"font-bold text-lg"},"Download Settings",-1),jh={class:"flex flex-col justify-center my-4"},Uh={class:"form-control w-full"},Bh=C("label",{class:"label"},[C("span",{class:"label-text"},"Audio Provider")],-1),Hh=["selected"],qh={class:"form-control w-full"},Kh=C("label",{class:"label"},[C("span",{class:"label-text"},"Lyrics Provider")],-1),zh=["selected"],Vh={class:"form-control w-full"},Wh=C("label",{class:"label"},[C("span",{class:"label-text"},"Output Format")],-1),Jh=["selected"],Qh={key:0,class:"alert alert-success shadow-lg"},Gh=C("div",null,[C("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[C("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"})]),C("span",null,"Changes saved")],-1),Xh=[Gh],Yh={key:1,class:"alert alert-error shadow-lg"},Zh=C("div",null,[C("svg",{xmlns:"http://www.w3.org/2000/svg",class:"stroke-current flex-shrink-0 h-6 w-6",fill:"none",viewBox:"0 0 24 24"},[C("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"})]),C("span",null,"Error! Unable to save settings")],-1),ep=[Zh],tp={class:"modal-action"};function np(e,t,n,s,r,o){return j(),H(pe,null,[Lh,C("div",Mh,[C("div",Fh,[$h,Dh,C("div",jh,[C("div",Uh,[Bh,Gn(C("select",{class:"select w-full","onUpdate:modelValue":t[0]||(t[0]=i=>s.sm.settings.value.audio_providers[0]=i)},[(j(!0),H(pe,null,Pt(s.sm.settingsOptions.audio_providers,(i,c)=>{var l;return j(),H("option",{key:c,selected:i===((l=s.sm.settings.value.audio_providers)==null?void 0:l[0])},Ce(i),9,Hh)}),128))],512),[[Js,s.sm.settings.value.audio_providers[0]]])]),C("div",qh,[Kh,Gn(C("select",{class:"select w-full","onUpdate:modelValue":t[1]||(t[1]=i=>s.sm.settings.value.lyrics_providers[0]=i)},[(j(!0),H(pe,null,Pt(s.sm.settingsOptions.lyrics_providers,(i,c)=>{var l;return j(),H("option",{key:c,selected:i===((l=s.sm.settings.value.lyrics_providers)==null?void 0:l[0])},Ce(i),9,zh)}),128))],512),[[Js,s.sm.settings.value.lyrics_providers[0]]])]),C("div",Vh,[Wh,Gn(C("select",{class:"select w-full","onUpdate:modelValue":t[2]||(t[2]=i=>s.sm.settings.value.format=i)},[(j(!0),H(pe,null,Pt(s.sm.settingsOptions.format,(i,c)=>(j(),H("option",{key:c,selected:i===s.sm.settings.value.format},Ce(i),9,Jh))),128))],512),[[Js,s.sm.settings.value.format]])])]),s.sm.isSaved.value===!0?(j(),H("div",Qh,Xh)):dt("",!0),s.sm.isSaved.value===!1?(j(),H("div",Yh,ep)):dt("",!0),C("div",tp,[C("label",{class:"btn",onClick:t[3]||(t[3]=i=>s.sm.saveSettings())},"Save")])])])],64)}const sp=He(Nh,[["render",np]]),Ve=Pe(""),yi=Pe("light"),_i=Pe("dark");function pl({useSystem:e=!0,initialTheme:t="",newLightAlias:n=null,newDarkAlias:s=null}={}){function r(u){yi.value=u,a()}function o(u){_i.value=u,a()}function i(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function c(u){Ve.value=u,a()}function l(){Ve==="dark"?Ve.value="light":Ve==="light"&&(Ve.value="dark"),a()}function a(){document.documentElement.setAttribute("data-theme",Ve.value==="dark"?_i.value:yi.value)}return Ve.value!=="light"&&Ve.value!=="dark"&&(e&&c(i()),(t==="light"||t==="dark")&&(Ve.value=t)),n&&r(n),s&&o(s),a(),{currentTheme:Ve,setLightAlias:r,setDarkAlias:o,getSystemTheme:i,setTheme:c,switchTheme:l}}const rp={name:"App",components:{Footer:rf,Settings:sp},setup(){const e=pl();return yc(()=>{e.setLightAlias("emerald"),e.setDarkAlias("forest")}),{themeMgr:e}}},op={class:"bg-base-300 absolute w-full top-0"};function ip(e,t,n,s,r,o){const i=Ee("router-view"),c=Ee("Footer"),l=Ee("Settings");return j(),H("div",op,[W(i),W(c),W(l)])}const cp=He(rp,[["render",ip]]);/*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const Ut=typeof window<"u";function lp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const gn=()=>{},Be=Array.isArray,ap=/\/$/,up=e=>e.replace(ap,"");function er(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=pp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function fp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dp(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Xt(t.matched[s],n.matched[r])&&ml(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ml(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hp(e[n],t[n]))return!1;return!0}function hp(e,t){return Be(e)?wi(e,t):Be(t)?wi(t,e):e===t}function wi(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var Pn;(function(e){e.pop="pop",e.push="push"})(Pn||(Pn={}));var yn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yn||(yn={}));function mp(e){if(!e)if(Ut){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),up(e)}const gp=/^[^#]+#/;function yp(e,t){return e.replace(gp,"#")+t}function _p(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bs=()=>({left:window.pageXOffset,top:window.pageYOffset});function bp(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=_p(r,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 vi(e,t){return(history.state?history.state.position-t:-1)+e}const Or=new Map;function wp(e,t){Or.set(e,t)}function vp(e){const t=Or.get(e);return Or.delete(e),t}let Ep=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),bi(l,"")}return bi(n,e)+s+r}function xp(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const m=gl(e,location),g=n.value,w=t.value;let A=0;if(p){if(n.value=m,t.value=p,i&&i===g){i=null;return}A=w?p.position-w.position:0}else s(m);r.forEach(R=>{R(n.value,g,{delta:A,type:Pn.pop,direction:A?A>0?yn.forward:yn.back:yn.unknown})})};function l(){i=n.value}function a(p){r.push(p);const m=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Bs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:a,destroy:d}}function Ei(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bs():null}}function Sp(e){const{history:t,location:n}=window,s={value:gl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,a,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ep()+e+l;try{t[u?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(l,a){const u=Z({},t.state,Ei(r.value.back,l,r.value.forward,!0),a,{position:r.value.position});o(l,u,!0),s.value=l}function c(l,a){const u=Z({},r.value,t.state,{forward:l,scroll:Bs()});o(u.current,u,!0);const d=Z({},Ei(s.value,l,null),{position:u.position+1},a);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Rp(e){e=mp(e);const t=Sp(e),n=xp(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Z({location:"",base:e,go:s,createHref:yp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Op(e){return typeof e=="string"||e&&typeof e=="object"}function yl(e){return typeof e=="string"||typeof e=="symbol"}const lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_l=Symbol("");var xi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xi||(xi={}));function Yt(e,t){return Z(new Error,{type:e,[_l]:!0},t)}function Ze(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const Si="[^/]+?",Cp={sensitive:!1,strict:!1,start:!0,end:!0},Ap=/[.+*?^${}()[\]/\\]/g;function Pp(e,t){const n=Z({},Cp,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ip(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const kp={type:0,value:""},Np=/[a-zA-Z0-9_]/;function Lp(e){if(!e)return[[]];if(e==="/")return[[kp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,a="",u="";function d(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;c{i(N)}:gn}function i(u){if(yl(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!bl(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Ci(u)&&s.set(u.record.name,u)}function a(u,d){let p,m={},g,w;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw Yt(1,{location:u});w=p.record.name,m=Z(Oi(d.params,p.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&Oi(u.params,p.keys.map(N=>N.name))),g=p.stringify(m)}else if("path"in u)g=u.path,p=n.find(N=>N.re.test(g)),p&&(m=p.parse(g),w=p.record.name);else{if(p=d.name?s.get(d.name):n.find(N=>N.re.test(d.path)),!p)throw Yt(1,{location:u,currentLocation:d});w=p.record.name,m=Z({},d.params,u.params),g=p.stringify(m)}const A=[];let R=p;for(;R;)A.unshift(R.record),R=R.parent;return{name:w,path:g,params:m,matched:A,meta:jp(A)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function Oi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function $p(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dp(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 Dp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jp(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function bl(e,t){return t.children.some(n=>n===e||bl(e,n))}const wl=/#/g,Up=/&/g,Bp=/\//g,Hp=/=/g,qp=/\?/g,vl=/\+/g,Kp=/%5B/g,zp=/%5D/g,El=/%5E/g,Vp=/%60/g,xl=/%7B/g,Wp=/%7C/g,Sl=/%7D/g,Jp=/%20/g;function co(e){return encodeURI(""+e).replace(Wp,"|").replace(Kp,"[").replace(zp,"]")}function Qp(e){return co(e).replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Cr(e){return co(e).replace(vl,"%2B").replace(Jp,"+").replace(wl,"%23").replace(Up,"%26").replace(Vp,"`").replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Xp(e){return Cr(e).replace(Hp,"%3D")}function Yp(e){return co(e).replace(wl,"%23").replace(qp,"%3F")}function Gp(e){return e==null?"":Yp(e).replace(Bp,"%2F")}function ys(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Zp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Cr(o)):[s&&Cr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function em(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const tm=Symbol(""),Ti=Symbol(""),lo=Symbol(""),ao=Symbol(""),Ar=Symbol("");function an(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ft(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Yt(4,{from:n,to:t})):d instanceof Error?c(d):Op(d)?c(Yt(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},a=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(a);e.length<3&&(u=u.then(l)),u.catch(d=>c(d))})}function tr(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(nm(c)){const a=(c.__vccOpts||c)[t];a&&r.push(ft(a,n,s,o,i))}else{let l=c();r.push(()=>l.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=lp(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&ft(p,n,s,o,i)()}))}}return r}function nm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ii(e){const t=Ye(lo),n=Ye(ao),s=Te(()=>t.resolve(Kt(e.to))),r=Te(()=>{const{matched:l}=s.value,{length:a}=l,u=l[a-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Xt.bind(null,u));if(p>-1)return p;const m=ki(l[a-2]);return a>1&&ki(u)===m&&d[d.length-1].path!==m?d.findIndex(Xt.bind(null,l[a-2])):p}),o=Te(()=>r.value>-1&&im(n.params,s.value.params)),i=Te(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function c(l={}){return om(l)?t[Kt(e.replace)?"replace":"push"](Kt(e.to)).catch(gn):Promise.resolve()}return{route:s,href:Te(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const sm=Hr({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:Ii,setup(e,{slots:t}){const n=In(Ii(e)),{options:s}=Ye(lo),r=Te(()=>({[Ni(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ni(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),rm=sm;function om(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 im(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ni=(e,t,n)=>e??t??n,cm=Hr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ye(Ar),r=Te(()=>e.route||s.value),o=Ye(Ti,0),i=Te(()=>{let a=Kt(o);const{matched:u}=r.value;let d;for(;(d=u[a])&&!d.components;)a++;return a}),c=Te(()=>r.value.matched[i.value]);Jn(Ti,Te(()=>i.value+1)),Jn(tm,c),Jn(Ar,r);const l=Pe();return dn(()=>[l.value,c.value,e.name],([a,u,d],[p,m,g])=>{u&&(u.instances[d]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Xt(u,m)||!p)&&(u.enterCallbacks[d]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,d=c.value,p=d&&d.components[u];if(!p)return Li(n.default,{Component:p,route:a});const m=d.props[u],g=m?m===!0?a.params:typeof m=="function"?m(a):m:null,A=ds(p,Z({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Li(n.default,{Component:A,route:a})||A}}});function Li(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lm=cm;function am(e){const t=Fp(e.routes,e),n=e.parseQuery||Zp,s=e.stringifyQuery||Pi,r=e.history,o=an(),i=an(),c=an(),l=ba(lt);let a=lt;Ut&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zs.bind(null,v=>""+v),d=Zs.bind(null,Gp),p=Zs.bind(null,ys);function m(v,k){let T,F;return yl(v)?(T=t.getRecordMatcher(v),F=k):F=v,t.addRoute(F,T)}function g(v){const k=t.getRecordMatcher(v);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(v=>v.record)}function A(v){return!!t.getRecordMatcher(v)}function R(v,k){if(k=Z({},k||l.value),typeof v=="string"){const f=er(n,v,k.path),h=t.resolve({path:f.path},k),y=r.createHref(f.fullPath);return Z(f,h,{params:p(h.params),hash:ys(f.hash),redirectedFrom:void 0,href:y})}let T;if("path"in v)T=Z({},v,{path:er(n,v.path,k.path).path});else{const f=Z({},v.params);for(const h in f)f[h]==null&&delete f[h];T=Z({},v,{params:d(v.params)}),k.params=d(k.params)}const F=t.resolve(T,k),Q=v.hash||"";F.params=u(p(F.params));const ce=fp(s,Z({},v,{hash:Qp(Q),path:F.path})),z=r.createHref(ce);return Z({fullPath:ce,hash:Q,query:s===Pi?em(v.query):v.query||{}},F,{redirectedFrom:void 0,href:z})}function N(v){return typeof v=="string"?er(n,v,l.value.path):Z({},v)}function M(v,k){if(a!==v)return Yt(8,{from:k,to:v})}function J(v){return ie(v)}function le(v){return J(Z(N(v),{replace:!0}))}function K(v){const k=v.matched[v.matched.length-1];if(k&&k.redirect){const{redirect:T}=k;let F=typeof T=="function"?T(v):T;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=N(F):{path:F},F.params={}),Z({query:v.query,hash:v.hash,params:"path"in F?{}:v.params},F)}}function ie(v,k){const T=a=R(v),F=l.value,Q=v.state,ce=v.force,z=v.replace===!0,f=K(T);if(f)return ie(Z(N(f),{state:typeof f=="object"?Z({},Q,f.state):Q,force:ce,replace:z}),k||T);const h=T;h.redirectedFrom=k;let y;return!ce&&dp(s,F,T)&&(y=Yt(16,{to:h,from:F}),_t(F,F,!0,!1)),(y?Promise.resolve(y):ke(h,F)).catch(b=>Ze(b)?Ze(b,2)?b:Ne(b):ne(b,h,F)).then(b=>{if(b){if(Ze(b,2))return ie(Z({replace:z},N(b.to),{state:typeof b.to=="object"?Z({},Q,b.to.state):Q,force:ce}),k||h)}else b=ot(h,F,!0,z,Q);return he(h,F,b),b})}function we(v,k){const T=M(v,k);return T?Promise.reject(T):Promise.resolve()}function ke(v,k){let T;const[F,Q,ce]=um(v,k);T=tr(F.reverse(),"beforeRouteLeave",v,k);for(const f of F)f.leaveGuards.forEach(h=>{T.push(ft(h,v,k))});const z=we.bind(null,v,k);return T.push(z),jt(T).then(()=>{T=[];for(const f of o.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).then(()=>{T=tr(Q,"beforeRouteUpdate",v,k);for(const f of Q)f.updateGuards.forEach(h=>{T.push(ft(h,v,k))});return T.push(z),jt(T)}).then(()=>{T=[];for(const f of v.matched)if(f.beforeEnter&&!k.matched.includes(f))if(Be(f.beforeEnter))for(const h of f.beforeEnter)T.push(ft(h,v,k));else T.push(ft(f.beforeEnter,v,k));return T.push(z),jt(T)}).then(()=>(v.matched.forEach(f=>f.enterCallbacks={}),T=tr(ce,"beforeRouteEnter",v,k),T.push(z),jt(T))).then(()=>{T=[];for(const f of i.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).catch(f=>Ze(f,8)?f:Promise.reject(f))}function he(v,k,T){for(const F of c.list())F(v,k,T)}function ot(v,k,T,F,Q){const ce=M(v,k);if(ce)return ce;const z=k===lt,f=Ut?history.state:{};T&&(F||z?r.replace(v.fullPath,Z({scroll:z&&f&&f.scroll},Q)):r.push(v.fullPath,Q)),l.value=v,_t(v,k,T,z),Ne()}let qe;function Ft(){qe||(qe=r.listen((v,k,T)=>{if(!Mn.listening)return;const F=R(v),Q=K(F);if(Q){ie(Z(Q,{replace:!0}),F).catch(gn);return}a=F;const ce=l.value;Ut&&wp(vi(ce.fullPath,T.delta),Bs()),ke(F,ce).catch(z=>Ze(z,12)?z:Ze(z,2)?(ie(z.to,F).then(f=>{Ze(f,20)&&!T.delta&&T.type===Pn.pop&&r.go(-1,!1)}).catch(gn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),ne(z,F,ce))).then(z=>{z=z||ot(F,ce,!1),z&&(T.delta&&!Ze(z,8)?r.go(-T.delta,!1):T.type===Pn.pop&&Ze(z,20)&&r.go(-1,!1)),he(F,ce,z)}).catch(gn)}))}let yt=an(),sn=an(),ae;function ne(v,k,T){Ne(v);const F=sn.list();return F.length?F.forEach(Q=>Q(v,k,T)):console.error(v),Promise.reject(v)}function ee(){return ae&&l.value!==lt?Promise.resolve():new Promise((v,k)=>{yt.add([v,k])})}function Ne(v){return ae||(ae=!v,Ft(),yt.list().forEach(([k,T])=>v?T(v):k()),yt.reset()),v}function _t(v,k,T,F){const{scrollBehavior:Q}=e;if(!Ut||!Q)return Promise.resolve();const ce=!T&&vp(vi(v.fullPath,0))||(F||!T)&&history.state&&history.state.scroll||null;return ic().then(()=>Q(v,k,ce)).then(z=>z&&bp(z)).catch(z=>ne(z,v,k))}const Le=v=>r.go(v);let Se;const $t=new Set,Mn={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,hasRoute:A,getRoutes:w,resolve:R,options:e,push:J,replace:le,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:sn.add,isReady:ee,install(v){const k=this;v.component("RouterLink",rm),v.component("RouterView",lm),v.config.globalProperties.$router=k,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Kt(l)}),Ut&&!Se&&l.value===lt&&(Se=!0,J(r.location).catch(Q=>{}));const T={};for(const Q in lt)T[Q]=Te(()=>l.value[Q]);v.provide(lo,k),v.provide(ao,In(T)),v.provide(Ar,l);const F=v.unmount;$t.add(v),v.unmount=function(){$t.delete(v),$t.size<1&&(a=lt,qe&&qe(),qe=null,l.value=lt,Se=!1,ae=!1),F()}}};return Mn}function jt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function um(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iXt(a,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(a=>Xt(a,l))||r.push(l))}return[n,s,r]}function Rl(){return Ye(ao)}const Mi=Pe(""),nr=Pe(),un=Pe(!1),Kn=Pe(!1),zn=Pe("");function uo(){function e(r){return t(r)||n(r)}function t(r){return!(r===""||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/"))}function n(r){return!!(r.includes("://open.spotify.com/track/")||r.includes("://open.spotify.com/playlist/"))}function s(r){console.log("Searching for:",r),nr.value=[],un.value=!0,Mi.value=r,Kn.value=!1,zn.value="",mt.search(r).then(o=>{console.log("Received Data:",o.data),o.status===200?(nr.value=o.data,un.value=!1):(console.log("Error:",o),un.value=!1,Kn.value=!0,zn.value=o.toString())}).catch(o=>{console.log("Other Error:",o.message),un.value=!1,Kn.value=!0,zn.value=o.message})}return{searchTerm:Mi,isSearching:un,results:nr,error:Kn,errorValue:zn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const vt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},Et=Pe([]);class fm{constructor(t){this.song=t,this.web_status=vt.QUEUED,this.progress=0,this.message=null,this.web_download_url=null}setDownloading(){this.web_status=vt.DOWNLOADING}setDownloaded(){this.web_status=vt.DOWNLOADED}setError(){this.web_status=vt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===vt.DOWNLOADING}isDownloaded(){return this.web_status===vt.DOWNLOADED}isErrored(){return this.web_status===vt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Hs(){function e(r){return Et.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new fm(r);Et.value.push(o)}function n(r){console.log("removing",r,r.song_id),Et.value=Et.value.filter(o=>o.song.song_id!==r.song_id),console.log(Et.value)}function s(r){return Et.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:Et}}const at=Hs();mt.ws_onmessage(e=>{let t=JSON.parse(e.data);at.getBySong(t.song).wsUpdate(t)});mt.ws_onerror(e=>{console.log("websocket error:",e)});function Ln(){function e(r){mt.open(r).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;for(const c of i)console.log("Opened Song:",c),n(c)}else console.log("Error:",o)}).catch(o=>{console.log("Other Error:",o.message)})}function t(r){console.log("Downloading",r),at.getBySong(r).setDownloading(),mt.download(r.url).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Download Complete:",i),at.getBySong(r).setWebURL(mt.downloadFileURL(i)),at.getBySong(r).setDownloaded()}else console.log("Error:",o),at.getBySong(r).setError()}).catch(o=>{console.log("Other Error:",o.message),at.getBySong(r).setError()})}function n(r,o=!0){at.appendSong(r),o&&t(r)}function s(r){console.log("removing"),at.removeSong(r)}return{fromURL:e,download:t,queue:n,remove:s}}const dm={components:{Icon:nn},setup(){const e=uo(),t=Ln(),n=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],s=Pe(n[0]),r=setInterval(()=>{n.push(n.shift()),s.value=n[0]},6e3);_c(()=>{clearInterval(r)});function o(c){if(e.isValidURL(c))t.fromURL(c),i({name:"Download"});else if(e.isValidSearch(c)){let l={name:"Search",params:{query:c}};e.isValidSearch(c)&&i(l)}else console.log("Invalid search term.")}function i(c){fo.push(c)}return{lookUp:o,searchTerm:e.searchTerm,isValidURL:e.isValidURL,placeHolder:s}}},hm={class:"flex flex-row items-center space-x-4 w-full"},pm=["placeholder"];function mm(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",hm,[Xn(O("input",{type:"text",placeholder:s.placeHolder,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":t[0]||(t[0]=c=>s.searchTerm=c),onKeyup:t[1]||(t[1]=Wu(c=>s.lookUp(s.searchTerm),["enter"]))},null,40,pm),[[zu,s.searchTerm]]),O("button",{class:"btn btn-square btn-primary",onClick:t[2]||(t[2]=c=>s.lookUp(s.searchTerm))},[me(" ​ "),s.isValidURL(s.searchTerm)?(U(),fs(i,{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(U(),fs(i,{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))])])}const Ol=He(dm,[["render",mm]]);const gm={components:{Icon:nn,SearchInput:Ol},setup(){return{themeMgr:pl({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"})}}},ym=e=>(fc("data-v-a94c0599"),e=e(),dc(),e),_m={class:"hero min-h-screen"},bm={key:0,class:"flex justify-end absolute top-0 right-0"},wm={class:"swap swap-rotate"},vm=["checked"],Em={for:"my-modal",class:"btn btn-square modal-button m-2"},xm={class:"block text-center justify-center hero-content"},Sm=Ic('

spotDL

Download your Spotify songs with embedded album art and metadata

',2),Rm={class:"alert alert-info shadow-lg my-4"},Om=ym(()=>O("span",null,[me("This web interface currently downloads only songs. "),O("br"),me(" Album, Artist, Playlist and Show links will not work.")],-1));function Cm(e,t,n,s,r,o){const i=Ee("Icon"),c=Ee("SearchInput");return U(),H("div",_m,[(U(),H("div",bm,[O("label",wm,[O("input",{type:"checkbox",onChange:t[0]||(t[0]=l=>s.themeMgr.setTheme(l.target.checked?"light":"dark")),checked:s.themeMgr.currentTheme.value==="dark"?!1:"checked"},null,40,vm),me(" ​ "),W(i,{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),me(" ​ "),W(i,{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),O("label",Em,[me(" ​ "),W(i,{icon:"clarity:settings-line",class:"h-6 w-6"})])])),O("div",xm,[Sm,W(c),O("div",Rm,[O("div",null,[W(i,{icon:"clarity:info-circle-line",class:"swap-off fill-current h-6 w-6"}),Om])])])])}const Am=He(gm,[["render",Cm],["__scopeId","data-v-a94c0599"]]),Pm={components:{Hero:Am},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Tm(e,t,n,s,r,o){const i=Ee("Hero");return U(),fs(i)}const Im=He(Pm,[["render",Tm]]);const km={components:{Icon:nn,SearchInput:Ol},setup(){const e=Hs(),t=Ln(),n=Rl();function s(r){fo.push(r)}return{goto:s,route:n,pt:e,dm:t}}},Cl=e=>(fc("data-v-e0cba7f6"),e=e(),dc(),e),Nm={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},Lm=Cl(()=>O("div",{class:"bg-cover bg-no-repeat bg-center"},[O("img",{src:Vr,class:"py-2 pr-2 w-10 center"})],-1)),Mm=Cl(()=>O("button",{class:"text-lg font-bold"},"spotDL",-1)),Fm=[Lm,Mm],$m={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},Dm={class:"navbar-end"},jm={for:"my-modal",class:"btn btn-square modal-button mx-2"},Um={class:"indicator"},Bm={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},Hm={class:"sm:hidden px-2 mx-2"};function qm(e,t,n,s,r,o){const i=Ee("SearchInput"),c=Ee("Icon");return U(),H(pe,null,[O("div",Nm,[O("button",{class:"px-2 mx-2 navbar-start",onClick:t[0]||(t[0]=l=>s.goto({name:"Home"}))},Fm),O("div",$m,[W(i,{class:"w-full"})]),O("div",Dm,[O("label",jm,[me(" ​ "),W(c,{icon:"clarity:settings-line",class:"h-6 w-6"})]),O("div",Um,[s.pt.downloadQueue.value.length>0?(U(),H("div",Bm,Ce(s.pt.downloadQueue.value.length),1)):dt("",!0),O("a",{class:bs(["btn btn-square",s.route.name==="Download"?"btn-primary":"btn-ghost"]),onClick:t[1]||(t[1]=l=>s.goto({name:"Download"}))},[me(" ​ "),W(c,{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),O("div",Hm,[W(i,{class:"w-full"})])],64)}const Al=He(km,[["render",qm],["__scopeId","data-v-e0cba7f6"]]),Km={components:{Icon:nn},props:["data","error"],emits:["download"],setup(e,t){const n=uo(),s=Hs(),r=Ln();return{data:e.data,error:e.error,errorValue:n.errorValue,loading:n.isSearching,download:o=>t.emit("download",o),dm:r,pt:s}}},zm={class:"min-h-screen m-2"},Vm={key:0,class:"hero min-h-screen"},Wm={key:0,class:"btn btn-sm btn-ghost loading"},Jm={key:1,class:"alert alert-error"},Qm={class:"flex-1"},Xm=O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Ym={class:"aspect-square md:max-h-fit"},Gm=["src"],Zm={class:"card-body"},eg={class:"card-title"},tg={key:0,class:"badge mx-0.5 badge-error"},ng={key:0},sg=O("br",null,null,-1),rg=O("p",null,[O("br")],-1),og={class:"card-actions absolute bottom-0 right-0 m-2"},ig=["href"],cg={key:0,class:"btn btn-primary btn-square"},lg=["onClick"];function ag(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",zm,[s.loading||s.error?(U(),H("div",Vm,[s.loading?(U(),H("button",Wm," LOADING ")):dt("",!0),s.error?(U(),H("div",Jm,[O("div",Qm,[Xm,O("label",null,"Error: "+Ce(s.errorValue),1)])])):dt("",!0)])):(U(!0),H(pe,{key:1},Pt(s.data,(c,l)=>{var a;return U(),H("div",{key:l,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[O("figure",Ym,[O("img",{src:c.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Gm)]),O("div",Zm,[O("h2",eg,[me(Ce(c.name)+" ",1),c.explicit?(U(),H("div",tg," Explicit ")):dt("",!0)]),O("h3",null,[(U(!0),H(pe,null,Pt(c.artists,(u,d)=>(U(),H("a",{key:d},[d!==0?(U(),H("a",ng," • ")):dt("",!0),me(" "+Ce(u),1)]))),128))]),O("h3",null,Ce(c.album_name),1),sg,rg,O("div",og,[O("a",{class:"btn btn-ghost btn-square",href:c.url,target:"_blank"},[me(" ​ "),W(i,{icon:"clarity:link-line",class:"h-6 w-6"})],8,ig),(a=s.pt.getBySong(c))!=null&&a.isQueued()?(U(),H("button",cg,[me(" ​ "),W(i,{icon:"clarity:check-line",class:"h-6 w-6"})])):(U(),H("button",{key:1,class:"btn btn-primary btn-square",onClick:u=>s.download(c)},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,lg))])])])}),128))])}const ug=He(Km,[["render",ag]]),fg={components:{Navbar:Al,SearchList:ug},setup(){Ts(()=>{window.scroll(0,0)});const e=Rl(),t=uo(),n=Ln();return dn(()=>e.params.query,()=>{e.params.query&&t.searchFor(e.params.query)},{deep:!0}),t.searchFor(e.params.query),{sm:t,dm:n}}};function dg(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("SearchList");return U(),H("div",null,[W(i),W(c,{data:s.sm.results,error:s.sm.error,onDownload:t[0]||(t[0]=l=>s.dm.queue(l))},null,8,["data","error"])])}const hg=He(fg,[["render",dg]]),pg={components:{Icon:nn},props:{data:Object},setup(e,t){const n=Hs(),s=Ln();function r(o){const i=document.createElement("a");i.href=o,i.download=o.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return{dm:s,pt:n,download:r}}},mg={class:"min-h-screen m-2"},gg={key:0},yg=O("div",{class:"alert shadow-lg"},[O("div",null,[O("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info flex-shrink-0 w-6 h-6"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),O("span",null,"No downloads are queued. Search for a song to begin.")])],-1),_g=[yg],bg={key:1},wg={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},vg=["src"],Eg={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},xg={class:"card-title"},Sg={class:"stat-figure text-primary flex space-x-2 items-center"},Rg={key:0,class:"badge badge-error gap-2"},Og={class:"badge"},Cg=["onClick"],Ag=["onClick"],Pg={key:2,class:"btn btn-square btn-ghost loading"};function Tg(e,t,n,s,r,o){const i=Ee("Icon");return U(),H("div",mg,[s.pt.downloadQueue.value.length===0?(U(),H("div",gg,_g)):(U(),H("div",bg,[O("div",wg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"carousel-item h-48"},[O("img",{src:c.song.cover_url},null,8,vg)]))),128))]),O("div",Eg,[(U(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(U(),H("div",{key:l,class:"card-body grid grid-rows-1"},[O("h2",xg,Ce(c.song.name)+" - "+Ce(c.song.artist),1),O("p",null,Ce(c.song.album_name),1),O("div",Sg,[c.isErrored()?(U(),H("div",Rg," error ")):dt("",!0),O("span",Og,Ce(c.message||c.web_status),1),O("button",{class:"btn btn-error btn-outline btn-square",onClick:a=>s.dm.remove(c.song)},[me(" ​ "),W(i,{icon:"clarity:trash-line",class:"h-6 w-6"})],8,Cg),c.isDownloaded()?(U(),H("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:a=>s.download(c.web_download_url),download:""},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,Ag)):c.progress===0?(U(),H("button",Pg," ​ ")):(U(),H("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:_s(`--value: ${c.progress}; --size: 2.5rem`)},Ce(Math.round(c.progress))+"% ",5))])]))),128))])]))])}const Ig=He(pg,[["render",Tg]]),kg={components:{Navbar:Al,DownloadList:Ig},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Ng(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("DownloadList");return U(),H("div",null,[W(i),W(c)])}const Lg=He(kg,[["render",Ng]]),Mg=[{path:"/",name:"Home",component:Im},{path:"/search/:query",name:"Search",component:hg},{path:"/download",name:"Download",component:Lg}],fo=am({history:Rp($e.BASEURL),routes:Mg});const Pl=Xu(cp);Pl.use(fo);Pl.mount("#app"); + */const Ut=typeof window<"u";function lp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Z=Object.assign;function Zs(e,t){const n={};for(const s in t){const r=t[s];n[s]=Be(r)?r.map(e):e(r)}return n}const gn=()=>{},Be=Array.isArray,ap=/\/$/,up=e=>e.replace(ap,"");function er(e,t,n="/"){let s,r={},o="",i="";const c=t.indexOf("#");let l=t.indexOf("?");return c=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),r=e(o)),c>-1&&(s=s||t.slice(0,c),i=t.slice(c,t.length)),s=pp(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function fp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function bi(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dp(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Gt(t.matched[s],n.matched[r])&&ml(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Gt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ml(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hp(e[n],t[n]))return!1;return!0}function hp(e,t){return Be(e)?wi(e,t):Be(t)?wi(t,e):e===t}function wi(e,t){return Be(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,o,i;for(o=0;o1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var Pn;(function(e){e.pop="pop",e.push="push"})(Pn||(Pn={}));var yn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(yn||(yn={}));function mp(e){if(!e)if(Ut){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),up(e)}const gp=/^[^#]+#/;function yp(e,t){return e.replace(gp,"#")+t}function _p(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bs=()=>({left:window.pageXOffset,top:window.pageYOffset});function bp(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=_p(r,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 vi(e,t){return(history.state?history.state.position-t:-1)+e}const Or=new Map;function wp(e,t){Or.set(e,t)}function vp(e){const t=Or.get(e);return Or.delete(e),t}let Ep=()=>location.protocol+"//"+location.host;function gl(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let c=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(c);return l[0]!=="/"&&(l="/"+l),bi(l,"")}return bi(n,e)+s+r}function xp(e,t,n,s){let r=[],o=[],i=null;const c=({state:p})=>{const m=gl(e,location),g=n.value,w=t.value;let A=0;if(p){if(n.value=m,t.value=p,i&&i===g){i=null;return}A=w?p.position-w.position:0}else s(m);r.forEach(R=>{R(n.value,g,{delta:A,type:Pn.pop,direction:A?A>0?yn.forward:yn.back:yn.unknown})})};function l(){i=n.value}function a(p){r.push(p);const m=()=>{const g=r.indexOf(p);g>-1&&r.splice(g,1)};return o.push(m),m}function u(){const{history:p}=window;p.state&&p.replaceState(Z({},p.state,{scroll:Bs()}),"")}function d(){for(const p of o)p();o=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:a,destroy:d}}function Ei(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bs():null}}function Sp(e){const{history:t,location:n}=window,s={value:gl(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,a,u){const d=e.indexOf("#"),p=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:Ep()+e+l;try{t[u?"replaceState":"pushState"](a,"",p),r.value=a}catch(m){console.error(m),n[u?"replace":"assign"](p)}}function i(l,a){const u=Z({},t.state,Ei(r.value.back,l,r.value.forward,!0),a,{position:r.value.position});o(l,u,!0),s.value=l}function c(l,a){const u=Z({},r.value,t.state,{forward:l,scroll:Bs()});o(u.current,u,!0);const d=Z({},Ei(s.value,l,null),{position:u.position+1},a);o(l,d,!1),s.value=l}return{location:s,state:r,push:c,replace:i}}function Rp(e){e=mp(e);const t=Sp(e),n=xp(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Z({location:"",base:e,go:s,createHref:yp.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Op(e){return typeof e=="string"||e&&typeof e=="object"}function yl(e){return typeof e=="string"||typeof e=="symbol"}const lt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_l=Symbol("");var xi;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(xi||(xi={}));function Xt(e,t){return Z(new Error,{type:e,[_l]:!0},t)}function Ze(e,t){return e instanceof Error&&_l in e&&(t==null||!!(e.type&t))}const Si="[^/]+?",Cp={sensitive:!1,strict:!1,start:!0,end:!0},Ap=/[.+*?^${}()[\]/\\]/g;function Pp(e,t){const n=Z({},Cp,t),s=[];let r=n.start?"^":"";const o=[];for(const a of e){const u=a.length?[]:[90];n.strict&&!a.length&&(r+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function Ip(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const kp={type:0,value:""},Np=/[a-zA-Z0-9_]/;function Lp(e){if(!e)return[[]];if(e==="/")return[[kp]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${a}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let c=0,l,a="",u="";function d(){a&&(n===0?o.push({type:0,value:a}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${a}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:a,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),a="")}function p(){a+=l}for(;c{i(N)}:gn}function i(u){if(yl(u)){const d=s.get(u);d&&(s.delete(u),n.splice(n.indexOf(d),1),d.children.forEach(i),d.alias.forEach(i))}else{const d=n.indexOf(u);d>-1&&(n.splice(d,1),u.record.name&&s.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function c(){return n}function l(u){let d=0;for(;d=0&&(u.record.path!==n[d].record.path||!bl(u,n[d]));)d++;n.splice(d,0,u),u.record.name&&!Ci(u)&&s.set(u.record.name,u)}function a(u,d){let p,m={},g,w;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw Xt(1,{location:u});w=p.record.name,m=Z(Oi(d.params,p.keys.filter(N=>!N.optional).map(N=>N.name)),u.params&&Oi(u.params,p.keys.map(N=>N.name))),g=p.stringify(m)}else if("path"in u)g=u.path,p=n.find(N=>N.re.test(g)),p&&(m=p.parse(g),w=p.record.name);else{if(p=d.name?s.get(d.name):n.find(N=>N.re.test(d.path)),!p)throw Xt(1,{location:u,currentLocation:d});w=p.record.name,m=Z({},d.params,u.params),g=p.stringify(m)}const A=[];let R=p;for(;R;)A.unshift(R.record),R=R.parent;return{name:w,path:g,params:m,matched:A,meta:jp(A)}}return e.forEach(u=>o(u)),{addRoute:o,resolve:a,removeRoute:i,getRoutes:c,getRecordMatcher:r}}function Oi(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function $p(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Dp(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 Dp(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Ci(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function jp(e){return e.reduce((t,n)=>Z(t,n.meta),{})}function Ai(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function bl(e,t){return t.children.some(n=>n===e||bl(e,n))}const wl=/#/g,Up=/&/g,Bp=/\//g,Hp=/=/g,qp=/\?/g,vl=/\+/g,Kp=/%5B/g,zp=/%5D/g,El=/%5E/g,Vp=/%60/g,xl=/%7B/g,Wp=/%7C/g,Sl=/%7D/g,Jp=/%20/g;function co(e){return encodeURI(""+e).replace(Wp,"|").replace(Kp,"[").replace(zp,"]")}function Qp(e){return co(e).replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Cr(e){return co(e).replace(vl,"%2B").replace(Jp,"+").replace(wl,"%23").replace(Up,"%26").replace(Vp,"`").replace(xl,"{").replace(Sl,"}").replace(El,"^")}function Gp(e){return Cr(e).replace(Hp,"%3D")}function Xp(e){return co(e).replace(wl,"%23").replace(qp,"%3F")}function Yp(e){return e==null?"":Xp(e).replace(Bp,"%2F")}function ys(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Zp(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ro&&Cr(o)):[s&&Cr(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function em(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Be(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const tm=Symbol(""),Ti=Symbol(""),lo=Symbol(""),ao=Symbol(""),Ar=Symbol("");function an(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ft(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,c)=>{const l=d=>{d===!1?c(Xt(4,{from:n,to:t})):d instanceof Error?c(d):Op(d)?c(Xt(2,{from:t,to:d})):(o&&s.enterCallbacks[r]===o&&typeof d=="function"&&o.push(d),i())},a=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(a);e.length<3&&(u=u.then(l)),u.catch(d=>c(d))})}function tr(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let c=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(nm(c)){const a=(c.__vccOpts||c)[t];a&&r.push(ft(a,n,s,o,i))}else{let l=c();r.push(()=>l.then(a=>{if(!a)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const u=lp(a)?a.default:a;o.components[i]=u;const p=(u.__vccOpts||u)[t];return p&&ft(p,n,s,o,i)()}))}}return r}function nm(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ii(e){const t=Xe(lo),n=Xe(ao),s=Te(()=>t.resolve(Kt(e.to))),r=Te(()=>{const{matched:l}=s.value,{length:a}=l,u=l[a-1],d=n.matched;if(!u||!d.length)return-1;const p=d.findIndex(Gt.bind(null,u));if(p>-1)return p;const m=ki(l[a-2]);return a>1&&ki(u)===m&&d[d.length-1].path!==m?d.findIndex(Gt.bind(null,l[a-2])):p}),o=Te(()=>r.value>-1&&im(n.params,s.value.params)),i=Te(()=>r.value>-1&&r.value===n.matched.length-1&&ml(n.params,s.value.params));function c(l={}){return om(l)?t[Kt(e.replace)?"replace":"push"](Kt(e.to)).catch(gn):Promise.resolve()}return{route:s,href:Te(()=>s.value.href),isActive:o,isExactActive:i,navigate:c}}const sm=Hr({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:Ii,setup(e,{slots:t}){const n=In(Ii(e)),{options:s}=Xe(lo),r=Te(()=>({[Ni(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ni(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:ds("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),rm=sm;function om(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 im(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Be(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function ki(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ni=(e,t,n)=>e??t??n,cm=Hr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Xe(Ar),r=Te(()=>e.route||s.value),o=Xe(Ti,0),i=Te(()=>{let a=Kt(o);const{matched:u}=r.value;let d;for(;(d=u[a])&&!d.components;)a++;return a}),c=Te(()=>r.value.matched[i.value]);Jn(Ti,Te(()=>i.value+1)),Jn(tm,c),Jn(Ar,r);const l=Pe();return dn(()=>[l.value,c.value,e.name],([a,u,d],[p,m,g])=>{u&&(u.instances[d]=a,m&&m!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=m.leaveGuards),u.updateGuards.size||(u.updateGuards=m.updateGuards))),a&&u&&(!m||!Gt(u,m)||!p)&&(u.enterCallbacks[d]||[]).forEach(w=>w(a))},{flush:"post"}),()=>{const a=r.value,u=e.name,d=c.value,p=d&&d.components[u];if(!p)return Li(n.default,{Component:p,route:a});const m=d.props[u],g=m?m===!0?a.params:typeof m=="function"?m(a):m:null,A=ds(p,Z({},g,t,{onVnodeUnmounted:R=>{R.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return Li(n.default,{Component:A,route:a})||A}}});function Li(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lm=cm;function am(e){const t=Fp(e.routes,e),n=e.parseQuery||Zp,s=e.stringifyQuery||Pi,r=e.history,o=an(),i=an(),c=an(),l=ba(lt);let a=lt;Ut&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Zs.bind(null,v=>""+v),d=Zs.bind(null,Yp),p=Zs.bind(null,ys);function m(v,k){let T,F;return yl(v)?(T=t.getRecordMatcher(v),F=k):F=v,t.addRoute(F,T)}function g(v){const k=t.getRecordMatcher(v);k&&t.removeRoute(k)}function w(){return t.getRoutes().map(v=>v.record)}function A(v){return!!t.getRecordMatcher(v)}function R(v,k){if(k=Z({},k||l.value),typeof v=="string"){const f=er(n,v,k.path),h=t.resolve({path:f.path},k),y=r.createHref(f.fullPath);return Z(f,h,{params:p(h.params),hash:ys(f.hash),redirectedFrom:void 0,href:y})}let T;if("path"in v)T=Z({},v,{path:er(n,v.path,k.path).path});else{const f=Z({},v.params);for(const h in f)f[h]==null&&delete f[h];T=Z({},v,{params:d(v.params)}),k.params=d(k.params)}const F=t.resolve(T,k),Q=v.hash||"";F.params=u(p(F.params));const ce=fp(s,Z({},v,{hash:Qp(Q),path:F.path})),z=r.createHref(ce);return Z({fullPath:ce,hash:Q,query:s===Pi?em(v.query):v.query||{}},F,{redirectedFrom:void 0,href:z})}function N(v){return typeof v=="string"?er(n,v,l.value.path):Z({},v)}function M(v,k){if(a!==v)return Xt(8,{from:k,to:v})}function J(v){return ie(v)}function le(v){return J(Z(N(v),{replace:!0}))}function K(v){const k=v.matched[v.matched.length-1];if(k&&k.redirect){const{redirect:T}=k;let F=typeof T=="function"?T(v):T;return typeof F=="string"&&(F=F.includes("?")||F.includes("#")?F=N(F):{path:F},F.params={}),Z({query:v.query,hash:v.hash,params:"path"in F?{}:v.params},F)}}function ie(v,k){const T=a=R(v),F=l.value,Q=v.state,ce=v.force,z=v.replace===!0,f=K(T);if(f)return ie(Z(N(f),{state:typeof f=="object"?Z({},Q,f.state):Q,force:ce,replace:z}),k||T);const h=T;h.redirectedFrom=k;let y;return!ce&&dp(s,F,T)&&(y=Xt(16,{to:h,from:F}),_t(F,F,!0,!1)),(y?Promise.resolve(y):ke(h,F)).catch(b=>Ze(b)?Ze(b,2)?b:Ne(b):ne(b,h,F)).then(b=>{if(b){if(Ze(b,2))return ie(Z({replace:z},N(b.to),{state:typeof b.to=="object"?Z({},Q,b.to.state):Q,force:ce}),k||h)}else b=ot(h,F,!0,z,Q);return he(h,F,b),b})}function we(v,k){const T=M(v,k);return T?Promise.reject(T):Promise.resolve()}function ke(v,k){let T;const[F,Q,ce]=um(v,k);T=tr(F.reverse(),"beforeRouteLeave",v,k);for(const f of F)f.leaveGuards.forEach(h=>{T.push(ft(h,v,k))});const z=we.bind(null,v,k);return T.push(z),jt(T).then(()=>{T=[];for(const f of o.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).then(()=>{T=tr(Q,"beforeRouteUpdate",v,k);for(const f of Q)f.updateGuards.forEach(h=>{T.push(ft(h,v,k))});return T.push(z),jt(T)}).then(()=>{T=[];for(const f of v.matched)if(f.beforeEnter&&!k.matched.includes(f))if(Be(f.beforeEnter))for(const h of f.beforeEnter)T.push(ft(h,v,k));else T.push(ft(f.beforeEnter,v,k));return T.push(z),jt(T)}).then(()=>(v.matched.forEach(f=>f.enterCallbacks={}),T=tr(ce,"beforeRouteEnter",v,k),T.push(z),jt(T))).then(()=>{T=[];for(const f of i.list())T.push(ft(f,v,k));return T.push(z),jt(T)}).catch(f=>Ze(f,8)?f:Promise.reject(f))}function he(v,k,T){for(const F of c.list())F(v,k,T)}function ot(v,k,T,F,Q){const ce=M(v,k);if(ce)return ce;const z=k===lt,f=Ut?history.state:{};T&&(F||z?r.replace(v.fullPath,Z({scroll:z&&f&&f.scroll},Q)):r.push(v.fullPath,Q)),l.value=v,_t(v,k,T,z),Ne()}let qe;function Ft(){qe||(qe=r.listen((v,k,T)=>{if(!Mn.listening)return;const F=R(v),Q=K(F);if(Q){ie(Z(Q,{replace:!0}),F).catch(gn);return}a=F;const ce=l.value;Ut&&wp(vi(ce.fullPath,T.delta),Bs()),ke(F,ce).catch(z=>Ze(z,12)?z:Ze(z,2)?(ie(z.to,F).then(f=>{Ze(f,20)&&!T.delta&&T.type===Pn.pop&&r.go(-1,!1)}).catch(gn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),ne(z,F,ce))).then(z=>{z=z||ot(F,ce,!1),z&&(T.delta&&!Ze(z,8)?r.go(-T.delta,!1):T.type===Pn.pop&&Ze(z,20)&&r.go(-1,!1)),he(F,ce,z)}).catch(gn)}))}let yt=an(),sn=an(),ae;function ne(v,k,T){Ne(v);const F=sn.list();return F.length?F.forEach(Q=>Q(v,k,T)):console.error(v),Promise.reject(v)}function ee(){return ae&&l.value!==lt?Promise.resolve():new Promise((v,k)=>{yt.add([v,k])})}function Ne(v){return ae||(ae=!v,Ft(),yt.list().forEach(([k,T])=>v?T(v):k()),yt.reset()),v}function _t(v,k,T,F){const{scrollBehavior:Q}=e;if(!Ut||!Q)return Promise.resolve();const ce=!T&&vp(vi(v.fullPath,0))||(F||!T)&&history.state&&history.state.scroll||null;return ic().then(()=>Q(v,k,ce)).then(z=>z&&bp(z)).catch(z=>ne(z,v,k))}const Le=v=>r.go(v);let Se;const $t=new Set,Mn={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,hasRoute:A,getRoutes:w,resolve:R,options:e,push:J,replace:le,go:Le,back:()=>Le(-1),forward:()=>Le(1),beforeEach:o.add,beforeResolve:i.add,afterEach:c.add,onError:sn.add,isReady:ee,install(v){const k=this;v.component("RouterLink",rm),v.component("RouterView",lm),v.config.globalProperties.$router=k,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Kt(l)}),Ut&&!Se&&l.value===lt&&(Se=!0,J(r.location).catch(Q=>{}));const T={};for(const Q in lt)T[Q]=Te(()=>l.value[Q]);v.provide(lo,k),v.provide(ao,In(T)),v.provide(Ar,l);const F=v.unmount;$t.add(v),v.unmount=function(){$t.delete(v),$t.size<1&&(a=lt,qe&&qe(),qe=null,l.value=lt,Se=!1,ae=!1),F()}}};return Mn}function jt(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function um(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iGt(a,c))?s.push(c):n.push(c));const l=e.matched[i];l&&(t.matched.find(a=>Gt(a,l))||r.push(l))}return[n,s,r]}function Rl(){return Xe(ao)}const Mi=Pe(""),nr=Pe(),un=Pe(!1),Kn=Pe(!1),zn=Pe("");function uo(){function e(r){return t(r)||n(r)}function t(r){return!(r===""||r.includes("://open.spotify.com/album/")||r.includes("://open.spotify.com/show/")||r.includes("://open.spotify.com/artist/"))}function n(r){return!!(r.includes("://open.spotify.com/track/")||r.includes("://open.spotify.com/playlist/"))}function s(r){console.log("Searching for:",r),nr.value=[],un.value=!0,Mi.value=r,Kn.value=!1,zn.value="",mt.search(r).then(o=>{console.log("Received Data:",o.data),o.status===200?(nr.value=o.data,un.value=!1):(console.log("Error:",o),un.value=!1,Kn.value=!0,zn.value=o.toString())}).catch(o=>{console.log("Other Error:",o.message),un.value=!1,Kn.value=!0,zn.value=o.message})}return{searchTerm:Mi,isSearching:un,results:nr,error:Kn,errorValue:zn,searchFor:s,isValid:e,isValidSearch:t,isValidURL:n}}const vt={QUEUED:"In Queue",DOWNLOADING:"Downloading...",DOWNLOADED:"Done",ERROR:"Error"},Et=Pe([]);class fm{constructor(t){this.song=t,this.web_status=vt.QUEUED,this.progress=0,this.message=null,this.web_download_url=null}setDownloading(){this.web_status=vt.DOWNLOADING}setDownloaded(){this.web_status=vt.DOWNLOADED}setError(){this.web_status=vt.ERROR}setWebURL(t){this.web_download_url=t}isQueued(){return this.song.song_id!==void 0}isDownloading(){return this.web_status===vt.DOWNLOADING}isDownloaded(){return this.web_status===vt.DOWNLOADED}isErrored(){return this.web_status===vt.ERROR}wsUpdate(t){this.progress=t.progress,this.message=t.message}}function Hs(){function e(r){return Et.value.findIndex(o=>o.song.song_id===r.song_id)}function t(r){let o=new fm(r);Et.value.push(o)}function n(r){console.log("removing",r,r.song_id),Et.value=Et.value.filter(o=>o.song.song_id!==r.song_id),console.log(Et.value)}function s(r){return Et.value[e(r)]}return{appendSong:t,removeSong:n,getBySong:s,downloadQueue:Et}}const at=Hs();mt.ws_onmessage(e=>{let t=JSON.parse(e.data);at.getBySong(t.song).wsUpdate(t)});mt.ws_onerror(e=>{console.log("websocket error:",e)});function Ln(){function e(r){mt.open(r).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;for(const c of i)console.log("Opened Song:",c),n(c)}else console.log("Error:",o)}).catch(o=>{console.log("Other Error:",o.message)})}function t(r){console.log("Downloading",r),at.getBySong(r).setDownloading(),mt.download(r.url).then(o=>{if(console.log("Received Response:",o),o.status===200){let i=o.data;console.log("Download Complete:",i),at.getBySong(r).setWebURL(mt.downloadFileURL(i)),at.getBySong(r).setDownloaded()}else console.log("Error:",o),at.getBySong(r).setError()}).catch(o=>{console.log("Other Error:",o.message),at.getBySong(r).setError()})}function n(r,o=!0){at.appendSong(r),o&&t(r)}function s(r){console.log("removing"),at.removeSong(r)}return{fromURL:e,download:t,queue:n,remove:s}}const dm={components:{Icon:nn},setup(){const e=uo(),t=Ln(),n=["All Eyes On Me - Bo Burnham","https://open.spotify.com/track/4vfN00PlILRXy5dcXHQE9M?si=e4d9e7c044dd4a8f","Lil Wayne","Drive - Miley Cyrus","Sofia - TMG","Lightning Crashes - Live"],s=Pe(n[0]),r=setInterval(()=>{n.push(n.shift()),s.value=n[0]},6e3);_c(()=>{clearInterval(r)});function o(c){if(loading=!0,e.isValidURL(c))t.fromURL(c),i({name:"Download"});else if(e.isValidSearch(c)){let l={name:"Search",params:{query:c}};e.isValidSearch(c)&&i(l)}else console.log("Invalid search term.");loading=!1}function i(c){fo.push(c)}return{lookUp:o,searchTerm:e.searchTerm,isValidURL:e.isValidURL,placeHolder:s,loading:!1}}},hm={class:"flex flex-row items-center space-x-4 w-full"},pm=["placeholder"],mm={key:0,class:"btn btn-sm btn-ghost loading"};function gm(e,t,n,s,r,o){const i=Ee("Icon");return j(),H("div",hm,[Gn(C("input",{type:"text",placeholder:s.placeHolder,class:"input input-bordered w-full text-base-content","onUpdate:modelValue":t[0]||(t[0]=c=>s.searchTerm=c),onKeyup:t[1]||(t[1]=Wu(c=>s.lookUp(s.searchTerm),["enter"]))},null,40,pm),[[zu,s.searchTerm]]),s.loading?(j(),H("button",mm," LOADING ")):(j(),H("button",{key:1,class:"btn btn-square btn-primary",onClick:t[2]||(t[2]=c=>s.lookUp(s.searchTerm))},[me(" ​ "),s.isValidURL(s.searchTerm)?(j(),fs(i,{key:0,icon:"clarity:download-line",class:"h-6 w-6"})):(j(),fs(i,{key:1,icon:"clarity:search-line",class:"h-6 w-6"}))]))])}const Ol=He(dm,[["render",gm]]);const ym={components:{Icon:nn,SearchInput:Ol},setup(){return{themeMgr:pl({newLightAlias:"spotdl-light",newDarkAlias:"spotdl-dark"})}}},_m=e=>(fc("data-v-a94c0599"),e=e(),dc(),e),bm={class:"hero min-h-screen"},wm={key:0,class:"flex justify-end absolute top-0 right-0"},vm={class:"swap swap-rotate"},Em=["checked"],xm={for:"my-modal",class:"btn btn-square modal-button m-2"},Sm={class:"block text-center justify-center hero-content"},Rm=Ic('

spotDL

Download your Spotify songs with embedded album art and metadata

',2),Om={class:"alert alert-info shadow-lg my-4"},Cm=_m(()=>C("span",null,[me("This web interface currently downloads only songs. "),C("br"),me(" Album, Artist, Playlist and Show links will not work.")],-1));function Am(e,t,n,s,r,o){const i=Ee("Icon"),c=Ee("SearchInput");return j(),H("div",bm,[(j(),H("div",wm,[C("label",vm,[C("input",{type:"checkbox",onChange:t[0]||(t[0]=l=>s.themeMgr.setTheme(l.target.checked?"light":"dark")),checked:s.themeMgr.currentTheme.value==="dark"?!1:"checked"},null,40,Em),me(" ​ "),W(i,{icon:"clarity:sun-line",class:"swap-on fill-current h-8 w-8 m-4"}),me(" ​ "),W(i,{icon:"clarity:moon-line",class:"swap-off fill-current h-8 w-8 m-4"})]),C("label",xm,[me(" ​ "),W(i,{icon:"clarity:settings-line",class:"h-6 w-6"})])])),C("div",Sm,[Rm,W(c),C("div",Om,[C("div",null,[W(i,{icon:"clarity:info-circle-line",class:"swap-off fill-current h-6 w-6"}),Cm])])])])}const Pm=He(ym,[["render",Am],["__scopeId","data-v-a94c0599"]]),Tm={components:{Hero:Pm},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Im(e,t,n,s,r,o){const i=Ee("Hero");return j(),fs(i)}const km=He(Tm,[["render",Im]]);const Nm={components:{Icon:nn,SearchInput:Ol},setup(){const e=Hs(),t=Ln(),n=Rl();function s(r){fo.push(r)}return{goto:s,route:n,pt:e,dm:t}}},Cl=e=>(fc("data-v-e0cba7f6"),e=e(),dc(),e),Lm={class:"navbar m-2 shadow-lg bg-neutral text-neutral-content rounded-box",style:{width:"auto !important"}},Mm=Cl(()=>C("div",{class:"bg-cover bg-no-repeat bg-center"},[C("img",{src:Vr,class:"py-2 pr-2 w-10 center"})],-1)),Fm=Cl(()=>C("button",{class:"text-lg font-bold"},"spotDL",-1)),$m=[Mm,Fm],Dm={class:"hidden sm:flex px-2 mx-2 navbar-center w-96 space-x-4"},jm={class:"navbar-end"},Um={for:"my-modal",class:"btn btn-square modal-button mx-2"},Bm={class:"indicator"},Hm={key:0,class:"indicator-item indicator-top indicator-end badge badge-secondary",style:{top:"-5px",right:"-5px"}},qm={class:"sm:hidden px-2 mx-2"};function Km(e,t,n,s,r,o){const i=Ee("SearchInput"),c=Ee("Icon");return j(),H(pe,null,[C("div",Lm,[C("button",{class:"px-2 mx-2 navbar-start",onClick:t[0]||(t[0]=l=>s.goto({name:"Home"}))},$m),C("div",Dm,[W(i,{class:"w-full"})]),C("div",jm,[C("label",Um,[me(" ​ "),W(c,{icon:"clarity:settings-line",class:"h-6 w-6"})]),C("div",Bm,[s.pt.downloadQueue.value.length>0?(j(),H("div",Hm,Ce(s.pt.downloadQueue.value.length),1)):dt("",!0),C("a",{class:bs(["btn btn-square",s.route.name==="Download"?"btn-primary":"btn-ghost"]),onClick:t[1]||(t[1]=l=>s.goto({name:"Download"}))},[me(" ​ "),W(c,{icon:"clarity:download-cloud-line",class:"h-6 w-6"})],2)])])]),C("div",qm,[W(i,{class:"w-full"})])],64)}const Al=He(Nm,[["render",Km],["__scopeId","data-v-e0cba7f6"]]),zm={components:{Icon:nn},props:["data","error"],emits:["download"],setup(e,t){const n=uo(),s=Hs(),r=Ln();return{data:e.data,error:e.error,errorValue:n.errorValue,loading:n.isSearching,download:o=>t.emit("download",o),dm:r,pt:s}}},Vm={class:"min-h-screen m-2"},Wm={key:0,class:"hero min-h-screen"},Jm={key:0,class:"btn btn-sm btn-ghost loading"},Qm={key:1,class:"alert alert-error"},Gm={class:"flex-1"},Xm=C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"w-6 h-6 mx-2 stroke-current"},[C("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636"})],-1),Ym={class:"aspect-square md:max-h-fit"},Zm=["src"],eg={class:"card-body"},tg={class:"card-title"},ng={key:0,class:"badge mx-0.5 badge-error"},sg={key:0},rg=C("br",null,null,-1),og=C("p",null,[C("br")],-1),ig={class:"card-actions absolute bottom-0 right-0 m-2"},cg=["href"],lg={key:0,class:"btn btn-primary btn-square"},ag=["onClick"];function ug(e,t,n,s,r,o){const i=Ee("Icon");return j(),H("div",Vm,[s.loading||s.error?(j(),H("div",Wm,[s.loading?(j(),H("button",Jm," LOADING ")):dt("",!0),s.error?(j(),H("div",Qm,[C("div",Gm,[Xm,C("label",null,"Error: "+Ce(s.errorValue),1)])])):dt("",!0)])):(j(!0),H(pe,{key:1},Pt(s.data,(c,l)=>{var a;return j(),H("div",{key:l,class:"card md:card-side card-bordered my-2 shadow-lg card-compact bg-base-100"},[C("figure",Ym,[C("img",{src:c.cover_url,class:"object-contain aspect-square md:max-h-44"},null,8,Zm)]),C("div",eg,[C("h2",tg,[me(Ce(c.name)+" ",1),c.explicit?(j(),H("div",ng," Explicit ")):dt("",!0)]),C("h3",null,[(j(!0),H(pe,null,Pt(c.artists,(u,d)=>(j(),H("a",{key:d},[d!==0?(j(),H("a",sg," • ")):dt("",!0),me(" "+Ce(u),1)]))),128))]),C("h3",null,Ce(c.album_name),1),rg,og,C("div",ig,[C("a",{class:"btn btn-ghost btn-square",href:c.url,target:"_blank"},[me(" ​ "),W(i,{icon:"clarity:link-line",class:"h-6 w-6"})],8,cg),(a=s.pt.getBySong(c))!=null&&a.isQueued()?(j(),H("button",lg,[me(" ​ "),W(i,{icon:"clarity:check-line",class:"h-6 w-6"})])):(j(),H("button",{key:1,class:"btn btn-primary btn-square",onClick:u=>s.download(c)},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,ag))])])])}),128))])}const fg=He(zm,[["render",ug]]),dg={components:{Navbar:Al,SearchList:fg},setup(){Ts(()=>{window.scroll(0,0)});const e=Rl(),t=uo(),n=Ln();return dn(()=>e.params.query,()=>{e.params.query&&t.searchFor(e.params.query)},{deep:!0}),t.searchFor(e.params.query),{sm:t,dm:n}}};function hg(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("SearchList");return j(),H("div",null,[W(i),W(c,{data:s.sm.results,error:s.sm.error,onDownload:t[0]||(t[0]=l=>s.dm.queue(l))},null,8,["data","error"])])}const pg=He(dg,[["render",hg]]),mg={components:{Icon:nn},props:{data:Object},setup(e,t){const n=Hs(),s=Ln();function r(o){const i=document.createElement("a");i.href=o,i.download=o.split("/").pop(),document.body.appendChild(i),i.click(),document.body.removeChild(i)}return{dm:s,pt:n,download:r}}},gg={class:"min-h-screen m-2"},yg={key:0},_g=C("div",{class:"alert shadow-lg"},[C("div",null,[C("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",class:"stroke-info flex-shrink-0 w-6 h-6"},[C("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),C("span",null,"No downloads are queued. Search for a song to begin.")])],-1),bg=[_g],wg={key:1},vg={class:"carousel carousel-end bg-base-200 rounded-box shadow-lg"},Eg=["src"],xg={class:"card card-bordered my-2 shadow-lg card-compact bg-base-100"},Sg={class:"card-title"},Rg={class:"stat-figure text-primary flex space-x-2 items-center"},Og={key:0,class:"badge badge-error gap-2"},Cg={class:"badge"},Ag=["onClick"],Pg=["onClick"],Tg={key:2,class:"btn btn-square btn-ghost loading"};function Ig(e,t,n,s,r,o){const i=Ee("Icon");return j(),H("div",gg,[s.pt.downloadQueue.value.length===0?(j(),H("div",yg,bg)):(j(),H("div",wg,[C("div",vg,[(j(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(j(),H("div",{key:l,class:"carousel-item h-48"},[C("img",{src:c.song.cover_url},null,8,Eg)]))),128))]),C("div",xg,[(j(!0),H(pe,null,Pt(s.pt.downloadQueue.value,(c,l)=>(j(),H("div",{key:l,class:"card-body grid grid-rows-1"},[C("h2",Sg,Ce(c.song.name)+" - "+Ce(c.song.artist),1),C("p",null,Ce(c.song.album_name),1),C("div",Rg,[c.isErrored()?(j(),H("div",Og," error ")):dt("",!0),C("span",Cg,Ce(c.message||c.web_status),1),C("button",{class:"btn btn-error btn-outline btn-square",onClick:a=>s.dm.remove(c.song)},[me(" ​ "),W(i,{icon:"clarity:trash-line",class:"h-6 w-6"})],8,Ag),c.isDownloaded()?(j(),H("a",{key:1,class:"btn btn-square btn-ghost",href:"javascript:;",onClick:a=>s.download(c.web_download_url),download:""},[me(" ​ "),W(i,{icon:"clarity:download-line",class:"h-6 w-6"})],8,Pg)):c.progress===0?(j(),H("button",Tg," ​ ")):(j(),H("div",{key:3,class:"radial-progress bg-primary text-primary-content border-4 border-primary",style:_s(`--value: ${c.progress}; --size: 2.5rem`)},Ce(Math.round(c.progress))+"% ",5))])]))),128))])]))])}const kg=He(mg,[["render",Ig]]),Ng={components:{Navbar:Al,DownloadList:kg},setup(){return Ts(()=>{window.scroll(0,0)}),{}}};function Lg(e,t,n,s,r,o){const i=Ee("Navbar"),c=Ee("DownloadList");return j(),H("div",null,[W(i),W(c)])}const Mg=He(Ng,[["render",Lg]]),Fg=[{path:"/",name:"Home",component:km},{path:"/search/:query",name:"Search",component:pg},{path:"/download",name:"Download",component:Mg}],fo=am({history:Rp($e.BASEURL),routes:Fg});const Pl=Gu(cp);Pl.use(fo);Pl.mount("#app"); diff --git a/dist/index.html b/dist/index.html index fc32482..195d557 100644 --- a/dist/index.html +++ b/dist/index.html @@ -5,7 +5,7 @@ spotDL - + diff --git a/src/components/SearchInput.vue b/src/components/SearchInput.vue index 46bfccf..317da7b 100644 --- a/src/components/SearchInput.vue +++ b/src/components/SearchInput.vue @@ -7,7 +7,10 @@ v-model="searchTerm" @keyup.enter="lookUp(searchTerm)" /> - + -